📄 honor.asp
字号:
<!--#include file="Inc/syscode.asp" -->
<!--#include file="head.asp" -->
<%
set rs=server.createobject("adodb.recordset")
sqltext="select * from honor order by id desc"
rs.open sqltext,conn,1,1
dim MaPerPage
MaPerPage=9
dim text,checkpage
text="0123456789"
Rs.PageSize=MaPerPage
for i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
if checkpage=0 then
exit for
end if
next
If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
Else
CurrentPage= 1
End If
If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
Else
CurrentPage=1
End if
call list
'显示帖子的子程序
Sub list()%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><table width="850" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30" valign="top" background="img/cont_left_bg01.gif"><img src="img/cont_left_img01.gif" width="30" height="431"></td>
<td style="padding-top:9px; " width="787" valign="top"><table width="787" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="207" align="left" valign="top" class="top_m_txt01"><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="img/left_qyry.gif" width="200" height="67"></td>
</tr>
<tr>
<td align="center" valign="top" background="img/left_bg01.gif"><table width="75%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20"><div align="center"><a href="Honor.asp" class="top_m_txt01">企 业 荣 誉</a></div></td>
</tr>
<TR>
<TD
height=1 colspan="2"
background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
<tr>
<td height="20"><div align="center"><a href="Img.asp" class="top_m_txt01">企 业 形 象</a></div></td>
</tr>
<TR>
<TD
height=1 colspan="2"
background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
</table></td>
</tr>
<tr>
<td><img src="img/left_img01.gif" width="200" height="20"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="63" valign="bottom"><img src="img/left_tc_tit.gif" width="200" height="51"></td>
</tr>
<tr>
<td height="182" align="center" background="img/left_bg02.gif"><object type="text/x-scriptlet" width="190" height="178" data="ttpp/vote.asp?id=32">
</object></td>
</tr>
<tr>
<td><img src="img/left_img02.gif" width="200" height="8"></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><table width="188" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="70" align="left" valign="bottom"><a href="Contact.asp"><img src="img/xsrx_img.gif" width="185" height="51" border="0"></a></td>
</tr>
</table></td>
</tr>
</table></td>
<td valign="top"><table width="580" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="img/cont_img01.gif" width="580" height="17"></td>
</tr>
<tr>
<td valign="top"><table width="580" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="9" background="img/cont_tbl01_bg01.gif"></td>
<td align="center" valign="top"><table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="45" align="left" valign="top"><img src="img/qyry.gif" width="298" height="36"></td>
</tr>
<tr>
<td valign="top"><table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="img/gsjs_img01.gif" width="540" height="19"></td>
</tr>
<tr>
<td width="22" valign="top" background="img/gsjs_left_bg01.gif"><img src="img/gsjs_img03.gif" width="22" height="149"></td>
<td width="498" rowspan="2" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="179" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="206" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<%i=1 %>
<TR>
<TD><table width="100%" border="0" cellspacing="1" cellpadding="0">
<%i=1 %>
<TR>
<% Do While Not rs.EOF%>
<TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<TABLE border=0 cellPadding=0 cellSpacing=5>
<TBODY>
<TR>
<TD align=middle width=135><TABLE align=center border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD height=10><IMG height=10
src="Img/bg_0ltop.gif" width=10></TD>
<TD background=Img/bg_01.gif height=10></TD>
<TD height=10><IMG height=10
src="Img/bg_0rtop.gif" width=10></TD>
</TR>
<TR>
<TD background=Img/bg_03.gif
width=10> </TD>
<TD align=middle bgColor=#ffffff vAlign=center><a
href=imagebig_honor.asp?id=<%=rs("id")%> target=_blank><img src="<%=rs("img")%>" alt="" width="150" height="180" border="0"></a></TD>
<TD background=Img/bg_04.gif
width=10> </TD>
</TR>
<TR>
<TD height=10><IMG height=10
src="Img/bg_0lbottom.gif" width=10></TD>
<TD background=Img/bg_02.gif height=10></TD>
<TD height=10><IMG height=10
src="Img/bg_0rbottom.gif"
width=10></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
</div></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td class="top_m_txt01"><div align="center"><%=rs("title")%></div></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table></td>
<% if i mod 3 =0 then%>
</TR>
<tr>
<%end if%>
<%
i=i+1
if i >= 10 then exit do
rs.MoveNext
loop
end sub
%>
</tr>
</table></TD>
</tr>
</table></td>
</tr>
<TR>
<TD
height=1 colspan="3" background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
<TR>
<TD
height=30 colspan="3" valign="bottom" class="top_m_txt01"><%
Response.write "<strong><font color='#000000'>-> 全部-</font>"
Response.write "共</font>" & "<font color=#FF0000>" & Cstr(Rs.RecordCount) & "</font>" & "<font color='#000000'>条信息</font></strong> "
Response.write "<strong><font color='#000000'>第</font>" & "<font color=#FF0000>" & Cstr(CurrentPage) & "</font>" & "<font color='#000000'>/" & Cstr(rs.pagecount) & "</font></strong> "
If currentpage > 1 Then
response.write "<strong><a href='Honor.asp?&page="+cstr(1)+"'><font color='#000000'>首页</font></a><font color='#ffffff'> </font></strong>"
Response.write "<strong><a href='Honor.asp?page="+Cstr(currentpage-1)+"'><font color='#000000'>上一页</font></a><font color='#ffffff'> </font></strong>"
Else
Response.write "<strong><font color='#000000'>上一页 </font></strong>"
End if
If currentpage < Rs.PageCount Then
Response.write "<strong><a href='Honor.asp?page="+Cstr(currentPage+1)+"'><font color='#000000'>下一页</font></a><font color='#ffffff'> </font>"
Response.write "<a href='Honor.asp?page="+Cstr(Rs.PageCount)+"'><font color='#000000'>尾页</font></a></strong> "
Else
Response.write ""
Response.write "<strong><font color='#000000'>下一页</font></strong> "
End if
%>
</TD>
</TR>
</table></td>
</tr>
</table></td>
<td width="20" background="img/gsjs_right_bg01.gif"></td>
</tr>
<tr>
<td background="img/gsjs_bg01.gif"></td>
<td valign="bottom" background="img/gsjs_right_bg01.gif"><img src="img/gsjs_img04.gif" width="20" height="148"></td>
</tr>
<tr>
<td colspan="3"><img src="img/gsjs_img02.gif" width="540" height="18"></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="9" background="img/cont_tbl01_bg01.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="img/cont_img02.gif" width="580" height="17"></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="33" valign="top" background="img/cont_right_bg01.gif"><img src="img/cont_right_img01.gif" width="33" height="431"></td>
</tr>
<tr>
<td valign="top"><img src="img/cont_di_img01.gif" width="30" height="29"></td>
<td align="center" valign="middle" background="img/cont_di_bg01.gif" style="padding-top:9px; "><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="39%"><table width="304" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="57"><img src="img/yqlj_img01.gif" width="57" height="15"></td>
<td width="247"><MARQUEE
align="left" width=230 scrollAmount=1 scrollDelay=4 class="top_m_txt01" onmouseover="this.stop()" onmouseout="this.start()">
<% call ShowAnnounce(5) %>
</MARQUEE></td>
</tr>
</table></td>
<td width="61%" align="right" class="top_m_txt01"><script language="JavaScript" type="text/javascript" src="inc/site.asp?online=1&show=all"></script></td>
</tr>
</table></td>
<td valign="top"><img src="img/cont_di_img02.gif" width="33" height="29"></td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="Inc/foot.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -