<?php /** * [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved. * The contents of this file are subject to the License; you may not use this file except in compliance with the License. * * @version $Revision: 2075 $ */ require "../libraries/common.inc.php"; uses("jobtype", "typeoption"); require LIB_PATH . 'page.class.php'; require LIB_PATH . 'cache.class.php'; require "session_cp.inc.php"; $jobtypes = new Jobtypes(); $typeoption = new Typeoption(); $type_models = new Typeoptions(); $cache = new Caches(); $page = new Pages(); $conditions = array(); $tpl_file = "jobtype"; setvar("AskAction", $typeoption->get_cache_type("common_option")); if (isset($_POST['save']) && !empty($_POST['data'])) { if ($_POST['data']['method'] == 2) { $result = $type_models->copy("jobtypes", $_POST['data']['truncate'], $_POST['data']['coverage']); } else { $vals = array(); $vals = $_POST['data']['jobtype']; $vals['level'] = intval($pdb->GetOne("SELECT level AS new_level FROM {$tb_prefix}jobtypes WHERE id='" . $vals['parent_id'] . "'") + 1); if (!empty($_POST['id'])) { $result = $jobtypes->save($vals, "update", $_POST['id']); } elseif (!empty($vals['name'])) {
/** * [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved. * The contents of this file are subject to the License; you may not use this file except in compliance with the License. * * @version $Revision: 2238 $ */ require "../libraries/common.inc.php"; require "room.share.php"; require LIB_PATH . 'time.class.php'; uses("job", "typeoption", "area", "industry", "jobtype"); check_permission("job"); $job = new Jobs(); $area = new Areas(); $industry = new Industries(); $typeoption = new Typeoption(); $jobtypes = new Jobtypes(); $tpl_file = "job"; if (!$company->Validate($companyinfo)) { flash("pls_complete_company_info", "company.php", 0); } if (isset($_GET['do'])) { $do = trim($_GET['do']); if (isset($_GET['id'])) { $id = intval($_GET['id']); } if ($do == "del" && !empty($id)) { $job->del($id, "member_id=" . $the_memberid); } if ($do == "edit") { setvar("Genders", $G['typeoption']['gender']); setvar("Educations", $G['typeoption']['education']);