コード例 #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $job = job::find($id);
     if (!$job) {
         return $this->respondNotFound('Job does not exist');
     }
     return Response::json(['data' => $this->jobTransformer->transform($job)], 200);
 }
コード例 #2
0
ファイル: jobsController.php プロジェクト: waeltech/lara
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $this->validate($request, ['title' => 'required|max:100', 'description' => 'required|max:3000', 'salary' => 'required|numeric|min:1|max:90000', 'location' => 'required|max:100', 'skills' => 'required']);
     // store in the database
     $user = Auth::user()->id;
     $job = new job();
     $job->title = $request->title;
     $job->description = $request->description;
     $job->salary = $request->salary;
     $job->location = $request->location;
     $job->user_id = $user;
     $job->save();
     $job->skills()->attach($request->skills);
     $job->save();
     Session::flash('success', 'The job was successfully save!');
     return redirect()->route('job.show', $job->id);
 }
コード例 #3
0
ファイル: html.inc.php プロジェクト: hcd2008/destoon
     $all ? msg($MOD['name'] . '生成成功', $this_forward) : dmsg($MOD['name'] . '生成成功', $this_forward);
 }
 $catid = isset($catid) ? intval($catid) : '';
 $sql = $catid ? " AND catid={$catid}" : '';
 if (!isset($fid)) {
     $r = $db->get_one("SELECT min(itemid) AS fid FROM {$table} WHERE status>2 {$sql}");
     $fid = $r['fid'] ? $r['fid'] : 0;
 }
 isset($sid) or $sid = $fid;
 if (!isset($tid)) {
     $r = $db->get_one("SELECT max(itemid) AS tid FROM {$table} WHERE status>2 {$sql}");
     $tid = $r['tid'] ? $r['tid'] : 0;
 }
 if ($update) {
     require MD_ROOT . '/job.class.php';
     $do = new job($moduleid);
 }
 isset($num) or $num = 100;
 if ($fid <= $tid) {
     $result = $db->query("SELECT itemid FROM {$table} WHERE status>2 AND itemid>={$fid} {$sql} ORDER BY itemid LIMIT 0,{$num} ");
     if ($db->affected_rows($result)) {
         while ($r = $db->fetch_array($result)) {
             $itemid = $r['itemid'];
             $update ? $do->update($itemid) : tohtml('show', $module);
         }
         $itemid += 1;
     } else {
         $itemid = $fid + $num;
     }
 } else {
     if ($update) {
コード例 #4
0
ファイル: shortlistpro.php プロジェクト: salajss/eRecruitment
<?php

$id = $_POST['Data'];
include_once "../config/job.php";
$ob1 = new job();
$result = $ob1->select_shortist_vcandidate($id);
$n = mysqli_num_rows($result);
if ($n > 0) {
    while ($r = mysqli_fetch_array($result)) {
        ?>
<option value="<?php 
        echo $r['login_id'];
        ?>
"><?php 
        echo $r['full_name'];
        ?>
</option>
<?php 
    }
} else {
    echo '<script>alert("No data found");</script>';
}
?>


コード例 #5
0
ファイル: task.inc.php プロジェクト: pmtool/pmtool
 /**
  * void delete()
  * saves a new task in database
  * @return int id, if saving was successful, else false
  * @access public
  */
 function delete()
 {
     global $dbInst, $toolInst, $loginInst;
     if (!$loginInst->hasAccess("task.delete")) {
         return false;
     }
     $this->activate($this->id);
     if (!$this->id) {
         $toolInst->errorStatus("no record selected");
         return false;
     }
     if ($dbInst->getValue("select id from " . $dbInst->config['table_task'] . " where mount_id = '" . $this->id . "'")) {
         $toolInst->errorStatus("dependency check failed: unable to delete task with existing member tasks");
         return false;
     }
     if (count($this->attachments) > 0) {
         $toolInst->errorStatus("dependency check failed: there are existing attachments. Please delete them first.");
         return false;
     }
     # delete assigned jobs
     $jobInst = new job();
     $jobInst->deleteByTask($this->id);
     $this->activate($this->id);
     $result = $dbInst->query("delete from " . $dbInst->config['table_task'] . " where id = '" . $this->id . "'");
     $dbInst->status($result[1], "d");
     // logging
     $userInst = new user($this->userId);
     $this->logger->warn("deleted task (" . $this->subject . ") for " . $userInst->name);
     $this->clear();
 }
コード例 #6
0
ファイル: relative.php プロジェクト: TiMoChao/lc_ad_first
<?php

/**
 * 相关新闻 列表文件
 *
 * @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);
コード例 #7
0
ファイル: my.inc.php プロジェクト: hcd2008/destoon
    }
    $head_title = $L['resume_manage'];
    if ($_userid) {
        $nums = array();
        for ($i = 1; $i < 4; $i++) {
            $r = $db->get_one("SELECT COUNT(*) AS num FROM {$DT_PRE}resume WHERE username='******' AND status={$i}");
            $nums[$i] = $r['num'];
        }
        $r = $db->get_one("SELECT COUNT(*) AS num FROM {$DT_PRE}job_apply WHERE apply_username ='******'");
        $nums['apply'] = $r['num'];
    }
    include template('my_resume', 'member');
} else {
    $MG['job_limit'] > -1 or dalert(lang('message->without_permission_and_upgrade'), 'goback');
    require MD_ROOT . '/job.class.php';
    $do = new job($moduleid);
    if (in_array($action, array('add', 'edit'))) {
        $FD = cache_read('fields-' . substr($table, strlen($DT_PRE)) . '.php');
        if ($FD) {
            require DT_ROOT . '/include/fields.func.php';
        }
        isset($post_fields) or $post_fields = array();
        $CP = $MOD['cat_property'];
        if ($CP) {
            require DT_ROOT . '/include/property.func.php';
        }
        isset($post_ppt) or $post_ppt = array();
    }
    $sql = $_userid ? "username='******'" : "ip='{$DT_IP}'";
    $limit_used = $limit_free = $need_password = $need_captcha = $need_question = $fee_add = 0;
    if (in_array($action, array('', 'add'))) {
コード例 #8
0
ファイル: install.php プロジェクト: TiMoChao/lc_ad_first
<?php

/*
 * 招聘信息数据库安装文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * modified		2009-1-3
 */
include_once dirname(__FILE__) . '/config/config.inc.php';
include_once dirname(__FILE__) . '/class/job.class.php';
$objWebInit = new job();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
$objWebInit->db();
if (empty($charset)) {
    $charset = str_replace('-', '', $arrGWeb['charset']);
}
if (empty($charset)) {
    $extend = $objWebInit->db->getAttribute(PDO::ATTR_SERVER_VERSION) > '4.1' ? " DEFAULT CHARSET={$charset} " : "";
}
$intDbSummaryLen = $arrGWeb['db_summary_len'];
//写入频道数组
if (empty($strWEB_ROOT_pre)) {
    $strWEB_ROOT_pre = $arrGWeb['WEB_ROOT_pre'];
}
if (empty($strWEBADMIN_ROOT)) {
    $strWEBADMIN_ROOT = $arrGWeb['WEBADMIN_ROOT'];
コード例 #9
0
ファイル: search_t.php プロジェクト: TiMoChao/lc_ad_first
<?php

/**
 * 供求信息 列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	job
 */
require_once 'config/config.inc.php';
require_once "class/job.class.php";
$objWebInit = new job();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$arrGSmarty['caching'] = false;
$objWebInit->arrGSmarty = $arrGSmarty;
//翻页参数
$objWebInit->arrGPage = $arrGPage;
$objWebInit->db();
$arrWhere = array();
$arrLink = array();
$arrWhere[] = "pass='******'";
$strLink = '';
if (!empty($_REQUEST['keywords'])) {
    $strKeywords = strval(urldecode($_REQUEST['keywords']));
    if ($strKeywords[0] == '/') {
        //精确查询ID
        $strKeywords = substr($strKeywords, 1);
コード例 #10
0
ファイル: create_job.php プロジェクト: idoqo/yedoe
$conn = new PDO(DB_DSN, DB_USER, DB_PASS);
if (!isset($_COOKIE['logged'])) {
    $_SESSION['message'] = "Sorry, but you have to be logged in.";
    header("location: login.php");
    exit;
}
$email = $_COOKIE['logged'];
$pswrd = $_COOKIE['_intseid'];
$ID = User::getCurrentUser($_COOKIE['logged']);
$info = User::about($email, $pswrd);
if ($info['utype'] == "intern") {
    echo "Unforunately, You cannot post a job. You may consider inviting specific users to your project";
    exit;
}
if (isset($_POST['post'])) {
    $job = new job();
    $job->storeFormValues($_POST);
    $job->posted_by = $ID['UserID'];
    //verify url
    if ($_POST['app_method'] == "link") {
        if ($_POST['url'] != "" && filter_var($_POST['url'], FILTER_VALIDATE_URL) == false) {
            echo "Invalid URL provided";
        }
    }
    $returnedID = $job->create();
    $_SESSION['success'] = "<h3 style=\"padding: 0.9em; background: white; color: #589566;\"><i class=\"fa fa-check\"></i> Project Successfully added</h3>";
    header("location: viewJob.php?id={$returnedID}");
    exit;
}
?>
コード例 #11
0
ファイル: index.php プロジェクト: TiMoChao/lc_ad_first
<?php

/**
 * 招聘信息后台管理栏目首页文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @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 '../..' . __WEBADMIN_ROOT . '/checklogin.php';
$objWebInit = new job();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
//翻页参数
$objWebInit->arrGPage = $arrGPage;
//图片上传参数
$objWebInit->arrGPic = $arrGPic;
$objWebInit->db();
//访问权限检查
if (!$objWebInit->checkPopedomG($_SESSION['user_id'])) {
    check::AlertExit('对不起,您没有权限访问此页', -1);
}
$arrWhere = array();
$arrLink = array();
if (isset($_GET['action'])) {
コード例 #12
0
ファイル: appalypro.php プロジェクト: salajss/eRecruitment
<?php

include_once "../config/job.php";
$user_id = $_POST['user_id'];
$vacancy_id = $_POST['vacancy_id'];
$marklist = $_FILES['marklist']['name'];
$size = $_FILES['marklist']['size'];
if ($_FILES['marklist']['type'] == "application/pdf" && $size / 1024 < 400) {
    $ob = new job();
    $ob->applyjob($user_id, $vacancy_id, $marklist);
    move_uploaded_file($_FILES['marklist']['tmp_name'], "../Marklist/" . $marklist);
}
コード例 #13
0
	<div class="features">
		<div class="container">
			<div class="work-title">
				<h3>Interview Call</h3>
		  </div>
			<div class="features-info">
				<div class="features-text">
					<h4>&nbsp;</h4>
                    <?php 
$company_id = $_SESSION['userid'];
$vid = $_GET['id'];
$user = $_GET['id1'];
$apid = $_GET['apid'];
include_once "../config/job.php";
$ob1 = new job();
$ress = $ob1->select_vacancy_desig($vid);
$r1 = mysqli_fetch_array($ress);
include_once "../config/seeker.php";
$ob = new seeker();
$res1 = $ob->seeker_details($user);
$rr = mysqli_fetch_array($res1);
?>
					<form name="form1" method="post" action="interviewpro.php">
					  <table width="857" border="0">
                        <tr>
                          <td width="214" height="29">Vacancy</td>
                          <td width="143"><?php 
echo $r1['designation'];
?>
</td>
コード例 #14
0
ファイル: vacancypro.php プロジェクト: salajss/eRecruitment
<?php

$id = $_POST['Data'];
include_once "../config/job.php";
$ob1 = new job();
$result = $ob1->select_candidate_apply($id);
?>
<table width="771" border="1">
  <tr>
    <th width="86">Name</th>
    <th width="111">Skill</th>
    <td width="167">Experience</td>
    <td colspan="3">&nbsp;</td>
    
  </tr>
<?php 
while ($r = mysqli_fetch_array($result)) {
    ?>

  <tr>
    <td><?php 
    echo $r['full_name'];
    ?>
</td>
    <td><?php 
    echo $r['skill'];
    ?>
</td>
    <td><?php 
    echo $r['experience'];
    ?>
コード例 #15
0
ファイル: index.php プロジェクト: pmtool/pmtool
    <th>since</th>
    <th>used time</th>
  </tr>
    <?php 
$userInst = new user();
$list = $userInst->getList();
while ($element = current($list)) {
    echo "<tr>\n";
    // create a new user object, based on the current element of the list
    $user = new user($element);
    echo "<td>" . $user->username . "</td>\n";
    // determine the id of the job, the user is currently working at
    $job = new job();
    $jobId = $job->getOpenJob($user->id);
    if ($jobId) {
        $job = new job($jobId);
        $task = new task($job->taskId);
        $project = new project($task->projectId);
        echo "<td>" . $project->name . "</td>\n";
        echo "<td>" . $task->subject . "</td>\n";
        echo "<td>" . $toolInst->getTime("H:i", $job->start) . "</td>\n";
        echo "<td>" . $toolInst->formatTime($job->getSummary()) . "</td>\n";
    } else {
        echo "<td colspan=\"4\">offline</td>\n";
    }
    next($list);
    echo "</tr>\n";
}
?>
</table>
<?php 
コード例 #16
0
ファイル: search.inc.php プロジェクト: hiproz/zhaotaoci.cc
    $MARRIAGE[0] = $L['all_marriage'];
    $EDUCATION[0] = $L['all_education'];
    $pagesize = $MOD['pagesize'];
    $offset = ($page - 1) * $pagesize;
    if ($action == 'resume') {
        $condition .= " AND open=3";
        require MD_ROOT . '/resume.class.php';
        $do = new resume($moduleid);
        $tags = $do->get_list($condition, 'edittime desc', $DT['cache_search'] ? 'CACHE' : '');
    } else {
        if ($pptsql) {
            $condition .= $pptsql;
        }
        //PPT
        require MD_ROOT . '/job.class.php';
        $do = new job($moduleid);
        $tags = $do->get_list($condition, $MOD['order'], $DT['cache_search'] ? 'CACHE' : '');
        if ($tags && $kw) {
            foreach ($tags as $k => $v) {
                $tags[$k]['title'] = str_replace($kw, '<span class="highlight">' . $kw . '</span>', $v['title']);
            }
            if ($page == 1) {
                keyword($kw, $items, $moduleid);
            }
        }
    }
}
$showpage = 1;
$seo_file = 'search';
include DT_ROOT . '/include/seo.inc.php';
include template('search', $module);
コード例 #17
0
         $startTime = $_GET['start_time'];
     } elseif (isset($_POST['start_time'])) {
         $startTime = $_POST['start_time'];
     } else {
         // TODO ERROR
     }
     if (isset($_GET['end_time'])) {
         $endTime = $_GET['end_time'];
     } elseif (isset($_POST['end_time'])) {
         $endTime = $_POST['end_time'];
     } else {
         // TODO ERROR
     }
     $startTime = mktime(0, 0, 0, substr($startTime, 3, 2), substr($startTime, 0, 2), substr($startTime, 6, 4));
     $endTime = mktime(23, 59, 59, substr($endTime, 3, 2), substr($endTime, 0, 2), substr($endTime, 6, 4));
     $job = new job($id);
     $job->updatePolling($startTime, $endTime, $polling);
     // TODO
     echo 'Le job vient d\'être modifié!';
     echo '<script type="text/javascript">dataTable.ajax.reload();</script>';
     break;
 case 'delete_form':
     if (isset($_GET['id'])) {
         $id = $_GET['id'];
     } elseif (isset($_POST['id'])) {
         $id = $_POST['id'];
     } else {
         // TODO ERROR
     }
     $job = new job($id);
     echo '
コード例 #18
0
ファイル: services.php プロジェクト: klich3/gPOS
 // SERVICIO - ACTUALIZAR PRECIOS
 case "actualizarNuevosPV":
     $listalocal = CleanID($_GET["listalocal"]);
     $IdLocal = getSesionDato("IdTienda");
     $IdLocal = $listalocal != 0 ? $listalocal : $IdLocal;
     echo actualizarNuevosPVAlmacen($IdLocal);
     exit;
     break;
 case "actualizarAllNuevosPV":
     echo actualizarAllNuevosPVAlmacen();
     exit;
     break;
 case "setStatusTrabajoSubsidiario":
     $idtrabajo = CleanID($_GET["idtrabajo"]);
     $status = CleanText($_GET["status"]);
     $job = new job();
     $job->qModificacionEstado($status, $idtrabajo);
     exit;
     break;
 case "syncStockAlmacen":
     $IdLocal = getSesionDato("IdTiendaDependiente");
     $time = CleanInt($_POST["timeSyncTPV"]);
     $xsync = setSyncTPV('Stock');
     $xjsOut = syncUnidAlmacen($time, $IdLocal);
     echo $xjsOut;
     exit;
     break;
 case "getStockAlmacen":
     $IdLocal = getSesionDato("IdTiendaDependiente");
     $xjsOut = getUnidAlmacen($IdLocal);
     echo $xjsOut;
コード例 #19
0
ファイル: index.inc.php プロジェクト: TiMoChao/lc_ad_first
<?php

/**
 * 招聘信息 列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	job
 */
require_once 'config/config.inc.php';
require_once "class/job.class.php";
$objWebInit = new job();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
//翻页参数
$objWebInit->arrGPage = $arrGPage;
$objWebInit->db();
if (!is_array($arrMType) || empty($arrMType)) {
    $arrMType = $objWebInit->getTypeList();
    $arrMType = $objWebInit->formatTypeList(0, $arrMType);
}
foreach ($arrMType as $k => $v) {
    $arrTopjob[$k] = array();
    if (is_array($v)) {
        $arrTopjob[$k]['type_title'] = $v['type_title'];
        $arrTopjob[$k]['type_id'] = $v['type_id'];
    } else {
コード例 #20
0
ファイル: index.inc.php プロジェクト: hiproz/zhaotaoci.cc
<?php

defined('DT_ADMIN') or exit('Access Denied');
require MD_ROOT . '/job.class.php';
$do = new job($moduleid);
$menus = array(array('添加招聘', '?moduleid=' . $moduleid . '&action=add'), array('招聘列表', '?moduleid=' . $moduleid), array('审核招聘', '?moduleid=' . $moduleid . '&action=check'), array('过期招聘', '?moduleid=' . $moduleid . '&action=expire'), array('未通过招聘', '?moduleid=' . $moduleid . '&action=reject'), array('回收站', '?moduleid=' . $moduleid . '&action=recycle'), array('移动招聘', '?moduleid=' . $moduleid . '&action=move'));
if (in_array($action, array('add', 'edit'))) {
    $FD = cache_read('fields-job.php');
    if ($FD) {
        require DT_ROOT . '/include/fields.func.php';
    }
    isset($post_fields) or $post_fields = array();
    $CP = $MOD['cat_property'];
    if ($CP) {
        require DT_ROOT . '/include/property.func.php';
    }
    isset($post_ppt) or $post_ppt = array();
}
if ($_catids || $_areaids) {
    require DT_ROOT . '/admin/admin_check.inc.php';
}
if (in_array($action, array('', 'check', 'expire', 'reject', 'recycle'))) {
    $GENDER[0] = '性别要求';
    $TYPE[0] = '工作性质';
    $MARRIAGE[0] = '婚姻状况';
    $EDUCATION[0] = '学历要求';
    $sfields = array('模糊', '职位名称', '简介', '招聘部门', '公司名', '联系人', '联系电话', '联系地址', '电子邮件', '联系MSN', '联系QQ', '会员名', 'IP');
    $dfields = array('keyword', 'title', 'introduce', 'department', 'company', 'truename', 'telephone', 'address', 'email', 'msn', 'qq', 'username', 'ip');
    $sorder = array('结果排序方式', '更新时间降序', '更新时间升序', '添加时间降序', '添加时间升序', '浏览次数降序', '浏览次数升序', '招聘人数降序', '招聘人数升序', '最低待遇降序', '最低待遇升序', '最高待遇降序', '最高待遇升序', '学历高低降序', '学历高低升序', '信息ID降序', '信息ID升序');
    $dorder = array($MOD['order'], 'edittime DESC', 'edittime ASC', 'addtime DESC', 'addtime ASC', 'hits DESC', 'hits ASC', 'total DESC', 'total ASC', 'minsalary DESC', 'minsalary ASC', 'maxalary DESC', 'maxsalary ASC', 'education DESC', 'education ASC', 'itemid DESC', 'itemid ASC');
    $level = isset($level) ? intval($level) : 0;
コード例 #21
0
ファイル: index.php プロジェクト: salajss/eRecruitment
					</li>
				</ul>
			</div>
	</div>
	<div class="clearfix"> </div>
	<!--//banner-->
	<!--work-->
	<div class="work">
		<div class="container">

				<div id="top" class="callbacks_container">				  </div>
	  </div>
	</div>
<?php 
include_once "config/job.php";
$ob = new job();
$res = $ob->select_vacancy();
?>

<div class="content">
		<div class="container">
			<div class="content-grids">
				<div class="col-md-8 humble">
			  <div class="col-md-6 humble-grids">
						<div class="content-left">
							<a href="images/img1.jpg" class="b-link-stripe b-animate-go   swipebox"  title="">
							<div class="b-wrapper">
									<h2 class="b-animate1 b-from-left    b-delay03 ">
										<img class="img-responsive" src="images/icon10.png" class="zoom" alt=""/>
									</h2>					
								</div>
コード例 #22
0
ファイル: detail.inc.php プロジェクト: TiMoChao/lc_ad_first
<?php

/**
 * 招聘信息 列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	job
 */
require_once 'config/config.inc.php';
require_once 'config/area_code.inc.php';
require_once "class/job.class.php";
$objWebInit = new job();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
$objWebInit->db();
//图像参数
$objWebInit->arrGPic = $arrGPic;
//smarty参数
if ($arrGWeb['URL_static']) {
    $arrGSmarty['caching'] = false;
} else {
    $arrGSmarty['cache_lifetime'] = 3600;
}
$objWebInit->arrGSmarty = $arrGSmarty;
//调用登陆窗口block
include __WEB_ROOT . '/user/block/index_login_box.php';
if ($_GET['id'] === null) {
    exit;
コード例 #23
0
<?php

$id = $_POST['Data'];
include_once "../config/job.php";
$ob1 = new job();
$result = $ob1->select_vacancy_update($id);
$n = mysqli_num_rows($result);
if ($n > 0) {
    ?>
<table width="200" border="1">
  <tr>
    <th>Designation</th>
    <th>DesiredProfile</th>
    <th>Experience</th>
    <th>Salary</th>
     <th>Status</th>
    <th>Created Date</th>
    <th></th>
    
  </tr>
<?php 
    while ($r = mysqli_fetch_array($result)) {
        ?>

  <tr>
    <td><?php 
        echo $r['designation'];
        ?>
</td>
    <td><?php 
        echo $r['DesiredProfile'];
コード例 #24
0
ファイル: interviewpro.php プロジェクト: salajss/eRecruitment
<?php

if (isset($_POST['button'])) {
    include_once "../config/job.php";
    $obj = new job();
    $apid = $_POST['apply_id'];
    $vacancy_id = $_POST['vacancy_id'];
    $candidate_id = $_POST['candidate_id'];
    $interview_date = $_POST['interview_date'];
    $interview_time = $_POST['interview_time'];
    $in_procedure = $_POST['in_procedure'];
    $obj->insert_interview($vacancy_id, $candidate_id, $interview_date, $interview_time, $in_procedure, $apid);
}
コード例 #25
0
ファイル: resume.php プロジェクト: salajss/eRecruitment
<?php

$user_id = $_GET['id'];
include_once "../config/job.php";
$ob = new job();
$res = $ob->select_resume($user_id);
$n = mysqli_num_rows($res);
if ($n > 0) {
    $r = mysqli_fetch_array($res);
    $f = "../Resume/" . $r[0];
    header("location:../Resume/{$r['0']}");
} else {
    echo '<font color="red" size="15px">Resume Not Available</font>';
}
コード例 #26
0
ファイル: newest.php プロジェクト: TiMoChao/lc_ad_first
<?php

/**
 * 最新新闻 列表文件
 *
 * @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();
        }
    }
    $arrNewest = array();
    $arrNewest = $objjob->getInfoList("where pass=1", " ORDER BY clicktimes DESC,submit_date DESC,recommendflag DESC,clicktimes DESC", 0, 5, true);
    unset($arrNewest['COUNT_ROWS']);
    //print_r($arrNewest);
    // 输出到模板
    $arrMOutput["smarty_assign"]['arrNewest'] = $arrNewest;
}
コード例 #27
0
ファイル: addinfo.php プロジェクト: TiMoChao/lc_ad_first
<?php

/**
 * 招聘信息后台管理栏目新增文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @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];
コード例 #28
0
ファイル: task.php プロジェクト: Julien-SIMON/GobelinsLab
<?php

// Load the process management class
$procM = new processusManager();
// Check scheduled to plan jobs
$q0 = get_link()->prepare("\nSELECT \n\tjob.id AS ID\nFROM \n\t" . get_ini('BDD_PREFIX') . "core_jobs job \nLEFT JOIN\n\t" . get_ini('BDD_PREFIX') . "core_plugins p\nON\n\tjob.id_plugin = p.id\nAND p.deleted_date = 0\nwhere \n\tjob.deleted_date = 0\nORDER BY \n\tp.name, job.page\n\t\t");
$q0->execute();
while ($r0 = $q0->fetch(PDO::FETCH_OBJ)) {
    $job = new job($r0->ID);
    if ($job->polling != 0 && $job->lastRun < time() - $job->polling) {
        if (!is_file(get_ini('UPLOAD_FOLDER') . 'queue/' . $job->pluginName . '_' . $job->page . '.xml') && !is_file(get_ini('UPLOAD_FOLDER') . 'running/' . $job->pluginName . '_' . $job->page . '.xml')) {
            $job->flagRunning();
            include 'plugins/' . $job->pluginName . '/task_' . $job->page . '_loader.php';
        }
    }
}
// List all job to do in the queue folder
foreach (glob(get_ini('UPLOAD_FOLDER') . "queue/*.xml") as $jobName) {
    $fileFullPath = str_replace('\\', '/', $jobName);
    $jobName = substr($jobName, strrpos($jobName, '/') + 1, strlen($jobName) - strrpos($jobName, '/') - 1);
    // Valid the xml file with XSD
    $domXmlFile = new DOMDocument();
    $domXmlFile->preserveWhiteSpace = false;
    $domXmlFile->Load(get_ini('UPLOAD_FOLDER') . 'queue/' . $jobName);
    if ($domXmlFile->schemaValidate('plugins/core/xsd/core.xsd')) {
        if ($procM->getId($jobName) == 0) {
            $childProcId = $procM->create(0, $jobName, '', 10);
            usleep(500);
            if ($procM->getCount($jobName) > 1) {
                // Wait some millisecond to avoid concurent write
                usleep(mt_rand(100, 20000));
コード例 #29
0
ファイル: taskdetails.php プロジェクト: pmtool/pmtool
if (tool::securePost('action') == "save") {
    $taskId = tool::securePost('taskid');
}
if ($taskId) {
    $taskInst->activate($taskId);
} else {
    $taskId = tool::secureGet('taskid');
    $taskInst->activate($taskId);
}
if (!$taskInst->id) {
    echo "no task found.\n";
    exit;
}
$projectInst = new project($taskInst->projectId);
$userInst = new user($taskInst->userId);
$jobInst = new job();
$jobInst->filterTaskId = $taskInst->id;
#######################################################################
## perform action
$status = 0;
if (tool::securePost('action') == "save" && tool::securePost('id')) {
    // stop job
    $jobInst->fill(tool::securePostAll());
    $jobInst->id = tool::securePost('id');
    $jobInst->taskId = $taskInst->id;
    $jobInst->start = $toolInst->timestampToSec(tool::securePost('startyear'), tool::securePost('startmonth'), tool::securePost('startday'), tool::securePost('starthour'), tool::securePost('startmin'));
    $jobInst->stop = $toolInst->timestampToSec(tool::securePost('stopyear'), tool::securePost('stopmonth'), tool::securePost('stopday'), tool::securePost('stophour'), tool::securePost('stopmin'));
    $saveflags = 0;
    // handle job flags
    if (tool::securePost('privatejob') == "1") {
        $saveflags += JOB_FLAG_PRIVATE;
コード例 #30
0
ファイル: shotlistl.php プロジェクト: salajss/eRecruitment
			<div class="clearfix"> </div>
		</div>	
	</div>

	<div class="features">
		<div class="container">
			<div class="work-title">
				<h3>Shot Listed Candidates</h3>
		  </div>
			<div class="features-info">
				<div class="features-text">
					<h4>&nbsp;</h4>
                    <?php 
$company_id = $_SESSION['userid'];
include_once "../config/job.php";
$ob1 = new job();
$ress = $ob1->select_vacancy_shortist($company_id);
?>
					<form name="form1" method="post" action="Shortlist_candidate.php" onSubmit="return check()">
					  <table width="857" border="0">
                        <tr>
                          <td width="214" height="29">Vacancy</td>
                          <td width="143"><select name="vacancy" size="1" id="vacancy" onChange="msg(this.value)">
                          <option value="">---select---</option>
                          <?php 
while ($r11 = mysqli_fetch_array($ress)) {
    ?>
                          <option value="<?php 
    echo $r11["vacancy_id"];
    ?>
"><?php