Project PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 61

Online Gas Booking System

1.Introduction
KMMIPS is an educational society established in 2000 by a group of
retired civil servant. This is an educational society which serves for the
betterment of the students. Initially this college offers three major
programs MCA, MBA and B.Ed.

The main aim of the project “ONLINE GAS BOOKING SYSTEM”is to


reduce the manual work at Online Gas Booking. Every sort of task is
performed by the system, such as registering different types of persons
and complaints etc.

KMM Institute of Post Graduate Studies:

• Provide good higher level educational services.


• Develop good communicational skills to students.
• Provide good managerial skills to MBA, MCA &B.ED Students.

This approach rests on:

• A strategy where we architect, integrate and manage technology


services and solutions.
• A robust offshore development methodology and reduced Manual
works of students.

They understand the importance of timing, getting details of necessary


information as well as storing the information. A rich portfolio of reusable,
modular frameworks helps jump start projects.

A full service portfolie:

This offers user and Administrator maintain, architect, integrate and


manage through the system.

Services:

This system provides its services to customers, which are in the field of
providing good helpful online gas booking system.

1 K M M I P S : : TIRUPATHI
Online Gas Booking System

1.1 Organization Profile:

“SathyamevaJayathi” – Truth always Triumph is the motto of our KMM


Educational Society, Tirupati.

Nothing is permanent except change. The ongoing advances in computer


communications technology continue to have profound effect on the way
people work and play. Both the technology itself and the expectations of
the people who use it are altering the features of the information system
that analysis, design and the widespread deployment of information
systems in changing the very nature of the society in which the systems
are used. The development of the information economy.

KMM Institute of postgraduate studies very popularly known as KMMIPS


has emerged as a major Technological Institute managed by KMM
SOCIAL AND EDUCATIONAL DEVELOPMENT SOCIETY, Tirupathi. The
KMM Society has taken the lead role to establish the institute in academic
year 2001-2002. Sprawled over an area of 25 acres, permanent
infrastructural facilities are being developed near Tirupathi-Madanapalli
state Highway at Ramireddypalle. KMMIPS has already secured the
approval from the All India Council of Technical Education (AICTE). New
Delhi, and Government of Andhra Pradesh and is affiliated to Sri
Venkateswara University, Tirupati.

KMMIPS offers admission into the professional courses MCA and MBA
with annual intake of 180 and 180 seats each. The institution is governed
by the chairman Sri S.Srinivasulugaru, retired IRS (Indian Revenue
Service) officer with the support of an advisory body consisting of the
eminent personalities form different fields.

Company: KMM Educational Institutions, Tirupathi.

Contact:Madanapalli Highway Road, Ramireddipalle, Tirupathi.

Operating Since: 2000

Managing Director: Sri S.SrinivasuluGaru

2 KM M I P S : : TIRUPATHI
Online Gas Booking System

Legal Status: Educational Society

1.2Organization Chart:

KMM Educational Society

KMM Institute of Post Graduate Studies

Principal

Teaching Staff Non Teaching Staff

1.3 Project Report Layout:

This project consists of eight chapters with an overview of computerization


of Online Gas Booking System.

Chapter 1 Introduction: It deals with the overview of the organization and


its administrative hierarchy.

Chapter 2 Genesis of the Study: It outlines the Existing problem, the


solution proposed, methodology used and looks at how the preliminary
investigation carried out, what are all its scope and objectives and
limitations of existing manual system.

Chapter 3 Feasibility Study: It is used to test the feasibility of the project


i.e., Operational, Technical and Economical feasibilities of the system.

Chapter 4 System Analysis: It deals with software requirement


analysis. The various entities and their requirements and their
relationships are discussed using E-R Diagrams.

3 KM M I P S : : TIRUPATHI
Online Gas Booking System

Chapter 5 System requirements: It explains about the various hardware


and software requirements and their features.

Chapter 6 System Design: It contains the description of all the tables


and its attributes, design priniciples, HIPO charts and user interface
design.

Chapter 7 System Testing: It presents software-testing strategies and


techniques like white box testing, back box testing.

Chapter 8 Implementation: It gives the software and hardware


implementation details of the system.

Chapter 9 Conclusion:

4 KM M I P S : : TIRUPATHI
Online Gas Booking System

2.Genesis of Study
This chapter deals with the study of the existing system and describes the
need for the proposed system to overcome the drawbacks in the existing
system. It also specifies the objectives , scope of the system and also the
methodology for the system development.

Hence the genesis of the study clearly depicts the factors regarding the
beginning of the existing system and its extension to the proposed system
and it includes the following.

2.1 Aim:

“ONLINE GAS BOOKING SYSTEM” is used to maintain. The main


intention of introducing this system is to reduce the manual work at gas
booking centers. Every sort of task is performed by the system, such as
registering different types of persons and complaints etc. reducing much
paper work and burden of file storage. Also the latest information is right
available for the officials and executives wherever they require .

2.2 . Problem Description:

In our system we are developing a system which helps in customer book


gas .The new system will maintain and store all the record with out any
overhead cost. All the process of booking will be web based online which
makes it robust and globally available.

2. 2. 1 . Description Existing System:

The existing system is a manual system. In the present Gas bookig


system, all the activities are done manually. All data entry is performed by
writing data into the book, paper documents. The payments are prepared
manually, so there is a chance for occurring errors and the calculations are
not so accurate. Various information’s such as customer details, product
details, supplier details stock and customer requirements are handled
manually.When there is need for retrieving detailssearchingisunavoidable

5 KM M I P S : : TIRUPATHI
Online Gas Booking System

this is a difficult task searching the records manually .This is also too much
time consuming when we want to retrieve details according to some
specific condition.

2.3 Scope:

The system extends its scope from manual to computerize. The system
provides scope for the Gas Booking using online.

Users:

• Admin
• User

2.4 Methodology:

The source of information for developing the proposed system is gathered


directly from clients of end user who is going to use the package becomes
the primary source to give information.

A detailed study and understanding of the existing system is done either


by questionnaires or by conducting interviews before developing the
proposed one. Different inputs, process and output are well understood
before designing the system.

Application software like PHP with HTML. MY SQL is used for storing
database information and it is used to construct the required code, so as to
give the results as per the requirements of the system. The concepts of
software engineering have been implemented successfully and uniformly
throughout the system. The performance of the integrated system will be
uniform.

For building this project, we followed Rapid Application Development


Model as the requirements of this project are completed analyzed at the
beginning of the project itself.

“Rapid Application Development (RAD) is an incremental software


development process model that emphasizes a very short development

6 KM M I P S : : TIRUPATHI
Online Gas Booking System

cycle [typically 60-90 days],”, The RAD model, shown in the above figure
is a high speed adaptation of the waterfall model, where the result of each
cycles a fully functional system.

2.5 Proposed System:

This proposed system will helps to the customers to register from any
place ,along with this they will register in the online gas booking system
through the same website at the same time.

2.5.1 Advantages:

The online gas booking system can get much out of the system. The
system is used to enter the customer details and to enter the details about
the details about the transaction and stock in detail and about the reports
of the users . This system represents the customers by the
‘CUSTOMER ID ’number and the main advantage of this system is to
reduse the time and give efficient services to the customers within limited
period of time.

1. Security:

The software used for this gas agency system include the password,
so the security is provided. When anyone opens the software it has the
provision for entering password. We have to enter the correct
password; otherwise we cannot enter into the system. Password is
saved in system registry for more security.

2. User Friendly:

This package is very user friendly because it is easy to maintain and


operate. All data entry operations are simple, administrator wants only
enter data and all other operations are performed by the computer.

7 KM M I P S : : TIRUPATHI
Online Gas Booking System

3.Speed and Accuracy:

Computerization process increases the speed of all the operations. The


manpower is reduced. Instead of doing all operation manually,
computer will do it automatically. It also increases the accuracy of all
the operations performed.

4.Efficiency and flexibility:

The flexibility and the efficiency of all the operation in this gas agency
system is increased because of the computerization. No errors are
occurred compared to the manual system. Instead of searching lot of
data, we can produce report in a few seconds.

5.Formatted Output:

Each output of the proposed system is formatted in such a way so as


to allow easy decision making. We can print the profile easily using
data reports.

2.5.2 Limitations of Proposed system:

• This system doesn’t work on the Linux Operating System. It works


only on windows environment.
• Our developed system will be applicable only for the people who has
awarness of the internet only
• Only few members will get this services per one day
• It does not provide any extra services to the people.
• This online services get the people who will registered on the system
only.

8 KM M I P S : : TIRUPATHI
Online Gas Booking System

3.Feasibility Study
Generally the feasibility study is used for determining the resources, cost,
benefits and whether the proposed system is feasible with respect to the
organization or not. The feasibility of proposed Online Gas Booking
System could be evaluated as follows. There are three types of feasibility
which are equally important are:

• Operational feasibility
• Technical feasibility
• Economical feasibility

3.1 Operational Feasibility:

The operational feasibility is the willingness and ability of the users to run
the developed system without any difficulty. In this project we maintain the
customer Profile, customer Registration activities related to the entire
Online Gas Booking System.

The data entry can be done without any difficulty because the screens has
been developed as user friendly and by seeing the screens itself, he can
get an overview of the process to be done. Any errors if arises at the time
of the usage by the user can be debugged with ease by the user itself.
Therefore the proposed system is operationally feasible.

3.2 Technical Feasibility:

Technical Feasibility deals with the existing technology, software and


hardware requirements for the proposed system. The proposed system is
planned to run on windows 10 and its higher version family.

Thus, we get to know that this project is considered technically feasible for
the development because the work for the project can be done with
current equipment, existing software technology and with available
personnel itself.

9 KM M I P S : : TIRUPATHI
Online Gas Booking System

3.3 Economical feasibility:

This method is most frequently used for evaluating the effectiveness of a


system. It is also called as cost/benefit analysis. The development of the
system can be done with the current equipment, existing software
technology. Since the required Hardware and Software for developing the
system is already available in the organization, it does not cost much for
developing the proposed system. Thus, this project is economically
feasible.

10 KM M I P S : : TIRUPATHI
Online Gas Booking System

4. System Analysis
System analysis is an important activity that takes place when we are
building a new system or changing existing one. Analysis helps to
understand the existing system and the requirements necessary for
building the new system. If there is no existing system, then analysis
defines only the requirements.

One of the most important factors in system analysis is to understand the


system and its problems. A good understanding of the system enables
designer to identify and correct problems.

4.1 Entity-Relationship Diagrams:

The Entity-Relationship Diagram depicts a relationship between data


objects. The ERD is the notation that is used to conduct the data
modeling activity. The attributes of each object noted in the ERD can be
described using a data object description.

At first a set of primary components are identified for ERD i.e. Data
objects, Attributes, Relationships and Various type indicators. Data
objects are represented by labeled rectangles. Relationships are indicated
with labeled lines connecting objects.

Data modeling and the Entity-Relationship diagram provide the analyst


with a concise notation for examining data within the context of data
processing application.

The above diagram explains about the various database tables and the
relation among those tables almost all the tables have one-to-many
relationship.

11 KM M I P S : : TIRUPATHI
Online Gas Booking System

Fig4.1 Entity Relation ship Diagram

4.2 Data Flow Diagram(DFD):

A data flow diagram is a graphic description of the system or portion of a


system. It is used to describe and analyze the movement of data through
a system. Data flow diagrams are the center tool and the basic which other
components are developed.

The transaction of data from input to output, through process, may be


described logically and independently of the physical components
associated with the system. It consists of data flow process; sources,
destination and stores all described through the use of easily understood
symbols.

Physical Flow Diagrams:

There are implementation dependent views of current system showing


what task is carried out how they are performed. These diagrams show
the actual devices, departments, and people in system.

12 KM M I P S : : TIRUPATHI
Online Gas Booking System

Logical Flow Diagrams:

As implementation-independent view of the system, focusing on the flow of


data between processes without regard for the specific devices, storage
location and people in the system.

At level 0 DFD, also called as the context diagram, represents the entire
system as a single module with input and output data indicated why
incoming and outgoing arrows respectively.

At level 1 DFD, also called as Top-Level DFD, represent the system with
major modules and data stores. The other levels will show each module in
the Top-Level DFD in a more detailed fashion.

Context level Diagram

Level 0

USER
WEBSITE

USER
ADMIN

13 KM M I P S : : TIRUPATHI
Online Gas Booking System

First Level Diagram

USER

Request
USER REG BOOKINg

FEEDBACK TRANSACTI
ON

LEVEL0

ADMIN

ENTERREG NO CHECKS ALL UPDATES

REG TRANSACTION UP TOdate


USER Gasbooki TRANSACTION
ng

LOGIN

CHECK The STOCK

STOCK

14 KM M I P S : : TIRUPATHI
Online Gas Booking System

4.3 Use Case Diagrams:

A Use Case Diagram is a graph of actors, a set of use cases enclosed by


a system boundary, communication (participation) associations between
the actors and the Use Cases, and generalization among the use cases.A
use case is shown as an ellipse containing the name if the use case. The
name if the use case can be placed below or inside the ellipse. Actor’s
names are the use case names should follow the capitalization and
punctuation guidelines of the model.

An actor is shown as a class rectangle with the label <<actor>>, or the


label and sick figure with the name of the actor below the figure. In the
use case diagram they are the two actors like Admin, Customer and the
Administrator.

The relationships are shown in a use case diagram:

1. Communication: The communication relationship of an actor in a use


as is shown by connecting actor symbol by connecting actor symbol to the
use case symbol with a solid path. The actor is said to “communicate”
with the use case.

2. Uses: A uses relationship between use cases is shown by a


generalization arrow from the use case.

3. Extends:The extends relationship is used when you have one use case
that is similar to another use case but does a bit more. In essence, it is like
a subclass.

15 KM M I P S : : TIRUPATHI
Online Gas Booking System

4.3.1 Use Case Diagram for Online GasBooking Details:

Fig:4.1 Use Case Diagram for Online GasBooking Details:

4.2 Use Case Diagram for Customer tasks Details:

Fig:4.2 Use Case Diagram for Customer tasks Details:

16 KM M I P S : : TIRUPATHI
Online Gas Booking System

4.3 Use case Diagram for Admin tasks Details:

Fig:4.3 Use case Diagram for Admin tasks Details:

4.4 Sequence Diagram for Gas bookingProfile:

Fig:4.4 Sequence Diagram for Gas bookingProfile:

17 KM M I P S : : TIRUPATHI
Online Gas Booking System

4.5 Data Dictionary :

AData Dictionary as the name implies, is a repository of information about


data. In some database systems, the stored definitions of data(called
schemas) Provide all necessary data dictionary information.

In others, the data dictionary is supplementary. The information in the


data dictionary is about types of data and uses of data.

Data dictionary is used:

• To manage the details in large system.


• To communicate a common meaning for all system developers.
• To document the features of the system.
• To facilitate analysis of the details in order to evaluate characteristics
and determine where system changes to be made.

18 KM M I P S : : TIRUPATHI
Online Gas Booking System

5 .System Requirements
System requirements gives the idea about what are the necessary things
that are needed for proposed system, which plays very important role in
development of any system. This chapter deals with what are hardware
components that are needed for the system, application software that are
required for the development of the system.

The environment deals with the features of software. HTML is used as the
front-end tool and MySQL as a backend. Front end tools help to visualize
the system through naked eyes while back end helps in activities which
are unseen to the end user.

5.1 Hardware Requirements:

✓ RAM : 1GB
✓ HARDDISK : 20GB
✓ PROCESSOR : Intel Pentium III

5.2 Software Requirements:

OPERATING SYSTEM : Windows 10

FRONT END :Html,css,java script.

SERVER SIDE SCRIPT : Php

DATABASE :Mysql

5.2.1 Features of Software

HTML:

HTML or Hypertext Markup Language is the standard markup


language used to create web pages.

HTML is written in the form of HTML elements consisting of tags enclosed


in angle brackets (like <html>). HTML tags most commonly come in pairs
like <h1> and </h1>, although some tags represent empty elements and
so are unpaired, for example <img>. The first tag in a pair is the start tag,

19 KM M I P S : : TIRUPATHI
Online Gas Booking System

and the second tag is the end tag (they are also called opening
tags and closing tags). Though not always necessary, it is best practice to
append a slash to tags which are not paired with a closing tag.

The purpose of a web browser is to read HTML documents and compose


them into visible or audible web pages. The browser does not display the
HTML tags, but uses the tags to interpret the content of the page. HTML
describes the structure of a website semantically along with cues for
presentation, making it a markup language rather than a programming
language.

HTML elements form the building blocks of all websites. HTML


allows images and objects to be embedded and can be used to create
interactive forms. It provides a means to create structured documents by
denoting structural semantics for text such as headings, paragraphs,
lists, links, quotes and other items. It can embed scripts written in
languages such as JavaScript which affect the behavior of HTML web
pages.

CASCADING STYLE SHEETS (CSS):

It is a style sheet language used for describing the look and formatting of a
document written in a markup language. While most often used to
style web pages and interfaces written in HTML and XHTML, the language
can be applied to any kind of XML document, including plain
XML, SVG and XUL. CSS is a cornerstone specification of the web and
almost all web pages use CSS style sheets to describe their presentation.

CSS is designed primarily to enable the separation of document content


from document presentation, including elements such as the
layout, colors, and fonts.[1] This separation can improve
content accessibility, provide more flexibility and control in the specification
of presentation characteristics, enable multiple pages to share formatting,
and reduce complexity and repetition in the structural content .

20 KM M I P S : : TIRUPATHI
Online Gas Booking System

CSS can also allow the same markup page to be presented in different
styles for different rendering methods, such as on-screen, in print, by voice
(when read out by a speech-based browser or screen reader) and
on Braille-based, tactile devices. It can also be used to allow the web page
to display differently depending on the screen size or device on which it is
being viewed. While the author of a document typically links that document
to a CSS file, readers can use a different style sheet, perhaps one on their
own computer, to override the one the author has specified. However if the
author or the reader did not link the document to a specific style sheet the
default style of the browser will be applied.

PHP
PHP started out as a small open source project that evolved as more and
more people found out how useful it was. RasmusLerdorf unleashed the
first version of PHP way back in 1994.

• PHP is a recursive acronym for "PHP: Hypertext Preprocessor".

• PHP is a server side scripting language that is embedded in HTML.


It is used to manage dynamic content, databases, session
tracking, even build entire e-commerce sites.

• It is integrated with a number of popular databases, including


MySQL, PostgreSQL, Oracle, Sybase, Informix, and MySQL .

• PHP is pleasingly zippy in its execution, especially when compiled


as an Apache module on the Unix side. The MySQL , once started,
executes even very complex queries with huge result sets in
record-setting time.

21 KM M I P S : : TIRUPATHI
Online Gas Booking System

Features of PHP

Simple

It is very simple and easy to use, compare to other scripting language it


is very simple and easy, this is widely used all over the world.

Interpreted

It is an interpreted language, i.e. there is no need for compilation.

Faster

It is faster than other scripting language e.g. asp and jsp.

Open Source

Open source means you no need to pay for use php, you can free
download and use.

Platform Independent

PHP code will be run on every platform, Linux, Unix, Mac OS X,


Windows.

Case Sensitive

PHP is case sensitive scripting language at time of variable declaration.


In PHP, all keywords (e.g. if, else, while, echo, etc.), classes, functions,
and user-defined functions are NOT case-sensitive.

Error Reporting

PHP have some predefined error reporting constants to generate a


warning or error notice.

22 KM M I P S : : TIRUPATHI
Online Gas Booking System

Real-Time Access Monitoring

PHP provides access logging by creating the summary of recent


accesses for the user.

Introduction to MySQL

Microsoft MYSQL database maintains its own system catalog which


contains information related to:

• Database objects (tables, indexes, stored procedures,views,triggers,


and so on).
• Constraints.
• Database Architecture MySQL
• Users and Permissions.
• User-defined data types.
• Schema objects.
• Files used by the database.
• Replication definition.
• Snapshot definitions.

The system level information for an instance of MySQL is recorded by


the master database. The recorded information includes the following:

• Database names and the primary file location for each


database.
• MySQL login accounts.
• System messages.
• Database configuration values.
• Remote and/or linked servers-a feature in MySQL which
enables you to execute commands against OLEDB data
sources on remote servers.
• Current activity information.
• Endpoint information-endpoints are means of implementing TCP
protocol-based interfaces for implementation of certain features

23 KM M I P S : : TIRUPATHI
Online Gas Booking System

including HTTP web services, Service Broker, Database


mirroring.
• System stored procedures. In MySQL , the system objects are
not stored in the master database but stored in a hidden data
base, called the resource database.
• The system catalog is used in MySQL in order to retrieve
metadata information about objects in a database.
• The system catalogs are accessible to the user as catalog
views.

In order to monitor health of a server instance, diagnose problems and


tune performance, theMy MySQLDynamic Management views can be
used. The dynamic management views in MySQL are similar to the
views in Oracle which are used for performance monitoring. Like the
SYSTEM table space in Oracle, the MySQL master database must be
available to access any other database. As such, it is important to
protect against failures by backing up the master database after any
significant changes are made to the database. Database administrator
can also mirror the files that make up the master database.

24 KM M I P S : : TIRUPATHI
Online Gas Booking System

6.System Design
6.1 Introduction

Design is the first step in the development phase for any system. It may be
defined as the “Process of applying various techniques and principles for
the purpose of designing a device, a process, or a system”.

Software design is an iterative process through which requirements are


translated into a “Blue Print” for constructing the software. Preliminary
design is concerned with the transformation of requirements in to data and
software architecture.

The design is a solution, a “how to” approach to the creation of a new


system. This is composed of several steps. It provides the understanding
and procedural details necessary for implementing the system
recommended.

The database design transforms the information domain model created


during analysis into the data structures that will be required to implement
software.

The architectural design defines the relationship among major structural


elements of the program.

The interface design describes how the software communicates within


itself, to systems that interoperate with it, and with humans who use it. An
interface implements flow of information.

6.2 Design Principles

Basic design principles that enable the software engineer to navigate the
design process are:

• The design should be traceable to the analysis model

25 KM M I P S : : TIRUPATHI
Online Gas Booking System

• The design should minimize the intellectual distance between the


software and the problem, as it exists in the real world.

6.3 Database Design

The goal of database design is to generate a set of relation schemes that


allow us to store information without necessary redundancy and allows us
to retrieve information easily. We can achieve optimization, ease of use in
which data is stored in the form of tables and there exists a relation
between or among tables.

The design objectives must be

• To reduce redundancy
• To arrive at loss-less join
• To reduce the time as compared to the present system.
• To reduce the number of errors.

6.3.1 Normalization

Normalization of relation schema is done to eliminate insertion and


deletion anomalies that exist in databases. Normalization is step-by-step
reversible process of converting given collection of relations have a
progressively simpler and regular structure.

• To make it feasible to represent any relation in the database.


• To obtain powerful retrieval algorithms based on a simpler collection
of relational operations.
• To free relations from undesirable insertions, update and deletion
dependencies.

A relation R is said to be in 1 NF if all underlying domains contain atomic


values only.

A relation R is said to be in 2NF if and only if it is in 1 NF and every non-


key attribute is non-transitively dependent on the primary key.

26 KM M I P S : : TIRUPATHI
Online Gas Booking System

A relation R is said to be in 3 NF if it is in 2 NF and its non-key attribute is


non-transitively dependent on its primary key.

6.4 Data Base Tables:

Table1:Customer Registration table:

Columns Data type Size constraint

Adhar number Int 20 Primary key

Cname Varchar 15 Not null

Gender Varchar 5 Not null

Phno Number 10 Not null

Email Varchar 15 Not null

password Varchar 20 Not null

Cylin_type varchar 10 Not null

Caddr Varchar 20 Not null

Pincode number 5 Not null

27 KM M I P S : : TIRUPATHI
Online Gas Booking System

Table2:Stock details table:

Columns Data type Size constraint

Sdt Datetime default Notnull

Storecom Int 10 Not null

Storedom Int 15 Not null

Defcomm Int 25 Not null

Defdom Int 10 Not null

Cstocom Int 20 Not null

Cstodom Int 25 Not null

Table3:Transaction table:

Columns Data type Size constraint

Tid Int 12 Primary key

Cons_no int 25 Not null

Cyln_type int 20 Not null

Bk_date Datetime default Not Null

Del_date Datetime default Not Null

Staus Varchar 15 Not null

28 KM M I P S : : TIRUPATHI
Online Gas Booking System

Table4:Booking details table:

Columns Data type Size constraint

Cus-no int 20 Primary key

Cus_name varchar 15 Not null

Bid int 15 Not null

Phno Number 15 Not null

Address Varchar 20 Not null

Pincode number 10 Not null

Date Datetime default Not null

Ldel_date Datetime default Not null

Cyln_type Varchar 20 Not null

29 KM M I P S : : TIRUPATHI
Online Gas Booking System

6.5 Source code

USER REGISTRATON FORM PHP

<html>

<body>

<?php

$adharno=$_POST['num'];

$fname=$_POST['name'];

$email=$_POST['email'];

$add=$_POST['add'];

$ph=$_POST['phno'];

$psw=$_POST['psw'];

$con=mysqli_connect("localhost","root","admin2k19","mallika");

if (mysqli_connect_errno()) {

die("Connection failed: " .mysqli_connect_error());

$sql = "INSERT INTO Registration(Adhar_number,name, email_id


,Address,Mobile_number,password)

VALUES
(".$adharno.",'".$fname."','".$email."','".$add."','".$ph."','".$psw."');";

if(mysqli_query($con,$sql)){

header("Location:" login.html");

30 KM M I P S : : TIRUPATHI
Online Gas Booking System

else

echo "Error: " .$sql. "<br>" .mysqli_error($con);

mysqli_close($con);

?>

</body>

</html>

USERLOGIN FORM

<?php
session_start();
$servername="localhost";
$username="root";
$password="admin";
$dbname="mallika";
$conn=new mysqli($servername,$username,$password,$dbname);
if($conn->connect_error)
{
die("connection failed:".$conn->connect_error);
}
if($_SERVER["REQUEST_METHOD"]=="POST")
{
$user_name=$_POST["login"];
$password=$_POST["pswrd"];
$_SESSION["id"]=$user_name;
$query="SELECT Adhar_number,password FROM registration
WHERE Adhar_number='$user_name' and password='$password'";
$result=mysqli_query($conn,$query);
$row=mysqli_fetch_array($result,MYSQLI_NUM);
$count=mysqli_num_rows($result);
if($count==1)
{
header("Location:login.php");

}
else

31 KM M I P S : : TIRUPATHI
Online Gas Booking System

{
echo "your login username and password is invalid";
}
}
?>

<html>
<head>
<title> Online Gas Booking System</title>
<style>
*{
background-image:url(main.jpg);

background-size:cover;

</style>

</head>
<frameset rows="10%,*" border off>
<frame src="top.html" name="top" scrolling="no"/>
<frame src="main.html" name="main"/>
</frameset>

</html>
<html>
<head>
<title>top page</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="jquery-3.3.1.js"></script>
<style>
img{
height:50px;
width:100px;
margin-top:0px;
}
body{
background-color: #FFA500;}
ul li {
text-transform:uppercase;}
ul li a{
font-color:#ffcce6;

32 KM M I P S : : TIRUPATHI
Online Gas Booking System

</style>
</head>
<body>
<ul>
<li><a href="contactus.html" target="main" class="top">CONTACTUS</li>
<li><a href="transaction.html" target="main"
class="top">TRANSACTION</li>
<li><a href="booking.html" target="main" class="top">BOOKING</li>
<li><a href="stock.html" target="main" class="top">STOCK</li>

<li><a href="login.html" target="main" class="top">LOGIN</li>

<li><a href="registration.html" target="main"


class="top">REGISTRATION</li>
<li><a href="admin.html" target="main" class="top">ADMIN</li>
<li><a href="home.html" target="main" class="top">HOME</li>

</ul>

</html>
<imgsrc="./images/gass.jpg" width="100>
<div id="title">indane gas</div>

</body>
<script>
$(document).ready(function(){

$(".top").click(function(){
$(".top").css("background","");

$(this).css("background","red");
});

});
</script>
</html>
.<html>
<head>
<title>top page</title>
<link rel="stylesheet" href="style.css" type="text/css">
<style>
p{
text-align:center;
font-weight:300;
font-size:27px;

33 KM M I P S : : TIRUPATHI
Online Gas Booking System

margin-top:80px;
color: #4d4dff;}
</style>

</head>
<body>
<div id="text">
<h1>online gas booking system</h1>
<p>
<marquee>
well come to online gas booking </marquee></p>
</div>

</body>

</html>

/*title*/
#title{
color:white;
position:absolute;
top:-10%;
left:240px;
margin-top:20px;
font-size:40px;
font-family:arial;
font-variant:small-caps;
text-transform:capitalize;
}

/* top.html */
li{
float:right;
color:white;
list-style-type:none;
padding:20px;
font-size:25px;
text-transform:capitalize;

34 KM M I P S : : TIRUPATHI
Online Gas Booking System

.top{
color:white;
text-decoration:none;

}
a:hover{
color:gray;
text-decoration-line: underline;

}
a:active{
color:violet;

/* login.html */

.login{
width:350px;
height:350px;
background:white;
position:absolute;
top:20%;
left:40%;
border-radius:15px;

#loginlogo{
position:relative;
left:135px;
top:-35px;
background:red;
border-radius:50px;
width:60px;
height:60px;

.login_one{
margin-top:-40px;
margin-left:50px;
font-weight:bold;

font-size:18px;
text-transform:capitalize;

35 KM M I P S : : TIRUPATHI
Online Gas Booking System

.login_one #username,#password{
border:none;
border-bottom:2px solid orange;
outline:none;
width:250px;
font-size:20px;
}

.login .login_one #login{


text-align:center;
padding:10px 86px;
border:2px solid green;
text-decoration:none;
font-size:20px;
text-transform:uppercase;
}
.login .login_one #login:hover{
text-decoration-line:underline;
background:orange;
color:white;

#createnew ,#forgotpassword{
text-decoration:none;

}
#createnew:hover ,#forgotpassword:hover{
text-decoration-line:underline;
color:red;

/* registration.html */

.registration{
position:absolute;
left:40%;
top:10px;
background:white;
width:30%;

.registration h1{
margin-left:40px;
font-weight:bold;

36 KM M I P S : : TIRUPATHI
Online Gas Booking System

text-transform:capitalize;
background:lightgray;
width:73%;

.registration p{
font-size:20px;
margin-left:40px;
font-weight:bold;
text-transform:capitalize;

}
.registration input[type=text],
input[type=date],
input[type=number],
input[type=password]
{
width:80%;
height:30px;
border:none;
border-bottom:2px solid orange;
background:none;
outline:none;
font-size:20px;

.registration #select{
width:80%;
height:30px;
border:none;
border-bottom:2px solid orange;
background:none;
outline:none;
font-size:20px;

.registration #submit{

background:;
text-align:center;
padding:10px 110px;
border:2px solid green;

37 KM M I P S : : TIRUPATHI
Online Gas Booking System

text-decoration:none;
font-size:20px;
text-transform:uppercase;
}
.registration #submit:hover{
text-decoration-line:underline;
background:orange;
color:white;

/*booknow.html*/

.booknow h1{
margin-left:40px;
font-weight:bold;
text-transform:capitalize;
background:lightgray;
width:73%;
text-align:center;
margin-top:2px;
}

.booknow{
position:absolute;
left:40%;
top:10px;
width:30%;
background:white;

.booknow p{
font-size:20px;
margin-left:40px;
font-weight:bold;
text-transform:capitalize;

.booknow input[type=text],
input[type=date],
input[type=number],
input[type=time]

38 KM M I P S : : TIRUPATHI
Online Gas Booking System

{
width:80%;
height:30px;
border:none;
border-bottom:2px solid orange;
background:none;
outline:none;
font-size:20px;

/*contactus.html*/
.contactus{
width:350px;
height:450px;
background:white;
position:absolute;
top:20%;
left:40%;

}
.contactus input[type=text],
input[type=email],
input[type=number]

{
width:73%;
height:30px;
border:none;
border-bottom:2px solid orange;
background:none;
outline:none;
font-size:20px;
margin-left:40px;

}
.contactus h1{
margin-left:40px;
font-weight:bold;
text-transform:capitalize;
background:lightgray;
width:73%;
text-align:center;

}
.contactus #textarea{

39 KM M I P S : : TIRUPATHI
Online Gas Booking System

margin-left:40px;
font-size:20px;
}
.contactus input[type=button]{

background:green;
text-align:center;
color:white;
padding:10px;
border:2px solid orange;
font-size:20px;
text-transform:capitalize;
position:absolute;
left:80px;
}

/* searchcabs.html */

.searchcabs{
margin-top:20px;
}
.searchcabs #up #selectcar{

background:gray;
padding:10px 10px;
font-size:30px;
text-align:center;
color:white;
width:76.5%;
margin-left:10px;
text-transform:capitalize;
}
.searchcabs #up{
margin-left:20%;
background:transparent;

}
.searchcabs #up #car1,#car2,#car3{

float:left;
margin-left:10px;
}
.searchcabs #down{
position:absolute;
top:37%;
left:21%;
background:gray;
height:400px;
width:830px;

40 KM M I P S : : TIRUPATHI
Online Gas Booking System

padding:10px;
margin-top:20px;
text-transform:capitalize;
display:none;
}
.searchcabs #down input[type=text]

{
width:73%;
height:30px;
border:none;
border-bottom:2px solid orange;
background:none;
outline:none;
font-size:20px;
margin-left:40px;
}

.searchcabs #down input[type=button]{

background:green;
text-align:center;
color:white;
padding:10px;
border:2px solid orange;
font-size:20px;
text-transform:capitalize;
position:absolute;
left:40%;
}

/* main.html */

#text h1{
text-align:center;
color:white;
text-transform:capitalize;
font-size:40px;
} }
<html>
<head>
<center>
<title>Registration form</title>
</head>
<body >

41 KM M I P S : : TIRUPATHI
Online Gas Booking System

<h1 style="color:blue"> Registration Form <center></center></h1>


<form>
<table align="center" bgcolor="#FF8C00"cellpadding = "10">
<tr>
<td>Name
<td>
<input type="text" name= "Name">
</td>
</td>
</tr>

<tr>
<td>AdharNumber
<td>
<input type="number"name="Adarnumber">
</td>
</td>
</tr>

<td>Address
<td>
<input type="text" name="Address">
</td>
</td>
</tr>

<tr>
<td>MobileNumber
<td>
<input type="text" name="MobileNumber">
</td>
</td>
</tr>

<tr>
<td>Enterpassword
<td>
<input type="password" name="psw">
</td>
</td>
</tr>
<tr>
<td>Gender
<td>
<input type="radio" name="male"value="Male">Male<br>
<input type="radio" name="female"value="Female">Female<br>
</td>
</td>

42 KM M I P S : : TIRUPATHI
Online Gas Booking System

</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</td>
</tr>

</form>
</table>
</body>
</html>
<html>
<title>loginpage</title>
<body>

<h1 align="center">LOGINPAGE</h1>

<center>
<form action="login.php" method="post">
<table align="center" bgcolor="99FFFF"cellpadding = "10">

<tr>
<td>ADHARNUMBER</td>
<td> <input type="number" name="adharnumber" >
</td>
</tr>

<tr>
<td>PASSWORD</td>
<td><input type="password" name="psw">
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</td>
</tr>
</table>

</form>
</center>
</form>

</body>

43 KM M I P S : : TIRUPATHI
Online Gas Booking System

</html>

UPDATION FORM:
<?php
$servername="localhost";
$username="root";
$password="admin2k19";
$dbname="mallika";

$conn=new mysqli($servername,$username,$password,$dbname);
if($conn->connect_error)
{
die("connection failed:".$conn->connect_error);
}
if($_SERVER["REQUEST_METHOD"]=="POST")
{

$phone=$_POST["num"];
$email=$_POST["email"];
$address=$_POST["addres"];
$phone=$_POST["phone"];

$query="SELECT username,email,address,phone FROM


registration WHERE phone='$phone'";
$result=mysqli_query($conn,$query);
$row=mysqli_fetch_array($result,MYSQLI_NUM);
$count=mysqli_num_rows($result);
if($count==1)
{

$query = "UPDATE registration SET


Email='$email',address='$address',phone='$phone' WHERE
phone='$phone'";

if ($conn->query($query) === TRUE) {


header("Location:login.html");

echo "Record updated successfully";


} else {
echo "Error updating record: " . $conn->error;
}
else
{
echo "your login user name and phone number is invalid";
}
}

?>

44 KM M I P S : : TIRUPATHI
Online Gas Booking System

DELETION FORM :
<?php

$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'admin2k19';

$conn = mysql_connect($dbhost, $dbuser, $dbpass);

if(! $conn ) {
die('Could not connect: ' . mysql_error());
}

$sql = "DELETE FROM registration WHERE username ='"


.$_GET["userid"]."'" ;
mysql_select_db('cab');
$retval = mysql_query( $sql, $conn );

if(! $retval ) {
die('Could not delete data: ' . mysql_error());
}

echo "<center><h3>Deleted data successfully\n</h3></center>>";

mysql_close($conn);
?>

45 KM M I P S : : TIRUPATHI
Online Gas Booking System

7.System Testing
Introduction:

Testing is the process of detecting errors. Testing performs a very critical


role for quality assurance and for ensuring the reliability of software and
application.

Psychology of Testing

The aim of testing is often to demonstrate that a program works by


showing that it has no errors. The basic purpose of testing phase is to
detect the errors that may be present in the program. Testing is the
process of executing a program with the intent of finding errors.

Testing Objectives:

The main objective of testing is to uncover a host of errors, systematically


and with minimum effort and time.

• Testing is a process of executing a program with the intent of finding


error.
• A successful test is one that uncovers an as yet undiscovered error.
• A good best case is one that has a high probability of finding error, if
it exists.
• The tests are inadequate to detect possibly present errors.
• The software more or less confirms to the quality and reliable
standards.

Testing case design:

A rich variety of test case design methods have evolved for software.
these methods provide the developer with a systematic approach to
testing. More important, methods provide the highest likely hood of
uncovering errors in software.

Any engineered product can be tested in one of the two ways:


46 KM M I P S : : TIRUPATHI
Online Gas Booking System

1. Knowing the specified function in the application has been designed


to perform.
2. Knowing the internal workings of an application.

Levels Of Testing:

In order to 00uncover the errors present in different phases we have the


concept of levels of testing.

Client Needs Acceptance Testing

Requirements System Testing

Design Integration Testing

Code Unit Testing

47 KM M I P S : : TIRUPATHI
Online Gas Booking System

Unit
Testing

Module
Testing

Sub-
System
Testing
System
Testing

Acceptanc
e
Testing

White Box Testing:

This type of testing ensures that

• All independent paths have been exercised at least once


• All logical decisions have been exercised on their true and false sides
• All loops are executed at their boundaries and within their operational
bounds

To follow the concept of white box testing we have tested each form we
have c0reated independently to verify that Data flow is correct, All
condition00s are exercised to check their validity, All loops are executed
on their boundaries.

48 KM M I P S : : TIRUPATHI
Online Gas Booking System

Black Box Testing:

The Testing Method focuses on the functional Requirements of the


software. Here each module will be treated as a black box that will take
some input and generate output. Output for a given set of Input
combinations are forwarded to other modules.

Black box te0sting attempts to find the following types of errors:

• Incorrect or Missing functions


• Interface errors.
• Errors in data structures or external database access.
• Performance errors.
• Initialization errors and termination errors.
All the forms have been executed and verified. Based on Sample
Input data, the generated output is verified whether the system is
providing better results or not.

Unit Testing:

Unit testing focuses verification effort on the smallest unit of software


design, the module. The unit testing we have is white box oriented and
some modules the steps are conducted in parallel.

In this project each service can be thought of a module. There are


modules like Stock Details, Transaction Details, Booking Details . Each
module has been tested by giving different sets of inputs. The inputs are
validated when accepting from the user.

49 KM M I P S : : TIRUPATHI
Online Gas Booking System

Integration Testing:

The goal here is to see whether the modules are integrated properly, the
emphasis being on testing interfaces between modules. Testing Activity is
on testing module Interactions in the application.

In this project the main system is formed by integrating all the modules
when integrating all the modules(user Details, Stock Details, Transaction
Details, ) We have checked whether the integration effects working of any
of the services by giving different Combinations of inputs with which the
two services run perfectly before integration.

Validation Testing:

Validation testing demonstrates tractability of software requirements of the


application. Validation succeeds when the application functions in
expected manner. The major elements of this process are alpha and beta
testing along with configuration reviews.

In the present system, validations are been written for Email_id, date of
birth etc., entries and proper error messages are displayed when any
validation error occurs. Validations such as a Text field should accept only
Character data but no any other Characters.

Conditional Testing:

In this part of the testing each of the conditions were tested to both true
and false aspects. And all the resulting paths were tested. So that each
path that may be generate on particular condition is traced to uncover any
possible errors.

50 KM M I P S : : TIRUPATHI
Online Gas Booking System

Data flow Testing:

This type of testing selects the path of the programs according to the
location of definition and use of variables. This kind of testing was used
only when some local variable were declared. The definition-use chain
method was used in this type of testing. These were particularly useful in
nested statement.

51 KM M I P S : : TIRUPATHI
Online Gas Booking System

8.Implementation
Implementation is the process of converting a new or revised system
design into an operational one. Apart from planning, the major tasks of
preparing for implementation or education and training of users.
Implementation includes following activities:

• Obtaining and installing the system hardware


• Providing user access to the system
• Creating and updating the database
• Training the users on the new system
• Documenting the system for its users
• Evaluating the operation and use of the system

Implementation Methods

There are four basic methods of implementation:

✓ Direct conversion
✓ Parallel conversion
✓ Pilot conversion
✓ Phasing conversion

Direct Conversion:

Description:

In this method the new one replaces the old system. This makes
organization to fully rely on the new system.

Advantages:

This method forces users to make the new system work. There are
immediate benefits from new methods and controls.

Disadvantages:

52 KM M I P S : : TIRUPATHI
Online Gas Booking System

There is no other system to fall back on if difficulties arise with new


system. This method also requires most careful planning.

Parallel Conversion:

Description:

In this method, the old system is operated along with the new system.

Advantages:

This method offers greatest security. The old system can take over if
errors are found in the new system or if some usage problems occur.

Disadvantages:

This method doubles operating costs also the new system may not get fair
trial.

The present Online Gas Booking System has be done by using Parallel
Conversion in which the old one is replaced with the newly developed
system.

Pilot Conversion:

Description:

In this method the system is implemented to a small part of the


organization. Based on the feedback, changes are made and the system
is installed in the rest of the organization by one of the other methods.

Advantages:

This method provides experience and live test before implementation.

Disadvantages:

This method may give the impression that the old system is unreliable and
not error free.

Phased Conversion:

53 KM M I P S : : TIRUPATHI
Online Gas Booking System

Description:

In this method, the system is implemented gradually across all users.

Advantages:

It allows some users to take advantages of the system early. It allows


training and installing without unnecessary use of resources.

Disadvantages:

A long phase-in causes user problems whether the project goes well (over
enthusiasm) or not (resistance or lack of fair trail)

54 KM M I P S : : TIRUPATHI
Online Gas Booking System

9. Conclusions
The project Online Gas Booking System has been designed and
developed according to the current requirements of a gas booking
system. The benefit expected from this is that it could reduce the burden
of traditional method The major goal of the software is to create software
that could automate all gas booking system. Related tasks .This software
is very helpful to users who are searching for automating a gas booking
system.finally it will get the services to the people who registered easily.

55 KM M I P S : : TIRUPATHI
Online Gas Booking System

10.Appendices
Appendix-A: User Manual

User Manual is the guide to the Users of the system. It paves a path to the
Corresponding user to help him how to proceed further in the proper
understanding of the system. The interface of the system gets familiar to
the user, based on this manual only.

The first form is the login form where user has to enter his username and
password; here the types of users are Administrator and user.

If the person connected to the administration manual he will provide the


whole details about the gas booking in the user and transaction and
booking and transaction.

Administrator will access the following forms:

• Personal Details entry – To store the user details.


• Stock Details entry- To store the stock details.
• Transaction Details entry-To store the Transaction details.
• Booking Details Entry-To store the Booking Details

56 KM M I P S : : TIRUPATHI
Online Gas Booking System

APPENDIX-B: Test Screens

Screen No:1 Home page

Screen No :2 UserRegistration Form

57 KM M I P S : : TIRUPATHI
Online Gas Booking System

Screen No2: Admin Login page

Screen NO:3Userlogin page

58 KM M I P S : : TIRUPATHI
Online Gas Booking System

Screen No:4 Booking details page

Screen No:5Transactionlist page

59 KM M I P S : : TIRUPATHI
Online Gas Booking System

Screen No:6 stock Update details page

Screen No:7 Contact details page

60 KM M I P S : : TIRUPATHI
Online Gas Booking System

61 KM M I P S : : TIRUPATHI

You might also like