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

📄 resume.inc.php

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

if ( !defined( "IN_UCHOME" ) )
{
		exit( "Access Denied" );
}
$uid = empty( $_GET['uid'] ) ? $_SGLOBAL['supe_uid'] : intval( $_GET['uid'] );
$list = sqlforlist( "job_resumes", "uid=".$uid );
if ( empty( $list ) && empty( $_GET['op'] ) )
{
		showmessage( "还没有填写个人简历", "job.php?ac=resume&op=edit" );
}
$list = $list[0];
if ( $list['hopesubindustry'] )
{
		$list['hopesubindustry'] = unserialize( $list['hopesubindustry'] );
		$list['hopesubindustry'] = implode( ",", $list['hopesubindustry'] );
}
if ( $list['hopesubposition'] )
{
		$list['hopesubposition'] = unserialize( $list['hopesubposition'] );
		$list['hopesubposition'] = implode( ",", $list['hopesubposition'] );
}
if ( !ckresume( $list ) )
{
		showmessage( "由于 ".$list['name']." 的个人简历进行了隐私设置,你不能访问当前内容!", "job.php", 3 );
}
$works = sqlforlist( "job_work", "uid=".$uid." ORDER BY beginyear DESC,beginmonth DESC" );
$studys = sqlforlist( "job_study", "uid=".$uid." ORDER BY beginyear DESC,beginmonth DESC" );
if ( $_POST )
{
		foreach ( $GLOBALS['_POST'] as $key => $value )
		{
				$GLOBALS['_POST'][$key] = $key == "hopesubindustry" || $key == "hopesubposition" ? $value : trim( $value );
		}
		if ( $_POST['do'] == "add" )
		{
				if ( empty( $_POST['resumetitle'] ) )
				{
						showmessage( "教育程度为空,请返回。" );
				}
				else if ( empty( $_POST['name'] ) )
				{
						showmessage( "简历名称为空,请返回。" );
				}
				else if ( empty( $_POST['email'] ) )
				{
						showmessage( "E-MAIL为空,请返回。" );
				}
				else if ( empty( $_POST['mophone'] ) )
				{
						showmessage( "手机为空,请返回。" );
				}
				else if ( empty( $_POST['edudegree'] ) )
				{
						showmessage( "教育程度为空,请返回。" );
				}
				else if ( empty( $_POST['hopejobtype'] ) )
				{
						showmessage( "工作类型为空,请返回。" );
				}
				$GLOBALS['_POST']['dateline'] = $_SGLOBAL['timestamp'];
				$GLOBALS['_POST']['description'] = shtmlspecialchars( $_POST['description'] );
				$GLOBALS['_POST']['customresume'] = checkhtml( $_POST['customresume'] );
				$GLOBALS['_POST']['hopesubposition'] = serialize( $_POST['hopesubposition'] );
				$GLOBALS['_POST']['hopesubindustry'] = serialize( $_POST['hopesubindustry'] );
				unset( $_POST['do'] );
				inserttable( "job_resumes", $_POST );
				include_once( S_ROOT."./source/function_cp.php" );
				$icon = "jobs";
				$title_template = "{actor} 添加了自己的 <a href=\"job.php?ac=resume&uid=".$_POST['uid']."\"><b>个人简历</b></a>";
				feed_add( $icon, $title_template );
				showmessage( "添加成功", "job.php?ac=resume" );
		}
		else if ( $_POST['do'] == "update" )
		{
				unset( $_POST['do'] );
				$GLOBALS['_POST']['description'] = shtmlspecialchars( $_POST['description'] );
				$GLOBALS['_POST']['customresume'] = checkhtml( $_POST['customresume'] );
				$GLOBALS['_POST']['hopesubindustry'] = array_unique( $_POST['hopesubindustry'] );
				$GLOBALS['_POST']['hopesubposition'] = array_unique( $_POST['hopesubposition'] );
				$GLOBALS['_POST']['hopesubposition'] = serialize( $_POST['hopesubposition'] );
				$GLOBALS['_POST']['hopesubindustry'] = serialize( $_POST['hopesubindustry'] );
				updatetable( "job_resumes", $_POST, array(
						"uid" => $uid
				) );
				include_once( S_ROOT."./source/function_cp.php" );
				$icon = "jobs";
				$title_template = "{actor} 更新了自己的 <a href=\"job.php?ac=resume&uid=".$_POST['uid']."\"><b>个人简历</b></a>";
				feed_add( $icon, $title_template );
				showmessage( "更新成功", "job.php?ac=resume" );
		}
}
$hasexperiencearr = array( " checked" );
$workstatushtml = "";
$workstatus = array( "暂时不想找工作", "目前正在找工作", "只有好的机会我才会考虑" );
foreach ( $workstatus as $key => $value )
{
		$selectstr = $key == $list['workstatus'] ? " selected" : "";
		$workstatushtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$sexarr = array( " checked" );
$marryarr = array( " selected" );
$hasoverseasarr = array( " checked" );
$birthyeayhtml = "";
$nowy = sgmdate( "Y" );
$i = 1;
for ( ;	$i < 80;	++$i	)
{
		$they = $nowy - $i;
		$selectstr = $they == $space['birthyear'] ? " selected" : "";
		$birthyeayhtml .= "<option value=\"".$they."\"{$selectstr}>{$they}</option>";
}
$birthmonthhtml = "";
$i = 1;
for ( ;	$i < 13;	++$i	)
{
		$selectstr = $i == $space['birthmonth'] ? " selected" : "";
		$birthmonthhtml .= "<option value=\"".$i."\"{$selectstr}>{$i}</option>";
}
$birthdayhtml = "";
$i = 1;
for ( ;	$i < 32;	++$i	)
{
		$selectstr = $i == $space['birthday'] ? " selected" : "";
		$birthdayhtml .= "<option value=\"".$i."\"{$selectstr}>{$i}</option>";
}
$bloodhtml = "";
foreach ( array( "A", "B", "O", "AB" ) as $value )
{
		$selectstr = $value == $space['blood'] ? " selected" : "";
		$bloodhtml .= "<option value=\"".$value."\"{$selectstr}>{$value}</option>";
}
$resumestatushtml = "";
$resumestatus = array( "全站用户可见", "全好友可见", "仅自己可见" );
foreach ( $resumestatus as $key => $value )
{
		$selectstr = $key == $list['resumestatus'] ? " selected" : "";
		$resumestatushtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$areahtml = "";
$areas = array( "其他", "中国大陆", "中国香港", "中国台湾", "中国澳门", "东南亚", "欧洲", "南美", "非洲", "西亚", "北美", "美国", "英国", "法国", "德国", "日本", "韩国", "新加坡", "加拿大" );
foreach ( $areas as $key => $value )
{
		$selectstr = $key == $list['area'] ? " selected" : "";
		$areahtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$nationalityhtml = "";
$nationalitys = array( "其他", "汉族", "蒙古族", "彝族", "侗族", "哈萨克族", "畲族", "纳西族", "仫佬族", "仡佬族", "怒族", "保安族", "鄂伦春族", "回族", "壮族", "瑶族", "傣族", "高山族", "景颇族", "羌族", "锡伯族", "乌孜别克族", "裕固族", "赫哲族", "藏族", "布依族", "白族", "黎族", "拉祜族", "柯尔克孜族", "布朗族", "阿昌族", "俄罗斯族", "京族", "门巴族", "维吾尔族", "朝鲜族", "土家族", "傈僳族", "水族", "土族", "撒拉族", "普米族", "鄂温克族", "塔塔尔族", "珞巴族", "苗族", "满族", "哈尼族", "佤族", "东乡族", "达斡尔族", "毛南族", "塔吉克族", "德昂族", "独龙族", "基诺族" );
foreach ( $nationalitys as $key => $value )
{
		$selectstr = $key == $list['nationality'] ? " selected" : "";
		$nationalityhtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$politicsstatushtml = "";
foreach ( array( "无", "群众", "团员", "党员", "民众党派", "其他" ) as $key => $value )
{
		$selectstr = $key == $list['politicsstatus'] ? " selected" : "";
		$politicsstatushtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$idcardtypehtml = "";
foreach ( array( "无", "身份证", "护照", "军人证", "港澳身份证", "其他" ) as $key => $value )
{
		$selectstr = $key == $list['idcardtype'] ? " selected" : "";
		$idcardtypehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$edudegreehtml = "";
$edudegrees = array( "无", "小学", "初中", "高中", "中技", "中专", "大专", "本科", "硕士", "MBA", "博士", "其他" );
foreach ( $edudegrees as $key => $value )
{
		$selectstr = $key == $list['edudegree'] ? " selected" : "";
		$edudegreehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$emolumenttypehtml = "";
foreach ( array( "无", "人民币", "港元", "美元", "日元", "欧元", "其他" ) as $key => $value )
{
		$selectstr = $key == $list['emolumenttype'] ? " selected" : "";
		$emolumenttypehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$emolumenthtml = "";
$emoluments = array( "面议", "2万以下/年", "2-3万/年", "3-4万/年", "4-5万/年", "5-6万/年", "8-10万/年", "10-15万/年", "15-30万/年", "30-50万/年", "50-100万/年", "100万以上/年" );
foreach ( $emoluments as $key => $value )
{
		$selectstr = $key == $list['emolument'] ? " selected" : "";
		$emolumenthtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$seniorityhtml = "";
foreach ( array( "无", "在校学生", "应届毕业生", "一年以上", "二年以上", "三年以上", "五年以上", "八年以上", "十年以上" ) as $key => $value )
{
		$selectstr = $key == $list['seniority'] ? " selected" : "";
		$seniorityhtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$contacttypehtml = "";
foreach ( array( "无", "手机", "家庭电话", "工作电话", "电子邮件", "邮递" ) as $key => $value )
{
		$selectstr = $key == $list['contacttype'] ? " selected" : "";
		$contacttypehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$hopejobtypehtml = "";
$hopejobtypes = array( "无", "全职", "兼职", "临时", "实习" );
foreach ( $hopejobtypes as $key => $value )
{
		$selectstr = $key == $list['hopejobtype'] ? " selected" : "";
		$hopejobtypehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$languagehtml = "";
$languages = array( "无", "汉语", "英语", "日语", "法语", "俄语", "德语", "西班牙语", "朝鲜语", "阿拉伯语", "其他" );
foreach ( $languages as $key => $value )
{
		$selectstr = $key == $list['language1'] ? " selected" : "";
		$languagehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$languagelevelhtml = "";
$languagelevels = array( "不限", "一般", "良好", "精通" );
foreach ( $languagelevels as $key => $value )
{
		$selectstr = $key == $list['language1level'] ? " selected" : "";
		$languagelevelhtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$language2html = "";
foreach ( $languages as $key => $value )
{
		$selectstr = $key == $list['language2'] ? " selected" : "";
		$language2html .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$language2levelhtml = "";
foreach ( $languagelevels as $key => $value )
{
		$selectstr = $key == $list['language2level'] ? " selected" : "";
		$language2levelhtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$language3html = "";
foreach ( $languages as $key => $value )
{
		$selectstr = $key == $list['language3'] ? " selected" : "";
		$language3html .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$language3levelhtml = "";
foreach ( $languagelevels as $key => $value )
{
		$selectstr = $key == $list['language3level'] ? " selected" : "";
		$language3levelhtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$hopeemolumenttypehtml = "";
$hopeemolumenttypes = array( "无", "人民币", "港元", "美元", "日元", "欧元", "其他" );
foreach ( $hopeemolumenttypes as $key => $value )
{
		$selectstr = $key == $list['hopeemolumenttype'] ? " selected" : "";
		$hopeemolumenttypehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$hopeemolumenthtml = "";
foreach ( $emoluments as $key => $value )
{
		$selectstr = $key == $list['hopeemolument'] ? " selected" : "";
		$hopeemolumenthtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$entrytypehtml = "";
foreach ( array( "面议", "三天内", "一周内", "一个月内", "三个月内" ) as $key => $value )
{
		$selectstr = $key == $list['entrytype'] ? " selected" : "";
		$entrytypehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
?>

⌨️ 快捷键说明

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