<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx14<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
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=utf-8">
<LINK href="../css.css" rel=stylesheet>
<title>网软志成在线购物系统</title>
<style type="text/css">
<!--
.style2 {color: #FF0000}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
}
-->
</style>
</head>
<body>
<center>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="28">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 系统管理 &gt;&gt; 投票管理 </font></strong></td>
        <td width="23%" style="font-size:14px;color:#ffffff"><span class="style2">* 为必添项目</span></td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
  <table border="0" width="95%" cellspacing="1" cellpadding="3" style="border-collapse: collapse" align=center bgcolor="#999999">
      <tr height=20 bgcolor="#cccccc"> 
        <td width="14%" align="center">分类</td>
        <td width="14%" align="center"> 是否显示</td>
        <td width="11%" align="center">ID</td>
        <td width="40%" align="center">主题</td>
        <td width="10%" align="center">修改</td>
        <td width="11%" align="center">删除</td>
      </tr>
      <%
do while not rs.eof
%>
      <tr height=20 bgcolor="#F3F3F3"> 
        <td width="14%" align="center"> 
		
          <%if rs("classid")=0 then
		  	response.write "首页"
else		  
		  set rs1=server.createobject("adodb.recordset")
        rs1.open "select * from shop_anclass where anclassid="&rs("classid"),conn,1,1
	if rs1.eof and rs1.bof then
	response.write "请先添加栏目。"
	response.end
	else
	response.write rs1("anclass")
	end if
        rs1.close
		end if
%>
        </td>
        <td width="14%" align="center"><%if rs("IsChecked")=1 then%>显示<%else%>不显示<%end if%></td>
        <td width="11%" align="center"><%=rs("ID")%>　</td>
        <td width="40%"><%=rs("Title")%>　</td>
        <td width="10%" align="center"> 
          <input onClick="javascript:window.open('web_vote_edit.asp?id=<%=rs("ID")%>','_self','')" type="button" value="修改" name="button1" class="go-wenbenkuang">
        </td>
        <td width="11%" align="center"> 
          <input onClick="javascript:window.open('web_vote_del.asp?id=<%=rs("ID")%>','_self','')" type="button" value="删除" name="button2" class="go-wenbenkuang">
        </td>
      </tr>
      <%
rs.movenext
loop
rs.close
%>
      <tr bgcolor="#F3F3F3"> 
        <td colspan=6 align=center><input onClick="javascript:window.open('web_vote_add.asp','_self','')" type="button" value="添加新投票" name="button" class="go-wenbenkuang"> 
        </td>
      </tr>
  </table>
<%
set rs=nothing
conn.close
set conn=nothing%>
</center>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>