📄 poll_ps.asp
字号:
<%
if session("cjuser")="" and session("pwdd")="" then
response.write"<SCRIPT language=JavaScript>alert('你没有登录,无权进入!');"
response.write"this.location.href='error.htm';</SCRIPT>"
response.end
end if
%>
<!--#include file=../conn/adodb1.asp -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.fontt {
font-size: 10pt;
text-decoration: none;
}
-->
</style>
<link href="css/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
dim sql,rs
set rs=server.createobject("adodb.recordset")
sql="select * from poll order by timm desc"
rs.open sql,db,1,1
%>
<%
if rs.eof and rs.bof then
response.write "没有任何数据!"
else
%>
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="1" class="fontt" >
<tr height="30" >
<td align="center" class="fenlei" ><strong>调查主题</strong></td>
?
<td height="23" colspan="3" class="fenlei"> <%=rs("poll_title")%></td>
</tr>
<tr height="30" >
</tr>
<tr bgcolor="#eeeeee" height="30" >
<td width="25%" align="center" ><strong>投票内容1</strong></td>
<td width="33%" height="25" align="center" bgcolor="#FFFFFF"><%=rs("content1")%></td>
<td width="28%" align="center" ><strong>票数</strong></td>
<td width="14%" height="25" align="center" bgcolor="#FFFFFF"><%=rs("pj1")%></td>
</tr>
<tr bgcolor="#eeeeee" height="30" >
<td align="center" ><strong>投票内容2</strong></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%=rs("content2")%></td>
<td align="center" ><strong>票数</strong></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%=rs("pj2")%></td>
</tr>
<tr bgcolor="#eeeeee" height="30" >
<td align="center" ><strong>投票内容3</strong></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%=rs("content3")%></td>
<td align="center" ><strong>票数</strong></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%=rs("pj3")%></td>
</tr>
<tr bgcolor="#eeeeee" height="30" >
<td align="center" ><strong>投票内容4</strong></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%=rs("content4")%></td>
<td align="center" ><strong>票数</strong></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%=rs("pj4")%></td>
</tr>
<tr bgcolor="#eeeeee" height="30" >
<td align="center" ><strong>投票内容5</strong></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%=rs("content5")%></td>
<td align="center" ><strong>票数</strong></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%=rs("pj5")%></td>
</tr>
</table>
<%end if%>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -