-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset_model.php
More file actions
57 lines (52 loc) · 2.03 KB
/
Copy pathreset_model.php
File metadata and controls
57 lines (52 loc) · 2.03 KB
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
<?php
session_start();
?>
<?php include 'includes/header.php'; ?>
<?php include 'function.php'; ?>
<body class="hold-transition login-page bg" style="display: inline !important;">
<div class="login-box">
<?php
if(isset($_SESSION['error'])){
echo "
<div class='callout callout-danger text-center mt20'>
<p>".$_SESSION['error']."</p>
</div>
";
unset($_SESSION['error']);
}
?>
<div class="login-logo">
<b style = "margin: -25px; text-transform: uppercase">Online Voting System</b>
</div>
<div class="login-box-body">
<h3 class="login-box-msg" style = "font-weight: bold; font-variant: small-caps; font-family: Times, serif">Reset Password</h3>
<hr>
<form action = "reset" method="POST">
<div class="form-group has-feedback">
<input type="password" class="form-control" name="new_password" placeholder="New Password..." required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" class="form-control" name="Cnew_password" placeholder="Confirm Password..." required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="modal-footer">
<button type="button" onclick= "parent.location='index.php'" class="btn btn-danger btn-flat pull-left" data-dismiss="modal"><i class="fa fa-close"></i> Close</button>
<button type="submit" class="btn btn-success btn-flat" name="generate"><i class="fa fa-check-square-o"></i> Reset </button>
</div>
</form>
<?php if(isset($_SESSION['success'])){
echo "
<div class='alert alert-success alert-dismissible'>
<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>
<h4><i class='icon fa fa-check'></i> Success!</h4>
".$_SESSION['success']."
</div>
";
unset($_SESSION['success']);
}
?>
</div>
</div>
</body>
</html>