<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<%Call SQLin()
newsid=request("newsid")
if newsid="" or not IsNumeric(newsid) then
response.Write ("<script language='JavaScript'>alert('该页面不存在，请访问其他内容');location.href='JavaScript:history.back()';</script>")
Response.end()
end if
if not Chkrequest(newsid) then
	response.Write ("<script language='JavaScript'>alert('该页面不存在，请访问其他内容');location.href='JavaScript:history.back()';</script>")
Response.end()
end if
'读取文章信息
set rs=conn.execute("select * from JOB_news where N_id="&newsid&"")
if not rs.eof then
newsid=rs("N_id")
typeid=rs("N_sid")
ChannelID=rs("N_cid")
news_Title=rs("N_Title")
news_Content=rs("N_Content")
dateandtime=rs("N_addtime")
if rs("N_overview")<>"" then
news_info="<div class='newsoverview'><strong>文章概况：</strong>"&rs("N_overview")&"</div>"
end if
news_from=rs("N_from")
if rs("N_author")<>"" then
news_author=rs("N_author")
else
news_author="未知"
end if
if rs("N_editor")<>"" then
news_editor=rs("N_editor")
else
news_editor="未知"
end if
news_hits=rs("N_hits")
else
response.Write ("<script language='JavaScript'>alert('该页面不存在，请访问其他内容');location.href='JavaScript:history.back()';</script>")
Response.end()
end if
rs.close
set rs=nothing
session(FRHRCMS&"ChannelID") = ChannelID
session(FRHRCMS&"TypeID") = typeid
'读取栏目名称
set rs=conn.execute("select * from JOB_newssort where S_id="&typeid&"")
news_typename=rs("S_name")
rs.close
set rs=nothing
'读取频道名称
set rs=conn.execute("select * from JOB_Channel where ChannelID="&ChannelID&"")
ChannelName=rs("ChannelName")
UseCreateHTML=rs("UseCreateHTML")
ChannelKeywords=rs("Meta_Keywords")
ChannelDescription=rs("Meta_Description")
set rs=nothing
'读取模版内容
html=LoadTemplate(ChannelID,3,0)
html=Replace(html,"{$FR_频道地址}",FormatLink(0,ChannelID,0,0,0))
html=Replace(html,"{$FR_频道名称}",ChannelName)
html=Replace(html,"{$FR_频道关键词}",""&ChannelKeywords&"")
html=Replace(html,"{$FR_频道描述}",""&ChannelDescription&"")
html=Replace(html,"{$FR_频道栏目}",GetArticletype(ChannelID,0))
html=Replace(html,"{$FR_栏目地址}",FormatLink(0,ChannelID,typeid,0,0))
html=Replace(html,"{$FR_栏目名称}",news_typename)
html=Replace(html,"{$FR_文章编号}",newsid)
html=Replace(html,"{$FR_文章关键词}",ClearColor(news_Title))
html=Replace(html,"{$FR_文章描述}",ClearColor(news_Title))
html=Replace(html,"{$FR_文章标题}",ClearColor(news_Title))
html=Replace(html,"{$FR_文章作者}",news_author)
html=Replace(html,"{$FR_更新时间}",dateandtime)
html=Replace(html,"{$FR_文章来源}",news_from)
html=Replace(html,"{$FR_文章概况}",news_info)
html=Replace(html,"{$FR_查看次数}","<span id='hits'></span>")
html=Replace(html,"{$FR_文章内容}",news_Content)
html=Replace(html,"{$FR_文章编辑}",news_editor)
html=Replace(html,"{$FR_文章上一篇}",ShowHead(typeid,newsid))
html=Replace(html,"{$FR_文章下一篇}",ShowNext(typeid,newsid))
html=Replace(html,"{$FR_评论文本框}","<textarea name='pj_content' style='width:400px; height:60px; border:1px #CCCCCC solid; '></textarea>")
html=ReplaceLableFlag(ReplaceAllLabel(html))
Response.Write(CreateHTMLReplace(html))
Call CloseConn()
%>