This repository has been archived by the owner on Mar 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgettable.php
64 lines (52 loc) · 2.35 KB
/
gettable.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<? $results = mysql_query("select * from tickets_entry"); ?>
<!-- Table -->
<table class="table table-striped">
<thead>
<tr>
<th>ID</th>
<th>Task</th>
<th>Service Description</th>
<th>Assigned to</th>
<th class="text-center">Options</th>
<th class="text-center">Status</th>
</tr>
</thead>
<? while($row = mysql_fetch_array($results)){ ?>
<tr id="row_<? echo $row22['id']; ?>">
<td><? echo $row22['id']; ?></td>
<td><a href="<? echo 'view-ticket.php?id=' . $row22['id'] . ''; ?>"><? echo $row22['Ticket_title']; ?></a> <br><small>in <? echo $row22['Ticket_Category']; ?></small></td>
<td><h5><? echo $row22['Service_Description']; ?></h5></td>
<td><? echo $row22['Engineer_Name']; ?></td>
<td class="text-center">
<a class='btn btn-default btn-xs' title="Edit" href="<? echo 'edit-ticket.php?id=' . $row22['id'] . ''; ?>"><span class="glyphicon glyphicon-edit"></span></a>
<a class='btn btn-default btn-xs' title="Print" href="<? echo 'pdf.php?id=' . $row22['id'] . ''; ?>"><span class="glyphicon glyphicon-print"></span></a>
<a href="#" id="<?php echo $row22['id']; ?>" class="btn btn-default btn-xs delete_button" title="Click To Delete"><span class="glyphicon glyphicon-remove"></span></a>
</td>
<td class="text-center">
<?
if ($row22['Ticket_Status'] == "Completed"){
?>
<span class="label label-success">
<?
echo $row22['Ticket_Status'];
}elseif ($row22['Ticket_Status'] == "Pending"){
?>
<span class="label label-warning">
<?
echo $row22['Ticket_Status'];
}elseif ($row22['Ticket_Status'] == "Incompleted"){
?>
<span class="label label-danger">
<?
echo $row22['Ticket_Status'];
}elseif ($row22['Ticket_Status'] == "Temporary Fix"){
?>
<span class="label label-info">
<?
echo $row22['Ticket_Status'];
}
?>
</span> </td>
</tr>
<? } ?>
</table>