?? votemanage.asp
字號:
<!--#include file="conn.asp"-->
<%if session("bjxadmin")="" then
response.Write "<script language='javascript'>alert('網絡超時或您還沒有登陸!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<p align=center><font color=red>您沒有此項目管理權限!</font></p>"
response.End
end if
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from BJX_toupiao order by id desc",conn,1,1
%>
<html><head><title>投票管理</title>
<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="voteSet.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">選擇</td>
<td width="10%" align="center">ID</td>
<td width="60%" align="center">主題</td>
<td width="10%" align="center">修改</td>
<td width="10%" align="center">刪除</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('voteModify.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('voteDel.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=#E8F1FF>
<input type="submit" value="選定投票項" name="submit" style="font-family: 宋體; font-size: 9pt"> <input onclick="javascript:window.open('voteAdd.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>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -