Professional Documents
Culture Documents
Ajith Project
Ajith Project
Bachelor of Science
in
Computer Science
by
Jayakumar K - 18BCS0078
Vetri S - 18BCS0115
Ajith Kumar v - 18BCS0108
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
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
ACKNOWLEDGEMENT
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.
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
6 PROJECT DEMONSTRATION 14
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
+ 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.
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.
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
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.
=>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.
4.1 ER DIAGRAM
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.
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.
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.
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.
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:
USER LOGIN
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.
CASHIER ACCOUNT
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.
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
-- --------------------------------------------------------
--
-- Table structure for table `branch`
--
--
-- Dumping data for table `branch`
--
-- --------------------------------------------------------
--
-- Table structure for table `feedback`
--
--
-- Dumping data for table `feedback`
--
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
--
-- 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'),
-- --------------------------------------------------------
--
-- Table structure for table `notice`
--
--
-- Dumping data for table `notice`
--
-- --------------------------------------------------------
--
-- Table structure for table `otheraccounts`
--
--
-- Dumping data for table `otheraccounts`
--
-- --------------------------------------------------------
--
-- Table structure for table `transaction`
--
--
-- Dumping data for table `transaction`
--
-- --------------------------------------------------------
--
-- Table structure for table `useraccounts`
--
--
-- 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`
--
--
-- Indexes for table `notice`
--
--
-- 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`
--
--
-- 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
$error = "";
if (isset($_POST['userLogin']))
{
$error = "";
$user = $_POST['email'];
$pass = $_POST['password'];
}
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'];
{
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'];
//$_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>
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>
</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>
</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>
</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'];
}
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>
</ul>
</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'];
$_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">
<form method='POST'>
Account No.
<input type='text' value='$row2[accountNo]' name='otherNo' class='form-control ' readonly
required>
Account Holder Name.
}
}
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>
</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'];
$_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>
</ul>
<?php include 'sideButton.php'; ?>
</div>
</nav><br><br><br>
<div class="container">
<div class="card w-75 mx-auto">
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="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>
<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">×</span>
</button>
</div>
<div class="modal-body">
<form method="POST">
Enter Details
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>
<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>
</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.
</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.
</div>
<div class='col'>
Transaction Process.
<form method='POST'>
</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">
m.accounts:
m.addnew:
v)m.feedback:
user home:
user accounts:
user notification:
help:
cashier home:
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:
Bamoriya PS, Singh P, ‘Issues & challenges in mobile banking in India: A customers
Perspective’ Res J Fin Account, 2011;2:1697
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="">
</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>