-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminaset_view.php
More file actions
124 lines (94 loc) · 3.77 KB
/
adminaset_view.php
File metadata and controls
124 lines (94 loc) · 3.77 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
<?php
require_once("functions/function.php");
get_conn();
get_header();
get_sidebar();
get_breadadminaset_view();
get_err_message();
$n_makmal=$_GET['adminaset_view'];
$sql = "SELECT * FROM aset WHERE nama_makmal='$n_makmal'";
$result=mysql_query($sql);
?>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header" data-original-title>
<h2><i class="halflings-icon white edit"></i><span class="break"></span>Inventori Makmal </h2>
<div class="box-icon">
</div>
</div>
<div class="box-content">
<?php while($row=mysql_fetch_array($result)) {?>
<form class="form-horizontal" method="post" action="proses.php" enctype="multipart/form-data">
<fieldset>
<div class="control-group">
<label class="control-label" for="focusedInput">Tarikh Rekod</label>
<div class="controls">
<input class="input-xlarge focused" name="tarikh_rekod" id="focusedInput" type="text" placeholder="tarikh_rekod"
value="<?php echo $row['tarikh_rekod']; ?>" disabled>
</div>
</div>
<div class="control-group">
<label class="control-label" for="focusedInput">Makmal</label>
<div class="controls">
<input class="input-xlarge focused" name="nama_makmal" id="focusedInput" type="text" placeholder="nama makmal"
value="<?php echo $row['nama_makmal']; ?>" disabled>
</div>
</div>
<a href="add_inventory.php?>" title="Tambah Aset" style="float: right;"><i class="halflings-icon plus "></i></a>
<div class="box-content">
<table class="table table-striped table-bordered bootstrap-datatable datatable">
<thead>
<tr>
<th>Nama Aset</th>
<th>Kuantiti</th>
<th>Tarikh Kemaskini</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php
$n_makmal=$_GET['adminaset_view'];
$sql1="SELECT * FROM inventory WHERE nama_makmal='$n_makmal'";
$query1=mysql_query($sql1);
$i=1;
?>
<?php while($row=mysql_fetch_array($query1)) {?>
<tr>
<td><?php echo $row['jenis_item']; ?></td>
<td><?php echo $row['bilangan']; ?></td>
<td><?php echo $row['tarikh_kemaskini']; ?></td>
<td class="center">
<!--<a class="btn btn-info" href="adminaset_view.php?adminaset_view=<?php echo $row['id_rekod']; ?>">
<i class="halflings-icon white search"></i>
</a>-->
<a class="btn btn-info" href="adminaset_edit.php?edit_invent=<?php echo $row['jenis_item'];?>&n_makmal=<?php echo $row['nama_makmal'];?>">
<i class="halflings-icon white edit"></i>
</a>
<a class="btn btn-danger" onclick="return confirmDel()" href="adminaset_view.php?del_inventori=<?php echo $row['jenis_item'];?>&n_makmal=<?php echo $n_makmal;?>">
<i class="halflings-icon white trash"></i>
</a>
<!--<a class="btn btn-info" href="print_aset.php?print_aset=<?php echo $row['id_rekod']; ?>">
<i class="halflings-icon white print"></i>
</a>-->
</td>
</tr>
<?php
} //close of while
?>
</tbody>
</table>
</div>
<div class="form-actions">
<a class="btn btn-primary" href="add_inventory.php?add_inventory=<?php echo $n_makmal;?> ">
Tambah Inventori
</a>
</div>
</fieldset>
</form>
<?php } ?>
</div>
</div> <!--/span-->
</div><!--/row-->
<?php
get_footer();
?>