<!--#include file="conn/conn_index.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 rel="stylesheet" type="text/css" href="css/search_school.css">
<link href="css/search_school.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style193 {color: #FF6600}
.style193 {color: #FF6600}
-->
</style>
<script language="javaScript">
<!--
function mOvr(src,clrOver){ 
	if (!src.contains(event.fromElement)) { 
		src.bgColor = clrOver; 
	}
}
function mOut(src,clrIn)  { 
	if (!src.contains(event.toElement)) { 
		src.bgColor = clrIn; 
	}
} 
//-->
</script>
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top.asp"-->
<table width="977"  border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
  <td width="30" height="30" bgcolor="#FF9900"><div align="center" class="white"><strong><img src="images/search_school/fdj2.gif" width="14" height="14" /></strong></div></td>
  <td width="60" bgcolor="#FF9900"><strong><a href="SEARCH.ASP"><span class="white">院校搜索</span></a></strong></td>
  <td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
</table>
<table width="977" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9900" align="center">
  <tr>
    <td height="40" bordercolor="#FFFFFF" bgcolor="#FDFEE7">
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
    <form action="?action=search" method="get">
    <input name="action" type="hidden" value="search">
        <tr>
          <td width="26"><div align="center"><img src="images/search_school/search.gif" width="20" height="20" /></div></td>
          <td width="708">院校名称:
            <input name="keyword" style="MARGIN-TOP: 0px; WIDTH: 240px" value="<% If Trim(Request("keyword"))="" Then Response.Write("院校名称关键字") else Response.Write(Trim(Request("keyword")))%>" <% If Trim(Request("keyword"))="" or Trim(Request("keyword"))="院校名称关键字" Then %>onfocus="this.value=''" <% End If %>/>&nbsp;&nbsp;<font color="#CCCCCC">(请输入院校名称关键字，如：广东药学院)</font></td>
          <td><input type="submit" class="annui" value="搜  索">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" class="annui" value="重  置"></td>
        </tr>
    </form>
    </table>
    </td>
  </tr>
</table>
<%
	dim i,intPage,page,pre,last,filepath,searchtype,school_name'定义变量
	
	searchtype="where zhuangtai=1 and lock=0 and hideuser=0 "
	
	if Trim(Request.QueryString("action"))="search"	then
	
		school_name=Trim(Request.QueryString("keyword"))
		if school_name<>"" and school_name<>"院校名称关键字" then searchtype=searchtype&" and school_name like '%"&school_name&"%' "
		
	end if

	set rs_user = server.CreateObject("adodb.recordset")'创建对象
	sql="select * from school "&searchtype&" order by refresh desc,id desc"'定义SQL语句
	rs_user.PageSize = 20 '这里设定每页显示的记录数
	rs_user.CursorLocation = 3
	rs_user.Open sql,conn,0,2,1 '这里执行你查询SQL并获得结果记录集
	zpnum=rs_user.recordcount
	pre = true
	last = true
	page = trim(Request.QueryString("page"))'变量是跳转页面时的值
	zpnum=rs_user.recordcount
	if len(page) = 0 then
		intpage = 1
		pre = false
	else
		if cint(page) =< 1 then
			intpage = 1
			pre = false
		else
			if cint(page) >= rs_user.PageCount then
				intpage = rs_user.PageCount
				last = false
			else
				intpage = cint(page)
			end if
		end if
	end if
	if not rs_user.eof then
		rs_user.AbsolutePage = intpage
	end if
%>
<table width="977" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9900" align="center">
  <tr>
    <td height="40" bordercolor="#FFFFFF" bgcolor="#FDFEE7">
                  <table width="100%" border="0" cellspacing="0" cellpadding="1" class="font_9_c_black" style="border-collapse: collapse" bordercolor="#111111" align="center">
                    <tr>
                      <td><span class="STYLE61">&nbsp;&nbsp;<img src="images/search_school/p42.gif" width="16" height="16" /> 站内符合条件的院校信息</span></td>
                      <td><span class="style5"> </span><span style="font-weight: 700; font-size: 12px"> </span></td>
                      <td><table border="0" cellspacing="0" cellpadding="3" align="right" style="border-collapse: collapse" bordercolor="#111111">
                          <tr>
                            <td width='50'><a href="?page=1&action=<%= Trim(Request("action")) %>&keyword=<%= Trim(Request("keyword")) %>"><img src='images/search_school/_1prev.gif' name='_1prev' width='16' height='16' border='0' id="_1prev" />首页</a></td>
                            <td width='60'><a href="?page=<%=intpage -1%>&action=<%= Trim(Request("action")) %>&keyword=<%= Trim(Request("keyword")) %>"><img src='images/search_school/_prev.gif' name='_prev' width='16' height='16' border='0' id="_prev" />上一页</a></td>
                            <td width="4"><p align="right">　</p></td>
                            <td><table border="0" align="center" cellpadding="3" cellspacing="0">
                                <tr>
                                  <td height="30" bgcolor="#FF6600"><div align="center"><span style="font-size: 12pt"><b><font color="#FFFFFF"> 第<% If Trim(Request.QueryString("page"))="" and Trim(Request.QueryString("page"))=0 Then Response.Write("1") else Response.Write(Trim(Request.QueryString("page")))%>页 </font></b></span></div></td>
                                </tr>
                            </table></td>
                            <td width="4">　</td>
                            <td width='60'><a href="?page=<%=intpage +1%>&action=<%= Trim(Request("action")) %>&keyword=<%= Trim(Request("keyword")) %>">下一页<img src='images/search_school/_next.gif' name='_prev' width='16' height='16' border='0' id="_prev" /></a></td>
                            <td width='50'><a href="?page=<%=rs_user.PageCount%>&action=<%= Trim(Request("action")) %>&keyword=<%= Trim(Request("keyword")) %>">末页<img src='images/search_school/_next1.gif' name='_next1' width='16' height='16' border='0' id="_next1" /></a></td>
                          </tr>
                      </table></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="2" class="font_9_c_black" style="border-collapse: collapse" bordercolor="#111111" height="46" align="center">
                    <tr>
                      <td width="64" height="29" align="center" background="images/search_school/bg_nav.gif"><p align="center" style="LETTER-SPACING: 2px; LINE-HEIGHT: 17px"><strong> <font style="FONT-SIZE: 9pt; ">编号</font></strong></p></td>
                      <td width="146" height="29" align="left" background="images/search_school/bg_nav.gif" ><p align="center" style="LINE-HEIGHT: 17px"><strong>院校名称</strong></p></td>
                      <td width="227" height="29" align="left" background="images/search_school/bg_nav.gif" ><p align="center" style="LINE-HEIGHT: 17px"><strong>院校地址</strong></p></td>
                      <td width="264" height="29" align="left" background="images/search_school/bg_nav.gif" ><p align="center"><strong> <font style="FONT-SIZE: 12px"> <span style="font-family: 宋体; ">网址</span></font></strong></p></td>
                      <td width="135" height="29" align="left" background="images/search_school/bg_nav.gif" ><p align="center" style="LINE-HEIGHT: 17px"><strong>联系电话</strong></p></td>
                      <td width="107" height="29" align="left" background="images/search_school/bg_nav.gif" ><p align="center" style="LINE-HEIGHT: 17px"><strong>更新日期</strong></p></td>
                    </tr>
<% if rs_user.eof and rs_user.bof then %> 
		<tr style="cursor:hand" backgroundColor='FFFFFF'>
        <td height="30" colspan="6" align="center" style="border-bottom-style: solid; border-bottom-width: 1px; border-top-style:solid; border-top-width:1px"><font color="#990000">对 不 起，没 有 您 搜 索 的 记 录 </font></td>
        </tr>
<%
	else
		for i=1 to rs_user.PageSize
		if rs_user.EOF or rs_user.BOF then exit for
%>
                    <tr bordercolor="#E0E0E0" onmouseover="mOvr(this,'#E5F6CC');" onmouseout="mOut(this,'#f7f7f7');">
                      <td width="64" height="30" align="center" style="border-bottom-style: solid; border-bottom-width: 1px; border-top-style:solid; border-top-width:1px"><font color="#384249"><b><%= rs_user("id") %></b></font></td>
                      <td height="30" align="center" style="border-bottom-style: solid; border-bottom-width: 1px; border-top-style:solid; border-top-width:1px"><a href="view_school.asp?id=<%= rs_user("id") %>" target="_blank" title="浏览院校 <%= rs_user("school_name") %> 的详细信息"><%= left(rs_user("school_name"),15) %><% If len(rs_user("school_name"))>15 Then Response.Write("...")%></a></td>
                      <td width="227" height="30" align="center" style="border-bottom-style: solid; border-bottom-width: 1px; border-top-style:solid; border-top-width:1px"><%= left(rs_user("address"),20) %><% If len(rs_user("address"))>20 Then Response.Write("...")%></td>
                      <td width="264" height="30" align="center" style="border-bottom-style: solid; border-bottom-width: 1px; border-top-style:solid; border-top-width:1px"><%= rs_user("weburl") %></td>
                      <td width="135" height="30" align="center" style="border-bottom-style: solid; border-bottom-width: 1px; border-top-style:solid; border-top-width:1px"><%= rs_user("phone") %></td>
                      <td width="107" height="30" align="center" style="border-bottom-style: solid; border-bottom-width: 1px; border-top-style:solid; border-top-width:1px"><%=year(rs_user("refresh"))%>-<%= month(rs_user("refresh")) %>-<%= day(rs_user("refresh")) %></td>
                    </tr>
<%
		rs_user.movenext
		next
	end if
%>
                  </table>

        <table width="100%" border="0" cellspacing="0" cellpadding="5" class="font_9_c_black" style="border-collapse: collapse" bordercolor="#111111" align="center">
          <tr>
            <td><strong>符合条件的院校总数：<font color="#009900"><%= zpnum %></font></strong> &nbsp;&nbsp;<img src="images/search_school/x.gif" width="13" height="12" />共 <b><font color="#FF0000"><%= rs_user.PageCount %></font></b> 页 </td>
            <td><table border="0" cellspacing="0" cellpadding="3" align="right" style="border-collapse: collapse" bordercolor="#111111">
                          <tr>
                            <td width='50'><a href="?page=1&action=<%= Trim(Request("action")) %>&keyword=<%= Trim(Request("keyword")) %>"><img src='images/search_school/_1prev.gif' name='_1prev' width='16' height='16' border='0' id="_1prev" />首页</a></td>
                            <td width='60'><a href="?page=<%=intpage -1%>&action=<%= Trim(Request("action")) %>&keyword=<%= Trim(Request("keyword")) %>"><img src='images/search_school/_prev.gif' name='_prev' width='16' height='16' border='0' id="_prev" />上一页</a></td>
                            <td width="4"><p align="right">　</p></td>
                            <td><table border="0" align="center" cellpadding="3" cellspacing="0">
                                <tr>
                                  <td height="30" bgcolor="#FF6600"><div align="center"><span style="font-size: 12pt"><b><font color="#FFFFFF"> 第<% If Trim(Request.QueryString("page"))="" and Trim(Request.QueryString("page"))=0 Then Response.Write("1") else Response.Write(Trim(Request.QueryString("page")))%>页 </font></b></span></div></td>
                                </tr>
                            </table></td>
                            <td width="4">　</td>
                            <td width='60'><a href="?page=<%=intpage +1%>&action=<%= Trim(Request("action")) %>&keyword=<%= Trim(Request("keyword")) %>">下一页<img src='images/search_school/_next.gif' name='_prev' width='16' height='16' border='0' id="_prev" /></a></td>
                            <td width='50'><a href="?page=<%=rs_user.PageCount%>&action=<%= Trim(Request("action")) %>&keyword=<%= Trim(Request("keyword")) %>">末页<img src='images/search_school/_next1.gif' name='_next1' width='16' height='16' border='0' id="_next1" /></a></td>
                          </tr>
                      </table></td>
          </tr>
      </table>
    </td>
  </tr>
</table>
<%
	rs_user.close
	set rs_user = nothing
%>
<!--#include file="end.asp"-->
