-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
311 lines (259 loc) · 14.3 KB
/
index.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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>FundMe!!</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<center>
<img src="img/homepage/1.jpg" alt="Romia" height="500" width="1200">
<div class="carousel-caption">
<h3>FundMe!!</h3>
FundMe!! is perfect website to find projects and fund them
</div>
</center>
</div>
<div class="item">
<center>
<img src="img/homepage/2.jpg" alt="Alternaing" height="500" width="1200">
<div class="carousel-caption">
<h3>Post your Projects</h3>
<p>FundMe is a perfect website for posting and sharing your Projects</p>
</div>
</center>
</div>
<div class="item">
<center>
<img src="img/homepage/3.jpg" alt="Alternaing" height="500" width="1200">
<div class="carousel-caption">
<h3>Rate Projects</h3>
<p>Rate Projects from other users and help them with your suggestion</p>
</div>
</center>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<br>
<br>
<br>
<div class="container">
<div class="row">
<div class="col-sm-6">
<center>
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">Sign
In
</button>
</center>
</div>
<div class="col-sm-6">
<center>
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal2">Sign
Up
</button>
</center>
</div>
</div>
</div>
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h1 class="text-center login-title">Sign in to continue</h1>
<div class="account-wall">
<form class="form-signin" method="POST" action="signinbackend.php">
<input type="text" class="form-control" placeholder="Email" id="email" name="email" required
autofocus>
<input type="password" class="form-control" placeholder="Password" id="password"
name="password" required>
<button class="btn btn-lg btn-primary btn-block" type="submit">
Sign in
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="myModal2" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12 col-md-offset-4">
<h1 class="text-center login-title">Start funding or Get Funded</h1>
<div class="account-wall">
<form class="form-signup" data-toggle="validator" role="form" method="POST"
action="signupback.php">
<div class="form-group">
<label for="inputName" class="control-label">First Name</label>
<input type="text" class="form-control" id="fname" name="fname"
placeholder="Enter First Name" required>
</div>
<div class="form-group">
<label for="inputName" class="control-label">Last Name</label>
<input type="text" class="form-control" id="lname" name="lname"
placeholder="Enter Last Name">
</div>
<div class="form-group">
<label for="inputEmail" class="control-label">Email Address</label>
<input type="email" class="form-control" id="email" name="email" placeholder="Email"
data-error="Wrong Email id or username" required>
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label for="inputName" class="control-label">Address Line 1</label>
<input type="text" class="form-control" id="address_line_1" name="address_line_1"
placeholder="Address Line 1">
</div>
<div class="form-group">
<label for="inputName" class="control-label">Address Line 2</label>
<input type="text" class="form-control" id="address_line_2" name="address_line_2"
placeholder="Address Line 2">
</div>
<div class="form-group">
<label for="inputName" class="control-label">City</label>
<input type="text" class="form-control" id="city" name="city" placeholder="Enter City">
</div>
<div class="form-group">
<label for="inputName" class="control-label">State</label>
<input type="text" class="form-control" id="state" name="state"
placeholder="Enter State">
</div>
<div class="form-group">
<label for="inputName" class="control-label">zip</label>
<input type="text" class="form-control" id="zip" name="zip" placeholder="Enter Zip"
required>
</div>
<div class="form-group">
<label for="inputName" class="control-label">Country</label>
<input type="text" class="form-control" id="country" name="country"
placeholder="Enter Country" required>
</div>
<div class="form-group">
<label for="inputName" class="control-label">Phone Number</label>
<input type="text" class="form-control" id="phone" name="phone"
placeholder="Enter Phone" onkeup="phoneno()" minlength="10" maxlength="10"
required pattern="[0-9]{10}">
</div>
<div class="form-group">
<label for="inputName" class="control-label">Credit Card Number</label>
<input type="text" class="form-control" id="credit_card_number" name="credit_card_number"
placeholder="Enter Credit Card Number" onkeup="creditcard()" minlength="16"
maxlength="16" required pattern="[0-9]{16}">
</div>
<div class="form-group">
<label for="inputName" class="control-label">CVV</label>
<input type="text" class="form-control" id="cvv" name="cvv" pattern="[0-9]{3}"
placeholder="Enter CVV" onkeup="cvv()" required minlength="3" maxlength="3">
</div>
<script>
function phoneno() {
$('#phone').keypress(function (e) {
var a = [];
var k = e.which;
for (i = 48; i < 58; i++)
a.push(i);
if (!(a.indexOf(k) >= 0))
e.preventDefault();
});
}
function creditcard() {
$('#phone').keypress(function (e) {
var a = [];
var k = e.which;
for (i = 48; i < 64; i++)
a.push(i);
if (!(a.indexOf(k) >= 0))
e.preventDefault();
});
}
function cvv() {
$('#phone').keypress(function (e) {
var a = [];
var k = e.which;
for (i = 48; i < 51; i++)
a.push(i);
if (!(a.indexOf(k) >= 0))
e.preventDefault();
});
}
</script>
<div class="form-group">
<label for="inputName" class="control-label">Expiration Month</label>
<select name="month" class="form-control" id="month">
<?php for ($i = 1; $i <= 12; $i++): ?>
<option value="<?= str_pad($i, 2, '0', STR_PAD_LEFT) ?>"><?= $i ?></option>
<?php endfor ?>
</select>
</div>
<div class="form-group">
<label for="inputName" class="control-label">Expiration Year</label>
<select name="year" class="form-control" id="year">
<?php for ($i = 2017; $i <= 2025; $i++): ?>
<option value="<?= str_pad($i, 2, '0', STR_PAD_LEFT) ?>"><?= $i ?></option>
<?php endfor ?>
</select>
</div>
<div class="form-group">
<label for="inputPassword" class="control-label">Password</label>
<div class="form-inline row">
<div class="form-group col-sm-6">
<input type="password" data-minlength="6" class="form-control" name="password"
id="password" placeholder="Password" required>
<div class="help-block">Minimum of 6 characters</div>
</div>
<div class="form-group col-sm-6">
<input type="password" class="form-control" name = "passwordConfirm"
id="passwordConfirm" onkeyup="checkPassword();" placeholder="Confirm" required>
<span id='message'></span>
<div class="help-block with-errors"></div>
</div>
</div>
</div>
<div class="form-group">
<button type="submit" id="submitButton" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.11.7/validator.js"></script>
</body>
</html>