$e_serial4 = $_POST['serial4']; $e_provided5 = $_POST['equip5']; $e_serial5 = $_POST['equip5']; $user->updateNetAd($jrNumber, $e_provided1, $e_serial1, $e_provided2, $e_serial2, $e_provided3, $e_serial3, $e_provided4, $e_serial4, $e_provided5, $e_serial5); } } } else { $user->updateMIS($jrNumber, $service_name, $details, $total_time, $assigned_personnel, $total_amount); } } else { $equipment = $_POST['rent_equipment']; $rent_total_amount = $_POST['rent_total_amount']; $terms = $_POST['rent_terms']; $monthly_payment = $_POST['rent_monthly_payment']; $start_of_contract = $_POST['rent_start']; $end_of_contract = $_POST['rent_end']; $user->updateRent($jrNumber, $equipment, $rent_total_amount, $terms, $monthly_payment, $start_of_contract, $end_of_contract); $user->updateMonthly($jrNumber, $client_name, $monthly_payment); } if ($new_status != $old_status) { $user->updateStatusLog($jrNumber, $date, $reason, $new_status, $old_status, $username); } $user->updateEditLog($jrNumber, $editComments, $date, $username); if ($sessionUserType == "Manager") { header("Location: job_request_manager.php"); } else { if ($sessionUserType == "User(Encoder)") { header("Location: job_request_user.php"); } } }