?? index.inc.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 + -