?? resumes.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;
if ( $_GET['op'] == "search" )
{
$wherearr = array( );
$wherearr[] = empty( $_GET['name'] ) ? "uid>0" : "name LIKE '%".stripsearchkey( $_GET['name'] )."%'";
$wherearr[] = empty( $_GET['resumetitle'] ) ? "uid>0" : "resumetitle LIKE '%".stripsearchkey( $_GET['resumetitle'] )."%'";
$wherearr[] = empty( $_GET['classid'] ) ? "workstatus=0" : "workstatus=".intval( $_GET['classid'] );
$wherearr[] = empty( $_GET['edudegree'] ) ? "uid>0" : "edudegree=".intval( $_GET['edudegree'] );
$wherearr = array_unique( $wherearr );
$wheresql = implode( " AND ", $wherearr );
if ( empty( $wheresql ) || $wheresql == "uid>0" )
{
showmessage( "查詢數據不能為空!", "job.php", 3 );
}
$wheresqlurl = "&resumetitle=".$_GET['resumetitle']."&name=".$_GET['name']."&classid=".$_GET['classid']."&edudegree=".$_GET['edudegree'];
$search = sqlforlist( "job_resumes", $wheresql." ORDER BY dateline DESC LIMIT ".$start.",".$perpage );
$count = sqlforone( "count(*)", "job_resumes", $wheresql );
$theurl = "job.php?ac=resumes".$wheresqlurl;
}
else
{
$classid = empty( $_GET['classid'] ) ? 1 : intval( $_GET['classid'] );
if ( !empty( $_GET['classid'] ) )
{
$classurl = "&classid=".$classid;
$wheresql = "workstatus =".$classid." AND";
}
if ( $_GET['classid'] == "all" )
{
$wheresql = "";
$classurl = "&classid=all";
}
else if ( $_GET['classid'] == "0" )
{
$wheresql = "workstatus =0 AND";
$classurl = "&classid=0";
}
$count = sqlforone( "count(*)", "job_resumes", $wheresql." uid>0" );
$theurl = "job.php?ac=resumes".$classurl;
$list = sqlforlist( "job_resumes", $wheresql." uid>0 ORDER BY dateline DESC LIMIT ".$start.",".$perpage );
}
$workstatus = array( "暫時不想找工作", "目前正在找工作", "只有好的機會我才會考慮" );
$resumestatus = array( "全站用戶可見", "全好友可見", "僅自己可見" );
$active = array( " class=\"active\"" );
$multi = array( );
$multi['html'] = multi( $count, $perpage, $page, $theurl );
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -