forked from ronilcajan/point-of-sale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
add.php
executable file
·50 lines (46 loc) · 2.81 KB
/
add.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
<style>
input[name="image"]{
width: 100px;
}
input[id="validationCustom02"]{
margin-bottom: -20px
}
</style>
<!-- Modal for Adding data -->
<div class="modal fade bd-example-modal-md" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-fluid" role="document">
<div class="modal-content" style="width:70%; margin-left: 20%;">
<div class="modal-header bg-secondary">
<h4 class="modal-title text-light" id="exampleModalCenterTitle" ><strong>Add New Customer</strong></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<div class="container-fluid">
<form method="post" id="modal-form" action="add_customer.php" enctype="multipart/form-data" class="needs-validation">
<div>
<div align="center">
<input type="hidden" name="size" class="form-control-sm" value="1000000">
<input type="hidden" name="user" class="form-control-sm" value="<?php echo $_GET['username'];?>">
<img class="mb-1" width="150" height="150" src="images/user.png"/>
</div>
<small><div class="input-group mb-2"><div class="input-group-prepend"><span class="input-group-text" id="basic-addon1"><i class="fas fa-pen-alt"></i></span></div>
<input class="form-control form-control-sm" type="text" name="fname" placeholder="Enter First name" required></div>
<div class="input-group mb-2"><div class="input-group-prepend"><span class="input-group-text" id="basic-addon1"><i class="fas fa-pen-alt"></i></span></div>
<input class="form-control form-control-sm" type="text" name="lname" placeholder="Enter Last name" required></div>
<div class="input-group mb-2"><div class="input-group-prepend"><span class="input-group-text" id="basic-addon1"><i class="fas fa-phone"></i></span></div>
<input class="form-control form-control-sm" type="text" name="number" placeholder="Enter Phone number" required></div>
<div class="input-group"><div class="input-group-prepend"><span class="input-group-text" id="basic-addon1"><i class="fas fa-map-marker-alt"></i></span></div>
<textarea type="text" class="form-control form-control-sm" name="address" placeholder="Enter Address" required></textarea></div>
<label>Choose Picture:<i class="fas fa-file-upload"></i></label><input type="file" class="form-control-sm" name="image" required/>
</small>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-danger" data-dismiss="modal"><i class="fas fa-ban"></i> Cancel</button>
<button type="submit" name="submit" class="btn btn-secondary" form="modal-form">Submit</button>
</div>
</div>
</div>
</div>