forked from SAAR-IITP/SAAR-IITP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enterotp.php
170 lines (162 loc) · 7.21 KB
/
enterotp.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
<?php
session_start();
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Enter OTP</title>
<style>
body {
background: #EEFBFF;
background: url('img/bggg.png');
background-size: cover;
font-family: 'Montserrat' Semibold ;
}
@media screen and (max-width: 400px) {
#credit h1{
font-size: 20px;
}
}
#resend {
text-align: right;
}
#resend a {
text-decoration: none;
}
</style>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/fontAwesome.css">
<link rel="stylesheet" href="css/light-box.css">
<link rel="stylesheet" href="css/owl-carousel.css">
<link rel="stylesheet" href="css/templatemo-style.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet">
<link rel="stylesheet" href="css/findal.css">
<link rel="stylesheet" href="css/login.css">
<script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<header class="nav-down responsive-nav hidden-lg hidden-md">
<button type="button" id="nav-toggle" class="navbar-toggle" data-toggle="collapse" data-target="#main-nav">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--/.navbar-header-->
<div id="main-nav" class="collapse navbar-collapse">
<nav>
<ul class="nav navbar-nav">
<li><form action="#" method="post" id="log">
<button class="btn" formaction="portal.php">Profile</button>
</form></li>
<li>
<?php
if(isset($_SESSION['loggedin']) && $_SESSION['loggedin']==true){
?>
<form action="#" method="post" id="log">
<button class="btn" formaction="logout.php">Logout</button>
</form>
<?php }else{ ?>
<form action="#" method="post" id="log">
<button class="btn" formaction="index.php">Home</button>
</form>
<?php }?>
</li>
</ul>
</nav>
</div>
</header>
<div class="sidebar-navigation hidde-sm hidden-xs">
<div class="logo">
<img src="img/logo1.png" class="static">
</div>
<nav>
<ul>
<li>
<form action="#" method="post" id="log">
<button class="button" style="vertical-align:middle; width: 20px;" formaction="portal.php"><span>Profile</span></button>
</form>
</li>
<li>
<?php
if(isset($_SESSION['loggedin']) && $_SESSION['loggedin']==true){
?>
<form action="#" method="post" id="log">
<button class="button" style="vertical-align:middle" formaction="logout.php"><span>Log out</span></button>
</form>
<?php }else{ ?>
<form action="#" method="post" id="log">
<button class="button" formaction="index.php">Home</button>
</form>
<?php }?>
</li>
</ul>
</nav>
<ul class="social-icons">
<li><a href="https://www.facebook.com/saar.iitp" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-linkedin"></i></a></li>
</ul>
</div>
<div class="page-content">
<section id="credit" style="background: #003C4D; padding: 10px;">
<div style="text-align: center;margin-bottom: 10px;"><br><br><br><br>
<h1 id="error" style="color: #fff; text-decoration: underline; padding-left: 30px;">
<?php
if(isset($_SESSION['msg'])){
echo $_SESSION['msg'];
unset($_SESSION['msg']);
}
?>
</h1><br>
</div>
</section>
<section id="extra" style="padding: 0; background: url('img/bggg.png');">
<h1>Enter OTP</h1><br>
<div class="container-login100">
<div class="wrap-login100">
<form class="login100-form validate-form" method="POST" action="otpvalidationp.php">
<?php if(isset($_SESSION['cid'])){?>
<input name="rollno" hidden value="<?php echo $_SESSION['cid']?>" >
<?php }else{ ?>
<div class="wrap-input100 validate-input" data-validate="Enter rollno">
<input class="input100" type="text" size="50" name="rollno" required>
<span class="focus-input100" data-placeholder="Enter Institute ID"></span>
</div>
<?php }?>
<?php if(isset($_SESSION['forget_pass']) && $_SESSION['forget_pass'] == true){ ?>
<input name="forget_pass" hidden value="<?php echo $_SESSION['forget_pass']?>" >
<?php } ?>
<div class="wrap-input100 validate-input" data-validate="Enter password">
<input class="input100" type="text" size="50" name="otp" required>
<span class="focus-input100" data-placeholder="Enter OTP"></span>
</div>
<div id="resend">
<a href="resendotp.php">Resend OTP ?</a>
</div>
<?php
if(isset($_SESSION['error'])){
echo $_SESSION['error'];
unset($_SESSION['error']);
}
?>
</div>
</div>
<button class="buton" type="submit">Submit</button>
</form>
</section>
</div>
</body>
</html>