-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuy-project.html
executable file
·162 lines (152 loc) · 7.62 KB
/
buy-project.html
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?php include 'header.php'?>
<?php
$para = array();
if(isset($_GET['project_id']))
$para['project_id'] = $_GET['project_id'];
if(isset($_GET['category_id']))
$para['category_id'] = $_GET['category_id'];
$project = get_projects($para);
$projects = get_projects();
?>
<!-- bradcam_area_start -->
<div class="courses_details_banner">
<div class="container">
<div class="row">
<div class="col-xl-6">
<div class="course_text">
<h3><?php echo $project['title']?></h3>
<div class="rating">
<?php
for ($x=0; $x < $project['rating']; $x++)
echo '<i class="flaticon-mark-as-favorite-star"> </i>';
?>
</div>
</div>
</div>
<img class="img-fluid" src=<?php echo $project['thumbnail'];?> alt="" width=450>
</div>
</div>
</div>
<!-- bradcam_area_end -->
<!-- popular_courses_start -->
<div class="popular_courses">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="course_nav">
<nav>
<ul class="nav" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="shipping_details-tab" data-toggle="tab" href="#shipping_details" role="tab" aria-controls="shipping_details" aria-selected="true">Shipping Details</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
<div class="all_courses">
<div class="container">
<div class="tab-content" id="myTabContent">
<!-- Shipping Details -->
<div class="tab-pane fade show active" id="shipping_details" role="tabpanel" aria-labelledby="shipping_details-tab">
<div class="row">
<form class="form-contact comment_form" id="newPostForm" method="POST" action="/purchase_successful.html">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="name" id="name" type="text" placeholder="Name" required="true">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="mob_no" id="mob_no" type="numbers" placeholder="Mobile Number" required="true">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="pincode" id="pincode" type="text" placeholder="Pincode" required="true">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="locality" id="locality" type="text" placeholder="Locality" required="true">
</div>
</div>
<div class="col-12">
<div class="form-group">
<textarea class="form-control w-100" name="address" id="address" cols="20" rows="4"
placeholder="Address" required="true"></textarea>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="city" id="city" type="text" placeholder="City/District/Town" required="true">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="state" id="state" type="text" placeholder="State" required="true">
</div>
</div>
<div class="switch-wrap d-flex justify-content-left col-12">
<div class="primary-radio">
<input type="checkbox" id="default-radio" name="payment-type" onclick="onlyOne(this)" value=1>
<label for="default-radio"></label>
</div>
<pre> </pre><span>Credit / Debit / ATM Card</span>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="title" id="title" type="numbers" placeholder="Enter Card Number">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="title" id="title" type="text" placeholder="CVV">
</div>
</div>
<div class="col-sm-2 default-select" id="default-select">
<select>
<?php
for($x=1; $x <= 12; $x++)
echo '<option value="'.$x.'">'.$x.'</option>';
?>
</select>
</div>
<div class="col-sm-2 default-select" id="default-select">
<select>
<?php
for($x=date("Y"); $x < date("Y")+10; $x++)
echo '<option value="'.$x.'">'.$x.'</option>';
?>
</select>
</div><p><br><br></p>
<div class="switch-wrap d-flex justify-content-left col-12">
<div class="primary-radio">
<input type="checkbox" id="primary-radio" name="payment-type" onclick="onlyOne(this)" value=2>
<label for="primary-radio"></label>
</div>
<pre> </pre><span>Cash On Delivery</span>
</div>
</div>
<div class="form-group">
<button type="submit" class="button button-contactForm btn_1 boxed-btn">Confirm Order</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function onlyOne(checkbox) {
var checkboxes = document.getElementsByName('payment-type')
checkboxes.forEach((item) => {
if (item !== checkbox) item.checked = false
})
};
</script>
<!-- popular_courses_end-->
<?php include 'footer.php'?>