-
Notifications
You must be signed in to change notification settings - Fork 1
/
login.php
executable file
·47 lines (45 loc) · 1.77 KB
/
login.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
<?php include('server.php') ?>
<!DOCTYPE html>
<html lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login to NCC@MNNIT</title>
<link rel="icon" href="img/nccFlag.png">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#div1").fadeOut(3000);
});
</script>
<script>
// When the user over and out on div, open the popup
function myFunction() {
var popup = document.getElementById("myPopup");
popup.classList.toggle("show");
}
</script>
</head>
<body>
<div class="loginBox">
<img src="img/user.png" class="user">
<h2>Log In Here</h2>
<form method="post" action="login.php">
<?php include('errors.php'); ?>
<label>Username</label>
<input type="text" name="username" value="<?php echo $username; ?>" >
<label>Password</label>
<input type="password" name="password" value="<?php echo $email; ?>">
<button type="submit" class="btn" name="login_user">Login</button>
<p style="color:red;">
Not yet a member? <a href="register.php">Sign up</a>
</p>
<div style="text-align:center" class="popup" onmouseover="myFunction()" onmouseout="myFunction()"><i class="fa fa-mobile-phone" style="font-size:24px ; color:white"></i>  <a href="NCC@MNNIT.apk">Android app</a>
<span style="text-align:center" class="popuptext" id="myPopup">Download this for your mobile</span>
</div>
</form>
</div>
</body>
</html>