<!--#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 "<p align=center><font color=red>您没有此项目管理权限！</font></p>"
response.End
end if
end if

set rs=server.createobject("adodb.recordset")
rs.open "select * from 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="../img/green.gif"><b><font color="#ffffff">商城投票管理 </font></b></td>
</tr>
<tr bgcolor="#ffffff"> 
<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 bgcolor="#ffffff"> 
<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=#ffffff> 
<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>