⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 voteadd.asp

📁 购物系统(本版为正式商业版
💻 ASP
字号:
<!--#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 qx15<>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=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>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/right_top2.gif">
    <tr>
      <td width="1%">&nbsp;</td>
      <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td width="30%" height="32" style="font-size:14px;color:#000000">&nbsp;<strong><b>添加投票</b></strong></td>
            <td width="70%" align="right">&nbsp;</td>
          </tr>
      </table></td>
    </tr>
  </table>
  <p>&nbsp;</p>
  <table border="0" width="90%" cellpadding="3" cellspacing="1" style="border-collapse: collapse" bgcolor="#9DB2D4">
    <form method="POST" action="voteSave.asp">
      <tr bgcolor="#C7D3E6"> 
        <td height="9" colspan=2 align=center><b>添 加 新 投 票</b></td>
      </tr>
      <tr bgcolor="#F0F3F8">
        <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="#F0F3F8"> 
        <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="#F0F3F8"> 
        <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="#F0F3F8">
        <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="#F0F3F8"> 
        <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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -