⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 managevote.asp

📁 一个ASP做的购物车
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="session2.asp"-->
<%
set rs=server.createobject("adodb.recordset")
'rs.open "select * from wq_toupiao order by id desc",conn,1,1 'ID倒序
rs.open "select * from wq_toupiao",conn,1,1 'ID正序--默认

%>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" rel=stylesheet>
<title>投票管理</title>
</head>
<body>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
  <tr> 
    <th class="tableHeaderText" colspan=5>网站调查理管</th>
  </tr>
  <form method="POST" action="Err.asp">
    <tr> 
      <td width="10%" align="center" class="forumRowHighlight">ID</td>
      <td width="60%" align="center" class="forumRowHighlight">主题</td>
      <td width="10%" align="center" class="forumRowHighlight">选择</td>
      <td width="10%" align="center" class="forumRowHighlight">修改</td>
      <td width="10%" align="center" class="forumRowHighlight">删除</td>
    </tr>
    <%
do while not rs.eof
%>
    <tr height=20> 
      <td width="10%" align="center" class="forumRowHighlight"><%=rs("ID")%></td>
      <td width="60%" align="center" class="forumRowHighlight"><%=rs("Title")%></td>
      <td width="10%" align="center" class="forumRowHighlight"><input type="radio" value=<%=rs("ID")%><%if rs("IsChecked")=1 then%> checked<%end if%> name="Checked"></td>
      <td width="10%" align="center" class="forumRowHighlight"><input class=button onclick="javascript:window.open('Err.asp','_self','')" type="button" value="修改" name="button1" ></td>
      <td width="10%" align="center" class="forumRowHighlight"><input class=button onclick="javascript:window.open('Err.asp','_self','')" type="button" value="删除" name="button2"></td>
    </tr>
    <%
rs.movenext
loop
rs.close
%>
    <tr> 
      <td colspan=5 align=center class="forumRowHighlight"> <input class=button type="submit" value="选定调查项" name="submit"> 
        <input class=button onclick="javascript:window.open('AddVote.asp','_self','')" type="button" value="添加新调查" name="button"> 
      </td>
    </tr>
  </form>
</table>
<%
set rs=nothing
conn.close
set conn=nothing%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -