- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
managevote.asp
资源名称:shop2.rar [点击查看]
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:2k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
DOS
- <!--#include file="conn.asp"-->
- <%
- dim cls
- if session("admin")="" then
- Response.Redirect("admin.asp")
- else
- if session("flag")<>"0" then
- cls = Instr(session("flag"), "votefig")
- if cls <= 0 then
- %>
- <script language="javascript">
- if (confirm("您的操作权限不够,系统拒绝你的访问,请点确定返回,或者点取消退出重新登录"))
- location.href="login.asp";
- else
- location.href="index.asp";
- </script>
- <%
- end if
- end if
- end if
- %>
- <%
- set rs=server.createobject("adodb.recordset")
- rs.open "select * from vote order by id desc",conn,1,1
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <LINK href="../images/css.css" rel=stylesheet>
- <head>
- <body>
- <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
- <form method="POST" action="setvote.asp">
- <tr>
- <td colspan="5" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">商城投票管理 </font></b></td>
- </tr>
- <tr >
- <td width="10%" align="center" bgcolor="fbc2c2">选择</td>
- <td width="10%" align="center" bgcolor="fbc2c2">ID</td>
- <td width="60%" align="center" bgcolor="fbc2c2">主题</td>
- <td width="10%" align="center" bgcolor="fbc2c2">修改</td>
- <td width="10%" align="center" bgcolor="fbc2c2">删除</td>
- </tr>
- <%
- do while not rs.eof
- %>
- <tr >
- <td width="10%" align="center">
- <input type="radio" value=<%=rs("ID")%><%if rs("IsChecked")=1 then%> checked<%end if%> name="Checked"></td>
- <td width="10%" align="center"><%=rs("ID")%> </td>
- <td width="60%"><%=rs("Title")%> </td>
- <td width="10%" align="center">
- <input onClick="javascript:window.open('modifyvote.asp?id=<%=rs("ID")%>','_self','')" type="button" value="修改" name="button1" style="font-family: 宋体; font-size: 9pt"></td>
- <td width="10%" align="center">
- <input onClick="javascript:window.open('delvote.asp?id=<%=rs("ID")%>','_self','')" type="button" value="删除" name="button2" style="font-family: 宋体; font-size: 9pt"></td>
- </tr>
- <%
- rs.movenext
- loop
- rs.close
- %>
- <tr>
- <td colspan=5 align=center bgcolor=#fbf4f4>
- <input type="submit" value="选定投票项" name="submit" style="font-family: 宋体; font-size: 9pt"> <input onClick="javascript:window.open('addvote.asp','_self','')" type="button" value="添加新投票" name="button" style="font-family: 宋体; font-size: 9pt">
- </td>
- </tr>
- </form>
- </table>
- <%
- set rs=nothing
- conn.close
- set conn=nothing
- %>
- </body>
- </html>