public function admin_save() { if (isset($_POST['hdn_id'])) { $id = $_POST['hdn_id']; } else { $id = 0; } $company_id = 0; $business_field_id = $_POST['cmb_business_field']; $name = $_POST['txt_name']; $job_type_id = $_POST['cmb_job_type']; $description = $_POST['txt_description']; $date_from = $_POST['txt_date_from']; $date_to = $_POST['txt_date_to']; $country_id = $_POST['cmb_country']; $city_id = $_POST['cmb_city']; $location = $_POST['txt_location']; $salary_from = $_POST['txt_salary_from']; $salary_to = $_POST['txt_salary_to']; $salary_currency_id = $_POST['cmb_salary_currency']; $education = $_POST['txt_education']; $major = $_POST['txt_major']; $grade_id = $_POST['cmb_grade']; $min_experience = $_POST['txt_min_experience']; $max_experience = $_POST['txt_max_experience']; $min_age = $_POST['txt_min_age']; $max_age = $_POST['txt_max_age']; $gender_id = $_POST['cmb_gender']; $computer_skills = $_POST['txt_computer_skills']; $position_id = $_POST['cmb_position']; if (isset($_POST['chk_have_car'])) { $have_car = 1; } else { $have_car = 0; } if (isset($_POST['chk_have_driving_license'])) { $have_driving_license = 1; } else { $have_driving_license = 0; } $jobsModel = new jobsModel(); $jobsModel->save($id, $company_id, $business_field_id, $name, $job_type_id, $description, $date_from, $date_to, $country_id, $city_id, $location, $salary_from, $salary_to, $salary_currency_id, $education, $major, $grade_id, $min_experience, $max_experience, $min_age, $max_age, $gender_id, $computer_skills, $position_id, $have_car, $have_driving_license); $this->view_admin_jobs(); }