-
Notifications
You must be signed in to change notification settings - Fork 23
/
add_address.php
103 lines (102 loc) · 5.47 KB
/
add_address.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
<?php
require('require/top.php');
authorise_user2();
$userid = $_SESSION['USER_ID'];
$userData = mysqli_fetch_assoc(mysqli_query($con, "select users.*,user_wallet.ballance from users,user_wallet where users.id='$userid' and user_wallet.user_id=users.id"));
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="address.php">My Address</a>
/
<a href="add_address.php">Add Address</a>
</div>
</div>
<section class="newaddress">
<?php require('require/headbanner.php'); ?>
<section class="myac-body">
<div class="flex row">
<?php require('require/ac-left.php'); ?>
<div class="right">
<h4><i class="uil uil-location-point"></i>Add New Address</h4>
<div class="col-lg-12 col-md-12">
<div class="pdpt-bg">
<div class="pdpt-title">
<h4>Add Address</h4>
</div>
<div class="formbody">
<form action="javascript:void(0)">
<div class="form-group">
<div class="product-radio">
<ul class="product-now">
<li>
<input type="radio" id="ad1" name="address1" checked="" />
<label for="ad1">Home</label>
</li>
<li>
<input type="radio" id="ad2" name="address1" />
<label for="ad2">Office</label>
</li>
<li>
<input type="radio" id="ad3" name="address1" />
<label for="ad3">Other</label>
</li>
</ul>
</div>
</div>
<div class="address-fieldset">
<div class="row">
<div class="row2">
<div class="lt">
<label for="ft">Name*</label>
<input type="text" placeholder="Name" id="dv-name" />
</div>
<div class="ft">
<label for="ft">Mobile*</label>
<input type="number" placeholder="Number" id="dv-number" oninput="validate_number()" />
</div>
</div>
<label for="ft">City*</label>
<select name="" id="dv-city">
<option value="#">Select City</option>
<?php
$querys = "select * from city order by id desc";
$ress = mysqli_query($con, $querys);
while ($rows = mysqli_fetch_assoc($ress)) {
?>
<option value="<?php echo $rows['id'] ?>">
<?php echo $rows['city_name'] ?></option>
<?php
}
?>
</select>
<label for="ft">Flat / House / Office No.*</label>
<input type="text" placeholder="Address" id="dv-address" />
<div class="row2">
<div class="lt">
<label for="ft">Pincode*</label>
<input type="text" placeholder="Pincode" id="dv-pin" />
</div>
<div class="ft">
<label for="ft">Landmark*</label>
<input type="text" placeholder="Landmark" id="dv-land" />
</div>
</div>
<div class="row2">
<button class="save-address" onclick="add_new_address()">
Save
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
<?php require('require/foot.php'); ?>
<?php require('require/last.php'); ?>