-
Notifications
You must be signed in to change notification settings - Fork 1
/
customers.php
125 lines (114 loc) · 3.98 KB
/
customers.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 session_start();
if (!isset($_SESSION['user'])) {
header("location:vendor.php");
}
?>
<?php include_once("./templates/top.php"); ?>
<?php include_once("./templates/navbar.php"); ?>
<div class="container-fluid">
<div class="row">
<?php include "./templates/sidebar.php"; ?>
<div class="row">
<div class="col-10">
<h2>Customers</h2>
</div>
</div>
<div class="table-responsive">
<table class="table table-striped table-sm">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Email</th>
<th>Mobile</th>
<th>Address</th>
</tr>
</thead>
<tbody id="customer_list">
<!-- <tr>
<td>1</td>
<td>ABC</td>
<td>FDGR.JPG</td>
<td>122</td>
<td>eLECTRONCS</td>
<td>aPPLE</td>
<td><a class="btn btn-sm btn-info"></a><a class="btn btn-sm btn-danger">Delete</a></td>
</tr> -->
</tbody>
</table>
</div>
</main>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="add_product_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Add Product</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="add-product-form" enctype="multipart/form-data">
<div class="row">
<div class="col-12">
<div class="form-group">
<label>Product Name</label>
<input type="text" name="product_name" class="form-control" placeholder="Enter Product Name">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label>Brand Name</label>
<select class="form-control brand_list" name="brand_id">
<option value="">Select Brand</option>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label>Category Name</label>
<select class="form-control category_list" name="category_id">
<option value="">Select Category</option>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label>Product Description</label>
<textarea class="form-control" name="product_desc" placeholder="Enter product desc"></textarea>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label>Product Price</label>
<input type="number" name="product_price" class="form-control" placeholder="Enter Product Price">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label>Product Keywords <small>(eg: apple, iphone, mobile)</small></label>
<input type="text" name="product_keywords" class="form-control" placeholder="Enter Product Keywords">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label>Product Image <small>(format: jpg, jpeg, png)</small></label>
<input type="file" name="product_image" class="form-control">
</div>
</div>
<input type="hidden" name="add_product" value="1">
<div class="col-12">
<button type="button" class="btn btn-primary add-product">Add Product</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Modal -->
<?php include_once("./templates/footer.php"); ?>
<script type="text/javascript" src="./js/customers.js"></script>