File: /home/rtbrisc/public_html/admin/main/track/available.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>GENERATE A TRACKING ID</p>
</li>
<li><a href="../track" class="active">TRACK YOUR DEVICE</a> </li>
<li><a href="../dashboard" class="active">DASHBOARD</a> </li>
</ul>
<!-- BEGIN PlACE PAGE CONTENT HERE -->
<div class="row">
<div class="col-md-12 col-vlg-12 col-sm-12">
<div class="tiles m-b-10">
<h3 style="padding: 5px; color: #FFF;">
Don’t be in the dark! While professionals are busy handling your needs, follow up on each progress as it comes. Generate a tracking ID for your device. Feel free to chat with us if you have any questions or still require any assistance.
</h3>
<div class="tiles-body">
<span><?php echo @$_SESSION['tra_err']; ?></span>
<input type="text" class="form-control" id="mySearch" onkeyup="mySearch()" placeholder="Search Report">
<table class="table table-striped table-advance table-hover" id="myTable">
<thead>
<tr>
<th>Ticket ID</th>
<th>Date of Request</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
require_once("../worker/workers/server/issues.php");
require_once("../worker/workers/server/utilities.php");
//
$history = mysqli_query($iss, "SELECT * FROM tblhelpdeskrequest WHERE CustomerID = '$customerID' && StatusFlag = 0 && TrackStatus = 0 ORDER BY DateCreated DESC");
while($his_row = mysqli_fetch_assoc($history)){
?>
<tr>
<td>
<?php echo $his_row['TicketID']; ?>
</td>
<td><?php echo $his_row['DateCreated']; ?></td>
<td>
<div class="btn-group">
<a class="btn btn-primary tooltips" style="background-color: #C7100E;" href="../track/new.php?tid=<?php echo $his_row['TicketID']; ?>"> Generate </a>
</div>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- END DASHBOARD TILES -->
<!-- END PLACE PAGE CONTENT HERE -->
</div>
</div>
<!-- END PAGE CONTAINER -->
<?php include("../general/chat_bar.php"); ?>
</div>
<!-- END CONTENT -->
<?php include("../general/footer.php"); ?>
<script>
function mySearch() {
// Declare variables
var input, filter, table, tr, td, i;
input = document.getElementById("mySearch");
filter = input.value.toUpperCase();
table = document.getElementById("myTable");
tr = table.getElementsByTagName("tr");
// Loop through all table rows, and hide those who don't match the search query
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[0];
if (td) {
if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
</script>
</body>
<?php
unset($_SESSION['tra_err']);
?>
</html>