8.asp
上传用户:angela
上传日期:2022-05-11
资源大小:853k
文件大小:5k
- <!--#include file="../Inc/Cls_Conn.asp"-->
- <!--#include file="../Inc/Cls_Config.asp"-->
- <%
- '=====================================================================
- ' 作者声明:转载请保留版权信息,鄙视不要脸的人
- '=====================================================================
- ' 程序名称:蓝宇网络发布系统
- ' 软件版本:Version 3.3.0 Sp1
- ' 程序作者:蓝宇 QQ:18159079 ╲、随心゛ QQ:6821845
- '=====================================================================
- ' 联系方式:Tel:13203117383,QQ:18159079,hi.baidu.com/hezeyu
- ' 程序开发:蓝宇,╲、随心゛
- ' 官方网站:蓝宇网络(http://hi.baidu.com/hezeyu)
- '=====================================================================
- ' Copyright 2004-2007 蓝宇 - All Rights Reserved.
- '=====================================================================
- dim id,rs3
- id=tee5.CheckStr(request("id"))
- if id="" or (not isnumeric(id)) then
- tee5.OutClertScript ("参数不正确!")
- end if
- set rs = server.createobject("adodb.recordset")
- sql="update Gq_article set art_count=art_count+1 where id="&id
- conn.execute sql
- sql="select * from Gq_article where id="&request.querystring("id")
- rs.open sql,conn,1,1
- if rs.bof and rs.eof then
- rs.close
- tee5.OutClertScript ("无此数据!")
- else
- start="浏览"&rs("art_title")&""
- tee5.head()
- %>
- <TABLE width=<%=tee5.TabWidth%> border=0 align=center cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
- <tr>
- <td width="72%" valign="top" style="border-right:1px dashed #d1d1d1;"><table width="99%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <th><%=rs("art_title")%></th>
- </tr>
- <tr>
- <td height="3" bgcolor="#CCCCCC" width="195"></td>
- </tr>
- <tr>
- <td height="37" align="center"><table width="90%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td align="right" valign="top"><font color="000000">文章作者:<%=rs("writer")%></font></td>
- <td align="center" valign="top"><font color="000000">文章来源:<%=rs("copyright")%></font></td>
- <td valign="top">更新时间:<%=rs("art_date")%><font color="000000"> </font></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="1" bgcolor="#CCCCCC"></td>
- </tr>
- <tr>
- <td height="5"></td>
- </tr>
- <TR>
- <TD style="padding-left: 10px;"><div style="FONT-SIZE: 14px; line-height:150%;width:99%"><%=rs("content")%></div></TD>
- </TR>
- <TR>
- <TD height="30" align="right" bgColor=#f7f7f7 style="padding-right: 10px;">浏览次数:<%=rs("art_count")%></TD>
- </TR>
- </table></td>
- <td width="5"></td>
- <td width="27%" valign=""top"" align="right"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <th>最新文章</th>
- </tr>
- <tr height="3">
- <td height="3" bgcolor="#CCCCCC" width="195"></td>
- </tr>
- <tr>
- <td valign="top"><%
- set rs3=server.createobject("adodb.recordset")
- sql="select top 10 id,art_title,art_count,cat_id,art_date from Gq_article order by art_date DESC"
- rs3.open sql,conn,1,1
- do while not rs3.eof
- %>
- <TABLE cellSpacing=1 cellPadding=1 width="90%" border=0 align="center">
- <TR>
- <TD height="20" valign="middle">· <a href='/showarticle.asp?cat_id=<%=rs3("cat_id")%>&id=<%=rs3("id")%>' target='_blank' Title='文章标题:<%=rs3("art_title")%>
发表时间:<%=rs3("art_date")%>
阅读次数:<%=rs3("art_count")%>次'><font color="#333333"><%=left(rs3("art_title"),25)%>...</font></a></TD>
- </TR>
- </TABLE>
- <%
- rs3.movenext
- loop
- if rs3.eof and rs3.bof then
- response.write "<div align=center><br>当前没有热门文章<br><br></div>"
- end if
- rs3.close
- set rs3=nothing
- %>
- </td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <th>热门文章</th>
- </tr>
- <tr height="3">
- <td height="3" bgcolor="#CCCCCC" width="195"></td>
- </tr>
- <tr>
- <td valign="top"><%
- set rs3=server.createobject("adodb.recordset")
- sql="select top 10 id,art_title,art_count,cat_id,art_date from Gq_article order by art_count DESC"
- rs3.open sql,conn,1,1
- do while not rs3.eof
- %>
- <TABLE cellSpacing=1 cellPadding=1 width="90%" border=0 align="center">
- <TR>
- <TD height="20" valign="middle">· <a href='/showarticle.asp?cat_id=<%=rs3("cat_id")%>&id=<%=rs3("id")%>' target='_blank' Title='文章标题:<%=rs3("art_title")%>
发表时间:<%=rs3("art_date")%>
阅读次数:<%=rs3("art_count")%>次'><font color="#333333"><%=left(rs3("art_title"),25)%>...</font></a></TD>
- </TR>
- </TABLE>
- <%
- rs3.movenext
- loop
- if rs3.eof and rs3.bof then
- response.write "<div align=center><br>当前没有热门文章<br><br></div>"
- end if
- rs3.close
- set rs3=nothing
- %>
- </td>
- </tr>
- </table></td>
- </tr>
- </TABLE>
- <%
- End If
- tee5.footer()
- CloseConn()
- %>