<!--#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
dim i
%>
<head>
<title>添加投票</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css.css" rel=stylesheet>
<SCRIPT language="JavaScript" type="text/javascript">
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
</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="voteSave.asp">
      <tr> 
        <td height="20" colspan=2 align=center bgcolor="f1f1f1"><b>添 加 投 票</b></td>
      </tr>
      <tr bgcolor="#FFFFFF"> 
        <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="#FFFFFF"> 
        <td align="right" width="22%">选项<%=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="#FFFFFF"> 
        <td colspan=2 align=center> 
          <input type="hidden" value="add" name="act">
          <input type="button" value=" 返 回 " onClick="javascript:history.go(-1)"  class="go-wenbenkuang" name="button">
          &nbsp; 
          <input type="submit" value=" 添 加 " name="cmdok"  class="go-wenbenkuang">
          &nbsp; 
          <input type="reset" value=" 取 消 "  name="cmdcancel"  class="go-wenbenkuang">
        </td>
      </tr>
    </form>
  </table>
</center>
</body></html>