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

📄 index.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 JobId,Comid,JobName,Work_Area,Work_City,Edus,Deal,LastUpdate_Time,Require,Number From [pH_Job_Base] Where Len(JobName)>0 And JobFlag=1 And DateDiff(d,End_Date,GetDate())<=0 And JobType=2 Order By 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/funlib.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/ua.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/ftiens4.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/persontreeviewnodes.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/areacityselector.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/joball.js"></SCRIPT>
<script language="JavaScript">
function openwin()
  {
    disp=window.open("","rslt","width=500,height=320,resizable=yes");
	disp.focus();
  }
</script>
<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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Css.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>
<body>
<!--#include file="../Include/Header.asp" -->
<table width="956" border="0" cellspacing="0" cellpadding="0" align="center" height="4">
  <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" height="4">
              <tr> 
                <td></td>
              </tr>
            </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <form action="../Company/Com_Search_Base.asp" method="post" target="_blank" name="theForm">
  <tr>
            <td align="center"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table2">
                <tr>
                  <td height="25"> 
                    <div align="center">
                      <select style="width:150px;"  id=select2 
                  name=slt_category>
                      </select>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td height="25"> 
                    <div align="center">
                      <select style="width:150px;"  id=select3 
                  name=slt_subcategory>
                      </select>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td height="25"> 
                    <div align="center">
                      <select  style="width:150px;" id=slt_workplacearea 
                  name=slt_workplacearea>
                      </select>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td height="25"> 
                    <div align="center">
                      <select style="width:150px;" id=select 
                  name=slt_workplacecity>
                      </select>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td height="25"> 
                    <div align="center">
                      <select style="width:150px;"  name=publishdate>
                        <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>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td height="25"> 
                    <div align="center">
                      <input name=key style="width:150px;"  id=txt_keyword2 size="16" maxlength=50 >
                      <script language=JavaScript>
  var objJobCPSelector, objJobCCSelector, objAreaSelector, objCitySelector

  objAreaSelector = new PlaceAssociateList(document.theForm.slt_workplacearea, null, document.theForm.slt_workplacecity, ALOptions);
  objAreaSelector.addedOptions   = new Array("不限-|工作地区不限");
  objAreaSelector.init();
  objCitySelector = new PlaceAssociateList(document.theForm.slt_workplacecity, document.theForm.slt_workplacearea, null, CLOptions);
  objCitySelector.incPValue = true;
  objCitySelector.incPValueFormat = "%PText%-不限"
  objCitySelector.addedOptions   = new Array("不限-不限|不限");
  objCitySelector.init();
  
  objJobCPSelector = new JobCategoryAssociateList(document.theForm.slt_category, null, document.theForm.slt_subcategory, PCLOptions);
  objJobCPSelector.addedOptions   = new Array("0-|职位类别不限");
  objJobCPSelector.init();
  objJobCCSelector = new JobCategoryAssociateList(document.theForm.slt_subcategory, document.theForm.slt_category, null, CCLOptions);
  objJobCCSelector.incPValue = true;
  objJobCCSelector.incPValueFormat = "%PText%-不限"
  objJobCCSelector.addedOptions   = new Array("0-0|不限");
  objJobCCSelector.init();  
                    </script>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td height="25"> 
                    <div align="center">
                      <input type="submit" name="Submit3" value=" 开 始 搜 索 ">
                      <input name="keyclass" type="hidden" id="keyclass" value="1">
                    </div>
                  </td>
                </tr>
              </table>
              
            </td>
  </tr>
 </form>
</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> 
                  <%
'****---------投票--------
	SQL="SELECT ID,TITLE,VOTETEXT,TYPE FROM pH_Vote WHERE Lock=0"
	Set Rs1=Conn.Execute(SQL)
	If Not Rs1.Eof And Not Rs1.Bof Then ds4=Rs1.getrows()
	Rs1.Close()			
	for i=0 to ubound(ds4,2)
	Response.Write CreateVote(ds4(0,i),ds4(1,i),ds4(2,i),ds4(3,i))
	next
	%>
                </td>
              </tr>
            </table>
		</td>
    <td width="5">&nbsp;</td>
    <td valign="top"> 
      <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 border="0" align="center" cellpadding="2" cellspacing="1" width="670">
              <tr align="center"> 
                <td width="153" height="25" bgcolor="eeeeee">职位列表</td>
                <td width="235" height="25" bgcolor="eeeeee">公司名称</td>
                <td width="49" bgcolor="eeeeee">人数</td>      
                <td width="52" bgcolor="eeeeee">待遇</td>
                <td width="49" height="25" bgcolor="eeeeee">工作地点</td>
                <td width="106" height="25" bgcolor="eeeeee">发布日期</td>
        </tr>
</table>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <Form action="" method="post" name="theForm">
<% 
For i = 1 to Psize
 If Rs.Eof Then Exit For
 JobId              = Rs("JobId")
 Comid              = Rs("Comid")
 JobName            = Rs("JobName")
 Work_Area          = Rs("Work_Area")
 Work_City          = Rs("Work_City")
 Edus               = Rs("Edus")
 Deal               = Rs("Deal")
 LastUpdate_Time    = Rs("LastUpdate_Time")
 Require 			= Left(Rs("Require"),100)&"..."
 Number1			= Rs("Number")	
 '//企业名称
 Vip = 0
 Set Re = Conn.Execute("Select CompanyName,Nc_Vip_Flag From [pH_Company_Base] Where Comid='"&Comid&"'")
 If Not Re.Eof Then
  CompanyName = Re("CompanyName")
  Vip = Re("Nc_Vip_Flag")
 End if
 Re.Close
 '//学历要求
 If Edus = 0 Then
  Edus_Str = "不限"
 Else
  Edus_Str = Cls_Edus(Edus)
 End if
 '//待遇
 If Deal = 0 Then
  Deal_Str = "面议"
 Else
  Deal_Str = Deal&"元"
 End if
 If Number1 = 0 Then Number1 = "若干"
 Vip_Str = ""
 If Vip = True Then Vip_Str = "<img src=""../Images/Company/Vip.gif"" align=""absmiddle"">"

 %>
  <tr> 
    <td height="25">
                    <table border="0" cellspacing="1" cellpadding="2" align="center" width="670">
                      <tr> 
                        <td width="154"> <a href="../Company/Info/Com_Job.asp?Comid-<%= Comid %>-Param-<%= Jobid %>.html" target="_blank"><b><%= JobName %></font></b></a></td>
                        <td width="235"><%= Vip_Str %><a href="../Company/Info/Com_View.asp?Param-<%= Comid %>.html" target="_blank"><%= CompanyName %></a></td>
                        <td width="49" align="center"><%= Number1 %></td>
                        <td width="52" align="center"><%= Edus_Str %></td>
                        <td width="49" align="center"><%= Work_Area&Work_City %></td>
                        <td width="105" align="center"><%= LastUpdate_Time %></td>
          </tr>
        </table>
        
      </td>
  </tr>
   <input name="ncid" type="hidden" id="ncid" value="<%= JobId %>">
<%
 Rs.Movenext 
Next
 %> 
 
</Form>
</table>
            <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" bgcolor="#E8EFFF">
              <tr> 
    <td height="25" align="right">共<Font color="#FF0000"><%= RCount %></Font>条 分<Font color="#FF0000"><%= PCount %></Font>页 | 当前第<Font color="#FF0000"><%= PageNo %></Font>页 <% 
		  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="menu2" onChange="MM_jumpMenu('parent',this,0)">
         <% 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>
<!--#include file="../Include/Footer.asp" -->
</body>
</html>
<% 
Rs.Close
Set Rs = Nothing
Call CloseDB
 %>

⌨️ 快捷键说明

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