PHP and Mysql Project On Electricity Billing System
PHP and Mysql Project On Electricity Billing System
We used PHP as front end and MySQL as back end for developing our project. PHP is
primarily a visual design environment. We can create a PHP application by designing
the form and that make up the user interface. Adding PHP application code to the
form and the objects such as buttons and text boxes on them and adding any
required support code in additional modular.
MySQL is a powerful relational database application with which a desktop user can
efficiently create and manipulate database systems. Access targets the desktop
category and works best for individuals and workgroup
Managing megabytes of data for multi-user access to the same database, Access
uses file-server architecture, rather than client-server architecture.
The overall project report is divided into some parts. These parts are further divided
into their subparts. In the parts we have described the purpose, scope of the
project, objective of the project i.e. approach which used for developing this
software. It includes the topics like the problems with the existing system and the
functionality of the organization. Introduction to tools, design, coding, testing and
debugging of the system are discussed in very detail. We have also provided the
names of the books from which we have taken guidance to complete the work. Last
section contains the matter about the overall work performed and the efforts taken
to complete the project.
Project Category:
Relational Database Management System (RDBMS) : This is an RDBMS based
project which is currently using MySQL for all the transaction statements. MySQL is
an opensource RDBMS System.
Brief Introduction about RDBSM:
A relational database management system (RDBMS) is a database management
system (DBMS) that is based on the relational model as invented by E. F. Codd, of
IBM's San Jose Research Laboratory. Many popular databases currently in use are
based on the relational database model.
RDBMSs have become a predominant choice for the storage of information in new
databases used for financial records, manufacturing and logistical information,
personnel data, and much more since the 1980s. Relational databases have often
replaced legacy hierarchical databases and network databases because they are
easier to understand and use. However, relational databases have been challenged
by object databases, which were introduced in an attempt to address the object-
relational impedance mismatch in relational database, and XML databases.
ecommerce portal, it requires certain technical requirements to be met for the store
to operate properly. First, a web server must be created to make the online
Electricity Billing System publicly available on the web. Domain names and hosting
services can easily be purchased for an affordable price. When selecting a hosting
service, you should check to see that these server requirements are provided and
installed on their web servers:
Software Details for running Online Electricity Billing System
Web Server (preferably Apache Tomcat 7)
PHP
MySQL
Curl
Required PHP libraries / modules
Curl
ZIP
Zlib
GD Tickets
Mcrypt
Mbstrings
The above PHP extensions should be available by almost all hosting providers,
during the install processa it will check you have them all enabled. You should
contact your hosting provider if one is missing.
Implementation methodology:
Model View Controller or MVC as it is popularly called, is a software design pattern
for developing web applications. A Model View Controller pattern is made up of the
following three parts:
Model - The lowest level of the pattern which is responsible for maintaining
data.
View - This is responsible for displaying all or a portion of the data to the
user.
Controller - Software Code that controls the interactions between the Model
and View.
MVC is popular as it isolates the application logic from the user interface layer and
supports separation of concerns. Here the Controller receives all requests for the
application and then works with the Model to prepare any data needed by the View.
The View then uses the data prepared by the Controller to generate a final
presentable response. The MVC abstraction can be graphically represented as
follows.
Product Perspective:
The web pages are present to provide the user interface on customer
side Communication between customer and server is provided through
HTTP/HTTPS protocols.
The Client Software is to provide the user interface on system user
client side and for this TCP/IP protocols are used.
On the Server Side web server is for EJB and database server is for
storing the information.
Online Transaction Security System : The online transaction security system will
provide a safe and secure method for online shoppers to make credit purchases on
the website. When a credit purchase is made using the website, the credit
information will be encrypted using Secure Socket Layer (SSL) and transmitted to
the bank for processing. This security system will also provide access control for
website visitors, which will allow only registered users to make purchases. The
registered customers account information will be stored in the customer information
database mentioned earlier.
Data Security System: The data security system will allow data to be securely
transmitted between the various components of the portal. This includes
transmission of product, merchant and customer information from the content
management system to the website, and also the transmission of data from the
website to the content management system.
Folder Security using .htaccess: The .htaccess file in your sites directory is a
configuration file you can use to override the settings on your web server. With the
right commands, you can enable/disable extra functionality and features to protect
your site from spammers, hackers and other threats.
Prevent Directory Browsing: Protecting directories from being listed is, at best,
security by obscurity. That is, its hiding your stuff from view, preventing meddling
visitors from browsing through your directories. Really, its the web equivalent of
hiding your cash under your mattress.Still, its good practice to prevent directory
browsing, along with implementing other measures to secure your site.
To disable browsing of your directories, add this to your .htaccess file:
Options All –Indexes
Restrict Access to Your Admin Area : A simple way to restrict access if your
internet has a fixed IP address and you always access your site form the same
location is by creating a new .htaccess file with the following snippet:
order deny,allow
allow from 192.168.5.1
deny from all
Deployment
Diagram
SYSTEM ANALYSIS
The analysis model is a concise, precise abstraction of what the
desired system must do, and not how it will be done after the
study of the existing system is completed. This basically
includes system study and the requirement analysis.
Interacting with the clients regarding their requirements and
expectations from the system does requirement analysis.
The steps, which are essential for system analysis, are:
PRELIMINARY INVESTIGATION
Benefit to Organization
The initial cost of setting up the system will include the cost of
hardware (server/clients, network adapter and related
hardware), software (server OS, add-on software, utilities) &
labor (setup & maintenance). The same has to bear by the
organization.
Running Cost
Besides, the initial cost the long term cost will include the
running cost for the system including the AMC, tickets charges,
cost for human resources, cost for update/renewal of various
related software.
FEASIBILITY STUDY
At this stage, the analyst estimates the urgency of the project and
estimates the development cost.
1) Technical Feasibility:
2) Operational Feasibility:
3) Economic Feasibility:
PROJECT PLANNING
Software project plan can be viewed as the following:
Select a project
o Testing techniques
o Documentation
Budget allocation
Project Estimates
o Cost
o Time
o Size of code
o Duration
Resource Allocation
o Hardware
o Software
o Digital Tickets
Risk Management
o Risk avoidance
o Risk detection
PROJECT SCHEDULING
An elementary Gantt chart or Timeline chart for the development
plan is given below. The plan explains the tasks versus the time
(in weeks) they will take to complete .
Requirement
Gathering
Analysis
Design
Coding
Testing
Implement
W W W W W W W W W W W W
1 2 3 4 1 2 3 4 1 2 3 4
SOFTWARE REQUIREMENT
SPECIFICATION
The Software Requirements Specification is produced at the
culmination of the analysis task. The function and performance
allocated to software as part of system engineering are refined
by establishing a complete information description, a detailed
functional and behavioral description, an indication of
performance requirements and design constraints, appropriate
validation criteria, and other data pertinent to requirements.
1. Introduction
2. Overall Description
Functionalities:
2.2.3A Person can tickets/cancel the tickets only after he logs in.
1. Tickets issued .
5. Logout
A person can get the availability of all tickets for the next 20
days.
(2) Secured.
(4) Compatibility.
(5) Portability.
System Design
Interface Design:
an error.
TESTING
Testing is the process in which the system is run on manually
created input so that the system is correctly working as desired or
not.
VALIDATION CRITERIA
The validation criteria in this project are as follows...
All the screens have a similar look and feel. They all have the
almost same color combinations in its background. This provides
a better user interface to the users.
Implementation
After completing the Unit testing of all the modules, the whole
system is integrated with all its dependencies in that module.
While System Integration, We integrated the modules one by one
and tested the system at each step. This helped in reduction of
errors at the time of the system testing.
The main point that was considered during the cost estimation of
project was its sizing. In spite of complete software sizing,
function point and approximate lines of code were also used to
"size" each element of the Software and their costing.
The cost estimation done by me for Project also depend upon the
baseline metrics collected from past projects and these were used
in conjunction with estimation variables to develop cost and effort
projections.
GANTT CHART
Requirement
Gathering
Analysis
Design
Coding
Testing
Implement
W W W W W W W W W W W W
1 2 3 4 1 2 3 4 1 2 3 4
<?php
include_once("includes/header.php");
if($_REQUEST[bill_id])
$rs=mysql_query($SQL) or die(mysql_error());
$data=mysql_fetch_assoc($rs);
?>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="col1">
<div class="contact">
<div class="msg"><?=$_REQUEST['msg']?
></div>
<?php } ?>
<ul class="forms">
<li class="inputfield">
<select name="bill_connection_id"
id="bill_connection_id" class="bar" required/>
<?php echo
get_new_optionlist("connection","connection_id","connection_id",
$data[bill_connection_id]); ?>
</select>
</li>
</ul>
<ul class="forms">
<li class="inputfield">
<?php echo
get_new_optionlist("month","month_id","month_name",$data[bill_month]); ?>
</select>
</li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="bill_current_reading" id="bill_current_reading" type="text" class="bar"
required value="<?=$data[bill_current_reading]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="bill_previous_reading" id="bill_previous_reading" type="text" class="bar"
required value="<?=$data[bill_previous_reading]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="bill_total_units" id="bill_total_units" type="text" class="bar" required
value="<?=$data[bill_total_units]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="bill_charge_per_unit" id="bill_charge_per_unit" type="text" class="bar"
required value="<?=$data[bill_charge_per_unit]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="bill_fix_charges" id="bill_fix_charges" type="text" class="bar" required
value="<?=$data[bill_fix_charges]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Tax</li>
<li class="inputfield"><input
name="bill_tax" id="bill_tax" type="text" class="bar" required value="<?
=$data[bill_tax]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="bill_final_amout" id="bill_final_amout" type="text" class="bar" required
value="<?=$data[bill_final_amout]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Description</li>
<li class="textfield"><textarea
name="bill_description" cols="" rows="6" required><?=$data[bill_description]?
></textarea></li>
</ul>
<div class="clear"></div>
<ul class="forms">
<li class="txt"> </li>
</ul>
</form>
</div>
</div>
<div class="col2">
</div>
</div>
<?php
include_once("includes/header.php");
if($_REQUEST[bill_id])
$rs=mysql_query($SQL) or die(mysql_error());
$data=mysql_fetch_assoc($rs);
?>
<style>
td{
padding:5px;
text-align:center;
boder:1px solid;
margin:1px;
th {
font-weight:bold;
color:#ffffff;
font-size:12px;
background-color:#bf3c22;
padding:5px;
</style>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="col1">
<div class="contact">
<div>
<tr>
<td>10000<?=$data[bill_id]?
></td>
</tr>
<tr>
<th>Payment Date</th>
<td><?
=$data[bill_payment_date]?></td>
</tr>
<tr>
<th>Customer Name</th>
<td><?=$data[user_name]?
></td>
</tr>
<tr>
<th>Mobile</th>
<td><?=$data[user_mobile]?
></td>
</tr>
<tr>
<th>Email</th>
<td><?=$data[user_email]?
></td>
</tr>
<tr>
<th>Bill Month</th>
<td><?=$data[month_name]?
></td>
</tr>
<tr>
<th>Current Reading</th>
<td><?
=$data[bill_current_reading]?> Units</td>
</tr>
<tr>
<th>Previous Reading</th>
<td><?
=$data[bill_previous_reading]?> Units</td>
</tr>
<tr>
<th>Total Units
Consumed</th>
<td><?=$data[bill_total_units]?
> Units</td>
</tr>
<tr>
<td><?
=$data[bill_charge_per_unit]?>.00/-</td>
</tr>
<tr>
<th>Fix Charge</th>
<td><?
=$data[bill_fix_charges]?>.00/-</td>
</tr>
<tr>
<th>Tax</th>
<td><?=$data[bill_tax]?>.00/-
</td>
</tr>
<tr>
<td><?
=$data[bill_final_amout]?>.00/-</td>
</tr>
</table>
<li class="textfield"><input
type="button" value="Print Receipt" class="simplebtn"
onClick="window.print()"></li>
</ul>
</div>
</div>
</div>
<div class="col2">
</div>
</div>
Code of bill-report.php
<?php
include_once("includes/header.php");
include_once("includes/db_connect.php");
if($_SESSION['user_details']['user_level_id'] == 2)
else
$rs=mysql_query($SQL) or die(mysql_error());
?>
<script>
function delete_bill(bill_id)
this.document.frm_bill.bill_id.value=bill_id;
this.document.frm_bill.act.value="delete_bill";
this.document.frm_bill.submit();
</script>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="contact">
<?php
if($_REQUEST['msg']) {
?>
<div class="msg"><?=$_REQUEST['msg']?></div>
<?php
?>
<div class="static">
<table style="width:100%">
<tbody>
<td scope="col">ID</td>
<td scope="col">Month</td>
<td scope="col">Action</td>
</tr>
<?php
$sr_no=1;
while($data = mysql_fetch_assoc($rs))
?>
<tr>
<td><?=$data[bill_id]?></td>
<td><?=$data[bill_connection_id]?></td>
<td><?=$data[month_name]?></td>
<td><?=$data[bill_total_units]?></td>
<td><?=$data[bill_final_amout]?></td>
<td>
<?php if($data[bill_payment_status] != 1)
echo 'Not Paid'; else echo 'Paid';?>
</td>
<td style="text-align:center">
<?php if($data[bill_payment_status] == 1)
{ ?>
<a href="billing-confirmation.php?
bill_id=<?php echo $data[bill_id] ?>">Receipt | </a>
<?php } ?>
<?php if($_SESSION['user_details']
['user_level_id'] == 1) { ?>
<?php } elseif($data[bill_payment_status]
== 1) { ?>
<a href="make_payment.php?
bill_id=<?php echo $data[bill_id] ?>">Pay Bill</a>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
Code of category.php
<?php
include_once("includes/header.php");
if($_REQUEST[category_id])
$rs=mysql_query($SQL) or die(mysql_error());
$data=mysql_fetch_assoc($rs);
?>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="col1">
<div class="contact">
<div class="msg"><?=$_REQUEST['msg']?
></div>
<?php } ?>
<form action="lib/category.php"
enctype="multipart/form-data" method="post" name="frm_type">
<ul class="forms">
<li class="inputfield"><input
name="category_name" id="category_name" type="text" class="bar" required
value="<?=$data[category_name]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Description</li>
<li class="textfield"><textarea
name="category_description" cols="" rows="6" required><?
=$data[category_description]?></textarea></li>
</ul>
<div class="clear"></div>
<ul class="forms">
<li class="txt"> </li>
</ul>
</form>
</div>
</div>
<div class="col2">
</div>
</div>
Code of category-report.php
<?php
include_once("includes/header.php");
include_once("includes/db_connect.php");
$rs=mysql_query($SQL) or die(mysql_error());
?>
<script>
function delete_category(category_id)
this.document.frm_category.category_id.value=category_id;
this.document.frm_category.act.value="delete_category";
this.document.frm_category.submit();
</script>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="contact">
<?php
if($_REQUEST['msg']) {
?>
<div class="msg"><?=$_REQUEST['msg']?></div>
<?php
?>
<div class="static">
<table style="width:100%">
<tbody>
<td scope="col">ID</td>
<td scope="col">Name</td>
<td scope="col">Action</td>
</tr>
<?php
$sr_no=1;
while($data = mysql_fetch_assoc($rs))
?>
<tr>
<td><?=$data[category_id]?></td>
<td><?=$data[category_name]?></td>
<td style="text-align:center">
<a href="category.php?
category_id=<?php echo $data[category_id] ?>">Edit</a> | <a
href="Javascript:delete_category(<?=$data[category_id]?>)">Delete</a> </td>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<?php
include_once("includes/header.php");
if($_REQUEST[connection_id])
$rs=mysql_query($SQL) or die(mysql_error());
$data=mysql_fetch_assoc($rs);
?>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="contact">
<div class="msg"><?=$_REQUEST['msg']?
></div>
<?php } ?>
<form action="lib/connection.php"
enctype="multipart/form-data" method="post" name="frm_type">
<ul class="forms">
<li class="inputfield">
<select
name="connection_category_id" id="connection_category_id" class="bar" required
style="width:208px"/>
<?php echo
get_new_optionlist("category","category_id","category_name",
$data[connection_category_id]); ?>
</select>
</li>
</ul>
<ul class="forms">
<li class="inputfield">
<select name="connection_customer_id"
id="connection_customer_id" class="bar" required style="width:208px"/>
<?php echo
get_new_optionlist("user","user_id","user_name",
$data[connection_customer_id],"user_level_id = 2"); ?>
</select>
</li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="connection_bill_unit" id="connection_bill_unit" type="text" class="bar"
required value="<?=$data[connection_bill_unit]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="connection_company_name" id="connection_company_name" type="text"
class="bar" required value="<?=$data[connection_company_name]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Occupation</li>
<li class="inputfield"><input
name="connection_occupation" id="connection_occupation" type="text"
class="bar" required value="<?=$data[connection_occupation]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Email</li>
<li class="inputfield"><input
name="connection_add_email" id="connection_add_email" type="text" class="bar"
required value="<?=$data[connection_add_email]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Landline</li>
<li class="inputfield"><input
name="connection_add_landline" id="connection_add_landline" type="text"
class="bar" required value="<?=$data[connection_add_landline]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Mobile</li>
<li class="inputfield"><input
name="connection_add_mobile" id="connection_add_mobile" type="text"
class="bar" required value="<?=$data[connection_add_mobile]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="connection_request_load" id="connection_request_load" type="text"
class="bar" required value="<?=$data[connection_request_load]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="connection_contract_demand" id="connection_contract_demand"
type="text" class="bar" required value="<?=$data[connection_contract_demand]?
>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="connection_plot" id="connection_plot" type="text" class="bar" required
value="<?=$data[connection_plot]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Address</li>
<li class="inputfield"><input
name="connection_address" id="connection_address" type="text" class="bar"
required value="<?=$data[connection_address]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">City</li>
<li class="inputfield">
<select name="connection_add_city"
id="connection_add_city" class="bar" required style="width:208px"/>
<?php echo
get_new_optionlist("city","city_id","city_name",$data[connection_add_city]); ?>
</select>
</li>
</ul>
<ul class="forms">
<li class="txt">State</li>
<li class="inputfield">
<select name="connection_add_state"
id="connection_add_state" class="bar" required style="width:208px"/>
<?php echo
get_new_optionlist("state","state_id","state_name",$data[connection_add_state]); ?
>
</select>
</li>
</ul>
<ul class="forms">
<li class="txt">Pincode</li>
<li class="inputfield"><input
name="connection_add_pincode" id="connection_add_pincode" type="text"
class="bar" required value="<?=$data[connection_add_pincode]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Description</li>
<li class="textfield"><textarea
name="connection_description" cols="" rows="6" required
style="width:300px"><?=$data[connection_description]?></textarea></li>
</ul>
<div class="clear"></div>
<?php if($_SESSION['user_details']['user_level_id']
== 1) { ?>
<ul class="forms">
<li class="txt"> </li>
</ul>
<?php } ?>
</form>
</div>
</div>
<div class="col2">
</div>
</div>
Code of Connection-report.php
<?php
include_once("includes/header.php");
include_once("includes/db_connect.php");
if($_SESSION['user_details']['user_level_id'] == 2)
else
$rs=mysql_query($SQL) or die(mysql_error());
?>
<script>
function delete_connection(connection_id)
this.document.frm_connection.connection_id.value=connection_id;
this.document.frm_connection.act.value="delete_connection";
this.document.frm_connection.submit();
</script>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="contact">
<?php
if($_REQUEST['msg']) {
?>
<div class="msg"><?=$_REQUEST['msg']?></div>
<?php
?>
<div class="static">
<table style="width:100%">
<tbody>
<td scope="col">ID</td>
<td scope="col">Name</td>
<td scope="col">Action</td>
</tr>
<?php
$sr_no=1;
while($data = mysql_fetch_assoc($rs))
?>
<tr>
<td><?=$data[connection_id]?></td>
<td><?=$data[user_name]?></td>
<td><?=$data[connection_request_load]?
></td>
<td><?=$data[category_name]?></td>
<td style="text-align:center">
<?php if($_SESSION['user_details']
['user_level_id'] == 1) { ?>
<a href="connection.php?
connection_id=<?php echo $data[connection_id] ?>">Edit</a> | <a
href="Javascript:delete_connection(<?=$data[connection_id]?>)">Delete</a>
</td>
<a href="connection.php?
connection_id=<?php echo $data[connection_id] ?>">View</a>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<?php
include_once("includes/header.php");
if($_REQUEST[car_id])
$rs=mysql_query($SQL) or die(mysql_error());
$data=mysql_fetch_assoc($rs);
?>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="col1">
<div class="contact">
<div class='msg'><?=$_REQUEST['msg']?></div>
<ul class="forms">
<li class="txt">Username</li>
<li class="inputfield"><input
name="user_user" type="text" class="bar" required /></li>
</ul>
<ul class="forms">
<li class="txt">Password</li>
<li class="inputfield"><input
name="user_password" type="password" class="bar" required /></li>
</ul>
<ul class="forms">
<li class="txt"> </li>
<li class="inputfield"><a
href='user.php' style="color:#790101; font-weight:bold;">Click here for
register</a></li>
</ul>
<div class="clear"></div>
<ul class="forms">
<li class="txt"> </li>
<li class="textfield"><input
type="submit" value="Submit" class="simplebtn"></li>
<li class="textfield"><input
type="reset" value="Reset" class="resetbtn"></li>
</ul>
</form>
</div>
</div>
<div class="col2">
</div>
</div>
Code of make-payment.php
<?php
include_once("includes/header.php");
$R = $_REQUEST;
if($_REQUEST[bill_id])
$rs=mysql_query($SQL) or die(mysql_error());
$data=mysql_fetch_assoc($rs);
?>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="col1">
<div class="contact">
<img src="images/payment-banner.png"
style="height:100px; margin-bottom:10px;">
<form action="billing-confirmation.php">
<ul class="forms">
</ul>
<ul class="forms">
</ul>
<ul class="forms">
<li class="inputfield">
<option value="">Please
Select</option>
<option>MasterCard</option>
<option>Visa Card</option>
<option>Discover</option>
<option>Maestro</option>
<option>American Expresss</option>
</select>
</li>
</ul>
<ul class="forms">
<li class="inputfield">
<option>Month</option>
<option>January</option>
<option>February</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select>
<option>Year</option>
<option value="<?=$i?>"><?
=$i?></option>
<?php } ?>
</select>
</li>
</ul>
<ul class="forms">
</ul>
<ul class="forms">
</ul>
<div class="clear"></div>
<ul class="forms">
<li class="txt"> </li>
</ul>
</form>
</div>
</div>
<div class="col2">
<div class="contactfinder">
</div>
</div>
</div>
Code of user.php
<?php
include_once("includes/header.php");
if($_REQUEST[user_id])
$rs=mysql_query($SQL) or die(mysql_error());
$data=mysql_fetch_assoc($rs);
if($_REQUEST['type'])
$data[user_level_id] = $_REQUEST['type'];
?>
<script>
jQuery(function() {
changeMonth: true,
changeYear: true,
yearRange: "-65:-10",
});
jQuery('#frm_user').validate({
rules: {
user_confirm_password: {
equalTo: '#user_password'
});
});
function validateForm(obj) {
if(validateEmail(obj.user_email.value))
return true;
jQuery('#error-msg').show();
return false;
</script>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="col1">
<div class="contact">
<?php
if($_REQUEST['msg']) {
?>
<div class="msg"><?=$_REQUEST['msg']?></div>
<?php
?>
<ul class="forms">
<li class="txt">Name</li>
<li class="inputfield"><input
name="user_name" type="text" class="bar" required value="<?
=$data[user_name]?>"/></li>
</ul>
<?php if($_SESSION['user_details']['user_level_id']
== 1) {?>
<li class="inputfield">
<select name="user_level_id"
id="user_level_id" class="bar" required/>
<?php echo
get_new_optionlist("role","role_id","role_name",$data[user_level_id]); ?>
</select>
</li>
</ul>
<?php } if(!(isset($_REQUEST['user_id'])) ||
$_REQUEST['user_id'] == "") { ?>
<ul class="forms">
<li class="txt">Username</li>
<li class="inputfield"><input
name="user_username" type="text" class="bar" required value="<?
=$data[user_username]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Password</li>
<li class="inputfield"><input
name="user_password" id="user_password" type="password" class="bar" required
value="<?=$data[user_password]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="user_confirm_password" id="user_confirm_password" type="password"
class="bar" required value="<?=$data[user_password]?>"/></li>
</ul>
<?php } ?>
<ul class="forms">
<li class="txt">Mobile</li>
<li class="inputfield"><input
name="user_mobile" type="text" class="bar" required value="<?
=$data[user_mobile]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">Email</li>
<li class="inputfield"><input
name="user_email" id="user_email" type="text" class="bar" required value="<?
=$data[user_email]?>" onchange="validateEmail(this)" /></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="user_dob" id="user_dob" type="text" class="bar" required value="<?
=$data[user_dob]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="user_add1" type="text" class="bar" required value="<?
=$data[user_add1]?>"/></li>
</ul>
<ul class="forms">
<li class="inputfield"><input
name="user_add2" type="text" class="bar" required value="<?
=$data[user_add2]?>"/></li>
</ul>
<ul class="forms">
<li class="txt">City</li>
<li class="inputfield">
<?php echo
get_new_optionlist("city","city_id","city_name",$data[user_city]); ?>
</select>
</li>
</ul>
<ul class="forms">
<li class="txt">State</li>
<li class="inputfield">
<select name="user_state"
class="bar" required/>
<?php echo
get_new_optionlist("state","state_id","state_name",$data[user_state]); ?>
</select>
</li>
</ul>
<ul class="forms">
<li class="txt">Country</li>
<li class="inputfield">
<select name="user_country"
class="bar" required/>
<?php echo
get_new_optionlist("country","country_id","country_name",$data[user_country]); ?>
</select>
</li>
</ul>
<ul class="forms">
<li class="txt">Photo</li>
<li class="inputfield"><input
name="user_image" type="file" class="bar"/></li>
</ul>
<div class="clear"></div>
<ul class="forms">
<li class="txt"> </li>
</ul>
</form>
</div>
</div>
<div class="col2">
<div class="contactfinder">
<div><img src="<?=$SERVER_PATH.'uploads/'.
$data[user_image]?>" style="width: 250px"></div><br>
</div>
<?php } ?>
</div>
<div class="col2">
</div>
</div>
<?php
if($_SESSION['user_details']['user_level_id'] != 1)
?>
<script>
</script>
<?php
?>
Code of user-report.php
<?php
include_once("includes/header.php");
include_once("includes/db_connect.php");
$rs=mysql_query($SQL) or die(mysql_error());
global $SERVER_PATH;
?>
<script>
function delete_user(user_id)
this.document.frm_user.user_id.value=user_id;
this.document.frm_user.act.value="delete_user";
this.document.frm_user.submit();
</script>
<div class="crumb">
</div>
<div class="clear"></div>
<div id="content_sec">
<div class="contact">
<?php
if($_REQUEST['msg']) {
?>
<div class="msg"><?=$_REQUEST['msg']?></div>
<?php
?>
<div class="static">
<table style="width:100%">
<tbody>
<td scope="col">Image</td>
<td scope="col">Name</td>
<td scope="col">Mobile</td>
<td scope="col">Email</td>
<td scope="col">Action</td>
</tr>
<?php
$sr_no=1;
while($data = mysql_fetch_assoc($rs))
?>
<tr>
<td><img src="<?
=$SERVER_PATH.'uploads/'.$data[user_image]?>" style="heigh:50px;
width:50px"></td>
<td><?=$data[user_name]?></td>
<td><?=$data[user_mobile]?></td>
<td><?=$data[user_email]?></td>
<td><?=$data[user_dob]?></td>
<td style="text-align:center"><a
href="user.php?user_id=<?php echo $data[user_id] ?>">Edit</a> | <a
href="Javascript:delete_user(<?=$data[user_id]?>)">Delete</a> </td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
Today, the market place is flooded with several Electricity Billing System options for
shoppers to choose from. A variety of innovative products and services are being
offered spoiling customers for choice. Online Electricity Billing System is no more a
privilege enjoyed by your company. Today, it is a reality in India. In the last couple of
years, the growth of Electricity Billing System industry in India has been
phenomenal as more shoppers have started discovering the benefits of using this
platform. There is enough scope for online businesses in the future if they
understand the Indian shoppers psyche and cater to their needs. 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 possible 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.
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 possible 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.
Bibliography:
Books Used:
Software Engineering - R.S. Pressman
PHP For Dummies
PHP Begineers Guide By McGrawhill Publication
PHPscript By McGrawhill Publication