-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
473 lines (409 loc) · 17 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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
<?php
include 'login.php';
if (!empty($_SESSION['login_user'])){
header("location: profile.php?user=".$_SESSION['login_user']);
exit();
}
$error = $_GET['error'];
$error = stripslashes($_GET['error']);
$error = mysql_real_escape_string($_GET['error']);
$error = strip_tags($_GET['error']);
echo "<center>$error</center>";
?>
<!DOCTYPE html>
<html>
<head>
<title>iStudent</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/form.css">
<link rel="stylesheet" type="text/css" href="css/media.css">
<link rel="stylesheet" type="text/css" href="css/animate.css">
<link href="https://fonts.googleapis.com/css?family=Fjalla+One|Maitree|Ropa+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="js/jquery.js"></script>
<script src="js/main.js"></script>
<style>
.msg-alert{
display: none;
position: fixed;
left: 50%;
-ms-transform: translate(-50%);
transform: translate(-50%);
bottom:0;
z-index: 9999;
}
.msg-alert p{
font-family: calibri;
border-radius: 5px 5px 0px 0px;
padding: 5px 8px;
font-size: 20px;
color: white;
}
</style>
</head>
<body id="home">
<div class="msg-alert"><p></p></div>
<div class="cssload-loader">
<div class="cssload-flipper">
<div class="cssload-front"></div>
<div class="cssload-back"></div>
</div><br/>
<center><span id="loading">Loading</span></center>
</div>
<div class="clr-switch"></div>
<div class="bubble-1"></div>
<div class="bubble-2"></div>
<div class="bubble-3"></div>
<div id="login-form">
<input type="radio" id="login" name="switch" class="hide" checked>
<input type="radio" id="#" name="switch" class="hide">
<div>
<ul class="form-header">
<li><label for="login"><i class="material-icons">lock</i> LOGIN</li>
<li><label for="#"><i class="material-icons">credit_card</i> REGISTER</label></li>
</ul>
</div>
<div class="section-out">
<section class="login-section">
<div class="login">
<form id="form_login" name="form_login" action="login.php" method="post">
<ul class="ul-list">
<li><input type="email" id="log_email" name="log_email" required class="input" placeholder="Email Address" required="" /><span class="icon"><i class="material-icons">local_post_office</i></span></li>
<li><input type="password" id="log_passwd" name="log_passwd" required class="input" minlength="4" maxlength="32" placeholder="Your Password" required="" /><span class="icon"><i class="material-icons">lock</i></span></li>
<li><input type="submit" id="submit" name="submit" value="#" class="btn"></li>
<li><input type="button" value="# with Facebook" class="btn fb" onclick="login()"></li>
<li><input type="button" value="Close" class="btn close"></li>
<span class="errorTxt"></span>
<div id="status"></div>
</ul>
</form>
</div> <!-- login -->
</section>
<section class="#-section">
<div class="login">
<form id="form_#" name="form_#" action="#.php" method="post">
<ul class="ul-list">
<li><input type="radio" id="student" name="check-type" onchange="check_type()" value="student" checked> Student <input type="radio" id="inst" name="check-type" value="institute" onchange="check_type()"> Institute <input type="radio" id="comp" name="check-type" value="company" onchange="check_type()"> Company</li>
<li><input type="text" required pattern="^[a-zA-Z ]+$" class="input" id="reg_name" name="reg_name" maxlength="32" placeholder="Student Name"/><span class="icon"><i class="material-icons">account_box</i></span></li>
<li><input type="text" required class="input" id="reg_uname" name="reg_uname" pattern="^[a-z\d\.]{5,}$" placeholder="User Name" onchange="check_user()"/><span class="icon"><i class="material-icons">person</i></span></li>
<li><input type="email" required class="input" id="reg_email" name="reg_email" placeholder="Email Address"/><span class="icon"><i class="material-icons">local_post_office</i></span></li>
<li><input type="password" required class="input" id="reg_passwd" name="reg_passwd" placeholder="Password"/><span class="icon"><i class="material-icons">lock</i></span></li>
<li><input type="password" required="" class="input" id="c_password" name="c_password" placeholder="Confirm Password"/><span class="icon"><i class="material-icons">lock</i></span></li>
<li><label>By signing up, you agree to our Terms of Service</label></li>
<li><input type="submit" id="#-btn" value="#" class="btn"></li>
<li><input type="button" value="Contiue using Facebook" class="btn fb" onclick="login()"></li>
<li><input type="button" value="Close" class="btn close"></li>
</ul>
<script type="text/javascript">
function check_type(){
if ($("#student").is(":checked")){
$("input#reg_name").prop("placeholder","Student Name");
$("input#reg_name span i").text("account_box");
}
else if ($("#inst").is(":checked")){
$("input#reg_name").prop("placeholder","Institute Name");
$("input#reg_name span i").text("account_balance");
}
else{
$("input#reg_name").prop("placeholder","Company Name");
$("input#reg_name span i").text("business_center");
}
}
</script>
<script type="text/javascript">
function check_user(){
var uname = $("#reg_uname").val();
$.ajax({
url: "check_user.php?username="+uname,
success: function(data){
$(".msg-alert p").html(data);
if (data == "Username Available"){
$(".msg-alert p").css("background-color","green");
}
else{
$(".msg-alert p").css("background-color","red");
}
$(".msg-alert").show(0,function(){
$(".msg-alert").delay(3000).fadeOut('slow');
});
}
});
}
</script>
</form>
</div> <!-- login -->
</section>
</div> <!-- section-out -->
</div> <!-- login-form -->
<header>
<div class="wrap-width">
<a href="#home">
<div class="navbar-logo">
<img src="images/logo.png"/>
<img id="hat" src="images/hat.png"/>
</div> <!-- navbar-logo -->
</a>
<!--<a href="#nav"><i class="material-icons">reorder</i></a>-->
<div class="horizontal-page-links" id="nav">
<div class="register-user">
<a id="register">Register</a>
<a id="login">Login</a>
<!--<a id="register" href="#register">Register</a>-->
</div> <!-- register-user -->
<ul>
<div class="sliding-out links"><li><a href="#home">Home</a></li></div>
<div class="sliding-out links"><li><a href="#about">About </a></li></div>
<div class="sliding-out links"><li><a href="#contact">Contact </a></li></div>
<div class="last-navbar-link"><li></li></div>
</ul>
</div> <!-- horizontal-page-links -->
</div>
</header>
<div class="content">
<!-- Welcome Page -->
<div class="welcome wrap-width">
<div class="empty-layout"></div>
<center>
<img class="welcome-image" src="images/img1.png">
<div class="welcome-text">
<p id="text-heading">iStudent.me</p><br>
<p id="text-context">iStudent is a platform where companies can find the internees,<br>employees, workers for them. It provides the educational documents,<br> certificates, curriculum vitae (CV) of the users. </p>
<a id="readmore" href="#about">Read More</a>
</div> <!-- welcome-text -->
</center>
</div> <!-- welcome -->
<div class="link-container clearfix">
<div class="wrap-width">
<a id="register"># Now</a>
<p id="join">Join the iStudent - Be a part of the growing community.</p>
</div>
</div> <!-- link-container -->
<div class="about-container clearfix wrap-width" id="about">
<p id="title">Everything you need to know about us.</p><hr class="style-1" style="width: 600px; align-self: center;"><br/>
<div class="col-container">
<span class="text-back tooltip" onclick="slider()"></span>
<i class="material-icons arrow arrow-back">navigate_before</i>
<img id="about-img" src="images/we.png"/>
<div class="col_one_third col_1st">
<h1>WHO ARE <span>WE</span>.</h1>
<div class="bottom-border"></div>
<p>We are a group of highly motivated students and we are trying to solve the daily life problems of students which hinder them to be successful in their lives. </p>
</div> <!-- col_one_third -->
<div class="col_one_third col_2nd">
<h1>OUR <span>MISSION</span>.</h1>
<div class="bottom-border"></div> <!-- border-bottom -->
<p>We aim to promote the digital document attestation and verification. Our sole mission is to save the time that the students consume in attesting their docs.</p>
</div> <!-- col_one_third -->
<div class="col_one_third col_3rd">
<h1>WHAT WE <span>PROVIDE</span>.</h1>
<div class="bottom-border"></div> <!-- border-bottm -->
<p>iStudent is a platform where students can get their documents verified and attested digitally. Companies can view their docs and offer them internships and jobs.</p>
</div> <!-- col_one_third col_last -->
<i class="material-icons arrow arrow-forward">navigate_next</i>
<span class="text-forward tooltip"></span>
</div> <!-- col-conatiner -->
</div> <!-- About-container -->
<script>
var slide = 1;
var myVar = setInterval(slider, 4000);
$(".col_one_third").hover(function(ev){
clearInterval(myVar);
}, function(ev){
myVar = setInterval(slider,4000);
});
function slider(){
slide+=1;
if(slide>3){
slide = 1;
}
$(".col_one_third").css("animation","fadeInRight 0.6s ease-out");
$("#about-img").css("animation","fadeInLeft 0.4s ease-out");
move();
}
</script>
<script>
function move(){
if (slide ==1){
$(".radio-1").html("radio_button_checked");
$(".radio-2").html("radio_button_unchecked");
$(".radio-3").html("radio_button_unchecked");
$(".col_1st").show();
$(".col_2nd").hide();
$(".col_3rd").hide();
$("#about-img").prop("src","images/we.png");
$(".text-back").text("What we provide");
$(".text-forward").text("Our mission");
}
else if (slide==2){
$(".radio-1").html("radio_button_unchecked");
$(".radio-2").html("radio_button_checked");
$(".radio-3").html("radio_button_unchecked");
$(".col_1st").hide();
$(".col_2nd").show();
$(".col_3rd").hide();
$("#about-img").prop("src","images/mission.png");
$(".text-back").text("Who are we");
$(".text-forward").text("What we provide");
}
else if (slide==3){
$(".radio-1").html("radio_button_unchecked");
$(".radio-2").html("radio_button_unchecked");
$(".radio-3").html("radio_button_checked");
$(".col_1st").hide();
$(".col_2nd").hide();
$(".col_3rd").show();
$("#about-img").prop("src","images/provide.png");
$(".text-back").text("Our mission");
$(".text-forward").text("Who are we");
}
}
</script>
<center>
<i class="material-icons radio-1">radio_button_checked</i>
<i class="material-icons radio-2">radio_button_unchecked</i>
<i class="material-icons radio-3">radio_button_unchecked</i>
</center>
<center>
<div class="contact-container " id="contact">
<div id="form-main">
<div class="contact-div form-div">
<p class="contact-title" id="title">Contact us<br></p>
<form class="form" id="form1" name="form1" action="#" method="post">
<p class="name">
<input type="text" pattern="^[a-zA-Z ]+$" class="feedback-input" maxlength="35" placeholder="Your Name" id="name" name="name" required/>
</p>
<p class="email">
<input type="email" class="feedback-input" id="email" name="email" placeholder="Your Email" required/>
</p>
<p class="text">
<textarea class="feedback-input" id="message" name="message" placeholder="Message" required></textarea>
</p>
<div class="submit">
<input type="submit" value="SEND" id="button-send"/>
<div class="ease"></div>
</div>
</form>
<script>
$(function() {
$("form[name='form1']").validate({
rules: {
name: {
required: true,
maxlength: 35
},
email: {
required: true,
email: true
},
message: {
required: true,
minlength: 20,
maxlength:250
}
},
messages: {
name: {
required: "Please enter your good name",
maxlength: "Name must be less than 35 characters"
},
email: "Please enter an email address",
email: "Please enter a valid email address"
},
});
});
</script>
</div>
<div class="contact-div contact-detail">
<p class="contact-title" id="ct-details">Contact Details</p>
<div class="detail-container" id="phone-no">
<i class="material-icons first">contact_phone</i>
<p class="contact-context" id="phone-text">(+92)312-3456789</p>
</div>
<div class="detail-container" id="email-id">
<i class="material-icons second">email</i>
<p class="contact-context" id="mail-text">query@istudent.me</p>
</div>
<div class="detail-container" id="facebook-id">
<i class="fa fa-facebook-square first" aria-hidden="true"></i>
<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fistudentx&tabs&width=340&height=154&small_header=true&adapt_container_width=false&hide_cover=true&show_facepile=true&appId=569559719880964" scrolling="no" frameborder="0" allowTransparency="true" id="fb"></iframe>
</div>
<div class="detail-container" id="location">
<i class="material-icons second">place</i>
</div>
</div>
<div class="contact-div" id="map"></div>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCSsR2S_1urJWvhSn_bCLWaoDtEBntXIlI&callback=initMap">
</script>
</div>
</div> <!-- contact-container -->
</center>
</div>
<footer>
<a href="#home"><i class="fa fa-arrow-circle-up" aria-hidden="true"></i></a>
<div id="copyrights">
<span class="siteName">iStudent © 2017. All rights reserved.</span>
</div><!--copyrights-->
</footer>
<script async type="text/javascript">
function login(){
FB.login(function(response) {
if (response.status === 'connected') {
$("#login-form").hide();
$('.content, footer,header').css("pointer-events","auto");
$("a#login").html("Logout");
FB.api('/me', function(response) {
alert('Successful login for: ' + response.name);
});
setTimeout(dashboard, 1000);
function dashboard(){
window.open("profile.php","_self");
}
$("a#login").click(function(){
FB.logout(function(response) {
$("a#login").html("Login");
alert("logged out successfully.");
});
});
} else {
// The person is not logged into your app or we are unable to tell.
document.getElementById('status').innerHTML = 'Please log ' +
'into this website.';
}
});
}
// This function is called when someone finishes with the Login
// Button. See the onlogin handler attached to it in the sample
// code below.
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}
window.fbAsyncInit = function() {
FB.init({
appId : '732114246968740',
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse social plugins on this page
version : 'v2.8' // use graph api version 2.8
});
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
};
// Load the SDK asynchronously
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script defer src="https://cdn.jsdelivr.net/jquery.validation/1.15.1/jquery.validate.min.js"></script>
<script defer type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.12.0/additional-methods.js"></script>
<script defer src="js/animate.js"></script>
</body>
</html>