📄 mod_vote.asp
字号:
<!-- #include file="../inc/const.asp" -->
<%
pagename="modvote"
pageadmin=1
%>
<!-- #include file="../inc/function.asp" -->
<!-- #include file="../inc/conn.asp" -->
<%
dim voteid,votetitle,style,votedetail,votecount
set rs=conn.execute("select id,votetitle,style from vote_vote where id="&FormatText(request("id"))&" and userid='"&userid&"'")
voteid=rs(0)
votetitle=rs(1)
style=rs(2)
rs.close
set rs=conn.execute("select votedetail,votecount from vote_details where voteid="&voteid)
do while not rs.eof
votedetail=votedetail&rs(0)&chr(10)
votecount=votecount&rs(1)&chr(10)
rs.movenext
loop
rs.close
set rs=nothing
call connclose
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="../Inc/styles.css" type="text/css">
</head>
<form method="POST" action="Vote_Save.asp?action=mod&id=<%=voteid%>">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" id="table1">
<tr>
<td width="15" height="18">
</td>
<td class="heading1" height="18">修改<span lang="zh-cn">投票调查</span></td>
</tr>
<tr>
<td height="16" width="15"></td>
<td class="body" height="16">在这里可以修改选定的投票调查。</td>
</tr>
<tr>
<td height="16" width="15"></td>
<td class="body" height="16"></td>
</tr>
<tr>
<td height="17" width="15"></td>
<td class="body" height="17">
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="bevel1" id="table2">
<tr>
<td> <span lang="zh-cn">修改投票调查</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="17" width="15"></td>
<td class="body" height="17">
</td>
</tr>
<tr>
<td height="17" width="15"></td>
<td class="body" height="17">
<table border="1" width="98%" id="table3" cellspacing="0" cellpadding="0" style="border-collapse: collapse" class="bevel2" height="230">
<tr>
<td width="136" align="center" class="body" height="30">投票标题:</td>
<td class="body" height="30">
<input type="text" name="votetitle" size="50" value="<%=votetitle%>"></td>
</tr>
<tr>
<td width="136" align="center" class="body" height="30">投票类型:</td>
<td class="body" height="30">
<input type="radio" value="radio"<%if style="radio" then response.write " checked"%> name="style">单选
<input type="radio" name="style"<%if style="checkbox" then response.write " checked"%> value="checkbox">多选 </td>
</tr>
<tr>
<td width="136" align="center" class="body" height="172">调查选项:<p>
(<font class=err>每行一个选项</font>)<p>
(<font class=err>右边是对应的投票数</font>)</td>
<td class="body" height="172">
<textarea rows="10" name="votedetail" cols="37"><%=votedetail%></textarea>
<textarea rows="10" name="votecount" cols="9"><%=votecount%></textarea></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="17" width="15"></td>
<td class="body" height="17">
</td>
</tr>
<tr>
<td height="17" width="15"></td>
<td class="body" height="17">
<input type="submit" value="修改投票" name="B1">
<input type="reset" value="重置" name="B2">
<input type="button" value="返回列表" name="B3" onclick="location.href='vote_list.asp';"></td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -