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

📄 index.inc.php

📁 UCH求职招聘插件。 1.个人简历发布(可设置简历状态隐私
💻 PHP
字号:
<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

if ( !defined( "IN_UCHOME" ) )
{
		exit( "Access Denied" );
}
$perpage = 10;
$page = empty( $_GET['page'] ) ? 1 : intval( $_GET['page'] );
$start = ( $page - 1 ) * $perpage;
$edudegrees = array( "无", "小学", "初中", "高中", "中技", "中专", "大专", "本科", "硕士", "MBA", "博士", "其他" );
$senioritys = array( "无", "在校学生", "应届毕业生", "一年以上", "二年以上", "三年以上", "五年以上", "八年以上", "十年以上" );
$jobtypes = array( "无", "全职", "兼职", "临时", "实习" );
$emoluments = array( "无", "2万以下/年", "2-3万/年", "3-4万/年", "4-5万/年", "5-6万/年", "8-10万/年", "10-15万/年", "15-30万/年", "30-50万/年", "50-100万/年", "100万以上/年" );
if ( $_GET['op'] == "search" )
{
		$wherearr = array( );
		$wherearr[] = empty( $_GET['jobtitle'] ) ? "AND uid>0" : " AND title LIKE '%".stripsearchkey( $_GET['jobtitle'] )."%'";
		$wherearr[] = empty( $_GET['jobtype'] ) ? "uid>0" : "jobtype=".intval( $_GET['jobtype'] );
		$wherearr[] = empty( $_GET['jobprovince'] ) ? "uid>0" : "jobprovince LIKE '%".stripsearchkey( $_GET['jobprovince'] )."%'";
		$wherearr[] = empty( $_GET['jobcity'] ) ? "uid>0" : "jobcity LIKE '%".stripsearchkey( $_GET['jobcity'] )."%'";
		$wherearr[] = empty( $_GET['emolumenttype'] ) ? "uid>0" : "emolumenttype=".intval( $_GET['emolumenttype'] );
		$wherearr[] = empty( $_GET['emolument'] ) ? "uid>0" : "emolument=".intval( $_GET['emolument'] );
		$wherearr[] = empty( $_GET['industry'] ) ? "uid>0" : "industry=".intval( $_GET['industry'] );
		$wherearr[] = empty( $_GET['subindustry'] ) ? "uid>0" : "subindustry=".intval( $_GET['subindustry'] );
		$wherearr[] = empty( $_GET['position'] ) ? "uid>0" : "position=".intval( $_GET['position'] );
		$wherearr[] = empty( $_GET['subposition'] ) ? "uid>0" : "subposition=".intval( $_GET['subposition'] );
		$wherearr = array_unique( $wherearr );
		$wheresql = implode( " AND ", $wherearr );
		if ( empty( $wheresql ) || $wheresql == "uid>0" )
		{
				showmessage( "查询数据不能为空!", "job.php", 3 );
		}
		$wheresqlurl = "&jobtitle=".$_GET['jobtitle']."&jobtype=".$_GET['jobtype']."&jobprovince=".$_GET['jobprovince']."&jobcity=".$_GET['jobcity']."&emolumenttype=".$_GET['emolumenttype']."&emolument=".$_GET['emolument']."&industry=".$_GET['industry']."&subindustry=".$_GET['subindustry']."&position=".$_GET['position']."&subposition=".$_GET['subposition'];
		$search = sqlforlist( "job_newjobs", "verify=0 ".$wheresql." AND draft=0 ORDER BY dateline DESC LIMIT ".$start.",".$perpage );
		$count = sqlforone( "count(*)", "job_newjobs", "verify=0 ".$wheresql." AND draft=0" );
		$theurl = "job.php?op=search".$wheresqlurl;
}
else
{
		if ( !empty( $_GET['classid'] ) )
		{
				$classid = intval( $_GET['classid'] );
				$classurl = "?classid=".$classid;
				if ( $_GET['classid'] == "1" )
				{
						$wheresql = "ORDER BY view DESC";
				}
				else if ( $_GET['classid'] == "2" )
				{
						$wheresql = "ORDER BY num DESC";
				}
		}
		else
		{
				$wheresql = "ORDER BY dateline DESC";
		}
		$count = sqlforone( "count(*)", "job_newjobs", "dateline>(".$_SGLOBAL['timestamp']."-days*24*3600) AND draft=0 AND verify=0" );
		$theurl = "job.php".$classurl;
		$list = sqlforlist( "job_newjobs", "dateline>(".$_SGLOBAL['timestamp']."-days*24*3600) AND draft=0 AND verify=0 ".$wheresql." LIMIT ".$start.",".$perpage );
}
$summarylen = 200;
$active = array( " class=\"active\"" );
$multi = array( );
$multi['html'] = multi( $count, $perpage, $page, $theurl );
?>

⌨️ 快捷键说明

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