<!-- DISPLAYS JOB REQUEST FORM --> <?php include "sessionGet.php"; //session_start(); $sessionUsername = getSessionUsername(); $sessionName = getSessionName(); $sessionUserType = getSessionUserType(); $sessionUserSection = getSessionUserSection(); $user = new functionalityManager(); if (isset($_POST['addRequest'])) { $lastNum = $user->retrieveMaxJRNum(); if ($lastNum == NULL) { $lastNum = 100; } else { $lastNum = $lastNum += 1; } $srvce_sect = ""; if (isset($_POST['serviceSection'])) { if ($_POST['serviceSection'] == "System Ad") { $srvce_sect = "SYS"; } else { if ($_POST['serviceSection'] == "Network Ad") { $srvce_sect = "NET"; } else { if ($_POST['serviceSection'] == "MIS") { $srvce_sect = "MIS"; } else { if ($_POST['serviceSection'] == "Rent to Own") { $srvce_sect = "RTO"; } else { if ($_POST['serviceSection'] == "Tech Support") {
echo '<td>'; echo "Amount: " . $row['total']; echo '</td>'; echo '</tr>'; echo '</table>'; echo '</fieldset>'; ?> </div> </div> <div id="pieChart"> <br/> <fieldset> <legend>Income Per Section</legend> <div id="chartid"> <?php $admin = new functionalityManager(); $tech = $admin->getAmountSection('Tech Support'); if ($tech == "") { $tech = 0; } $system = $admin->getAmountSection('System Ad'); if ($system == "") { $system = 0; } $network = $admin->getAmountSection('Network Ad'); if ($network == "") { $network = 0; } $mis = $admin->getAmountSection('MIS'); if ($mis == "") { $mis = 0;
<?php include "sessionGet.php"; //session_start(); $sessionUsername = getSessionUsername(); $sessionName = getSessionName(); $sessionUserType = getSessionUserType(); $sessionUserSection = getSessionUserSection(); if ($sessionUserType == "Executive") { header('Location: job_request_exec.php'); } else { if ($sessionUserType == "Manager") { header('Location: job_request_manager.php'); } } $user = new functionalityManager(); $listOfJR = $user->retrieveListOfJR($sessionUserSection); if (isset($_POST["back"])) { header('Location: #top'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript"> function checkIfNullStatus(){ var a = document.getElementById('status').value; if(a=="")
<?php include "sessionGet.php"; //session_start(); //UPDATES THE JOB REQUEST $sessionUsername = getSessionUsername(); $sessionName = getSessionName(); $sessionUserType = getSessionUserType(); $sessionUserSection = getSessionUserSection(); $username = $sessionUsername; $user = new functionalityManager(); $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'];
echo '</td>'; echo '</tr>'; echo '</table>'; ?> </fieldset> </div> </div> <div id="dashboardRight"> <div id="chartIncome"> <br/> <fieldset> <legend><a href="income.php">Income Per Month</a></legend> <div id="graphA">Loading graph...</div> <?php $admin = new functionalityManager(); $janR = $admin->getAmountPerSection('January', 'Rent to Own'); if ($janR == "") { $janR = 0; } $febR = $admin->getAmountPerSection('February', 'Rent to Own'); if ($febR == "") { $febR = 0; } $marchR = $admin->getAmountPerSection('March', 'Rent to Own'); if ($marchR == "") { $marchR = 0; } $aprilR = $admin->getAmountPerSection('April', 'Rent to Own'); if ($aprilR == "") { $aprilR = 0;
<?php include "sessionGet.php"; //session_start(); $sessionUsername = getSessionUsername(); $sessionName = getSessionName(); $sessionUserType = getSessionUserType(); $sessionUserSection = getSessionUserSection(); //LOADS THE JOB REQUEST INFORMATION $user = new functionalityManager(); $count = $user->countJR($sessionUserSection); for ($i = 0; $i < $count; $i++) { $index = "edit" . $i; if (isset($_POST[$index])) { $index2 = "jrnum" . $i; $values = $user->getJobRequest($_POST[$index2]); $jrNum = $_POST[$index2]; if ($values['SECTION'] != "Rent to Own") { $gen = $user->getGeneral($_POST[$index2]); } if ($values['SECTION'] == "Tech Support") { $tech = $user->getTech($_POST[$index2]); } else { if ($values['SECTION'] == "Rent to Own") { $rent = $user->getRent($_POST[$index2]); } else { if ($values['SECTION'] == "Network Ad") { $net = $user->getNetad($_POST[$index2]); } } }
<?php include "sessionGet.php"; //session_start(); $sessionUsername = getSessionUsername(); $sessionName = getSessionName(); $sessionUserType = getSessionUserType(); $sessionUserSection = getSessionUserSection(); $admin = new databaseManager(); $user = new functionalityManager(); if (isset($_POST['addRequest'])) { $lastNum = $user->retrieveMaxJRNum(); if ($lastNum == NULL) { $lastNum = 100; } else { $lastNum = $lastNum += 1; } $srvce_sect = ""; if (isset($_POST['serviceSection'])) { if ($_POST['serviceSection'] == "System Ad") { $srvce_sect = "SYS"; } else { if ($_POST['serviceSection'] == "Network Ad") { $srvce_sect = "NET"; } else { if ($_POST['serviceSection'] == "MIS") { $srvce_sect = "MIS"; } else { if ($_POST['serviceSection'] == "Rent to Own") { $srvce_sect = "RTO"; } else {