?? articledetail.asp
字號:
?<!--#include file="conn.asp"-->
<!--#include file="inc/const.asp"-->
<%
if cint(anysale.asGroups(9))=0 then call anysale.asNote("權限出錯","你所在的用戶組沒有瀏覽文章的權限!") end if
dim ID,rs
if request("ID")="" or not isnumeric(request("ID")) then
call anysale.asNote("訪問出錯","參數(shù)不正確,請返回重新訪問!")
else
ID=request("ID")
end if
set rs=conn.execute("select * from as_article where articleID="&ID)
if rs.eof or rs.bof then
call anysale.asNote("訪問出錯","參數(shù)不正確,請返回重新訪問!")
else
conn.execute("update as_article set views=views+1 where articleID="&ID)
if rs("islink")=1 then response.redirect rs("link") end if
call anysale.header("article",rs("title") &" - "& anysale.nav("channel",rs("channelID"),2,"")&"文章資料",rs("title")&","&rs("tags"),rs("intro"))
%>
<%=anysale.ad(62,"class=""banner padT5""")%>
<div class="line5"></div>
<div class="bodyer">
<!--content-->
<div style="float:left;width:692px;">
<!--left-->
<div class="left tab" style="width:690px;">
<div class="tabList">
<ul><li class="line30"> <strong>您的位置:</strong> <a href="index.asp">首頁</a>»<a href="article.asp">文章資料</a><%=anysale.nav("channel",rs("channelID"),0,"articlelist.asp?")%>»<%=rs("title")%></li></ul>
</div>
<div style="padding:20px;">
<ul>
<li><h1 class="txtCen"><%=rs("title")%></h1></li>
<li class="txtCen"><%=rs("addtime")%> 作者:<%=rs("author")%> 來源:<%=rs("source")%> 訪問:<%=rs("views")%> 評論:<a class="redlink" href="comment.asp?groups=7&ID=<%=ID%>"><%=rs("comment")%></a></li>
<li> </li>
<li class="f12 txtCen">
<img src="images/iStar.gif" alt="收藏" width="13" height="12" /> <a href="javascript:anysale();" onclick="getPage('windows.asp?action=favorite&groups=7&title=<%=server.urlEncode(rs("title"))%><%if rs("image")<>"" then%>&image=<%=server.urlEncode(rs("image"))%><%end if%>&link=<%=server.urlEncode("articledetail.asp?ID="&ID)%>');">收藏此信息</a>
<img src="images/iMail.gif" alt="推薦" width="13" height="13" /> <a href="javascript:anysale();" onclick="getPage('windows.asp?action=email&title=<%=server.urlEncode(rs("title"))%>&detail=<%=server.urlEncode("老朋友好久不見,我是“"&anysale.nickname&"”. 我在 "&anysale.asInfo(1)&" 上發(fā)現(xiàn)一信息,也許你會感興趣,看一下? 詳細信息請參看:"&anysale.asInfo(1)&"articledetail.asp?ID="&ID)%>');">推薦給朋友</a>
<img src="images/iNote.gif" alt="舉報" width="12" height="12" /> <a href="javascript:anysale();" onclick="getPage('windows.asp?action=message&username=admin&title=<%=server.urlEncode("舉報文章:"&rs("title"))%>&detail=<%=server.urlEncode(anysale.asInfo(1)&"articledetail.asp?ID="&ID)%>');">舉報此信息</a>
</li>
<li> </li>
<li class="detail" style="width:650px;overflow:hidden;word-wrap:break-word;word-break:normal;">
<%
dim page,ipage,npage,search,detail
detail=rs("detail")
detail=anysale.chkBadWords(detail)
detail=split(detail,"[asPage]")
npage=ubound(detail)+1
page = clng(request("page"))
if page="" or page<1 then page=1 end if
if page>npage then page=npage end if
search="&ID="&ID
if page=1 and rs("intro")<>"" then response.write "<div class=""quote"" style=""margin:0px;"">"&rs("intro")&"</div>" end if
response.write "<br />"&anysale.ad(63,"class=""left border"" style=""width:300px;height:250px;margin:0 10px 10px 0;""")&detail(page-1)
%>
</li>
<li> </li>
</ul>
<ul class="clear"><li class="txtCen f14"><%if npage>1 then call anysale.pagelink(page,npage,"articledetail.asp?",search) end if%></li></ul>
<ul class="clear"><li> </li></ul>
</div>
</div>
<div class="line5"></div>
<div class="tab" style="width:690px;">
<div class="tabList">
<div><ul class="linkN" onMouseOver="this.className='linkH'" onMouseOut="this.className='linkN'"><li class="linkL"> </li><li class="linkM"><a href="comment.asp?groups=7&ID=<%=ID%>">共有<%=rs("comment")%>條評論,點擊查看</a></li><li class="linkR"> </li></ul></div>
<div><ul class="tabH"><li class="tabL"> </li><li class="tabM">發(fā)表評論</li><li class="tabR"> </li></ul></div>
</div>
<form name="commentForm" id="commentForm" method="post">
<div style="padding:20px;" id="saveComment">
<ul>
<li><textarea name="detail" style="width:647px;" rows="10"></textarea></li>
<li class="line5"></li>
<li>
<span class="right">
<input type="checkbox" name="noname" vlaue="1" /> 匿名
<input type="button" name="button" value="發(fā)表評論"
onclick="getPage('comment.asp?action=saveAdd','saveComment',1,'commentForm');"
class="button" onmouseover="this.className='buttonH'" onmouseout="this.className='button'" />
<input type="hidden" name="ID" value="<%=ID%>" />
<input type="hidden" name="groups" value="7" />
</span>
共有<%=rs("comment")%>條評論<%if anysale.userID="" then response.write",您可匿名發(fā)表評論,或登錄后再發(fā)表評論。" end if%>
</li>
</ul>
</div>
</form>
</div>
<!--left.end-->
</div>
<div style="float:left;width:252px;margin:0 0 0 6px;">
<!--right-->
<div class="tab" style="width:250px;">
<div class="tabList">
<div><ul class="tabH"><li class="tabL"> </li><li class="tabM">最新文章</li><li class="tabR"> </li></ul></div>
</div>
<div style="padding:9px;">
<ul>
<%
dim rsf
set rsf=conn.execute("select top 11 articleID,title from as_article where islock=0 order by articleID desc")
if not (rsf.bof and rsf.eof) then
do while not rsf.eof
%>
<li>·<a href="articledetail.asp?ID=<%=rsf(0)%>"><%=anysale.cutStr(rsf(1),16)%></a></li>
<%
rsf.movenext
loop
end if
rsf.close:set rsf=nothing
%>
</ul>
</div>
</div>
<div class="line5"></div>
<div class="tab" style="width:250px;">
<div class="tabList">
<div><ul class="tabH"><li class="tabL"> </li><li class="tabM">熱門文章</li><li class="tabR"> </li></ul></div>
</div>
<div style="padding:9px;">
<ul>
<%
dim rsh,n
set rsh=conn.execute("select top 11 articleID,title from as_article where islock=0 order by views desc")
if not (rsh.bof and rsh.eof) then
n=1
do while not rsh.eof and n<12
%>
<li>·<a href="articledetail.asp?ID=<%=rsh(0)%>"><%=anysale.cutStr(rsh(1),16)%></a></li>
<%
rsh.movenext
n=n+1
loop
end if
rsh.close:set rsh=nothing
%>
</ul>
</div>
</div>
<div class="line5"></div>
<div class="tab" style="width:250px;">
<div class="tabList">
<div><ul class="tabH"><li class="tabL"> </li><li class="tabM">推薦文章</li><li class="tabR"> </li></ul></div>
</div>
<div style="padding:9px;">
<ul>
<%
dim rse
set rse=conn.execute("select top 11 articleID,title from as_article where iselite=1 and islock=0 order by articleID desc")
if not (rse.bof and rse.eof) then
do while not rse.eof
%>
<li>·<a href="articledetail.asp?ID=<%=rse(0)%>"><%=anysale.cutStr(rse(1),16)%></a></li>
<%
rse.movenext
loop
end if
rse.close:set rse=nothing
%>
</ul>
</div>
</div>
<%if anysale.ad(64,"")<>"" then%>
<div class="line5"></div>
<div class="tab" style="width:250px;">
<div class="tabList">
<div><ul class="tabH"><li class="tabL"> </li><li class="tabM">贊助商鏈接</li><li class="tabR"> </li></ul></div>
</div>
<%=anysale.ad(64,"")%>
</div>
<%end if%>
<!--right.end-->
</div>
<!--content.end-->
</div>
<%
anysale.footer
end if
rs.close
set rs=nothing
call closeConn()
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -