Download as pdf or txt
Download as pdf or txt
You are on page 1of 93

ONLINE BANKING SYSTEM

Submitted in partial fulfillment of the requirements for the degree of

Bachelor of Science
in

Computer Science
by

Jayakumar K - 18BCS0078
Vetri S - 18BCS0115
Ajith Kumar v - 18BCS0108

Under the guidance of


Prof. / Dr.
NIRMALA M

School Of Information Technology & Engineering


VIT, Vellore

June, 2021
DECLARATION

We hereby declare that the thesis entitled “Online banking System” submitted by
us, for the award of the degree of Specify the Bachelor Of Science in Computer
Science to VIT is a record of bonafide work carried out by me under the supervision
of Prof.Nirmala M
We further declare that the work reported in this thesis has not been submitted and
will not be submitted, either in part or in full, for the award of any other degree or
diploma in this institute or any other institute or university.

Place: Vellore
Date: 25.05.2021

Signature of the Candidate


Jayakumar

Vetri

Ajith kumar
CERTIFICATE

This is to certify that the thesis entitled “Online Banking System” submitted by Vetri-
18BCS0115, Jayakumar-18BCS0078 & Ajith kumar-18BCS0108, School Of
Information Technology & Engineering, VIT, for the award of the degree of
Bachelor Of Science in Computer Science, is a record of bonafide work carried out
by him/her under my supervision during the period, 06. 02. 2020 to 02. 06. 2021, as
per the VIT code of academic and research ethics.
The contents of this report have not been submitted and will not be submitted
either in part or in full, for the award of any other degree or diploma in this institute or
any other institute or university. The Project report fulfils the requirements and
regulations of VIT and in my opinion meets the necessary standards for submission.

Place: Vellore
Date: 25.05.2021

Signature of the Guide

Internal Examiner External Examiner


Dr. MALASERENE I
Bachelor of Science in Computer Science

ACKNOWLEDGEMENT

It is our pleasure to express with deep sense of gratitude to NIRMALA M,


Designation, School of Information Technology & Engineering, Vellore Institute of
Technology, for his/her constant guidance, continual encouragement, understanding;
more than all, he taught me patience in my endeavor. We association with him / her is
not confined to academics only, but it is a great opportunity on our part of work with
an intellectual and expert in the field of Computer Science.
We would wish to express our gratitude to Honourable Chancellor, Dr. G.
Viswanathan, esteemed Vice-President, Shri. Sankar Viswanathan, Shri. Sekar
Viswanathan and Shri. G.V. Selvam, respected Vice Chancellor, Dr. Rambabu
kodali, respected Pro-Vice Chancellor Dr. S. Narayana, Dean Dr. Balakrushna
Tripathy, SITE, for providing with an environment to work in and for his inspiration
during the tenure of the course.
In jubilant mood I express ingeniously my whole-hearted thanks to <Program char-
name>. <Program Chair and designation>, all teaching staff and members working as
limbs of our university for their not-self-centred enthusiasm coupled with timely
encouragements showered on me with zeal, which prompted the acquirement of the
requisite knowledge to finalize my course study successfully. I would like to thank
my parents for their support.
It is indeed a pleasure to thank my friends who persuaded and encouraged me to take
up and complete this task. At last but not least, I express my gratitude and
appreciation to all those who have helped me directly or indirectly toward the
successful completion of this project.

Student Names
Vetri
Jayakumar
Ajith kumar
Executive Summary

The main aim of the developing this project is to store all the required bank
information in database and verifies the registered email id is valid or not to avoid
fake registrations. This web application gives an opportunity to the users to get
advantages of true banking domain. Manager and Cashier of the subject; these
features are inserting and retrieving from the database. It provides the good facility for
understanding the given users. The main objective of delivering one of the most
technologically advanced qualities online banking platforms.

CONTENTS Page No.


Acknowledgement i
Executive Summary ii
Table of Contents iii

List of i
Figures List x
of Tables 5
Abbreviations 6
1 7
Symbols and
Notations
INTRODUCTION
1.1 Objective 8
1.2 Motivation 8
1.3 Background 8
2 PROJECT DESCRIPTION AND GOALS 9

3 TECHNICAL SPECIFICATION 10

4 DESIGN APPROACH AND DETAILS (as applicable) 11

4.1 Design Approach / Materials & Methods


2. Codes and Standards
3. Constraints, Alternatives and Tradeoffs
5 SCHEDULE, TASKS AND MILESTONES 13

6 PROJECT DEMONSTRATION 14

7 COST ANALYSIS / RESULT & DISCUSSION (as applicable) 19

8 SUMMARY 89

9 REFERENCES 90

APPENDIX A

List of Figures
Figure No. Title Page No.
4.1 ER diagram 11
4.2 class diagram 11
4.3 Use case Diagram 12
4.4 Architecture Diagram 12

List of Tables
Figure No. Title Page No.
6.1 Unit Testing 14
6.2 Functional Testing 18

List of Abbreviations
OBS – ONLINE BANKING SYSTEM
IBS – INTERNET BANKING SYSTEM
RIO – RETURN ON INVESTMENT
API – APPLICATION PROGRAM INTERFACE

Symbols and Notations

+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus Equal
== Not Equal
!= Greater than
> Less than
< Greater than or Equal
>= Less than or Equal
<= Bitwise AND
& Bitwise OR
|
B i t w i s e X O R
^
B it w i s e N O T
~
Logical AND
&&
Logical OR
||
Logical NOT
!
Assignment
=
1.INTRODUCTION
1. OBJECTIVE
The objectives of this system are :
 The main objective of the online banking system is to manage the details of
Accounts,Internet banking Transaction,Balance,Statement.

 It manages all the information about Accounts,Customer,Statement,Accounts.

 Using the project the bankers and customers can Generate various kinds of
reports.

 The banking industry will take a big leap,shape and explore like never before.

2. Motivation
The aim of the project is
 The project safe and secure ONLINE BANKING SYSTEM Provides
comprehensive electronic fund transfer and Payment solutions that enable
thousands of citizens,Financial institutions and hundreds of businesses the
Convenience of receiving and transferring their funds Online.

 It’s fast,easy and puts you in complete control-you Decide who to transfer
funds,checking of the account Details.Receive and pay all your paper bills at
one site at your bank,credit union.

1.3.BACKGROUND
• Front End: Html, CSS, JavaScript.
• Back End: PHP, MySQL.
• Software: Xampp.
1.4.SCOPE
 It is to automate transactions of bank and providing better and faster service to
the customers by using internet.

 All the transactions between customer and bank are stored in a database that is
the center of all information.

 Online banking system project make the things simple


and makes the work of involved people easy

1.5.SYSTEM REQUIREMENTS
Hardware configuration Software configuration
Processor : any OS:windows , Linux and Mac
Hard disk : 10 GB minimum Userinterface:HTML,CSS,JAVASCRIPT,
JQUERY,BOOTSTRAP
RAM : 256MB or more Programming language:PHP
Any screen Database:MYSQL

2.PROJECT DESCRIPTION AND GOALS:


The following modules are included in the Online Banking System
:

1)Login Process: This module helps legitimate customers to access the functions
offered by the bank.
2)Balance Enquiry: This module preserves the knowledge of the balance of a
given account.
3) Upgrade Profile: This module helps the user to update their account profile.
4)Movement of Money: This module enables consumers to transfer funds from
one account to another within the same bank.
5) Password update: this module helps consumers to change their passwords.
6) Mini Statements: This module helps consumers to access descriptions of their
purchases.

3.TECHNICAL SPECIFICATIONS

3.1FUNCTIONAL REQUIREMENTS:

1.)Customer can request details of the last ‘n’ number of transactions he has
performed on any account.
2.)Customer can make a funds transfer to another account in the same bank.
3.)Customer can request for cheque book.

4.)Customer can view his monthly statement.She/he can also take print out of the
same.
5.)Customer can make EFT’s to accounts at their and other banks.
6.)The system is providing balance enquiry facility.

3.2 NON-FUNCTIONAL REQUIREMENTS:


Those requirements which are not the functionalities of a system but they are the
characteristics of System are called the non-functionalities.
1.)Secure access of confidential data.SS can be used.
2.)24*7 availability.
3.)Better component design to get better performance at peak time.
4.)Flexible service based architecture will be highly desirable for future extensions.

4.DESIGN APPROACH AND DETAILS:


=>PROPOSED SYSTEM DESIGN
This proposed system aims at creation of a secure Internet -Banking system. This will
be accessible to all customers who have a valid ‘user id’ and ‘Password’ the system
provides .The following important functionalities Balance Enquiry
Funds Transfer to another account in the same bank Request for cheque book\change
of address\stop payment of cheques. Viewing monthly and annual statements

=>NO. OF MODULES

1. Balance enquiry
2. Funds Transfer to another account in the same bank
3. Request for cheque book/change of address/stop payment of Cheques
4. Viewing Monthly and annual statements.
5. System help.

=> DETAILED DESIGN


As the application of project is regarding internet banking,we used “JAVA” a simple,
object oriented, network – savy, interpreted, robust, secure, architecture neutral,
portable, high performance, multithreaded dynamic language.

4.1 ER DIAGRAM

4.2 CLASS DIAGRAM


4.3 USE CASE DIAGRAM

4.4 ARCHITECTURE DIAGRAM


5.SCHEDULE,TASKS AND MILESTONES
LITERATURE SURVEY

AUTHORS: Rangan, V. Kasturi and Lee, Katharine L., (2012)


TITLE: Mobile Banking for the Unbanked

DESCRIPTION:
The case describes in detail the workings of two mobile banking operators in Africa
WIZZIT in South Africa and M-PESA in Kenya. It explores the dimensions of
strategy that make for success in the market for the unbanked. It raises questions
regarding the portability of the model to other countries and settings.

AUTHORS:V. Raja, Joe A. (2012)


TITLE:Global e-banking scenario and challenges in banking system

DESCRIPTION:
This paper is an attempt to explore the various levels of internet banking services
provided by banks using the secondary data. It also compares the traditional banking
systems with net banking. It lists out the various advantages of internet banking and
the
successful security measures adopted by different banks for secured banking
transactions.
It also analyzes how E-banking can be useful for banking industry during this global
financial melt down.

AUTHORS:Sudhakar A. M., Suryanarayana, (2011)


TITLE:Emerging mobile banking scenario and its adoption in India: a study

DESCRIPTION:
With broadband communication technological developments and mobile phones
penetration(481 million by June 2009) into common man's life have triggered major
thrust in the Banking service sector of India. With Mobile Banking- a revolutionary
approach to banking transactions has created a strong connectivity between customers
and the banks as both will transact with minimum cost and in minimum time. It is a
timely and its cost effective services can deliver mobile money to non-banked poor
people and will induce economic growth of the country. This article discusses the
status of Mobile Banking in India and other countries with emphasis on data security
and standards and its implication on banking sector.

AUTHORS:Alain Y. C., Keng B. O., Binshan L., Boon I. T., (2010)


TITLE: "Online banking adoption: an empirical analysis

DESCRIPTION:
showed that perceived usefulness, trust and government support
all positively associated with the intention to use online banking in Vietnam. Contrary
to the technology acceptance model, perceived ease of use was found to be not
significant in this study.

AUTHORS:Kenneth B. Y., David H. W., Claire L., Randall B, (2010)


TITLE: "Offline and online
banking - where to draw the line when building trust in e-banking?

DESCRIPTION: found that Traditional service quality builds customer trust in the
e-banking service. The size and reputation of the bank were found to provide
structural assurance to the customer but not in the absence of traditional service
quality. Web sitefeatures that give customers confidence are significant situation
normality cues.
6.PROJECT DEMONSTRATION
TEST CASE:

1.UNIT TESTING – It means separately to test each and every module. It


helps to know and easily get the mistakes exactly where we mistaked.

USER LOGIN

TES TEST PRIORI INPUT EXPECT ACTU RESUL P/


T CASE TY ED AL T F
CAS OUTPUT OUTPU
E ID T
TC_0 Login High some@gmail.com Navigate Navigat Login P
1 with some to the page e to the successf
usernam page ul
e and
passwor
d
TC_0 If the Medium Some System not Require Not P
2 user not accept the allow to
entering fields login
any of
the
fields
TC_0 If the Medium somesome@gmail. Display System Not P
3 user com message not allow to
enter some acceptin login
invalid g
Userna
me
TC_0 If the Medium some@gmail.com Display System Not P
4 user so message not allow to
enter acceptin login
invalid g
passwor
d
MODULE NAME : MANAGER DATE OF DESIGNING: 27/03/2021

TITLE : Manager usage module DATE OF EXECUTION : 31/03/2021

DESCRIPTION OF THE MODULE : Manage the user works, personal information and academic
performances
PRE – REQUISITE : Username : manager@manager.com
Password : manager
They manage the user details, academic performances.

TEST PRIORITY INPUT RESU P


TEST EXPECTED ACTUAL
LT /
CASE
CASE OUTPUT OUTPUT
ID F

TC_01 Login High Navigate to Navigate Login P


manager@manager.com
with the registered to the
Succes
username manager page of the registered
sful
and system page of
password the
system
TC_02 If the Medium Manager System not Required Not P
user not accepting the fields allow
entering to
any of login
the fields

TC_03 If the Medium Display the Username Not P


Xxxyyy
user enter warning or allow
invalid Manager message password to
username is login
incorrect

TC_04 If the Medium Display the Username Not P


manager@manager.com
user warning or allow
enter ger message password to
invalid is login
password incorrect

CASHIER ACCOUNT

TEST PRIOR INPUT EXPECTED ACTUAL RESULT P


TEST
ITY /
CASE
ID CASE OUTPUT OUTPUT F
TC_01 Login High Navigate to Navigate P
cashier@cashier.com Login
with valid the page to the page
username cashier sucessfully
and
password

TC_02 If the High Cahier System not Required Not allow P


user not accept the fields to login
enter any
fields
TC_03 If he High Display the Username Not allow P
Cashiersss@gmail.com
enters warning or to login
invalid Cashier message password
username is
incorrect
TC_04 If he high Display the Username Not allow P
cashier@cashier.com
enters warning or to login
invalid cash message passwordis
password incorrect

USER TRANSFER MONEY:


TEST TEST PRIORIT INPUT EXPECTE ACTUA RESULT P/
CASE CASE Y D OUTPUT L F
ID OUTPU
T

TC_0 If the High 1005469 Navigate to Navigate Succesful P


1 user the account to the l
enter page page
Act no
correctl
y

TC_0 i f e n t e r Medium 1000029 Account Not exist Not P


2 wrong number does successfu
number not exist l
TC_0 I f e n t e r medium 1005477 Transfer Transfer sucessful p
3 amount 7 success sucess
of what
Rs 8300
user
have
TC_0 If enter medium 1005477 Transfer The value Unsucces P
4 amount 7 unsucessful must be s
of what less than
user Rs 10000 or equal
does not to 8600
have

CASHIER DEPOSIT WITHDRAW:


TEST TEST PRIORIT INPUT EXPECTE ACTUAL RESUL P/
CAS CASE Y D OUPUT OUTPUT T F
E ID
TC_0 If high 1005477 Navigate to Navigate Successf P
1 cashier 7, withdraw to ul
enter 1005469 deposit withdraw
act page deposit
number page
correctl
y
TC_0 If medium 1389939 Account no Not exist Not P
2 enters does not successfu
wrong exist l
TC_0 If enter medium 1005469 Transaction Transactio Successf P
3 accout success n success ul
no
coorect
TC_0 If not medium 1000002 Unsucesful unsucess Not P
4 enter sucessful

6.2.FUNCTIONAL TESTING:
1.)Check whether keeping mandatory fields empty shows error messages. For
example, while transferring the money, ‘Amount’ should be mandatory and cannot be
kept empty.
2.)Check whether all the fields accept valid values and after entering an invalid value
system shows error messages. For example – the ‘Account Number’ field should not
accept special characters.
3.)Check whether all the fields have a valid character limit. For example – the
‘Account Number’ field should accept values between 7 to 15characters.
4.)Verify that all the links in the application are clickable and land on the desired
page.
5.)Check whether all the buttons are clickable and work in the desired manner.
6.)Check whether all the calculations are performed in the desired manner. For
example – after a debit or credit transaction, the account balance should reflect the
correct amount).
7.)Verify the scrolling functionality of the application.

7.CODE ANALYSIS/RESULT &DISCUSSION

My Bank-SQL:
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 05, 2021 at 06:24 AM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 5.6.30

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT


*/;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION
*/;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `mybank`
--

-- --------------------------------------------------------

--
-- Table structure for table `branch`
--

CREATE TABLE `branch` (


`branchId` int(11) NOT NULL,
`branchNo` varchar(111) NOT NULL,
`branchName` varchar(111) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `branch`
--

INSERT INTO `branch` (`branchId`, `branchNo`, `branchName`) VALUES


(1, '100101', 'Chennai'),

(2, '100102', 'Madurai');

-- --------------------------------------------------------

--
-- Table structure for table `feedback`
--

CREATE TABLE `feedback` (


`feedbackId` int(11) NOT NULL,
`message` text NOT NULL,
`userId` double NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `feedback`
--

INSERT INTO `feedback` (`feedbackId`, `message`, `userId`, `date`) VALUES (1,


'This is testing message to admin or manager by Ak', 1, '2021-04-15 04:30:48'), (3,
'This is testing message to admin or manager by fk', 2, '2021-04-15 04:30:48'), (4,
'this is help card for admin', 1, '2017-12-17 06:45:20');

-- --------------------------------------------------------

--
-- Table structure for table `login`
--

CREATE TABLE `login` (


`id` int(11) NOT NULL,
`email` varchar(111) NOT NULL,
`password` varchar(111) NOT NULL,
`type` varchar(111) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `login`
--
INSERT INTO `login` (`id`, `email`, `password`, `type`, `date`) VALUES
(1, 'cashier@cashier.com', 'cashier', 'cashier', '2021-04-15 04:36:27'),

(2, 'manager@manager.com', 'manager', 'manager', '2021-04-15 04:36:27'),


(3, 'jayakumar@gmail.com', 'jayakumar', 'type', '2021-04-16 07:13:12'),
(4, 'vetri@gmail.com', 'vetri', 'type', '2021-04-16 07:13:18'),
(6, 'cashier2@cashier.com', 'cashier2', 'cashier', '2021-04-16 07:14:47');

-- --------------------------------------------------------

--
-- Table structure for table `notice`
--

CREATE TABLE `notice` (


`id` int(11) NOT NULL,
`userId` varchar(111) NOT NULL,
`notice` text NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `notice`
--

INSERT INTO `notice` (`id`, `userId`, `notice`, `date`) VALUES


(1, '1', 'Dear Customer! <br> OUr privacy policy is changed for account information get new
prospectus from your nearest branch', '2021-04-14 13:11:46'),
(6, '2', 'Dear jayakumar,<br>\r\nOur privacy policy has been changed please visit nearest
<kbd> T Bank </kbd> branch for new prospectus.', '2021-04-16 06:29:23');

-- --------------------------------------------------------
--
-- Table structure for table `otheraccounts`
--

CREATE TABLE `otheraccounts` (


`id` int(11) NOT NULL,
`accountNo` varchar(111) NOT NULL,
`bankName` varchar(111) NOT NULL,
`holderName` varchar(111) NOT NULL,
`balance` varchar(111) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `otheraccounts`
--

INSERT INTO `otheraccounts` (`id`, `accountNo`, `bankName`, `holderName`, `balance`,


`date`) VALUES
(1, '12001122', 'UBL', 'Ajithkumar', '40800', '2021-04-14 11:55:07'),
(2, '12001123', 'HBL', 'Aadhi', '71000', '2021-04-14 11:55:07'),
(3, '12001124', 'HBL', 'Bala', '71000', '2021-04-14 11:55:07');

-- --------------------------------------------------------

--
-- Table structure for table `transaction`
--

CREATE TABLE `transaction` (


`transactionId` int(11) NOT NULL,
`action` varchar(111) NOT NULL,
`credit` varchar(111) NOT NULL,
`debit` varchar(111) NOT NULL,
`balance` varchar(111) NOT NULL,
`beneId` varchar(111) NOT NULL,
`other` varchar(111) NOT NULL,
`userId` int(11) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `transaction`
--

INSERT INTO `transaction` (`transactionId`, `action`, `credit`, `debit`, `balance`, `beneId`,


`other`, `userId`, `date`) VALUES
(4, 'transfer', '', '200', '', '', '12001122', 1, '2021-04-14 12:33:40'),
(5, 'transfer', '', '200', '', '', '10054777', 1, '2021-04-14 12:56:48'),
(6, 'transfer', '', '333', '', '', '10054777', 1, '2021-04-14 12:57:20'),
(7, 'transfer', '', '222', '', '', '10054777', 1, '2021-04-14 12:58:19'),
(8, 'transfer', '', '333', '', '', '10054777', 1, '2021-04-14 13:00:23'),
(16, 'withdraw', '', '100', '', '', '23423', 1, '2021-04-15 08:31:59'),
(17, 'deposit', '1200', '', '', '', '234232', 1, '2021-04-15 08:32:17'),
(18, 'transfer', '', '467', '', '', '12001122', 1, '2021-04-17 06:44:48'),
(22, 'deposit', '1200', '', '', '', '32424', 2, '2021-04-17 06:56:29'),
(23, 'withdraw', '', '12', '', '', '23423', 2, '2021-04-17 06:59:02'),
(24, 'deposit', '12', '', '', '', '21321', 2, '2021-04-17 06:59:20'),
(25, 'transfer', '', '1200', '', '', '10054777', 1, '2021-04-17 07:01:37'),
(26, 'deposit', '600', '', '', '', '342342', 2, '2021-04-17 07:04:39'),
(27, 'withdraw', '', '1012', '', '', '23423', 2, '2021-04-17 07:04:58');

-- --------------------------------------------------------

--
-- Table structure for table `useraccounts`
--

CREATE TABLE `useraccounts` (


`id` int(11) NOT NULL,
`email` text NOT NULL,
`password` text NOT NULL,
`name` varchar(111) NOT NULL,
`balance` varchar(111) NOT NULL,
`Aadhar no` varchar(111) NOT NULL,
`number` varchar(111) NOT NULL,
`city` varchar(111) NOT NULL,
`address` varchar(111) NOT NULL,
`source` varchar(111) NOT NULL,
`accountNo` varchar(111) NOT NULL,
`branch` varchar(111) NOT NULL,
`accountType` varchar(111) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `useraccounts`
--

INSERT INTO `useraccounts` (`id`, `email`, `password`, `name`, `balance`, `Aadhar no`,
`number`, `city`, `address`, `source`, `accountNo`, `branch`, `accountType`, `date`) VALUES
(1, 'some@gmail.com', 'some', 'Ajithkumar', '9800', '335678905437', '+919476607907',
'Vellore', 'Ammoor S.O, Wallajah, Vellore, Tamil Nadu, 632501', 'Programmer', '1005469',
'1', 'Current', '2021-04-14 05:50:06'),
(2, 'some2@gmail.com', 'some2', 'jayakumar', '16000', '347865474367', '+919123529988',
'Kanchipuram', 'No.94, SriRanga Krishna Nagar, Chinna Kanchipuram, Kanchipuram, Tamil
Nadu, 631501', 'Govt. job', '10054777', '1', 'Saving', '2021-04-14 04:50:06'),
(6, 'vetri@gmail.com', 'vetri', 'Vetri', '234234', '357864907853', '+919435685497', 'Vellore',
'Alapakkam B.O, Walajapet, Vellore, Tamil Nadu, 632508', 'Govt. job', '1513410739', '1',
'saving', '2021-04-16 07:52:40'),
(7, 'kamal@gmail.com', 'kamal', 'Kamal', '12121', '3240338834902', '03356910260',
'Coimbatore', '699, AVINASHI ROAD COIMBATORE-641 037, TAMILNADU, INDIA.',
'Govt. job', '1513410837', '2', 'current', '2021-04-16 07:54:18');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `branch`
--
ALTER TABLE `branch`
ADD PRIMARY KEY (`branchId`);

--
-- Indexes for table `feedback`
--
ALTER TABLE `feedback`
ADD PRIMARY KEY (`feedbackId`);

--
-- Indexes for table `login`
--

ALTER TABLE `login`


ADD PRIMARY KEY (`id`);

--
-- Indexes for table `notice`
--

ALTER TABLE `notice`


ADD PRIMARY KEY (`id`);

--
-- Indexes for table `otheraccounts`
--
ALTER TABLE `otheraccounts`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `transaction`
--
ALTER TABLE `transaction`
ADD PRIMARY KEY (`transactionId`);

--
-- Indexes for table `useraccounts`
--

ALTER TABLE `useraccounts`


ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `branch`
--
ALTER TABLE `branch`
MODIFY `branchId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `feedback`
--
ALTER TABLE `feedback`
MODIFY `feedbackId` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `login`
--
ALTER TABLE `login`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `notice`
--
ALTER TABLE `notice`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `otheraccounts`
--
ALTER TABLE `otheraccounts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `transaction`
--
ALTER TABLE `transaction`
MODIFY `transactionId` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT for table `useraccounts`
--
ALTER TABLE `useraccounts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Login:
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/function.php'; ?>
<?php

$con = new mysqli('localhost','root','','mybank');


define('bankName', 'T Bank',true);

$error = "";
if (isset($_POST['userLogin']))
{
$error = "";
$user = $_POST['email'];
$pass = $_POST['password'];

$result = $con->query("select * from userAccounts where email='$user' AND


password='$pass'");
if($result->num_rows>0)
{
session_start();
$data = $result->fetch_assoc();
$_SESSION['userId']=$data['id'];
$_SESSION['user'] = $data;
header('location:index.php');

}
else
{
$error = "<div class='alert alert-warning text-center rounded-0'>Username or password wrong
try again!</div>";
}
}
if (isset($_POST['cashierLogin']))
{
$error = "";
$user = $_POST['email'];
$pass = $_POST['password'];

$result = $con->query("select * from login where email='$user' AND password='$pass'");


if($result->num_rows>0)

{
session_start();
$data = $result->fetch_assoc();
$_SESSION['cashId']=$data['id'];

//$_SESSION['user'] = $data;
header('location:cindex.php');
}
else
{
$error = "<div class='alert alert-warning text-center rounded-0'>Username or password wrong
try again!</div>";
}
}
if (isset($_POST['managerLogin']))
{
$error = "";
$user = $_POST['email'];
$pass = $_POST['password'];

$result = $con->query("select * from login where email='$user' AND password='$pass' AND


type='manager'");
if($result->num_rows>0)
{
session_start();
$data = $result->fetch_assoc();
$_SESSION['managerId']=$data['id'];

//$_SESSION['user'] = $data;
header('location:mindex.php');
}
else
{
$error = "<div class='alert alert-warning text-center rounded-0'>Username or password wrong
try again!</div>";
}
}

?>
</head>
<body style="background: url(images/bg-login2.jpg);background-size: 100%">
<h1 class="alert alert-success rounded-0"><?php echo bankname; ?><small class="float-right
text-muted" style="font-size: 12pt;"><kbd>Presented
by:Vetri,Ajithkumar,Jayakumar</kbd></small></h1>
<br>
<?php echo $error ?>
<br>
<div id="accordion" role="tablist" class="w-25 float-right shadowBlack" style="margin-
right: 222px">
<br><h4 class="text-center text-white">Select Your Session</h4>
<div class="card rounded-0">
<div class="card-header" role="tab" id="headingOne">
<h5 class="mb-0">
<a style="text-decoration: none;" data-toggle="collapse" href="#collapseOne" aria-
expanded="true" aria-controls="collapseOne">
<button class="btn btn-outline-success btn-block">User Login</button>
</a>
</h5>
</div>

<div id="collapseOne" class="collapse" role="tabpanel" aria-labelledby="headingOne" data-


parent="#accordion">
<div class="card-body">
<form method="POST">
<input type="email" value="some@gmail.com" name="email" class="form-control" required
placeholder="Enter Email">
<input type="password" name="password" value="some" class="form-control" required
placeholder="Enter Password">
<button type="submit" class="btn btn-primary btn-block btn-sm my-1"
name="userLogin">Enter </button>
</form>
</div>
</div>
</div>
<div class="card rounded-0">
<div class="card-header" role="tab" id="headingTwo">
<h5 class="mb-0">
<a class="collapsed btn btn-outline-success btn-block" data-toggle="collapse"
href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Manager Login
</a>
</h5>
</div>
<div id="collapseTwo" class="collapse" role="tabpanel" aria-labelledby="headingTwo" data-
parent="#accordion">
<div class="card-body">
<form method="POST">
<input type="email" value="manager@manager.com" name="email" class="form-control"
required placeholder="Enter Email">
<input type="password" name="password" value="manager" class="form-control" required
placeholder="Enter Password">
<button type="submit" class="btn btn-primary btn-block btn-sm my-1"
name="managerLogin">Enter </button>
</form>
</div>
</div>
</div>
<div class="card rounded-0">
<div class="card-header" role="tab" id="headingThree">
<h5 class="mb-0">
<a class="collapsed btn btn-outline-success btn-block" data-toggle="collapse"
href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Cashier Login
</a>
</h5>
</div>
<div id="collapseThree" class="collapse" role="tabpanel" aria-labelledby="headingThree"
data-parent="#accordion">
<div class="card-body">
<form method="POST">
<input type="email" value="cashier@cashier.com" name="email" class="form-control"
required placeholder="Enter Email">
<input type="password" name="password" value="cashier" class="form-control" required
placeholder="Enter Password">
<button type="submit" class="btn btn-primary btn-block btn-sm my-1"
name="cashierLogin">Enter </button>
</form>
</div>
</div>
</div>
</div>
</body>
</html>

Log Out:
<?php

session_start();
session_destroy();

header('location:login.php');

?>
Index:
<?php
session_start();
if(!isset($_SESSION['userId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>

</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link active" href="index.php">Home <span class="sr-
only">(current)</span></a>
</li>
<li class="nav-item "> <a class="nav-link" href="accounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="statements.php">Account
Statements</a></li>
<li class="nav-item "> <a class="nav-link" href="transfer.php">Funds Transfer</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->

</ul>
<?php include 'sideButton.php'; ?>

</div>
</nav><br><br><br>
<div class="row w-100" >
<div class="col" style="padding: 22px;padding-top: 0">
<div class="jumbotron shadowBlack" style="padding: 25px;min-height: 241px;max-height:
241px">
<h4 class="display-5">Welecome to T Bank</h4>
<p class="lead alert alert-warning"><b>Latest Notification:</b>

<?php
$array = $con->query("select * from notice where userId = '$_SESSION[userId]' order by
date desc");
if ($array->num_rows > 0)
{
$row = $array->fetch_assoc();
// {
echo $row['notice'];
// }
}
else
echo "<div class='alert alert-info'>Notice box empty</div>";
?></p>
</div>
<div id="carouselExampleIndicators" class="carousel slide my-2 rounded-1 shadowBlack"
data-ride="carousel" >
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="images/1.jpg" alt="First slide" style="max-height:
250px">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="images/2.jpg" alt="Second slide" style="max-height:
250px">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="images/3.jpg" alt="Third slide" style="max-height:
250px">
</div>

</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-
slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-
slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="col">
<div class="row" style="padding: 22px;padding-top: 0">
<div class="col">
<div class="card shadowBlack ">
<img class="card-img-top" src="images/acount.jpg" style="max-height: 155px;min-height:
155px" alt="Card image cap">

<div class="card-body">
<a href="accounts.php" class="btn btn-outline-success btn-block">Account Summary</a>
</div>
</div>
</div>
<div class="col">
<div class="card shadowBlack ">
<img class="card-img-top" src="images/transfer.jpg" alt="Card image cap" style="max-
height: 155px;min-height: 155px">
<div class="card-body">
<a href="transfer.php" class="btn btn-outline-success btn-block">Transfer Money</a>
</div>
</div>
</div>
</div>
<div class="row" style="padding: 22px">
<div class="col">
<div class="card shadowBlack ">
<img class="card-img-top" src="images/bell.gif" style="max-height: 155px;min-height:
155px" alt="Card image cap">
<div class="card-body">
<a href="notice.php" class="btn btn-outline-primary btn-block">Check Notification</a>
</div>
</div>
</div>
<div class="col">
<div class="card shadowBlack ">
<img class="card-img-top" src="images/contacts.gif" alt="Card image cap" style="max-
height: 155px;min-height: 155px">

<div class="card-body">
<a href="feedback.php" class="btn btn-outline-primary btn-block">Contact Us</a>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

Notice:
<?php
session_start();
if(!isset($_SESSION['userId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>

</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link " href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active "> <a class="nav-link" href="accounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="statements.php">Account
Statements</a></li>
<li class="nav-item "> <a class="nav-link" href="transfer.php">Funds Transfer</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->

</ul>
<?php include 'sideButton.php'; ?>

</div>
</nav><br><br><br>
<div class="container">
<div class="card w-75 mx-auto">
<div class="card-header text-center">
Notification from Bank

</div>
<div class="card-body">
<?php
$array = $con->query("select * from notice where userId = '$_SESSION[userId]' order by
date desc");
if ($array->num_rows > 0)
{
while ($row = $array->fetch_assoc())
{
echo "<div class='alert alert-success'>$row[notice]</div>";
}
}
else
echo "<div class='alert alert-info'>Notice box empty</div>";
?>
</div>
<div class="card-footer text-muted">
<?php echo bankname ?>
</div>
</div>

</div>
</body>
</html>
Show:

<?php
session_start();
if(!isset($_SESSION['managerId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php if (isset($_GET['delete']))
{
if ($con->query("delete from useraccounts where id = '$_GET[id]'"))
{
header("location:mindex.php");
}
} ?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link active" href="mindex.php">Home <span class="sr-
only">(current)</span></a>
</li>
<li class="nav-item "> <a class="nav-link" href="maccounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="maddnew.php">Add New
Account</a></li>
<li class="nav-item "> <a class="nav-link" href="mfeedback.php">Feedback</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="transfer.php">Funds
Transfer</a></li> -->
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->

</ul>
<?php include 'msideButton.php'; ?>

</div>
</nav><br><br><br>
<?php
$array = $con->query("select * from useraccounts,branch where useraccounts.id =
'$_GET[id]' AND useraccounts.branch = branch.branchId");
$row = $array->fetch_assoc();
?>
<div class="container">
<div class="card w-100 text-center shadowBlue">
<div class="card-header">
Account profile for <?php echo $row['name'];echo "<kbd>#";echo $row['accountNo'];echo
"</kbd>"; ?>
</div>
<div class="card-body">
<table class="table table-bordered">
<tbody>
<tr>
<td>Name</td>
<th><?php echo $row['name'] ?></th>

<td>Account No</td>
<th><?php echo $row['accountNo'] ?></th>
</tr><tr>
<td>Branch Name</td>
<th><?php echo $row['branchName'] ?></th>
<td>Brach Code</td>
<th><?php echo $row['branchNo'] ?></th>
</tr><tr>
<td>Current Balance</td>
<th><?php echo $row['balance'] ?></th>
<td>Account Type</td>
<th><?php echo $row['accountType'] ?></th>
</tr><tr>
<td>Aadhar no</td>
<th><?php echo $row['Aadhar no'] ?></th>
<td>City</td>
<th><?php echo $row['city'] ?></th>
</tr><tr>
<td>Contact Number</td>
<th><?php echo $row['number'] ?></th>
<td>Address</td>
<th><?php echo $row['address'] ?></th>
</tr>
</tbody>
</table>
</div>
<div class="card-footer text-muted">
<?php echo bankname; ?>
</div>
</div>

</body>
</html>

SideButton:
<form class="form-inline my-2 my-lg-0">
<a href="" class="btn btn-outline-success" data-toggle="tooltip" title="Your current Account
Balance">Acount Balance : Rs.<?php echo $userData['balance']; ?></a>
<a href="accounts.php" data-toggle="tooltip" title="Account Summary" class="btn btn-
outline-primary mx-1" ><i class="fa fa-book fa-fw"></i></a>
<a href="notice.php" data-toggle="tooltip" title="View Notice" class="btn btn-outline-
primary mx-1" ><i class="fa fa-envelope fa-fw"></i></a>
<a href="feedback.php" data-toggle="tooltip" title="Help?" class="btn btn-outline-info mx-1"
><i class="fa fa-question fa-fw"></i></a>
<a href="logout.php" data-toggle="tooltip" title="Logout" class="btn btn-outline-danger mx-
1" ><i class="fa fa-sign-out fa-fw"></i></a>
</form>
Statements:
<?php
session_start();

if(!isset($_SESSION['userId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php
$error = "";
if (isset($_POST['userLogin']))
{
$error = "";
$user = $_POST['email'];
$pass = $_POST['password'];

$result = $con->query("select * from userAccounts where email='$user' AND


password='$pass'");
if($result->num_rows>0)
{
session_start();
$data = $result->fetch_assoc();
$_SESSION['userId']=$data['id'];
$_SESSION['user'] = $data;
header('location:index.php');

}
else
{
$error = "<div class='alert alert-warning text-center rounded-0'>Username or password wrong
try again!</div>";
}
}

?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">

<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link " href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item "> <a class="nav-link" href="accounts.php">Accounts</a></li>
<li class="nav-item active"> <a class="nav-link" href="statements.php">Account
Statements</a></li>
<li class="nav-item "> <a class="nav-link" href="transfer.php">Funds Transfer</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->

</ul>

<?php include 'sideButton.php'; ?>


</div>
</nav><br><br><br>
<div class="container">
<div class="card w-75 mx-auto">
<div class="card-header text-center">
Transaction made against you account

</div>
<div class="card-body">
<?php
$array = $con->query("select * from transaction where userId = '$userData[id]' order by date
desc");
if ($array ->num_rows > 0)
{
while ($row = $array->fetch_assoc())
{
if ($row['action'] == 'withdraw')
{
echo "<div class='alert alert-secondary'>You withdraw Rs.$row[debit] from your account at
$row[date]</div>";
}
if ($row['action'] == 'deposit')
{
echo "<div class='alert alert-success'>You deposit Rs.$row[credit] in your account at
$row[date]</div>";
}
if ($row['action'] == 'deduction')
{
echo "<div class='alert alert-danger'>Deduction have been made for Rs.$row[debit] from
your account at $row[date] in case of $row[other]</div>";
}
if ($row['action'] == 'transfer')
{
echo "<div class='alert alert-warning'>Transfer have been made for Rs.$row[debit] from
your account at $row[date] in account no.$row[other]</div>";
}
}
}
?>
</div>
<div class="card-footer text-muted">
<?php echo bankname ?>
</div>
</div>

</div>
</body>
</html>

Transfer:

<?php
session_start();

if(!isset($_SESSION['userId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php
$error = "";
if (isset($_POST['userLogin']))
{
$error = "";
$user = $_POST['email'];
$pass = $_POST['password'];

$result = $con->query("select * from userAccounts where email='$user' AND


password='$pass'");
if($result->num_rows>0)
{
session_start();
$data = $result->fetch_assoc();
$_SESSION['userId']=$data['id'];

$_SESSION['user'] = $data;
header('location:index.php');
}
else
{
$error = "<div class='alert alert-warning text-center rounded-0'>Username or password wrong
try again!</div>";
}
}

?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link " href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item "> <a class="nav-link" href="accounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="statements.php">Account
Statements</a></li>
<li class="nav-item active"> <a class="nav-link" href="transfer.php">Funds
Transfer</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->

</ul>
<?php include 'sideButton.php'; ?>
</div>
</nav><br><br><br>
<div class="container">
<div class="card w-75 mx-auto">

<div class="card-header text-center">


Funds Transfer
</div>
<div class="card-body">
<form method="POST">
<div class="alert alert-success w-50 mx-auto">
<h5>New Transfer</h5>
<input type="text" name="otherNo" class="form-control " placeholder="Enter Receiver
Account number" required>
<button type="submit" name="get" class="btn btn-primary btn-bloc btn-sm my-1">Get
Account Info</button>
</div>
</form>
<?php if (isset($_POST['get']))
{
$array2 = $con->query("select * from otheraccounts where accountNo =
'$_POST[otherNo]'");
$array3 = $con->query("select * from userAccounts where accountNo =
'$_POST[otherNo]'");
{
if ($array2->num_rows > 0)
{ $row2 = $array2->fetch_assoc();
echo "<div class='alert alert-success w-50 mx-auto'>
<form method='POST'>
Account No.

<input type='text' value='$row2[accountNo]' name='otherNo' class='form-control ' readonly


required>
Account Holder Name.
<input type='text' class='form-control' value='$row2[holderName]' readonly required>
Account Holder Bank Name.
<input type='text' class='form-control' value='$row2[bankName]' readonly required>
Enter Amount for tranfer.

<input type='number' name='amount' class='form-control' min='1' max='$userData[balance]'


required>
<button type='submit' name='transfer' class='btn btn-primary btn-bloc btn-sm my-
1'>Tranfer</button>
</form>
</div>";
}elseif ($array3->num_rows > 0) {
$row2 = $array3->fetch_assoc();
echo "<div class='alert alert-success w-50 mx-auto'>

<form method='POST'>
Account No.
<input type='text' value='$row2[accountNo]' name='otherNo' class='form-control ' readonly
required>
Account Holder Name.

<input type='text' class='form-control' value='$row2[name]' readonly required>


Account Holder Bank Name.
<input type='text' class='form-control' value='".bankname."' readonly required>
Enter Amount for tranfer.
<input type='number' name='amount' class='form-control' min='1' max='$userData[balance]'
required>
<button type='submit' name='transferSelf' class='btn btn-primary btn-bloc btn-sm my-
1'>Tranfer</button>
</form>
</div>";
}
else
echo "<div class='alert alert-success w-50 mx-auto'>Account No. $_POST[otherNo] Does not
exist</div>";
}
}
?>
<br>
<h5>Transfer History</h5>
<?php
if (isset($_POST['transferSelf']))
{
$amount = $_POST['amount'];
setBalance($amount,'debit',$userData['accountNo']);
setBalance($amount,'credit',$_POST['otherNo']);
makeTransaction('transfer',$amount,$_POST['otherNo']);

echo "<script>alert('Transfer Successfull');window.location.href='transfer.php'</script>";


}
if (isset($_POST['transfer']))
{
$amount = $_POST['amount'];
setBalance($amount,'debit',$userData['accountNo']);
makeTransaction('transfer',$amount,$_POST['otherNo']);

echo "<script>alert('Transfer Successfull');window.location.href='transfer.php'</script>";


}
$array = $con->query("select * from transaction where userId = '$userData[id]' AND action =
'transfer' order by date desc");
if ($array ->num_rows > 0)
{
while ($row = $array->fetch_assoc())
{
if ($row['action'] == 'transfer')
{
echo "<div class='alert alert-warning'>Transfer have been made for Rs.$row[debit] from
your account at $row[date] in account no.$row[other]</div>";
}

}
}
else
echo "<div class='alert alert-info'>You have made no transfer yet.</div>";
?>
</div>
<div class="card-footer text-muted">
<?php echo bankname ?>
</div>
</div>

</div>
</body>
</html>

Accounts:
<?php
session_start();
if(!isset($_SESSION['userId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>

</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link " href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active "> <a class="nav-link" href="accounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="statements.php">Account
Statements</a></li>
<li class="nav-item "> <a class="nav-link" href="transfer.php">Funds Transfer</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->

</ul>
<?php include 'sideButton.php'; ?>

</div>
</nav><br><br><br>
<div class="container">
<div class="card w-75 mx-auto">
<div class="card-header text-center">
Your account Information

</div>
<div class="card-body">
<table class="table table-striped table-dark w-75 mx-auto">
<thead>
<tr>
<td scope="col">Account No.</td>
<th scope="col"><?php echo $userData['accountNo']; ?></th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Branch</th>
<td><?php echo $userData['branchName']; ?></td>
</tr>
<tr>
<th scope="row">Branch Code</th>
<td><?php echo $userData['branchNo']; ?></td>
</tr>
<tr>
<th scope="row">Account Type</th>
<td><?php echo $userData['accountType']; ?></td>
</tr>
<tr>
<th scope="row">Account Created</th>
<td><?php echo $userData['date']; ?></td>
</tr>
</tbody>
</table>

</div>
<div class="card-footer text-muted">
<?php echo bankname ?>
</div>
</div>

</div>
</body>
</html>

Feedback:

<?php
session_start();

if(!isset($_SESSION['userId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php
$error = "";
if (isset($_POST['userLogin']))
{
$error = "";
$user = $_POST['email'];
$pass = $_POST['password'];

$result = $con->query("select * from userAccounts where email='$user' AND


password='$pass'");
if($result->num_rows>0)
{
session_start();
$data = $result->fetch_assoc();
$_SESSION['userId']=$data['id'];

$_SESSION['user'] = $data;
header('location:index.php');
}
else
{
$error = "<div class='alert alert-warning text-center rounded-0'>Username or password wrong
try again!</div>";

}
}

?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link " href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item "> <a class="nav-link" href="accounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="statements.php">Account
Statements</a></li>
<li class="nav-item "> <a class="nav-link" href="transfer.php">Funds Transfer</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->

</ul>
<?php include 'sideButton.php'; ?>
</div>
</nav><br><br><br>
<div class="container">
<div class="card w-75 mx-auto">

<div class="card-header text-center">


Help Card
</div>
<div class="card-body">
<form method="POST">
<div class="alert alert-success w-50 mx-auto">
<h5>Enter your message</h5>
<textarea class="form-control" name="msg" required placeholder="Write your
message"></textarea>
<button type="submit" name="send" class="btn btn-primary btn-block btn-sm my-
1">Send</button>
</div
</form>
<br>
<?php
if (isset($_POST['send']))
{
if ($con->query("insert into feedback (message,userId) values
('$_POST[msg]','$_SESSION[userId]')")) {
echo "<div class='alert alert-success'>Successfully send</div>";
}else
echo "<div class='alert alert-danger'>Not sent Error is:".$con->error."</div>";
}
?>
</div>
<div class="card-footer text-muted">
<?php echo bankname ?>
</div>
</div>
</div>
</body>
</html>

Mindex:

<?php
session_start();
if(!isset($_SESSION['managerId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php if (isset($_GET['delete']))
{
if ($con->query("delete from useraccounts where id = '$_GET[delete]'"))
{
header("location:mindex.php");
}
} ?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link active" href="mindex.php">Home <span class="sr-
only">(current)</span></a>
</li>
<li class="nav-item "> <a class="nav-link" href="maccounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="maddnew.php">Add New
Account</a></li>
<li class="nav-item "> <a class="nav-link" href="mfeedback.php">Feedback</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="transfer.php">Funds
Transfer</a></li> -->
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->
</ul>
<?php include 'msideButton.php'; ?>

</div>
</nav><br><br><br>
<div class="container">
<div class="card w-100 text-center shadowBlue">

<div class="card-header">
All accounts
</div>
<div class="card-body">
<table class="table table-bordered table-sm">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Holder Name</th>
<th scope="col">Account No.</th>
<th scope="col">Branch Name</th>
<th scope="col">Current Balance</th>
<th scope="col">Account type</th>
<th scope="col">Contact</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<?php
$i=0;
$array = $con->query("select * from useraccounts,branch where useraccounts.branch =
branch.branchId");
if ($array->num_rows > 0)
{
while ($row = $array->fetch_assoc())
{$i++;
?>
<tr>
<th scope="row"><?php echo $i ?></th>
<td><?php echo $row['name'] ?></td>
<td><?php echo $row['accountNo'] ?></td>
<td><?php echo $row['branchName'] ?></td>
<td>Rs.<?php echo $row['balance'] ?></td>
<td><?php echo $row['accountType'] ?></td>
<td><?php echo $row['number'] ?></td>
<td>
<a href="show.php?id=<?php echo $row['id'] ?>" class='btn btn-success btn-sm' data-
toggle='tooltip' title="View More info">View</a>
<a href="mnotice.php?id=<?php echo $row['id'] ?>" class='btn btn-primary btn-sm' data-
toggle='tooltip' title="Send notice to this">Send Notice</a>
<a href="mindex.php?delete=<?php echo $row['id'] ?>" class='btn btn-danger btn-sm' data-
toggle='tooltip' title="Delete this account">Delete</a>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<div class="card-footer text-muted">
<?php echo bankname; ?>
</div>
</div>
</body>
</html>

Maccounts:
<?php
session_start();
if(!isset($_SESSION['managerId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php if (isset($_GET['delete']))
{
if ($con->query("delete from useraccounts where id = '$_GET[id]'"))
{
header("location:mindex.php");
}
} ?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link " href="mindex.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active"> <a class="nav-link" href="maccounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="maddnew.php">Add New
Account</a></li>
<li class="nav-item "> <a class="nav-link" href="mfeedback.php">Feedback</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="transfer.php">Funds
Transfer</a></li> -->
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->
</ul>
<?php include 'msideButton.php'; ?>
</div>
</nav><br><br><br>
<?php
if (isset($_POST['saveAccount']))
{
if (!$con->query("insert into login (email,password,type) values
('$_POST[email]','$_POST[password]','cashier')")) {
echo "<div claass='alert alert-success'>Failed. Error is:".$con->error."</div>";
}
}
if (isset($_GET['del']) && !empty($_GET['del']))
{
$con->query("delete from login where id ='$_GET[del]'");
}
$array = $con->query("select * from login where type='cashier'");

?>
<div class="container">
<div class="card w-100 text-center shadowBlue">
<div class="card-header">
All Staff Accounts <button class="btn btn-outline-success btn-sm float-right" data-
toggle="modal" data-target="#exampleModal">Add New Account</button>
</div>
<div class="card-body">
<table class="table table-bordered">
<thead>
<tr>
<th>Email</th>
<th>Password</th>
<th>Account Type</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
if ($array->num_rows > 0)
{
while ($row = $array->fetch_assoc())
{
echo "<tr>";
echo "<td>".$row['email']."</td>";
echo "<td>".$row['password']."</td>";
echo "<td>".$row['type']."</td>";
echo "<td><a href='maccounts.php?del=$row[id]' class='btn btn-danger btn-
sm'>Delete</a></td>";
echo "</tr>";
}
}
?>
</tbody>
</table>
</div>
<div class="card-footer text-muted">
<?php echo bankname; ?>
</div>
</div>

<!-- Modal -->


<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-
labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">New Cashier Account</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">

<form method="POST">
Enter Details
<input class="form-control w-75 mx-auto" type="email" name="email" required
placeholder="Email">
<input class="form-control w-75 mx-auto" type="password" name="password" required
placeholder="Password">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" name="saveAccount" class="btn btn-primary">Save
Account</button>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
Maddnew:
<?php
session_start();
if(!isset($_SESSION['managerId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php if (isset($_GET['delete']))
{
if ($con->query("delete from useraccounts where id = '$_GET[id]'"))
{
header("location:mindex.php");
}
} ?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link " href="mindex.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item "> <a class="nav-link" href="maccounts.php">Accounts</a></li>
<li class="nav-item active"> <a class="nav-link" href="maddnew.php">Add New
Account</a></li>
<li class="nav-item "> <a class="nav-link" href="mfeedback.php">Feedback</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="transfer.php">Funds
Transfer</a></li> -->
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->
</ul>
<?php include 'msideButton.php'; ?>
</div>
</nav><br><br><br>
<?php
if (isset($_POST['saveAccount']))
{
if (!$con->query("insert into useraccounts
(name,cnic,accountNo,accountType,city,address,email,password,balance,source,number,bran
ch) values
('$_POST[name]','$_POST[cnic]','$_POST[accountNo]','$_POST[accountType]','$_POST[cit
y]','$_POST[address]','$_POST[email]','$_POST[password]','$_POST[balance]','$_POST[sou
rce]','$_POST[number]','$_POST[branch]')")) {
echo "<div claass='alert alert-success'>Failed. Error is:".$con->error."</div>";
}
else
echo "<div class='alert alert-info text-center'>Account added Successfully</div>";

}
if (isset($_GET['del']) && !empty($_GET['del']))
{
$con->query("delete from login where id ='$_GET[del]'");
}
?>
<div class="container">
<div class="card w-100 text-center shadowBlue">

<div class="card-header">
New Account Forum
</div>
<div class="card-body bg-dark text-white">
<table class="table">
<tbody>
<tr>
<form method="POST">
<th>Name</th>
<td><input type="text" name="name" class="form-control input-sm" required></td>
<th>CNIC</th>
<td><input type="number" name="cnic" class="form-control input-sm" required></td>
</tr>
<tr>
<th>Account Number</th>
<td><input type="" name="accountNo" readonly value="<?php echo time() ?>" class="form-
control input-sm" required></td>
<th>Account Type</th>
<td>
<select class="form-control input-sm" name="accountType" required>
<option value="current" selected>Current</option>
<option value="saving" selected>Saving</option>
</select>
</td>
</tr>
<tr>
<th>City</th>
<td><input type="text" name="city" class="form-control input-sm" required></td>
<th>Address</th>
<td><input type="text" name="address" class="form-control input-sm" required></td>
</tr>
<tr>
<th>Email</th>
<td><input type="email" name="email" class="form-control input-sm" required></td>
<th>Password</th>
<td><input type="password" name="password" class="form-control input-sm"
required></td>
</tr>
<tr>
<th>Deposit</th>
<td><input type="number" name="balance" min="500" class="form-control input-sm"
required></td>
<th>Source of income</th>
<td><input type="text" name="source" class="form-control input-sm" required></td>
</tr>
<tr>
<th>Contact Number</th>
<td><input type="number" name="number" class="form-control input-sm" required></td>
<th>Branch</th>
<td>
<select name="branch" required class="form-control input-sm">
<option selected value="">Please Select..</option>
<?php
$arr = $con->query("select * from branch");
if ($arr->num_rows > 0)

{
while ($row = $arr->fetch_assoc())
{
echo "<option value='$row[branchId]'>$row[branchName]</option>";
}
}
else
echo "<option value='1'>Main Branch</option>";
?>
</select>
</td>
</tr>
<tr>
<td colspan="4">
<button type="submit" name="saveAccount" class="btn btn-primary btn-sm">Save
Account</button>
<button type="Reset" class="btn btn-secondary btn-sm">Reset</button></form>
</td>
</tr>
</tbody>
</table>

</div>
<div class="card-footer text-muted">
<?php echo bankname; ?>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-
labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">New Cashier Account</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form method="POST">
Enter Details

<input class="form-control w-75 mx-auto" type="email" name="email" required


placeholder="Email">
<input class="form-control w-75 mx-auto" type="password" name="password" required
placeholder="Password">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" name="saveAccount" class="btn btn-primary">Save
Account</button>
</form>
</div>
</div>
</div>
</div>
</body>
</html>

Mfeedback:
<?php
session_start();
if(!isset($_SESSION['managerId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php if (isset($_GET['delete']))
{
if ($con->query("delete from feedback where feedbackId = '$_GET[delete]'"))
{
header("location:mfeedback.php");
}
} ?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link " href="mindex.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item "> <a class="nav-link" href="maccounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="maddnew.php">Add New
Account</a></li>
<li class="nav-item active"> <a class="nav-link" href="mfeedback.php">Feedback</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="transfer.php">Funds
Transfer</a></li> -->
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> </ul>
<?php include 'msideButton.php'; ?>
</div>
</nav><br><br><br>
<div class="container">
<div class="card w-100 text-center shadowBlue">

<div class="card-header">
Feedback from Account Holder
</div>
<div class="card-body">
<table class="table table-bordered table-sm bg-dark text-white">
<thead>
<tr>
<th scope="col">From</th>
<th scope="col">Account No.</th>
<th scope="col">Contact</th>
<th scope="col">Message</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<?php
$i=0;
$array = $con->query("select * from useraccounts,feedback where useraccounts.id =
feedback.userId");
if ($array->num_rows > 0)
{
while ($row = $array->fetch_assoc())
{
?>
<tr>
<td><?php echo $row['name'] ?></td>
<td><?php echo $row['accountNo'] ?></td>
<td><?php echo $row['number'] ?></td>
<td><?php echo $row['message'] ?></td>
<td>
<a href="mfeedback.php?delete=<?php echo $row['feedbackId'] ?>" class='btn btn-danger
btn-sm' data-toggle='tooltip' title="Delete this Message">Delete</a>
</td>

</tr>
<?php
}
}
?>
</tbody>
</table>
<div class="card-footer text-muted">
<?php echo bankname; ?>
</div>
</div>
</body>
</html>

Mnotice:
<?php
session_start();
if(!isset($_SESSION['managerId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php if (isset($_GET['delete']))
{
if ($con->query("delete from useraccounts where id = '$_GET[id]'"))
{
header("location:mindex.php");
}
} ?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link active" href="mindex.php">Home <span class="sr-
only">(current)</span></a>
</li>
<li class="nav-item "> <a class="nav-link" href="maccounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="maddnew.php">Add New
Account</a></li>
<li class="nav-item "> <a class="nav-link" href="mfeedback.php">Feedback</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="transfer.php">Funds
Transfer</a></li> -->
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->
</ul>
<?php include 'msideButton.php'; ?>
</div>
</nav><br><br><br>
<?php
$array = $con->query("select * from useraccounts where id = '$_GET[id]'");
$row = $array->fetch_assoc();
?>
<div class="container">
<div class="card w-100 text-center shadowBlue">
<div class="card-header">
Send Notice to <?php echo $row['name'] ?>
</div>
<div class="card-body">
<form method="POST">
<div class="alert alert-success w-50 mx-auto">
<h5>Write notice for <?php echo $row['name'] ?></h5>
<input type="hidden" name="userId" value="<?php echo $row['id'] ?>">
<textarea class="form-control" name="notice" required placeholder="Write your
message"></textarea>
<button type="submit" name="send" class="btn btn-primary btn-block btn-sm my-
1">Send</button>
</div>
</form><?php
if (isset($_POST['send']))
{
if ($con->query("insert into notice (notice,userId) values
('$_POST[notice]','$_POST[userId]')")) {

echo "<div class='alert alert-success'>Successfully send</div>";


}else
echo "<div class='alert alert-danger'>Not sent Error is:".$con->error."</div>";
}

?>
</div>
<div class="card-footer text-muted">
<?php echo bankname; ?>
</div>
</div>
</body>
</html>

Msidebutton:
<form class="form-inline my-2 my-lg-0">
<button class="btn btn-outline-success">Welecome Manager</button>
<a href="logout.php" data-toggle="tooltip" title="Logout" class="btn btn-outline-danger mx-
1" ><i class="fa fa-sign-out fa-fw"></i></a>
</form>
Cindex:
<?php
session_start();
if(!isset($_SESSION['cashId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>
<?php $note ="";
if (isset($_POST['withdrawOther']))
{
$accountNo = $_POST['otherNo'];
$checkNo = $_POST['checkno'];

$amount = $_POST['amount'];
if(setOtherBalance($amount,'debit',$accountNo))
$note = "<div class='alert alert-success'>successfully transaction done</div>";
else
$note = "<div class='alert alert-danger'>Failed</div>";
}
if (isset($_POST['withdraw']))
{

setBalance($_POST['amount'],'debit',$_POST['accountNo']);
makeTransactionCashier('withdraw',$_POST['amount'],$_POST['checkno'],$_POST['userId'])
;
$note = "<div class='alert alert-success'>successfully transaction done</div>";

}
if (isset($_POST['deposit']))
{

setBalance($_POST['amount'],'credit',$_POST['accountNo']);

makeTransactionCashier('deposit',$_POST['amount'],$_POST['checkno'],$_POST['userId']);
$note = "<div class='alert alert-success'>successfully transaction done</div>";

}
?>
</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">
<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link active" href="cindex.php">Home <span class="sr-
only">(current)</span></a>

</li>
<!-- <li class="nav-item"><a class="nav-link" href="caccounts.php">Account
Setting</a></li> -->
<!-- <li class="nav-item"><a class="nav-link" href="statements.php">Account
Statements</a></li>
<li class="nav-item"><a class="nav-link" href="transfer.php">Funds Transfer</a></li> -->
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->
</ul>
<?php include 'csideButton.php'; ?>

</div>
</nav><br><br><br>
<div class="row w-100" style="padding: 11px">
<div class="col">
<div class="card text-center w-75 mx-auto">
<div class="card-header">
Account Information

</div>
<div class="card-body">
<p class="card-text"><?php echo $note; ?>
<form method="POST">
<div class="alert alert-success w-50 mx-auto">
<h5>Enter Account Number</h5>
<input type="text" name="otherNo" class="form-control " placeholder="Enter Account
number" required>
<button type="submit" name="get" class="btn btn-primary btn-bloc btn-sm my-1">Get
Account Info</button>
</div>
</form>
</p>
<?php if (isset($_POST['get']))
{
$array2 = $con->query("select * from otheraccounts where accountNo =
'$_POST[otherNo]'");
$array3 = $con->query("select * from userAccounts where accountNo =
'$_POST[otherNo]'");
{
if ($array2->num_rows > 0)
{ $row2 = $array2->fetch_assoc();
echo "<div class='row'>

<div class='col'>

<form method='POST'>
Account No.
<input type='text' value='$row2[accountNo]' name='otherNo' class='form-control ' readonly
required>
Account Holder Name.

<input type='text' class='form-control' value='$row2[holderName]' readonly required>


Account Holder Bank Name.
<input type='text' class='form-control' value='$row2[bankName]' readonly required>

</div>

<div class='col'>
Bank Balance
<input type='text' class='form-control my-1' value='Rs.$row2[balance]' readonly required>
<input type='number' class='form-control my-1' name='checkno' placeholder='Write Check
Number' required>
<input type='number' class='form-control my-1' name='amount' placeholder='Write Amount'
max='$row2[balance]' required>
<button type='submit' name='withdrawOther' class='btn btn-success btn-bloc btn-sm my-1'>
Withdraw</button></form>
</div>
</div>";
}elseif ($array3->num_rows > 0) {
$row2 = $array3->fetch_assoc();
echo "
<div class='row'>
<div class='col'>

Account No.
<input type='text' value='$row2[accountNo]' name='otherNo' class='form-control ' readonly
required>
Account Holder Name.

<input type='text' class='form-control' value='$row2[name]' readonly required>


Account Holder Bank Name.
<input type='text' class='form-control' value='".bankName."' readonly required>Bank Balance
<input type='text' class='form-control my-1' value='Rs.$row2[balance]' readonly required>

</div>
<div class='col'>
Transaction Process.

<form method='POST'>

<input type='hidden' value='$row2[accountNo]' name='accountNo' class='form-control '


required>
<input type='hidden' value='$row2[id]' name='userId' class='form-control ' required>
<input type='number' class='form-control my-1' name='checkno' placeholder='Write Check
Number' required>
<input type='number' class='form-control my-1' name='amount' placeholder='Write Amount
for withdraw' max='$row2[balance]' required>
<button type='submit' name='withdraw' class='btn btn-primary btn-bloc btn-sm my-1'>
Withdraw</button></form><form method='POST'>
<input type='hidden' value='$row2[accountNo]' name='accountNo' class='form-control '
required>
<input type='hidden' value='$row2[id]' name='userId' class='form-control ' required>
<input type='number' class='form-control my-1' name='checkno' placeholder='Write Check
Number' required>
<input type='number' class='form-control my-1' name='amount' placeholder='Write Amount
for deposit' required>
<button type='submit' name='deposit' class='btn btn-success btn-bloc btn-sm my-1'>
Deposit</button></form>

</div>

</div>
";
}
else
echo "<div class='alert alert-success w-50 mx-auto'>Account No. $_POST[otherNo] Does not
exist</div>";
}
}
?>
</div>
<div class="card-footer text-muted">
<?php echo bankname; ?>
</div>
</div>
</div>

</div>
</body>
</html>

Csidebutton:
<form class="form-inline my-2 my-lg-0">

<button class="btn btn-outline-success">Welecome Cashier</button>


<a href="logout.php" data-toggle="tooltip" title="Logout" class="btn btn-outline-danger mx-
1" ><i class="fa fa-sign-out fa-fw"></i></a>
</form>
OUTPUT:
home page:

manager home page:

m.accounts:
m.addnew:
v)m.feedback:

user home:

user accounts:
user notification:

user account statements:


user fund transfer:

help:
cashier home:

CASHIER TRANSACTION SUCCESSFUL:


DATABASE CONNECTION:

8.SUMMARY:

1.) Nothing is perfect in the world. So we also no exception. I have tried my best
to build this project with efficient information.

2.) The main focus of this project is to save the customer time. The maintenance
of the records is made efficient, as all the records are stored in the Xampp
database, through which data can be retrieved easily.
9.REFERENCES:

Singh S, Customer perception of mobile banking: An empirical study in National


Capital Region Delhi J. Internet Bank Commer, Array Develop. 2014;19:3.

Bamoriya PS, Singh P, ‘Issues & challenges in mobile banking in India: A customers
Perspective’ Res J Fin Account, 2011;2:1697

Mostafa AAN, Eneizan B. Factors Affecting Acceptance of Mobile Banking in


Developing Countries, Intern J Acade Res Bus Soc Sci. 2018;8:1

Slade EL, Dwivedi YK, Piercy NC, Williams MD. Modeling Consumers’ Adoption
Intentions of Remote Mobile Payments in the United Kingdom: Extending UTAUT
with Innovativeness, Risk, and Trust. Psycho Mark. 2015;32(8):860-873.

Purwati ED, Soewarno N, Isnalita. The Influence of Innovation Attributes and Level
of Trust on Mobile Banking Adoption. KnE Soc Sci. 2018;2018:974–988

10.APPENDIX A
<?php
session_start();

if(!isset($_SESSION['userId'])){ header('location:login.php');}
?>
<!DOCTYPE html>
<html>
<head>
<title>Banking</title>
<?php require 'assets/autoloader.php'; ?>
<?php require 'assets/db.php'; ?>
<?php require 'assets/function.php'; ?>

</head>
<body style="background:#96D678;background-size: 100%">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">
<img src="images/logo.png" width="30" height="30" class="d-inline-block align-top"
alt="">

<!-- <i class="d-inline-block fa fa-building fa-fw"></i> --><?php echo bankname; ?>


</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">


<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link " href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active "> <a class="nav-link" href="accounts.php">Accounts</a></li>
<li class="nav-item "> <a class="nav-link" href="statements.php">Account
Statements</a></li>
<li class="nav-item "> <a class="nav-link" href="transfer.php">Funds Transfer</a></li>
<!-- <li class="nav-item "> <a class="nav-link" href="profile.php">Profile</a></li> -->

</ul>
<?php include 'sideButton.php'; ?>
</div>
</nav><br><br><br>
<div class="container">
<div class="card w-75 mx-auto">
<div class="card-header text-center">
Notification from Bank

</div>
<div class="card-body">
<?php
$array = $con->query("select * from notice where userId = '$_SESSION[userId]' order by
date desc");
if ($array->num_rows > 0)
{
while ($row = $array->fetch_assoc())
{
echo "<div class='alert alert-success'>$row[notice]</div>";
}
}
else
echo "<div class='alert alert-info'>Notice box empty</div>";
?>
</div>
<div class="card-footer text-muted">
<?php echo bankname ?>
</div>
</div>

</div>
</body>
</html>

You might also like