📄 class.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="admin/ubbhtml.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%if request("sort")="" then response.write "全部笑话" else response.write request("sort") end if%> - 荆网笑话</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
td img {display: block;}body,td,th {
font-size: 14px;
}
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: -1px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(img/index_bg.jpg);
background-repeat: repeat-x;
}
a {
font-size: 13px;
color: #0000CC;
}
a:visited {
color: #0066FF;
}
a:hover {
color: #009966;
}
a:active {
color: #0099CC;
}
.dixian {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #62BBE5;
}
</style>
<SCRIPT language=JavaScript>
var newwin
function openwin(url)
{
var newwin=window.open(url,"flash","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=506,left=100,top=50")
}
</SCRIPT>
<SCRIPT language=javascript src="joke/mouse_up.js"></SCRIPT>
<meta name="Keywords" content="<%if request("sort")="" then response.write "全部笑话" else response.write request("sort") end if%>,搞笑文字,荆网笑话" />
</head>
<body>
<table width="926" border="0" align="left" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="index.png" fwbase="index.jpg" fwstyle="Dreamweaver" fwdocid = "162338751" fwnested="0" -->
<tr>
<td><img src="img/spacer.gif" width="31" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="253" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="22" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="126" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="122" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="111" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="115" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="132" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="14" height="1" border="0" alt="" /></td>
<td><img src="img/spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="3"><img name="index_r1_c1" src="img/index_r1_c1.jpg" width="306" height="146" border="0" id="index_r1_c1" alt="" /></td>
<td><img src="img/index_r1_c4.jpg" alt="" name="index_r1_c4" width="126" height="146" border="0" usemap="#index_r1_c4Map" id="index_r1_c4" /></td>
<td><img src="img/index_r1_c5.jpg" alt="" name="index_r1_c5" width="122" height="146" border="0" usemap="#index_r1_c5Map" id="index_r1_c5" /></td>
<td><img src="img/index_r1_c6.jpg" alt="" name="index_r1_c6" width="111" height="146" border="0" usemap="#index_r1_c6Map" id="index_r1_c6" /></td>
<td><img src="img/index_r1_c7.jpg" alt="" name="index_r1_c7" width="115" height="146" border="0" usemap="#index_r1_c7Map" id="index_r1_c7" /></td>
<td colspan="2"><img src="img/index_r1_c8.jpg" alt="" name="index_r1_c8" width="146" height="146" border="0" usemap="#index_r1_c8Map" id="index_r1_c8" /></td>
<td><img src="img/spacer.gif" width="1" height="146" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="2"><img name="index_r2_c1" src="img/index_r2_c1.jpg" width="31" height="285" border="0" id="index_r2_c1" alt="" /></td>
<td rowspan="2" align="right" valign="top" background="img/index_r2_c2.jpg"><!--#include file="f.asp"--></td>
<td colspan="7" background="img/index_r2_c3.jpg"><table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="66" align="center"><font color="#FFFFFF">
<%if request("sort")="" then response.write "全部笑话" else response.write request("sort") end if%></font></td>
<td align="right" width="473"><a href="?action=newsday&sort=<%=request("sort")%>"><font color="#FEFF1F">按更新日期浏览</font></a> <a href="?action=sumhits&sort=<%=request("sort")%>"><font color="#FEFF1F">按总点击量浏览</font></a> <a href="?action=dayhits&sort=<%=request("sort")%>"><font color="#FEFF1F">按今日点击浏览</font></a></td>
</tr>
</table></td>
<td><img src="img/spacer.gif" width="1" height="34" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="6" rowspan="2" valign="top" bgcolor="#FFFFFF"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr align="middle">
<td align="center" width="600"><br />
<table border="0" cellpadding="0" cellspacing="1" width="100%" align="center" >
<%
action=request("action")
sort=request("sort")
if sort="" then
if action="" or action="newsday" then
sql="select sort,articleid,title,hits,todayhits from learning where syxs<>0 order by dateandtime desc"
elseif action="sumhits" then
sql="select sort,articleid,title,hits,todayhits from learning where syxs<>0 order by hits desc"
elseif action="dayhits" then
sql="select sort,articleid,title,hits,todayhits from learning where syxs<>0 order by todayhits desc"
end if
else
if action="" or action="newsday" then
sql="select sort,articleid,title,hits,todayhits from learning where syxs<>0 and sort='" & sort & "' order by dateandtime desc"
elseif action="sumhits" then
sql="select sort,articleid,title,hits,todayhits from learning where syxs<>0 and sort='" & sort & "' order by hits desc"
elseif action="dayhits" then
sql="select sort,articleid,title,hits,sort,todayhits from learning where syxs<>0 and sort='" & sort & "' order by todayhits desc"
end if
end if
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
n=0
if not isempty(request("page")) then
pagecount=cint(request("page"))
else
pagecount=1
end if
rs.pagesize=16
rs.AbsolutePage=pagecount
do while not rs.eof
%>
<tr>
<td width="50%" height="27" valign="middle" bgcolor="#EFF7FF" onmouseover="this.bgColor = '#E9F2FF'" onmouseout="this.bgColor = '#EFF7FF'"><table width="100%" border="0">
<tr> <font color="#1883D5">[<%=left(rs("sort"),2)%>]</font> <a href="show.asp?id=<%=rs("articleid")%>" target="_blank"><%=rs("title")%></a></tr>
</table></td>
<% n=n+0.1
rs.movenext
if rs.eof or rs.bof then
response.write "<td width='50%'></td>"
exit do
end if
%>
<td width="50%" height="27" valign="middle" bgcolor="#EFF7FF" onmouseover="this.bgColor = '#E9F2FF'" onmouseout="this.bgColor = '#EFF7FF'"><table width="100%" border="0">
<tr> <font color="#1883D5">[<%=left(rs("sort"),2)%>]</font> <a href="show.asp?id=<%=rs("articleid")%>" target="_blank"><%=rs("title")%></a></tr>
</table></td>
<%
n=n+1
rs.movenext
if n>=rs.pagesize then exit do
loop
%>
</tr>
</table>
<br />
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<form action="class.asp" method="post">
<tr>
<td height="22" align="right" width="100%"> 页数:
<%response.write "<b><font color=red>"&pagecount&"</font>/"&rs.pagecount&"</b>"%>
<% if pagecount=1 and rs.pagecount<>pagecount and rs.pagecount<>0 then
response.write" <a href=class.asp?sort="&sort&"&page="&cstr(pagecount+1)&"&action="&action&">下一页</a>"
end if
if rs.pagecount>1 and rs.pagecount=pagecount then
response.write" <a href=class.asp?sort="&sort&"&page="&cstr(pagecount-1)&"&action="&action&">上一页</a>"
end if
if pagecount<>1 and rs.pagecount<>pagecount then
response.write" <a href=class.asp?sort="&sort&"&page="&cstr(pagecount-1)&"&action="&action&">上一页</a> <a href=class.asp?sort="&sort&"&page="&cstr(pagecount+1)&"&action="&action&"> 下一页</a>"
end if%>
直接到第
<select name="page" class="un_submit">
<%for i=1 to rs.pagecount%>
<option value="<%=i%>"><%=i%></option>
<%next%>
</select>
页
<input type="submit" name="go" value="Go ___>" class="un_submit" />
<input type="hidden" name="sort" value="<%=sort%>" />
</td>
</tr>
</form>
<%
rs.close
set rs=nothing
%>
</table>
<br /></td></tr>
</tbody>
</table></td>
<td rowspan="3" background="img/index_r3_c9.jpg"> </td>
<td><img src="img/spacer.gif" width="1" height="251" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="2" rowspan="2" background="img/index_r4_c1.jpg"> </td>
<td><img src="img/spacer.gif" width="1" height="250" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="6" background="img/index_r5_c3.jpg"> </td>
<td><img src="img/spacer.gif" width="1" height="62" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="9" align="center" background="img/index_r6_c1.jpg"><!--#include file="d.asp"--></td>
<td><img src="img/spacer.gif" width="1" height="72" border="0" alt="" /></td>
</tr>
</table>
<map name="index_r1_c4Map" id="index_r1_c4Map"><area shape="rect" coords="25,46,111,140" href="index.asp" />
</map>
<map name="index_r1_c5Map" id="index_r1_c5Map">
<area shape="rect" coords="17,71,86,140" href="class.asp" />
</map>
<map name="index_r1_c6Map" id="index_r1_c6Map"><area shape="rect" coords="11,51,86,140" href="picclass.asp" />
</map>
<map name="index_r1_c7Map" id="index_r1_c7Map">
<area shape="rect" coords="30,52,98,140" href="upload.asp?sort=1" />
</map>
<map name="index_r1_c8Map" id="index_r1_c8Map"><area shape="rect" coords="38,70,99,141" href="upload.asp?sort=2" />
</map></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -