Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b443ace

Browse files
committedAug 21, 2017
Replaced samebanktransaction.jsp with transferamount.jsp
Designed html pages
1 parent 0f0672f commit b443ace

28 files changed

+3818
-302
lines changed
 

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/build/
1+
/build/

‎WebContent/addbankstatus.jsp

+46-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
<%@ page import ="java.sql.*,com.jdbc.*" %>
22

3+
<html >
4+
<head>
5+
<meta charset="UTF-8">
6+
<title>Added Bank Status</title>
7+
8+
9+
10+
<link rel="stylesheet" href="css/addbankstatus-style.css">
11+
<link rel="stylesheet" href="css/button.css">
12+
13+
14+
</head>
15+
16+
<body>
17+
318
<%
419
try{
520
ResultSet rs = null;
@@ -15,9 +30,13 @@
1530
if(rs.next())
1631
{
1732
%>
33+
34+
<!-- <h1><span class="blue">&lt;</span>Table<span class="blue">&gt;</span> <span class="yellow">Responsive</span></h1> -->
35+
<h1>EDIT OR REMOVE ENTRIES</h1>
1836

19-
<table align="center" border="2" width="70%">
20-
<tr>
37+
<table class="container">
38+
<thead>
39+
<tr>
2140

2241
<th><h4>Bank Name</h4></th>
2342
<th><h4>Customer ID</h4></th>
@@ -26,12 +45,12 @@
2645
<th><h4>Mobile Number</h4></th>
2746
<th><h4>Account Type</h4></th>
2847
<th><h4>Remarks</h4></th>
29-
<th><h4>Operation</h4></th>
48+
<th><h4>Edit Entry</h4></th>
3049
<th><h4>Remove Entry</h4></th>
31-
32-
33-
34-
<%
50+
</tr>
51+
</thead>
52+
53+
<%
3554
3655
PreparedStatement st1 = con.prepareStatement("select * from bankinfo",ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
3756
ResultSet rs1 = st1.executeQuery();
@@ -46,10 +65,11 @@
4665
break;
4766
}
4867
}
49-
50-
%>
51-
52-
<tr>
68+
%>
69+
70+
71+
<tbody>
72+
<tr>
5373
<td><%=bankname %></td>
5474
<td><%=rs.getString(3) %></td>
5575
<td><%=rs.getString(4) %></td>
@@ -76,11 +96,11 @@
7696
else {
7797
%>
7898
<td>
79-
<a href="editbankdetails.jsp?bname=<%=rs.getString(2) %>">Edit Details</a>
99+
<a class="button" href="editbankdetails.jsp?bname=<%=rs.getString(2) %>">Edit Details</a>
80100
</td>
81101
<td>
82102

83-
<a href = "deleteuserbankinfo.jsp?bname=<%=rs.getString(2) %>">Delete</a>
103+
<a class="button" href = "deleteuserbankinfo.jsp?bname=<%=rs.getString(2) %>">Delete</a>
84104

85105
</td>
86106
<% } %>
@@ -91,14 +111,15 @@
91111
} while(rs.next());
92112
con.close();
93113
%>
94-
95-
</table>
96-
114+
</tbody>
115+
</table>
116+
97117
<%
98118
} else {
99-
out.println("Whoops!! No user bank info available. Please Click the below link to add one");
100119
101120
%>
121+
122+
<h1>Whoops!! No user bank info available. Please Click the below link to add one</h1>
102123
<br/>
103124
<br/>
104125
<a href="adduserbankinfo.jsp">Click here</a>
@@ -108,4 +129,11 @@
108129
System.out.println(e);
109130
System.out.println("error");
110131
}
111-
%>
132+
%>
133+
134+
135+
</body>
136+
</html>
137+
138+
139+

‎WebContent/adduserbankinfo.jsp

+104-69
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,113 @@
11
<%@ page import ="java.sql.*,com.jdbc.*" %>
22

3+
<html lang="en">
4+
<head>
5+
<title>Add Bank Details</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8+
<meta name="keywords" content="Classy Job Application Form Widget Responsive, Login form web template,Flat Pricing tables,Flat Drop downs Sign up Web Templates, Flat Web Templates, Login signup Responsive web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
9+
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
10+
<!-- font files -->
11+
<link href='//fonts.googleapis.com/css?family=Lato:400,100,100italic,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
12+
<!-- /font files -->
13+
<!-- css files -->
14+
<link href="css/adduserbankinfostyle.css" rel='stylesheet' type='text/css' media="all" />
15+
<link rel="stylesheet" href="css/adduserbankinfo-j-forms.css">
316

4-
<form action="adduserbankinfoprocess.jsp" method=get>
5-
<h2><b>Enter Account Details</b></h2>
6-
7-
<table align="center">
8-
9-
<tr>
10-
<td><h3>Select Bank</h3></td>
11-
<td>
12-
<select name="bankdes">
13-
<option value="">- Please select a bank -</option>
14-
<%
15-
Connection con = DbCon.dbCon();
17+
<!-- /css files -->
18+
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
19+
20+
</head>
21+
<body>
22+
<h1 class="header-w3ls">Submit Bank Details</h1>
23+
<div class="content-w3ls">
24+
<div class="form-w3ls">
25+
<form action="adduserbankinfoprocess.jsp" method="post">
26+
<div class="content-wthree1">
27+
<div class="grid-agileits1">
1628

17-
PreparedStatement st = con.prepareStatement("select * from bankinfo");
1829

19-
ResultSet rs = st.executeQuery();
30+
<div class="form-control">
31+
<div class="main-row">
32+
<label class="header">Bank <span>*</span></label>
33+
<select name="bankdes">
34+
<option value="">- Please select a bank -</option>
35+
<%
36+
Connection con = DbCon.dbCon();
37+
PreparedStatement st = con.prepareStatement("select * from bankinfo");
38+
ResultSet rs = st.executeQuery();
39+
while(rs.next()){
40+
%>
41+
<option><%=rs.getString(2)%></option>
42+
<%}%>
43+
</select>
44+
<i></i>
45+
</div>
46+
</div>
47+
48+
<div class="form-control">
49+
<label class="header">Customer ID <span>*</span></label>
50+
<input type="text" name="cid" placeholder="Name" title="Please enter your Customer ID" required>
51+
</div>
52+
53+
<div class="form-control">
54+
<label class="header">Account Number <span>*</span></label>
55+
<input type="text" name="anum" placeholder="Account Number" title="Please enter a Valid Account Number" required>
56+
</div>
57+
<div class="form-control">
58+
<label class="header">Account Holder Name <span>*</span></label>
59+
<input type="text" name="ahname" placeholder="Account Holder" title="Please enter Account Holder Name" required>
60+
</div>
61+
<div class="form-control">
62+
<label class="header">Phone <span>*</span></label>
63+
<input type="text" name="mnum" placeholder="Phone" title="Please enter your Phone No" required>
64+
</div>
65+
<div class="form-control">
66+
<label class="header">Transaction Password <span>*</span></label>
67+
<input type="password" name="tpass" placeholder="Transaction Password" title="Please enter your Transaction Password" required>
68+
</div>
69+
</div>
70+
</div>
71+
72+
<div class="content-wthree2">
73+
<div class="grid-w3layouts1">
74+
<div class="w3-agile1">
75+
<label class="rating">What is your Account Type? <span>*</span></label>
76+
<ul>
77+
<li>
78+
<input type="radio" id="a-option" name="atype" value="Current Account">
79+
<label for="a-option">Current Account </label>
80+
<div class="check"></div>
81+
</li>
82+
<li>
83+
<input type="radio" id="b-option" name="atype" value="Savings Account">
84+
<label for="b-option">Savings Account</label>
85+
<div class="check"><div class="inside"></div></div>
86+
</li>
87+
<li>
88+
<input type="radio" id="c-option" name="atype" value="Others">
89+
<label for="c-option">Others</label>
90+
<div class="check"><div class="inside"></div></div>
91+
</li>
92+
<div class="clear"></div>
93+
</ul>
94+
</div>
95+
96+
</div>
2097

21-
while(rs.next()){
98+
<div class="clear"></div>
99+
</div>
100+
101+
<div class="wthreesubmitaits">
102+
<input type="submit" name="submit" value="Submit">
103+
</div>
104+
</form>
105+
</div>
106+
107+
</div>
22108

23-
%>
24-
<option><%=rs.getString(2)%></option>
25-
<%}%>
26-
</select>
27-
</td>
28-
</tr>
29-
30-
<tr>
31-
<td><h3>Enter Customer ID</h3></td>
32-
<td>
33-
<input type="text" name="cid">
34-
</td>
35-
</tr>
109+
<p class="copyright">© 2017 Multibank All Rights Reserved | Design by <a href="https://w3layouts.com/" target="_blank">W3layouts</a></p>
36110

37-
<tr>
38-
<td><h3>Enter Account Number</h3></td>
39-
<td>
40-
<input type="text" name="anum">
41-
</td>
42-
</tr>
43111

44-
<tr>
45-
<td><h3>Account Holder Name</h3></td>
46-
<td>
47-
<input type="text" name="ahname">
48-
</td>
49-
</tr>
50-
51-
<tr>
52-
<td><h3>Mobile Number</h3></td>
53-
<td>
54-
<input type="text" name="mnum">
55-
</td>
56-
</tr>
57-
58-
<tr>
59-
<td><h3>Account Type</h3></td>
60-
<td>
61-
<SELECT name="atype">
62-
<option >Current Account</option>
63-
<option >Savings Account</option>
64-
<option >Others</option>
65-
</SELECT>
66-
</td>
67-
</tr>
68-
69-
<tr>
70-
<td><h3>Enter Transaction Password</h3></td>
71-
<td><input type="password" name="tpass"></td>
72-
</tr>
73-
</table>
74-
75-
<input type=submit value =Submit>&nbsp;&nbsp;&nbsp;&nbsp;
76-
<input type="button" name=back value="back" onClick="window.location='userhome.jsp'">&nbsp;&nbsp;&nbsp;&nbsp;
77-
<input type="reset" value="reset">
78-
</form>
112+
</body>
113+
</html>

‎WebContent/bankadminlogin.jsp

+67-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%@ page import ="java.sql.*,com.jdbc.*" %>
22

33

4-
<form action="bankadminloginprocess.jsp">
4+
<%-- <form action="bankadminloginprocess.jsp">
55
66
<table class="table">
77
@@ -37,4 +37,69 @@
3737
<tr><td></td><td><input type="submit" value="Login"></td></tr>
3838
3939
</table>
40-
</form>
40+
</form> --%>
41+
42+
43+
44+
45+
46+
<html>
47+
<head>
48+
<title>Transparent Login Form Responsive Widget Template | Home :: w3layouts</title>
49+
<link href="css/bankadminlogin-style.css" rel="stylesheet" type="text/css" media="all"/>
50+
<meta name="viewport" content="width=device-width, initial-scale=1">
51+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
52+
<meta name="keywords" content="Transparent Login Form Responsive Widget,Login form widgets, Sign up Web forms , Login signup Responsive web form,Flat Pricing table,Flat Drop downs,Registration Forms,News letter Forms,Elements" />
53+
<!--web-fonts-->
54+
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css' />
55+
<!--web-fonts-->
56+
</head>
57+
58+
<body>
59+
<!--header-->
60+
<div class="header-w3l">
61+
<h1> Bank Admin Login Form</h1>
62+
</div>
63+
<!--//header-->
64+
65+
<!--main-->
66+
<div class="main-content-agile">
67+
<div class="sub-main-w3">
68+
<form action="bankadminloginprocess.jsp" method="get">
69+
70+
<label class="header">Bank <span>*</span></label>
71+
<select name="bankdes">
72+
<option value="">- Please select a bank -</option>
73+
<%
74+
Connection con = DbCon.dbCon();
75+
76+
PreparedStatement st = con.prepareStatement("select * from bankinfo");
77+
78+
ResultSet rs = st.executeQuery();
79+
80+
while(rs.next()){
81+
82+
%>
83+
<option><%=rs.getString(2)%></option>
84+
<%}%>
85+
</select>
86+
<br>
87+
88+
<input placeholder="Username" name="username" class="user" type="text" required><br>
89+
<input placeholder="Password" name="userpassword" class="pass" type="password" required><br>
90+
91+
92+
<input type="submit" value="">
93+
</form>
94+
</div>
95+
</div>
96+
<!--//main-->
97+
98+
<!--footer-->
99+
<div class="footer">
100+
<p>&copy; 2017 Bank Admin Login. All rights reserved | Design by <a href="http://w3layouts.com">W3layouts</a></p>
101+
</div>
102+
<!--//footer-->
103+
104+
</body>
105+
</html>
+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
/*
2+
Side Navigation Menu V2, RWD
3+
===================
4+
License:
5+
https://goo.gl/EaUPrt
6+
===================
7+
Author: @PableraShow
8+
9+
*/
10+
11+
@charset "UTF-8";
12+
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);
13+
14+
body {
15+
font-family: 'Open Sans', sans-serif;
16+
font-weight: 300;
17+
line-height: 1.42em;
18+
color:#A7A1AE;
19+
background-color:#1F2739;
20+
}
21+
22+
h1 {
23+
font-size:3em;
24+
font-weight: 300;
25+
line-height:1em;
26+
text-align: center;
27+
color: #4DC3FA;
28+
}
29+
30+
h2 {
31+
font-size:1em;
32+
font-weight: 300;
33+
text-align: center;
34+
display: block;
35+
line-height:1em;
36+
padding-bottom: 2em;
37+
color: #FB667A;
38+
}
39+
40+
h2 a {
41+
font-weight: 700;
42+
text-transform: uppercase;
43+
color: #FB667A;
44+
text-decoration: none;
45+
}
46+
47+
.blue { color: #185875; }
48+
.yellow { color: #FFF842; }
49+
50+
.container th h1 {
51+
font-weight: bold;
52+
font-size: 1em;
53+
text-align: left;
54+
color: #185875;
55+
}
56+
57+
.container td {
58+
font-weight: normal;
59+
font-size: 1em;
60+
-webkit-box-shadow: 0 2px 2px -2px #0E1119;
61+
-moz-box-shadow: 0 2px 2px -2px #0E1119;
62+
box-shadow: 0 2px 2px -2px #0E1119;
63+
}
64+
65+
.container {
66+
text-align: left;
67+
overflow: hidden;
68+
width: 80%;
69+
margin: 0 auto;
70+
display: table;
71+
padding: 0 0 8em 0;
72+
}
73+
74+
.container td, .container th {
75+
padding-bottom: 2%;
76+
padding-top: 2%;
77+
padding-left:2%;
78+
}
79+
80+
/* Background-color of the odd rows */
81+
.container tr:nth-child(odd) {
82+
background-color: #323C50;
83+
}
84+
85+
/* Background-color of the even rows */
86+
.container tr:nth-child(even) {
87+
background-color: #2C3446;
88+
}
89+
90+
.container th {
91+
background-color: #1F2739;
92+
}
93+
94+
.container td:first-child { color: #FB667A; }
95+
96+
.container tr:hover {
97+
background-color: #464A52;
98+
-webkit-box-shadow: 0 6px 6px -6px #0E1119;
99+
-moz-box-shadow: 0 6px 6px -6px #0E1119;
100+
box-shadow: 0 6px 6px -6px #0E1119;
101+
}
102+
103+
.container td:hover {
104+
background-color: #FFF842;
105+
color: #403E10;
106+
font-weight: bold;
107+
108+
box-shadow: #7F7C21 -1px 1px, #7F7C21 -2px 2px, #7F7C21 -3px 3px, #7F7C21 -4px 4px, #7F7C21 -5px 5px, #7F7C21 -6px 6px;
109+
transform: translate3d(6px, -6px, 0);
110+
111+
transition-delay: 0s;
112+
transition-duration: 0.4s;
113+
transition-property: all;
114+
transition-timing-function: line;
115+
}
116+
117+
@media (max-width: 800px) {
118+
.container td:nth-child(4),
119+
.container th:nth-child(4) { display: none; }
120+
}

‎WebContent/css/adduserbankinfo-j-forms.css

+1,909
Large diffs are not rendered by default.

‎WebContent/css/adduserbankinfostyle.css

+665
Large diffs are not rendered by default.
+304
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,304 @@
1+
/*--
2+
Author: W3layouts
3+
Author URL: http://w3layouts.com
4+
License: Creative Commons Attribution 3.0 Unported
5+
License URL: http://creativecommons.org/licenses/by/3.0/
6+
--*/
7+
/* reset */
8+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,nav ul,nav li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
9+
article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
10+
ol,ul{list-style:none;margin:0px;padding:0px;}
11+
blockquote,q{quotes:none;}
12+
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}
13+
table{border-collapse:collapse;border-spacing:0;}
14+
/* start editing from here */
15+
a{text-decoration:none;}
16+
.txt-rt{text-align:right;}/* text align right */
17+
.txt-lt{text-align:left;}/* text align left */
18+
.txt-center{text-align:center;}/* text align center */
19+
.float-rt{float:right;}/* float right */
20+
.float-lt{float:left;}/* float left */
21+
.clear{clear:both;}/* clear float */
22+
.pos-relative{position:relative;}/* Position Relative */
23+
.pos-absolute{position:absolute;}/* Position Absolute */
24+
.vertical-base{ vertical-align:baseline;}/* vertical align baseline */
25+
.vertical-top{ vertical-align:top;}/* vertical align top */
26+
nav.vertical ul li{ display:block;}/* vertical menu */
27+
nav.horizontal ul li{ display: inline-block;}/* horizontal menu */
28+
img{max-width:100%;}
29+
/*end reset*/
30+
body {
31+
background:url('../images/bg2.jpg') no-repeat 62% 90%;
32+
background-size: cover;
33+
text-align: center;
34+
font-family: 'Open Sans', sans-serif;
35+
}
36+
37+
/*--header--*/
38+
39+
.header-w3l{
40+
margin: 75px;
41+
}
42+
.header-w3l h1{
43+
font-size:3em;
44+
color:white;
45+
letter-spacing: 6px;
46+
font-weight: 300;
47+
font-family: 'Open Sans', sans-serif;
48+
text-transform: uppercase;
49+
}
50+
/*--//header--*/
51+
52+
/*--main--*/
53+
54+
.main-content-agile {
55+
margin: 145px 0px;
56+
}
57+
.sub-main-w3 input[type="text"],.sub-main-w3 input[type="password"] {
58+
outline: none;
59+
font-size: 1.1em;
60+
padding: 20px 10px 20px 10px;
61+
border: none;
62+
margin: 0 0 15px 0;
63+
font-family: 'Open Sans', sans-serif;
64+
background: none;
65+
border-bottom: 2px solid #eee;
66+
width: 20%;
67+
color: white;
68+
font-weight: 600;
69+
}
70+
.sub-main-w3 input[type="submit"] {
71+
background: url('../images/arrow.png') no-repeat 30% 45%;
72+
height: 67px;
73+
outline: none;
74+
margin-top: 38px;
75+
border-radius: 50%;
76+
cursor: pointer;
77+
border: 2px solid #fff;
78+
width: 67px;
79+
}
80+
/*--//main--*/
81+
82+
/*--footer--*/
83+
.footer {
84+
padding: 2.3em 0;
85+
}
86+
.footer p {
87+
font-size: .9em;
88+
color: white;
89+
}
90+
.footer p a {
91+
color: #d20962;
92+
}
93+
.footer p a:hover {
94+
text-decoration:underline;
95+
}
96+
/*--//footer--*/
97+
98+
/*--placeholder-color--*/
99+
100+
::-webkit-input-placeholder{
101+
color:rgba(255, 255, 255, 0.65);
102+
}
103+
104+
:-moz-placeholder { /* Firefox 18- */
105+
color: rgba(255, 255, 255, 0.65);
106+
}
107+
108+
::-moz-placeholder { /* Firefox 19+ */
109+
color: rgba(255, 255, 255, 0.65);
110+
}
111+
112+
:-ms-input-placeholder {
113+
color: rgba(255, 255, 255, 0.65);
114+
}
115+
/*--//placeholder-color--*/
116+
117+
/*--responsive--*/
118+
119+
@media(max-width:1440px){
120+
121+
}
122+
@media (max-width:1366px){
123+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"]{
124+
width:22%;
125+
}
126+
}
127+
@media (max-width:1280px){
128+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
129+
width:23%;
130+
}
131+
}
132+
@media (max-width:1024px){
133+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"]{
134+
width:28%;
135+
}
136+
}
137+
@media (max-width:991px){
138+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
139+
width:29%;
140+
}
141+
}
142+
@media(max-width:800px){
143+
.header-w3l h1 {
144+
font-size: 39px;
145+
}
146+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
147+
width:34%;
148+
}
149+
}
150+
@media(max-width:768px){
151+
.header-w3l h1 {
152+
font-size: 36px;
153+
}
154+
.main-content-agile {
155+
margin: 226px 0px;
156+
}
157+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
158+
width:36%;
159+
}
160+
}
161+
@media(max-width:736px){
162+
.header-w3l h1 {
163+
font-size: 34px;
164+
}
165+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
166+
width:40%;
167+
font-size: 0.9em;
168+
}
169+
.main-content-agile {
170+
margin: 181px 0px;
171+
}
172+
}
173+
@media(max-width:667px){
174+
.header-w3l h1 {
175+
font-size: 28px;
176+
}
177+
.main-content-agile {
178+
margin: 124px 0px;
179+
}
180+
.header-w3l{
181+
margin: 38px;
182+
}
183+
}
184+
@media(max-width:640px){
185+
.header-w3l h1 {
186+
font-size: 26px;
187+
}
188+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
189+
width:42%;
190+
font-size: 0.9em;
191+
}
192+
}
193+
@media(max-width:600px){
194+
.header-w3l h1 {
195+
font-size: 27px;
196+
}
197+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
198+
width:46%;
199+
font-size: 0.9em;
200+
}
201+
.header-w3l {
202+
margin: 52px;
203+
}
204+
}
205+
@media(max-width:568px){
206+
.header-w3l h1 {
207+
font-size: 30px;
208+
}
209+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
210+
width:48%;
211+
font-size: 0.9em;
212+
}
213+
.header-w3l {
214+
margin: 24px 0px;
215+
}
216+
}
217+
@media(max-width:480px){
218+
.header-w3l{
219+
margin:48px 0px;
220+
}
221+
.header-w3l h1 {
222+
font-size: 21px;
223+
letter-spacing: 3px;
224+
font-weight: 400;
225+
line-height: 0.7em;
226+
}
227+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
228+
width:56%;
229+
font-size: 0.9em;
230+
}
231+
.footer p{
232+
line-height: 28px;
233+
}
234+
}
235+
@media(max-width:414px){
236+
.header-w3l h1 {
237+
font-size: 28px;
238+
line-height: 0.7em;
239+
letter-spacing: 1px;
240+
}
241+
.main-content-agile {
242+
margin: 84px 0px;
243+
}
244+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
245+
width:60%;
246+
font-size: 0.9em;
247+
}
248+
.footer p{
249+
line-height: 28px;
250+
}
251+
.footer {
252+
padding: 4.3em 0;
253+
}
254+
}
255+
@media(max-width:384px){
256+
.header-w3l h1 {
257+
font-size: 24px;
258+
}
259+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
260+
width:64%;
261+
font-size: 0.9em;
262+
}
263+
.footer p{
264+
line-height: 28px;
265+
}
266+
}
267+
@media(max-width:375px){
268+
.footer p{
269+
line-height: 28px;
270+
}
271+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
272+
width:68%;
273+
font-size: 0.9em;
274+
}
275+
.footer {
276+
padding: 3em 0 1em;
277+
}
278+
}
279+
@media(max-width:320px){
280+
.header-w3l {
281+
margin: 31px 0px;
282+
}
283+
.header-w3l h1 {
284+
font-size: 18px;
285+
font-weight: 500;
286+
letter-spacing: 3px;
287+
line-height: 1.7em;
288+
}
289+
.sub-main-w3 input[type="password"],.sub-main-w3 input[type="text"] {
290+
width:68%;
291+
font-size: 0.9em;
292+
}
293+
.footer p{
294+
line-height: 28px;
295+
font-size: 0.9em;
296+
}
297+
.main-content-agile {
298+
margin: 55px 0px;
299+
}
300+
.footer {
301+
padding: 0em 0 1.1em;
302+
}
303+
}
304+
/*--//responsive--*/

‎WebContent/css/button.css

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
a{
2+
text-decoration:none;
3+
color:#cc0000;
4+
}
5+
a.button,div.container{
6+
float:left;
7+
}
8+
a.button{
9+
background-color: #8080ff;
10+
border:1px solid #660000;
11+
border-radius:5px;
12+
color:#fff;
13+
margin-right:10px;
14+
padding:10px 10px 10px 10px;
15+
}

‎WebContent/deleteuserbankinfo.jsp

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
st.setString(2, bname);
1717
st.executeUpdate();
1818
con.close();
19+
Thread.sleep(5000);
1920
response.sendRedirect("userhome.jsp");
2021
}catch(Exception e){
2122
e.printStackTrace();

‎WebContent/editbankdetails.jsp

+95-55
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
3131
if(rs.next()){
3232
setvalue(rs);
33+
ahname=rs.getString(5);
34+
System.out.println(ahname);
3335
}
3436
} catch(Exception e){
3537
System.out.println("Error in editbankdetails");
@@ -38,23 +40,37 @@
3840
3941
%>
4042

41-
<form action="editbankdetailsprocess.jsp" method=get> <!-- Should be post -->
42-
<h2><b>Edit Your Account Details</b></h2>
43-
44-
<table align="center">
45-
46-
<tr>
47-
<td><h3>Customer ID</h3></td>
48-
<td>
49-
<input type="text" name="cid" value="<%=cid%>">
50-
</td>
51-
</tr>
43+
<html lang="en">
44+
<head>
45+
<title>Add Bank Details</title>
46+
<meta name="viewport" content="width=device-width, initial-scale=1">
47+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
48+
<meta name="keywords" content="Classy Job Application Form Widget Responsive, Login form web template,Flat Pricing tables,Flat Drop downs Sign up Web Templates, Flat Web Templates, Login signup Responsive web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
49+
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
50+
<!-- font files -->
51+
<link href='//fonts.googleapis.com/css?family=Lato:400,100,100italic,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
52+
<!-- /font files -->
53+
<!-- css files -->
54+
<link href="css/adduserbankinfostyle.css" rel='stylesheet' type='text/css' media="all" />
55+
<link rel="stylesheet" href="css/adduserbankinfo-j-forms.css">
56+
57+
<!-- /css files -->
58+
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
5259

53-
<tr>
54-
<td><h3>Select Bank</h3></td>
55-
<td>
56-
<select name="bankdes" >
57-
<option>- Please select a bank -</option> <!-- User should see the last submitted value of bank i.e. bname -->
60+
</head>
61+
<body>
62+
<h1 class="header-w3ls">Edit Bank Details</h1>
63+
<div class="content-w3ls">
64+
<div class="form-w3ls">
65+
<form action="editbankdetailsprocess.jsp" method="post">
66+
<div class="content-wthree1">
67+
<div class="grid-agileits1">
68+
69+
70+
<div class="form-control">
71+
<div class="main-row">
72+
<label class="header">Bank <span>*</span></label>
73+
<select name="bankdes" >
5874
<%
5975
Connection con = DbCon.dbCon();
6076
@@ -75,45 +91,69 @@
7591
><%=rs1.getString(2)%></option>
7692
<%}%>
7793
</select>
78-
</td>
79-
</tr>
94+
<i></i>
95+
</div>
96+
</div>
97+
98+
<div class="form-control">
99+
<label class="header">Customer ID <span>*</span></label>
100+
<input type="text" name="cid" placeholder="Name" title="Please enter your Customer ID" required value="<%=cid%>">
101+
</div>
102+
103+
<div class="form-control">
104+
<label class="header">Account Number <span>*</span></label>
105+
<input type="text" name="anum" placeholder="Account Number" title="Please enter a Valid Account Number" required value=<%=accno%>>
106+
</div>
107+
<div class="form-control">
108+
<label class="header">Account Holder Name <span>*</span></label>
109+
<input type="text" name="ahname" placeholder="Account Holder" title="Please enter Account Holder Name" required value='<%=ahname%>'>
110+
</div>
111+
<div class="form-control">
112+
<label class="header">Phone <span>*</span></label>
113+
<input type="text" name="mnum" placeholder="Phone" title="Please enter your Phone No" required value=<%=mnum%>>
114+
</div>
115+
</div>
116+
</div>
117+
118+
<div class="content-wthree2">
119+
<div class="grid-w3layouts1">
120+
<div class="w3-agile1">
121+
<label class="rating">Change Account Type <span>*</span></label>
122+
<ul>
123+
<li>
124+
<input type="radio" id="a-option" name="atype" value="Current Account">
125+
<label for="a-option">Current Account </label>
126+
<div class="check"></div>
127+
</li>
128+
<li>
129+
<input type="radio" id="b-option" name="atype" value="Savings Account">
130+
<label for="b-option">Savings Account</label>
131+
<div class="check"><div class="inside"></div></div>
132+
</li>
133+
<li>
134+
<input type="radio" id="c-option" name="atype" value="Others">
135+
<label for="c-option">Others</label>
136+
<div class="check"><div class="inside"></div></div>
137+
</li>
138+
<div class="clear"></div>
139+
</ul>
140+
</div>
141+
142+
</div>
143+
144+
<div class="clear"></div>
145+
</div>
146+
147+
<div class="wthreesubmitaits">
148+
<input type="submit" name="submit" value="Save">
149+
</div>
150+
</form>
151+
</div>
152+
153+
</div>
80154

155+
<p class="copyright">© 2017 Multibank All Rights Reserved | Design by <a href="https://w3layouts.com/" target="_blank">W3layouts</a></p>
81156

82-
<tr>
83-
<td><h3>Account Number</h3></td>
84-
<td>
85-
<input type="text" name="anum" value=<%=accno%>>
86-
</td>
87-
</tr>
88157

89-
<tr>
90-
<td><h3>Account Holder Name</h3></td>
91-
<td>
92-
<input type="text" name="ahname" value=<%=ahname%>>
93-
</td>
94-
</tr>
95-
96-
<tr>
97-
<td><h3>Mobile Number</h3></td>
98-
<td>
99-
<input type="text" name="mnum" value=<%=mnum%>>
100-
</td>
101-
</tr>
102-
103-
<tr>
104-
<td><h3>Account Type</h3></td>
105-
<td>
106-
<SELECT name="atype">
107-
<option>Current Account</option>
108-
<option>Savings Account</option>
109-
<option>Others</option>
110-
</SELECT>
111-
</td>
112-
</tr>
113-
114-
</table>
115-
116-
<input type=submit value ="Confirm Edit">&nbsp;&nbsp;&nbsp;&nbsp; <!-- To perform the edit you must enter the profile password -->
117-
<input type=button name=back value="back" onClick="window.location='userhome.jsp'">&nbsp;&nbsp;&nbsp;&nbsp;
118-
<input type=reset value="reset">
119-
</form>
158+
</body>
159+
</html>

‎WebContent/editbankdetailsprocess.jsp

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
st.setString(8,bname);
4747
st.executeUpdate();
4848
con.close();
49-
response.sendRedirect("userhome.jsp");
49+
Thread.sleep(5000);
50+
response.sendRedirect("addbankstatus.jsp");
5051
}catch(Exception e){
5152
e.printStackTrace();
5253
}

‎WebContent/images/1.jpg

448 KB
Loading

‎WebContent/images/arrow.png

3.31 KB
Loading

‎WebContent/images/bg2.jpg

85.3 KB
Loading

‎WebContent/js/jquery-2.1.4.min.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎WebContent/logo-M(converted).png

10.8 KB
Loading

‎WebContent/transactionreport.jsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130

131131
<BR>
132132
<input type="submit" value="Print Receipt">&nbsp;&nbsp;&nbsp;&nbsp;
133-
<input type="button" name=back value="Home" onClick="window.location='userhome.jsp'">&nbsp;&nbsp;&nbsp;&nbsp;
133+
<input type="button" name=back value="Home" onClick="window.location='usertransactionhome.jsp'">&nbsp;&nbsp;&nbsp;&nbsp;
134134

135135
</form>
136136

‎WebContent/transfertosamebank.jsp ‎WebContent/transferamount.jsp

+26-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<%@ page import ="java.sql.*,com.jdbc.*" %>
2+
13
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
24
pageEncoding="ISO-8859-1"%>
35
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
@@ -11,15 +13,35 @@
1113

1214
<center>
1315

14-
<form action=transfertosamebanksummary.jsp name="f1" method="get">
16+
<form action=transferamountsummary.jsp name="f1" method="get">
1517

1618
<h2>Enter Beneficiary Account Holder Details</h2>
1719

1820
<table cellspacing="3">
1921

2022
<tr>
2123
<td>
22-
<h3>Beneficiary Name</h3>
24+
<h3>Bank</h3>
25+
</td>
26+
<tr>
27+
<td>
28+
<select name="beneficiarybankdes">
29+
<option value="">- Please select a bank -</option>
30+
<%
31+
Connection con = DbCon.dbCon();
32+
PreparedStatement st = con.prepareStatement("select * from bankinfo");
33+
ResultSet rs = st.executeQuery();
34+
while(rs.next()){
35+
%>
36+
<option><%=rs.getString(2)%></option>
37+
<%}%>
38+
</select>
39+
</td>
40+
</tr>
41+
42+
<tr>
43+
<td>
44+
<h3>Name</h3>
2345
</td>
2446
<td>
2547
<input type="text" name="beneficiaryname">
@@ -28,7 +50,7 @@
2850

2951
<tr>
3052
<td>
31-
<h3>Beneficiary Account Number</h3>
53+
<h3>Account Number</h3>
3254
</td>
3355
<td>
3456
<input type="text" name="beneficiaryaccountnumber">
@@ -48,7 +70,7 @@
4870

4971
<BR>
5072

51-
<input type="submit" value="Click Next To Continue">&nbsp;&nbsp;&nbsp;&nbsp;
73+
<input type="submit" value="Next">&nbsp;&nbsp;&nbsp;&nbsp;
5274
<input type="button" name=back value="back" onClick="window.location='userhome.jsp'">&nbsp;&nbsp;&nbsp;&nbsp;
5375
<input type="reset" value="reset">
5476
</form>

‎WebContent/transferamounthome.jsp

-20
This file was deleted.

‎WebContent/transfertosamebankprocess.jsp ‎WebContent/transferamountprocess.jsp

+68-64
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,17 @@ public String generateTransID() {
5353
5454
String unqid = session.getAttribute("unqid").toString();
5555
System.out.println(unqid);
56-
String bname = session.getAttribute("bname").toString();
57-
System.out.println(bname);
5856
59-
String bankID = session.getAttribute("bankID").toString();
57+
String latestBankID = session.getAttribute("latestBankID").toString();
6058
6159
String tpassword = request.getParameter("password");
6260
System.out.println(tpassword);
6361
64-
PreparedStatement st2 = con.prepareStatement("SELECT * FROM USERBANKINFO WHERE ((UNQID=? AND BANKID=?) AND TPASS=?)"); //Verify Tpass here
65-
st2.setString(1, unqid);
66-
st2.setString(2, bankID);
67-
st2.setString(3, tpassword);
68-
rs=st2.executeQuery();
62+
PreparedStatement st1 = con.prepareStatement("SELECT * FROM USERBANKINFO WHERE ((UNQID=? AND BANKID=?) AND TPASS=?)"); //Verify Tpass here
63+
st1.setString(1, unqid);
64+
st1.setString(2, latestBankID);
65+
st1.setString(3, tpassword);
66+
rs=st1.executeQuery();
6967
7068
if(rs.next()) {
7169
@@ -75,59 +73,65 @@ public String generateTransID() {
7573
System.out.println(beneficiaryaccountnumber);
7674
Double amount = Double.parseDouble(session.getAttribute("amount").toString());
7775
System.out.println(amount);
76+
String beneficiarybankname = session.getAttribute("beneficiarybankname").toString();
77+
System.out.println(beneficiarybankname);
78+
String remitterBankName = session.getAttribute("remitterBankName").toString();
79+
System.out.println(remitterBankName);
80+
81+
PreparedStatement st2 = con.prepareStatement("SELECT BAL FROM " +remitterBankName +"INFO WHERE ACCNO=?");
82+
st2.setString(1, session.getAttribute("accno").toString());
83+
rs1=st2.executeQuery();
84+
rs1.next();
85+
System.out.println("STMT2 Exec");
7886
79-
PreparedStatement st3 = con.prepareStatement("SELECT BAL FROM "+bname +"INFO WHERE ACCNO=?");
80-
st3.setString(1, rs.getString(4));
81-
rs4=st3.executeQuery();
82-
rs4.next();
83-
84-
Double yourBalance = Double.parseDouble(rs4.getString(1)); //Retrieving Remitter Current Balance
87+
Double yourBalance = Double.parseDouble(rs1.getString(1)); //Retrieving Remitter Current Balance
8588
86-
PreparedStatement st4 = con.prepareStatement("SELECT * FROM " +bname +"INFO WHERE AHNAME=? AND ACCNO=?");
87-
st4.setString(1, beneficiaryname);
88-
st4.setString(2, beneficiaryaccountnumber);
89-
rs1=st4.executeQuery();
90-
rs1.next();
89+
PreparedStatement st3 = con.prepareStatement("SELECT * FROM " +beneficiarybankname +"INFO WHERE AHNAME=? AND ACCNO=?");
90+
st3.setString(1, beneficiaryname);
91+
st3.setString(2, beneficiaryaccountnumber);
92+
rs2=st3.executeQuery();
93+
rs2.next();
94+
System.out.println("STMT3 Exec");
9195
92-
Double beneficiaryBalance = Double.parseDouble(rs1.getString(6)); //Retrieving Beneficiary Current Balance
96+
Double beneficiaryBalance = Double.parseDouble(rs2.getString(6)); //Retrieving Beneficiary Current Balance
9397
9498
9599
96100
beneficiaryBalance = beneficiaryBalance + amount;
97101
yourBalance = yourBalance - amount;
98102
99-
PreparedStatement st5 = con.prepareStatement("UPDATE " +bname +"INFO SET BAL=? WHERE AHNAME=? AND ACCNO=?");
100-
st5.setString(1, beneficiaryBalance.toString());
101-
st5.setString(2, beneficiaryname);
102-
st5.setString(3, beneficiaryaccountnumber);
103-
st5.executeUpdate();
103+
PreparedStatement st4 = con.prepareStatement("UPDATE " +beneficiarybankname +"INFO SET BAL=? WHERE AHNAME=? AND ACCNO=?");
104+
st4.setString(1, beneficiaryBalance.toString());
105+
st4.setString(2, beneficiaryname);
106+
st4.setString(3, beneficiaryaccountnumber);
107+
st4.executeUpdate();
104108
105-
PreparedStatement st6 = con.prepareStatement("UPDATE " +bname +"INFO SET BAL=? WHERE AHNAME=? AND ACCNO=?");
106-
st6.setString(1, yourBalance.toString());
107-
st6.setString(2, rs.getString(5));
108-
st6.setString(3, rs.getString(4));
109-
st6.executeUpdate();
109+
PreparedStatement st5 = con.prepareStatement("UPDATE " +remitterBankName +"INFO SET BAL=? WHERE AHNAME=? AND ACCNO=?");
110+
st5.setString(1, yourBalance.toString());
111+
st5.setString(2, rs.getString(5));
112+
st5.setString(3, rs.getString(4));
113+
st5.executeUpdate();
110114
111115
/* Timestamp timestamp = new Timestamp(System.currentTimeMillis());
112116
System.out.println(timestamp);
113117
114118
//format timestamp
115119
System.out.println(sdf.format(timestamp)); */
116120
117-
PreparedStatement st7 = con.prepareStatement("SELECT MOBILENO,BAL FROM " +bname +"INFO WHERE ACCNO=?"); //Fetching MobileNo. Of User From SAMEINFO
118-
st7.setString(1, rs.getString(4));
119-
rs2=st7.executeQuery();
120-
rs2.next();
121-
122-
PreparedStatement st8 = con.prepareStatement("SELECT MOBILENO,BAL FROM " +bname +"INFO WHERE ACCNO=?"); //Fetching MobileNo. Of beneficiary From SAMEINFO
123-
st8.setString(1, beneficiaryaccountnumber);
124-
rs3=st8.executeQuery();
121+
PreparedStatement st6 = con.prepareStatement("SELECT MOBILENO,BAL FROM " +remitterBankName +"INFO WHERE ACCNO=?"); //Fetching MobileNo. Of User From SAMEINFO
122+
st6.setString(1, rs.getString(4));
123+
rs3=st6.executeQuery();
125124
rs3.next();
126125
126+
PreparedStatement st7 = con.prepareStatement("SELECT MOBILENO,BAL FROM " +beneficiarybankname +"INFO WHERE ACCNO=?"); //Fetching MobileNo. Of beneficiary From SAMEINFO
127+
st7.setString(1, beneficiaryaccountnumber);
128+
rs4=st7.executeQuery();
129+
rs4.next();
130+
127131
String transID = generateTransID();
128132
129-
PreparedStatement st9 = con.prepareStatement("SELECT TRANSACTIONID FROM TRANSACTIONINFO",ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
130-
ResultSet r = st9.executeQuery();
133+
PreparedStatement st8 = con.prepareStatement("SELECT TRANSACTIONID FROM TRANSACTIONINFO",ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
134+
ResultSet r = st8.executeQuery();
131135
Comparison:
132136
while(r.next()) {
133137
if(transID.equals(r.getString(1))) {
@@ -139,50 +143,50 @@ public String generateTransID() {
139143
System.out.println("Updated Selected and next is insert");
140144
status = "successful";
141145
142-
PreparedStatement st10 = con.prepareStatement("INSERT INTO TRANSACTIONINFO VALUES(?,?,?,current_timestamp,?,?,?,?,?,?,?,?,?,?,?)"); //I wouldn't bother retrieving the current time in Java, just let the database do the job.
143-
st10.setString(1, transID);
146+
PreparedStatement st9 = con.prepareStatement("INSERT INTO TRANSACTIONINFO VALUES(?,?,?,current_timestamp,?,?,?,?,?,?,?,?,?,?,?)"); //I wouldn't bother retrieving the current time in Java, just let the database do the job.
147+
st9.setString(1, transID);
144148
System.out.println(transID);
145149
146-
st10.setString(2, unqid);
150+
st9.setString(2, unqid);
147151
System.out.println(unqid);
148152
149-
st10.setString(3, status);
153+
st9.setString(3, status);
150154
System.out.println(status);
151155
152-
st10.setString(4, amount.toString());
156+
st9.setString(4, amount.toString());
153157
System.out.println(amount.toString());
154158
155-
st10.setString(5, rs.getString(5));
156-
System.out.println(rs.getString(5));
159+
st9.setString(5, session.getAttribute("ahname").toString());
160+
System.out.println(session.getAttribute("ahname").toString());
157161
158-
st10.setString(6, bname);
159-
System.out.println(bname);
162+
st9.setString(6, remitterBankName);
163+
System.out.println(remitterBankName);
160164
161-
st10.setString(7, rs.getString(4));
162-
System.out.println(rs.getString(4));
165+
st9.setString(7, session.getAttribute("accno").toString());
166+
System.out.println(session.getAttribute("accno").toString());
163167
164-
st10.setString(8, rs2.getString(1));
165-
System.out.println(rs2.getString(1));
168+
st9.setString(8, rs3.getString(1));
169+
System.out.println(rs3.getString(1));
166170
167-
st10.setString(9, rs2.getString(2));
168-
System.out.println(rs2.getString(2));
171+
st9.setString(9, rs3.getString(2));
172+
System.out.println(rs3.getString(2));
169173
170-
st10.setString(10, beneficiaryname);
174+
st9.setString(10, beneficiaryname);
171175
System.out.println(beneficiaryname);
172176
173-
st10.setString(11, bname);
174-
System.out.println(bname);
177+
st9.setString(11, beneficiarybankname);
178+
System.out.println(beneficiarybankname);
175179
176-
st10.setString(12, beneficiaryaccountnumber);
180+
st9.setString(12, beneficiaryaccountnumber);
177181
System.out.println(beneficiaryaccountnumber);
178182
179-
st10.setString(13, rs3.getString(1));
180-
System.out.println(rs3.getString(1));
183+
st9.setString(13, rs4.getString(1));
184+
System.out.println(rs4.getString(1));
181185
182-
st10.setString(14, rs3.getString(2));
183-
System.out.println(rs3.getString(2));
186+
st9.setString(14, rs4.getString(2));
187+
System.out.println(rs4.getString(2));
184188
185-
st10.executeUpdate();
189+
st9.executeUpdate();
186190
187191
System.out.println("Inserted");
188192

‎WebContent/transfertosamebanksummary.jsp ‎WebContent/transferamountsummary.jsp

+44-25
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,59 @@
22

33
<%
44
try{
5-
ResultSet rs,rs1 = null;
5+
ResultSet rs,rs1,rs2,rs3 = null;
66
Connection con=DbCon.dbCon();
77
88
String unqid = session.getAttribute("unqid").toString();
99
System.out.println(unqid);
10-
String bname = session.getAttribute("bname").toString();
11-
System.out.println(bname);
1210
13-
PreparedStatement st1 = con.prepareStatement("SELECT BANKID FROM BANKINFO WHERE BANKNAME=?"); //Executed to fetch the bankid
14-
st1.setString(1, bname);
15-
rs=st1.executeQuery();
16-
rs.next();
17-
String bankID = rs.getString(1);
11+
String beneficiarybankdes = request.getParameter("beneficiarybankdes");
12+
System.out.println(beneficiarybankdes);
1813
1914
String beneficiaryname = request.getParameter("beneficiaryname");
2015
String beneficiaryaccountnumber = request.getParameter("beneficiaryaccountnumber");
2116
Double amount = Double.parseDouble(request.getParameter("amount"));
2217
23-
PreparedStatement st2 = con.prepareStatement("SELECT CID FROM " +bname +"INFO WHERE AHNAME=? AND ACCNO=?"); //executed to check whether beneficiary exists in that bank or not.
18+
PreparedStatement st1 = con.prepareStatement("SELECT BANKNAME FROM BANKINFO WHERE BANKDESCRIPTION=?");
19+
st1.setString(1, beneficiarybankdes);
20+
rs=st1.executeQuery();
21+
rs.next();
22+
String beneficiarybankname = rs.getString(1);
23+
System.out.println(beneficiarybankname);
24+
25+
PreparedStatement st2 = con.prepareStatement("SELECT CID FROM " +beneficiarybankname +"INFO WHERE AHNAME=? AND ACCNO=?"); //executed to check whether beneficiary exists in that bank or not.
2426
st2.setString(1, beneficiaryname);
2527
st2.setString(2, beneficiaryaccountnumber);
26-
rs=st2.executeQuery();
28+
rs1=st2.executeQuery();
2729
28-
if (rs.next()) { //If exists then print summary
30+
if (rs1.next()) { //If exists then print summary
2931
3032
session.setAttribute("beneficiaryname", beneficiaryname); //Attributes sent via sessoin to the process.
3133
session.setAttribute("beneficiaryaccountnumber", beneficiaryaccountnumber);
3234
session.setAttribute("amount", amount);
33-
session.setAttribute("bankID", bankID);
35+
session.setAttribute("beneficiarybankname", beneficiarybankname);
36+
session.setAttribute("beneficiarybankdes", beneficiarybankdes);
3437
35-
PreparedStatement st3 = con.prepareStatement("SELECT * FROM USERBANKINFO WHERE UNQID=? AND BANKID=?");
36-
st3.setString(1, unqid);
37-
st3.setString(2, bankID);
38-
rs=st3.executeQuery();
39-
rs.next();
38+
PreparedStatement st3 = con.prepareStatement("SELECT * FROM BANKINFO WHERE BANKID=?");
39+
st3.setString(1, session.getAttribute("latestBankID").toString());
40+
rs2=st3.executeQuery();
41+
rs2.next();
42+
String remitterBankName = rs2.getString(3);
43+
System.out.println(remitterBankName);
44+
session.setAttribute("remitterBankName", remitterBankName);
4045
41-
PreparedStatement st4 = con.prepareStatement("SELECT BAL FROM "+bname +"INFO WHERE ACCNO=?");
42-
st4.setString(1, rs.getString(4));
43-
rs1=st4.executeQuery();
44-
rs1.next();
46+
PreparedStatement st4 = con.prepareStatement("SELECT BAL FROM " +remitterBankName +"INFO WHERE ACCNO=?");
47+
st4.setString(1, session.getAttribute("accno").toString());
48+
rs3=st4.executeQuery();
49+
rs3.next();
4550
46-
Double yourBalance = Double.parseDouble(rs1.getString(1));
51+
Double yourBalance = Double.parseDouble(rs3.getString(1));
4752
4853
%>
4954

5055
<center>
5156

52-
<form action=transfertosamebankprocess.jsp name="f1" method="get">
57+
<form action="transferamountprocess.jsp" name="f1" method="get">
5358

5459
<h2>Overview</h2>
5560

@@ -62,14 +67,21 @@
6267
<tr>
6368
<td>Name</td>
6469
<td>
65-
<%=rs.getString(5) %>
70+
<%=session.getAttribute("ahname") %>
71+
</td>
72+
</tr>
73+
74+
<tr>
75+
<td>Bank</td>
76+
<td>
77+
<%=rs2.getString(2) %>
6678
</td>
6779
</tr>
6880

6981
<tr>
7082
<td>Account Number</td>
7183
<td>
72-
<%=rs.getString(4) %>
84+
<%=session.getAttribute("accno") %>
7385
</td>
7486
</tr>
7587

@@ -91,6 +103,13 @@
91103
</td>
92104
</tr>
93105

106+
<tr>
107+
<td>Bank</td>
108+
<td>
109+
<%=session.getAttribute("beneficiarybankdes") %>
110+
</td>
111+
</tr>
112+
94113
<tr>
95114
<td>Account Number</td>
96115
<td>

‎WebContent/userhome.jsp

+30-13
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,43 @@
44

55
<a href="adduserbankinfo.jsp">Add bank</a>
66

7+
<br>
8+
<br>
79
<br>
810
<br>
911

1012
<a href="addbankstatus.jsp">Check Add Bank Status</a>
1113

12-
13-
<br />
14-
<br />
15-
<br />
16-
<br />
17-
1814
<!--TODO: If a user has atleast one verified account details, then make a link Payments/Transfer -->
15+
<%
16+
try {
17+
18+
Connection con = DbCon.dbCon();
19+
20+
String unqid=session.getAttribute("unqid").toString();
21+
22+
PreparedStatement st1 = con.prepareStatement("SELECT * FROM USERBANKINFO WHERE UNQID=?");
23+
st1.setString(1, unqid);
24+
25+
ResultSet rs = st1.executeQuery();
26+
27+
if (rs.next()) {
28+
%>
29+
30+
<br />
31+
<br />
32+
<br />
33+
<br />
34+
<a href="usertransactionhome.jsp">Payments/Transfer</a>
35+
36+
<% }
37+
38+
} catch(Exception e) {
39+
System.out.println(e);
40+
}
1941
20-
21-
22-
<br />
23-
<br />
24-
<br />
25-
<br />
26-
<a href="switchbank.jsp">Switch Bank Accounts</a>
42+
43+
%>
2744

2845

2946
<br />

‎WebContent/userlogin.jsp

+119-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,129 @@
1-
<html>
1+
<html lang="en">
22
<head>
3+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>Login form</title>
7+
<!-- CORE CSS-->
8+
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/css/materialize.min.css">
310

11+
<style type="text/css">
12+
html,
13+
body {
14+
height: 100%;
15+
}
16+
html {
17+
display: table;
18+
margin: auto;
19+
}
20+
body {
21+
display: table-cell;
22+
vertical-align: middle;
23+
}
24+
.margin {
25+
margin: 0 !important;
26+
}
27+
</style>
28+
429
</head>
5-
<body>
630

7-
<form action="userloginprocess.jsp">
31+
<body class="cyan">
832

9-
<table class="table">
10-
<tr><td>UserName :</td><td><input type="text" name="username"></td></tr>
11-
<tr><td>Login Password :</td><td><input type="password" name="loginpassword"></td></tr>
12-
<tr><td></td><td><input type="submit" value="Login"></td></tr>
1333

14-
</table>
15-
</form>
34+
<div id="login-page" class="row">
35+
<div class="col s12 z-depth-6 card-panel">
36+
<form class="login-form" action="userloginprocess.jsp">
37+
<div class="row">
38+
<div class="input-field col s12 center">
39+
<img src="logo-M(converted).png" alt="" class="responsive-img valign profile-image-login">
40+
<p class="center login-form-text">STAY CONNECTED TO ALL YOUR ACCOUNTS AT ONE PLACE</p>
41+
</div>
42+
</div>
43+
<div class="row margin">
44+
<div class="input-field col s12">
45+
<i class="mdi-social-person-outline prefix"></i>
46+
<input name="username" type="text" class="validate" placeholder="Username">
47+
<!-- <input class="validate" id="email" type="email"> -->
48+
<!-- <label for="email" data-error="wrong" data-success="right" class="center-align">Email</label> -->
49+
</div>
50+
</div>
51+
<div class="row margin">
52+
<div class="input-field col s12">
53+
<i class="mdi-action-lock-outline prefix"></i>
54+
<input name="loginpassword" type="password" placeholder="Password">
55+
<!-- <label for="password">Password</label> -->
56+
</div>
57+
</div>
58+
<div class="row">
59+
<div class="input-field col s12 m12 l12 login-text">
60+
<input type="checkbox" id="remember-me" />
61+
<label for="remember-me">Remember me</label> <!-- Implementation needed? -->
62+
</div>
63+
</div>
64+
<div class="row">
65+
<div class="input-field col s12">
66+
<!-- <a href="login.html" class="btn waves-effect waves-light col s12">Login</a> -->
67+
<button type="submit" class="btn waves-effect waves-light col s12">Login</button>
68+
</div>
69+
</div>
70+
<div class="row">
71+
<div class="input-field col s6 m6 l6">
72+
<p class="margin medium-small"><a href="usersignup.jsp">Register Now!</a></p>
73+
</div>
74+
<div class="input-field col s6 m6 l6">
75+
<p class="margin right-align medium-small"><a href="forgot-password.html">Forgot password?</a></p>
76+
</div>
77+
</div>
1678

17-
<a href="usersignup.jsp">Not a User! Click here to Sign Up for a new account!</a>
79+
</form>
80+
</div>
81+
</div>
1882

83+
84+
<!-- <center>
85+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
86+
Post Page - Responsive
87+
<ins class="adsbygoogle"
88+
style="display:inline-block;width:300px;height:250px"
89+
data-ad-client="ca-pub-5104998679826243"
90+
data-ad-slot="3470684978"></ins>
91+
<script>
92+
(adsbygoogle = window.adsbygoogle || []).push({});
93+
</script>
94+
</center> -->
95+
96+
97+
98+
<!-- ================================================
99+
Scripts
100+
================================================ -->
101+
102+
<!-- jQuery Library -->
103+
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
104+
<!--materialize js-->
105+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/js/materialize.min.js"></script>
106+
107+
<script>
108+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
109+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
110+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
111+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
112+
113+
ga('create', 'UA-27820211-3', 'auto');
114+
ga('send', 'pageview');
115+
116+
</script><script src="//load.sumome.com/" data-sumo-site-id="1cf2c3d548b156a57050bff06ee37284c67d0884b086bebd8e957ca1c34e99a1" async="async"></script>
117+
118+
119+
<footer class="page-footer">
120+
<div class="footer-copyright">
121+
<div class="container">
122+
© 2017 Multibanking.info
123+
<a class="grey-text text-lighten-4 right" href="authors.jsp">About Us</a> <!--TODO: Implement Authors page. -->
124+
</div>
125+
</div>
126+
</footer>
19127
</body>
128+
20129
</html>

‎WebContent/userloginprocess.jsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
}
2626
%>
2727

28-
//TODO: Set the current/latest selected bank
28+
<!-- //TODO: Set the current/latest selected bank -->

‎WebContent/usersignup.jsp

+128-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,130 @@
1-
<form action="usersignupprocess.jsp">
1+
<html lang="en">
2+
<head>
3+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>Signup / Registration form</title>
7+
<!-- CORE CSS-->
8+
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/css/materialize.min.css">
210

3-
<table class="table">
4-
<tr><td>Enter UserName :</td><td><input type="text" name="username"></td></tr>
5-
<tr><td>Set Login Password :</td><td><input type="password" name="loginpassword"></td></tr>
6-
<tr><td>Set Profile Password :</td><td><input type="password" name="profilepassword"></td></tr>
7-
<tr><td></td><td><input type="submit" value="Signup"></td></tr>
11+
<style type="text/css">
12+
html,
13+
body {
14+
height: 100%;
15+
}
16+
html {
17+
display: table;
18+
margin: auto;
19+
}
20+
body {
21+
display: table-cell;
22+
vertical-align: middle;
23+
}
24+
.margin {
25+
margin: 0 !important;
26+
}
27+
</style>
28+
29+
</head>
830

9-
</table>
10-
</form>
31+
<body class="blue">
32+
33+
34+
<div id="login-page" class="row">
35+
<div class="col s12 z-depth-6 card-panel">
36+
<form class="login-form" action="usersignupprocess.jsp">
37+
<div class="row">
38+
<div class="input-field col s12 center">
39+
<img src="logo-M(converted).png" alt="" class="responsive-img valign profile-image-login">
40+
<p class="center login-form-text">STAY CONNECTED TO ALL YOUR ACCOUNTS AT ONE PLACE</p>
41+
<p class="center login-form-text">Sign Up for Free</p>
42+
</div>
43+
</div>
44+
<div class="row margin">
45+
<div class="input-field col s12">
46+
<i class="mdi-social-person-outline prefix"></i>
47+
<input name="username" type="text" class="validate" placeholder="Username">
48+
<!--<label for="username" class="center-align"></label>-->
49+
</div>
50+
</div>
51+
<div class="row margin">
52+
<div class="input-field col s12">
53+
<i class="mdi-communication-email prefix"></i>
54+
<input name="emailID" type="email" class="validate" placeholder="Email">
55+
<!--<label for="email" class="center-align">Email</label>-->
56+
</div>
57+
</div>
58+
<div class="row margin">
59+
<div class="input-field col s12">
60+
<i class="mdi-action-lock-outline prefix"></i>
61+
<input name="loginpassword" type="password" class="validate" placeholder="Password">
62+
<!--<label for="password">Password</label>-->
63+
</div>
64+
</div>
65+
<div class="row margin">
66+
<div class="input-field col s12">
67+
<i class="mdi-action-lock-outline prefix"></i>
68+
<input name="profilepassword" type="password" placeholder="Profile password">
69+
<!--<label for="password-again">Re-type password</label>-->
70+
</div>
71+
</div>
72+
<div class="row">
73+
<div class="input-field col s12">
74+
<button type="submit" class="btn waves-effect waves-light col s12">Register Now</button>
75+
</div>
76+
<div class="input-field col s12">
77+
<p class="margin center medium-small sign-up">Already have an account? <a href="userlogin.jsp">Login</a></p>
78+
</div>
79+
</div>
80+
</form>
81+
</div>
82+
</div>
83+
84+
85+
<!-- <center>
86+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
87+
Post Page - Responsive
88+
<ins class="adsbygoogle"
89+
style="display:inline-block;width:300px;height:250px"
90+
data-ad-client="ca-pub-5104998679826243"
91+
data-ad-slot="3470684978"></ins>
92+
<script>
93+
(adsbygoogle = window.adsbygoogle || []).push({});
94+
</script>
95+
</center> -->
96+
97+
<!-- ================================================
98+
Scripts
99+
================================================ -->
100+
101+
<!-- jQuery Library -->
102+
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
103+
<!--materialize js-->
104+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/js/materialize.min.js"></script>
105+
106+
107+
108+
<script>
109+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
110+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
111+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
112+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
113+
114+
ga('create', 'UA-27820211-3', 'auto');
115+
ga('send', 'pageview');
116+
117+
</script><script src="//load.sumome.com/" data-sumo-site-id="1cf2c3d548b156a57050bff06ee37284c67d0884b086bebd8e957ca1c34e99a1" async="async"></script>
118+
119+
120+
<footer class="page-footer">
121+
<div class="footer-copyright">
122+
<div class="container">
123+
© 2017 Multibanking.info
124+
<a class="grey-text text-lighten-4 right" href="authors.jsp">About Us</a> <!--TODO: Implement Authors page. -->
125+
</div>
126+
</div>
127+
</footer>
128+
</body>
129+
130+
</html>

‎WebContent/usersignupprocess.jsp

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<%@ page import ="java.sql.*,com.jdbc.*" %>
22
<%
3-
String uname = request.getParameter("username");
3+
String uname = request.getParameter("username");
4+
String emailID = request.getParameter("emailID");
45
String lpass = request.getParameter("loginpassword");
56
String ppass = request.getParameter("profilepassword");
67
78
Connection con = DbCon.dbCon();
89
9-
PreparedStatement ps = con.prepareStatement("insert into userinfo(username,loginpassword,profilepassword) values(?,?,?)");
10+
PreparedStatement ps = con.prepareStatement("insert into userinfo(username,loginpassword,profilepassword,EMAILID) values(?,?,?,?)");
1011
/*Unique ID aka unqid is generated from a sequence (incrementing unqid by 1). The sequence is triggered with each new insertion. */
1112
12-
ps.setString(1,uname);
13-
ps.setString(2,lpass);
14-
ps.setString(3,ppass);
13+
ps.setString(1, uname);
14+
ps.setString(2, lpass);
15+
ps.setString(3, ppass);
16+
ps.setString(4, emailID);
1517
ps.executeUpdate();
1618
con.close();
1719
response.sendRedirect("index.html");

‎WebContent/usertransactionhome.jsp

+61-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<%@ page import ="java.sql.*,com.jdbc.*" %>
2+
13
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
24
pageEncoding="ISO-8859-1"%>
35
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
@@ -8,28 +10,82 @@
810
</head>
911
<body>
1012

11-
<%
13+
<%-- <%
1214
String bname = request.getParameter("bname");
1315
1416
System.out.println(bname);
1517
1618
session.setAttribute("bname",bname);
1719
18-
%>
20+
%> --%>
21+
22+
<%
23+
try {
24+
25+
Connection con = DbCon.dbCon();
26+
27+
String unqid=session.getAttribute("unqid").toString();
28+
29+
PreparedStatement st1 = con.prepareStatement("SELECT LATESTBANKID FROM USERINFO WHERE UNQID=?");
30+
st1.setString(1, unqid);
31+
32+
ResultSet rs = st1.executeQuery();
33+
rs.next();
34+
String latestBankID = rs.getString(1);
35+
36+
PreparedStatement st2 = con.prepareStatement("SELECT * FROM USERBANKINFO WHERE UNQID=? AND BANKID=?");
37+
st2.setString(1, unqid);
38+
st2.setString(2, latestBankID);
39+
40+
ResultSet rs1 = st2.executeQuery();
41+
rs1.next();
42+
43+
session.setAttribute("latestBankID",latestBankID);
44+
session.setAttribute("cid",rs1.getString(3));
45+
session.setAttribute("accno",rs1.getString(4));
46+
session.setAttribute("ahname",rs1.getString(5));
47+
session.setAttribute("atype",rs1.getString(6));
48+
con.close();
49+
System.out.println("latestBankID:"+session.getAttribute("latestBankID"));
50+
System.out.println("cid:"+session.getAttribute("cid"));
51+
System.out.println("accno:"+session.getAttribute("accno"));
52+
System.out.println("ahname:"+session.getAttribute("ahname"));
53+
System.out.println("atype:"+session.getAttribute("atype"));
54+
55+
56+
57+
58+
} catch(Exception e) {
59+
System.out.println(e);
60+
}
61+
62+
63+
%>
64+
1965

66+
<h1>Welcome User</h1>
67+
<br>
68+
<br>
69+
<br>
70+
71+
<a href="transferamount.jsp"><h2>Transfer Amount</h2></a>
2072

21-
<h1> Welcome User</h1>
2273
<br>
2374
<br>
2475
<br>
2576

26-
<a href = "transferamounthome.jsp"><h2>Transfer Amount</h2></a>
77+
<a href="transactionhistory.jsp"><h2>Available Balance</h2></a> <!-- To be implemented -->
2778

2879
<br>
2980
<br>
3081
<br>
3182

32-
<a href = "transactionhistory.jsp"><h2>Transaction History</h2></a>
83+
<a href="transactionhistory.jsp"><h2>Transaction History</h2></a>
84+
85+
<br />
86+
<br />
87+
<br />
88+
<a href="switchbank.jsp"><h2>Switch Bank Account</h2></a>
3389

3490

3591
</body>

0 commit comments

Comments
 (0)
Please sign in to comment.