<!--#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>
  <table border="0" width="95%" cellspacing="1" cellpadding="1" style="border-collapse: collapse" align=center bgcolor="#CCCCCC">
    <form method="POST" action="voteSet.asp">
      <tr> 
        <td width="100%" height="20" colspan=5 align=center bgcolor="f1f1f1"><b>管 
          理 网 站 投 票</b></td>
      </tr>
      <tr height=20 bgcolor="#f1f1f1"> 
        <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 height=20 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" class="go-wenbenkuang">
        </td>
        <td width="10%" align="center" bgcolor="#FFFFFF"> 
          <input onClick="javascript:window.open('voteDel.asp?id=<%=rs("ID")%>','_self','')" type="button" value="删除" name="button2" class="go-wenbenkuang">
        </td>
      </tr>
      <%
rs.movenext
loop
rs.close
%>
      <tr bgcolor="#FFFFFF"> 
        <td colspan=5 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">
        </td>
      </tr>
    </form>
  </table>
  <%
set rs=nothing
conn.close
set conn=nothing%>
</center>
</body></html>