Coding For Electricity Billing System

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 24

Coding for Electricity Billing System

Homepage….

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="data:image/x-icon;base64,A==" rel="icon"
type="image/x-icon" />

<title>E-bill System</title>

<!-- Bootstrap core CSS -->


<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/font-awesome.css" rel="stylesheet">
<!-- <link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/
font-awesome.min.css"> -->

<!-- Custom styles for this template -->


<link href="assets/css/main.css" rel="stylesheet">

<!-- Fonts from Google Fonts -->


<!-- <link href='http://fonts.googleapis.com/css?
family=Lato:300,400,700' rel='stylesheet' type='text/css'> -->

<!-- HTML5 shim and Respond.js IE8 support of HTML5


elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the
page via file:// -->
<!--[if lt IE 9]>
<script
src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"
></script>
<script
src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.j
s"></script>
<![endif]-->
</head>

<body>

<!-- Fixed navbar -->


<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand"
href="index.php"><b>Prayagraj Billing System</b></a>
</div>
<div class="navbar-collapse collapse" >
<!-- NOTE
SINGLE PAGE FORM ALONG WITH VALIDATION
NO PHP LEAKS BACK TO THE INDEX
-->

<form action="index.php" class="navbar-form navbar-right"


role="form" method="post">
<div class="form-group">
<input type="text" placeholder="Email" name="email"
id="email" class="form-control">
</div>
<div class="form-group">
<input type="password" placeholder="Password"
name="pass" id="pass" class="form-control">
</div>
<button type="login_submit" class="btn btn-success"
onclick=" validateForm();">Sign In</button>
</form>

</div>
<!--/.nav-collapse -->
</div>
</div>

<div id="headerwrap">
<div class="darkhearderwrap">
<div class="container">
<div class="row">
<div class="col-lg-6 signup">
<h1>Prayagraj Billing System</h1>
<p>This website at the end of its construction
will act as a consumer oriented service for users for easy
payment of their respective <b>Electricity Bill</b> as well as
interact with their providers in case of any queries or
grivances.</p>
</div>
<!-- /col-lg-6 -->
<div class="col-lg-6">
<h1>Sign Up</h1>
<!-- NOTE
SINGLE PAGE FORM ALONG WITH VALIDATION
NO PHP LEAKS BACK TO THE INDEX
-->

<form action="signup.php" method="post" class="form-


horizontal" role="form" onsubmit="return validateForm()">
<center>
<div class="row form-group">
<div class="col-md-12">
<input type="name" class="form-control" name="name"
id="name" placeholder="Full Name" required>
<!-- <label></label> -->
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input type="email" class="form-control" name="email"
id="email" placeholder="Email" required>
<!-- <label></label> -->
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input type="password" class="form-control"
name="inputPassword" id="inputPassword"
placeholder="Password" required>
<!-- <label></label> -->
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input type="password" class="form-control"
name="confirmPassword" placeholder="Confirm Password"
required>
<!-- <label></label><label></label> -->
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input type="tel" class="form-control"
name="contactNo" placeholder="Contact No." required>
<!-- <label></label> -->
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input type="address" class="form-control"
name="address" placeholder="Address" required>
<!-- <label></label> -->
</div>
</div>
<div class="form-group">
<div class="col-md-10">
<button name="reg_submit" class="btn btn-
primary">Sign Up</button>
</div>
</div>
</center>
</form>
</div>
<!-- /col-lg-6 -->

</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
</div>
<!-- /headerwrap -->

<div class="container">
<div class="row mt centered">
<div class="col-lg-6 col-lg-offset-3">
<h1>How this Portal woks</h1>
<h3></h3>
</div>
</div>
<!-- /row -->

<div class="row mt centered">


<div class="col-lg-4">
<img src="assets/img/ser01.png" width="180" alt="">
<h4>1 - Login</h4>
<p></p>
</div>
<!--/col-lg-4 -->

<div class="col-lg-4">
<img src="assets/img/ser02.png" width="180" alt="">
<h4>2 - Peruse Bills</h4>
<p></p>
</div>
<!--/col-lg-4 -->

<div class="col-lg-4">
<img src="assets/img/ser03.png" width="180" alt="">
<h4>3 - Transact</h4>
<p></p>
</div>
<!--/col-lg-4 -->

</div>
<!-- /row -->
</div>
<!-- /container -->

<div class="container">
<hr>
<p class="centered">Created by <a
href=""><b>BILLING</b></a> <b>eletricity billing</b></p>
</div>

<!--
=======================JS=====================
====== -->
<!-- Placed at the end of the document so the pages load faster
-->
<script src="assets/js/jquery-1.11.0.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- jQuery Version 1.11.0 -->

<script src="assets/js/custom.js"></script>
<script>

function validateForm() {
var x = document.forms["myForm"]["email"].value;
var atpos = x.indexOf("@");
var dotpos = x.lastIndexOf(".");
if (atpos< 1 || dotpos<atpos+2 || dotpos+2>=x.length) {
alert("Not a valid e-mail address");
return false;
}
} </script>

</body>

</html>
//Interface after Login

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link href="data:image/x-icon;base64,A==" rel="icon"
type="image/x-icon" />

<title>Ebill</title>

<!-- Bootstrap Core CSS -->


<link href="../assets/css/bootstrap.css" rel="stylesheet">

<!-- Custom CSS -->


<link href="../assets/css/dash_user.css" rel="stylesheet">
<!-- <link href="../assets/css/font-awesome.css"
rel="stylesheet"> -->

<!-- Custom Fonts -->


<!-- <link href="font-awesome-4.1.0/css/font-
awesome.min.css" rel="stylesheet" type="text/css"> -->
<!-- FONT AWESOME CDN -->
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/
font-awesome.min.css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5


elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the
page via file:// -->
<!--[if lt IE 9]>
<script
src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"
></script>
<script
src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.j
s"></script>
<![endif]-->
</head>
<!-- email = email i.e one and the same thing -->
<!-- convert to mysqli -->

<body>

<div id="wrapper">

<nav class="navbar navbar-inverse navbar-fixed-top"


role="navigation">
<!-- Brand and toggle get grouped for better mobile display --
>
<div class="navbar-header">
<!-- <button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button> -->
<a class="navbar-brand" href="index.php"><i class="fa fa-
bolt"></i> E-Billing System</a>
</div>
<!-- /.navbar-header -->

<a style="position:absolute;top:35px;left:-1px;font-
size:20px;color:#7f7f7f;padding:5px;background-color:
#000;border-bottom-right-radius:10px; " href="#menu-toggle"
id="menu-toggle" <i class="fa fa-dedent"></i></a>

<!-- Top Menu Items -->


<ul class="nav navbar-right top-nav" style="margin-right:
10px">
<li class="dropdown">
<a style="font-size:16px" href="#" class="dropdown-
toggle" data-toggle="dropdown"><i class="fa fa-user"></i>
sarfaraz <b class="caret"></b></a> <ul
class="dropdown-menu">
<li>
<a href="#" data-toggle="modal" data-
target="#profile"><i class="fa fa-fw fa-user"></i> Profile</a>
</li>

<li class="divider"></li>
<li>
<a href="logout.php"><i class="fa fa-fw fa-power-
off"></i> Log Out</a>
</li>
</ul>
</li>
</ul>
<!-- /.top-nav -->
</nav>
<!-- /.navbar -->

<!-- MODAL -> USER INFO -->


<div class="modal fade" id="profile" tabindex="-1"
role="dialog" aria-labelledby="myModalLabel" aria-
hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-
dismiss="modal"><span
aria-hidden="true">&times;</span><span class="sr-
only">Close</span></button>
<h3 class="modal-title"><b><i class="fa fa-fw fa-
user"></i>PROFILE</b></h3>
</div>
<div class="modal-body text-center">
<h4>Name : <code>sarfaraz</code></h4>
<h4>Email :
<code>sarfarazalisyed2@gmail.com</code></h4>

</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<!-- Sidebar -->


<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="active">
<a href="index.php"><i class="fa fa-fw fa-
dashboard"></i> Dashboard</a>
</li>
<li>
<a href="bill.php"><i class="fa fa-fw fa-dollar"></i>
Bills </a>
</li>
<!-- new bills by bootstrap badges -->
<li>
<a href="transaction.php"><i class="fa fa-fw fa-
table"></i> Transactions </a>
</li>
<li>
<a href="complaint.php"><i class="fa fa-fw
fa-info"></i> Complaints </a>
</li>
<!-- processed bills as bootstrap badges -->
</ul>
</div>
<!-- /#sidebar-wrapper -->

<!-- Page Content -->


<div id="page-content-wrapper">

<div class="container-fluid">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Bills
</h1>

<!-- Pills Tabbed HISTORY | DUE -->


<ul class="nav nav-pills nav-justified">
<li class="active"><a href="#history" data-
toggle="pill">History</a>
</li>
<li class=""><a href="#due" data-
toggle="pill">Due</a>
</li>
</ul>

<!-- Tab panes -->


<div class="tab-content">
<div class="tab-pane fade in active"
id="history">
<!-- <h4>{User} Bills(ALL UP TO DATE)
goes here{Table form}</h4> -->
<!-- DB RETRIEVAL search db where id is
his and status is processed -->
<div class="table-responsive">
<table class="table table-hover table-
striped table-bordered table-condensed">
<thead>
<tr>
<th>Bill No.</th>
<th>Bill Date</th>
<th>UNITS Consumed</th>
<th>Amount</th>
<th>Due Date</th>
<th>STATUS</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="col-md-offset-5"></div>
</div>
<!-- .table-responsive -->
</div>
<div class="tab-pane fade" id="due">
<!-- <h4>{User} due bill info goes here and
each linked to a transaction form </h4> -->
<div class="table-responsive">
<table class="table table-hover table-
striped table-bordered table-condensed">
<thead>
<tr>
<!-- <th>#</th> -->
<th>Bill Date</th>
<th>UNITS Consumed</th>
<th>Due Date</th>
<th>Amount</th>
<th>DUES</th>
<th>Payable</th>
<th>Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>

<div class="col-md-offset-5"></div>
</div><!-- ./table-responsive -->

</div> <!-- .tab-pane -->

</div><!-- .tab-content -->

</div><!-- /.col-lg-12 -->

</div> <!-- /.row -->

</div><!-- /.container-fluid -->

</div>
<!-- /#page-content-wrapper -->

</div>
<!-- /#wrapper -->
<!-- FOOTER -->
<footer class="text-center">
<div class="footer-below">
<div class="container">
Created by <a href="">Billing </a> System
</div>
</div>
</footer>
<!-- jQuery Version 1.11.0 -->
<script src="../assets/js/jquery-1.11.0.js"></script>

<!-- Bootstrap Core JavaScript -->


<script src="../assets/js/bootstrap.min.js"></script>

<!-- FORM VALIDATION -->

<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
</body>

</html>

You might also like