File: /home/rtbrisc/public_html/admin/main/general/header.php
<?php
session_start();
require_once('../assets/serve/db.php');
if(empty($_SESSION['user'])){
header("Location: ../../account/login.php");
}else{
$user = $_SESSION['user'];
$customerID = $user['CustomerID'];
$sql = mysqli_query($conn,
"SELECT c.Firstname, c.Lastname, c.Email, c.MobileNumber, c.Address, u.Username, u.Password, p.SupportPlan, p.AccountType, p.BusinessType, p.EmployeeSize
FROM tblcustomer c, tbluser u, tblplan p
WHERE c.CustomerID = '$customerID' && u.CustomerID = '$customerID' && p.CustomerID = '$customerID'");
if($row = mysqli_fetch_assoc($sql)){
$msg = "Success!!";
}else{
$msg = "Failed!!";
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>QIS | Portal</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta content="" name="description" />
<meta content="" name="author" />
<link rel="shortcut icon" href="../assets/img/favicon.jpg">
<!-- BEGIN PLUGIN CSS -->
<link href="../assets/plugins/bootstrap-select2/select2.css" rel="stylesheet" type="text/css" media="screen" />
<link href="../assets/plugins/bootstrap-datepicker/css/datepicker.css" rel="stylesheet" type="text/css" />
<link href="../assets/plugins/bootstrap-timepicker/css/bootstrap-timepicker.css" rel="stylesheet" type="text/css" />
<link href="../assets/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css" rel="stylesheet" type="text/css" />
<link href="../assets/plugins/boostrap-checkbox/css/bootstrap-checkbox.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" href="../assets/plugins/ios-switch/ios7-switch.css" type="text/css" media="screen">
<link href="../assets/plugins/pace/pace-theme-flash.css" rel="stylesheet" type="text/css" media="screen" />
<link href="../assets/plugins/bootstrapv3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/plugins/bootstrapv3/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css" />
<link href="../assets/plugins/animate.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/plugins/jquery-scrollbar/jquery.scrollbar.css" rel="stylesheet" type="text/css" />
<link href="../assets/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
<link href="../assets/css/range.css" rel="stylesheet">
<!-- END PLUGIN CSS -->
<!-- BEGIN CORE CSS FRAMEWORK -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../webarch/css/webarch.css" rel="stylesheet" type="text/css" />
<!-- END CORE CSS FRAMEWORK -->
<link href="../rating/css/star-rating.css" media="all" rel="stylesheet" type="text/css"/>
<style type="text/css">
.check{
opacity:0.5;
color:#996;
}
</style>
<script type="text/javascript">
function disables(){
document.getElementById('txtRequestTypeID').setAttribute("style", "display: none;");
document.getElementById('txtDeviceTypeInfo').setAttribute("style", "display: none;");
document.getElementById('txtDeviceBrandInfo').setAttribute("style", "display: none;");
document.getElementById('txtDateTime').setAttribute("style", "display: none;");
document.getElementById('txtProjectTypeOther').setAttribute("style", "display: none;");
//document.getElementById('txtContentType').setAttribute("style", "display: none;");
}
function showBackupContentType(myText){
if(myText == "Contact Details" || myText == "Documents" || myText == "Media" || myText == "Memos and Notes"){
document.getElementById('txtContentType').setAttribute("style", "display: block;");
}else{
document.getElementById('txtContentType').setAttribute("style", "display: none;");
}
}
function showRequestType(myText){
if(myText == "I need to purchase a device" || myText == "Purchase of Item / Device"){
document.getElementById('txtRequestTypeID').setAttribute("style", "display: block;");
}else{
document.getElementById('txtRequestTypeID').setAttribute("style", "display: none;");
}
}
function showTypeInfo(myText){
if(myText == "Other Device"){
document.getElementById('txtDeviceTypeInfo').setAttribute("style", "display: block;");
}else{
document.getElementById('txtDeviceTypeInfo').setAttribute("style", "display: none;");
}
}
function showBrandInfo(myText){
if(myText == "Other Brands"){
document.getElementById('txtDeviceBrandInfo').setAttribute("style", "display: block;");
}else{
document.getElementById('txtDeviceBrandInfo').setAttribute("style", "display: none;");
}
}
function showTypeOther(myText){
if(myText == "Others"){
document.getElementById('txtProjectTypeOther').setAttribute("style", "display: block;");
}else{
document.getElementById('txtProjectTypeOther').setAttribute("style", "display: none;");
}
}
function tellUsWhen(myText){
if(myText == "Custom Date and Time"){
document.getElementById('txtDateTime').setAttribute("style", "display: block;");
}else{
document.getElementById('txtDateTime').setAttribute("style", "display: none;");
}
}
function showthis(){
var mm = document.getElementById('txtDateTime').value
alert(mm);
}
function PrintThis(elem){
var mywindow = window.open('', 'PRINT', 'height=600,width=800');
//var mywindow = window.open('', 'PRINT', 'height=400,width=600');
mywindow.document.write('<html><head><title>' + document.title + '</title>');
mywindow.document.write('</head><body >');
mywindow.document.write('<h1>' + document.title + '</h1>');
mywindow.document.write(document.getElementById(elem).innerHTML);
mywindow.document.write('</body></html>');
mywindow.document.close(); // necessary for IE >= 10
mywindow.focus(); // necessary for IE >= 10*/
mywindow.print();
mywindow.close();
return true;
}
</script>
<style>
/* The message box is shown when the user clicks on the password field */
#message {
display:none;
background: #f1f1f1;
color: #000;
position: relative;
padding: 10px;
margin-top: 10px;
}
#message2 {
display:none;
background: #f1f1f1;
color: #000;
position: relative;
padding: 10px;
margin-top: 10px;
}
#message p {
padding: 10px 35px;
font-size: 18px;
}
#message2 p {
padding: 10px 35px;
font-size: 18px;
}
/* Add a green text color and a checkmark when the requirements are right */
.valid {
color: green;
}
.valid:before {
position: relative;
left: -35px;
content: "✔";
}
/* Add a red text color and an "x" when the requirements are wrong */
.invalid {
color: red;
}
.invalid:before {
position: relative;
left: -35px;
content: "✖";
}
</style>
</head>