* @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage job */ require_once '../config/config.inc.php'; require_once "../class/job.class.php"; require_once '../../useradmin/checklogin.php'; $objWebInit = new job(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); //smarty参数 $objWebInit->arrGSmarty = $arrGSmarty; //图片上传参数 $objWebInit->arrGPic = $arrGPic; $objWebInit->db(); if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST['submitpass']) || $_POST['submitpass'] != $_SESSION['submitpasskey']) { exit; } if (empty($_POST['type_id']) || empty($_POST['title']) || empty($_POST['intro']) || empty($_POST['workexperience']) || empty($_POST['educationrecord']) || empty($_POST['salary']) || empty($_POST['num']) || empty($_POST['companyname']) || empty($_POST['companyintro']) || empty($_POST['contact'])) { check::AlertExit("错误:有必填选项没填!", -1); } $arrTemp = explode('|', $_POST['type_id']); $_POST['type_id'] = $arrTemp[0]; $_POST['type_roue_id'] = $arrTemp[1]; if ($_POST['title'] != '') { $_POST['title_md5'] = md5($_POST['title']); } //判断文章信息 $arrTemp = $objWebInit->getInfoList("where title_md5='{$_POST['title_md5']}' and user_id = '{$_SESSION['user_id']}' and type_id='{$_POST['type_id']}'", "", 0, 1);
* @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage job */ if (is_object($objWebInit)) { if (!isset($objjob)) { include_once __WEB_ROOT . "/job/class/job.class.php"; include_once __WEB_ROOT . "/job/config/var.inc.php"; $objjob = new job(); $objjob->setDBG($arrGPdoDB); if (is_object($objWebInit->db)) { $objjob->db = $objWebInit->db; } else { $objjob->db(); } } if (isset($arrInfo['tag']) && !empty($arrInfo['tag'])) { $arrTag = explode(',', $arrInfo['tag']); $where = array(); foreach ($arrTag as $strTag) { $where[] = "'%" . $strTag . "%'"; } //echo $arrInfo['id']; //print_r($where); $strWhere = implode(" || ", $where); $strWhere = 'where (tag like ' . $strWhere . ')'; } //echo $strWhere; $arrRelative = array();