Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
CHAPTER 1
INTRODUCTION
The project is a web-based application where users can get instant electricity
bill and pay them online via credit card. The system automates the conventional
process of paying electricity bill by visiting the place.
The system would be having two logins admin and user login. Admin can
view user account details and can even add or updates things in their account. Admin
has to feed the system with electricity usage data into respective user’s account. The
system then calculates the electricity bill for every user and updates the information
into their account every month. User can then view their electricity bill and pay on the
spot before month end. If user is incapable of paying the bill before month end, it then
calculates fine for each subsequent day.
The main objective of the Electricity Billing System is to manage the details of
Electricity, Bill, Connections, Store Record, Customer. It manages all the information
about Electricity, Electricity Board, Customer, Electricity. The project is totally built
at administrative end and thus only the administrator is guaranteed the access. The
1. 1. 2 Project Scope
Our project aims at Business process automation, i.e. we have tried computerize
various processes of Electricity Billing System. In sector of electricity board, we have
computerized their department a stock maintenance.
3. Be easy to operate
5. Be expandable
1. 2 SYSTEM ANALYSIS
1. 2. 1 Existing System
Science and technology with all its fascinating advancements has been taking
human life standards to the next level. The whole world will be literally jammed
without these innovations. This project is an innovation, which makes the way of
paying electricity bill simple compared to other existing projects.
1. 2. 2 Proposed System
The successful running of any project primarily depends upon hardware and
software used in its compilation. The hardware used in the machines should be such
that it supports the software that is to be mounted for assembling the project. This
project deals with hardware and software, which is available readily and easy on each
and every machine given to the user.
Hardware Requirements
Hard Disk : 50 GB
Software Requirements
Front-End : PHP
Frontend- PHP
What is PHP?
PHP is an acronym for "PHP: Hypertext Preprocessor"
PHP is a widely-used, open source scripting language
PHP scripts are executed on the server
PHP is free to download and use
PHP is an amazing and popular language!
It is powerful enough to be at the core of the biggest blogging system on the
web (WordPress)!
It is deep enough to run the largest social network (Facebook)!
It is also easy enough to be a beginner's first server side language!
Why PHP?
Backend-MySql
MySQL is a fast, easy-to-use RDBMS being used for many small and big
businesses. MySQL is developed, marketed and supported by MySQL AB, which is a
Swedish company. MySQL is becoming so popular because of many good reasons −
MySQL is a very powerful program in its own right. It handles a large subset
of the functionality of the most expensive and powerful database packages.
MySQL works on many operating systems and with many languages including
PHP, PERL, C, C++, JAVA, etc.
MySQL works very quickly and works well even with large data sets.
MySQL is very friendly to PHP, the most appreciated language for web
development.
CHAPTER 2
DESIGN
CHAPTER 2
DESIGN
There are five phases in this model and the first phase is the planning stage.
The planning stage determines the objectives of the project and whether the project
should be given the green light to proceed. This is where the proposal submission
comes into picture. After obtaining the approval, the next phase is analysis.
Gathering and analysing the system and user requirements is essential for entry to the
design step.
With the user requirements gathering completed, there is a need to prepare the
resources for the project. Be it software or hardware components, careful
consideration and selection is to be taken care at this stage. The decision on the
appropriate resources to be used is further elaborated under the subsections below.
The next step is to design the system and database structure.
After completing the design, actual coding begins. Database is created and
codes are written. Some of the codes required amendments and improvement to it so
these are being developed at this fourth stage of the waterfall model. With the
development completed, testing will begin. The codes and database are tested to
ensure the results obtained are as intended. More time is spent on both development
and testing stages because it is inevitable to have errors and issues and buffer time is
allocated for troubleshooting.
2.1.1 Login:
LOGIN
REGISTRATION
NEW USER
SIGN UP LOGIN
2. 2 DFD
The DFD enables the software developer to develop models of the information
domain & functional domain at the same time. As the DFD is refined into greater
levels of details, the analyst performs an implicit functional decomposition of the
system. At the same time, the DFD refinement results in a corresponding refinement
of the data as it moves through the processes that embody the applications.
A context-level DFD for the system the primary external entities produce
information for use by the system and consume information generated by the system.
The labeled arrow represents data objects or object hierarchy.
Identify all data flows for each process step, except simple
Record retrievals.
START
LOGIN
LOGOUT
STO
P
2. 2. 2 1 level DFD:
2. 3 ER-Diagram:
It maps well to the relational model. The constructs used in the ER model can
easily be transformed into relational tables.
In addition, the model can be used as a design plan by the database developer
to implement a data model in specific database management software.
The basic types of connectivity for relations are: one-to-one, one-to-many, and
many-to-many. A one-to-one (1:1) relationship is when at most one instance of a
entity A is associated with one instance of entity B. For example, employees in the
company are each assigned their own office. For each employee there exists a unique
office and for each office there exists a unique employee.
E-R Notation:
The notation used in this document is from Martin. The symbols used for the
basic ER constructs are:
Entities are represented by labeled rectangles. The label is the name of the
entity. Entity names should be singular nouns.
Relationships are represented by a solid line connecting two entities. The name
of the relationship is written above the line. Relationship names should be verbs
Attributes, when included, are listed inside the entity rectangle. Attributes
which are identifiers are underlined. Attribute names should be singular nouns.
2.3.1 E-R-Diagram
2. 4 DATABASE DESIGN
2. 4. 1 Admin Table
2. 4. 2 Bank Table
2. 4. 2 Bank Table
2. 4. 3 Bill Table
2. 4. 3 Bill Table
2. 4. 4 Card Table
2. 4. 5 Customer Table
2. 4. 2 Customer Table
Our system has only two main interfaces. One is for the admin and the other
one is for the user, the here user can be a customer or an employee.
Login Page
Details Page
Pay Page
Card Details
Payment Successful
Logout
CHAPTER 3
IMPLEMENTATION
CHAPTER 3
IMPLEMENTATION
Index page
<?php
include("includes/connect.php");
?>
<html>
<head>
<title>
</title>
</head>
<body>
<?php
include("includes/header.php");
?>
<div class="contain">
<div class="loginpad">
<br>
<br>
<br>
</form>
<br>
<br>
<br>
</div>
</div>
</div>
<center>
<?php
include("includes/footer.php");
?>
<?php
if(isset($_POST["btnlogin"]))
function validate_input($data)
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
$c_id = validate_input($_POST["c_id"]);
if($c_id =="")
return;
else
if (mysqli_num_rows($result) > 0)
session_start();
$_SESSION['log_user']=$c_id;
setcookie('user_n',$c_id,time() +
86400*30,'/');
header("location:home.php");
else
echo mysqli_error($con);
return;
?>
</body>
</html>
Home Page
<?php
session_start();
include("includes/connect.php");
if(!(isset($_SESSION['log_user'])))
header("location:check.php");
else
$user_name=$_SESSION['log_user'];
?>
<html>
<head>
<title>
</title>
</head>
<body>
<?php
include("includes/header.php");
?>
<div class="container">
<?php
include("includes/menu.php");
<div class="bd">
<br>
<tr>
<th>Name</th>
<th>Address</th>
<th>House Number</th>
<th>Phone</th>
<th>Bill No</th>
<th>Amount</th>
<th>Date</th>
<th>Pending Payment</th>
</tr>
<?php
$result1=mysqli_query($con,$query1);
?>
<?php
while($rows=mysqli_fetch_array($result1))
?>
<tr>
</tr>
<?php
?>
</table>
</div>
</div>
<center>
<?php
?>
</center>
</body>
</html>
<?php
?>
Cancel Page
<?php
session_start();
include("connect.php");
if(!(isset($_SESSION['log_user'])))
header("location:check.php");
else
$user_name=$_SESSION['log_user'];
?>
<html>
<head>
</title>
</head>
<body>
<center>
<hr>
<p>
</p>
Loading...
</center>
</body>
</html>
<?php
?>
Check Page
<center>
<hr>
<p>
</p>
</center>
Complete Page
<?php
session_start();
include("connect.php");
if(!(isset($_SESSION['log_user'])))
header("location:check.php");
else
?>
<html>
<head>
<title>
</title>
</head>
<body>
<center>
<hr>
<p>
</p>
</center>
</body>
</html>
<?php
?>
Connect Page
<?php
$con = mysqli_connect("localhost","root","","electribill");
if (!$con) {
?>
Logout Page
<center>
<hr>
<?php
session_start();
session_destroy();
echo "Your Have Been Logout <br><a href='index.php'> Click Here</a> To Exit";
?>
</center>
Pay Page
<?php
session_start();
include("connect.php");
if(!(isset($_SESSION['log_user'])))
header("location:check.php");
else
$user_name=$_SESSION['log_user'];
?>
<html>
<head>
<title>
</title>
</head>
<?php
include("includes/header.php");
?>
<div class="container">
<?php
include("includes/menu.php");
?>
<div class="bd">
<center>
</form>
</div></div>
<center>
<?php
include("includes/footer.php");
?>
</center>
</body>
</html>
<?php
if(isset($_POST['btn_update']))
header("location:process.php");
}}?>
Payment Page
<?php
session_start();
include("connect.php");
if(!(isset($_SESSION['log_user'])))
header("location:check.php");
else
$user_name=$_SESSION['log_user'];
?>
<html>
<head>
<title>
</title>
<style>
body
#txt
width:250px;
border-style:groove;
height:30px;
border-radius:4px;
#sl
width:125px;
border-style:groove;
height:30px;
border-radius:4px;
#btn
background-color:#1e5799;
border-style:none;
width:100px;
height:30px;
border-radius:4px;
#btn:hover{
background-color:#1e5700;
color:#000;
.header
position:fixed;
top:0px;
background-color:#000;
width:100%;
left:0px;
color:#fff;
opacity:.8;
text-align:center;
.footer
position:fixed;
bottom:0px;
background-color:#000;
width:100%;
color:#fff;
.footer a
color:#fff;
.container
padding-top:120px;
table
text-align:center;
.section
background-color:#fff;
width:700px;
height:490px;
border-radius:10px;
</style>
</head>
<body>
<?php
include("includes/header.php");
?>
<center>
<div class="container">
<div class="section">
<?php
$bank=$_POST["bank"];
$dt=date("m/d/Y");
$result1=mysqli_query($con,$query1);
$rows=mysqli_fetch_array($result1);
$amount=$rows['amount'];
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<?php
while($rows=mysqli_fetch_array($result))
?>
?>
</select>
<br>
<?php
for($i=1;$i<=12;$i++)
?>
<?php
?>
</select>
<?php
$dy=date("Y");
for($j=$dy;$j<=2050;$j++)
<?php
?>
</select>
<br>
<br>
</form>
<?php
?>
</center>
</div>
</div>
<?php
if(isset($_POST["btnpro"]))
function validate_input($data)
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
$ch = validate_input($_POST["ch"]);
$cn = validate_input($_POST["cn"]);
$cvs = validate_input($_POST["cvs"]);
$mm = validate_input($_POST["mm"]);
$yy = validate_input($_POST["yy"]);
$month=$mm."/".$yy;
return;
else
if(mysqli_query($con,$query))
header("location:complete.php");
else
?>
<center>
<?php
include("includes/footer.php");
?>
</center>
</body>
</html>
<?php
?>
Process Page
<?php
session_start();
include("connect.php");
if(!(isset($_SESSION['log_user'])))
header("location:check.php");
else
$user_name=$_SESSION['log_user'];
?>
<html>
<head>
<title>
</title>
</head>
<body>
<hr>
<p>
</p>
Please wait...
</center>
</body>
</html>
<?php
?>
SchPayment
<?php
session_start();
include("connect.php");
if(!(isset($_SESSION['log_user'])))
header("location:check.php");
else
$user_name=$_SESSION['log_user'];
?>
<html>
<head>
<title>
</title>
<style>
#txt
width:250px;
border-style:groove;
height:30px;
border-radius:4px;
#btn
background-color:#1e5799;
border-style:none;
height:30px;
border-radius:4px;
color:white;
#btn:hover{
background-color:#1e5700;
color:#000;
.header
position:fixed;
top:0px;
background-color:#000;
width:100%;
left:0px;
color:#fff;
opacity:.8;
text-align:center;
.footer
position:fixed;
background-color:#000;
width:100%;
left:0px;
color:#fff;
.footer a
color:#fff;
.container
padding-top:140px;
</style>
</head>
<body>
<center>
<?php
include("includes/header.php");
?>
<div class="container">
<hr>
<br>
<hr>
<?php
while($rows=mysqli_fetch_array($result))
?>
<?php
?>
</select>
</form>
</div>
<center>
<?php
include("includes/footer.php");
</center>
</body>
</html>
<?php
?>
UserUpdate Page
<?php
session_start();
include("connect.php");
if(!(isset($_SESSION['log_user'])))
header("location:check.php");
else
$user_name=$_SESSION['log_user'];
$slno=$_GET["Serial_no"];
$result=mysqli_query($con,$query);
$rows=mysqli_fetch_array($result);
$name=$rows['name'];
$address=$rows['address'];
$house=$rows['houseno'];
$phone=$rows['phone'];
$email=$rows['email'];
?>
<html>
<head>
<title>
</title>
</head>
<body>
<?php
include("includes/header.php");
?>
<div class="container">
<?php
include("includes/menu.php");
?>
<br>
<center>
<?php
echo $name;
?>
" required/>
<br><label>Address:</label><br>
<?php
echo $address;
?>
" required/>
<br>
<label>House No:</label><br>
<?php
?>
" required/>
<br>
<label>Mobile Number:</label><br>
<?php
echo $phone;
?>
" required/>
<br>
<label>Email:</label><br>
<?php
echo $phone;
?>
" required/>
<br> <br>
</form>
</body>
</html>
<?php
if(isset($_POST['btn_update']))
$name=$_POST["name"];
$address=$_POST["ad"];
$house=$_POST["hn"];
$phone=$_POST["phone"];
$email=$_POST["email"];
return;
else
if(mysqli_query($con,$query))
else
?>
Header Page
<div class="header">
<hr>
</div>
Footer Page
<div class="footer">
</div>
Connect Page
<?php
$con = mysqli_connect("localhost","root","","electribill");
if (!$con) {
?>
CHAPTER 4
CHAPTER 4
Starting the project, we should fully know about the meaning of project. There are
seven letters in the word “PROJECT”. Each character has its own technical
meaning.
P – Planning: this deals with the idea at thinking and which are required for project.
R – Resource: the money problem will be solved and resources from which collected.
O – Operating: the procedure from which getting job is prepared in a systematic way
is known as operation.
E – Engineering: A well educated engineer can do this work in a better way to find
out better result. Hence the project is as engineer function.
C – Cooperation: To make the project successfully, it is necessary for its success and
completion of project.
The project is a system that gives the systematic way of planning and working.
OR
CHAPTER 5
CONCLUSION
CHAPTER 5
CONCLUSION
We have left all the options open so that if there is any other future
requirement in the system by the user for the enhancement of the system then it is to
implement them.
In the last we would like to thanks all the persons involved in the development
of the system directly or indirectly. We hope that the project will serve its purpose for
which it is develop there by underlining success of process.
5. 1 LIMITATIONS
Here in the existing system the customers need to visit the organization.
The complete current system is manual system and it will not provide any kind of
security to the data.
The application was developed to send notification to only the recipient email
address and not mobile phone
It does not provide the means of live communication between the complaint and
the responder
The system cannot work with other web application. This means it is not a web
service-oriented system
5. 2 FUTURE SCOPE
This system is found tested and examined for its successful processing.
Future change in the environment or processing can be easily adopted by having
simple change in coding. It is very user friendly, cost effective, feature rich and it
provides very high level of security. It protects the unauthorized users. Moreover, the
system coding is so well designed that new operations can be easily incorporated
without much modification. A facility to inform through SMS or Email on landing of
the consignment can be added in future.
CHAPTER 6
BIBLIOGRAPHY AND
REFERENCES
CHAPTER 6
BIBLIOGRAPHY
October, 2006.
REFERENCES
www.W3School.com
www.waytotutorial.com
www.phprefernesbook.com
www.it-ebooks.info