-
Notifications
You must be signed in to change notification settings - Fork 0
/
change_price.php
125 lines (97 loc) · 3.99 KB
/
change_price.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
<?php
require_once "int/header.php";
require_once "int/nav.php";
require_once "int/topbar.php";
$color = view_color();
$size = view_size();
?>
<!-- BEGIN CONTENT PART -->
<div id="content" class="main-content">
<div class="layout-px-spacing">
<div class="page-header">
<nav class="breadcrumb-one" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="javascript:void(0);">Dashboad</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
<a href="javascript:void(0);">Analytics</a>
</li>
</ol>
</nav>
</div>
<!-- Start HERE -->
<?php require_once "int/bt_location.php"; ?>
<?php
$edit_product =view_product_record();
while ($row=mysqli_fetch_assoc($edit_product)) {
$p_id = $row['p_id'];
$name = $row['p_name'];
$o_qty= $row['p_stock'];
$o_price = $row['p_o_price'];
$color = $row['color_name'];
$size = $row['size_name'];
}
?>
<form method="POST" novalidate="novalidate" enctype="multipart/form-data">
<?php
update_price();
display_msg();
?>
<div class="row mb-4">
<div class="col">
<fieldset disabled>
<label for="formGroupExampleInput">Item</label>
<div class="input-group mb-4">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon5">@</span>
</div>
<input id="disabledTextInput"
value="<?php echo $name ?>"
type="text" class="form-control" placeholder="Item" aria-label="Username">
</div>
</fieldset>
<input type="hidden" class="form-control" placeholder="Item" name="p_id"
value="<?php echo $p_id; ?>"
aria-label="Username">
<input type="hidden" name="o_qty"
value="<?php echo $o_qty; ?>"
class="form-control" placeholder="Item" aria-label="Username">
</div>
<div class="col">
<fieldset disabled>
<label for="formGroupExampleInput">Color</label>
<div class="input-group mb-4">
<input type="text"
value="<?php echo $color ?>"
class="form-control">
</div>
</fieldset>
</div>
</div>
<div class="row mb-4">
<div class="col">
<fieldset disabled>
<label for="formGroupExampleInput">Size</label>
<div class="input-group mb-4">
<input value="<?php echo $size ?>"
type="text" class="form-control" placeholder="Item" aria-label="Username">
</div>
</fieldset>
</div>
<div class="col">
<label for="formGroupExampleInput">Price</label>
<div class="input-group mb-4">
<input type="number" name="price" class="form-control"
aria-label="Amount (to the nearest dollar)">
<div class="input-group-prepend">
<span class="input-group-text">Ks</span>
</div>
</div>
</div>
</div>
<input type="submit" name="add_btn" class="btn btn-primary">
</form>
<!-- End Here -->
<?php
require_once "int/footer.php";