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

📄 votemanage.asp

📁 网络商店源码 实现商品浏览 购物车 后台管理等
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登录!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
end if

set rs=server.createobject("adodb.recordset")
rs.open "select * From shop_toupiao order by id desc",conn,1,1
%>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css.css" rel=stylesheet>
<title>投票管理</title>
</head>
<body  topmargin="0">
<center>
  <p>&nbsp;</p>
  <form name="form1" method="post" action="voteSet.asp">
    <table width="95%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
      <tr bgcolor="#f1f1f1">
        <td colspan="5"><div align="center"><b>管 理 商 品 投 票</b></div></td>
      </tr>
      <tr bgcolor="#F1F1F1">
        <td width="12%"><div align="center">选择</div></td>
        <td width="16%"><div align="center">ID</div></td>
        <td width="40%"><div align="center">主题</div></td>
        <td width="17%"><div align="center">修改</div></td>
        <td width="15%"><div align="center">删除</div></td>
      </tr>
      <%
do while not rs.eof
%>
      <tr bgcolor="#FFFFFF">
        <td bgcolor="#FFFFFF"><div align="center">
          <input type="radio" value=<%=rs("ID")%><%if rs("IsChecked")=1 then%> checked<%end if%> name="Checked">
        </div></td>
        <td><div align="center"><%=rs("ID")%></div></td>
        <td><%=rs("Title")%></td>
        <td><div align="center">
          <input onClick="javascript:window.open('voteModify.asp?id=<%=rs("ID")%>','_self','')" 
		  type="button" value="修改" name="button1" class="go-wenbenkuang">
        </div></td>
        <td><div align="center">
          <input onClick="javascript:window.open('voteDel.asp?id=<%=rs("ID")%>','_self','')" 
		  type="button" value="删除" name="button2" class="go-wenbenkuang">
        </div></td>
      </tr>
	  </tr>
      <%
rs.movenext
loop
rs.close
%>
      <tr bgcolor="#FFFFFF">
        <td colspan="5"><div align="center">
          <input type="submit" value="选定投票项" name="submit" class="go-wenbenkuang">
          <input onClick="javascript:window.open('voteAdd.asp','_self','')" type="button" value="添加新投票" name="button" class="go-wenbenkuang">
        </div></td>
      </tr>
    </table>
  </form>
  <%
set rs=nothing
conn.close
set conn=nothing%>
</center>
</body></html>

⌨️ 快捷键说明

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