public function chkBrowser(){ if($this->getBrowserName() == 'Internet_Explorer' && $this->getBrowserVersion() <= 9){ $alert = new MessageAlert; $alert->setMessage("You have an outdated version of Internet Explorer. Please upgrade to latest version or you may use other browser such as Mozilla Firefox/Google Chrome."); //$alert->setURL("http://windows.microsoft.com/en-us/internet-explorer/download-ie"); $alert->setURL(BASE_URL . 'download/'); $alert->Alert(); } }
// SET CONTROL NO $ctrlno = new Table; $ctrlno->setSQLType($fms_db->getSQLType()); $ctrlno->setInstance($fms_db->getInstance()); $ctrlno->setTable("controlnomaster"); $ctrlno->setValues("description = '$desc', type = '$type', code = '$code', noOfDigit = '$noofdigit' , lastDigit = '$lastdigit', modifiedBy = '$sys_UserID', modifiedDate = '$today', status = '$status'"); $ctrlno->setParam("WHERE id = '$id'"); $ctrlno->doQuery("update"); $row_ctrlno = $ctrlno->getLists(); $res_ctrlno = $ctrlno->getError(); // CLOSING FMS DB $fms_db->DBClose(); $msg = null; if($res_ctrlno > 0){ $url = BASE_URL . V_CONTROLNOEDIT . "edit=1&id=" . $id; $msg .= "Sorry! There has been an error in updating your control no. Please check the data and update it again."; }else{ $url = BASE_URL . V_CONTROLNO; $msg .= "Control No successfully updated."; } $alert = new MessageAlert(); $alert->setURL($url); $alert->setMessage($msg); $alert->Alert(); } // -- END UPDATE CONTROL NO -- ?>
// GET ASSIGNEE ID $assigneeID = $row_userassignee[0]['assigneeID']; // SET ASSIGNEE TO SESSION $_SESSION['SYS_ASSIGNEE'] = $assigneeID; // CLOSING FMS DB $fms_db->DBClose(); $alert = new MessageAlert; $alert->setURL(BASE_URL); $alert->setMessage("Access Granted."); $alert->Alert(); }else{ $alert = new MessageAlert; $alert->setURL(BASE_URL . "login.php"); $alert->setMessage("Invalid username or password! Please relogin."); $alert->Alert(); } } ?> <!DOCTYPE html> <html> <head> <!-- Meta, title, CSS, favicons, etc. --> <meta charset="utf-8"> <title>AdminDesigns - A Responsive HTML5 Admin UI Framework</title> <meta name="keywords" content="HTML5 Bootstrap 3 Admin Template UI Theme" /> <meta name="description" content="AdminDesigns - A Responsive HTML5 Admin UI Framework">
<? session_start(); include_once('inc/global.php'); session_unset(); session_destroy(); $alert = new MessageAlert; $alert->setURL(BASE_URL); $alert->setMessage(null); $alert->Alert(); ?>
<? if(isset($_SESSION['SYS_USERID']) && !empty($_SESSION['SYS_USERID'])){ $sys_UserID = $_SESSION['SYS_USERID']; }else{ $alert = new MessageAlert; $alert->setURL(BASE_URL . "login.php"); $alert->setMessage(null); $alert->Alert(); } ?>
if($comp_exist == 0){ $alert = new MessageAlert(); $alert->setURL(BASE_URL . 'invoicing.php'); $alert->setMessage("Invalid URL!11"); $alert->Alert(); } // SET FMS DB $fms_db = new DBConfig; $fms_db->setFleetDB(); // SET MAKE $invoicingdtl = new Table; $invoicingdtl->setSQLType($fms_db->getSQLType()); $invoicingdtl->setInstance($fms_db->getInstance()); $invoicingdtl->setView("v_equipmentrepaireddetail"); $invoicingdtl->setParam("WHERE companyID = '$id' ORDER BY woTransactionDate DESC"); $invoicingdtl->doQuery("query"); $row_invoicingdtl = $invoicingdtl->getLists(); // CLOSING FMS DB $fms_db->DBClose(); }else{ $alert = new MessageAlert(); $alert->setURL(BASE_URL . 'invoicing.php'); $alert->setMessage("Invalid URL!"); $alert->Alert(); } ?>