This repository has been archived by the owner on Jun 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ulblogin.php
79 lines (66 loc) · 3.57 KB
/
ulblogin.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
<?php
if(!isset($_SESSION)) //CHECKING THE SESSION(NEW SESSION OR PREVIOUS SESSION)
session_start();
if(isset($_SESSION['uid']))//IF THE USER ALREADY LOGGED-IN...DIRECTLY GO THE HOME PAGE
header("location:ulbhome.php");
?>
<!DOCTYPE html>
<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, shrink-to-fit=no">
<meta name="description" content="Online PMAY E-learning module for ULBs and general citizens">
<meta name="keywords" content="PMAY, Pradhan Mantri Awas Yojna, ULBs, Urban Local Bodies, E-learning, State of Maharashtra, policies">
<title>Login</title>
<link href="other/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="other/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="css/login1.css" rel="stylesheet">
<script src='https://www.google.com/recaptcha/api.js'></script>
</head>
<body>
<!--<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'te', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}-->
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<section class="login-block">
<div class="container">
<div class="row">
<div class="col-md-4 login-sec">
<h2 class="text-center">ULBs Login</h2>
<form class="login-form" action="UlbLoginProcess.php" method="post">
<div class="form-group">
<span class="text-uppercase" style="color:red;">
<?php if(isset($_SESSION['error'])) // IF THE USER ENTER WRONG CREDENTIALS...DISPLAYING THE ERROR MESSAGE
echo $_SESSION['error']; ?></span><br/>
<label for="UlbUserName" class="text-uppercase">Username</label>
<input type="text" class="form-control" placeholder="" value="<?php if(isset($_COOKIE['remember'])){echo $_COOKIE['user'];} ?>" name="name">
</div>
<div class="form-group">
<label for="UlbPassword" class="text-uppercase">Password</label>
<input type="password" class="form-control" placeholder="" value="<?php if(isset($_COOKIE['remember'])){echo $_COOKIE['pwd'];} ?>" name="pwd">
</div>
<div class="form-check">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" name="remember">
<small>Remember Me</small>
</label>
<div class="g-recaptcha" data-sitekey="6LcOCFAUAAAAADCuPRwOpNB5DyI36vb3-87wkYYx"></div>
<button type="submit" class="btn btn-login float-right" name="submit">Login</button>
<a class="d-block small" href="forgotPass.html">Forgot Password?</a>
<a class="d-block small mt-3" href="signUp.html">Register an Account</a>
</div>
</form>
</div>
<div class="col-md-8 banner-sec">
<!--image is displayed-->
</div>
</div>
</section>
<script src="other/jquery/jquery.min.js"></script>
<script src="other/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="other/jquery-easing/jquery.easing.min.js"></script>
<?php unset($_SESSION['error']); ?>
</body>
</html>