-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsoftwarelist.php
More file actions
95 lines (87 loc) · 2.65 KB
/
Copy pathsoftwarelist.php
File metadata and controls
95 lines (87 loc) · 2.65 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
<?php
include_once('components/config.php');
include('components/sidebar.php');
$software = $user->getSoftwareList();
function printSoftwareRow($software) {
echo '<tr>';
echo "<td>";
echo "<a class='btn btn-primary btn-xs' data-toggle='modal' data-target="."#".htmlentities($software['asset_tag'])."view href="."#".htmlentities($software['asset_tag'])."view><i class='fa fa-folder'></i> View </a>";
echo "<a href=\"editsoftware.php?id=".htmlentities($software['asset_tag'])."\" class=\"btn btn-info btn-xs\"><i class='fa fa-edit'></i>Edit</a>";
echo "</td>";
echo "<td>".htmlentities($software['asset_ID'])."</td>";
$GLOBALS['user']->printAssetRow($software);
echo "<td>".htmlentities($software['vendor']) ."</td>";
echo "<td>".htmlentities($software['procured_from']) ."</td>";
echo "<td>".htmlentities($software['shortname']) ."</td>";
echo "<td>".htmlentities($software['purpose']) ."</td>";
echo "<td>".htmlentities($software['contract_type']) ."</td>";
echo "<td>".htmlentities($software['start_date']) ."</td>";
echo "<td>".htmlentities($software['license_explanation']) ."</td>";
echo "<td>".htmlentities($software['remarks']) ."</td>";
echo '</tr>';
}
?>
<script>
document.getElementById('softwarelist.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>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>Software Assets list</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<table 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>Vendor</th>
<th>Procured From</th>
<th>Short Name</th>
<th>Purpose</th>
<th>Contract Type</th>
<th>Start Date</th>
<th>License Explanation</th>
<th>Remarks</th>
</tr>
</thead>
<tbody>
<?php
foreach($software as $row) {
printSoftwareRow($row);
$user->printSoftwareModal($row);
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
<?php
require 'components/footer.php';
require 'components/datatables.php';
require 'components/closing.php';
?>