📄 savevote.asp
字号:
<!--#include file="inc/config.asp"-->
<!--#include file="mdb.asp"-->
<!--#include file="inc/format.asp"-->
<!--#include file="inc/ERROR.asp"-->
<%
dim itemid,founderr,errmsg,itemname
founderr=false
errmsg=""
if request.querystring("vt_id")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>你必须指定投票的主题!"
else
if not isInteger(request.querystring("vt_id")) then
founderr=true
errmsg=errmsg+"<br>"+"<li>非法的投票主题的id参数。"
else
vtid=cint(request.querystring("vt_id"))
end if
end if
if request.form("item_id")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>你必须指定操作的对象!"
else
if not isInteger(request.form("item_id")) then
founderr=true
errmsg=errmsg+"<br>"+"<li>非法的投票选项id参数。"
else
itemid=cint(request.form("item_id"))
end if
end if
if request.form("itemname")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>你必须指定操作的对象!"
else
itemname=request.form("itemname")
end if
if founderr then
call diserror()
response.end
else
sql="update voteitem set item_count = item_count + 1 where item_id="&itemid
conn.execute(sql)
sql="select vt_id from voteitem where item_id="&itemid
set rs=conn.execute(sql)
vtid=rs("vt_id")
sql="select vt_startdate,vt_expiredate from votetopic where vt_id="&vtid
set rs=conn.execute(sql)
vt_startdate=rs("vt_startdate")
vt_expiredate=rs("vt_expiredate")
rs.close
set rs=nothing
days=datediff("d",vt_startdate,vt_expiredate)
cookies_time=dateadd("d",days,date())
response.cookies("npw")("voted")="yes"
response.cookies("npw")("topic")=request.QueryString("vt_name")
response.cookies("npw")("itemname")=request.form("itemname")
response.cookies("npw").expires=cookies_time
closedatabase
%>
<HTML>
<HEAD>
<title>投票成功!</title>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<meta http-equiv="refresh" content="1;URL=showvote.asp?vt_id=<%=vtid%>">
<META name="keywords" content="子宜..Design Online..,LooRi,源码下载,黑客程序,系统资源,网页特效, 粗口舞曲, 中文舞曲, 街舞录象,MTV, 音乐, FLASH, 教程, 舞曲, 交友,社区,聊天,照片,酷站,连接,留言,统计,日记,文章,开发工具,免费,软件,合作,黑客,代码,ASP,PHP,主机,交流,免费留言本,免费日记,免费投票,免费下载,免费查询,IP查询,手机查询,身份证查询,网吧,电影,DJ">
<meta name="description" content="子宜..Design Online..,LooRi,源码下载,黑客程序,系统资源,网页特效, 粗口舞曲, 中文舞曲, 街舞录象,MTV, 音乐, FLASH, 教程, 舞曲, 交友,社区,聊天,照片,酷站,连接,留言,统计,日记,文章,开发工具,免费,软件,合作,黑客,代码,ASP,PHP,主机,交流,免费留言本,免费日记,免费投票,免费下载,免费查询,IP查询,手机查询,身份证查询,网吧,电影,DJ">
<style type="text/css">
A{TEXT-DECORATION: none}
A:link {COLOR: #666666; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:visited {COLOR: #666666; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:active {FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:hover {BORDER-BOTTOM: 1px dotted; BORDER-LEFT-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-WIDTH: 1px; COLOR: #ff6600; TEXT-DECORATION: none}
BODY {
FONT-SIZE: 12px;
COLOR: #666666;
FONT-FAMILY: 宋体;
background-color: #ffffff;
SCROLLBAR-FACE-COLOR: #e8e7e7;
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
SCROLLBAR-SHADOW-COLOR: #ffffff;
SCROLLBAR-3DLIGHT-COLOR: #cccccc;
SCROLLBAR-ARROW-COLOR: #ff6600;
SCROLLBAR-TRACK-COLOR: #EFEFEF;
SCROLLBAR-DARKSHADOW-COLOR: #b2b2b2;
SCROLLBAR-BASE-COLOR: #000000
}
TABLE {BORDER-COLLAPSE: collapse; FONT-FAMILY: 宋体; FONT-SIZE: 9pt}
.button{height:18px;width:50px;background:#f6f6f9 url(img/ButtonBg.gif); border:solid 1px #5589AA;color: #000000 ;FONT-SIZE: 9pt}
.lanyu{border:solid 1px #5589AA;color: #000000 ; font-size: 12px;}
.font { filter: DropShadow(Color=#cccccc, OffX=2, OffY=1, Positive=2); text-decoration: none; font-size: 9pt}
</style>
</HEAD>
<BODY leftMargin=10 topMargin=15 MARGINHEIGHT="0" MARGINWIDTH="0">
<noscript><iframe src=*.htm></iframe></noscript>
<BODY leftMargin=10 topMargin=15 MARGINHEIGHT="0" MARGINWIDTH="0" onclick="JavaScript:window.close()">
<table align="center" border="0" cellspacing="0" style="border-collapse: collapse" width="98%" cellpadding="0" height="1">
<tr>
<td width="7" height="1">
<img border="0" src="img/Site_Top_Left.gif"></td>
<td width="543" height="1" background="img/Site_Top_Bg.gif"></td>
<td width="13" height="1"><img border="0" src="img/Site_Top_Right.gif"></td>
</tr>
<tr>
<td width="7" height="17" background="img/Site_Left_Bg.gif"></td>
<td width="543" height="17" bgcolor="#F2F2F2"><font color=red>投票成功!</font><p align=right>子宜..Design Online.. </p></td>
<td width="13" height="17" background="img/Site_Right_Bg.gif"></td>
</tr>
<tr>
<td width="7" height="1"><img border="0" src="img/Site_Down_Left.gif"></td>
<td width="543" height="1" background="img/Site_Down_Bg.gif"></td>
<td width="13" height="1"><img border="0" src="img/Site_Down_Right.gif"></td>
</tr>
</table>
</body></html>
<%
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -