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);
     }
 }