REPORT OF E-Postal Service 2
REPORT OF E-Postal Service 2
REPORT OF E-Postal Service 2
DHARWAD
Janata Shikshana Samiti’s
A PROJECT REPORT ON
“E-POSTAL SERVICE”
BACHELOR OF COMPUTER SCIENCE
OF
KARNATAK UNIVERSITY, DHARWAD
PROJECT GUIDED BY
Miss.Padmavathi Shyadambi
Submitted By
Soumya Nerkar Alakya CH
BSC(CS) VI SEMESTER BSC(CS)VI SEMESTER
REG NO:18M10168 REGNO:18M10106
DEPARTMENT OF COMPUTER SCIENCE
2020-2021
JANATA SHIKSHAN SAMITI’S
SHRI MANJUNATHESHWARA INSTITUTE OF UG & PG
STUDIES, VIDYAGIRI, DHARWAD-580004
CERTIFICATE
Examiners:
1) 2)
ACKNOWLEDGEMENT
We would like to express our sincere gratitude to our beloved Principal Dr.
Ajith Prasad who gave us inspiration and moral support. We offer our heartily gratitude
to our H.O.D Shri. Vivek M. Laxmeshwar of Computer Science Department who gave us
knowledge and an opportunity to do the project on “E-POSTAL SERVICE”, which also
helped us in doing a lot of research and where expose to many new things.
We would also take this opportunity to offer our sincere gratitude to our Project
Guide Miss.Padmavathi Shyadambi for her excellent support throughout the development
of this project and for providing the necessary information on our request at all times.
We, Soumya Nerkar and Alakya CH, students of sixth semester BSC(CS), Department of
Computer Science, JSS SMI UG AND PG STUDIES VIDYAGIRI, DHARWAD, Karnatak
University declare that the project entitled “E-POSTAL SERVICE” has been submitted in
partial fulfillment of the course requirement for the award of degree in Bachelor of Science
(Computer Science), Karnatak University, Dharwad during the academic year 2020-2021. We
have not submitted the matter embodied to any other university or institution for the award of
any other degree.
3. PROJECT SUBJECT…………………………………………..7
4. SOFTWARE REQUIREMENTS SPECIFICATION………….10
4.1. Introduction
4.1.1. Purpose
4.1.2. Document Conventions
4.1.3. Scope
4.1.4. References
4.2. General Description
4.2.1. Product Functionalities
4.2.2. User Characteristics
4.3. Specific Requirements
4.3.1. Functional Requirements
4.3.2. Other Non-Functioal Requirements
4.3.3. External Interface Requirements
6. IMPLEMENTATION…………………………………………..21
6.1. Introduction
6.2. Database Evolution
7. DATABASE TABLES…………………………………………26
7.1. Tables Used In Database
8. SCREEN SHOTS……………………………………………...29
9. SOURCE CODE……………………………………………….34
10.TESTING……………………………………………………….59
10.1. Software Testing
10.1.1. Introduction
10.1.2. Levels Of Testing
10.2. Validating The Tables
10.3. Functional Testing
11. CONCLUTION………………………………………………..69
12. BIBLIOGRAPHY……………………………………………..67
12.1. Books
12.2. Websites
1. PROJECT SYNOPSIS
1.1 INTRODUTION
• Speedy and efficient information processing is required to our socially and highly
developed technology.
• Computer can help the intolerable burden of handling the ever-increasing amount
of information with government department, public services and business concerns
expected to contain because of their ability to analyze information as well as to retain,
update and reproduce it because of their versality to present it in a variety of forms.
• This may also lead to problems occurring due to information explosion.
Add notifications
1.5 TOOLS/PLATFORM
Browser (Google Chrome)
1.10 LIMITATIONS
▪ It is very time-consuming process.
▪ The person must wait for long time for officers.
If any officers are not available in the town the process delay.
▪ It uses internet.
2.2 Dreamweaver
A website authoring program originally developed by Macromedia. It does many things
including allowing designer to move back and forth between visual and HTML modes.
2.3 PHP
PHP is a scripting language originally designed for producing dynamic webpages. It has
evolved to include a command line interface capability and can be used in standalone graphical
application. While PHP was originally created by RasmusLerdorf in 1995, the main
implementation of PHP is now produced by the PHP Groups and serves as the de facto standard
for PHP as there is no formal specification.
PHP is a scripting language under the PHP License; however, it is incompatible with
the GNU General Public License (GPL). Due to restrictions on the usage of the term PHP. It is
widely used general-purpose scripting language that is especially suited for web development
and can be embedded into HTML. It generally runs on a web server, taking PHP code as its
input, I am creating web pages as out puts. It can be deployed on web servers and on almost
every operating system and platform free of charge. PHP in installed on more the twenty
million web sites and one million web servers.
PHP Architecture
Usage
PHP primarily acts as a filter, taking input from a file or stream containing text and/or
PHP instructions and outputs another stream of data; most commonly the output will be HTML.
It can automatically detect the language of the user. From PHP 4, the PHP parser compiles
input to produce byte code for processing by the Zend Engine, giving improved performance
over its interpreter predecessor. Originally designed to create dynamic web pages, PHP’s
principal focus is server-side scripting, and it is similar to other server-side scripting languages
that provide dynamic content from a web server to a client, such as Microsoft’s Active Server
Pages, Sun Microsystems JavaServer Pages, and mod_perl. PHP has also attracted the
development of many frameworks that provide building blocks and a design structure to
promote rapid application development (RAD). Some of these include CakePHP, Symfony,
CodeIgniter, and Zend Framework, offering features similar to other web application
frameworks.
The WAMP architecture has become popular in the web industry as a way of deploying web
applications. PHP is commonly used as the PHP in this bundle alongside Linux, Apache and
MySQL, although they may also refer to Python or Perl. As of April 2007, over 20 million
Internet domains were hosted on servers with PHP installed, and PHP was recorded as the most
popular Apache module. Significant websites are written in PHP including the user-facing
portion of Facebook, Wikipedia (MediaWiki), Yahoo!, MyYearbook, Wordpress.
In addition to server-side scripting, PHP can be used to create stand-alone, compiled
applications and libraries, it can be used for shell scripting.
2.4 WAMP
Stands for “Windows Apache MySQL, and PHP”. WAMP is a variation of LAMP for
windows system and is often installed as a software bundle (Apache, MySQL, and PHP). It is
often used for web development and internal testing but may also be used to serve live wed
site.
The important part of the WAMP is Apache (or “Apache HTTP Server”) which is used
to run the web server within the windows. By running the locate Apache Web Server on a
Windows machine, a web developer can test web pages in a web browser with out-publishing
live on the internet.
WAMP also includes MySQL and PHP, which are two of the most common
technologies used for creating dynamic web sites. MySQL is a high-speed database while PHP
is a scripting language that can be used to access data from data base. by installing these two
components locally a developer can build and test a dynamic web site before publishing it to a
public web server.
While Apache, MySQL and PHP are open-source components that can be installed
individually, they are usually installed together. One popular package is called “WAMP
Sever”, which provides a user-friendly way to install and configure the “AMP” components on
windows.
2.5 MY SQL
What is Database?
Quite simply, Its an organised collection of data. A Database management system (DBMS)
such as access file maker Pro, Oracle or SQL server provides you with the software tools you
need to organize that data in a flexible manner. It includes facilities to add modify or delete
data from database, ask questions (or queries) about the data stored in the database and produce
reports summarizing selected contents.
My SQL is a multithreaded, multi-user SQL database management system
(DBMS). The basic program runs as a server providing multi-user access to several databases.
My SQL was owned and sponsored by a single for-profit firm the Sidish company. My SQL
now a subsidiary of Sun Micro System, which hold the copy write to most of the database. The
data in My SQL is stored in database objects called Tables. A table is a collection of related
data entries and consist of columns and rows. Databases are useful when storing information
categorically.
System Requirements
Minimum Hardware Required for project
• Domain: Web Application
• Processor: Pentium III and above
• RAM: 128 MB
• Monitor: VGA monitor
• Keyboard and a mouse
• Celeron or higher processor
• 256MB RAM
• 40 GB Hard Disk
• Windows NT/2000/XP
• Macromedia Dream weaver
BACK END:
▪ MySql
Programming Language: JAVA Script, PHP, JSON
3.PROJECT SUBJECT
▪ Speedy and efficient information processing is required to our socially and highly
developed technology.
▪ Computer can help the intolerable burden of handling the ever-increasing amount
of information with government department, public services and business concerns
expected to contain because of their ability to analyze information as well as to
retain, update and reproduce it because of their versality to present it in a variety of
forms.
▪ This may also lead to problems occurring due to information explosion.
About the project
▪ POST OFFICE works in every walk of our life. Through the automation of this
system one can easily generate the information about the customer available and
about the old records.
▪ Our proposed system software can fulfill the requirements which are demanded by
the customer.
▪ The proposed system E-Postal Service can manage the activities like applying FD,
giving suggestions and complaints, calculating rate of interest and notification
about government schemes and postal exams.
This project includes following features: -
▪ Having customer information and total amount payable.
▪ For the help of user, it displays each and every detail about required topics.
▪ Maintains all the old record for later reference.
▪ Have provision for automatic update as per the status.
▪ Logout
2. User
▪ Register
▪ Login
▪ Apply E-Letter (Individual/Group)
▪ Create Fixed deposit
a. Upload receipt
b. View Status
▪ My Profile
▪ Logout
3. Deposit
4. Feedback
5. Notification
Module Description
ADMIN
• Admin Login
The main activities in the application are the admin login page for admin. The other modules are
followed by this login page. This module records only admin and password of the admin.
• Manage E – letter
Admin can manage the user’s e – letter and admin can transmit the respective addresses.
• Approve status
Admin can transmit the letters then admin can upload the status of approval.
• Manage fixed deposit
Admin can manage the fixed deposit account details and transaction details are maintained.
• User Login
The main activities in the application are the user login page for user. The other modules are
followed by this login page. This module records only user and password of the user.
• User Registration
Another main function of our proposed system is registration, in order to register with the unique
application details such as name; password, email, place and time are required.
• Apply E – letter
A user can apply letter based on user’s content is a service under which printed, or even
handwritten messages of customers are scanned and transmitted as email through internet.
• Create Fixed Deposit
A user can create their Fixed deposit in e – post department. The post office fixed deposit (POFD), also
known as ‘post office time deposit’ is a convenient alternative to the fixed deposits provided by banks.
Through this fixed deposit scheme that is offered by the Indian Postal Services, an individual can earn
a guaranteed return on the money deposited for a fixed period of time.
i.Upload receipt
A user create their fixed deposit and update their accounts details. Then, User will upload receipt of
fixed deposit.
View status
A user can view status of deposit process and account maintenance details. User can view whole
status.
My profile and Logout
User view my profile and if the user can update the profile details and then, the terminate their
account.
4. SOFTWARE REQUIREMENTS SPECIFICATION
4.1 INTRODUCTION
SRS is the official statement of what is required by the system developers; it includes both
user requirements for the system and detailed specification of the system requirements. This
document is used while designing the proposed system and can also be used in the future if the
system is to be enhanced.
4.1.1 Purpose
This document explains our team architecture, our teams’s initial understanding of the user
needs.
4.1.3 Scope
This document is intended for providing an abstract overview of the system and general
overview of the entire project. The scope of the document:
▪ Team Architecture,
▪ System Functional and Non-Functional Requirements
▪ Prototype of the System,
▪ Online payment acceptance for wide range of services.
4.1.4 Reference
https://codeshoppy.com/shop/product/e-post-office/
https://youtu.be/PKFczWVvrjA
https://studentprojectguide.com/php-projects/epost-office-management-system/
https://www.w3schools.com/
This section will give an overview of the whole application. The explanation of the application
will be in its context to show the application interacts with other systems and introduce the
basic functionality of it. It will also describe all the constraints and assumptions for the
application.
As per the requirements of the client, to build a customized application that facilitates to
maintain the entire details of the e-postal service to get through the demerits of existing manual
system with new implementations such as:
▪ The application and requests can be verified by the officers wherever they are and can
take necessary actions.
Existing System
Proposed System
The proposed system is E-POST. Here everything is done online. The activities like
depositing can be done through online. No waiting is required. And feedbacks can be given
through online. Even if the officer is not available in the village, he can verify application
online. It is very quick process than the existing system.
4.2.1 Product Functionalities
End Users
Administrator
a) Login
Authorization Fails
b) Change Password
Authorization Fails
▪ Prompt the user that he typed wrong password and allow him to re-enter. Give him 3
chances.
c) Forgot Password
Authorization Fails
▪ After successfully logging into the system, the depositor has to apply the FD amount,
and then enter the registration date, maturity date and year.
▪ The only requirement here is that the depositor needs to log into the system.
a) Performance Requirements
b) Security Requirements
▪ This application requires a user name with password is required to verify the
identification of the user.
a) User Interfaces
Most user-friendly interface has been designed, Login pages for the users and admin. The
main interfaces used in the system are the forms and menus.
b) Hardware Interfaces
The system does not require any additional hardware interfaces, so the user need not
focus on the hardware apart from the standard hardware.
c) Software Interfaces
5.1 Introduction
The purpose of the decision phase is to plan a solution of the problem specified by the
requirements document. This phase is the first step in moving the problem domain to the solution
domain. It involves the process, in which conceiving, planning and carrying out the plan
generating the necessary report, In other words, the design phase act as a bridge between SRS
and implementation phase. The design of the system is perhaps the most critical factor affecting
the quality of the software, and as a major impact on the later phase, particularly the testing and
maintenance.
Software Design
Design is the key phase of any project. It is the first step in moving from the problem
domain to the solution domain. The input to the design phase is the specifications of the system
to be designed. The output of the top-level design is the architectural design, or the system design
for the software system to be built. A design should be very clear, verifiable, complete, traceable,
efficient and simple.
Architecture Design
The architecture design defines the relationship among major structural element of the
program. Architecture diagram shows the relationship between different components of system.
This diagram helps to understand the overall concept of system.
Admin Web Wamp
Browser Server
which
manages Internet
user
interaction
with
website
Mysql
Logical design
The graphical representation of system data and how the process transforms the data
is known as Data Flow Diagram. It shows the logical flow of the data.
The logical design describes the detailed specification for the system, describing its
features, an effective communication and the user interface requirements. The logical design
of proposed system should include the following.
Design Principles
Basic design principles that enable the software engineer to navigate the design process are:
▪ The design should minimize the intellectual distance between the software and the
Actor/source/sink
The files which are outside the system and used by the process or processes of the system.
Objectives
• To graphically document boundaries of a system.
• To provide hierarchy breakdown of the system.
• To show movement of information between a system and its environment.
• To document information flows within the system.
• To aid communication between users and developers.
?>
Speed optimization
As with many scripting languages, PHP scripts are normally kept as human-readable
source code, even on production web servers. In this case, PHP scripts will be compiled at
runtime by the PHP engine, which increases their execution time. PHP scripts are able to be
compiled before runtime using PHP compilers as with other programming languages such as
C (the language PHP and its extensions are written in). Code optimizers aim to reduce the
computational complexity of the compiled code by reducing its size and making other changes
that can reduce the execution time with the overall goal of improving performance. The nature
of the PHP compilers such that there are often opportunities for code optimization, and an
example of a code optimizer is the Zend Optimizer PHP extension.
Another approach for reducing overhead for high load PHP servers is using PHP accelerators.
These can offer significant performance gains by caching the compiled form of a PHP script in
shared memory to avoid the overhead of parsing and compiling the code every time the script
runs.
<html>
<head>
</head>
<body>
</body>
</html>
Output
Security
Views are basically used as a part of security, means in many organizations end user will
never be given original tables and all data entry will be done with the help of views only. But
the database administrator will be able to see everything because all the operations done by the
different users will come to the same table.
Queries
A query is a question or a request. With MySql, we can query a database for specific
information and have a record set returned.
Before you can access data in a database, you must create a connection to the database. In
PHP, this is done with the mysql_connect () function.
Syntax
<?php
$con=mysql_connect('localhost','root','');
mysql_select_db ('project', $con); ?>
2) Now to create a new table enter your table name and the number of fields in the table, then
click the 'Go' Button.
3)The next step is to create the fields, just enter values for each field name, type, length of the
field, null option and mention whether it is a primary key or not. Then click the 'Save' button
to complete your table creation.
List of your databases will appear. Click the one that is your WordPress database.
Note the size of the 'wp_bad_behaviour_log' table - this is one to be emptied in this example.
Now select the box to the left of the table you wish to empty.
Note: Your table may have a different name, and unless you have been told, do NOT empty a
table that is used by the Word Press core.
From the drop-down menu, highlight and click the 'Empty' option.
You will now get a confirmation screen.
This is your last chance to check - there is no 'UNDO' function here!
Click 'Yes' and you will be returned to viewing all the tables in your install.
And your table has been cleared out.
If you needed to Drop a table, follow exactly the same, but select 'Drop' from the menu.
7.DATABASE TABLES
ACCOUNT HOLDER
FORM
<!doctype html>
<html class="no-js" lang="en">
<style type="text/css">
<!--
.style1 {
font-size: 30px;
font-weight: bold.
}
.style2 {font-size: 26px; font-weight: bold; }
-->
</style>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<div class="row">
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="sparkline12-list">
<div class="sparkline12-hd">
<div class="main-sparkline12-hd">
<h1>All Form Element</h1>
</div>
</div>
<div class="sparkline12-graph">
<div class="basic-login-form-ad">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="all-form-element-inner">
<form name="form1" id="formID" method="post" action="account_holder_insert.php">
<p align="center" class="style2">Account Holder</p>
<table width="543" height="399" border="0" align="center">
<tr>
<td width="98">User Name </td>
<td width="168"><select class="validate[required] form-control" name="user_id"
id="user_id">
<option value="" >Select User</option>
<?php
include("../dbconnect/db_connect.php");
$sql1="select * from user_details";
$res1=mysqli_query($conn,$sql1);
while($row1=mysqli_fetch_array($res1))
{
?>
<option value="<?php echo $row1['user_id']; ?>"><?php echo
$row1['user_full_name']; ?></option>
<?php
}
?>
</select></td>
</tr>
<tr>
<td>Account Type </td>
<td><input name="account_type" class="validate[required,custom[onlyLetter]] form-
control" type="text" id="account_type"></td>
</tr>
<tr>
<td>Account Number</td>
<td><input name="account_no" type="text" class="validate[required,custom[bank]]
form-control" id="account_no"></td>
</tr>
<tr>
<td>Created Date </td>
<td><input name="created_date" type="text" class="validate[required,custom[date]]
form-control" id="created_date"></td>
</tr>
<tr>
<td>Branch Name </td>
<td><select name="branch_id" id="branch_id" class="validate[required] form-control">
<option value="" >Select User</option>
<?php
include("../dbconnect/db_connect.php");
$sql2="select * from branch_details";
$res2=mysqli_query($conn,$sql2);
while($row2=mysqli_fetch_array($res2))
{
?>
<option value="<?php echo $row2['branch_id']; ?>"><?php echo
$row2['branch_name']; ?></option>
<?php
}
?>
</select></td>
</tr>
<tr>
<td>Account Status</td>
<td><input name="account_status" type="text" id="account_status"
class="validate[required,custom[onlyLetter]] form-control"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit" class="btn btn-info">
<input type="reset" name="Reset" value="Reset" class="btn btn-danger">
</div></td>
</tr>
</table>
<p align="center" class="style1"> </p>
<p> </p>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Basic Form End-->
<?php include('footer.php'); ?>
<?php include('val.php'); ?>
</body>
</html>
Insert
<?php
include("../dbconnect/db_connect.php");
$user_id=$_POST['user_id'];
$account_type=$_POST['account_type'];
$a_no=$_POST['account_no'];
$create_date=$_POST['created_date'];
$branch_id=$_POST['branch_id'];
$a_status=$_POST['account_status'];
</script>
Delete
<?php
include("../dbconnect/db_connect.php");
$account_holder_id=$_REQUEST['account_holder_id'];
View
<!doctype html>
<html class="no-js" lang="en">
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<?php include('sidebar.php'); ?>
<!-- Start Welcome area -->
<?php include('header.php'); ?>
<!-- Mobile Menu start -->
<!-- Mobile Menu start -->
<?php include('mobile_menu.php'); ?>
<!-- Mobile Menu end -->
<tr>
<th>Account Holder Id </th>
<th>User Id </th>
<th>Account Type </th>
<th>Account Number </th>
<th>Created Date </th>
<th>Branch Id </th>
<th>Account Status </th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<?php
include("../dbconnect/db_connect.php");
$sl=1;
$sql="select * from account_holder ah,user_details uid where ah.user_id=uid.user_id";
$res=mysqli_query($conn,$sql);
while($row=mysqli_fetch_array($res))
{
?>
<tr>
<td> <?php echo $sl++; ?></td>
<td> <?php echo $row['user_full_name'];?></td>
<td> <?php echo $row['account_type'];?></td>
<td> <?php echo $row['account_no'];?></td>
<td> <?php echo $row['created_date'];?></td>
<td> <?php echo $row['branch_id'];?></td>
<td> <?php echo $row['account_status'];?></td>
<td><a href="account_holder_edit.php?account_holder_id=<?php echo
$row['account_holder_id'];?>" >Edit</a></td>
<td><a href="account_holder_delete.php?account_holder_id=<?php echo
$row['account_holder_id'];?>" onClick="return confirm('Are u sure want to
delete...');">Delete</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Static Table End -->
<?php include('footer.php'); ?>
</body>
</html>
Update
<?php
include("../dbconnect/db_connect.php");
$user_id=$_POST['user_id'];
$account_type=$_POST['account_type'];
$a_no=$_POST['account_no'];
$create_date=$_POST['created_date'];
$branch_id=$_POST['branch_id'];
$a_status=$_POST['account_status'];
$account_holder_id=$_POST['account_holder_id'];
?>
<script>
alert('Row is Updated..');
document.location="account_holder_view.php";
</script>
Edit
<!doctype html>
<html class="no-js" lang="en">
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<div class="row">
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="sparkline12-list">
<div class="sparkline12-hd">
<div class="main-sparkline12-hd">
<h1>Account Holder</h1>
</div>
</div>
<div class="sparkline12-graph">
<div class="basic-login-form-ad">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="all-form-element-inner">
<?php
include("../dbconnect/db_connect.php");
$account_holder_id=$_REQUEST['account_holder_id'];
$sql="select * from account_holder where account_holder_id='$account_holder_id'";
$res=mysqli_query($conn,$sql);
$row=mysqli_fetch_array($res);
?>
<body>
<?php include('val.php'); ?>
<form name="form1"id="formID" method="post" action="account_holder_update.php">
<input type="hidden" value="<?php echo $row['account_holder_id'];?>"
name="account_holder_id">
<p>Account Holder</p>
<table width="543" height="399" border="0" align="center">
<tr>
<td width="98">User Name </td>
<td width="168"><select class="validate[required] form-control"name="user_id"
id="user_id">
<option value="" >Select User</option>
<?php
</html>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<div class="row">
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="sparkline12-list">
<div class="sparkline12-hd">
<div class="main-sparkline12-hd">
<h1>Branch Details</h1>
</div>
</div>
<div class="sparkline12-graph">
<div class="basic-login-form-ad">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="all-form-element-inner">
<form name="form1" id="formID" method="post" action="branch_details_insert.php">
<p> </p>
<p align="center" class="style1">Branch Details</p>
<table width="450" height="200" border="0" align="center">
<tr>
<td>Branch Name </td>
<td><input name="branch_name"class="validate[required,custom[onlyLetter]] form-
control" type="text" id="branch_name"></td>
</tr>
<tr>
<td>Addrees</td>
<td><textarea name="address"class="validate[required,custom[onlyLetter]] form-
control" id="address"></textarea></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit"class="btn btn-info ">
<input type="reset" name="Reset" value="Reset" class="btn btn-danger">
</div></td>
</tr>
</table>
<p> </p>
<p> </p>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Basic Form End-->
<?php include('footer.php'); ?>
<?php include('val.php'); ?>
</body>
</html>
Insert
<?php
include("../dbconnect/db_connect.php");
$branch_name=$_POST['branch_name'];
$address=$_POST['address'];
$sql="insert into branch_details values(null,'$branch_name','$address')";
mysqli_query($conn,$sql);
?>
<script>
alert("values are inserted..!!");
document.location="branch_details.php";
</script>
Delete
<?php
include("../dbconnect/db_connect.php");
$branch_id=$_REQUEST['branch_id'];
View
<!doctype html>
<html class="no-js" lang="en">
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<tr>
<th>Sl no</th>
<th>Branch Name </th>
<th>Address</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<?php
include("../dbconnect/db_connect.php");
$sl=1;
$sql="select * from branch_details bid,account_holder aid where
bid.branch_id=aid.branch_id";
$res=mysqli_query($conn,$sql);
while($row=mysqli_fetch_array($res))
{
?>
<tr>
<td> <?php echo $sl++; ?></td>
<td> <?php echo $row['branch_name'];?></td>
<td> <?php echo $row['branch_address'];?></td>
<td><a href="branch_details_edit.php?branch_id=<?php echo $row['branch_id'];?>"
>Edit</a></td>
<td><a href="branch_details_delete.php?branch_id=<?php echo $row['branch_id'];?>"
onClick="return confirm('Are u sure want to delete...');">Delete</a></td>
</tr>
<?php
}
?>
<!-------------------------------------------------------------->
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Static Table End -->
<?php include('footer.php'); ?>
</body>
</html>
Update
<?php
include("../dbconnect/db_connect.php");
$branch_name=$_POST['branch_name'];
$address=$_POST['address'];
$branch_id=$_POST['branch_id'];
$sql="update branch_details set branch_name='$branch_name',branch_address='$address'
where branch_id='$branch_id'";
mysqli_query($conn,$sql);
?>
<script>
alert('Row is Updated..');
document.location="branch_details_view.php";
</script>
Edit
<!doctype html>
<html class="no-js" lang="en">
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong>
browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to
improve your experience.</p>
<![endif]-->
<div class="row">
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="sparkline12-list">
<div class="sparkline12-hd">
<div class="main-sparkline12-hd">
<h1>Branch Details</h1>
</div>
</div>
<div class="sparkline12-graph">
<div class="basic-login-form-ad">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="all-form-element-inner">
<?php
include("../dbconnect/db_connect.php");
$branch_id=$_REQUEST['branch_id'];
$sql="select * from branch_details where branch_id='$branch_id'";
$res=mysqli_query($conn,$sql);
$row=mysqli_fetch_array($res);
?>
<body>
<?php include('val.php'); ?>
<form name="form1"id="formID" method="post" action="branch_details_update.php">
<div align="left">
<input type="hidden" value="<?php echo $row['branch_id'];?>" name="branch_id">
</div>
<p> </p>
<p align="center"></p>
<p align="center">Branch Details</p>
<table width="410" height="229" border="0" align="center">
<tr>
<td height="56">Branch Name </td>
<td><input class="validate[required,custom[onlyLetter]] form-
control"name="branch_name" type="text" id="branch_name" value="<?php echo
$row['branch_name'];?>"></td>
</tr>
<tr>
<td height="98">Addrees</td>
<td><textarea class="validate[required,custom[onlyLetter]] form-
control"name="address" id="address"><?php echo
$row['branch_address'];?></textarea></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit"class="btn btn-info">
<input type="reset" name="Reset" value="Reset"class="btn btn-danger">
</div></td>
</tr>
</table>
<p align="center"></p>
<p> </p>
<p> </p>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Basic Form End-->
<?php include('footer.php'); ?>
<?php include('val.php'); ?>
</body>
</html>
10.TESTING
Testing Principles
• All tests should be traceable to end user requirements.
• Tests should be planned long before testing begins.
• Testing should begin on a small scale and progress towards testing in large.
• Exhaustive testing is not possible.
• To be most effective testing should be conducted by a independent third party.
The primary objective for test case design is to derive a set of tests that has the highest livelihood
for uncovering defects in software. To accomplish this objective two different categories of test
case design techniques are used. They are:
White Box Testing: White box testing focus on the program control structure. Test cases
are derived to ensure that all statements in the program have been executed at least once during
testing and that all logical conditions have been executed.
Black Box Testing: Black box testing is designed to validate functional requirements
without regard to the internal workings of a program. Black box testing mainly focuses on the
information domain of the software, deriving test cases by partitioning input and output in a
manner that provides through test coverage. Incorrect and missing functions, interface errors,
errors in data structures, error in functional logic are the errors falling in this category.
Testing strategies: A strategy for software testing must accommodate low-level tests that are
necessary to verify that all small source code segment has been correctly implemented as well
as high-level tests that validate major system functions against customer requirements.
There are two general strategies for testing software. They are as follows:
Code Testing: This examines the logic of the program. To follow this test, cases are developed
such that every path of program is tested.
Specification Testing: Specification Testing examines the specification, starting what the
program should do and how it should perform under various conditions. Then test cases are
developed for each condition and combinations of conditions and to be submitted for processing.
Unit Testing: Individual components are tested to ensure that they operate correctly. Each
component tested independently without other system components. Ex. Check for Username and
Password with the table, after the next module is loaded.
Integration Testing: Integration testing is a systematic technique for constructing the program
structure while at the same time conducting test to uncover errors associated with interfacing.
This testing is done using the bottom-up approach to integrate the software components of the
software system in to functioning whole.
System Testing: System testing is actually a series of different tests whose primary purpose
is fully to exercise the computer-based system. The system tests that where applied are recovery
testing and performance testing. Finally, a review or audit is conducted which is a final
evaluation that occurs only after operating the system long enough for user to have gained a
familiarity with it. System testing was done by the inspection team to verify that all the
functionality identified is the software requirement specification has been implemented. Defects
that crept in the system has been found defect free and is working well. System testing is
concerned with interfaces, design logic, control flow recovery, procedures throughput, capacity
and timing characteristics of the entire system. For blank field, alphabets, number and special
character validation.
Acceptance Testing: User acceptance of the system is the key factor for the success of any
system. This is done by user. The system is given to the user and they test it with live data.
Acceptance testing involves the planning and execution of functional test. Performance tests,
stress tests in order to demonstrate that the implemented system satisfies its requirements. Two
sets of acceptance test can be run, those developed by the customer. The system has been tested
for its performance at unit level by the individuals through performance testing that is designed
to test the run time performance of the software. The performance of the fully integrated system
is tested and was found good.
10.2 Validating the tables
Login Form
Login Form
E-Letter Table
NOTIFICATION TABLE
USER-DETAILS Table
1 Valid
Username It should display respective
Respective Home is Fig
and page according to user type.
displayed (10.2.1)
Password
3 Add/Update
/Delete Add/Delete/Update action is Added/Updated/Deleted Fig
Member taken. Member message Displayed (10.2.3)
Details
6 Blank field
It should give appropriate
while Display appropriate error Fig
error message
inserting message (10.2.6)
7 Valid FD FD details is stored while
It should insert the FD
details inserting
details into the database Fig
should be
while inserting (10.2.7)
provided
12.BIBLIOGRAPHY
12.1 Books
12.2 Websites
1. http://www.hotscripts.com/category/php/ for Php
2. http://en.wikipedia.org/wiki/PHP for Php.
3. http://www.mysql.com/click.php?e=35050 for MySql.