-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-Copy.php
61 lines (57 loc) · 1.94 KB
/
index-Copy.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
<?php
session_start();
if(isset($_SESSION['admin'])){
header('location: admin/home.php');
}
if(isset($_SESSION['voter'])){
header('location: home.php');
}
?>
<?php include 'includes/header.php'; ?>
<body class="hold-transition login-page" style="background-color: maroon">
<div class="login-box"
style="
float: left;
margin-left: 6%;
">
<div class="login-logo">
<img src="images/afru logo.jpg" style="border-radius: 50%; height: 100px; width: 100px;"> <br>
<h3 style="color: white"><b>KAYE Voting System</b></h3>
</div>
<div class="login-box-body"
style="
border-top-left-radius: 20%;
border-bottom-right-radius: 30%;
box-shadow: 0 0 20px #fff;
">
<p class="login-box-msg">Sign in to start your Voting Session</p>
<form action="login.php" method="POST">
<div class="form-group has-feedback">
<input type="text" class="form-control" name="voter" placeholder="Registration No" required>
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" class="form-control" name="password" placeholder="Password" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat" name="login"><i class="fa fa-sign-in"></i> Sign In</button>
</div>
</div>
</form>
</div>
<?php
if(isset($_SESSION['error'])){
echo "
<div class='callout callout-danger text-center mt20'>
<p>".$_SESSION['error']."</p>
</div>
";
unset($_SESSION['error']);
}
?>
</div>
<?php include 'includes/scripts.php' ?>
</body>
</html>