📄 showvote.asp
字号:
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/set.asp"-->
<!--#include file="inc/function.asp"-->
<%
'//版权所有:野草设计
'//程序作者:野草
'//当前版本:V2.0
'//联系QQ:94440079
'//官方网站:http://www.yecaoweb.com
%>
<%
if request("action")="postvote" then
if request.form("numid")="" then
YC("<script>alert('参数错误!');location.href='index.asp';</script>")
end if
if request.cookies(yecaocookies&"jinzhevote")("go")="yes" then
YC("<script>alert('您已经投过票了!');location.href='index.asp';</script>")
response.end
end if
if requeat.form("YCMSVOTE")<>"" then
YC_sql("update [YC_vote] set click=click+1 where class="&request.form("classid")&" and num="&request.form("numid"))
response.cookies(yecaocookies&"jinzhevote")("go")="yes"
response.cookies(yecaocookies&"jinzhevote")("voteid")=rs("id")
response.cookies(yecaocookies&"jinzhevote").expires=dateadd("d",30,date())
YC("<script>alert('您已经投票成功!谢谢!');location.href='showvote.asp?id="&request.form("classid")&"';</script>")
response.end
end if
else
execute(loadskin(skinmode))
title="在线投票→查看投票"
call NowWhere("查看投票","showvote.asp?id="&request.querystring("id"))
call checkshowcontent()
call pass()
call head()
%>
<table border="0" id="content" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" id="show" nowrap>
<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr>
<td class="111" nowrap></td><td class="222" nowrap>
<%YC(" 当前位置:<a href=index.asp>本站首页</a>→在线投票→查看投票")%>
<td class="333" nowrap></td></td></tr></table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr><td class="444" nowrap></td>
<td class="555" valign="top" nowrap>
<%
call NowWhere("查看投票","showvote.asp?id="&request.QueryString("id"))
set rs=server.CreateObject("adodb.recordset")
sql="select * from [YC_voteclass] where id="&request.QueryString("id")
rs.open sql,conn,1,1
YC("<p class=""show_title"" align=""center""><b>"&rs("classname")&"</b></p><div class=""show_content"">")
sqlurl="SELECT * FROM [YC_vote] WHERE class="&rs("id")&" order by id"
Set rsurl=Server.CreateObject("ADODB.Recordset")
rsurl.open sqlurl,Conn,1,1
voteclick=voteclick+rsurl("click")
yc("<table border=""0"">")
if rsurl.eof then
response.write "暂时没有投票项目!"
else
for i=1 to rsurl.recordcount
YC("<tr><td width=""40%""> "&i&"."&rsurl("title")&"</td><td width=""60%"">")
YC("<img src=""img/bar.gif"" border=""1"" width="""&FormatNumber((rsurl("click")/voteclick*300),4)&""" height=""10"" align=""absmiddle""> 一共:"&rsurl("click")&"票 </td></tr>")
rsurl.movenext
next
end if
yc("</table>")
rsurl.close
set rsurl=nothing
rs.close
set rs=nothing
YC("<br /><center>")
if request.cookies(yecaocookies&"jinzhevote")("go")<>"yes" then
YC("您还没有投票呢?赶快拿起您的鼠标投票吧!")
else
YC("您已经投过票了,感谢您的支持和参与!")
end if
YC("</center>")
%>
</div>
<td class="666" nowrap></td></tr></table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="777" nowrap></td>
<td class="888" nowrap></td>
<td class="999" nowrap></td>
</tr></table>
</td></tr></table>
<%call foot()
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -