$jobs = $user->retrieveListOfJR($sessionUserSection);
if (isset($_POST['editRequest'])) {
    $date = gmdate("l\\, jS \\of F Y h:i:s A");
    $jrNumber = $_POST['jrNum'];
    $client_office = $_POST['office'];
    $client_name = $_POST['name'];
    $client_email = $_POST['email'];
    $client_telnum = $_POST['telNumber'];
    $client_designation = $_POST['designation'];
    $new_status = $_POST['status'];
    $old_status = $_SESSION['old_status'];
    $problem = $_POST['problem'];
    $service_type = $_POST['serviceSection'];
    $editComments = $_POST['comment2'];
    $reason = $_POST['reason'];
    $user->updateJobRequest($jrNumber, $new_status, $client_office, $client_name, $client_email, $client_telnum, $client_designation, $problem);
    if ($service_type != "Rent to Own") {
        $service_name = $_POST['service'];
        $details = $_POST['details'];
        $total_time = $_POST['total_hours'];
        $assigned_personnel = $_POST['ass_tech'];
        $total_amount = $_POST['total_amount'];
        if ($service_type != "MIS") {
            $r_materials = $_POST['material'];
            $r_comments = $_POST['comment'];
            $user->updateGeneral($jrNumber, $service_name, $details, $total_time, $assigned_personnel, $total_amount, $r_materials, $r_comments);
            if ($service_type == "Tech Support") {
                $e_newold = $_POST['newOld'];
                $e_brand = $_POST['brand'];
                $e_type = $_POST['type'];
                $e_par = $_POST['parno'];