-
Notifications
You must be signed in to change notification settings - Fork 1
/
returnslip_edit.php
330 lines (294 loc) · 16.8 KB
/
returnslip_edit.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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<?php
include('session.php');
$prsID = $_REQUEST['ID'];
$sql = "SELECT * ";
$sql.=" FROM property_return_slip_record WHERE ID = '$prsID'";
$result = mysqli_query($con,$sql);
$row = mysqli_fetch_array($result);
$LGU_Name = $row['LGU_Name'];
$PurposeID = $row['PurposeID'];
$Qty = $row['Qty'];
$Unit = $row['Unit'];
$Descrp = $row['Descrp'];
$Serial_Num = $row['Serial_Num'];
$Prop_Number = $row['Prop_Number'];
$ParNo = $row['ParNo'];
$Name_of_Enduser = $row['Name_of_Enduser'];
$Unit_Value = $row['Unit_Value'];
$Total_Value = $row['Total_Value'];
$Status = $row['Status'];
$ReceiveBy_Name = $row['ReceiveBy_Name'];
$ReceiveBy_Position = $row['ReceiveBy_Position'];
$ReceiveBy_Date = $row['ReceiveBy_Date'];
$ReceiveFrom_Name = $row['ReceiveFrom_Name'];
$ReceiveFrom_Position = $row['ReceiveFrom_Position'];
$ReceiveFrom_Date = $row['ReceiveFrom_Date'];
if ($login_level != '0' )
{
if ($login_level == '4') {
# code...
}
else
{
header("location: index.php");
}
}
else
{
}
$page = "Record";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include ('head.php');?>
<title>Property Accountability Receipt</title>
</head>
<body>
<!-- container section start -->
<section id="container" class="">
<!--header start-->
<header class="header dark-bg">
<div class="toggle-nav">
<div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><i class="icon_menu"></i></div>
</div>
<!--logo start-->
<a href="index.php" class="logo">GSO <span class="lite">Admin</span></a>
<!--logo end-->
<div class="top-nav notification-row">
<!-- notificatoin dropdown start-->
<ul class="nav pull-right top-menu">
<!-- user login dropdown start-->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<span class="profile-ava">
<img alt="" src="<?php echo $login_img; ?>">
</span>
<span class="username"><?php echo $login_session; ?></span>
<b class="caret"></b>
</a>
<ul class="dropdown-menu extended logout">
<div class="log-arrow-up"></div>
<li class="eborder-top">
<a href="profile.php"><i class="icon_profile"></i> My Profile</a>
</li>
<li>
<a href="logout.php"><i class="icon_key_alt"></i> Log Out</a>
</li>
</ul>
</li>
<!-- user login dropdown end -->
</ul>
<!-- notificatoin dropdown end-->
</div>
</header>
<!--header end-->
<!--sidebar start-->
<aside>
<div id="sidebar" class="nav-collapse ">
<!-- sidebar menu start-->
<ul class="sidebar-menu">
<?php
if ($login_level == '0')
{
include('sidebar-menu_admin.php');
}
if ($login_level == '1')
{
include('sidebar-menu_emp.php');
}
elseif ($login_level == '2')
{
include('sidebar-menu_bin.php');
}
else if ($login_level == '3')
{
include('sidebar-menu_accountability.php');
}
else if ($login_level == '4')
{
include('sidebar-menu_icsprspar.php');
}
else
{
}
?>
</ul>
<!-- sidebar menu end-->
</div>
</aside>
<!--main content start-->
<section id="main-content">
<section class="wrapper">
<div class="row">
<div class="col-lg-12">
<h3 class="page-header"><i class="fa fa-clipboard"></i> PROPERTY ACCOUNTABILITY RECEIPT</h3>
<ol class="breadcrumb">
<li><i class="fa fa-home"></i><a href="index.php">Dashboard</a></li>
<li><i class="fa fa-clipboard"></i><a href="returnslip.php">Property Return Slip</a></li>
<li><i class="fa fa-clipboard"></i>Property Return Slip View</li>
</ol>
</div>
</div>
<!-- page start-->
<div class="row">
<div class="col-lg-12">
<section class="panel">
<header class="panel-heading">
<H1><center>PROPERTY RETURN SLIP<br><h2 style="font-size: 30px; ">PROVINCE OF CAVITE</h2></center></H1>
</header>
<form class="form-horizontal " method="post" action="returnslip_add_action.php"> <!--Form for the receipt -->
<br>
<div class="form-group">
<label class="col-sm-3 control-label">Name of Local Government Unit:</label>
<div class="col-sm-7"><input class="form-control" value="<?php echo "$LGU_Name";?>">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Purpose</label>
<div class="col-sm-2">
<select class="form-control" name="prop_return_slip_purpose" required="">
<?php
$result=mysqli_query($con,"SELECT * FROM prs_purpose_dictionary");
while($test = mysqli_fetch_array($result))
{
echo "<option value = '".$test['Purpose_Type']."''>".$test['Purpose_Type']."</option>";
}
?>
</select>
</div>
</div>
<table class="table table-striped table-advance table-hover ">
<tbody class="col-sm-12">
<tr >
<th class="col-sm-1"><i class="icon_clipboard"></i> Quantity</th>
<th class="col-sm-1"><i class="icon_datareport_alt"></i> Unit</th>
<th class="col-sm-4"><i class="icon_chat_alt"></i> Description</th>
<th class="col-sm-1"><i class="icon_easel_alt"></i> Serial Number</th>
<th class="col-sm-1"><i class="icon_id-2"></i> Property No.</th>
</tr>
<tr>
<td><input type="text" name="prop_return_slip_qty" class="form-control" placeholder="Qty" value="<?php echo "$Qty";?>" onkeyup="numberInputOnly(this);"></td>
<td><select name="prop_return_slip_unit" class="form-control" required="" value="custodian_slip_unit">
<option value="unit">Unit</option>
<option value="pc">Pc.</option>
</select></td>
<td><input type="text" name="prop_return_slip_descrp" class="form-control" placeholder="Description" value="<?php echo "$Descrp";?>"></td>
<td><input type="text" name="prop_return_slip_serialnum" class="form-control" placeholder="Serial Number" value="<?php echo "$Serial_Num";?>"></td>
<td><input type="text" name="prop_return_slip_propno" class="form-control" placeholder="Property Number" value="<?php echo "$Prop_Number";?>" onkeyup="numberInputOnly(this);"></td>
</tr>
</tbody>
</table>
<table class="table table-striped table-advance table-hover ">
<tbody class="col-sm-12">
<tr>
<th class="col-sm-1"><i class="icon_id"></i> PAR. No.</th>
<th class="col-sm-1"><i class="icon_puzzle"></i> Name Of End-User</th>
<th class="col-sm-1"><i class="icon_wallet_alt"></i> Unit Value</th>
<th class="col-sm-1"><i class="icon_currency_alt"></i> Total Value</th></tr>
<tr>
<td><input type="text" name="prop_return_slip_par" class="form-control" required="" placeholder="PAR. Number" value="<?php echo "$ParNo";?>"></td>
<td><input type="text" name="prop_return_slip_NameOfEndUser" class="form-control" required="" placeholder="Name Of End-User" value="Name_of_Enduser"></td>
<td><input type="" name="prop_return_slip_UnitValue" class="form-control" required="" placeholder="Unit Value" value="<?php echo "$Unit_Value";?>"></td>
<td><input type="text" name="prop_return_slip_TotalValue" class="form-control" required="" placeholder="Total Value" value="<?php echo "$Total_Value";?>"></td>
</tr>
</tbody>
</table>
<hr>
<div class="row">
<div class="col-lg-12">
<section class="panel">
<header class="panel-heading">
Receive By:
</header>
<div class="panel-body">
<div class="form-group">
<label class="col-sm-2 control-label">Name</label>
<div class="col-sm-7">
<input type="text" class="form-control" placeholder="Name" name="prop_return_slip_receiveBy_Name" required="" value="<?php echo "$ReceiveBy_Name";?>" onkeyup="letterInputOnly(this);">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Position</label>
<div class="col-sm-7">
<input type="text" class="form-control" placeholder="Position" name="prop_return_slip_receiveBy_Position" required="" value="<?php echo "$ReceiveBy_Position";?>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Date</label>
<div class="col-sm-2">
<input type="date" class="form-control" placeholder="date" name="prop_return_slip_receiveBy_Date" required="" value="<?php echo "$ReceiveBy_Date";?>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"></label>
<div class="col-sm-2">
</div>
</div>
</div>
</section>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<section class="panel">
<header class="panel-heading">
Receive From:
</header>
<div class="panel-body">
<div class="form-group">
<label class="col-sm-2 control-label">Name</label>
<div class="col-sm-7">
<input type="text" class="form-control" placeholder="Name" name="prop_return_slip_receiveFrom_Name" required="" value="<?php echo "$ReceiveFrom_Name";?>" onkeyup="letterInputOnly(this);">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Position</label>
<div class="col-sm-7">
<input type="text" class="form-control" placeholder="Position" name="prop_return_slip_receiveFrom_Position" required="" value="<?php echo "$ReceiveFrom_Position";?>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Date</label>
<div class="col-sm-2">
<input type="date" class="form-control" placeholder="date" name="prop_return_slip_receiveFrom_Date" required="" value="<?php echo "$ReceiveFrom_Date";?>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"></label>
<div class="col-sm-2">
<input class="btn btn-success " type="submit" name="Submit" value="Submit">
</div>
</div>
</div>
</section>
</div>
</div>
</form><!--End of Form for the receipt -->
</section>
</div>
</div>
<!-- page end-->
</section>
</section>
<!--main content end-->
<div class="text-center">
<div class="credits">
<!--
All the links in the footer should remain intact.
You can delete the links only if you purchased the pro version.
Licensing information: https://bootstrapmade.com/license/
Purchase the pro version form: https://bootstrapmade.com/buy/?theme=NiceAdmin
-->
Rhalp Darren Cabrera & Omar Raouf Daud<br>
Copyright 2017
</div>
</div>
</section>
<!-- container section end -->
<?php include ('footer.php');?>
<script type="text/javascript">
var dateControl = document.querySelector('input[type="date"]');
dateControl.value = '<?php echo "$ReceiveFrom_Date";?>';
dateControl.value = '<?php echo "$ReceiveBy_Date";?>';
</script>