?? vote.asp
字號(hào):
<!--#include file="conn.inc"-->
<html><head><title>IT零距離統(tǒng)計(jì)系統(tǒng)</title><meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<link href='css.css' rel='stylesheet' type='text/css'>
<%set rs=server.CreateObject("adodb.recordset")
sql="select * from title where id="&request.QueryString("id")
rs.open sql,connstr
if rs("choice")=true then
types=true
else
types=false
end if
%>
<script language="javascript">
function openwin(url,a,b){
var
newwin=window.open(url,"dddddd","toolbar=no,location=no,top=10,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+a+",height="+b+"");
newwin.focus();
return(newwin);
}
</script>
<style type="text/css">
<!--
body,td,th {
font-family: 宋體;
font-size: 12px;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<meta http-equiv=Content-Type content=text/html; charset=gb2312>
</head><body>
<table width="195" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF"><table width=100% border=0 align=center cellpadding=0 cellspacing=4>
<tr>
<td width=536 height="20"><div align="left"></div>
<div align="center"><strong><%=rs("title")%></strong></div></td>
</tr>
</table>
<table width=100% height=125 border=0 align=center cellpadding=0 cellspacing=0>
<form name=form1 method=post action=deal.asp?id=<%=request("id")%> target="_blank">
<tr>
<td valign=top>
<%rs.close
set rs=nothing%>
<%set rs=server.CreateObject("adodb.recordset")
sql="select * from choice where extends="&request("id")
rs.open sql,connstr
if rs.eof and rs.bof then
response.write "您還沒(méi)有添加投票選項(xiàng)!"
else
i=1
do while not rs.eof%>
<table width=100% border=0 cellspacing=0 cellpadding=3>
<tr>
<td width=23% align="center">
<div align="right">
<%
if types=true then
if rs("IsDefault")=true then
%>
<input name=choice type=checkbox id=choice value=<%=rs("id")%> checked>
<%else%>
<input name=choice type=checkbox id=choice value=<%=rs("id")%>>
<%end if%>
<%else
if rs("IsDefault")=true then
%>
<input type=radio name=choice value=<%=rs("id")%> checked>
<%else%>
<input type=radio name=choice value=<%=rs("id")%>>
<%end if%>
<%end if%>
</div></td>
<td width=77%><div align=left><%=rs("choice")%></div></td>
</tr>
</table>
<%rs.movenext
loop
rs.close
set rs=nothing%>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td><div align="center">
<input name=ids2 type=hidden id=ids2 value=<%=request("id")%>>
<input type=image src=image/button1.gif name=Submit22>
<a href=# onclick=javascript:openwin('show.asp?id=<%=request("id")%>','600','400')><img src=image/button2.gif width=50 height=20 border=0></a></div></td>
</tr>
</table></td>
</tr>
</form>
</table> </td>
</tr>
</table>
<div align="center">
<p>
<% end if%><br><br>
</div>
</body></html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -