-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.php
99 lines (97 loc) · 2.95 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php require 'create_db.php' ?>
<?php
//Start session
session_start();
//Unset the variables stored in session
unset($_SESSION['SESS_MEMBER_ID']);
unset($_SESSION['SESS_FIRST_NAME']);
unset($_SESSION['SESS_LAST_NAME']);
unset($_SESSION['SU']);
?>
<html>
<head>
<title>Hitachi Solutions</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="bootstrap-3.3.5-dist/css/bootstrap.min.css">
<script src="bootstrap-3.3.5-dist/jquery.min.js"></script>
<script src="bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
<style>
body
{
background-image: url("assets/bg.jpg");
}
form
{
color: white;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div style="text-align: right;" class="col-sm-8">
<br><br><br><br><br>
<a href="http://www.hitachi.co.in/" target="_blank">
<img src="assets/Hitachi%20Logo.jpg" alt="Hitachi Logo" style="border:0">
</a>
</div>
<div class="col-sm-3"></div>
<div class="col-sm-1">
<form method='post' action='create_user/create_user.html' align="center" role="form">
<button type='submit' class=' btn btn-primary'>
<span class="glyphicon glyphicon-user"></span>
Create User</button>
</form>
</div>
</div>
<form name="loginform" action="login/login_exec.php" method="post" autocomplete="off" role="form">
<div class="row">
<div class="col-sm-4"></div>
<div class="col-sm-offset-0 col-sm-4">
<?php
if(isset($_SESSION['ERRMSG_ARR'])&&is_array($_SESSION['ERRMSG_ARR'])&&count($_SESSION['ERRMSG_ARR'])>0)
{
echo('<div class="alert alert-danger">');
echo '<ul class="err">';
foreach($_SESSION['ERRMSG_ARR'] as $msg)
{
echo '<li><strong>Error! </strong>',$msg,'</li>';
}
echo '</ul>';
unset($_SESSION['ERRMSG_ARR']);
echo('</div>');
}
?>
<div class="col-sm-4"></div>
</div>
</div>
<br>
<div class="row">
<div class="col-sm-4"></div>
<label class="control-label col-sm-1" for="email">Username:</label>
<div class="col-sm-3">
<input type="text" class="form-control" name="username" placeholder="Enter User Name">
</div>
<div class="col-sm-4"></div>
</div>
<div class="row">
<div class="col-sm-4"></div>
<label class="control-label col-sm-1" for="pwd">Password:</label>
<div class="col-sm-3">
<input type="password" class="form-control" name="password" placeholder="Enter password">
</div>
<div class="col-sm-4"></div>
</div>
<br>
<div class="row">
<div class="col-sm-offset-5 col-sm-7">
<button name="" type="submit" class="btn btn-success">
<span class="glyphicon glyphicon-log-in"></span>
Log In</button>
</div>
</div>
</form>
</div>
</body>
</html>