<!--#include file="Conn.asp" -->
<!--#include file="Comm/Site_Class.asp" -->
<!--#include file="Comm/Function.asp" -->
<%

Set Qsite = New Site_Class

Qsite.SiteConfig()
Qsite.GotoErrPage()

Dim id,NewsTypeName,newsTypeId

Dim Rs,i
Dim NewsId,NewsTitle,NewsContent,AddDate,clicknum

Set Rs = server.createobject("ADODB.Recordset")

Id = Qsite.chgStr(Trim(Request.QueryString("id")))

If Id = "" Or IsNull(Id) Or Not IsNumeric(Id) Then Id = 0

Rs.Open "select * from NewsTbl where NewsId = "&Id , Conn , 1 , 3
If Rs.eof Then
	call infohref("此数据不存在或已被删除", "news_index.asp")
Else
	clicknum = rs("clicknum")
	if isnull(clicknum) = true then
	rs("clicknum") = 0
	end if
	
	NewsTitle = Rs("NewsTitle")
	NewsContent = Rs("NewsContent")
	clicknum=RS("clicknum")
	NewsTypeId=RS("NewsTypeId")
	AddDate = Qsite.FormatDate(FormatDateTime(Rs("AddDate") , 2))	
	RS("clicknum")= clicknum + 1
	
	RS.update
End If
Rs.Close

Set Rs = nothing

NewsTypeName = NewsType_Name(NewsTypeId)
%>
<TITLE><%=NewsTitle%> - <%=Qsite.SiteName%></TITLE>
<meta name="keywords" content="<%=NewsTitle%>，<%=Qsite.SiteName%>" />
<meta name="description" content="文章《<%=NewsTitle%>》由<%=Qsite.SiteName%>提供。" />

<div align="center">
<div style=" width:960px; height:auto; background-color:#FFF;">
<!--#include file="header.asp" -->
<link href="css/News.css" rel="stylesheet" type="text/css" />

<div class="center_zczx">
<div class="zczx_left">
<div id="weizhi">
&nbsp;&nbsp;当前位置：<a href="/" title="<%=Qsite.SiteName%>"><%=Qsite.SiteName%></a> > <a href="news_Index.asp" title="职场资讯">职场资讯</a> > <a href="News_More.asp?Id=<%=NewsTypeId%>" title="<%=NewsTypeName%>"><%=NewsTypeName%> ></a> <%=(NewsTitle)%>
</div>
<div id="zcxx_left">
<div style="height:auto;border-bottom:1px #999 solid;text-align:center; width:600px; margin-left:16px;">
<h2><%=NewsTitle%></h2>
<font class="laiyuan">来源：<a href="/" target="_blank" title="<%=Qsite.SiteName%>"><%=Qsite.SiteName%></a> 发布：<%=AddDate%>
作者：<A href="/" target="_blank" title="<%=Qsite.SiteName%>">jilinzhaopin.com</A>
已浏览：<%=clicknum%> 次</font>
</div>



<div style="text-align: left;padding:10px;font-size:14px;">
<%=NewsContent%>
</div>
</div>
<div style="clear:both"></div>
</div>
<div class="zczx_right">
        <div class="zczx_right_box">
        <div id ="zczx_right_title">点击排行</div>
        <ul class="zxcx_right_list yanse">
          <%
	Set rs = server.CreateObject("adodb.recordset")
    rs.Open "select NewsId,newsTitle,clicknum from NewsTbl order by clicknum desc", conn, 1, 1
	i = 1
    Do While Not rs.EOF
	i=i+1
%>      
     <li> <span style="color:#999;"><%=rs("clicknum")%></span> <a href="news.asp?id=<%=Rs("NewsId")%>" target="_blank"><%=left(Rs("NewsTitle"),13)%></a> </li>
          
          <%
    rs.movenext
	if i >8 then exit do
    Loop
    rs.Close
    Set rs = Nothing
%>
</ul>
     <div style="clear:both"></div>
   </div>
        <div class="zczx_right_box">
         <div id ="zczx_right_title">最新资讯</div>
         <ul class="zxcx_right_list yanse">
          <%
Set rs = server.CreateObject("adodb.recordset")
 
    rs.Open "select top 8 * from NewsTbl order by AddDate desc", conn, 1, 1
    Do While Not rs.EOF
%>
          
            <li> <span style="float:right;color=#999999"><%=FormatDateTime(Rs("AddDate") , 2)%></span> <a href="news.asp?id=<%=Rs("NewsId")%>" target="_blank"><%=left(rs("NewsTitle"),13)%></a> </li>
          
          <%
    rs.movenext
    Loop
    rs.Close
    Set rs = Nothing
%>
</ul>
          <div style="clear:both"></div>
        </div>
        <div class="zczx_right_box">
         <div id ="zczx_right_title">相关内容</div>
         <ul class="zxcx_right_list yanse">
          <%
Set Rs = server.createobject("ADODB.Recordset")
Rs.Open "select top 8 * from NewsTbl where NewsTypeId = "&NewsTypeId &" order by AddDate desc" , Conn , 1 , 1
Do While Not Rs.Eof
%>
          
            <li><a href="News.asp?Id=<%=Rs("NewsId")%>" target="_blank"><%=left(rs("NewsTitle"),13)%></a></li>
          
<%
rs.movenext
loop
rs.close
set rs = nothing
%>
</ul>
          <div style="clear:both"></div>
        </div>
        <div style="clear:both"></div>
      </div>
	
</div>


<DIV style="CLEAR: both"></DIV>

<!--#include file="foot.asp" -->
</div>
</div>
