-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_inventory.php
More file actions
54 lines (47 loc) · 1.69 KB
/
add_inventory.php
File metadata and controls
54 lines (47 loc) · 1.69 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
<?php
require_once("functions/function.php");
get_header();
get_sidebar();
get_breadadminaset();
date_default_timezone_set("Asia/Kuala_Lumpur") ;
$currentdate=date('F j,Y');
$id_rekod=$_GET['add_inventory'];
get_err_message();
get_conn();
if($_SESSION['sess_usertype']=='1' || $_SESSION['sess_usertype']=='4'){
header("Location: " . $_SERVER["HTTP_REFERER"]);
}
?>
<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>Tambah Inventori</h2>
<div class="box-icon">
</div>
</div>
<div class="box-content">
<form class="form-horizontal" method="post" action="proses.php">
<fieldset>
<div class="control-group">
<label class="control-label" for="focusedInput">Nama Aset:</label>
<div class="controls">
<input class="input-xlarge focused" id="focusedInput" type="text" name="jenis_item">
</div>
</div>
<div class="control-group">
<label class="control-label" for="focusedInput">Kuantiti:</label>
<div class="controls">
<input class="input-xlarge focused" id="focusedInput" type="number" name="bilangan" min="1" max="100">
</div>
</div>
<div class="form-actions">
<button type="submit" onclick="return confirmAdd()" class="btn btn-primary" name="add_invent" value="<?php echo $id_rekod?>">Tambah</button>
</div>
</fieldset>
</form>
</div>
</div><!--/span-->
</div><!--/row-->
<?php
get_footer();
?>