-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardwarelist.php
More file actions
108 lines (103 loc) · 3.29 KB
/
Copy pathhardwarelist.php
File metadata and controls
108 lines (103 loc) · 3.29 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
include_once('components/config.php');
include('components/sidebar.php');
$hardware = $user->getHardwareList();
function printHardwareRow($hardware) {
echo '<tr>';
echo "<td>";
echo "<a class='btn btn-primary btn-xs' data-toggle='modal' data-target="."#".htmlentities($hardware['asset_tag'])."view href="."#".htmlentities($hardware['asset_tag'])."view><i class='fa fa-folder'></i> View </a>";
echo "<a href=\"edithardware.php?id=".htmlentities($hardware['asset_tag'])."\" class=\"btn btn-info btn-xs\"><i class='fa fa-edit'></i>Edit</a>";
echo "</td>";
echo "<td>".htmlentities($hardware['asset_ID'])."</td>";
$GLOBALS['user']->printAssetRow($hardware);
echo "<td>".htmlentities($hardware['price']) ." ".htmlentities($hardware['currency'])."</td>";
echo "<td>".htmlentities($hardware['IHiS_Asset_ID'])."</td>";
echo "<td>".htmlentities($hardware['IHiS_Invoice'])."</td>";
echo "<td>".htmlentities($hardware['CR359 / CR506'])."</td>";
echo "<td>".htmlentities($hardware['CR560'])."</td>";
echo "<td>".htmlentities($hardware['POST-CR560'])."</td>";
echo "<td>".htmlentities($hardware['class'])."</td>";
echo "<td>".htmlentities($hardware['brand'])."</td>";
echo "<td>".htmlentities($hardware['audit_date'])."</td>";
echo "<td>".htmlentities($hardware['component'])."</td>";
echo "<td>".htmlentities($hardware['label'])."</td>";
echo "<td>".htmlentities($hardware['serial'])."</td>";
echo "<td>".htmlentities($hardware['location'])."</td>";
echo "<td>".htmlentities($hardware['replacing'])."</td>";
echo "<td>".htmlentities($hardware['excelsheet'])."</td>";
echo "<td>".htmlentities($hardware['remarks'])."</td>";
echo '</tr>';
}
?>
<script>
document.getElementById('hardwarelist.php').setAttribute("class", "current-page");
</script>
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Hardware Asset Management</h3>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Assets list</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<table style="width:100%"id="datatable" class="table table-striped table-bordered dt-responsive">
<thead>
<tr>
<th>Actions</th>
<th>Asset ID</th>
<th>Description</th>
<th>Quantity</th>
<th>CR / TR Number</th>
<th>PO Number</th>
<th>Release version</th>
<th>Expiry Date</th>
<th>Status</th>
<th>POC</th>
<th>Price</th>
<th>IHiS Asset ID</th>
<th>IHiS Invoice</th>
<th>CR359/CR506</th>
<th>CR560</th>
<th>Post-CR560</th>
<th>Class</th>
<th>Brand</th>
<th>Audit Date</th>
<th>Component</th>
<th>Label</th>
<th>Serial</th>
<th>Location</th>
<th>RMA</th>
<th>ExcelSheet</th>
<th>Remarks</th>
</tr>
</thead>
<tbody>
<?php
foreach($hardware as $row) {
printHardwareRow($row);
$user->printHardwareModal($row);
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
<?php
include 'components/footer.php';
include 'components/datatables.php';
include 'components/closing.php';
?>