Professional Documents
Culture Documents
Department of Information Technology & Computer Application Jecrc University, Jaipur
Department of Information Technology & Computer Application Jecrc University, Jaipur
Billing System
A
Project Report
Submitted
In partial fulfillment
For the award of the Degree of
Master of Computer Application
by
Submitted To Submitted By
Candidate’s Declaration
Your Name:
Enrolment No.
Date:
Abstract
Objective
“To make software fast in processing, with good user interface so that
user
can change it and it should be used for a long time without error
andmaintenance.”
Work Flow
Login
Admin
Scope
Many Billing System use this type of billing system for a decade. It is also
improved many times according to requirements of sellers and
customers. It does the same work that is calculating the bill, gives it to the
customer and maintain proper database. They are accurate in calculation
and printing, they also generate records.
A new concept is also added in the billing system is that they also
maintain relationships with the customers who purchase more products
from the store regularly. System also concerns their requirements and
gives them more commission. It also shows the overall profit and profit
on a particular product and give repots which items are required and
which have cross their expiry date
Billing System
Index.php
<?php
error_reporting(0);
ob_start();
session_start();
if($_SESSION['admin_id'] != '')
{
header("Location:home.php");
}
?>
<?php
ob_start();
session_start();
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db("admin");
$username = $_POST['name'];
$pass = $_POST['pass'];
if(mysql_num_rows($query) > 0)
{
$get = mysql_fetch_assoc($query);
$_SESSION['admin_id'] = $get['id'];
$_SESSION['fail']=0;
header("Location:home.php");
}
else
{
$_SESSION['fail']=1;
header("Location:index.php");
}
?>
……………………………………………………………………………………………………………….
Home.php
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-navnavbar-collapse">
<ul class="nav" id="side-menu">
<li>
<a href="#"><i class="fafa-table
nav_icon"></i>Student<span class="fa arrow"></span></a>
<ul class="navnav-second-level">
<li>
<a href="add.php">New Add Student</a>
</li>
<li>
<a href="basic_tables.php">All Student</a>
</li>
<li>
<a href="find.php">Find ?</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>
<li>
<a href="#"><i class="fafa-table nav_icon"></i>Fees<span
class="fa arrow"></span></a>
<ul class="navnav-second-level">
<li>
<a href="Fees.php">Add Monthly Fees</a>
</li>
<li>
<a href="show.php">Show All Fees</a>
</li>
<li>
<a href="exam.php">Exam Fees</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>
<li>
<a href="#"><i class="fafa-check-square-o
nav_icon"></i>Bill<span class="fa arrow"></span></a>
<ul class="navnav-second-level">
<li>
<a href="form3.php">Create New bill</a>
</li>
<li>
<a href="cp.php">Change bill</a>
</li>
<li>
<a href="allbill.php">All bill</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>
<li>
<a href="#"><i class="fafa-sitemap fa-
fwnav_icon"></i>Css<span class="fa arrow"></span></a>
<ul class="navnav-second-level">
<li>
<a href="media.html">Media</a>
</li>
<li>
<a href="index.php">Login</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>
</ul>
</div>
……………………………………………………………………………………………………………………………
Add.php
<?php
error_reporting(0);
if(isset($_POST['submit']))
{
mysql_connect('localhost','root','');
mysql_select_db('admin');
$a=$_POST['name'];
$b=$_POST['fname'];
$c=$_POST['mail'];
$d=$_POST['num'];
$e=$_POST['add'];
$f=$_POST['dob'];
$date= date('d/m/y');
$qry = mysql_query("SELECT * FROM `item` ORDER BY
`item`.`id` DESC") ;
$data =mysql_fetch_assoc($qry);
$last_id = $data['sid'];
$x=substr($last_id,6,4);
if ($x=='')
{
$x=1001;
}
$y= $x+1;
$year = date(Y);
$f=substr($a,0,1);
$l=substr($b,0,1);
$sid=$f.$l.$year.$y;
$a=$_POST['name'];
$b=$_POST['fname'];
$c=$_POST['mail'];
$d=$_POST['num'];
$e=$_POST['add'];
$f=$_POST['dob'];
$date= date('d/m/y');
$z=$_POST['g'];
$imgFile = $_FILES['user_image']['name'];
$tmp_dir = $_FILES['user_image']['tmp_name'];
$imgSize = $_FILES['user_image']['size'];
$upload_dir = 'user/'; // upload directory
$imgExt =
strtolower(pathinfo($imgFile,PATHINFO_EXTENSION)); // get
image extension
move_uploaded_file($tmp_dir,$upload_dir.$userpic);
}
else{
$errMSG = "Sorry, your file is
too large.";
}
}
?>
…………………………………………………………………………………………………………………….
Bsic.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');
while($results= mysql_fetch_assoc($query))
{
?>
<tr class="active">
<th scope="row"><?php echo $results['id'];?></th>
<td><?php echo $results['name'];?></td>
<td><?php echo $results['sid'];?></td>
<td><?php echo $results['Fname'];?></td>
<td><?php echo $results['mail'];?></td>
<td><?php echo $results['num'];?></td>
<td><a href="view.php?id=<?php echo
$results['id'];?>">View</a></td>
</tr>
</tbody>
<?php
?>
Find.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');
if(isset($_POST['submit']))
{
$roll = $_POST['Roll'];
$query="select * from item where sid='$roll'";
$query2= mysql_query($query);
while($results= mysql_fetch_array($query2))
{
?>
<tr class="active">
</tr>
</tbody>
</table>
</div>
<?php
}
}
?>
…………………………………………………………………………………………………………………..
View.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');
$id = $_GET['id'];
echo $query=mysql_query("SELECT `name`, `Fname`, `mail`,
`num`, `add`, `DOB`, `join`,`sid`,`g`,`userpic` FROM
`item` WHERE id='$id'");
$a=mysql_fetch_assoc($query)
?>
……………………………………………………………………………………………………………
Update.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');
while($results= mysql_fetch_assoc($query))
{
?>
<tr class="active">
<th scope="row"><?php echo $results['id'];?></th>
<td><?php echo $results['name'];?></td>
<td><?php echo $results['rate'];?></td>
<td><?php echo $results['num'];?></td>
<td><a href="update1.php?id=<?php echo
$results['id'];?>">Update</a></td>
</tr>
</tbody>
<?php
?>
……………………………………………………………………………………………………..
Off.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');
if(isset($_POST['submit']))
{
$roll = $_POST['Roll'];
$query="select * from item where sid='$roll'";
$query2= mysql_query($query);
while($results= mysql_fetch_array($query2))
{
?>
……………………………………………………………………………………………………………….
Pay.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');
while($results= mysql_fetch_assoc($query))
{
?>
<h1><?php echo $results['fees'];?></h2>
<?php
?>
<?php
foreach($_REQUEST['country'] as $key => $as)
{
$as; echo '<br>';
$_REQUEST['state'][$key];echo'<br>';
$_REQUEST['sem'];echo'<br>';
$_REQUEST['num'];
$_REQUEST['add'];
$_REQUEST['sid'];
$_REQUEST['name'];
$_REQUEST['p'];
$_REQUEST['f'];
date_default_timezone_set("Asia/Kolkata");
$dat=date("d-M-Y-");
$day=date("h:i:s: A");
$dat;
$day;
}
?>
Conclusion of Project
Our project is on supermarket Billing System. We have
successfully completed it. We take this opportunity to express
our sense of indebtedness and gratitude to all those people who
helped us in completing this project.
We are immensely grateful to our esteemed faculty guide
Assistant Prof. Mr Vijay Singh Rathore and other faculties for
their supervision and guidance without which this work would
not have beenpossible.This project has contributed a lot to my
knowledge that hasproved to be a value addition for me.