<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/sql.asp"-->
<%end if%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<link rel="Shortcut Icon" href="Images/favicon.ico">
<link rel="Bookmark" href="Images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<TITLE><%= homename %>--资讯中心</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<link href="css/dgjob.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top.asp"-->
<!-- 头部内容结束 -->
  <table width="973" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="top">
	  <table width="973" border="0" cellspacing="0" cellpadding="0" align="center" height="17">
          <tr>
            <td height="17" align="center"><img src="images/hr/cp.gif" width="973"></td>
          </tr>
        </table>
          <table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0" class="crop_12black">
            <tr valign="top">
              <td width="38%" height="35" align="left" valign="middle">&nbsp;&nbsp;当前位置：首页 &gt; 培训教程 &gt; <span class="style1">
<%
	type_id=ReplaceBadChar(Trim(Request.QueryString("type_id")))
	action=ReplaceBadChar(Trim(Request.QueryString("action")))
	id=ReplaceBadChar(int(Request.QueryString("type_id")))
	class1=ReplaceBadChar(int(request("class"))) '文章类别
	how=ReplaceBadChar(int(request("how"))) '2为文章内容,1为文章标题
	what=ReplaceBadChar(trim(request("what"))) '关键字
	if what="" then
		if type_id="tj" then
			typeword= "推荐新闻"
		elseif type_id="hot" then
			typeword= "热点新闻"
		else
			set rs_area=server.createobject("adodb.recordset")
			sql="select * from newstype where id="&type_id&""
			rs_area.open sql,conn,1,1
			typeword= rs_area("type")
			rs_area.close
			set rs_area=nothing
		end if
	else
		typeword=what
	end if
	Response.Write(""&typeword&"</span></td>")

	set rs_news=server.createobject("adodb.recordset")
	
	if how=1 then ctype="title"
	if how=2 then ctype="text"
	
	if 	type_id="tj" then
		sql="select * from companynews where tj=1 order by id desc"
	elseif 	type_id="hot" then
		sql="select * from companynews where thot=1 order by id desc"
	else
		if action="search" then
			if what="" then
				response.write "<script language=JavaScript>alert('请填写关键字！');" & "window.close()" & "</script>"
				response.end
			end if
			if class1=0 then
				sql="select * from companynews where "&ctype&" like '%"&what&"%' order by id desc"
			else
				sql="select * from companynews where cate="&class1&" and "&ctype&" like '%"&what&"%' order by id desc"
			end if
		else
			sql="select * from companynews where cate="&id&" order by id desc"
		end if
	end if
	rs_news.PageSize = 19 '这里设定每页显示的记录数
	rs_news.CursorLocation = 3
	rs_news.open sql,conn,1,1
	pre = true
	last = true
	page = ReplaceBadChar(trim(Request.QueryString("page")))'变量是跳转页面时的值

	if len(page) = 0 then
		intpage = 1
		pre = false
	else
		if cint(page) =< 1 then
			intpage = 1
			pre = false
		else
			if cint(page) >= rs_news.PageCount then
				intpage = rs_news.PageCount
				last = false
			else
				intpage = cint(page)
			end if
		end if
	end if
	if not rs_news.eof then
		rs_news.AbsolutePage = intpage
	end if
	newsnum=rs_news.recordcount
%>
              <td width="62%" align="center" valign="middle">本栏目共 <%=newsnum%> 条信息，分 <%=rs_news.PageCount%>页显示，现在位于第 <%=intpage%> 页</td>
            </tr>
          </table>
        <TABLE width=100% border=0 align=center cellpadding="0" cellspacing="0">
  <tr> 
   <td valign="top" bgcolor="#FFFFFF">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
		<td width="206" valign="top"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><table width="200" height="111" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="10" valign="top"><img src="images/hr/ta_s2_t_le.gif" width="10" height="10"></td>
                    <td width="211" background="images/hr/ta_s2_t_bg.gif"><img src="images/hr/ta_s2_t_bg.gif" width="1" height="10"><img src="images/hr/ta_s2_t_bg.gif" width="1" height="10"></td>
                    <td width="10"><div align="right"><img src="images/hr/ta_s2_t_ri.gif" width="10" height="10"></div></td>
                  </tr>
                  <tr>
                    <td height="91" valign="top" background="images/hr/ta_s2_l_bg.gif"><img src="images/hr/ta_s2_l_bg.gif" width="10" height="1"></td>
                    <td height="91" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#ECF3FD">
                        <tr>
                          <td width="14%" height="20" align="center"><img src="images/hr/c_arrow_1.gif" width="9" height="7" align="absmiddle"></td>
                          <td width="86%" height="20" valign="bottom" class="s3">文章搜索</td>
                        </tr>
                      </table>
                        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td colspan="4">
							<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class=normal>
							<form name=search method="get">
							<input name="action" type="hidden" value="search">
                                  <tr>
                                    <td width="49%" height="30" valign="bottom"><div align="left"><font color="#666666"><span class="text12"></span></font>请输入关键字 &nbsp;</div></td>
                                    <td width="51%" height="30" valign="bottom">
									<input class="smallInput" name="what" size=10 onFocus="this.value=''" value="关键字"></td>
                                  </tr>
                        <tr>
                         <td width="49%" height="33"><div align="left"><font color="#666666"></font>选择文章类别</div></td>
                         <td width="51%" height="33">
                        <select size="1" name="class">
                            <OPTION VALUE="">所有类别</OPTION>
							<%
                                set rs_area=server.createobject("adodb.recordset")
                                sql="select * from newstype order by id asc"
                                rs_area.open sql,conn,1,1
                                for i_area=1 to rs_area.recordcount
                                response.write "<OPTION VALUE="&rs_area("id")&">"&rs_area("type")&"</OPTION>"
                                rs_area.movenext
                                if rs_area.eof then exit for
                                next
                                rs_area.close
                                set rs_area=nothing
                            %>
                        </select>
                          </td>
                         </tr>
                          <tr>
                            <td width="49%" height="33"><div align="left"><font color="#666666"></font>选择搜索条件</div></td>
                            <td width="51%" height="33">
                        <select size="1" name="how">
                        	<option selected value="1">按文章标题</option>
                        	<option value="2">按文章内容</option>
                        </select>
                                    </td>
                                  </tr>
                                  <tr valign="bottom">
                                    <td height="25" colspan=2 align=center>
                                        <input name=image type=image src="images/hr/bu_7.gif" alt=登录 border=0>
                                    </td>
                                  </tr>
                                </form>
                            </table>
							</td>
                          </tr>
                      </table></td>
                    <td width="10" valign="top" background="images/hr/ta_s2_r_bg.gif"><div align="right"><img src="images/hr/ta_s2_r_bg.gif" width="10" height="1"></div></td>
                  </tr>
                  <tr>
                    <td valign="bottom"><img src="images/hr/ta_s2_b_le.gif" width="10" height="10"></td>
                    <td background="images/hr/ta_s2_b_bg.gif"><img src="images/hr/ta_s2_b_bg.gif" width="1" height="10"></td>
                    <td width="10"><div align="right"><img src="images/hr/ta_s2_b_ri.gif" width="10" height="10"></div></td>
                  </tr>
                </table>
                  <table width="92" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="10"><img src="img/apl.gif" width="2" height="2"></td>
                    </tr>
                  </table>
                  <table width="200" height="167" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="10" valign="top"><img src="images/hr/ta_s2_t_le.gif" width="10" height="10"></td>
                      <td width="211" background="images/hr/ta_s2_t_bg.gif"><img src="images/hr/ta_s2_t_bg.gif" width="1" height="10"><img src="images/hr/ta_s2_t_bg.gif" width="1" height="10"></td>
                      <td width="10"><div align="right"><img src="images/hr/ta_s2_t_ri.gif" width="10" height="10"></div></td>
                    </tr>
                    <tr>
                      <td height="147" valign="top" background="images/hr/ta_s2_l_bg.gif"><img src="images/hr/ta_s2_l_bg.gif" width="10" height="1"></td>
                      <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#ECF3FD">
                          <tr>
                            <td width="14%" height="20" align="center"><img src="images/hr/c_arrow_1.gif" width="9" height="7"></td>
                            <td width="86%" height="20" valign="bottom" class="s3">文章类别</td>
                          </tr>
                        </table>
                          <table width="92%" border="0" align="center" cellpadding="0" cellspacing="0" class=normal>
<%
	set rs_area=server.createobject("adodb.recordset")
	sql="select * from newstype order by id asc"
	rs_area.open sql,conn,1,1
	for i_area=1 to rs_area.recordcount

%>
                            <tr alifn=center>
                              <td height="10" colspan=4 bgcolor="#FBFCFF"><img height="1" width="1"></td>
                            </tr>
                            <tr align=center bgcolor="#F0F4FD">
                              <td width=56 height="22" align="right" >                              </td>
                              <td width="12" height="22" align="left" >&nbsp;</td>
                              <td width="126" height="22" align="left" ><a href="hr_all.asp?type_id=<%= rs_area("id") %>"><font color="<%if int(Request.QueryString("type_id"))=int(rs_area("id")) then Response.Write("#FF0000")%>"><%= rs_area("type") %></font></a></td>
                            </tr>
<%
	rs_area.movenext
	if rs_area.eof then exit for
	next
	rs_area.close
	set rs_area=nothing
%>
							
                          </table>
						  </td>
                      <td width="10" valign="top" background="images/hr/ta_s2_r_bg.gif"><div align="right"><img src="images/hr/ta_s2_r_bg.gif" width="10" height="1"></div></td>
                    </tr>
                    <tr>
                      <td valign="bottom"><img src="images/hr/ta_s2_b_le.gif" width="10" height="10"></td>
                      <td background="images/hr/ta_s2_b_bg.gif"><img src="images/hr/ta_s2_b_bg.gif" width="1" height="10"></td>
                      <td width="10"><div align="right"><img src="images/hr/ta_s2_b_ri.gif" width="10" height="10"></div></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
          <td width=2 background="images/hr/bg_dot.gif"></td>  
          <td width="100%" valign="top"> 
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
              <tr>
                <td bgcolor="#FFFFFF">
				<table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="1" height="25"><img src="images/hr/ta_s3_edg.gif" width="1" height="25"></td>
                    <td width="22" valign="bottom" background="images/hr/ta_s3_bg.gif"><div align="center"><img src="images/hr/ar_4.gif" width="4" height="15"></div></td>
                 <td width="534" valign="bottom" background="images/hr/ta_s3_bg.gif"><span class="style1">
<%
	if what="" then
		Response.Write(typeword)
	else
		response.write "搜索关键字为"&what&"的文章"
	end if
%>
</span>
</td>
   </tr>
      </table>
		</td>
           </tr>
              <tr>
                <td height="80" align="left" bgcolor="#FFFFFF"> 
                  <table width="101%" border="0" cellpadding="0" cellspacing="5" class=gray>
<%
	for i=1 to rs_news.PageSize
	if rs_news.EOF or rs_news.BOF then exit for
	begint=datediff("d",rs_news("idate"),now())
%>
<tr valign="bottom"> 
  <td width="78%"><span class="style2">&nbsp;·</span><a href="view_news.asp?id=<%=rs_news("id")%>" target="_blank"><font color="<%=rs_news("tcolor")%>"><%=rs_news("title")%></font></a><% If begint<10 Then Response.Write("<img src='images/new.gif'>")%></td>
  <td width="22%" height="20">发表于:<%=rs_news("idate")%></td>
</tr>  
<%
	rs_news.movenext
	next
%>
 </table>
<table class=normal border=0 cellpadding=0 cellspacing=0 height=18 width="100%">
<tr>
<td align="right">
<%
	if action="search" then
%>
<table width="99%" border="0" cellpadding="2" cellspacing="2" borderColorLight=#808080 borderColorDark=#ffffff>
<tr>
<%if rs_news.pagecount > 0 then%>
<td width="13%" align="left">当前页<%=intpage%>/<%=rs_news.PageCount%></td>
<%else%>
<td width="41%" align="left">当前页0/0</td><%end if%>
<td width="46%" align="right"> <a href="?page=1&what=<%=Trim(Request.QueryString("what"))%>&class=<%=Trim(Request.QueryString("class"))%>&how=<%=Trim(Request.QueryString("how"))%>&action=search">首页</a>|
<%if pre then%>
<a href="?page=<%=intpage -1%>&what=<%=Trim(Request.QueryString("what"))%>&class=<%=Trim(Request.QueryString("class"))%>&how=<%=Trim(Request.QueryString("how"))%>&action=search">上页</a>| <%end if%>
<%if last then%>
<a href="?page=<%=intpage +1%>&what=<%=Trim(Request.QueryString("what"))%>&class=<%=Trim(Request.QueryString("class"))%>&how=<%=Trim(Request.QueryString("how"))%>&action=search">下页</a> |<%end if%>
<a href="?page=<%=rs_news.PageCount%>&action=search">尾页</a>|转到第
<select name="sel_page" onchange=javascript:location.href=this.options[this.selectedIndex].value>
<%
	for i = 1 to rs_news.PageCount
	if i = intpage then
%>
<option value="?page=<%=i%>&what=<%=Trim(Request.QueryString("what"))%>&class=<%=Trim(Request.QueryString("class"))%>&how=<%=Trim(Request.QueryString("how"))%>&action=search" selected><%=i%></option>
<%else%> 
<option value="?page=<%=i%>&what=<%=Trim(Request.QueryString("what"))%>&class=<%=Trim(Request.QueryString("class"))%>&how=<%=Trim(Request.QueryString("how"))%>&action=search"><%=i%></option>
<%
	end if
	next
	rs_news.close
	set rs_news=nothing
%>
</select>页</font>
</td>
</tr>
</table>
<% Else %>
<table width="99%" border="0" cellpadding="2" cellspacing="2" borderColorLight=#808080 borderColorDark=#ffffff>
<tr>
<%if rs_news.pagecount > 0 then%>
<td width="13%" align="left">当前页<%=intpage%>/<%=rs_news.PageCount%></td>
<%else%>
<td width="41%" align="left">当前页0/0</td><%end if%>
<td width="46%" align="right"> <a href="?page=1&type_id=<%= Trim(Request.QueryString("type_id")) %>">首页</a>|
<%if pre then%>
<a href="?page=<%=intpage -1%>&type_id=<%= Trim(Request.QueryString("type_id")) %>">上页</a>| <%end if%>
<%if last then%>
<a href="?page=<%=intpage +1%>&type_id=<%= Trim(Request.QueryString("type_id")) %>">下页</a> |<%end if%>
<a href="?page=<%=rs_news.PageCount%>&type_id=<%= Trim(Request.QueryString("type_id")) %>">尾页</a>|转到第
<select name="sel_page" onchange=javascript:location.href=this.options[this.selectedIndex].value>
<%
	for i = 1 to rs_news.PageCount
	if i = intpage then
%>
<option value="?page=<%=i%>&type_id=<%= Trim(Request.QueryString("type_id")) %>" selected><%=i%></option>
<%else%> 
<option value="?page=<%=i%>&type_id=<%= Trim(Request.QueryString("type_id")) %>"><%=i%></option>
<%
	end if
	next
	rs_news.close
	set rs_news=nothing
%>
</select>页</font>
</td>
</tr>
</table>
<% End If %>
</td></tr></table>
	    </td>
          </tr>
            </table> 
       		   </td>
       		 </tr>
          </table>
		 </td>
      </tr>
    </table>
   </TABLE>
</td>
</tr>
</table>
  <table width="973" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td>
	  	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="5" bgcolor="049bed"></td>
          </tr>
      	</table>
	  </td>
    </tr>
</table>
<!--#include file="end.asp"-->
