<!--#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")>1 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
%>
<head>
<title>添加投票</title>
<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>
<SCRIPT language="JavaScript" type="text/javascript">
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<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%" cellpadding="3" cellspacing="1" style="border-collapse: collapse" bgcolor="#999999">
    <form method="POST" action="web_vote_save.asp">
      <tr bgcolor="#cccccc"> 
        <td height="9" colspan=2 align=center><b>添 加 新 投 票</b></td>
      </tr>
      <tr bgcolor="#F3F3F3">
        <td height="10" ><div align="right">选择显示栏目：</div></td>
        <td height="10" ><%set rs1=server.createobject("adodb.recordset")
        rs1.open "select * from shop_anclass order by anclassidorder",conn,1,1
	if rs1.eof and rs1.bof then
	response.write "请先添加栏目。"
	response.end
	else
%>
          <select name="classid" size="1" id="classid" class="wenbenkuang">
		              <option  value="0" >首页</option>
            <option  value="<%=rs1("anclassid")%>" ><%=trim(rs1("anclass"))%></option>
            <% 
        rs1.movenext
        do while not rs1.eof
%>
            <option value="<%=rs1("anclassid")%>" ><%=trim(rs1("anclass"))%></option>
            <%
        rs1.movenext
        loop
	end if
        rs1.close
%>
        </select></td>
      </tr>
      <tr bgcolor="#F3F3F3"> 
        <td width="22%" align="right">主题：</td>
        <td width="78%"> 
        <input type="text" name="Title" size="34"  class="wenbenkuang">        </td>
      </tr>
      <%for i=1 to 8%>
      <tr bgcolor="#F3F3F3"> 
        <td width="22%" align="right">选项<%=i%>：</td>
        <td width="78%"> 
          <input type="text" name="select<%=i%>" size="20"  class="wenbenkuang">
          票数：
        <input type="text" name="answer<%=i%>" size="5" value="0"  class="wenbenkuang" onKeyPress="event.returnValue=IsDigit();" >        </td>
      </tr><%next%>
      <tr bgcolor="#F3F3F3">
        <td align="right">是否显示：</td>
        <td width="78%"><input name="IsChecked" type="radio" value="1" checked>
显示
  <input type="radio" name="IsChecked" value="0" >
不显示</td>
      </tr>
      
      <tr bgcolor="#F3F3F3"> 
        <td colspan=2 align=center> 
          <input type="hidden" value="add" name="act">
         <input type="submit" value="确 认 添 加" name="cmdok"  class="go-wenbenkuang"> 
          &nbsp; 
          <input type="button" value=" 返 回 " onClick="javascript:history.go(-1)"  class="go-wenbenkuang" name="button">
          &nbsp; 
        <input type="reset" value=" 取 消 "  name="cmdcancel"  class="go-wenbenkuang">        </td>
      </tr>
    </form>
  </table>
</center>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>