⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sch_search_new.asp

📁 直接附加数据库! 修改 Include/ Class_Main.asp 为自己信息 后台admin admin 绍兴人才网程序
💻 ASP
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<% 
Dim SQL,Rs
Dim JobClass,Area,PublishDate,Key,KeyClass
Dim JobId,Comid,JobName,Work_Area,Work_City,Edus,Deal,LastUpdate_Time

SQL = "Select Schid,SchoolName,Properity,Locus_Area,Locus_City,ContactPerson,Phone,LastUpdate_Time From [pH_Educate_Base] Where Len(SchoolName)>0 And VipFlag<>0 Order By VipFlag Asc,LastUpdate_Time Desc"

Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.open SQL,Conn,1,1
Rs.Pagesize = 25
Psize       = Rs.PageSize
PCount      = Rs.PageCount
RCount      = Rs.RecordCount

PageNo = Cint(Request.QueryString("PageNo"))
If PageNo < 1 Then
 PageNo = 1
Elseif PageNo > PCount Then
 PageNo = PCount
End if
If Not Rs.Eof Then Rs.AbsolutePage = PageNo

 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="JavaScript" src="../js/Company_Basicinfo.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 培训机构</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<script language="JavaScript">
 function login_check()
 {

 if (document.login.username.value==""){
  alert("-请输入用户名-");
  document.login.username.focus();
  return false;
 }
  if (document.login.password.value==""){
  alert("-请输入登陆密码-");
  document.login.password.focus();
  return false;
 }
 }
 function search_check(){
 if (document.theForm.key.value=="请输入高校/培训机构名称"){
  alert("-请输入高校/培训机构名称-");
  document.theForm.key.focus();
  return false;
 }
 }
</script>
<body>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><!--#include file="../Include/Header.asp" --></td>
  </tr>
</table>
<table width="956" border="0" cellspacing="0" cellpadding="0" height="5" align="center">
  <tr>
    <td></td>
  </tr>
</table>
<table width="956" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="270" valign="top">
	<table width="270" border="0" cellspacing="0" cellpadding="0" class="table2">
              <tr class="td_4"> 
                <td height="29"><font class="td_4a">会员登陆</font></td>
              </tr>
              <tr> 
                <td valign="top"> 
                  <!--#include file="../Public/MemberSession.asp" -->
                </td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
              <tr> 
                <td height="100" valign="top">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table2">
                    <form action="Sch_Search_Base.asp" method="post" target="_blank" name="theForm" onSubmit="return search_check()">
                    <tr>
                        <td align="center" height="25"> 
                          <select name="properity" id="select2" style="width:140px;">
                          <option value="0">性质不限</option>
                          <option value="10">国有企业</option>
                          <option value="20">民营企业</option>
                          <option value="30">外商独资企业</option>
                          <option value="40">合资企业</option>
                          <option value="50">股份制企业</option>
                          <option value="60">集体企业</option>
                          <option value="70">事业单位</option>
                          <option value="80">社会团体</option>
                          <option value="90">行政机关</option>
                          <option value="100">其他类别</option>
                          <option value="110">高等院校</option>
                        </select>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" height="25"> 
                          <select style="width:140px;"  name=publishdate>
                          <option value=0>更新日期不限</option>
                          <option value=1>近一天</option>
                          <option value=2>近二天</option>
                          <option value=3>近三天</option>
                          <option value=7>近一周</option>
                          <option value=14>近两周</option>
                          <option value=30>近一月</option>
                          <option value=60>近两月</option>
                          <option value=90>近三月</option>
                        </select>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" height="25"> 
                          <input name=key style="width:140px;"  id=key2 size="16" maxlength=50 value="请输入高校/培训机构名称" onClick="this.value='';">
                        </td>
                    </tr>
                    <tr>
                        <td align="center"> 
                          <input type="submit" name="Submit32" value=" 开 始 搜 索 ">
                      </td>
                    </tr>
					              </form>
                  </table>
                </td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="4">
              <tr>
                <td></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table2">
              <tr class="td_4"> 
                <td height="29"><font class="td_4a">职场眺望</font></td>
              </tr>
              <tr> 
                <td> <%= Cls_News_List(7,8,18) %></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="4">
              <tr> 
                <td></td>
              </tr>
            </table>
	</td>
    <td width="5">&nbsp;</td>
    <td valign="top"> 
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
          <td align="center"> 
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table2">
              <tr class="td_4"> 
                <td height="29"><font class="td_4a">培训机构</font></td>
              </tr>
              <tr> 
                <td> 
                  <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="eeeeee">
                    <tr> 
          <td valign="top" bgcolor="#FFFFFF">
		 
            <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
              <tr align="center"> 
                <td width="25%" height="25" bgcolor="eeeeee">培训机构名称</td>
                <td width="14%" height="25" bgcolor="eeeeee">机构性质</td>
                <td width="10%" height="25" bgcolor="eeeeee">工作地区</td>
                <td width="9%" height="25" bgcolor="eeeeee">课程</td>
                <td width="12%" height="25" bgcolor="eeeeee">联系人</td>
                <td width="17%" height="25" bgcolor="eeeeee">联系电话</td>
                <td width="13%" bgcolor="eeeeee">加入时间</td>
              </tr>
              <% 
For i = 1 to Psize/2
 If Rs.Eof Then Exit For
 Schid               = Rs("Schid")
 SchoolName     	 = Rs("SchoolName")
 Properity			 = Rs("Properity")
 Locus_Area			 = Rs("Locus_Area")
 Locus_City			 = Rs("Locus_City")	
 ContactPerson		 = Rs("ContactPerson")
 Phone    			 = Rs("Phone")
 LastUpdate_Time     = FormatDateTime(Rs("LastUpdate_Time"),2)
 
 SchoolType = Cls_EducateType(Properity)
 '//课程数
 SudCount = 0
 Set Re = Conn.Execute("Select Count(*) From [pH_Educate_Lesson] Where Schid='"&Schid&"'")
 If Not Re.eof Then SudCount = Re(0)
 Re.Close
 %>
              <tr> 
                <td height="25"><a href="Info/Index.asp?param-<%= Schid %>.html" target="_blank"><u><%= SchoolName %></u></a></td>
                <td height="25" align="center"><%= SchoolType %></td>
                            <td height="25" align="center"><%= Locus_Area&Locus_City %></td>
                <td height="25" align="center"><%= SudCount %></td>
                <td height="25" align="center"><%= ContactPerson %></td>
                <td height="25" align="center"><%= Phone %></td>
                <td height="25" align="center"><%= LastUpdate_Time %></td>
              </tr>
              <% 
 Rs.Movenext
 If Rs.Eof Then Exit For
 Schid               = Rs("Schid")
 SchoolName     	 = Rs("SchoolName")
 Properity			 = Rs("Properity")
 Locus_Area			 = Rs("Locus_Area")
 Locus_City			 = Rs("Locus_City")	
 ContactPerson		 = Rs("ContactPerson")
 Phone    			 = Rs("Phone")
 LastUpdate_Time     = FormatDateTime(Rs("LastUpdate_Time"),2)
 
 SchoolType = Cls_EducateType(Properity)
 '//课程数
 SudCount = 0
 Set Re = Conn.Execute("Select Count(*) From [pH_Educate_Lesson] Where Schid='"&Schid&"'")
 If Not Re.eof Then SudCount = Re(0)
 Re.Close
   %>
              <tr bgcolor="f9f9f9"> 
                <td height="25"><a href="Info/Index.asp?param-<%= Schid %>.html" target="_blank"><u><%= SchoolName %></u></a></td>
                <td height="25" align="center"><%= SchoolType %></td>
                <td height="25" align="center"><%= Locus_Area&Locus_City %></td>
                <td height="25" align="center"><%= SudCount %></td>
                <td height="25" align="center"><%= ContactPerson %></td>
                <td height="25" align="center"><%= Phone %></td>
                <td height="25" align="center"><%= LastUpdate_Time %></td>
              </tr>
              <%
 Rs.Movenext 
Next
 %>
            </table>
		  
			</td>
        </tr>
      </table> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="4">
                    <tr> 
          <td width="50%" height="25">共<Font color="#FF0000"><%= RCount %></Font>条 分<Font color="#FF0000"><%= PCount %></Font>页 | 当前第<Font color="#FF0000"><%= PageNo %></Font>页</td>
          <td width="50%" align="right">
		  <% 
		  If PageNo > 1 Then
		   Response.write "<a href=""?PageNo=1"">首页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PageNo-1&""">上页</a>&nbsp;"    
		  Else
		   Response.write "首页&nbsp;"
		   Response.write "上页&nbsp;" 
		  End if
		   %>
           <select name="menu1" onChange="MM_jumpMenu('parent',this,0)" style="width:40px;">
		    <% For i = 1 to PCount %>
                <option value="?PageNo=<%= i %>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
		    <% Next %>
           </select>
            <% 
		  If PageNo < PCount Then
		   Response.write "<a href=""?PageNo="&PageNo+1&""">下页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PCount&""">尾页</a>"   
		  Else
		   Response.write "下页&nbsp;"
		   Response.write "尾页" 
		  End if
		   %>
		  </td>
        </tr>
      </table>

				</td>
              </tr>
            </table>
            </td>
  </tr>
</table>

	</td>
  </tr>
</table>
<table width="956" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td>
      <!--#include file="../Include/Footer.asp" -->
    </td>
  </tr>
</table>

</body>
</html>
<% 
Rs.Close
Set Rs = Nothing
Call CloseDB
 %>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -