public function delete($id)
 {
     $business_fieldModel = new business_fieldModel();
     $business_fieldModel->delete($id);
     $business_fields = $business_fieldModel->get_all();
     $view = new viewModel('business_field');
     $view->assign('business_fields', $business_fields);
 }
예제 #2
0
/job/search' method="post">
       
        <div >
        <br/>
        <table>
	  	  <tbody>
		  <tr>
		    <td> Keyword </td>
		    <td><input name="txt_text" type="text" id="txt_text" size="40" /></td>

		    <td> Jop Field </td>
		    <td> 
        
        <select id="cmb_business_field" name="cmb_business_field">
    	<?php 
$business_fieldModel = new business_fieldModel();
$business_fields = $business_fieldModel->get_all();
foreach ($business_fields as $business_field) {
    $business_field_id_here = $business_field[0];
    if ($lang == 'ar') {
        $business_field_name = $business_field[2];
    } else {
        $business_field_name = $business_field[1];
    }
    echo "<option value='{$business_field_id_here}' >{$business_field_name}</option>";
}
?>
    </select>
	</td>
	</tr>
	
예제 #3
0
 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);
 }
예제 #4
0
 public function edit()
 {
     //$id=$_SESSION['company']['id'];
     $id = 1;
     $companyModel = new companyModel();
     $current_company = $companyModel->get_by_id($id);
     //$companys = $companyModel->get_all();
     $combosModel = new combosModel();
     $company_types = $combosModel->get_all_company_type();
     $combosModel = new combosModel();
     $countrys = $combosModel->get_all_country();
     $combosModel = new combosModel();
     $cities = $combosModel->get_all_city(1000);
     $combosModel = new combosModel();
     $titles = $combosModel->get_all_title();
     $business_fieldModel = new business_fieldModel();
     $business_fields = $business_fieldModel->get_all();
     $view = new viewModel('company_account');
     $view->assign('company_types', $company_types);
     $view->assign('countrys', $countrys);
     $city_id = $_POST['cmb_city'];
     $view->assign('titles', $titles);
     $view->assign('business_fields', $business_fields);
     $view->assign('current_company', $current_company);
     //$view->assign('companys',$companys);
 }
예제 #5
0
 public function details($id)
 {
     $combosModel = new combosModel();
     $genders = $combosModel->get_all_gender();
     $combosModel = new combosModel();
     $countrys = $combosModel->get_all_country();
     $combosModel = new combosModel();
     $cities = $combosModel->get_all_cities();
     $combosModel = new combosModel();
     $marital_statuss = $combosModel->get_all_marital_status();
     $combosModel = new combosModel();
     $military_statuss = $combosModel->get_all_military_status();
     $combosModel = new combosModel();
     $grades = $combosModel->get_all_grade();
     $combosModel = new combosModel();
     $positions = $combosModel->get_all_position();
     $combosModel = new combosModel();
     $job_types = $combosModel->get_all_job_type();
     $combosModel = new combosModel();
     $currencys = $combosModel->get_all_currency();
     $business_fieldModel = new business_fieldModel();
     $business_fields = $business_fieldModel->get_all();
     $view = new viewModel('applicant_details');
     $view->assign('genders', $genders);
     $view->assign('countrys', $countrys);
     $view->assign('cities', $cities);
     $view->assign('marital_statuss', $marital_statuss);
     $view->assign('military_statuss', $military_statuss);
     $view->assign('grades', $grades);
     $view->assign('positions', $positions);
     $view->assign('job_types', $job_types);
     $view->assign('currencys', $currencys);
     $view->assign('business_fields', $business_fields);
     $applicantModel = new applicantModel();
     $current_applicant = $applicantModel->get_by_id($id);
     $view->assign('current_applicant', $current_applicant);
 }