Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Event Management System Web-Based Application Management System

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

ABSTRACT

Event Management System web-based application has been developed


on PHP and MySQL, There also we used HTML & CSS.  The event management system is
used to manage all the activities related to the event, like festivals, conferences, ceremonies,
weddings, formal parties, concerts, or conventions, Wedding ceremonies. Book online event
halls and can see the packages and timing slots online about halls. Here we also provide a good
trend team to make your event memorable, on this web you can register/signup and login then
you can able to create your event.  After your booking, we’ll allot a team as well so you can
contact them and can tell about your party, what type of theme you want in. Event
Administrator: Processing conference and event bookings. Only registered users will able to
book online event venues.  
CHAPTER-1

1.INTRODUCTION

1.1 Introduction
The event management system is used to manage all the activities related to the event,
like festivals, conferences, ceremonies, weddings, formal parties, concerts, or
conventions, Wedding ceremonies. Book online event halls and can see the packages and timing
slots online about halls. Here we also provide a good trend team to make your event memorable,
on this web you can register/signup and login then you can able to create your event.  After your
booking, we’ll allot a team as well so you can contact them and can tell about your party, what
type of theme you want in. Event Administrator: Processing conference and event bookings.
Only registered users will able to book online event venues.  customer contacts the company for
event management.
He provides the details of the event and its requirements. He explains its aims, how
long it will last, its format (Presentation/Workshop and/or Exhibition etc.), expected number of
delegates/guests, equipment and furniture required, whether any delegate pack or promotional
material is to be distributed, and other facilities required.
The Event Manager studies the requirements of the event carefully and using the event
management system The company offers some readymade packages to choose from. If the
customer agrees, the event is booked and the advance deposit is taken by the company.
According to the requirements of the event, different bookings are made. A strategic schedule is
prepared for smooth conduct of the event. The Event Management System helps the manager in
different tasks of planning, scheduling and Conducting the event. This system provides instant
access to event-related information..
Event managers and event coordinators need to collaborate in order to formulate the most
viable plan for events. In order to make events successful and well organized, all of the stages in
the entire planning process also need to be in harmony and be corelated with one another. Risk
1nanagement has been of great impo1iance during the entire planning process. Under no
circumstances should risk management be underestimated. Additionally, evaluation process
helps event organizers and event managers to realize which aspects should be improved and need
further development.
Efficiently and economically utilized. Once the event is conducted successfully, the bills
are generated by the system. The system is extensible. New functionalities can be added to the
system, whenever it is needed due to changing requirement. People have come up with a lot of
occasions for organizing events such as educational events, birthdays, international conferences,
company parties etc. Generally speaking, events are also a part of human beings' social life
because they get to know and talk with different people with different backgrounds. However, in
order to organize a good and successful event, it requires a thorough and detailed planning
process.

1.2 About the Project

It provides quick access to any data that is stored in the database. In this system, the user
has to enter the data only once and then it will get stored in the database which gets linked with
all files. This reduces the workload of the user and it is also a time saving process. The
information about any event can be retrieved easily whenever required. The system maintains all
records easy. The proposed system consists of different packages (in terms of cost range) for
each category of events. The package contains all the facility such as décor, entertainment,
catering etc. as per the range of the package. Book online event halls and can see the packages
and timing slots online about halls. Here we also provide a good trend team to make your event
memorable, on this web you can register/signup and login then you can able to create your
event.  After your booking, we’ll allot a team as well so you can contact them and can tell about
your party, what type of theme you want in. Event Administrator: Processing conference and
event bookings. Only registered users will able to book online event venues.  
1.3 Organization Profile

Sai Web Solution initially emerged as a small proprietorship company with two
individuals who played an active role in madurai, a small suburb in the coastal belt of Tamil
Nadu. Now it was being managed by Sai Web Solution Pvt Ltd which was a privately held
company in madurai. The team consisted of web professionals who were quite resourceful to
support the customers with a wide range of services which focused on Web Design, Web
Development, and Mobile Application Development.The Focus Which Made Us Unique.
While we worked for our clients, the only focus that made us unique is the quality delivery being
served at an affordable cost. The design that we had crafted for customers stood unique and
made us to propel across the landscape.The unique motto till date has been to assist small-scale
companies to stand out in the crowded market against the backdrop of cluttered competition. The
team that we nurture upon undertakes a detailed research and implements the website in a most
subtle way yet fulfilling the trending technology
CHAPTER-2

2. SYSTEM ANALYSIS

2.1 Existing System

In the existing system customer contacts the company for event management. He
provides the details of the event and its requirements. He explains its aims, how long it will last,
its format (Presentation/Workshop and/or Exhibition etc.), expected number of delegates/guests,
equipment and furniture required, whether any delegate pack or promotional material is to be
distributed, and other facilities required. The Event Manager studies the requirements of the
event carefully and using the event management system The company offers some readymade
packages to choose from. If the customer agrees, the event is booked and the advance deposit is
taken by the company. According to the requirements of the event, different bookings are made.
A strategic schedule is prepared for smooth conduct of the event. The Event Management
System helps the manager in different tasks of planning, scheduling and Conducting the event.
This system provides instant access to event-related information.

2.2 Proposed System


The proposed system is computerized and has been developed using PHP, HTML, CSS,
therefore it gives more facilities than the present system. It provides quick access to any data
that is stored in the database. In this system, the user has to enter the data only once and then it
will get stored in the database which gets linked with all files. This reduces the workload of the
user and it is also a time saving process. The information about any event can be retrieved
easily whenever required. The system maintains all records easy. The proposed system consists
of different packages (in terms of cost range) for each category of events. The package contains
all the facility such as décor, entertainment, catering etc. as per the range of the package.
2.3 Feasibility Studies
Preliminary investigation examine project feasibility, the likelihood the system will be
useful to the organization. The main objective of the feasibility study is to test the Technical,
Operational and Economical feasibility for adding new modules and debugging old running
system. All system is feasible if they are unlimited resources and infinite time. There are aspects
in the feasibility study portion of the preliminary investigation:

 Technical Feasibility
 Operation Feasibility
 Economical Feasibility

2.3.1. Technical Feasibility

Earlier no system existed to cater to the needs of ‘Secure Infrastructure Implementation


System’. The current system developed is technically feasible. It is a web based user interface for
audit workflow at NIC-CSD. Thus it provides an easy access to the users. The database’s
purpose is to create, establish and maintain a workflow among various entities in order to
facilitate all concerned users in their various capacities or roles. Permission to the users would be
granted based on the roles specified. Therefore, it provides the technical guarantee of accuracy,
reliability and security.

2.3.2. Operational Feasibility


Proposed projects are beneficial only if they can be turned out into information system.
That will meet the organization’s operating requirements. Operational feasibility aspects of the
project are to be taken as an important part of the project implementation.
This system is targeted to be in accordance with the above-mentioned issues. Beforehand,
the management issues and user requirements have been taken into consideration. So there is no
question of resistance from the users that can undermine the possible application benefits.
2.3.3. Economic Feasibility
A system can be developed technically and that will be used if installed must still be a good
investment for the organization. In the economical feasibility, the development cost in creating
the system is evaluated against the ultimate benefit derived from the new systems. Financial
benefits must equal or exceed the costs.
The system is economically feasible. It does not require any addition hardware or
software. Since the interface for this system is developed using the existing resources and
technologies available at NIC, There is nominal expenditure and economical feasibility for
certain.
CHAPTER-3

3. SYSTEM SPECIFICATION
3.1 Hardware Requirment

System : Pentium IV 2.4 GHz.


Hard Disk : 40 GB.
Floppy Drive : 1.44 Mb.
Monitor : 15 VGA Colour.
Mouse : Logitech.
Ram : 512 Mb.

3.2 Software Requirment

Operating System :  Windows XP or later


Database Server :  MySQL 5.0
Client :  Microsoft Internet Explorer
User Interface :  HTML with Ajax
Code Behind :  PHP
CHAPTER-4

4.SOFTWARE DESCRIPTION

4.1 Windows 10
Windows 10 is a major release of Microsoft's Windows NT operating system. It is the
direct successor to Windows 8.1, which was released nearly two years earlier. It was released to
manufacturing on July 15, 2015, and later to retail on July 29, 2015. Windows 10 was made
available for download via MSDN and TechNet, as a free upgrade for retail copies of Windows 8
and Windows 8.1 users via the Windows Store, and to Windows 7 users via Windows Update.
Windows 10 receives new builds on an on going basis, which are available at no additional cost
to users, in addition to additional test builds of Windows 10, which are available to Windows
Insiders. Devices in enterprise environments can receive these updates at a slower pace, or use
long-term support milestones that only receive critical updates, such as security patches, over
their ten-year lifespan of extended support. Windows 10 received generally positive reviews
upon its original release. Critics praised Microsoft's decision to provide the desktop-oriented
interface in line with previous versions of Windows, contrasting the tablet-oriented approach of
Windows 8, although Windows 10's touch-oriented user interface mode was criticized for
containing regressions upon the touch-oriented interface of its predecessor. Critics also praised
the improvements to Windows 10's bundled software over Windows 8.1, Xbox Live integration,
as well as the functionality and capabilities of the Cortana personal assistant and the replacement
of Internet Explorer with Microsoft Edge. However, media outlets have been critical of the
changes to operating system behaviors, including mandatory update installation, privacy
concerns over data collection performed by the OS for Microsoft and its partners, and adware-
like tactics used to promote the operating system on its release. Microsoft initially aimed to have
Windows 10 installed on over one billion devices within three years of its release that goal was
ultimately reached almost five years after release on March 16, 2020. By January 2018,
Windows 10 surpassed Windows 7 as the most popular version of Windows worldwide As of
April 2022, Windows 10 is estimated to have a 75% share of Windows PCs (has been declining
since its Jan. 2022 peak of 82%, because of introduction of its successor Windows 11, which is
now 2nd most popular Windows edition in many countries), or 57% of all PCs (the rest being
other Windows editions and other operating systems such as macOS and Linux), and 23% of all
devices (including mobile, tablet and console) are running Windows 10. On June 24, 2021,
Microsoft announced Windows 10's successor, Windows 11, which was released on October 5,
2021
Windows 10 is the final version of Windows which supports 32-bit processors (IA-32 and
ARMv7-based) and devices with BIOS firmware. Its successor, Windows 11, requires a device
that uses UEFI firmware and a 64-bit processor in any supported architecture (x86-64 and
ARMv8), though certain workarounds exist that can be used to install it on devices with legacy
BIOS firmware.

4.2 Apache
Apache server is one of the most popular Web service applications. Apache is a powerful,
flexible, HTTP/1.1 compliant web server. It is highly configurable and extensible with third-
party modules. Users can further customize Apache by writing modules using the Apache
module. Apache implements the following features:

Database Management (DBM) databases for authentication that allows the user to set up
password-protected pages with large numbers of authorized users, without bogging down the
server.

Customized responses to errors and problems which allows you to set up files, or even CGI
scripts, which are returned by the server in response to errors and problems

Unlimited flexible URL rewriting and aliasing meaning Apache has no fixed limit on the
numbers of Aliases and Redirects which may be declared in the config files. In addition, a
powerful rewriting engine can be used to solve most URL manipulation problems.

Virtual Hosts which are often referred to as multi-homed servers. This allows the server to
distinguish between requests made to different IP addresses or names (mapped to the same
machine). Apache also offers dynamically configurable mass-virtual hosting.
Apache can be configured to generate reliable piped logs, such as an error log. In addition, on
most UNIX architectures, Apache can send log files to a pipe, allowing for log rotation, hit
filtering, real-time splitting of multiple vhosts into separate logs, and asynchronous DNS
(Domain Naming Service) resolving on the fly.

4.3 PHP

PHP is a server-side and general-purpose scripting language that is especially suited for web
development.PHP originally stood for Personal Home Page. However, now, it stands for
Hypertext Preprocessor. It’s a recursive acronym because the first word itself is also an acronym.
PHP was created by Rasmus Lerdorf in 1994. It’s currently maintained by the PHP Development
Team. PHP is a server-side language When you open a website on your web browser, for The
web browser sends an HTTP request to a web server where phptutorial.net locates. The web
server receives the request and responds with an HTML document.In this example, the web
browser is a client while the web server is the server. The client requests for a page, and the
server serves the request.PHP runs on the web server, processes the request, and returns the
HTML document.PHP is a general-purpose language When it comes to the purpose of the
programming languages, there are two main types: domain-specific and general-purpose
languages.The domain-specific languages are used within specific application domains. For
example, SQL is a domain-specific language. It’s used mainly for querying data from relational
databases. And SQL cannot be used for other purposes.On the other hand, PHP is a general-
purpose language because PHP can develop various applications.PHP is a cross-platform
language PHP can run on all major operating systems, including Linux, Windows, and macOS.
You can use PHP with all leading web servers such as Nginx, OpenBSD, and Apache. Some
cloud environments also support PHP like Microsoft Azure and Amazon AWS.PHP is quite
flexible. It’s not just limited to processing HTML. PHP has built-in support for generating PDF,
GIF, JPEG, and PNG images.One notable feature of PHP is that it supports many databases,
including MySQL, PostgreSQL, MS SQL, db2, Oracle Database, and MongoDB.
What can PHP do

PHP has two main applications:

 Server-side scripting – PHP is well-suited for developing dynamic websites and web
applications.
 Command-line scripting – like Python and Perl, you can run PHP script from the
command line to perform administrative tasks like sending emails and generating PDF
files.

Since PHP is designed for the web in the first place, it brings many advantages to web
development:

 Simple – PHP is quite easy to learn and get started.


 Fast – PHP websites typically run very fast.
 Stable – PHP is stable since it has been in existence for a long time.
 Open-source and free – PHP is open source and free. It means that you don’t have to pay
a license fee to use PHP to develop software products.
 Community support – PHP has an active online community that helps you whenever you
face an issue.

Common uses of PHP

 PHP performs system functions, i.e. from files on a system it can create, open, read,
write, and close them.
 PHP can handle forms, i.e. gather data from files, save data to a file, through email you
can send data, return data to the user.
 You add, delete, modify elements within your database through PHP.
 Access cookies variables and set cookies.
 Using PHP, you can restrict users to access some pages of your website.
 It can encrypt data.

Characteristics of PHP

Five important characteristics make PHP's practical nature possible −


 Simplicity

 Efficiency

 Security

 Flexibility

 Familiarity

PHP | Unique Features

As PHP can do anything related to server-side programming which contains the backend of any
web page, it holds a lot of unique features within it. The main purpose of PHP design is web
development.

Let us look into some of the unique features of PHP:

Simple, Familiar and ease of use: Its popularly known for its simplicity, familiarity and easy to
learn the language as the syntax is similar to that of ‘C’ or Pascal language. So the language is
very logical and well organized general-purpose programming language. Even people with a
normal programming background can easily understand and capture the use of language. PHP is
very advantageous for new users as its a very reliable, fluent, organized, clean, demandable and
efficient.The main strength of PHP is the availability of rich pre-defined functions. The core
distribution helps the developers implement dynamic websites very easily with secured data.
PHP applications are very easy to optimize.Loosely typed language: PHP encourages the use of
variables without declaring its data types. So this is taken care at the execution time depending
on the value assigned to the variable. Even the variable name can be changed dynamically.

Flexibility:
PHP is known for its flexibility and embedded nature as it can be well integrated with HTML,
XML, Javascript and many more. PHP can run on multiple operating systems like Windows,
Unix, Mac OS, Linux, etc. The PHP scripts can easily run on any device like laptops, mobiles,
tablets, and computer. It is very comfortably integrated with various Databases. Desktop
applications are created using advanced PHP features. The executable PHP can also be run on
command-line as well as directly on the machine. Heavyweight applications can be created
without a server or browser.It also acts as an excellent interface with relational databases.

Open Source

All PHP frameworks are open sources, No payment is required for the users and its completely
free. User can just download PHP and start using for their applications or projects. Even in
companies, the total cost is reduced for software development providing more Reliability and
flexibility. It supports a popular range of databases like MySQL, SQLite, Oracle, Sybase,
Informix, and PostgreSQL. PHP provides libraries to access these databases to interact with web
servers. Developers are free to post errors, inspect codes and can contribute to code as well as
bug fixing. Many frameworks like Codeignitor, Zend Framework, CakePHP make use of PHP.
Even many popular content management systems like WordPress, Joomla and Drupal use PHP
as prime language. Because of the above reasons many web hosting companies and Internet
Service providers prefers PHP. Cross-platform compatibility: PHP is multi-platform and known
for its portability as it can run on any operating System and windows environments. The most
common are XAMPP (Windows, Apache Server, MySQL, Perl, and PHP) and LAMP (Linux,
Apache, MySQL, PHP). As PHP is platform-independent, it’s very easy to integrate with various
databases and other technologies without re-implementation. It effectively saves a lot of energy,
time and money. Error reporting and exceptions: PHP supports much errors reporting constants
to generate errors and relevant warnings at run time. For example E_ERROR, E_WARNING,
E_PARSE, E_STRICT. PHP5 supports exception handling which is used to throw errors which
can be caught at any time.

Active community support: PHP is very rich with many diverse online community developers to
help beginners for web-based applications. These worldwide volunteers contribute many features
as well as new versions for PHP libraries. Even they contribute a translation in different
languages to help out programmers. There is a bundle of third-party open-source libraries which
provide basic functionalities. Even the documentation given by the official site helps in
implementing new features providing access to a variety of creative imagination. Fast and
efficient performance: Users generally prefer fast loading websites. For any web development,
speed becomes an important aspect which is taken care of by PHP.

PHP scripts are faster than other scripting languages like ASP.NET, PERL, and JSP. The
memory manager of PHP 7 is very optimized and fast as compared to older versions of PHP.
Even connecting to the database and loading of required data from tables, are faster than other
programming languages. It provides a built-in module for easy and efficient database
management system. The high speed of PHP is advantageous for users for its server
administration and mail functionality. Also, it supports session management and removing of
unwanted memory allocation.

Maintenance

When dealing with big projects, maintenance of code is also an important aspect of the web
development process. There are many PHP frameworks for example MVC (Model View
Controller) which makes development and maintenance of code easier. Files belonging to the
different module are maintained separately. Third-party application support and security: Many
PHP’s predefined functions support data encryption options keeping it more secure. Even the
users can use third-party applications to secure data.Real time access monitoring: PHP also
provides a summary of user’s recent logging accesses. Memory and CPU usage information:
PHP can provide memory usage information from functions like memory_get_usage() or
memory_get_peak_usage(), which can help the developers optimize their code. In the similar
way, the CPU power consumed by any script can be retrieved for further optimization.

Object oriented features: PHP supports object-oriented programming features, resulting in


increased speed and introducing added features like data encapsulation and inheritance at many
levels. Magic Constants: PHP provides many built-in magic methods starting with __(double
underscore) which are called during specific events.
For example directory path

(__DIR__), class name (__CLASS__), namespace (__NAMESPACE__), function name


(__FUNCTION__), method name (__METHOD__), line number (__LINE__), file path
(__FILE__).

Regular expression:

PHP provides regular expression functions with parsing and pattern matching methods.

PDO Class: PHP Data Objects are created by PDO class which gives a good abstraction layer for
database drivers. The PDO Classes are enriched with functions which are database independent.
It means the same functions are used for similar actions for different databases without re-
development as long as it supports PDO. In this way, the application becomes more portable
saving lot of time and effort. Use of PDO helps the application from SQL injection attacks.

Additional Features:

The feature list is endless. The other features of PHP are manipulation of images using GD
library, make remote connections using cURL, handling file system, managing user sessions,
track sessions, Use of SimpleXML Class which reads and write XML files through objects,
support of cookies and sessions, shell command-line execution, compression of ZIP archives, use
of Ajax.

4.4 MYSQL

The Structured Query Language (SQL) is the language of databases. SQL was, is, and will
stay for the foreseeable future the database language for relational database servers such as IBM
DB2, Microsoft SQL Server, MySQL, Oracle, Progress, Sybase Adaptive Server, and dozens of
others. SQL supports a small but very powerful set of statements for manipulating, managing,
and protecting data stored in a database. This power has resulted in its tremendous popularity.
Almost every database server supports SQL or a dialect of the language. Currently, SQL
products are available for every kind of computer, from a small handheld computer to a large
server, and for every operating system, including Microsoft Windows, Mac and many UNIX
variations. Structured Query Language (SQL) is a relational database language which allows you
to create, delete, access and manipulate databases. The following is a list of the main operations
that can be formulated with SQL:

 creating new databases


 deleting a database
 creating new tables in a database
 deleting tables from a database
 creating and removing users (database access control)
 executing queries against a database
 retrieving data from a database
 inserting records in a database
 updating records in a database
 deleting records from a database
 creating stored procedures in a database
 setting permissions on tables and procedures
 creating relationships between tables

MySQL is a Relational Database Management System (“RDBMS”). It is used by most


modern websites and web-based services as a convenient and fast-access storage and retrieval
solution for large volumes of data. A simple example of items which might be stored in a
MySQL database would be a site-registered user’s name with associated password (encrypted for
security), the user registration date, and number of times visited, etc.
MySQL can also be accessed using many tools. It can be easily communicated with via PHP
(PHP Hypertext Preprocessor), a scripting language whose primary focus is to manipulate
HTML for a webpage on the server before it is delivered to a client’s machine. A user can submit
queries to a database via PHP, allowing insertion, retrieval and manipulation of information
into/from the database.

Structured Query Language (SQL) is the de-facto standard programming language for
creating, updating and retrieving information that is stored in relational database management
system. A relational database is a database divided into logical units called tables, where tables
are related to one another within the database. A relational database allows large complex data to
be broken down into logical, smaller, more manageable units. Tables are related to each other
through a common key (data value) in a relational database. SQL is a formal programming
language. Speed was he developer’s main focus when SQL was being developed.

MySQL is a fast easy to use RDMS. MySQL is easier to install and use than its commercial
competitors and the fact that MySQL is open source is strongly in its favor. MySQL is available
via the General Public License (GPU). MySQL consists of a MySQL server, several utility
programs that assist the administration of the MySQL databases. MySQL’s main advantages
include the following:

 It is pre-packaged with most Linux distributions


.
 It’s quite easy to use: you can interact with a MySQL database using a few simple
statements from the SQL language.

 It’s very fast: MySQL’s developers’ main goal was speed; consequently the software was
designed from the beginning with speed in mind.

 It’s free via the GNU General Public License.

CHAPTER-5
5. MODULE DESCRIPTION
5.1 MODULES:-

Admin: – Admin can view all details , and admin Can Manage the Event package details . And
view User Register Package Details

User : User can register and login the portal. And they can view the package details, user want to
give full details of event , like., date, place, food, no of participants, they want to give all details.

And cutomer can view all previous Event details.and cutomers feedback. User can check the
booking status.

Registration: – For all the new users this module is used

Login: – The entire registered user can access the application by using this module

5.2 DFD
5.3 SYSTEM FLOW DIAGRAM
5.4 ER DIAGRAM
5.5 DATABASE DESIGN
5.5.1 Table Name: Admin

Fields Data types


(Constraints)
id Int(Primary,autoincrement)

Fullname Varchar(50)

AdminEmail Varchar(50)

Username Varchar(50)

Password Varchar(50)

updationDate Datetime

5.5.2 Table Name: tblCategory

Fields Data types


(Constraints)
id Int(Primary,autoincrement)

Category_name Varchar(50)

Category Timestamp
Description
Creation_date Datetime

5.5.3 Table Name: tblwedding

Fields Data types


(Constraints)
id Int(Primary,autoincrement
)
PackageName Varchar(50)
Themeselection Varchar(150)
Venueselection Varchar(50)
Photographyselection Varchar(50)
Preweddingphotoshoo Varchar(50)
t
Cinematography Varchar(50)
Livevideo Varchar(50)
Livemusic Varchar(50)
Cateringservice Varchar(50)
Bridalservice Varchar(50)
Mehandhi Varchar(50)
Masterofcermanic Varchar(50)
Cardecoration Varchar(50)

Melamservice Varchar(50)

Returngift Varchar(50)

Welcomegirls Varchar(50)

Invitation Varchar(50)

Roombooking Varchar(50)

5.5.4 Table Name: tblbirthday

Fields Data types


(Constraints)
id Int(Primary,autoincrement)

Packagename Varchar(50)

Theme Varchar(150)
Photo Varchar(50)

Video Varchar(250)

Cartoon_character Varchar(50)

Venue Varchar(50)

Sounglight Varchar(50)
Game Varchar(50)

Gift Varchar(50)

Food Varchar(50)

Caketabledecor Varchar(50)

Birthdaycap Varchar(50)

Eyemask Varchar(50)

Cake Varchar(50)

Ecard Varchar(50)

5.5.5 Table Name: tblbabyshower

Fields Data types


(Constraints)
id Int(Primary,autoincrement)

packageName Varchar(50)

Theme Varchar(50)

Venue Varchar(50)

Photo Varchar(50)

Video Varchar(50)

Makeup Varchar(50)

Mehndhi Varchar(50)
Food Varchar(50)

Gift Varchar(50)

Ecard Varchar(50)

Soundlight Varchar(50)

Entertainment Varchar(50)

Cake Varchar(50)

5.5.6 Table Name: tbluser

Fields Data types


(Constraints)
Userid Int(Primary,autoincrement)

FullName int

Username Varchar(150)

Emailid Varchar(100)

PhoneNumber Bigint(12)

Usergender Varchar(50)

Userpassword Varchar(50)

Regdate timestamp

LastupdationDate timestamp
5.5.7 Table Name: tblbooking

Fields Data types


(Constraints)
Id Int(Primary,autoincrement)

Booking_No Varchar(50)

Name Varchar(50)

Email Varchar(50)

Mobileno Bigint(12)

Event_category Varchar(50)

Package_Name Varchar(50)

No_of_guest Varchar(50)

Food Varchar(50)

Place Varchar(50)

Function_date Varchar(50)
CHAPTER-6
6.CODING DESIGN
6.1 Index
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');

if(isset($_POST['login']))
{
$adminuser=$_POST['username'];
$password=md5($_POST['password']);
$query=mysqli_query($con,"select ID from tbladmin where UserName='$adminuser' &&
Password='$password' ");
$ret=mysqli_fetch_array($query);
if($ret>0){
$_SESSION['ttmsaid']=$ret['ID'];
header('location:dashboard.php');
}
else{
$msg="Invalid Details.";
}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || Login Page</title>

<script type="application/x-javascript"> addEventListener("load", function()


{ setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900'
rel='stylesheet' type='text/css'>
<!---//webfonts--->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</head>
<body id="login">
<div class="login-logo">
<a href="index.php"><strong style="color: black">Toll Tax Management
System</strong></a>
</div>
<h2 class="form-heading">login</h2>
<div class="app-cam">
<form method="post">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<input type="text" class="text" name="username" placeholder="Username" required="true">
<input type="password" name="password" class="text" placeholder="Password"
required="true">
<div class="submit"><input type="submit" value="Login" name="login"></div>

<ul class="new">
<li class="new_left"><p><a href="forgot-password.php">Forgot
Password ?</a></p></li>
<li class="new_right"><p><a href="../index.php">Back to Home</a></p></li>
</li>
<div class="clearfix"></div>
</ul>
</form>
</div>
<?php include_once('includes/footer.php');?>
</body>
</html>

Admin Dashboard

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['ttmsaid']==0)) {
header('location:logout.php');
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || Dashboard</title>

<script type="application/x-javascript"> addEventListener("load", function()


{ setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/lines.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900'
rel='stylesheet' type='text/css'>
<!---//webfonts--->
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
<!-- Graph JavaScript -->
<script src="js/d3.v3.js"></script>
<script src="js/rickshaw.js"></script>
</head>
<body>
<div id="wrapper">
<!-- Navigation -->

<?php include_once('includes/sidebar.php');?>
<!-- /.navbar-static-side -->
<?php include_once('includes/header.php');?>
<div id="page-wrapper">
<div class="graphs">
<div class="col_3">
<div class="col-md-3 widget widget1">
<div class="r3_counter_box">
<?php $query1=mysqli_query($con,"Select * from tblstaff");
$totalstaff=mysqli_num_rows($query1);
?>
<i class="pull-left fa fa-users icon-rounded"></i>
<div class="stats">
<h5><strong> <?php echo $totalstaff;?></strong></h5>
<span><a class="dropdown-item" href="manage-staff.php">Total
Staffs</a></span>
</div>
</div>
</div>
<div class="col-md-3 widget widget1">
<div class="r3_counter_box">
<?php $query2=mysqli_query($con,"Select * from tblcategory");
$totalcat=mysqli_num_rows($query2);
?>
<i class="pull-left fa fa-thumbs-up user1 icon-rounded"></i>
<div class="stats">
<h5><strong><?php echo $totalcat;?></strong></h5>
<span><a class="dropdown-item" href="manage-vehicle-cat.php">Total Vehicle
Category</a></span>
</div>
</div>
</div>
<div class="col-md-3 widget widget1">
<div class="r3_counter_box">
<?php $query3=mysqli_query($con,"Select * from tblpass");
$totalpass=mysqli_num_rows($query3);
?>
<i class="pull-left fa fa-comment user2 icon-rounded"></i>
<div class="stats">
<h5><strong><?php echo $totalpass;?></strong></h5>
<span><a class="dropdown-item" href="manage-pass.php">Total
Pass</a></span>
</div>
</div>
</div>
<div class="col-md-3 widget">
<div class="r3_counter_box">
<?php $query4=mysqli_query($con,"Select * from tblreceipt");
$totalreceipt=mysqli_num_rows($query4);
?>
<i class="pull-left fa fa-dollar dollar1 icon-rounded"></i>
<div class="stats">
<h5><strong><?php echo $totalreceipt;?></strong></h5>
<span><a class="dropdown-item" href="manage-receipt.php">Total
Receipt</a></span>
</div>
</div>
</div>
<div class="clearfix"> </div>
</div>
<div class="col_3">
<div class="col-md-3 widget widget1">
<div class="r3_counter_box">
<?php
//todays number of vehicle
$query5=mysqli_query($con,"select ID from tblreceipt where
date(CreationDate)=CURDATE();");
$count_today_vehicle=mysqli_num_rows($query5);
?>
<i class="pull-left fa fa-car icon-rounded"></i>
<div class="stats">
<h5><strong> <?php echo $count_today_vehicle;?></strong></h5>
<span>Today's Number of Vehicles</span>
</div>
</div>
</div>
<div class="col-md-3 widget widget1">
<div class="r3_counter_box">
<?php
//yesterdays number of vehicle
$query6=mysqli_query($con,"select ID from tblreceipt where
date(CreationDate)=CURDATE()-1;");
$count_yesterdays_vehicle=mysqli_num_rows($query6);
?>
<i class="pull-left fa fa-thumbs-up user1 icon-rounded"></i>
<div class="stats">
<h5><strong><?php echo $count_yesterdays_vehicle;?></strong></h5>
<span>Yesterdays Number of Vehicles</span>
</div>
</div>
</div>
<div class="col-md-3 widget widget1">
<div class="r3_counter_box">
<?php
//last seven days number of vehicle
$query7=mysqli_query($con,"select ID from tblreceipt where
date(CreationDate)=(DATE(NOW()) - INTERVAL 7 DAY);");
$count_sevendays_vehicle=mysqli_num_rows($query7);
?>
<i class="pull-left fa fa-comment user2 icon-rounded"></i>
<div class="stats">
<h5><strong><?php echo $count_sevendays_vehicle;?></strong></h5>
<span>Last 7 Days Number of Vehicles</span>
</div>
</div>
</div>
<div class="col-md-3 widget">
<div class="r3_counter_box">
<?php
//total number of vehicle
$query7=mysqli_query($con,"select ID from tblreceipt");
$count_total_vehicle=mysqli_num_rows($query7);
?>
<i class="pull-left fa fa-dollar dollar1 icon-rounded"></i>
<div class="stats">
<h5><strong><?php echo $count_total_vehicle;?></strong></h5>
<span><a class="dropdown-item" href="manage-receipt.php">Total vehicles Enter
Till Date</a></span>
</div>
</div>
</div>
<div class="clearfix"> </div>
</div>

<?php include_once('includes/footer.php');?>
</div>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>

</body>
</html>

Add Staff
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['ttmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$adminid=$_SESSION['ttmsaid'];
$sname=$_POST['sname'];
$smobnumb=$_POST['smobnumb'];
$semail=$_POST['semail'];
$gender=$_POST['gender'];
$saddress=$_POST['saddress'];
$sdob=$_POST['sdob'];
$spassword=md5($_POST['spassword']);
$staffid = mt_rand(100000000, 999999999);
$ret=mysqli_query($con, "select StaffEmail from tblstaff where StaffEmail='$semail' ||
StaffMobilenumber='$smobnumb'");
$result=mysqli_fetch_array($ret);
if($result>0){
$msg="This email or Contact Number already associated with another account";
}
else{

$query=mysqli_query($con,"insert into
tblstaff(StaffID,StaffName,StaffMobilenumber,StaffEmail,StaffGender,StaffAddress,StaffDOB,
StaffPassword)
value('$staffid','$sname','$smobnumb','$semail','$gender','$saddress','$sdob','$spassword')");
if ($query) {
echo '<script>alert("Staff detail has been added.")</script>';
echo "<script>window.location.href ='add-staff.php'</script>";
}
else
{
echo '<script>alert("Something Went Wrong. Please try again")</script>';
}
}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || Add Staff</title>

<script type="application/x-javascript"> addEventListener("load", function()


{ setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900'
rel='stylesheet' type='text/css'>
<!---//webfonts--->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>

</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<?php include_once('includes/sidebar.php');?>
<?php include_once('includes/header.php');?>
<div id="page-wrapper">
<div class="col-md-12 graphs">
<div class="xs">
<h3>Add Staff</h3>
<div class="well1 white">
<form class="form-floating ng-pristine ng-invalid ng-invalid-required ng-valid-email ng-
valid-url ng-valid-pattern" method="post">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<fieldset>

<div class="form-group">
<label class="control-label">Staff Name</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="sname" name="sname" value="">
</div>
<div class="form-group">
<label class="control-label">Staff Mobile Number</label>
<input type="text" class="form-control1 ng-invalid ng-valid-email ng-invalid-required
ng-touched" id="smobnumb" name="smobnumb" value="" required="true" maxlength="10"
pattern="[0-9]+">
</div>
<div class="form-group">
<label class="control-label">Staff Email Address</label>
<input type="email" class="form-control1 ng-invalid ng-invalid-required ng-touched"
id="semail" name="semail"value="" required="true" onblur="checkstaffemail(this.value)">
</div>
<div class="form-group">
<label class="control-label">Staff Password</label>
<input type="password" id="spassword" name="spassword" class="form-control1 ng-
invalid ng-valid-url ng-invalid-required ng-touched" value="" required="true">
</div>
<div class="form-group">
<label class="control-label">Staff Gender: </label>
<input type="radio" name="gender" id="gender" value="Female"
checked="true">Female
<input type="radio" name="gender" id="gender" value="Male">Male
<input type="radio" name="gender" id="gender" value="Other">Other

</div>
<div class="form-group">
<label class="control-label">Staff Address</label>
<textarea type="text" id="saddress" name="saddress" class="form-control1 ng-invalid
ng-valid-url ng-invalid-required ng-touched" value="" required="true" rows="12"
cols="4"></textarea>
</div>
<div class="form-group">
<label class="control-label">Staff DOB</label>
<input type="date" class="form-control1 ng-invalid ng-valid-email ng-invalid-required
ng-touched" id="sdob" name="sdob" value="" required="true">
</div>

<div class="form-group">
<p style="text-align: center;"> <button type="submit" name="submit" class="btn btn-
primary">Add</button></p>

</div>
</fieldset>
</form>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
</body>
</html>
<?php } ?>

Manage Receipt
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['ttmsaid']==0)) {
header('location:logout.php');
} else{

?>
<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || View Receipt</title>
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,
0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet'
type='text/css'>
<!---//webfonts--->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div id="wrapper">
<?php include_once('includes/sidebar.php');?>
<?php include_once('includes/header.php');?>
<div id="page-wrapper">
<div class="col-md-12 graphs">
<div class="xs">
<h3>View Receipt</h3>

<div class="bs-example4" data-example-id="simple-responsive-table">

<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th>S.NO</th>

<th>Receipt ID</th>
<th>Owner Name</th>
<th>Date of Creation</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$ret=mysqli_query($con,"select *from tblreceipt");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {

?>
<tr>
<th scope="row"><?php echo $cnt;?></th>
<td><?php echo $row['Receiptid'];?></td>
<td><?php echo $row['OwnerName'];?></td>
<td><?php echo $row['CreationDate'];?></td>
<td><a href="view-receipt.php?viewid=<?php echo $row['ID'];?>">View Details</a></td>
</tr>
<?php
$cnt=$cnt+1;
}?>
</tr>

</tbody>
</table>
</div><!-- /.table-responsive -->
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
</body>
</html>
<?php } ?>

Staff Login
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');

if(isset($_POST['login']))
{
$semail=$_POST['semail'];
$password=md5($_POST['password']);
$query=mysqli_query($con,"select ID from tblstaff where StaffEmail='$semail' &&
StaffPassword='$password'");
$ret=mysqli_fetch_array($query);
if($ret>0){
$_SESSION['ttmssid']=$ret['ID'];
header('location:dashboard.php');
}
else{
$msg="Invalid Details.";
}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || Login Page</title>

<script type="application/x-javascript"> addEventListener("load", function()


{ setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900'
rel='stylesheet' type='text/css'>
<!---//webfonts--->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</head>
<body id="login">
<div class="login-logo">
<a href="index.php"><strong style="color: black">Toll Tax Management
System</strong></a>
</div>
<h2 class="form-heading">login</h2>
<div class="app-cam">
<form method="post">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<input type="text" class="text" name="semail" placeholder="Staff Email" required="true">
<input type="password" name="password" class="text" placeholder="Password"
required="true">
<div class="submit"><input type="submit" value="Login" name="login"></div>

<ul class="new">
<li class="new_left"><p><a href="forgot-password.php">Forgot
Password ?</a></p></li>
<li class="new_right"><p><a href="../index.php">Back to Home</a></p></li>
</li>
<div class="clearfix"></div>
</ul>
</form>
</div>
<?php include_once('includes/footer.php');?>
</body>
</html>

Add Receipt
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['ttmssid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$sid=$_SESSION['ttmssid'];
$catname=$_POST['catname'];
$lanename=$_POST['lanename'];
$vname=$_POST['vname'];
$oname=$_POST['oname'];
$vehno=$_POST['vehno'];
$evcity=$_POST['evcity'];
$trip=$_POST['trip'];
$cost=$_POST['cost'];
$receiptid = mt_rand(100000000, 999999999);

$query=mysqli_query($con, "insert into


tblreceipt(Staffid,Receiptid,VehicleCat,LaneNumber,VehicleName,OwnerName,VehicleNumber,EnterVe
hiclecity,Trip,Cost)
value('$sid','$receiptid','$catname','$lanename','$vname','$oname','$vehno','$evcity','$trip','$cost')");
if ($query) {
echo '<script>alert("Receipt has been created.")</script>';
echo "<script>window.location.href ='add-receipt.php'</script>";
}
else
{
echo '<script>alert("Something Went Wrong. Please try again")</script>';
}

}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || Add Receipt</title>

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet'
type='text/css'>
<!---//webfonts--->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>

</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<?php include_once('includes/sidebar.php');?>
<?php include_once('includes/header.php');?>
<div id="page-wrapper">
<div class="col-md-12 graphs">
<div class="xs">
<h3>Add Receipt</h3>
<div class="well1 white">
<form class="form-floating ng-pristine ng-invalid ng-invalid-required ng-valid-email ng-valid-url ng-
valid-pattern" method="post">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<fieldset>

<div class="form-group">
<label class="control-label">Vehicle Category</label>
<select type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="catname" name="catname" value="">
<option value="">Choose Category</option>
<?php $query=mysqli_query($con,"select * from tblcategory");
while($row=mysqli_fetch_array($query))
{
?>
<option value="<?php echo $row['VehicleCat'];?>"><?php echo $row['VehicleCat'];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label">Name of lane</label>
<select type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="lanename" name="lanename" value="">
<option value="">Choose Lane Number</option>
<option value="Lane1">Lane Number 1</option>
<option value="Lane2">Lane Number 2</option>
<option value="Lane3">Lane Number 3</option>
<option value="Lane4">Lane Number 4</option>
</select>
</div>
<div class="form-group">
<label class="control-label">Vehicle Name</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="vname" name="vname" value="">
</div>
<div class="form-group">
<label class="control-label">Owner Name</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="oname" name="oname" value="">
</div>
<div class="form-group">
<label class="control-label">Vehicle Number</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="vehno" name="vehno" value="">
</div>

<div class="form-group">
<label class="control-label">Enter Vehicle City</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="evcity" name="evcity" value="">
</div>
<div class="form-group">
<label class="control-label">Trip</label>
<select type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="trip" name="trip" value="">
<option value="">Choose Trip</option>
<option value="One Way Trip">One Way Trip</option>
<option value="Two Way Trip">Two Way Trip</option>

</select>
</div>
<div class="form-group">
<label class="control-label">Cost</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="cost" name="cost" value="">
</div>
<div class="form-group">
<p style="text-align: center;"> <button type="submit" name="submit" class="btn btn-
primary">Add</button></p>

</div>
</fieldset>
</form>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
</body>
</html>
<?php } ?>

User Login

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['login']))
{
$uemail=$_POST['uemail'];
$password=$_POST['password'];
$query=mysqli_query($con,"select id from register where email='$uemail' &&
password='$password'");
$ret=mysqli_fetch_array($query);
if($ret>0){
$_SESSION['ttmssid']=$ret['id'];
header('location:dashboard.php');
}
else{
$msg="Invalid Details.";
}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || Login Page</title>

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet'
type='text/css'>
<!---//webfonts--->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</head>
<body id="login">
<div class="login-logo">
<a href="index.php"><strong style="color: black">Toll Tax Management System</strong></a>
</div>
<h2 class="form-heading">login</h2>
<div class="app-cam">
<form method="post">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<input type="text" class="text" name="uemail" placeholder="User Email" required="true">
<input type="password" name="password" class="text" placeholder="Password"
required="true">
<div class="submit"><input type="submit" value="Login" name="login"></div>

<ul class="new">

<li class="new_left"><p><a href="forgot-password.php">Forgot Password


?</a></p></li>
<li class="new_right"><p><a href="Register.php">New user?</a></p></li>
</li>
<div class="clearfix"></div>
</ul>
</form>
</div>
<?php include_once('includes/footer.php');?>
</body>
</html>

User Register

<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || Add Staff</title>

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet'
type='text/css'>
<!---//webfonts--->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>

</head>
<body>
<div id="wrapper">
<!-- Navigation -->

<div id="page-wrapper">
<div class="col-md-12 graphs">
<div class="xs">
<h3>Register Here</h3>
<div class="well1 white">
<form class="form-floating ng-pristine ng-invalid ng-invalid-required ng-valid-email ng-valid-url ng-
valid-pattern" method="post" action="insert.php">
<p style="font-size:16px; color:red" align="center">
</p>
<fieldset>

<div class="form-group">
<label class="control-label">UserName</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="uname" name="uname" value="">
</div>
<div class="form-group">
<label class="control-label">Mobile Number</label>
<input type="text" class="form-control1 ng-invalid ng-valid-email ng-invalid-required ng-
touched" id="umobnumb" name="umobnumb" value="" required="true" maxlength="10" pattern="[0-
9]+">
</div>
<div class="form-group">
<label class="control-label">Email Address</label>
<input type="email" class="form-control1 ng-invalid ng-invalid-required ng-touched"
id="uemail" name="uemail"value="" required="true" onblur="checkstaffemail(this.value)">
</div>
<div class="form-group">
<label class="control-label">Password</label>
<input type="password" id="spassword" name="upassword" class="form-control1 ng-invalid ng-
valid-url ng-invalid-required ng-touched" value="" required="true">
</div>
<div class="form-group">
<label class="control-label">Gender: </label>
<input type="radio" name="gender" id="gender" value="Female" checked="true">Female
<input type="radio" name="gender" id="gender" value="Male">Male
<input type="radio" name="gender" id="gender" value="Other">Other

</div>
<div class="form-group">
<label class="control-label">Address</label>
<textarea type="text" id="saddress" name="uaddress" class="form-control1 ng-invalid ng-valid-
url ng-invalid-required ng-touched" value="" required="true" rows="12" cols="4"></textarea>
</div>
<div class="form-group">
<label class="control-label">DOB</label>
<input type="date" class="form-control1 ng-invalid ng-valid-email ng-invalid-required ng-
touched" id="udob" name="udob" value="" required="true">
</div>
<div class="form-group">
<label class="control-label">Vehicle Type</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched" id="vtype"
name="vtype" value="" required="true">
</div>
<div class="form-group">
<label class="control-label">Vehicle Register Number</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched" id="rnum"
name="rnum" value="" required="true">
</div>
<div class="form-group">
<p style="text-align: center;"> <button type="submit" name="submit" class="btn btn-
primary">Register Now</button></p>

</div>
</fieldset>
</form>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
</body>
</html>

Book Pass
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['ttmssid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$id=$_POST['id'];
$catname=$_POST['catname'];
$vehname=$_POST['vehname'];
$regname=$_POST['regname'];
$vfrom=$_POST['vfrom'];
$appname=$_POST['appname'];
$appadd=$_POST['appadd'];
$costpass=$_POST['costpass'];
$passid = mt_rand(100000000, 999999999);

$query=mysqli_query($con, "insert into


userpass(id,Vehicle_Cat,Vehicle_Name,Reg_Number,Month,App_Name,App_Add,Pass_Cost)
value('$id','$catname','$vehname','$regname','$vfrom','$appname','$appadd','$costpass')");
if ($query) {
echo '<script>alert("New Pass has been added.")</script>';
echo "<script>window.location.href ='dashboard.php'</script>";
}
else
{
echo '<script>alert("Something Went Wrong. Please try again")</script>';
}

}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Toll Tax Management System || Book Pass</title>
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,
0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet'
type='text/css'>
<!---//webfonts--->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>

</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<?php include_once('includes/sidebar.php');?>
<?php include_once('includes/header.php');?>
<div id="page-wrapper">
<div class="col-md-12 graphs">
<div class="xs">
<h3>Add New Pass</h3>
<div class="well1 white">
<form class="form-floating ng-pristine ng-invalid ng-invalid-required ng-valid-email ng-valid-url ng-
valid-pattern" method="post">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<fieldset>
<div class="form-group">
<label class="control-label">UserId</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="id" name="id" value="">
</div>
<div class="form-group">
<label class="control-label">Vehicle Category</label>
<select type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="catname" name="catname" value="">
<option value="">Choose Category</option>
<?php $query=mysqli_query($con,"select * from tblcategory");
while($row=mysqli_fetch_array($query))
{
?>
<option value="<?php echo $row['VehicleCat'];?>"><?php echo $row['VehicleCat'];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label">Vehicle Name</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="vehname" name="vehname" value="">
</div> <div class="form-group">
<label class="control-label">Vehicle Reg Number</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="regname" name="regname" value="">
</div>
<div class="form-group">
<label class="control-label">Months</label>
<input type="date" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="vfrom" name="vfrom" value="">
</div>
<div class="form-group">
<label class="control-label">Name of Applicant</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="appname" name="appname" value="">
</div>
<div class="form-group">
<label class="control-label">Address of Applicant</label>
<textarea type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="appadd" name="appadd" value=""></textarea>
</div>
<div class="form-group">
<label class="control-label">Cost of Pass</label>
<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"
required="true" id="costpass" name="costpass" value="">
</div>
<div class="form-group">
<p style="text-align: center;"> <button type="submit" name="submit" class="btn btn-
primary">Add</button></p>
</div>
</fieldset>
</form>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
</body>
</html>
<?php } ?>

Check Pass Status


<?php

session_start();

error_reporting(0);

include('includes/dbconnection.php');

if (strlen($_SESSION['ttmssid']==0)) {

header('location:logout.php');

} else{

?>

<!DOCTYPE HTML>

<html>

<head>

<title>Toll Tax Management System || Manage Pass</title>

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

<!-- Bootstrap Core CSS -->


<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />

<!-- Custom CSS -->

<link href="css/style.css" rel='stylesheet' type='text/css' />

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

<!-- jQuery -->

<script src="js/jquery.min.js"></script>

<!----webfonts--->

<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet'


type='text/css'>

<!---//webfonts--->

<!-- Bootstrap Core JavaScript -->

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

</head>

<body>

<div id="wrapper">

<?php include_once('includes/sidebar.php');?>

<?php include_once('includes/header.php');?>

<div id="page-wrapper">

<div class="col-md-12 graphs">

<div class="xs">

<h3>Search Pass</h3>

<form class="form-floating ng-pristine ng-invalid ng-invalid-required ng-valid-email ng-valid-url ng-valid-


pattern" method="post">

<fieldset>

<div class="form-group">
<label class="control-label">Search by Pass ID / Applicant Name / Vehicle Reg Number</label>

<input type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched"


required="true" id="searchdata" name="searchdata" value="">

</div>

<div class="form-group">

<p style="text-align: center;"> <button type="submit" name="search" class="btn btn-


primary">Search</button></p>

</div>

</fieldset>

</form>

<div class="bs-example4" data-example-id="simple-responsive-table">

<div class="table-responsive">

<?php

if(isset($_POST['search']))

$sdata=$_POST['searchdata'];

?>

<h4 align="center">Result against "<?php echo $sdata;?>" keyword </h4>

<table class="table table-bordered">

<thead>

<tr>
<th>Pass ID</th>

<th>Vehicle Category</th>

<th>Name of Applicant</th>

<th>Vehicle Reg. Number</th>

<th>Month</th>

<th>Status</th>

</tr>

</thead>

<tbody>

<?php

$ret=mysqli_query($con,"select *from userpass where id like '%$sdata%' || App_Name like '%$sdata%'


|| Reg_Number like '%$sdata%'");

$num=mysqli_num_rows($ret);

if($num>0){

$cnt=1;

while ($row=mysqli_fetch_array($ret)) {

?>

<tr>

<td><?php echo $row['id'];?></td>

<td><?php echo $row['Vehicle_Cat'];?></td>

<td><?php echo $row['App_Name'];?></td>

<td><?php echo $row['Reg_Number'];?></td>


<td><?php echo $row['Month'];?></td>

<td><?php echo $row['Status'];?> </td>

</tr>

<?php

$cnt=$cnt+1;

} } else { ?>

<tr>

<td colspan="8"> No record found against this search</td>

</tr>

<?php } }?></tbody> </table>

</div><!-- /.table-responsive -->

</div>

</div>

<?php include_once('includes/footer.php');?>

</div>

</div>

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

</div>

<!-- /#wrapper -->

<!-- Nav CSS -->

<link href="css/custom.css" rel="stylesheet">

<!-- Metis Menu Plugin JavaScript -->


<script src="js/metisMenu.min.js"></script>

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

</body>

</html>

<?php } ?>

CHAPTER-7
7. SOFTWARE DESCRIPTION
7.1 SYSTEM TESTING
The purpose of testing is to discover errors. Testing is the process of trying to discover
every conceivable fault or weakness in a work product. It provides a way to check the
functionality of components, sub-assemblies

, assemblies and/or a finished product It is the process of exercising software with the intent of
ensuring that the software system meets its requirements and user expectations and does not fail
in an unacceptable manner. There are various types of test. Each test type addresses a specific
testing requirement.

TYPES OF TESTS

UNIT TESTING

Unit testing involves the design of test cases that validate that the internal program logic is
functioning properly, and that program inputs produce valid outputs. All decision branches and
internal code flow should be validated. It is the testing of individual software units of the
application .it is done after the completion of an individual unit before integration. This is a
structural testing, that relies on knowledge of its construction and is invasive. Unit tests perform
basic tests at component level and test a specific business process, application, and/or system
configuration. Unit tests ensure that each unique path of a business process performs accurately
to the documented specifications and contains clearly defined inputs and expected results.

INTEGRATION TESTING
Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic
outcome of screens or fields. Integration tests demonstrate that although the components were
individually satisfaction, as shown by successfully unit testing, the combination of components is
correct and consistent. Integration testing is specifically aimed at exposing the problems that
arise from the combination of components.

Functional test
Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user manuals.

Functional testing is centered on the following items:

Valid Input : identified classes of valid input must be accepted.

Invalid Input : identified classes of invalid input must be rejected.

Functions : identified functions must be exercised.

Output : identified classes of application outputs must be exercised.

Systems/Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key functions, or


special test cases. In addition, systematic coverage pertaining to identify Business process flows;
data fields, predefined processes, and successive processes must be considered for testing.
Before functional testing is complete, additional tests are identified and the effective value of
current tests is determined.

SYSTEM TESTING
System testing ensures that the entire integrated software system meets requirements. It tests a
configuration to ensure known and predictable results. An example of system testing is the
configuration oriented system integration test. System testing is based on process descriptions
and flows, emphasizing pre-driven process links and integration points.

WHITE BOX TESTING


White Box Testing is a testing in which in which the software tester has knowledge of the
inner workings, structure and language of the software, or at least its purpose. It is purpose. It is
used to test areas that cannot be reached from a black box level.

BLACK BOX TESTING


Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of tests,
must be written from a definitive source document, such as specification or requirements
document, such as specification or requirements document. It is a testing in which the software
under test is treated, as a black box .you cannot “see” into it. The test provides inputs and
responds to outputs without considering how the software works.

ACCEPTANCE TESTING

User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional requirements.

Test Results: All the test cases mentioned above passed successfully. No defects encountered.
CHAPTER -8

8. SYSTEM IMPLEMENTATION

IMPLEMENTATION PLAN:
Implementation is the state in the system where the theoretical design is turned
into a working system. The most crucial stage in achieving a new successful system and in
giving confidence on the new system for the users that will work efficiently and effectively. The
system can be implemented only after thorough testing is done and if found to work according to
the specification.

It involves careful planning, investigation of the current system and its constraints
on implementation, design of methods to achieve the changeover, an evaluation of changeover
methods apart from planning. Two major tasks of preparing the implementation are education,
training of the users and testing the systems. System analysis and design efforts will be more for
complex systems beings implemented. Based on policies of individuals’ organization an
implementation coordinating committee has been appointed.

IMPLEMENTATION PROCESS:
The implementation process begins with preparing a plain for the implementation
system. According to this plan, the other activities are to be carried out. In this plan, discussion
has been made regarding the equipment, resources and how to test the activities. Thus a clear
plan is preparing for the activities.

EQUIPMENT ACQUISITION:
One of the most important development activities is the code of programming.
The system According to the above plan, the necessary equipment has to be acquired to
implement the new system.

USER MANUALS:
Once planning has been completed the major effort of the computer department is
to ensure that the user department consists of education and trained staff, as the system becomes
more complex. The success of a system depends upon how they are operated and used. Thus the
quality of training, the personnel is connected to the success of the system.

For this purpose system and user manuals are prepared. In system manuals,
details about the forms and blocks triggers which were used to develop them were specified. In
user manuals data flow diagrams, charts and screen formats are given. Also error messages
associated were explained in details. The users were shown the success and they were taught
how to operate the system. Live demonstration and visuals aids were used to teach them.

CHAPTER-9

9. SCREEN LAYOUT AND CONCLUSION

9.1 Screen Layout

Home Page
Admin Login

Dashboard

Add Staff
’ Manage Staff

Update Staff Information


Add Vehicle Category
Manage Category

Update Category
Add New Pass

Manage Pass
Print Pass

View Receipt
Print Receipt

Search Pass
Search Receipt

Staff Login
Add Receipt

User Login
Add New Pass

9.2 Conclusion
The project titled as Toll Tax Management System was deeply studied and analyzed to
design the code and implement. It was done under the guidance of the experienced project guide.
All the current requirements and possibilities have been taken care during the project time. Toll
Tax management system is used for daily operations in any organization to maintain or access
toll related information for internal administration purposes.

CHAPTER-10
10.FUTURE ENHANCEMENT

This System being web-based and an undertaking of Cyber Security Division, needs to be
thoroughly tested to find out any security gaps.A console for the data centre may be made
available to allow the personnel to monitor on the sites which were cleared for hosting during a
particular period.Moreover, it is just a beginning; further the system may be utilized in various
other types of auditing operation viz. Network auditing or similar process/workflow based
applications.

CHAPTER-11
11. BIBLIOGRAPHY

For PHP

 https://www.w3schools.com/php/default.asp
 https://www.sitepoint.com/php/
 https://www.php.net/

For MySQL

 https://www.mysql.com/
 http://www.mysqltutorial.org

For XAMPP

 https://www.apachefriends.org/download.html

For Software Engineering

 https://www.tutorialspoint.com/software_engineering

You might also like