www.gusucode.com > 掌柜网店购物系统 4.0码程序 > admin/voteadd.asp

    <!--#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
dim i
%>
<html><head><title>添加投票</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../img/css.css" rel=stylesheet>
<SCRIPT language="JavaScript" type="text/javascript">
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<style>
BODY {
SCROLLBAR-FACE-COLOR: #e7e7e7;  
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
SCROLLBAR-SHADOW-COLOR: #d4d0c8;
SCROLLBAR-3DLIGHT-COLOR: #FFFFFF;
SCROLLBAR-ARROW-COLOR:  #ffffff;
SCROLLBAR-TRACK-COLOR: #f7f7f7;
SCROLLBAR-DARKSHADOW-COLOR: #e7e7e7; 
}
.style3 {color: #FF6600}
</style>
</head>
<body>
<table class="tableBorder" width="96%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<form method="POST" action="votesave.asp">
<tr> 
<td colspan="4" align="center" bgcolor="#dfdfdf"><b>添加新的投票</font></b></td>
</tr>
<tr bgcolor="#f2f2f2"> 
<td width="20%" align="right">投票主题:</td>
<td width="80%"> 
<input type="text" name="Title" size="40" style="font-family: 宋体; font-size: 9pt"></td>
</tr>
<%for i=1 to 8%>
<tr bgcolor="#f2f2f2"> 
<td align="right">选 项 <%=i%>:</td>
<td> 
<input type="text" name="select<%=i%>" size="25" style="font-family: 宋体; font-size: 9pt">
票 数:<input type="text" name="answer<%=i%>" size="5" value="0" style="font-family: 宋体; font-size: 9pt" onKeyPress="event.returnValue=IsDigit();" ></td>
</tr>
<%next%>
<tr bgcolor="#f2f2f2">
<td></td>
<td>
<input type="hidden" value="add" name="act">
<input type="submit" value=" 添 加 " name="cmdok" style="font-family: 宋体; font-size: 9pt">&nbsp;
<input type="reset" value=" 取 消 "  name="cmdcancel" style="font-family: 宋体; font-size: 9pt">
<input type="button" value=" 返 回 " onclick="javascript:history.go(-1)" style="font-family: 宋体; font-size: 9pt">&nbsp;
</td>
</tr>
</form>
</table>
</body></html>