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

📄 edit_vote.asp

📁 8款下载系统源代码 2003-3-11 21:37:45 433 949k · 都很常见: 猛虎山庄、燕衔泥(飞扬的软件第二版用的就是他
💻 ASP
字号:
<%
If request.cookies("member")="" Then
Response.redirect"../"
End If
%>
<html>

<!--#include file="conn.asp"-->
<%
dim rs,sql,voteID
voteID=request("voteID")
set rs=Server.CreateObject("Adodb.Recordset")
sql="select voteID,votename,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10 from vote where voteID="&voteID
rs.open sql,conn,1,1
%>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<title>专业选票 | 会员控制面板</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Description" content="互动调查,免费调查引擎">
<meta name="Keywords" content="互动调查,调查,引擎调查,投票,免费调查,vote,research">
<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="11" leftmargin="0" bgcolor="#303430">

<form method="POST" name="form1" language="javascript" onsubmit="return login_onsubmit()" action="edit_save.asp?voteID=<%=voteID%>">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="750" bgcolor="#FFA800" height="420">
<tr>
<td height="55" width="150">
<p align="center"><a href="../member/ctrl.asp"><img border="0" src="../images/logo/ctrl_logo.gif" alt="专业选票 控制面板"></a></td>
<center>
<td height="420" width="600" bgcolor="#F6F6F6" rowspan="4" valign="top">
<div align="center">
<table border="0" cellpadding="2" width="90%" height="405" cellspacing="1">
<tr>
<td width="100%" height="1" colspan="3">创建新的调查:</td>
</tr>
</center>
<tr>
<td width="24%" height="26" bgcolor="#EFEFEF" align="right">
<p align="right">本次调查的名称:</td>
<center>
<td width="76%" height="26" colspan="2"><input type="text" name="votename" size="40" class="form" value="<%=rs("votename")%>"></td>
</tr>
</center>
<tr>
<td width="24%" height="17" bgcolor="#EFEFEF" align="right">
<p align="right">是否限制重复投票:</td>
<center>
<td width="76%" height="17" colspan="2">是的<input type="radio" value="0" name="ip" checked>&nbsp; 
不用<input type="radio" value="1" name="ip"></td>
</tr>
</center>
<tr>
<td width="24%" height="22" bgcolor="#EFEFEF" align="right">
<p align="right">投票类型:</td>
<center>
<td width="37%" height="22">单选<input type="radio" value="radio" name="mode" checked>&nbsp; 
复选<input type="radio"></td>
<td width="39%" height="22"></td>
</tr>
<tr>
<td width="24%" height="20" bgcolor="#EFEFEF" align="right">投票选项一:</td>
<td width="37%" height="20"><input type="text" name="s1" size="29" class="form" value="<%=rs("s1")%>"></td>
<td width="39%" height="20"></td>
</tr>
<tr>
<td width="24%" height="13" bgcolor="#EFEFEF" align="right">投票选项二:</td>
<td width="37%" height="13"><input type="text" name="s2" size="29" class="form" value="<%=rs("s2")%>"></td>
<td width="39%" height="13"></td>
</tr>
<tr>
<td width="24%" height="26" bgcolor="#EFEFEF" align="right">投票选项三:</td>
<td width="37%" height="26"><input type="text" name="s3" size="29" class="form" value="<%=rs("s3")%>"></td>
<td width="39%" height="26"></td>
</tr>
<tr>
<td width="24%" height="13" bgcolor="#EFEFEF" align="right">投票选项四:</td>
<td width="37%" height="13"><input type="text" name="s4" size="29" class="form" value="<%=rs("s4")%>"></td>
<td width="39%" height="13"></td>
</tr>
<tr>
<td width="24%" height="9" bgcolor="#EFEFEF" align="right">投票选项五:</td>
<td width="37%" height="9"><input type="text" name="s5" size="29" class="form" value="<%=rs("s5")%>"></td>
<td width="39%" height="9"></td>
</tr>
<tr>
<td width="24%" height="4" bgcolor="#EFEFEF" align="right">投票选项六:</td>
<td width="37%" height="4"><input type="text" name="s6" size="29" class="form" value="<%=rs("s6")%>"></td>
<td width="39%" height="4"></td>
</tr>
<tr>
<td width="24%" height="9" bgcolor="#EFEFEF" align="right">投票选项七:</td>
<td width="37%" height="9"><input type="text" name="s7" size="29" class="form" value="<%=rs("s7")%>"></td>
<td width="39%" height="9"></td>
</tr>
<tr>
<td width="24%" height="17" bgcolor="#EFEFEF" align="right">投票选项八:</td>
<td width="37%" height="17"><input type="text" name="s8" size="29" class="form" value="<%=rs("s8")%>"></td>
<td width="39%" height="17"></td>
</tr>
<tr>
<td width="24%" height="14" bgcolor="#EFEFEF" align="right">投票选项九:</td>
<td width="37%" height="14"><input type="text" name="s9" size="29" class="form" value="<%=rs("s9")%>"></td>
<td width="39%" height="14"></td>
</tr>
<tr>
<td width="24%" height="8" bgcolor="#EFEFEF" align="right">投票选项十:</td>
<td width="37%" height="8"><input type="text" name="s10" size="29" class="form" value="<%=rs("s10")%>"></td>
<td width="39%" height="8"></td>
</tr>
<tr>
<td width="61%" height="25" align="right" colspan="2">
<p align="center"><input type="submit" value=" 提交信息 " name="B1" class="form"><input type="reset" value=" 从新来过 " name="B2" class="form"></td>
</center>
<td width="39%" height="25" align="right">
<p align="left"><input type="checkbox" name="clear" value="ON">清除投票结果。<font color="#FF0000">(清除无法还原)</font></td>
</tr>
</table>
</div>
</td>
</tr>
<center></center><center></center><center></center><center>
<tr>
<td height="18" width="150" bgcolor="#FFCD71">
<p align="center">当前用户:<%=request.cookies("rname")%></td>
</tr>
<tr>
<td height="17" width="150"> </td>
</tr>
</center>
<tr>
<td height="330" width="150" valign="top">
<div align="center">
<table border="0" cellpadding="3" width="100%" height="157">
<tr>
<td width="100%" height="77" valign="top">
<p align="center"><a href="add_vote.asp" class="1">增加新的调查</a><br>
<a href="manage_vote.asp" class="1">管理现有调查</a><br>
<a href="../member/change_pwd.asp" class="1">更改登陆密码</a><br>
<a href="../member/change_info.asp" class="1">修改会员资料</a><br>
<a href="javascript:help()" class="1">使用帮助信息</a><br>
<br>
<a href="../member/logout.asp" class="1">退出登陆</a></td>
</tr>
</table>
</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>
</center>
</div>
</form>
<%
conn.close
set conn=nothing
rs.close
set rs=nothing
%>

</body>

</html>

⌨️ 快捷键说明

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