-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathedit_discounts.php
More file actions
43 lines (43 loc) · 2.7 KB
/
edit_discounts.php
File metadata and controls
43 lines (43 loc) · 2.7 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
<?php
require_once 'bones/a_assets.php';
require_once 'bones/a_header.php';
?>
<div id="page-content-wrapper">
<div id="page-content">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="dashboard-box dashboard-box-chart bg-white content-box">
<br><br><br>
<?php if(!empty($_GET['discounts_id'])){ } else { echo '<script>document.location.href = "services.php?5"</script>'; } ?>
<form action="edit_discounts.php?12&discounts_id=<?php echo $discounts_id = $_GET['discounts_id']; ?>" method="post" class="form-horizontal" enctype="multipart/form-data">
<div class="form-group">
<label class="col-sm-3 control-label">Service Name</label>
<div class="col-sm-6">
<input type="text" class="form-control" name="name" placeholder="Discount Name" value="<?php echo get("name","$s discounts $w discount_id='".$_GET['discounts_id']."'"); ?>" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Price</label>
<div class="col-sm-3">
<input type="hidden" name="id" value="<?php echo $discounts_id = $_GET['discounts_id']; ?>">
<input type="number" class="form-control" name="discount" placeholder="discount percent" value="<?php echo get("discount","$s discounts $w discount_id='".$_GET['discounts_id']."'"); ?>" required>
</div>
<div class="col-sm-1" style="text-align:left;">
%
</div>
</div>
<div class="form-group">
<button class="btn btn-alt btn-hover btn-primary" name="update_discount">
<span>Update</span>
<i class="glyph-icon icon-arrow-right"></i>
</button>
</div>
</form>
<div>
</div>
</div>
</div>
</div>
</div>
<?php require_once "bones/a_footer.php"; ?>