-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
74 lines (67 loc) · 2.1 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
<?php
require 'authentication.php'; // admin authentication check
if ($user_id != NULL && $security_key != NULL) {
header('Location: task-info.php');
}
if (isset($_POST['login_btn'])) {
$info = $obj_admin->admin_login_check($_POST);
}
$page_name = "Login";
include("include/login_header.php"); ?>
<style>
html,
body {
height: 100%;
width: 100%;
margin: unset !important
}
.main {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
margin: unset !important
}
</style>
<?php
?>
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="well rounded-0" style="background:#fff !important">
<p class="text-center">
<h2 style="margin-top:1px;">Employee Task Management System</h2>
</p>
<form class="form-horizontal form-custom-login" action="" method="POST">
<div class="form-heading">
<h2 class="text-center">Login Panel</h2>
</div>
<!-- <div class="login-gap"></div> -->
<?php if (isset($info)) { ?>
<h5 class="alert alert-danger"><?php echo $info; ?></h5>
<?php } ?>
<div class="form-group">
<input type="text" class="form-control rounded-0" placeholder="Username" name="username" required />
</div>
<div class="form-group" ng-class="{'has-error': loginForm.password.$invalid && loginForm.password.$dirty, 'has-success': loginForm.password.$valid}">
<div class="input-group" id="show_hide_password">
<input type="password" class="form-control rounded-0" placeholder="Password" name="admin_password" required />
<div class="input-group-addon">
<a href=""><i class="glyphicon glyphicon-eye-close"></i></a>
</div>
</div>
</div>
<button type="submit" name="login_btn" class="btn btn-info pull-right">Login</button>
</form>
</div>
</div>
<?php
// }else{ header("refresh:1*60*1000");
?>
<!-- <div style="text-align: center; margin-top: 25%; margin-left: auto; margin-right: auto; color: red; background-color:black">
<h2>Sorry ETMS Application not working on this system</h2>
<button onclick="window.location.reload();">Please Reload</button>
</div> -->
<?php
// }
include("include/footer.php");
?>