<%
dim id:id=trim(request.querystring("id"))
if not(isnumeric(id)) then id=0
if not(isnumeric(id)) then
call format_redirect("article.asp")
response.end
end if
%>
<%
dim username,topic,word,tim,counter,cname,sname,power,userp,emoney,author,keyes
sql="select jk_class.c_name,jk_sort.s_name,article.* from jk_class,jk_sort,article where jk_class.c_id=article.c_id and jk_sort.s_id=article.s_id and article.hidden=1 and article.id="&id
set rs=conn.execute(sql)
if rs.eof and rs.bof then
rs.close:set rs=nothing:close_conn
call format_redirect("article.asp")
response.end
end if
cid=rs("c_id")
sid=rs("s_id")
username=rs("username")
cname=rs("c_name")
sname=rs("s_name")
topic=rs("topic")
if rs("ishtml")=0 then
word=code_jk(rs("word"))
else
word=rs("word")
end if
tim=rs("tim")
counter=rs("counter")
power=rs("power")
emoney=rs("emoney")
author=rs("author")
keyes=rs("keyes")
rs.close
tit=cname&"("&sname&")"
call web_head(0,0,2,0,0)
call emoney_notes(power,emoney,n_sort,id,"js",0,1,"article_list.asp?c_id="&cid&"&s_id="&sid,p_name)
sql="update article set counter=counter+1 where id="&id
conn.execute(sql)
';------------------------------------left----------------------------------
call font_word_js()
%>
| <% response.write topic %> |
| <%response.write time_type(tim,33)&" 作者:"&author&" "&web_var(web_config,1)%> <%call font_word_action()%> 本文已被浏览 <%response.write counter%> 次 |
|
| <%call font_word_type(word)%> |
|
发布人:<%response.write format_user_view(username,1,1)%>
<%response.write put_type("article")%>
|
<%
sql="select id,topic from article where hidden=1 and id="&id-1
set rs=conn.execute(sql)
if rs.eof and rs.bof then
topic="没有找到相关文章"
else
topic=""&code_html(rs(1),1,30)&""
end if
rs.close
response.write "上篇文章:"&topic&" "
sql="select id,topic from article where hidden=1 and id="&id+1
set rs=conn.execute(sql)
if rs.eof and rs.bof then
topic="没有找到相关文章"
else
topic=""&code_html(rs(1),1,30)&""
end if
rs.close
response.write "下篇文章:"&topic
%>
|
|
<% call article_view_about() %>
<%
call article_view_review()
';---------------------------------center end-------------------------------
call web_end(0)
%>