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

📄 company.inc.php

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

if ( !defined( "IN_UCHOME" ) )
{
		exit( "Access Denied" );
}
$uid = $_SGLOBAL['supe_uid'];
$list = sqlforlist( "job_company", "uid=".$uid );


$list = $list[0];
if ( $_POST )
{

		foreach ( $GLOBALS['_POST'] as $key => $value )
		{
				$GLOBALS['_POST'][$key] = trim( $value );
		}
		if ( $_POST['do'] == "add" )
		{
				unset( $_POST['do'] );
				$GLOBALS['_POST']['corpdescription'] = checkhtml( $_POST['corpdescription'] );
				$GLOBALS['_POST']['corpdescription'] = getstr( $_POST['corpdescription'], 0, 1, 0, 1, 0, 1 );
				$GLOBALS['_POST']['corpdescription'] = preg_replace( "/\\<div\\>\\<\\/div\\>/i", "", $_POST['corpdescription'] );
				$GLOBALS['_POST']['corpintro'] = shtmlspecialchars( $_POST['corpintro'] );
				if ( !empty( $_POST['corptitle'] ) || !empty( $_POST['corpprovince'] ) || !empty( $_POST['corpcity'] ) || !empty( $_POST['corptype'] ) || !empty( $_POST['corpphone'] ) || !empty( $_POST['corpreguser'] ) || !empty( $_POST['corpdescription'] ) )
				{
						inserttable( "job_company", $_POST );
						showmessage( "公司信息添加成功!", "job.php?ac=newjob" );
				}
		}
		else if ( $_POST['do'] == "edit" )
		{
				unset( $_POST['do'] );
				$GLOBALS['_POST']['corpdescription'] = checkhtml( $_POST['corpdescription'] );
				$GLOBALS['_POST']['corpdescription'] = getstr( $_POST['corpdescription'], 0, 1, 0, 1, 0, 1 );
				$GLOBALS['_POST']['corpdescription'] = preg_replace( "/\\<div\\>\\<\\/div\\>/i", "", $_POST['corpdescription'] );
				$GLOBALS['_POST']['corpintro'] = shtmlspecialchars( $_POST['corpintro'] );
				if ( !empty( $_POST['corptitle'] ) || !empty( $_POST['corpprovince'] ) || !empty( $_POST['corpcity'] ) || !empty( $_POST['corptype'] ) || !empty( $_POST['corpphone'] ) || !empty( $_POST['corpreguser'] ) || !empty( $_POST['corpdescription'] ) )
				{
						updatetable( "job_company", $_POST, array(
								"id" => $_POST['id']
						) );
						showmessage( "公司信息编辑成功!", "job.php?ac=newjob" );
				}
		}
}
$corptypehtml = "";
$corptypes = array( "无", "外资(欧美)", "外资(非欧美)", "合资(欧美)", "合资(非欧美)", "国企/上市公司", "民营/私营公司", "外企代表处", "其它性质" );
foreach ( $corptypes as $key => $value )
{
		$selectstr = $key == $list['corptype'] ? " selected" : "";
		$corptypehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$corpsizehtml = "";
$corpsizes = array( "1-49人", "50-99人", "100-499人", "500-999人", "1000人以上" );
foreach ( $corpsizes as $key => $value )
{
		$selectstr = $key == $list['corpsize'] ? " selected" : "";
		$corpsizehtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$corpregareahtml = "";
$corpregareas = array( "其他", "中国大陆", "中国香港", "中国台湾", "中国澳门", "东南亚", "欧洲", "南美", "非洲", "西亚", "北美", "美国", "英国", "法国", "德国", "日本", "韩国", "新加坡", "加拿大" );
foreach ( $corpregareas as $key => $value )
{
		$selectstr = $key == $list['corpregarea'] ? " selected" : "";
		$corpregareahtml .= "<option value=\"".$key."\"{$selectstr}>{$value}</option>";
}
$corpregyearhtml = "";
$nowy = sgmdate( "Y" );
$i = 0;
for ( ;	$i < 80;	++$i	)
{
		$they = $nowy - $i;
		$selectstr = $they == $list['corpregyear'] ? " selected" : "";
		$corpregyearhtml .= "<option value=\"".$they."\"{$selectstr}>{$they}</option>";
}
$corpregmonthhtml = "";
$i = 1;
for ( ;	$i < 13;	++$i	)
{
		$selectstr = $i == $list['corpregmonth'] ? " selected" : "";
		$corpregmonthhtml .= "<option value=\"".$i."\"{$selectstr}>{$i}</option>";
}

?>

⌨️ 快捷键说明

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