-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.php
251 lines (187 loc) · 7.61 KB
/
home.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!--
this page contains all the forms required for logging inside for transactions via atm, or as employee...
this page even gives you a link to go to the lighter version our bank
-->
<?php
require 'server_connect.inc.php';
session_start(); //to start login session
?>
<?php
/*
* takes data from user.....recives atm number and pin*/
if(isset($_POST['ATM_NO']) && !empty($_POST['ATM_NO']) && isset($_POST['PIN']) && !empty($_POST['PIN']) ){
$atm_no=$_POST['ATM_NO'];
$pin=$_POST['PIN'];
$query1="SELECT Acc_no FROM CUSTOMERS WHERE ATM_NO='$atm_no' AND PIN='$pin'"; //query to check weather atm number and pin
if($query1_data = mysqli_query($con, $query1)){
if(mysqli_num_rows($query1_data)==1){
$_SESSION['atm']=$atm_no;
$_SESSION['pin']=$pin;
$row1 = mysqli_fetch_assoc($query1_data);
$acc_no = $row1['Acc_no'];
$_SESSION['acc_no']=$acc_no;
header('Location:index.php');
}
else if(mysqli_num_rows($query1_data)==0){
echo '<script>alert("Invalid ATM NUMBER and/or PIN");</script>';
}
}
}
?>
<?php
/*
* takes data from user.....recives employee id and password*/
if(isset($_POST['Emp_id']) && !empty($_POST['Emp_id']) && isset($_POST['Password']) && !empty($_POST['Password'])){
$Emp_id=$_POST['Emp_id'];
$Password=$_POST['Password'];
$Password_new=MD5($Password);
//$Password_new= $Password;
$query1="SELECT Emp_id FROM Employee WHERE Emp_id='$Emp_id' AND Password='$Password_new'"; //query to check employee in office
if($query1_data=mysqli_query($con, $query1)) {
if(mysqli_num_rows($query1_data)==1){
$row=mysqli_fetch_assoc($query1_data);
$emp_id = $row['Emp_id'];
$_SESSION['emp_id']=$emp_id;
header('Location:index.php');
}
else if(mysqli_num_rows($query1_data)==0){
echo '<script>alert("Incorrect Employee Id and/or Password");</script>';
}
}
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A layout example that shows off a responsive product landing page.">
<title>ICICI BANK</title>
<link rel="stylesheet" href="pure-release-0.5.0/pure.css">
<link rel="stylesheet" href="pure-release-0.5.0/grids-responsive.css">
<link rel="stylesheet" href="css/layouts/marketing.css">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
</head>
<body>
<a name="Home"></a>
<div class="header">
<div class="home-menu pure-menu pure-menu-open pure-menu-horizontal pure-menu-fixed">
<a class="pure-menu-heading" href="http://students.iitmandi.ac.in/~v_kumar/BankMan_final/home.php">ICICI BANK</a>
<ul>
<li class="pure-menu-selected"><a href="#Home">Home</a></li>
<li><a href="#ATM">ATM</a></li>
<li><a href="#Employee">Employee</a></li>
<li><a href="#">About us </a></li>
</ul>
</div>
</div>
<style>.anchor{padding-top: 1px;}
</style>
<img width="100%" height="600" src="online_banking.jpg">
<a name='Employee' class="anchor"></a>
<div class="content-wrapper">
<div class="content">
<h2 class="content-head is-center">EMPLOYEE LOGIN</h2>
<div class="pure-g">
<div class="l-box-lrg pure-u-1 pure-u-md-3-5">
<h4>Warning:</h4>
<p>
IF YOU ARE NOT ONE OF THE AUTHORIZED PERSON TO USE THIS FACILITY, THEN DON'T TRY TO USE IT.
</p>
<h4>Instructions:</h4>
<p>
1. Use your Employee ID and Password here.
2. Use this facility at secure locations only.
3. If there is an issue with your login, contact your supervior immediately.
</p>
</div>
<div class="l-box-lrg pure-u-1 pure-u-md-2-5">
<form class="pure-form pure-form-stacked" role="form" action="home.php" method="POST">
<fieldset>
<label for="name">Employee ID</label>
<input type="text" id="Emp_id" name="Emp_id" placeholder="Employee ID" required>
<label for="password">Your Password</label>
<input type="password" id="Password" name="Password" placeholder="Your Password" required>
<button type="submit" class="pure-button">Sign in</button>
</fieldset>
</form>
</div>
</div>
</div>
<style>
.color{color: white;}
.color1{color: red;}
</style>
<a class="anchor" name="ATM"></a>
<div class="ribbon l-box-lrg pure-g">
<h2 class="content-head is-center"><div class="color">ATM Login</div></h2>
<div class="pure-g">
<div class="l-box-lrg pure-u-1 pure-u-md-2-5">
<form class="pure-form pure-form-stacked" role="form" action="home.php" method="POST" >
<fieldset>
<label for="name"><div class="color">ATM Number</div></label>
<input type="text" id="ATM_NO" name="ATM_NO" placeholder="Your ATM Number" required>
<label for="password"><div class="color">PIN</div></label>
<input type="password" id="PIN" name="PIN" placeholder="Your PIN" required>
<button type="submit" class="pure-button">Login</button>
</fieldset>
</form>
</div>
<div class="l-box-lrg pure-u-1 pure-u-md-3-5">
<h4 class="color1">Instructions:</h4>
<p> 1. Keep your PIN secure.
2. In case you have lost it, contact our employees for generation of a new PIN.
</p>
<h4 class="color1">Need Help?</h4>
<p> If you are using ATM for first time, then you are welcome to seek help from our customer service.
</p>
</div>
</div>
</div>
<div class="content">
<h2 class="content-head is-center">COMMITED TO EXCELLENCE.</h2>
<div class="pure-g">
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-rocket"></i>
Get Started Quickly
</h3>
<p>
Contact our front-end representatives to open an account with us.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-mobile"></i>
Immediate Registration
</h3>
<p>
As you join us, you are provided with an Account Number, ATM Number and PIN.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-th-large"></i>
Security
</h3>
<p>
All our money transactions are safe, secure and organised.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-check-square-o"></i>
Your satisfaction is our motto.
</h3>
<p><a name="ATM"></a>
Our representatives will be available 24X7 to your issues.
</p>
</div>
</div>
</div>
<div class="footer l-box is-center">
copyrights@ICICI Bank developement team
</div>
</div>
</body>
</html>