<!--#include file="../Include/Conn.asp" -->
<!--#include file="../Include/Char.asp" -->
<!--#include file="../Include/const.asp" -->
<!--#include file="../Include/function.asp" -->
<%
m_CateogryID = Request.QueryString("CategoryID")
m_SQL = "SELECT F_ID,F_Value FROM jy_newsCategory WHERE F_ID="&m_CateogryID
SET rst = conn.Execute(m_SQL)
if Not rst.Eof then m_CategoryName = rst(1) else m_CategoryName = ""
rst.Close
%>
<HTML><HEAD><TITLE><% = m_CategoryName %>-<%=site_info(0)%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>

<link href="../Include/style1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style8 {color: #FF0000}
.style9 {color: #3399FF}
.style11 {color: #333333; font-family: "宋体";}
-->
</style>
</HEAD>
<!--#include file="../Include/top.asp" -->
<table width="770" height="1" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" bgcolor="#111111" id="AutoNumber27" style="border-collapse: collapse">
  <tr>
    <td width="100%"></td>
  </tr>
</table>
<table width="770" border="0" align="center" bgcolor="#F7F7F7">
  <tr>
    <td width="100%"><%if session("puid")<>"" then%>
        <table width="100%" border="0" align="center" cellspacing="3" class="a">
          <tr>
            <td width="100%" align="center"><font color="#FF0000"><%=session("puid")%></font> ，您好！欢迎登陆<%=site_info(0)%><a href="../person/main.asp"> 　会员管理中心</a> <a href="../person/modify.asp">　维护简历</a> <a href="../person/exit.asp">　退出</a> </td>
          </tr>
        </table>
        <%else if session("cuid")<>"" then%>
        <table width="100%" border="0" cellpadding="0" cellspacing="3" class="a">
          <tr>
            <td width="100%" align="center"><font color="#FF0000"><%=session("cuid")%></font> ，您好！欢迎登陆<%=site_info(0)%> <a href="../company/main.asp">　会员管理中心</a> <a href="../company/publish.asp">　发布信息</a> <a href="../company/exit.asp">　退出</a> </td>
          </tr>
        </table>
        <%else%>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <FORM name=login action=../main/login.asp method=post>
            <tr>
              <td><div align="right">会员名：
                      <input name="uname" type="text" class="oblique" id="txtUserName" size="10" />
              </div></td>
              <td valign="middle"><div align="right">密　码：
                      <input name="pwd" type="password" id="txtPassword2" size="10" />
              </div></td>
              <td valign="middle"><div align="right">个人会员：
                      <input type="radio" name="usertype" value="person"  class="input3"/>
              </div></td>
              <td valign="middle"><div align="right">企业会员：<font size="2">
                  <input name="usertype" type="radio" value="company" checked="checked" class="input3" />
              </font></div></td>
              <td valign="middle"><font size="2">&nbsp; </font>
                  <input name="image2" type="image"   src="../image/submit.jpg" ></td>
              <td valign="middle"><a href="../main/pro_add.asp"><img src="../image/pro_but.gif" width="74" height="25" border="0"></a></td>
              <td valign="middle"><a href="../main/cpn_add.asp"><img src="../image/cpn_but.gif" width="74" height="25" border="0"></a></td>
            </tr>
          </form>
        </table>
        <%end if%>
        <%end if%>
    </td>
  </tr>
</table>
<table width="770" height="1" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" bgcolor="#111111" id="AutoNumber27" style="border-collapse: collapse">
  <tr>
    <td width="100%"></td>
  </tr>
</table>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="a">
  <tr>
    <td height="281"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="177" height="249" valign="top" bgcolor="#FFFFFF"><!--#include file="../main/left.asp" --></td>
        <td valign="top" bgcolor="#FFFFFF"><table width="100%" height="150" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="150" valign="middle"><div align="left" class="a">
              <TABLE width=100% height="80%" border=0 cellPadding=0 cellSpacing=3 bgColor=#ffffff>
                <TR>
                  <TD height=37 background="../image/new1.jpg"><DIV align=center></DIV>                    <!--最新个人求职信息-->
                      <TABLE width="100%" height="35" border=0 cellPadding=0 cellSpacing=0>
                          <TR>
                            <TD width="2%" height="37">&nbsp;</TD>
                            <TD width="4%"><img src="../image/home.gif" width="20" height="20"></TD>
                            <TD width="12%"><span class="style11">您的位置→</span></TD>
                            <TD width="62%"><span class="style8"><span class="style9"><a href="../main/index.asp"><%=site_info(0)%></a></span></span><span class="style8"><span class="style1">→</span>                                
                                <% = m_CategoryName %>
                              </span></TD>
                            <TD width="20%">&nbsp;</TD>
                          </TR>
                      </TABLE></TD>
                  </TR>
                <TR bgColor=#eeeeee>
                  <TD><div align="center">
                    <% set rs=server.createobject("adodb.recordset")
     sql="SELECT * FROM jy_ad WHERE c_id=6 ORDER BY id DESC"
     rs.open sql,conn,1,1
           if rs.eof then
    else
	total=rs.recordcount
	Randomize 
    D1 = Fix(Rnd * total)
	for i=1 to D1
	  rs.movenext
	next	 %> 
      	<%if rs("type")="GIF" then
	%>
	<%if rs("url")<>"" then%><A HREF="<%=rs("url")%>" target=_blank><img alt="黄金广告" src="<%=rs("src")%>" width="<%=rs("width")%>" height="<%=rs("height")%>" border=0 align=middle></A><%else%><img alt="黄金广告" src="<%=rs("src")%>" width="<%=rs("width")%>" height="<%=rs("height")%>" border=0 align=middle><%end if%><%else%><embed src="<%=rs("src")%>" type="application/x-shockwave-flash" width="<%=rs("width")%>" height="<%=rs("height")%>"><%end if%><%end if%>

                  </div></TD>
                </TR>
              </TABLE>
            </div></td>
          </tr>
        </table>
          <table width="563" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><hr></td>
                  </tr>
                  <tr>
                    <td><table width="100%" border="0.5" cellpadding="2" cellspacing="0" bordercolor="#CCCCCC">
                        <%
    dim m_RecordCount,m_PageNo,m_Page
    m_RecordCount=0 : m_PageNo=0 : m_Page=0
	m_PageSize = 26 '每页显示数录数
    m_PageNo = Trim(Request.querystring("PageNo"))
	Set rs = Server.createobject("Adodb.RecordSet")

    m_Keywords = checkStr(Trim(Request("Keywords")))
    m_CategoryID = checkStr(Trim(Request("CategoryID")))

	m_Parameter = "Keywords="&m_Keywords&"&CategoryID="&m_CategoryID
    m_SQL = "SELECT * FROM jy_news WHERE (1=1)"
    If (m_CategoryID <> "-1") and (m_CategoryID <> "") then
	  m_SQL = m_SQL + " and F_CategoryID="&m_CategoryID
	End if
    m_SQL = m_SQL +" and F_Title like  '%" & m_Keywords & "%'"
	m_SQL = m_SQL +" and F_Contents like  '%" & m_Keywords & "%'"
	m_SQL = m_SQL +" ORDER BY F_Addtime DESC"
	'RESPONSE.WRITE M_SQL
	rs.open m_SQL,conn,1,1
	if rs.Eof then
	   response.write "<br><p align='center'><font color=ffffff><B>对不起，暂无数据.</B></font></p><br>"
    else
      m_RecordCount = rs.RecordCount
      rs.PageSize = m_PageSize
      m_Page = rs.PageCount
      if m_PageNo = ""  then m_PageNo =1
      if cint(m_PageNo) < 1 or cint(m_PageNo) > m_Page then m_PageNo = 1
      rs.AbsolutePage = m_PageNo
      rc = m_PageSize
      re = 1
	  m_Count = 0'另加
      Do while not rs.eof and rc>0
	  m_Count = m_Count +1'另加
	  if m_Count mod 2 then m_BgColor = "ffffff" else m_BgColor = "efefef" '另加
        '---------------------------------
		'调用显示内容
        ShowContent()
        '---------------------------------

	  rs.MoveNext
      re = re+1
      rc = rc-1
    Loop
	rs.Close
 End if	
 Sub ShowContent()
 %>
                        <tr>
                          <td colspan="2"><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                            <TR>
                              <TD vAlign=top><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" id="AutoNumber36" style="border-collapse: collapse">
                                  <tr align="center" bgcolor="#FFFFFF">
                                    <td height="20"><div align="left"><a  href="ShowNews.asp?ID=<%=rs("F_ID")%>">· <%=GetWord(rs("F_Title"),55,"...")%></a></div></td>
                                    <td width="21%" height="20"><a  href="ShowNews.asp?ID=<%=rs("F_ID")%>">  </a><font color="#666666"><font colord=red><%=formatdatetime(rs("F_Addtime"),1)%></td>
                                  </tr>
                                </table>
                              </TD>
                            </TR>
                          </TABLE></td>
                          </tr>
                        <tr>
                        </tr>
                        <% 
end sub
%>
                    </table></td>
                  </tr>
                </table>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><%Call ShowPage(m_Parameter)%>
                      </td>
                    </tr>
                </table></td>
            </tr>
          </table>
          <table width="100%" height="1" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" bgcolor="#111111" id="AutoNumber27" style="border-collapse: collapse">
            <tr>
              <td width="100%"></td>
            </tr>
          </table> 
		  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="3"  id="AutoNumber27" style="border-collapse: collapse">
            <tr>
              <td width="100%"><!--#include file="../main/IncNewsSearch.asp" -->
  </td>
            </tr>
          </table>
          </td>
        </tr>
    </table></td>
  </tr>
</table>
<!--#include file="../Include/Bottom.asp" -->
</BODY></HTML>
