public function delete($id) { $companyModel = new companyModel(); $companyModel->delete($id); $screenModel = new screenModel(); $screenModel->delete_company_screens($id); $this->view_all(); }
public function search() { if (isset($_POST['smt_search'])) { $keyword = $_POST['txt_text']; $business_field_id = $_POST['cmb_business_field']; $job_type_id = $_POST['cmb_job_type']; $country_id = $_POST['cmb_country']; $gender_id = $_POST['cmb_gender']; $position_id = $_POST['cmb_position']; $where = '1=1'; if ($keyword != '') { $where = $where . " and `applicant`.`career_objective` like '%{$keyword}%"; } if ($business_field_id != '1') { $where = $where . " and `applicant`.`business_field_id`='{$business_field_id}' "; } if ($job_type_id != '1') { $where = $where . " and `applicant`.`job_type_id`='{$job_type_id}' "; } if ($country_id != '1000') { $where = $where . " and `applicant`.`country_id`='{$country_id}' "; } if ($gender_id != '1') { $where = $where . " and `applicant`.`gender_id`='{$gender_id}' "; } if ($position_id != '1') { $where = $where . " and `applicant`.`position_id`='{$position_id}' "; } $applicantModel = new applicantModel(); $search_applicants = $applicantModel->get_by_condition($where); $view = new viewModel('applicant_search'); $view->assign('search_applicants', $search_applicants); } else { $companyModel = new companyModel(); $companys = $companyModel->get_all(); $business_fieldModel = new business_fieldModel(); $business_fields = $business_fieldModel->get_all(); $combosModel = new combosModel(); $countrys = $combosModel->get_all_country(); $combosModel = new combosModel(); $job_types = $combosModel->get_all_job_type(); $combosModel = new combosModel(); $genders = $combosModel->get_all_gender(); $combosModel = new combosModel(); $positions = $combosModel->get_all_position(); $view = new viewModel('applicant_search'); $view->assign('business_fields', $business_fields); $view->assign('countrys', $countrys); $view->assign('job_types', $job_types); $view->assign('genders', $genders); $view->assign('positions', $positions); } }
public function admin_details($id) { $companyModel = new companyModel(); $companys = $companyModel->get_all(); $business_fieldModel = new business_fieldModel(); $business_fields = $business_fieldModel->get_all(); $combosModel = new combosModel(); $countrys = $combosModel->get_all_country(); $combosModel = new combosModel(); $cities = $combosModel->get_all_cities(); $combosModel = new combosModel(); $job_types = $combosModel->get_all_job_type(); $combosModel = new combosModel(); $currencys = $combosModel->get_all_currency(); $combosModel = new combosModel(); $grades = $combosModel->get_all_grade(); $combosModel = new combosModel(); $genders = $combosModel->get_all_gender(); $combosModel = new combosModel(); $positions = $combosModel->get_all_position(); $view = new viewModel('admin/job_details'); $view->assign('companys', $companys); $view->assign('business_fields', $business_fields); $view->assign('countrys', $countrys); $view->assign('cities', $cities); $view->assign('job_types', $job_types); $view->assign('currencys', $currencys); $view->assign('grades', $grades); $view->assign('genders', $genders); $view->assign('positions', $positions); $jobsModel = new jobsModel(); $current_job = $jobsModel->get_by_id($id); $view->assign('current_job', $current_job); }
<p> <span class="w"> <?php echo $job_lang; ?> : </span><span class="r"> <?php $jobsModel = new jobsModel(); $jobs_count = $jobsModel->get_count(); echo $jobs_count; ?> </span></p> <p> <span class="f"><?php echo $company_lang; ?> :<span class="b"> <?php $companyModel = new companyModel(); $companies_count = $companyModel->get_count(); echo $companies_count; ?> </span></span></p> </div> </div> <div id="apDiv19"><a href="#"><img src="<?php echo site_url . '/public/design/'; ?> images/logo.jpg" width="190" height="146" /></a></div> <div id="apDiv20"> <div id="apDiv21"> <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="675" height="130"> <param name="movie" value="<?php echo site_url . '/public/design/';