📄 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 + -