?? votedy.asp
字號:
<!--#include file="const.asp"-->
<!--#include file="conn.asp"-->
<%response.Expires=0
addr0=request.servervariables("server_name")
addr1=request.servervariables("url")
addr1=replace(addr1,"votedy.asp","")
addr="http://"&addr0&addr1
set rs=server.createobject("adodb.recordset")
if request("id")="" then
set rs=conn.execute("select top 1 * from class order by id desc")
else
set rs=conn.execute("select * from class where id="&request("id"))
end if
title=rs("title")
style=rs("style")
classid=rs("id")
rs.close
sql="select * from vote where class="&classid
rs.open sql,conn,3,1
%>
vote=""
vote=vote+"<form method='POST' target='_blank' action='<%=addr%>votetou.asp?classid=<%=classid%>&style=<%=style%>'>"
vote=vote+" <TABLE style='BORDER-RIGHT: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid' cellSpacing=0 cellPadding=0 width=175 border=0>"
vote=vote+"<tr>"
vote=vote+"<td>"
vote=vote+"<TBODY>"
vote=vote+"<TR>"
vote=vote+"<TD vAlign=top>"
vote=vote+" <TABLE style='BORDER-RIGHT: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid' cellSpacing=0 cellPadding=0 width=175 border=0>"
vote=vote+" <TBODY>"
vote=vote+"<TR>"
vote=vote+" <TD height=3 bgColor=#ff93c9></TD>"
vote=vote+"</TR>"
vote=vote+"<TR> "
vote=vote+"<td align=center><font color=#ff6600>站內投票</font>"
vote=vote+"</td>"
vote=vote+"</TR>"
vote=vote+"<tr>"
vote=vote+"<td background=images/bg_04.gif border=0>"
vote=vote+"</td>"
vote=vote+"</tr>"
vote=vote+"<tr>"
vote=vote+"<td width='100%' height='25'>"
vote=vote+"<p align='center'><%=title%></td>"
vote=vote+"</tr>"
<%do while not rs.eof%>
vote=vote+"<tr>"
vote=vote+"<td width='100%'><input type='<%=style%>' name='voted' value='<%=rs("id")%>'><%=rs("vote")%></td>"
vote=vote+"</tr>"
<%rs.movenext
loop%>
vote=vote+"<tr>"
vote=vote+"<td width='100%' valign='bottom' align='center' height='30'><input type='submit' value='投票' name='B1' style='BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; FONT-SIZE: 9pt'> <a href='#' onclick=window.open('<%=addr%>showvote.asp?classid=<%=classid%>','','width=650,height=300,resizable=1,scrollbars=1');>投票結果</a></td>"
vote=vote+"</tr>"
vote=vote+" </TBODY>"
vote=vote+" </TABLE>"
vote=vote+"</td>"
vote=vote+"</tr>"
vote=vote+"</table></form>"
<%rs.close
set rs=nothing
conn.close
set conn=nothing%>
document.write (vote)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -