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

📄 edit_vote.asp

📁 东滕网站源码
💻 ASP
字号:
<% option explicit %>
<!--#include file="../function1/DBOpen.asp"-->
<%
  if session("purview")<>"99999" then
      response.write "错误!!您没有权限或者连接超时,请重新登陆." %>
<a href="../login.asp" target="_top">登陆</a> 
<% response.end 
  end if  
dim rs,sql
set rs=Server.CreateObject("Adodb.Recordset")
sql="select voteID,votename,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10 from vote"
rs.open sql,conn,1,1
%>
<html>
<head>
<title> 修改投票内容</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style type="text/css">
<!---a:link      { color: #000080; font-family: Arial; text-decoration: underline }
a:visited    { color: #680090; font-family: Arial; text-decoration: underline }
a:active     { color: red; font-family: Arial; text-decoration: none }
a:hover      { color: red; text-decoration: none }
body         { color: #000000; font-size: 9pt; line-height: 12pt; font-family: Arial }
th           { font-size: 9pt; line-height: 14pt }
td           { font-size: 9pt; line-height: 14pt }
a.1:link     { font-family: Arial; text-decoration: none; color: black }
a.1:visited  { font-family: Arial; text-decoration: none; color: black }
a.1:active   { font-family: Arial; text-decoration: none; color: white }
a.1:hover    { font-family: Arial; text-decoration: none; color: white }
.line        { line-height: 10pt }
.il          { line-height: 12pt }
.form        { font-size: 9pt }
---></style>
<script language="javascript">
<!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
}
function help(){
window.open("help.htm","","width=440,height=480,top=30,left=180,resizable=no,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
function login_onsubmit() {
if (document.form1.votename.value=="")
	{
	  alert("必须为调查取一个名字!")
	  document.form1.votename.focus()
	  return false
	 }
else if(document.form1.s1.value=="")
	{
	  alert("至少设定两个投票选项!")
	  document.form1.s1.focus()
	  return false
	 }
else if(document.form1.s2.value=="")
	{
	  alert("至少设定两个投票选项!")
	  document.form1.s2.focus()
	  return false
	 }
}
// --></script>
</head>

<body topmargin="0" leftmargin="0" bgcolor="#FFCCFF">
<form method="POST" name="form1" language="javascript" onsubmit="return login_onsubmit()" action="edit_save.asp?voteID=<%=rs("voteid")%>">
  <div align="center"> 
    <table width="44%" border="1">
      <tr> 
        <td colspan="2"><div align="center">修改调查内容: </div></td>
      </tr>
      <tr> 
        <td width="24%">本次调查的名称:</td>
        <td><input type="text" name="votename" size="40" class="form" value="<%=rs("votename")%>"></td>
      </tr>
      <tr> 
        <td>是否限制重复投票:</td>
        <td width="76%" height="22" bgcolor="#FFCCFF">是的 
          <input type="radio" value="0" name="ip" checked> &nbsp; 不用 
          <input type="radio" value="1" name="ip"> </td>
      </tr>
      <tr> 
        <td height="20">投票类型:</td>
        <td width="76%" bgcolor="#FFCCFF">单选 
          <input type="radio" value="radio" name="mode" checked> &nbsp; 复选 
          <input type="radio"></td>
      </tr>
      <tr> 
        <td height="13">投票选项一:</td>
        <td width="76%" bgcolor="#FFCCFF"><input type="text" name="s1" size="40" class="form" value="<%=rs("s1")%>"></td>
      </tr>
      <tr> 
        <td height="26">投票选项二:</td>
        <td width="76%" bgcolor="#FFCCFF"><input type="text" name="s2" size="40" class="form" value="<%=rs("s2")%>"></td>
      </tr>
      <tr> 
        <td height="13">投票选项三:</td>
        <td width="76%" bgcolor="#FFCCFF"><input type="text" name="s3" size="40" class="form" value="<%=rs("s3")%>"></td>
      </tr>
      <tr> 
        <td height="9">投票选项四:</td>
        <td width="76%" bgcolor="#FFCCFF"><input type="text" name="s4" size="40" class="form" value="<%=rs("s4")%>"></td>
      </tr>
      <tr> 
        <td height="4">投票选项五:</td>
        <td width="76%" bgcolor="#FFCCFF"><input type="text" name="s5" size="40" class="form" value="<%=rs("s5")%>"></td>
      </tr>
      <tr> 
        <td height="9">投票选项六:</td>
        <td width="76%" bgcolor="#FFCCFF"><input type="text" name="s6" size="40" class="form" value="<%=rs("s6")%>"></td>
      </tr>
      <tr> 
        <td height="21">投票选项七:</td>
        <td width="76%" bgcolor="#FFCCFF"><input type="text" name="s7" size="40" class="form" value="<%=rs("s7")%>"></td>
      </tr>
      <tr> 
        <td height="14">投票选项八:</td>
        <td width="76%" bgcolor="#FFCCFF"> <input type="text" name="s8" size="40" class="form" value="<%=rs("s8")%>"></td>
      </tr>
      <tr> 
        <td height="8">投票选项九:</td>
        <td width="76%" bgcolor="#FFCCFF"><input type="text" name="s9" size="40" class="form" value="<%=rs("s9")%>"></td>
      </tr>
      <tr> 
        <td>投票选项十:</td>
        <td width="76%" bgcolor="#FFCCFF"><input type="text" name="s10" size="40" class="form" value="<%=rs("s10")%>"></td>
      </tr>
      <tr>
        <td>投票启用:</td>
        <td bgcolor="#FFCCFF">启用 
          <input name="use" type="radio" value="0" checked>
          &nbsp; 停用 
          <input type="radio" value="1" name="use"></td>
      </tr>
      <tr> 
        <td colspan="2"> 
          <div align="center"> 
            <input type="submit" value=" 提交信息 " name="B1" class="form">
            <input type="reset" value=" 从新来过 " name="B2" class="form">
            <input type="checkbox" name="clear" value="ON">
            清除投票结果。<font color="#FF0000">(清除无法还原)</font></div></td>
      </tr>
    </table>
  </div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="750">
<tr>
<td></td>
</tr>
<center>
<tr>
<td></td>
</tr>
</table>
  </div>
</form>
</body>
</html>
<!--#include file="../function/DBclose.asp"-->

⌨️ 快捷键说明

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