forked from poojary-shiv/Hotel-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.php
More file actions
56 lines (51 loc) · 2.13 KB
/
settings.php
File metadata and controls
56 lines (51 loc) · 2.13 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
<?php
include 'common.php';
if(!isset($_SESSION))
{
session_start();
}
if (!isset($_SESSION['email']))
{
header('location:main.php');
}
?>
<html>
<head>
<title>Settings | Hoteldeck</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
<!--jQuery library-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!--Latest compiled and minified JavaScript-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<br><br>
<br><br>
<div class="row">
<div class="col-md-3 col-md-offset-4">
<h3 style = " color:#303030; font-weight: bold;">Change Password</h3>
<form action="settings_script.php" method="post">
<div class="form-group">
<input type="password" class="form-control" placeholder="old-password" name="old-password" required>
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="new-password" name="password" required>
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="re-type new-password" name="password1" required>
</div>
<button type="submit" class="btn" style = "background-color: #606060; color: #f5f5f5;">Change</button>
<?php
if(isset($_GET['error']))
{
echo "<br><br><b class='red'>" . $_GET['error'] . "</b>";
}
?>
<br><br>
<a style = " color:#303030;" href="main.php">Move to home page</a>
</form>
</div>
</div>
</body>
</html>