📄 showcs_body.asp
字号:
<%sub showcs_body()
dim totalcs,Currentpage,totalpages,i
opensites
sql="select * from coolsites order by cs_id DESC"
if request.querystring("cscat_id")<>"" then
sql="select * from coolsites where cscat_id="&request.querystring("cscat_id")&" order by cs_id DESC"
end if
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
totalcs=rs.recordcount
%>
<table width="<%=tablewidth%>" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
<tr>
<td height="2" colspan="3"></td>
</tr>
<tr>
<td align="center" valign="top" width="74%"><table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"> </td>
</tr>
</table>
<table width="75%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="1" cellpadding="3" bgcolor="#B1B6BE" align="center">
<tr>
<td height="25" align="center" bgcolor="#00ccff" class="chinese"><strong><font color="#666666">成
功 案 例</font></strong> </tr>
</table>
<table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="6"></td>
</tr>
</table>
<%
if not rs.eof then
rs.movefirst
rs.pagesize=coolsitesperpage
if trim(request("page"))<>"" then
currentpage=clng(request("page"))
if currentpage>rs.pagecount then
currentpage=rs.pagecount
end if
else
currentpage=1
end if
totalcs=rs.recordcount
if currentpage<>1 then
if (currentpage-1)*coolsitesperpage<totalcs then
rs.move(currentpage-1)*coolsitesperpage
dim bookmark
bookmark=rs.bookmark
end if
end if
if (totalcs mod coolsitesperpage)=0 then
totalpages=totalcs\coolsitesperpage
else
totalpages=totalcs\coolsitesperpage+1
end if
i=0
do while not rs.eof and i<coolsitesperpage
%>
<table width="98%" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td width="37%" align="center">
<table width="98%" border="0" cellspacing="1" cellpadding="3" bgcolor="#D2D2D2">
<tr>
<td bgcolor="#FFFFFF" align="center"><img src="<%=rs("cs_pic")%>" alt="<%=rs("cs_desc")%>"></td>
</tr>
</table>
</td>
<td width="63%" class="chinese"><font color="#666666">网站名称:<%=rs("cs_name")%><br>
网站地址:<a href="redirectcs.asp?cs_id=<%=rs("cs_id")%>" target="_blank"><%=rs("cs_url")%></a><br>
加入时间:<%=rs("cs_date")%><br>
点击次数:<%=rs("cs_count")%></font></td>
</tr>
<tr>
<td colspan="2" height="1" background="images/dotlineh.gif"></td>
</tr>
</table>
<%
i=i+1
rs.movenext
loop
else
if rs.eof and rs.bof then
%>
<table width="98%" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td bgcolor="#FFFFFF" colspan="2" height="22" align="center" class="chinese">当前没有成功案例!</td>
</tr>
</table>
<%end if
end if%>
<table width="96%" border="0" cellspacing="0" cellpadding="0" align="center" class="chinese">
<form name="form1" method="post" action="showcs.asp?cscat_id=<%=request.querystring("cscat_id")%>">
<tr>
<td align="right"> <font color="#666666"><%=currentpage%> /<%=totalpages%>页,<%=totalcs%>条记录/<%=coolsitesperpage%>个每页.</font>
<%
i=1
showye=totalpages
if showye>10 then
showye=10
end if
for i=1 to showye
if i=currentpage then
%>
<%=i%>
<%else%>
<a href="showcs.asp?page=<%=i%>&cscat_id=<%=request.querystring("cscat_id")%>"><%=i%></a>
<%end if
next
if totalpages>currentpage then
if request("page")="" then
page=1
else
page=request("page")+1
end if%>
<a href="showcs.asp?page=<%=page%>&cscat_id=<%=request.querystring("cscat_id")%>" title="下一页">>></a>
<%end if%>
<input type="text" name="page" class="textarea" size="4">
<input type="submit" name="Submit" value="Go" class="button">
</td>
</tr>
</form>
</table>
<br>
</td>
<td align="center" valign="top" width="1" background="images/dotlinev.gif"></td>
<td width="25%" align="center" valign="top" bgcolor="#FFFFFF">
<table width="96%" border="0" cellspacing="1" cellpadding="3" bgcolor="#C6C9CE">
<tr>
<td align="center" bordercolor="#CCCCCC" bgcolor="#00CCFF" class="chinese"><font color="#666666"><strong>成功案例</strong></font></td>
</tr>
</table>
<table width="96%" border="0" cellspacing="1" cellpadding="0" bgcolor="#EFEBEF">
<tr>
<td bgcolor="#FFFFFF" align="center">
<table width="85%" border="0" cellspacing="0" cellpadding="4">
<%sql="select * from cscat"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof
%>
<tr>
<td align="right" class="chinese">
<%if cint(request.querystring("cscat_id"))<>rs("cscat_id") then%>
<a href="showcs.asp?cscat_id=<%=rs("cscat_id")%>"><%=rs("cscat_name")%></a>
<%else%>
<font color="#ff6600"><%=rs("cscat_name")%></font>
<%end if%>
</td>
</tr>
<%rs.movenext
loop
if rs.eof and rs.bof then%>
<tr>
<td align="right" class="chinese">当前还没有酷站分类!</td>
</tr>
<%end if%>
</table>
</td>
</tr>
</table>
<br>
<table width="96%" border="0" cellspacing="1" cellpadding="3" bgcolor="#C6C9CE">
<tr>
<td bgcolor="#00CCFF" align="center" class="chinese"><font color="#666666"><strong>案例点击Top
2</strong></font></td>
</tr>
</table>
<table width="96%" border="0" cellspacing="1" cellpadding="0" bgcolor="#C6C9CE">
<tr>
<td bgcolor="#FFFFFF" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<%sql="SELECT top 2 * FROM coolsites ORDER by cs_count DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof
%>
<tr>
<td align="center" class="chinese"><img src="<%=rs("cs_pic")%>"></td>
</tr>
<tr>
<td class="chinese"><font color="#666666">网站名称:<%=rs("cs_name")%><br>
网站地址:<a href="redirectcs.asp?cs_id=<%=rs("cs_id")%>" target="_blank"><%=rs("cs_url")%></a><br>
加入时间:<%=rs("cs_date")%><br>
点击次数:<%=rs("cs_count")%> </font></td>
</tr>
<%rs.movenext
loop
if rs.eof and rs.bof then%>
<tr>
<td align="center" bgcolor="#00CCFF" class="chinese">当前还没有<font color="6">成功案例</font></td>
</tr>
<%end if%>
</table>
</td>
</tr>
</table>
<br>
<table width="96%" border="0" align="center" cellpadding="5" cellspacing="0" class="chinese">
<tr>
<td align="center" class="chinese"> <p align="left" style="LINE-HEIGHT: 150%"><strong><font color="#666666">本
站 声 明</font></strong><br>
</p></td>
</tr>
<tr>
<td align="right">
<div align="left"><font color="#999999"> 本站的大部分资料,文章都来自网上收集,其版权归作者本人所有,如果有任何侵犯您权益的地方,请联系我,我将马上进行删除,谢谢。
</font> </div></td>
</tr>
</table>
<br>
</td>
</tr>
<tr>
<td height="1" width="544"></td>
<td height="1" width="1"></td>
<td height="1" width="205"></td>
</tr>
</table>
<%
rs.close
set rs=nothing
end sub%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -