-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_parts_drift.php
More file actions
129 lines (112 loc) · 5.47 KB
/
list_parts_drift.php
File metadata and controls
129 lines (112 loc) · 5.47 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
include "head.php";
?>
<div class="container-fluid">
<div class="row">
<?php include "side.php"; ?>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header"><img src="images/DRIFTPCB.png" width="4%"> Drifts List</h1>
<a href="new_drift.php"><button type="button" class="btn btn-success"> <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add new drift</button></a>
<!--<form class="navbar-form navbar-right">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span> <input class="form-control" placeholder="Search for drift" type="text">
</form> -->
<h2 class="sub-header">List</h2>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>Serial</th>
<!-- <th>Status</th>-->
<th>User responsible</th>
<th>Show</th>
</tr>
</thead>
<tbody>
<?php $drifts= get_list_part_ID($DRIFT_KIND_OF_PART_ID);
//print_r($drifts);
foreach( $drifts as $drift){
echo '<tr>
<td>'.$drift['PART_ID'].'</td>
<td>'.$drift['SERIAL_NUMBER'].'</td>
<td><span aria-hidden="true" class="glyphicon glyphicon-user"> '.$drift['RECORD_INSERTION_USER'].' </span></td>
<td><a href="show_drift.php?id='.$drift['SERIAL_NUMBER'].'"><button type="button" class="btn btn-info"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> Show</button></a></td>
</tr>';
}
?>
<!-- <tr>
<td>2</td>
<td>PCB-DR-VI-S-CERN-0002</td>
<td> <span class="label label-success">Accepted</span></td>
<td><span aria-hidden="true" class="glyphicon glyphicon-user"> aliah </span></td>
<td><a href="show_drift.php?id=PCB-DR-VI-L-CERN-0002"><button type="button" class="btn btn-info"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> Show</button></a></td>
</tr>
<tr>
<td>3</td>
<td>PCB-DR-VI-L-CERN-0010</td>
<td> <span class="label label-danger">Rejected</span></td>
<td><span aria-hidden="true" class="glyphicon glyphicon-user"> abc </span></td>
<td><a href="show_drift.php?id=PCB-DR-VI-L-CERN-0010"><button type="button" class="btn btn-info"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> Show</button></a></td>
</tr>
<tr>
<td>4</td>
<td>PCB-DR-VI-S-CERN-0013</td>
<td> <span class="label label-warning">Waiting</span></td>
<td><span aria-hidden="true" class="glyphicon glyphicon-user"> tester </span></td>
<td><a href="show_drift.php?id=PCB-DR-VI-L-CERN-0013"><button type="button" class="btn btn-info"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> Show</button></a></td>
</tr>
<tr>
<td>5</td>
<td>PCB-DR-VI-L-CERN-0019</td>
<td> <span class="label label-default">Spare</span></td>
<td><span aria-hidden="true" class="glyphicon glyphicon-user"> oaboamer </span></td>
<td><a href="show_drift.php?id=PCB-DR-VI-L-CERN-0019"><button type="button" class="btn btn-info"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> Show</button></a></td>
</tr>
<tr>
<td>6</td>
<td>PCB-DR-VI-S-CERN-0022</td>
<td> <span class="label label-primary">Installed</span></td>
<td><span aria-hidden="true" class="glyphicon glyphicon-user"> oaboamer </span></td>
<td><a href="show_drift.php?id=PCB-DR-VI-L-CERN-0022"><button type="button" class="btn btn-info"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> Show</button></a></td>
</tr>
<tr>
<td>7</td>
<td>PCB-DR-VI-L-CERN-0025</td>
<td> <span class="label label-primary">Installed</span></td>
<td><span aria-hidden="true" class="glyphicon glyphicon-user"> aliah </span></td>
<td><button type="button" class="btn btn-info"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> Show</button></td>
</tr>-->
</tbody>
</table>
</div>
<!-- <nav>
<ul class="pagination">
<li>
<a href="#" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li>
<a href="#" aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
</ul>
</nav>-->
</div>
</div>
</div>
<?php
include "foot.php";
?>
<script>
jQuery(document).ready(function($) {
$("#partslist").show();
$("#<?= $DRIFT_ID; ?>").attr("class","active");
})
</script>