File: /home/rtbrisc/public_html/admin/main/dashboard/index.php
<?php include("../general/header.php"); ?>
<body class="">
<?php include("../general/navbar.php"); ?>
<!-- BEGIN CONTENT -->
<div class="page-container row-fluid">
<?php include("../general/sidebar.php"); ?>
<!-- BEGIN PAGE CONTAINER-->
<div class="page-content">
<div class="content">
<!-- BEGIN PAGE TITLE -->
<?php include("../general/customer_name.php"); ?>
<!-- END PAGE TITLE -->
<ul class="breadcrumb">
<li>
<p>DASHBOARD</p>
</li>
</ul>
<!-- BEGIN PlACE PAGE CONTENT HERE -->
<div class="row">
<div class="col-md-4 col-vlg-3 col-sm-6">
<div class="tiles green m-b-10">
<div class="tiles-body">
<a href="../helpdesk" style="display: block;">
<h3 class="text-center text-white">HELPDESK</h3>
</a>
<h4 class="blend text-center">Log an issue / make request</h4>
</div>
</div>
</div>
<div class="col-md-4 col-vlg-3 col-sm-6">
<div class="tiles blue m-b-10">
<div class="tiles-body">
<a href="../project" style="display: block;">
<h3 class="text-center text-white">PROJECT SUPPORT</h3>
</a>
<h4 class="blend text-center">Let's be part of your project</h4>
</div>
</div>
</div>
<div class="col-md-4 col-vlg-3 col-sm-6">
<div class="tiles purple m-b-10">
<div class="tiles-body">
<a href="../track" style="display: block;">
<h3 class="text-center text-white">TRACK YOUR DEVICE</h3>
</a>
<h4 class="blend text-center">Know your device location</h4>
</div>
</div>
</div>
<div class="col-md-4 col-vlg-3 col-sm-6">
<div class="tiles red m-b-10">
<div class="tiles-body">
<a href="../payment" style="display: block;">
<h3 class="text-center text-white">MAKE PAYMENT</h3>
</a>
<h4 class="blend text-center">Pay for service received</h4>
</div>
</div>
</div>
<div class="col-md-4 col-vlg-3 col-sm-6">
<div class="tiles green m-b-10">
<div class="tiles-body">
<a href="../backup" style="display: block;">
<h3 class="text-center text-white">BACKUP SUPPORT</h3>
</a>
<h4 class="blend text-center">Keep your backup records</h4>
</div>
</div>
</div>
<div class="col-md-4 col-vlg-3 col-sm-6">
<div class="tiles blue m-b-10">
<div class="tiles-body">
<a href="../rating" style="display: block;">
<h3 class="text-center text-white">SERVICE RATING</h3>
</a>
<h4 class="blend text-center">Rate Our Service</h4>
</div>
</div>
</div>
<div class="col-md-4 col-vlg-3 col-sm-6">
<div class="tiles purple m-b-10">
<div class="tiles-body">
<a href="" style="display: block;">
<h3 class="text-center text-white">CHAT WITH US</h3>
</a>
<h4 class="blend text-center">Need help? Talk to us</h4>
</div>
</div>
</div>
<div class="col-md-4 col-vlg-3 col-sm-6">
<div class="tiles red m-b-10">
<div class="tiles-body">
<a href="../help" style="display: block;">
<h3 class="text-center text-white">HELP CENTER</h3>
</a>
<h4 class="blend text-center">What info do you need?</h4>
</div>
</div>
</div>
<div class="col-md-4 col-vlg-3 col-sm-6">
<div class="tiles green m-b-10">
<div class="tiles-body">
<a href="../password" style="display: block;">
<h3 class="text-center text-white">CHANGE PASSWORD</h3>
</a>
<h4 class="blend text-center">Secure your profile</h4>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-vlg-12 col-sm-12">
<div class="tiles violet m-b-10">
<div class="tiles-body">
<a href="../../account/logout.php" style="display: block;">
<h3 class="text-center text-white">LOGOUT</h3>
</a>
<h4 class="blend text-center">Thank you for choosing us</h4>
</div>
</div>
</div>
</div>
<!-- END DASHBOARD TILES -->
<div class="row tiles-container m-b-10">
<div class="col-md-12">
<div class="m-l-10 ">
<div class="tiles grey p-t-15 p-b-15 p-l-25 ">
<h5 class="text-black semi-bold">RECENT UPDATES</h5>
</div>
<div class="tiles white ">
<?php
require_once('../worker/workers/server/utilities.php');
require_once('../worker/workers/server/issues.php');
$helpdesk_request = mysqli_query($iss, "SELECT * FROM tblhelpdeskrequest WHERE CustomerID = '$customerID' && StatusFlag < 1");
$project_request = mysqli_query($iss, "SELECT * FROM tblprojects WHERE CustomerID = '$customerID' && StatusFlag < 1");
if (!$helpdesk_request && !$project_request) {
?>
<div class="p-t-20 p-b-15 b-b b-grey">
<div class="post overlap-left-10">
<div class="user-profile-pic-wrapper">
<div class="user-profile-pic-2x white-border">
<img width="45" height="45" src="../assets/img/profiles/avatar.png" data-src="../assets/img/profiles/avatar.png" data-src-retina="../assets/img/profiles/avatar2x.png" alt="">
</div>
</div>
<div class="info-wrapper small-width inline">
<div class="info text-black ">
<p>No recent updates for customers </p>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</div>
<?php # code...
}else{
while ($helpdesk_request_row = mysqli_fetch_assoc($helpdesk_request)) {
?>
<div class="p-t-20 p-b-15 b-b b-grey">
<div class="post overlap-left-10">
<div class="user-profile-pic-wrapper">
<div class="user-profile-pic-2x white-border">
<img width="45" height="45" src="../assets/img/profiles/avatar.png" data-src="../assets/img/profiles/avatar.png" data-src-retina="../assets/img/profiles/avatar2x.png" alt="">
</div>
</div>
<div class="info-wrapper small-width inline">
<div class="info text-black ">
<p>
<h4>
<?php
$request = $helpdesk_request_row['RequestID'];
$req = mysqli_query($utl, "SELECT * FROM tblrequest WHERE RequestID = $request");
$request_row = mysqli_fetch_assoc($req);
echo $request_row['RequestText'];
?>
</h4>
</p>
<p class="muted small-text"> <b>Category:</b> Helpdesk Request </p>
</div>
<div class="clearfix"></div>
</div>
<div class="inline pull-right">
<div class="tiles text-white p-t-5 p-l-5 p-b-5 p-r-5 inline">
<a href="../helpdesk/update.php?tid=<?php echo $helpdesk_request_row['TicketID']; ?>" class="btn btn-primary">View Status</a>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<?php
}
while ($project_request_row = mysqli_fetch_assoc($project_request)) {
?>
<div class="p-t-20 p-b-15 b-b b-grey">
<div class="post overlap-left-10">
<div class="user-profile-pic-wrapper">
<div class="user-profile-pic-2x white-border">
<img width="45" height="45" src="../assets/img/profiles/avatar.png" data-src="../assets/img/profiles/avatar.png" data-src-retina="../assets/img/profiles/avatar2x.png" alt="">
</div>
</div>
<div class="info-wrapper small-width inline">
<div class="info text-black ">
<p>
<h4>
<?php
$projectType = $project_request_row['ProjectTypeID'];
$req = mysqli_query($utl, "SELECT * FROM tblprojecttype WHERE ProjectTypeID = $projectType");
$request_row = mysqli_fetch_assoc($req);
echo $request_row['ProjectTypeText'];
?>
</h4>
</p>
<p class="muted small-text"> <b>Category:</b> Project Support </p>
</div>
<div class="clearfix"></div>
</div>
<div class="inline pull-right">
<div class="tiles text-white p-t-5 p-l-5 p-b-5 p-r-5 inline">
<a href="../project/update.php?tid=<?php echo $project_request_row['TicketID']; ?>" class="btn btn-primary">View Status</a>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<?php
}
}
?>
</div>
</div>
</div>
</div>
<!-- END PLACE PAGE CONTENT HERE -->
</div>
</div>
<!-- END PAGE CONTAINER -->
<?php include("../general/chat_bar.php"); ?>
</div>
<!-- END CONTENT -->
<?php include("../general/footer.php"); ?>
</body>
</html>