📄 editvote.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="session2.asp"-->
<%
dim id,Title,DateAndTime,i,sql
id=request.QueryString("id")
set rs=server.createobject("adodb.recordset")
sql="select * from wq_toupiao where id="&id
rs.open sql,conn,1,1
if rs.eof then
response.write "<meta http-equiv=""refresh"" content=""2;url=javascript:history.go(-1)"">"
response.write("<table width=400 border=0 cellspacing=0 cellpadding=0 align=center>")
response.write("<tr><td>操作错误!</td></tr>")
response.write(" <tr><td><a href=vbscript:history.back()>回去重来</a>,2秒钟后自动返回</td></tr>")
response.write("</table>")
Response.End
else
Title=rs("Title")
DateAndTime=rs("DateAndTime")
end if
%>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" rel=stylesheet>
<title>投票管理</title>
<SCRIPT language="JavaScript" type="text/javascript">
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
</head>
<body>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
<tr>
<th class="tableHeaderText" colspan=5>修改网站调查</th>
</tr>
<form method="POST" action="SaveVote.asp?id=<%=id%>">
<tr>
<td width="30%" align="right" class="forumRowHighlight">主题:</td>
<td width="70%" class="forumRowHighlight"> <input type="text" name="Title" value="<%=Title%>" size="20" style="font-family: 宋体; font-size: 9pt"></td>
</tr>
<%for i=1 to 8%>
<tr>
<td align="right" class="forumRowHighlight">选项<%=i%>:</td>
<td class="forumRowHighlight"> <input type="text" name="select<%=i%>" value="<%=rs("select"&i)%>" size="20" style="font-family: 宋体; font-size: 9pt">
票数:
<input type="text" name="answer<%=i%>" value="<%=rs("answer"&i)%>" size="5" style="font-family: 宋体; font-size: 9pt"></td>
</tr>
<%next%>
<tr>
<td align="right" class="forumRowHighlight">发布时间:</td>
<td class="forumRowHighlight"><%=DateAndTime%> </td>
</tr>
<tr>
<td colspan=2 align=center class="forumRowHighlight"> <input type="hidden" value="edit" name="act">
<input class="button" type="button" value=" 返 回 " onclick="javascript:history.go(-1)">
<input class="button" type="submit" value=" 修 改 " name="cmdok">
<input class="button" type="reset" value=" 清 除 " name="cmdcancel">
</td>
</tr>
</form>
</table>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -