📄 info_vote.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 * from vote where voteID="&voteID
rs.open sql,conn,1,1
total=rs("n1")+rs("n2")+rs("n3")+rs("n4")+rs("n5")+rs("n6")+rs("n7")+rs("n8")+rs("n9")+rs("n10")
%>
<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="专业选票 控制面板" width="111" height="30"></a></td>
<center>
<td height="420" width="600" bgcolor="#F6F6F6" rowspan="4" valign="top"></center>
<div align="center">
<center>
<table border="0" cellspacing="1" width="90%" height="369">
<tr>
<td width="101%" height="20" colspan="2">调查详细资料</td>
</tr>
</center>
<tr>
<td width="101%" height="14" bgcolor="#E6E6E6" colspan="2">
<p align="center"><%=rs("votename")%></p>
</td>
</tr>
<center>
<tr>
<td width="50%" height="18">调查创建时间:<%=rs("date")%> <%=rs("time")%> </td>
<td width="50%" height="18">目前为止共有<%=total%>人参加本次调查。</td>
</tr>
</center>
<tr>
<td width="101%" height="16" colspan="2">
<p align="center">以下是您的调查代码:</td>
</tr>
<tr>
<td width="101%" height="256" colspan="2" valign="top">
<p align="center"><textarea rows="14" name="code" cols="73" class="form" style="font-family: 宋体; font-size: 9pt">
<!--代码开始-->
<table border="0" width="100%" cellspacing="1">
<form method="post" target="_blank" action="http://layty/tp3/vote/ivote.asp?voteID=<%=voteID%>">
<tr>
<td colspan="2" bgcolor="#F5F5F5"><%=rs("votename")%></td>
</tr>
<tr>
<td colspan="2"><input type="radio" value="n1" name="vote"><%=rs("s1")%></td>
</tr>
<tr>
<td colspan="2"><input type="radio" value="n2" name="vote"><%=rs("s2")%></td>
</tr>
<%
If rs("s3")<>"" Then
response.write "<tr><td colspan=2><input type=radio value=n3 name=vote>"&rs("s3")&"</td></tr>"
End If
If rs("s4")<>"" Then
response.write "<tr><td colspan=2><input type=radio value=n4 name=vote>"&rs("s4")&"</td></tr>"
End If
If rs("s5")<>"" Then
response.write "<tr><td colspan=2><input type=radio value=n5 name=vote>"&rs("s5")&"</td></tr>"
End If
If rs("s6")<>"" Then
response.write "<tr><td colspan=2><input type=radio value=n6 name=vote>"&rs("s6")&"</td></tr>"
End If
If rs("s7")<>"" Then
response.write "<tr><td colspan=2><input type=radio value=n7 name=vote>"&rs("s7")&"</td></tr>"
End If
If rs("s8")<>"" Then
response.write "<tr><td colspan=2><input type=radio value=n8 name=vote>"&rs("s8")&"</td></tr>"
End If
If rs("s9")<>"" Then
response.write "<tr><td colspan=2><input type=radio value=n9 name=vote>"&rs("s9")&"</td></tr>"
End If
If rs("s10")<>"" Then
response.write "<tr><td colspan=2><input type=radio value=n10 name=vote>"&rs("s10")&"</td></tr>"
End If
%>
</center>
<tr>
<td width="50%">
<p align="right"><input type="submit" value=" 投票 " name="submit"></td>
<center>
<td width="50%"><input type="button" value=" 查看 " onclick="window.open('http://layty/tp3/vote/view.asp?voteID=<%=voteID%>')" name="view"></td>
</tr>
</form>
</table>
<!--代码结束--></textarea></td>
</tr>
<tr>
<td width="101%" height="7" colspan="2" valign="top">
<p align="center">调查链接:<a href="http://layty/tp3/vote/ipage.asp?voteID=<%=voteID%>" target="_blank" class="1" style="color: red; text-decoration: underline">http://layty/tp3/vote/ipage.asp?voteID=<%=voteID%></a></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>
</form>
<%
conn.close
set conn=nothing
rs.close
set rs=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -