Professional Documents
Culture Documents
ON
BUS PASS MANGEMENT SYSTEM
Project report submitted in partial fulfillment for the
requirements of the award of degree for the
Bachelor of Science
In
Computer Science and Engineering
By
JAYANTH 111721013039
CHARAN BABU 111721013051
They have done this project under the guidance and supervision of
Mrs. SWAPNA, HOD of B.Sc. Computer Science and
Engineering, Loyola Academy. The project was completed to our
satisfaction, and they showed keen interest and dedication to the
project. The project duration is from June 2023 to November
2023. We place our appreciation on records for her best effort.
Mrs. SWAPNA
B.Sc. Computer Science and engineering (HOD) Loyola Academy
UG PG College
DECLARATION
Yours sincerely,
Jayanth
Charan Babu
CHAPTER NO CONTENT PG NO
1 Introduction
2.1.1 Disadvantage
2.2.1 Advantages
4 Modules
5 Conceptual Models
6.1 Coding
7 Conclusion
8 References
INDEX
ABSTRACT
Bus Pass Management System 2023-2024
Bus Pass Management System it is the web application that will manage all the records of pass which is
issue by bus administrative. Bus Pass Management System which is a automatic system which delivering
data processing in a very high speed in the systematic manner. This system helps bus administrative to keep
records of bus passes. Before this application the manual process used to do the process of the issuing bus
pass system to the traveler. This manual process requires man power and more time consuming to avoid this
difficulty we implement Bus Pass Management System. Bus pass management system is for students to get
pass through online. Before this application performance the manual procedure is used to do the procedure
of issue the bus pass to the students. To avoid such difficulties, we execute this system.
INTRODUCTION
Bus Pass Management system is a web-based technology that will manage the records of pass which is issue
by administrative and also help to provide online bus pass to people who need to travel daily. Bus Pass
Management System is helpful to bus administrative by reducing the paper work, time consumption and
makes a process of getting bus pass as a simple and fast. The Software powered by PHP assures clear and
systematic services to the company. This easy to operate system helps to access and change user details,
prepare efficient printing potential. The software is designed to prepare good and error free details. The
database is driven in my SQL which is providing portability. The resumption procedure can be done Session
base as peruser desire. Based on that resumption interval amount will be subtract. Bus Pass system projects
that manages and prepare several bus pas functionality .The project allows users to register on the bus pass
website and interchange to online to manage their account and bus pass connected transactions. There is a
need to reform the formal System with more benefits and Flexibility. We came up with this idea because of
the flaws in the current system that would help people better. As per the earlier system people had to do
every process manually, but this system helps people to do the work a little faster.
The bus scheduling and booking system overcomes most of the limitations of existing software
EXISTING SYSTEM
In the existing system bus pass booking are carried out manually. The person has to visit, take the token and
have to submit the details and then they have to wait for acceptance. For each and every process there is
time limit specified if the person fails to go on time then all the arrangement will be cancelled. In this live
system was used to bus details continue through file. And after bus details are stored to computerize. The
Project standard has to enter all the feature of project, documents, and tasks. And, also the conservation team
details and also attempt evaluate. For this motivation the organization continue the size of the document,
source code and update the details about team member’s details manually. Which is much of time gobble
process and more most of all it is error prone. At present system bus pass collect from store very rare one.
User can face lot of issue.
DISADVANTAGES
it is time consuming
PROPOSED SYSTEM
Online Bus Pass management system will help save your time and renewal bus passes without standing in a
line for hour near counters. It can find all the bus pass related information online without goings to the bus
station. The paying can be ready online via credit. Administrator can maintain Add Bus Pass Route, View
Applied User, Approval Pass Bus, Bus Pass Holders, Bus Pass Renewal details. The advance system
overcomes the drawbacks in the existing system. In the proposed system user register their details through
online and get their unique username and password for further processing. The bus pass will be individual
for different types of users. In this bus pass, all the required details such as student name, address, date of
birth, mail id, name of the school, power period, amount paid (free for government school students) and
photo copy of candidate are provided. Instead of school details, working organization particular will be
provided in route bus pass. The renewal process can be done monthly as per user wish. Based on that
renewal period amount will be subtract.
ADVANTAGES
You can find all the bus pass related information online without going to the bus station. This online bus
pass software system will help students and passengers get bus passes online and eliminate the need of
standing in queues for passes or collecting a ticket for each journey. The payment can be done online via
credit or master card.
HARDWARE REQUIREMENTS
SOFTWARE REQUIREMENTS
Web Browser
Mozilla, Google Chrome, IE8, OPERA
Software
XAMPP / Wamp / Mamp/ Lamp (anyone)
HTML is the set of markup symbols or codes inserted in a file intended for display on a World Wide
Web browser page. The markup tells the Web browser how to display a Web page's words and images for the
user. Each individual markup code is referred to as an element (but many people also refer to it as a tag).
Some elements come in pairs that indicate when some display effect is to begin and when it is to end. Web
browsers can read HTML files and compose them into visible or audible web pages. Browsers do not
display the HTML tags and scripts but use them 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
behaviour of HTML web pages. Web browsers can also refer to Cascading Style Sheets (CSS) to define the
look and layout of text and other material. The World Wide Web Consortium (W3C), maintainer of both the
HTML and the CSS standards, encourages the use of CSS over explicit presentational HTML.
CSS 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 change the style of web pages and user interfaces written in
HTML and XHTML. CSS is designed primarily to enable the separation of document content from
document presentation, including elements such as the layout, colours, and fonts. CSS makes it possible to
separate presentation instructions from the HTML content in a separate file or style section of the HTML
file. The CSS specification describes a priority scheme to determine which style rules apply if more than one
rule matches against a particular element. In this so called cascade, priorities or weights are calculated and
assigned to rules, so that the results are predictable. The CSS specifications are maintained by the World
Wide Web Consortium (W3C).
JAVASCRIPT (JS)
SERVER
XAMPP
XAMPP is a free and open source cross-platform web server solution stack package developed by
Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for
scripts written in the PHP and Perl programming languages. XAMPP stands for Cross-Platform (X), Apache
(A), MariaDB (M), PHP (P) and Perl (P). It is a simple, lightweight Apache distribution that makes it
extremely easy for developers to create a local web server for testing and deployment purposes. Everything
needed to set up a web server – server application (Apache), database (MariaDB), and scripting language
(PHP) – is included in an extractable file. XAMPP is also cross-platform, which means it works equally well
on 6 Linux, Mac and Windows. Since most actual web server deployments use the same components as
XAMPP, it makes transitioning from a local test server to a live server extremely easy as well.
DATABASE
MySQL
MySQL Workbench is a unified visual tool for database architects, developers, and DBA MySQL
Workbench provides data modelling, SQL development, and comprehensive administration tools for server
configuration, user administration, backup, and much more. MySQL Workbench is available on Windows,
Linux and Mac OS X.
PHP
Hypertext Pre-processor (or simply PHP) is a server-side scripting language designed for Web
development, but also used as a general-purpose programming language. It was originally created by
Rasmus Lerdorf in 1994,] the PHP reference implementation is now produced by The PHP Group. PHP
originally stood for Personal Home Page, ] but it now stands for the recursive acronym PHP: Hypertext Pre-
processor. PHP code may be embedded into HTML code, or it can be used in combination with various web
template systems, web content management systems, and web frameworks. PHP code is usually processed
by a PHP interpreter implemented as a module in the web server or as a Common Gateway Interface (CGI)
executable. The web server combines the results of the interpreted and executed PHP code, which may be
any type of data, including images, with the generated web page. PHP code may also be executed with a
command-line interface (CLI) and can be used to implement stand alone graphical applications.
LITERATURE SURVEY
In the existing system bus pass booking and renewal procedure are carried out manually. The person
has to visit the token and have to submit the details and then they have to wait for acceptance. For each and
every process there is time limit specified if the person fails to go on time then all the arrangement will be
cancelled. In this live system was used to bus details continue through file. And after bus details are stored to
computerize. The Project standard has to enter all the feature of project, documents, and tasks. And, also the
conservation team details and also attempt evaluate. For this motivation the organization continue the size of
the document, source code and update the details about team member’s details manually. Which is much of
time gobble process and more most of all it is error prone. At present system bus pass collect from store very
rare one. User can facing lot of issue. Bus Pass Management Project in Php is a web-based technology that
will manage the records of the pass which is issue by administrative and also help to provide online bus pass
to people who need to travel daily. Bus Pass Management System project is helpful to bus administration by
reducing the paperwork, time consumption and makes the process of getting bus passes as simple and fast.
Bus Pass Management system uses PHP and MySQL databases. This is the project which keeps records of
the pass which is issue by the administrative. Bus Pass Management system has two modules i.e. admin and
user.
ADMIN
Dashboard: In this sections, admin can briefly view the total number of categories and how many passes will
be generated in one day, yesterdays and the last seven’s days
Pages: In this section, admin can update about us and contact us pages.
Enquiry: In this section, admin reads the inquiries which are sent by users.
Reports: In this section admin can generate pass reports between two dates.
Search: In this section, admin can search a particular pass bypass number.
Admin can also update his profile, change the password and recover the password.
USER
Passenger
• View Route
• Apply Bus pass
• Paid Status
• Renewal
Admin module control the other module. Admin has the main power to add routes. This Module has control
to accept or reject the passenger bus pass. Once admin accept The bus pass then human Can Make amount
through online and get the bus pass through online.
In this module manager add the bus pass road information using this module. It contains information about
the Route id, History route, Destination route, quantity. It makes easy to integrate administrator password
authentication into your web app. authenticate on self with a password for the purpose of security. After the
registration valid ID will be provide by the manager. The Passenger can log into the system with this ID.
Passenger check view the bus route information view bus route information about the Route id, Source
route, Destination route, Amount, Validity request to issue pass information, view the acceptance status, Bus
Pass Renewal Information.
View Route
In this Module, traveler can view the bus routes, bus selecting their history and destination in the view routes
they can view the bus pass normal price, Less Price and Route id.
In this Module, passenger will be applied to the bus pass by entering their details, selecting the bus type
normal price or less price and Route id, Passenger Type and Apply bus pass the request send to the admin.
Paid Status
In this Module, passenger can pay the bus pass quantity, the user can view the bus pass by selecting view
bus pass.
Renewal
In this Module, passenger will be renewal their bus pass, entering the bus pass id and view the pass entering
the card number and click on the pass renewal and renewal is performed.
CONCEPTUAL MODELS
A use case diagram at its simplest is a representation of a user’s interaction with the system that shows the
relationship between the user and the different use cases in which user is involved. A use case diagram can
identify the different types of users of a system and the different use cases and will often be accompanied by
the other types of diagrams as well. The use cases are represented by either circles or ellipses. Use case
diagrams can also help to provide a higher-level view of the system.
There are 3 major components in a use case diagram:
• Functional requirements – represented as use cases; a verb describing an action
• Actors – these are entities that interacts with the system. An actor can be a human being, an organisation
or an internal or external application
• Relationships – between actors and use cases represented using straight arrows Due to their simplistic
nature, use case diagrams can be good communication tool for stakeholders. The drawings attempt to mimic
the real world and provide a view for the stakeholders to understand how the system is going to be designed.
ACTIVITY DIAGRAM:
In the Unified Modelling Language, Activity diagrams are intended to model both computational and organizational
pro Activity diagram is basically a flowchart to represent the flow from one activity to another activity. The
activity can be described as an operation of the system. cesses (i.e., workflows), as well as the data flows
intersecting with the related activities. Although activity diagrams primarily show the overall flow of control, they can
also include elements showing the flow of data between the activities through one or more data
COMPONENT DIAGRAM
A component diagram, also known as a UML component diagram, describes the organization and wiring of
the physical components in a system. Component diagrams are often drawn to help model implementation
details and double- check that every aspect of the system's required functions is covered by planned
development.
SEQUENCE DIAGRAM
A sequence diagram shows object interactions arranged in time sequence. I depict the objects and classes
involved in the scenario and the sequence of messages exchanged between the objects needed to carry out
the functionality of the scenario. Sequence diagrams are typically associated with the use case realizations in
the logical view of the system under development
CLASS DIAGRAM
Class diagrams are fundamental to the object modeling process and model the static structure of a system.
Depending on the complexity of a system, you can use a single class diagram to model an entire system, or
you can use several class diagrams to model the components of a system.
Class diagrams are the blueprints of your system or subsystem. You can use class diagrams to model the
objects that make up the system, to display the relationships between the objects, and to describe what those
objects do and the services that they provide.
Class diagrams are useful in many stages of system design. In the analysis stage, a class diagram can help
you to understand the requirements of your problem domain and to identify its components. In an object-
oriented software project, the class diagrams that you create during the early stages of the project contain
classes that often translate into actual software classes and objects when you write code. Later, you can
refine your earlier analysis and conceptual models into class diagrams that show the specific parts of your
system, user interfaces, logical implementations, and so on. Your class diagrams then become a snapshot that
describes exactly how your system works, the relationships between system components at many levels, and
how you plan to implement those components.
ER DIAGRAM:
An entity relationship diagram (ERD), also known as an entity relationship model, is a graphical
representation that depicts relationships among people, objects, places, concepts o revents within an
information technology(IT)system.
MODULE DIAGRAM
A module diagram is a type of diagram that represents the components, modules, and their relationships in a
system. Modules are typically used to group related functionality, and can contain classes, interfaces, or
other modules. Module diagrams are often used to show the dependencies between modules and to
understand the organization of the code.
IMPLEMENTATION
CODE
CSS
}
.user-info {
display: block;
color:#000!important;
display: inline-block;
padding: 15px;
margin-bottom: 0px
}
.user-text-online {
font-size:18px;
color:#fff
}
.user-circle-online {
width: 15px!important;
height: 15px!important;
}
/* Global Styles */
/* ------------------------------- */
body {
background-color: #f8f8f8;
}
/* Wrappers */
/* ------------------------------- */
#wrapper {
width: 100%;
margin-top: 55px!important;
background-color:#04B173;
}
#page-wrapper {
padding: 0 15px;
min-height: 568px;
background-color:rgb(209, 212, 216);
}
.navbar-static-side ul li {
border-bottom:1px solid #84B899 !important;
}
/* Navigation */
/* ------------------------------- */
.navbar-top-links li {
display: inline-block;
}
.navbar-top-links li:last-child {
margin-right: 15px;
}
.navbar-top-links li a {
padding: 20px;
min-height: 50px;
.navbar-top-links .dropdown-menu li {
display: block;
}
.navbar-top-links .dropdown-menu li a {
padding: 3px 20px;
min-height: 0;
}
.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
width: 310px;
min-width: 0;
}
.navbar-top-links .dropdown-messages {
margin-left: 5px;
}
.navbar-top-links .dropdown-tasks {
margin-left: -59px;
}
.navbar-top-links .dropdown-alerts {
margin-left: -123px;
}
.navbar-top-links .dropdown-user {
right: 0;
left: auto;
}
.sidebar-search {
padding: 15px;
}
.arrow {
float: right;
}
.fa.arrow:before {
content: "\f104";
}
.nav-second-level li,
.nav-third-level li {
border-bottom: none !important;
}
.nav-second-level li a {
padding-left: 37px;
}
.nav-third-level li a {
padding-left: 52px;
}
@media(min-width:768px) {
.navbar-static-side {
z-index: 1;
position: absolute;
width: 250px;
}
.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
margin-left: auto;
}
}
/* Buttons */
/* ------------------------------- */
.btn-outline {
color: inherit;
background-color: transparent;
transition: all .5s;
}
.btn-primary.btn-outline {
color: #428bca;
.btn-success.btn-outline {
color: #5cb85c;
}
.btn-info.btn-outline {
color: #5bc0de;
}
.btn-warning.btn-outline {
color: #f0ad4e;
}
.btn-danger.btn-outline {
color: #d9534f;
}
.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
color: #fff;
}
/* Pages */
/* ------------------------------- */
/* Dashboard Chat */
.chat {
margin: 0;
padding: 0;
list-style: none;
}
.chat li {
margin-bottom: 10px;
padding-bottom: 5px;
border-bottom: 1px dotted #B3A9A9;
}
.chat li .chat-body p {
margin: 0;
color: #777777;
}
.chat-panel .panel-body {
height: 280px;
overflow-y: scroll;
}
/* Login Page */
.login-panel {
margin-top: 15%;
}
.body-Backcolor {
background-color:#000;
}
.logo-margin {
margin-top:100px;
}
.flot-chart {
display: block;
height: 400px;
}
.flot-chart-content {
width: 100%;
height: 100%;
}
/* DataTables Overrides */
background: transparent;
/* Circle Buttons */
.btn-circle {
width: 30px;
height: 30px;
padding: 6px 0;
border-radius: 15px;
text-align: center;
font-size: 12px;
line-height: 1.428571429;
}
.btn-circle.btn-lg {
width: 50px;
height: 50px;
padding: 10px 16px;
border-radius: 25px;
font-size: 18px;
line-height: 1.33;
}
.btn-circle.btn-xl {
width: 70px;
height: 70px;
padding: 10px 16px;
border-radius: 35px;
font-size: 24px;
line-height: 1.33;
.show-grid [class^="col-"] {
padding-top: 10px;
padding-bottom: 10px;
border: 1px solid #ddd;
background-color: #eee !important;
}
.show-grid {
margin: 15px 0;
}
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.0.3');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'),
url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?
v=4.0.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular')
format('svg');
font-weight: normal;
font-style: normal;
}
.fa {
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* makes the font 33% larger relative to the icon container */
.fa-lg {
font-size: 1.3333333333333333em;
line-height: 0.75em;
vertical-align: -15%;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-fw {
width: 1.2857142857142858em;
text-align: center;
}
.fa-ul {
padding-left: 0;
margin-left: 2.142857142857143em;
list-style-type: none;
}
.fa-ul > li {
position: relative;
}
.fa-li {
position: absolute;
left: -2.142857142857143em;
width: 2.142857142857143em;
top: 0.14285714285714285em;
text-align: center;
}
.fa-li.fa-lg {
left: -1.8571428571428572em;
}
.fa-border {
padding: .2em .25em .15em;
border: solid 0.08em #eeeeee;
border-radius: .1em;
}
.pull-right {
float: right;
}
.pull-left {
float: left;
}
.fa.pull-left {
margin-right: .3em;
}
.fa.pull-right {
margin-left: .3em;
}
.fa-spin {
-webkit-animation: spin 2s infinite linear;
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
animation: spin 2s infinite linear;
}
@-moz-keyframes spin {
0% {
-moz-transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
}
}
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
}
}
@-o-keyframes spin {
0% {
-o-transform: rotate(0deg);
}
100% {
-o-transform: rotate(359deg);
}
}
@-ms-keyframes spin {
0% {
-ms-transform: rotate(0deg);
}
100% {
-ms-transform: rotate(359deg);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
}
.fa-rotate-90 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
-webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg);
-ms-transform: rotate(270deg);
-o-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);
-webkit-transform: scale(-1, 1);
-moz-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);
-webkit-transform: scale(1, -1);
-moz-transform: scale(1, -1);
-ms-transform: scale(1, -1);
-o-transform: scale(1, -1);
transform: scale(1, -1);
}
.fa-stack {
position: relative;
display: inline-block;
width: 2em;
height: 2em;
line-height: 2em;
vertical-align: middle;
}
.fa-stack-1x,
.fa-stack-2x {
position: absolute;
left: 0;
width: 100%;
text-align: center;
}
.fa-stack-1x {
line-height: inherit;
}
.fa-stack-2x {
font-size: 2em;
}
.fa-inverse {
color: #ffffff;
}
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.fa-glass:before {
content: "\f000";
}
.fa-music:before {
content: "\f001";
}
.fa-search:before {
content: "\f002";
}
.fa-envelope-o:before {
content: "\f003";
}
.fa-heart:before {
content: "\f004";
}
.fa-star:before {
content: "\f005";
}
.fa-star-o:before {
content: "\f006";
}
.fa-user:before {
content: "\f007";
}
.fa-film:before {
content: "\f008";
}
.fa-th-large:before {
content: "\f009";
}
.fa-th:before {
content: "\f00a";
}
.fa-th-list:before {
content: "\f00b";
}
.fa-check:before {
content: "\f00c";
}
.fa-times:before {
content: "\f00d";
}
.fa-search-plus:before {
content: "\f00e";
}
.fa-search-minus:before {
content: "\f010";
}
.fa-power-off:before {
content: "\f011";
}
.fa-signal:before {
content: "\f012";
}
.fa-gear:before,
.fa-cog:before {
content: "\f013";
}
.fa-trash-o:before {
content: "\f014";
}
.fa-home:before {
content: "\f015";
}
.fa-file-o:before {
content: "\f016";
}
.fa-clock-o:before {
content: "\f017";
}
.fa-road:before {
content: "\f018";
}
.fa-download:before {
content: "\f019";
}
.fa-arrow-circle-o-down:before {
content: "\f01a";
}
.fa-arrow-circle-o-up:before {
content: "\f01b";
}
.fa-inbox:before {
content: "\f01c";
}
.fa-play-circle-o:before {
content: "\f01d";
}
.fa-rotate-right:before,
.fa-repeat:before {
content: "\f01e";
}
.fa-refresh:before {
content: "\f021";
}
.fa-list-alt:before {
content: "\f022";
}
.fa-lock:before {
content: "\f023";
}
.fa-flag:before {
content: "\f024";
}
.fa-headphones:before {
content: "\f025";
}
.fa-volume-off:before {
content: "\f026";
}
.fa-volume-down:before {
content: "\f027";
}
.fa-volume-up:before {
content: "\f028";
}
.fa-qrcode:before {
content: "\f029";
}
.fa-barcode:before {
content: "\f02a";
}
.fa-tag:before {
content: "\f02b";
}
.fa-tags:before {
content: "\f02c";
}
.fa-book:before {
content: "\f02d";
}
.fa-bookmark:before {
content: "\f02e";
}
.fa-print:before {
content: "\f02f";
}
.fa-camera:before {
content: "\f030";
}
.fa-font:before {
content: "\f031";
}
.fa-bold:before {
content: "\f032";
}
.fa-italic:before {
content: "\f033";
}
.fa-text-height:before {
content: "\f034";
}
.fa-text-width:before {
content: "\f035";
}
.fa-align-left:before {
content: "\f036";
}
.fa-align-center:before {
content: "\f037";
}
.fa-align-right:before {
content: "\f038";
}
.fa-align-justify:before {
content: "\f039";
}
.fa-list:before {
content: "\f03a";
}
.fa-dedent:before,
.fa-outdent:before {
content: "\f03b";
}
.fa-indent:before {
content: "\f03c";
}
.fa-video-camera:before {
content: "\f03d";
}
.fa-picture-o:before {
content: "\f03e";
}
.fa-pencil:before {
content: "\f040";
}
.fa-map-marker:before {
content: "\f041";
}
.fa-adjust:before {
content: "\f042";
}
.fa-tint:before {
content: "\f043";
}
.fa-edit:before,
.fa-pencil-square-o:before {
content: "\f044";
}
.fa-share-square-o:before {
content: "\f045";
}
.fa-check-square-o:before {
content: "\f046";
}
.fa-arrows:before {
content: "\f047";
}
.fa-step-backward:before {
content: "\f048";
}
.fa-fast-backward:before {
content: "\f049";
}
.fa-backward:before {
content: "\f04a";
}
.fa-play:before {
content: "\f04b";
}
.fa-pause:before {
content: "\f04c";
}
.fa-stop:before {
content: "\f04d";
}
.fa-forward:before {
content: "\f04e";
}
.fa-fast-forward:before {
content: "\f050";
}
.fa-step-forward:before {
content: "\f051";
}
.fa-eject:before {
content: "\f052";
}
.fa-chevron-left:before {
content: "\f053";
}
.fa-chevron-right:before {
content: "\f054";
}
.fa-plus-circle:before {
content: "\f055";
}
.fa-minus-circle:before {
content: "\f056";
}
.fa-times-circle:before {
content: "\f057";
}
.fa-check-circle:before {
content: "\f058";
}
.fa-question-circle:before {
content: "\f059";
}
.fa-info-circle:before {
content: "\f05a";
}
.fa-crosshairs:before {
content: "\f05b";
}
.fa-times-circle-o:before {
content: "\f05c";
}
.fa-check-circle-o:before {
content: "\f05d";
}
.fa-ban:before {
content: "\f05e";
}
.fa-arrow-left:before {
content: "\f060";
}
.fa-arrow-right:before {
content: "\f061";
}
.fa-arrow-up:before {
content: "\f062";
}
.fa-arrow-down:before {
content: "\f063";
}
.fa-mail-forward:before,
.fa-share:before {
content: "\f064";
}
.fa-expand:before {
content: "\f065";
}
.fa-compress:before {
content: "\f066";
}
.fa-plus:before {
content: "\f067";
}
.fa-minus:before {
content: "\f068";
}
.fa-asterisk:before {
content: "\f069";
}
.fa-exclamation-circle:before {
content: "\f06a";
}
.fa-gift:before {
content: "\f06b";
}
.fa-leaf:before {
content: "\f06c";
}
.fa-fire:before {
content: "\f06d";
}
.fa-eye:before {
content: "\f06e";
}
.fa-eye-slash:before {
content: "\f070";
}
.fa-warning:before,
.fa-exclamation-triangle:before {
content: "\f071";
}
.fa-plane:before {
content: "\f072";
}
.fa-calendar:before {
content: "\f073";
}
.fa-random:before {
content: "\f074";
}
.fa-comment:before {
content: "\f075";
}
.fa-magnet:before {
content: "\f076";
}
.fa-chevron-up:before {
content: "\f077";
}
.fa-chevron-down:before {
content: "\f078";
}
.fa-retweet:before {
content: "\f079";
}
.fa-shopping-cart:before {
content: "\f07a";
}
.fa-folder:before {
content: "\f07b";
}
.fa-folder-open:before {
content: "\f07c";
}
.fa-arrows-v:before {
content: "\f07d";
}
.fa-arrows-h:before {
content: "\f07e";
}
.fa-bar-chart-o:before {
content: "\f080";
}
.fa-twitter-square:before {
content: "\f081";
}
.fa-facebook-square:before {
content: "\f082";
}
.fa-camera-retro:before {
content: "\f083";
}
.fa-key:before {
content: "\f084";
}
.fa-gears:before,
.fa-cogs:before {
content: "\f085";
}
.fa-comments:before {
content: "\f086";
}
.fa-thumbs-o-up:before {
content: "\f087";
}
.fa-thumbs-o-down:before {
content: "\f088";
}
.fa-star-half:before {
content: "\f089";
}
.fa-heart-o:before {
content: "\f08a";
}
.fa-sign-out:before {
content: "\f08b";
}
.fa-linkedin-square:before {
content: "\f08c";
}
.fa-thumb-tack:before {
content: "\f08d";
}
.fa-external-link:before {
content: "\f08e";
}
.fa-sign-in:before {
content: "\f090";
}
.fa-trophy:before {
content: "\f091";
}
.fa-github-square:before {
content: "\f092";
}
.fa-upload:before {
content: "\f093";
}
.fa-lemon-o:before {
content: "\f094";
}
.fa-phone:before {
content: "\f095";
}
.fa-square-o:before {
content: "\f096";
}
.fa-bookmark-o:before {
content: "\f097";
}
.fa-phone-square:before {
content: "\f098";
}
.fa-twitter:before {
content: "\f099";
}
.fa-facebook:before {
content: "\f09a";
}
.fa-github:before {
content: "\f09b";
}
.fa-unlock:before {
content: "\f09c";
}
.fa-credit-card:before {
content: "\f09d";
}
.fa-rss:before {
content: "\f09e";
}
.fa-hdd-o:before {
content: "\f0a0";
}
.fa-bullhorn:before {
content: "\f0a1";
}
.fa-bell:before {
content: "\f0f3";
}
.fa-certificate:before {
content: "\f0a3";
}
.fa-hand-o-right:before {
content: "\f0a4";
}
.fa-hand-o-left:before {
content: "\f0a5";
}
.fa-hand-o-up:before {
content: "\f0a6";
}
.fa-hand-o-down:before {
content: "\f0a7";
}
.fa-arrow-circle-left:before {
content: "\f0a8";
}
.fa-arrow-circle-right:before {
content: "\f0a9";
}
.fa-arrow-circle-up:before {
content: "\f0aa";
}
.fa-arrow-circle-down:before {
content: "\f0ab";
}
.fa-globe:before {
content: "\f0ac";
}
.fa-wrench:before {
content: "\f0ad";
}
.fa-tasks:before {
content: "\f0ae";
}
.fa-filter:before {
content: "\f0b0";
}
.fa-briefcase:before {
content: "\f0b1";
}
.fa-arrows-alt:before {
content: "\f0b2";
}
.fa-group:before,
.fa-users:before {
content: "\f0c0";
}
.fa-chain:before,
.fa-link:before {
content: "\f0c1";
}
.fa-cloud:before {
content: "\f0c2";
}
.fa-flask:before {
content: "\f0c3";
}
.fa-cut:before,
.fa-scissors:before {
content: "\f0c4";
}
.fa-copy:before,
.fa-files-o:before {
content: "\f0c5";
}
.fa-paperclip:before {
content: "\f0c6";
}
.fa-save:before,
.fa-floppy-o:before {
content: "\f0c7";
}
.fa-square:before {
content: "\f0c8";
}
.fa-bars:before {
content: "\f0c9";
}
.fa-list-ul:before {
content: "\f0ca";
}
.fa-list-ol:before {
content: "\f0cb";
}
.fa-strikethrough:before {
content: "\f0cc";
}
.fa-underline:before {
content: "\f0cd";
}
.fa-table:before {
content: "\f0ce";
}
.fa-magic:before {
content: "\f0d0";
}
.fa-truck:before {
content: "\f0d1";
}
.fa-pinterest:before {
content: "\f0d2";
}
.fa-pinterest-square:before {
content: "\f0d3";
}
.fa-google-plus-square:before {
content: "\f0d4";
}
.fa-google-plus:before {
content: "\f0d5";
}
.fa-money:before {
content: "\f0d6";
}
.fa-caret-down:before {
content: "\f0d7";
}
.fa-caret-up:before {
content: "\f0d8";
}
.fa-caret-left:before {
content: "\f0d9";
}
.fa-caret-right:before {
content: "\f0da";
}
.fa-columns:before {
content: "\f0db";
}
.fa-unsorted:before,
.fa-sort:before {
content: "\f0dc";
}
.fa-sort-down:before,
.fa-sort-asc:before {
content: "\f0dd";
}
.fa-sort-up:before,
.fa-sort-desc:before {
content: "\f0de";
}
.fa-envelope:before {
content: "\f0e0";
}
.fa-linkedin:before {
content: "\f0e1";
}
.fa-rotate-left:before,
.fa-undo:before {
content: "\f0e2";
}
.fa-legal:before,
.fa-gavel:before {
content: "\f0e3";
}
.fa-dashboard:before,
.fa-tachometer:before {
content: "\f0e4";
}
.fa-comment-o:before {
content: "\f0e5";
}
.fa-comments-o:before {
content: "\f0e6";
}
.fa-flash:before,
.fa-bolt:before {
content: "\f0e7";
}
.fa-sitemap:before {
content: "\f0e8";
}
.fa-umbrella:before {
content: "\f0e9";
}
.fa-paste:before,
.fa-clipboard:before {
content: "\f0ea";
}
.fa-lightbulb-o:before {
content: "\f0eb";
}
.fa-exchange:before {
content: "\f0ec";
}
.fa-cloud-download:before {
content: "\f0ed";
}
.fa-cloud-upload:before {
content: "\f0ee";
}
.fa-user-md:before {
content: "\f0f0";
}
.fa-stethoscope:before {
content: "\f0f1";
}
.fa-suitcase:before {
content: "\f0f2";
}
.fa-bell-o:before {
content: "\f0a2";
}
.fa-coffee:before {
content: "\f0f4";
}
.fa-cutlery:before {
content: "\f0f5";
}
.fa-file-text-o:before {
content: "\f0f6";
}
.fa-building-o:before {
content: "\f0f7";
}
.fa-hospital-o:before {
content: "\f0f8";
}
.fa-ambulance:before {
content: "\f0f9";
}
.fa-medkit:before {
content: "\f0fa";
}
.fa-fighter-jet:before {
content: "\f0fb";
}
.fa-beer:before {
content: "\f0fc";
}
.fa-h-square:before {
content: "\f0fd";
}
.fa-plus-square:before {
content: "\f0fe";
}
.fa-angle-double-left:before {
content: "\f100";
}
.fa-angle-double-right:before {
content: "\f101";
}
.fa-angle-double-up:before {
content: "\f102";
}
.fa-angle-double-down:before {
content: "\f103";
}
.fa-angle-left:before {
content: "\f104";
}
.fa-angle-right:before {
content: "\f105";
}
.fa-angle-up:before {
content: "\f106";
}
.fa-angle-down:before {
content: "\f107";
}
.fa-desktop:before {
content: "\f108";
}
.fa-laptop:before {
content: "\f109";
}
.fa-tablet:before {
content: "\f10a";
}
.fa-mobile-phone:before,
.fa-mobile:before {
content: "\f10b";
}
.fa-circle-o:before {
content: "\f10c";
}
.fa-quote-left:before {
content: "\f10d";
}
.fa-quote-right:before {
content: "\f10e";
}
.fa-spinner:before {
content: "\f110";
}
.fa-circle:before {
content: "\f111";
}
.fa-mail-reply:before,
.fa-reply:before {
content: "\f112";
}
.fa-github-alt:before {
content: "\f113";
}
.fa-folder-o:before {
content: "\f114";
}
.fa-folder-open-o:before {
content: "\f115";
}
.fa-smile-o:before {
content: "\f118";
}
.fa-frown-o:before {
content: "\f119";
}
.fa-meh-o:before {
content: "\f11a";
}
.fa-gamepad:before {
content: "\f11b";
}
.fa-keyboard-o:before {
content: "\f11c";
}
.fa-flag-o:before {
content: "\f11d";
}
.fa-flag-checkered:before {
content: "\f11e";
}
.fa-terminal:before {
content: "\f120";
}
.fa-code:before {
content: "\f121";
}
.fa-reply-all:before {
content: "\f122";
}
.fa-mail-reply-all:before {
content: "\f122";
}
.fa-star-half-empty:before,
.fa-star-half-full:before,
.fa-star-half-o:before {
content: "\f123";
}
.fa-location-arrow:before {
content: "\f124";
}
.fa-crop:before {
content: "\f125";
}
.fa-code-fork:before {
content: "\f126";
}
.fa-unlink:before,
.fa-chain-broken:before {
content: "\f127";
}
.fa-question:before {
content: "\f128";
}
.fa-info:before {
content: "\f129";
}
.fa-exclamation:before {
content: "\f12a";
}
.fa-superscript:before {
content: "\f12b";
}
.fa-subscript:before {
content: "\f12c";
}
.fa-eraser:before {
content: "\f12d";
}
.fa-puzzle-piece:before {
content: "\f12e";
}
.fa-microphone:before {
content: "\f130";
}
.fa-microphone-slash:before {
content: "\f131";
}
.fa-shield:before {
content: "\f132";
}
.fa-calendar-o:before {
content: "\f133";
}
.fa-fire-extinguisher:before {
content: "\f134";
}
.fa-rocket:before {
content: "\f135";
}
.fa-maxcdn:before {
content: "\f136";
}
.fa-chevron-circle-left:before {
content: "\f137";
}
.fa-chevron-circle-right:before {
content: "\f138";
}
.fa-chevron-circle-up:before {
content: "\f139";
}
.fa-chevron-circle-down:before {
content: "\f13a";
}
.fa-html5:before {
content: "\f13b";
}
.fa-css3:before {
content: "\f13c";
}
.fa-anchor:before {
content: "\f13d";
}
.fa-unlock-alt:before {
content: "\f13e";
}
.fa-bullseye:before {
content: "\f140";
}
.fa-ellipsis-h:before {
content: "\f141";
}
.fa-ellipsis-v:before {
content: "\f142";
}
.fa-rss-square:before {
content: "\f143";
}
.fa-play-circle:before {
content: "\f144";
}
.fa-ticket:before {
content: "\f145";
}
.fa-minus-square:before {
content: "\f146";
}
.fa-minus-square-o:before {
content: "\f147";
}
.fa-level-up:before {
content: "\f148";
}
.fa-level-down:before {
content: "\f149";
}
.fa-check-square:before {
content: "\f14a";
}
.fa-pencil-square:before {
content: "\f14b";
}
.fa-external-link-square:before {
content: "\f14c";
}
.fa-share-square:before {
content: "\f14d";
}
.fa-compass:before {
content: "\f14e";
}
.fa-toggle-down:before,
.fa-caret-square-o-down:before {
content: "\f150";
}
.fa-toggle-up:before,
.fa-caret-square-o-up:before {
content: "\f151";
}
.fa-toggle-right:before,
.fa-caret-square-o-right:before {
content: "\f152";
}
.fa-euro:before,
.fa-eur:before {
content: "\f153";
}
.fa-gbp:before {
content: "\f154";
}
.fa-dollar:before,
.fa-usd:before {
content: "\f155";
}
.fa-rupee:before,
.fa-inr:before {
content: "\f156";
}
.fa-cny:before,
.fa-rmb:before,
.fa-yen:before,
.fa-jpy:before {
content: "\f157";
}
.fa-ruble:before,
.fa-rouble:before,
.fa-rub:before {
content: "\f158";
}
.fa-won:before,
.fa-krw:before {
content: "\f159";
}
.fa-bitcoin:before,
.fa-btc:before {
content: "\f15a";
}
.fa-file:before {
content: "\f15b";
}
.fa-file-text:before {
content: "\f15c";
}
.fa-sort-alpha-asc:before {
content: "\f15d";
}
.fa-sort-alpha-desc:before {
content: "\f15e";
}
.fa-sort-amount-asc:before {
content: "\f160";
}
.fa-sort-amount-desc:before {
content: "\f161";
}
.fa-sort-numeric-asc:before {
content: "\f162";
}
.fa-sort-numeric-desc:before {
content: "\f163";
}
.fa-thumbs-up:before {
content: "\f164";
}
.fa-thumbs-down:before {
content: "\f165";
}
.fa-youtube-square:before {
content: "\f166";
}
.fa-youtube:before {
content: "\f167";
}
.fa-xing:before {
content: "\f168";
}
.fa-xing-square:before {
content: "\f169";
}
.fa-youtube-play:before {
content: "\f16a";
}
.fa-dropbox:before {
content: "\f16b";
}
.fa-stack-overflow:before {
content: "\f16c";
}
.fa-instagram:before {
content: "\f16d";
}
.fa-flickr:before {
content: "\f16e";
}
.fa-adn:before {
content: "\f170";
}
.fa-bitbucket:before {
content: "\f171";
}
.fa-bitbucket-square:before {
content: "\f172";
}
.fa-tumblr:before {
content: "\f173";
}
.fa-tumblr-square:before {
content: "\f174";
}
.fa-long-arrow-down:before {
content: "\f175";
}
.fa-long-arrow-up:before {
content: "\f176";
}
.fa-long-arrow-left:before {
content: "\f177";
}
.fa-long-arrow-right:before {
content: "\f178";
}
.fa-apple:before {
content: "\f179";
}
.fa-windows:before {
content: "\f17a";
}
.fa-android:before {
content: "\f17b";
}
.fa-linux:before {
content: "\f17c";
}
.fa-dribbble:before {
content: "\f17d";
}
.fa-skype:before {
content: "\f17e";
}
.fa-foursquare:before {
content: "\f180";
}
.fa-trello:before {
content: "\f181";
}
.fa-female:before {
content: "\f182";
}
.fa-male:before {
content: "\f183";
}
.fa-gittip:before {
content: "\f184";
}
.fa-sun-o:before {
content: "\f185";
}
.fa-moon-o:before {
content: "\f186";
}
.fa-archive:before {
content: "\f187";
}
.fa-bug:before {
content: "\f188";
}
.fa-vk:before {
content: "\f189";
}
.fa-weibo:before {
content: "\f18a";
}
.fa-renren:before {
content: "\f18b";
}
.fa-pagelines:before {
content: "\f18c";
}
.fa-stack-exchange:before {
content: "\f18d";
}
.fa-arrow-circle-o-right:before {
content: "\f18e";
}
.fa-arrow-circle-o-left:before {
content: "\f190";
}
.fa-toggle-left:before,
.fa-caret-square-o-left:before {
content: "\f191";
}
.fa-dot-circle-o:before {
content: "\f192";
}
.fa-wheelchair:before {
content: "\f193";
}
.fa-vimeo-square:before {
content: "\f194";
}
.fa-turkish-lira:before,
.fa-try:before {
content: "\f195";
}
.fa-plus-square-o:before {
content: "\f196";
PHP
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['bpmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$catname=$_POST['catname'];
$ret="select CategoryName from tblcategory where CategoryName=:catname";
$query= $dbh -> prepare($ret);
$query->bindParam(':catname',$catname,PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query -> rowCount() == 0)
{
$sql="insert into tblcategory(CategoryName)values(:catname)";
$query=$dbh->prepare($sql);
$query->bindParam(':catname',$catname,PDO::PARAM_STR);
$query->execute();
$LastInsertId=$dbh->lastInsertId();
if ($LastInsertId>0) {
echo '<script>alert("Category has been added.")</script>';
echo "<script>window.location.href ='add-category.php'</script>";
}
else
{
echo '<script>alert("Something Went Wrong. Please try again")</script>';
}
else
{
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- wrapper -->
<div id="wrapper">
<!-- navbar top -->
<?php include_once('includes/header.php');?>
<!-- end navbar top -->
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<form method="post" enctype="multipart/form-data">
</div>
</div>
</div>
<!-- End Form Elements -->
</div>
</div>
</div>
<!-- end page-wrapper -->
</div>
<!-- end wrapper -->
</body>
</html>
<?php } ?>
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['bpmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$fname=$_POST['fullname'];
$cnum=$_POST['cnumber'];
$email=$_POST['email'];
$itype=$_POST['identitytype'];
$icnum=$_POST['icnum'];
$cat=$_POST['category'];
$source=$_POST['source'];
$des=$_POST['destination'];
$fdate=$_POST['fromdate'];
$tdate=$_POST['todate'];
$cost=$_POST['cost'];
$passnum=mt_rand(100000000, 999999999);
$propic=$_FILES["propic"]["name"];
$extension = substr($propic,strlen($propic)-4,strlen($propic));
$allowed_extensions = array(".jpg","jpeg",".png",".gif");
if(!in_array($extension,$allowed_extensions))
{
echo "<script>alert('Profile Pics has Invalid format. Only jpg / jpeg/ png /gif format allowed');</script>";
}
else
{
$propic=md5($propic).time().$extension;
move_uploaded_file($_FILES["propic"]["tmp_name"],"images/".$propic);
$sql="insert into
tblpass(PassNumber,FullName,ProfileImage,ContactNumber,Email,IdentityType,IdentityCardno,Category,S
ource,Destination,FromDate,ToDate,Cost)values(:passnum,:fname,:propic,:cnum,:email,:itype,:icnum,:cat,:s
ource,:des,:fdate,:tdate,:cost)";
$query=$dbh->prepare($sql);
$query->bindParam(':passnum',$passnum,PDO::PARAM_STR);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':cnum',$cnum,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':itype',$itype,PDO::PARAM_STR);
$query->bindParam(':icnum',$icnum,PDO::PARAM_STR);
$query->bindParam(':cat',$cat,PDO::PARAM_STR);
$query->bindParam(':source',$source,PDO::PARAM_STR);
$query->bindParam(':des',$des,PDO::PARAM_STR);
$query->bindParam(':fdate',$fdate,PDO::PARAM_STR);
$query->bindParam(':tdate',$tdate,PDO::PARAM_STR);
$query->bindParam(':cost',$cost,PDO::PARAM_STR);
$query->bindParam(':propic',$propic,PDO::PARAM_STR);
$query->execute();
$LastInsertId=$dbh->lastInsertId();
if ($LastInsertId>0) {
echo '<script>alert("Pass detail has been added.")</script>';
echo "<script>window.location.href ='add-pass.php'</script>";
}
else
{
echo '<script>alert("Something Went Wrong. Please try again")</script>';
}
}
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- wrapper -->
<div id="wrapper">
<!-- navbar top -->
<?php include_once('includes/header.php');?>
<!-- end navbar top -->
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<form method="post" enctype="multipart/form-data">
foreach($result2 as $row)
{
?>
<option value="<?php echo htmlentities($row->CategoryName);?>"><?php echo htmlentities($row-
>CategoryName);?></option>
<?php } ?>
</select></div>
<div class="form-group"><label for="exampleInputEmail1">Source</label><input type="text"
name="source" value="" class="form-control" required='true'></div>
<div class="form-group"><label for="exampleInputEmail1">Destination</label><input type="text"
name="destination" value="" class="form-control" required='true'></div>
<div class="form-group"><label for="exampleInputEmail1">From Date</label><input type="date"
name="fromdate" value="" class="form-control" required='true'></div>
<div class="form-group"><label for="exampleInputEmail1">To Date</label><input type="date"
name="todate" value="" class="form-control" required='true'></div>
</div>
</div>
</div>
<!-- End Form Elements -->
</div>
</div>
</div>
<!-- end page-wrapper -->
</div>
<!-- end wrapper -->
</body>
</html>
<?php } ?>
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['bpmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$adminid=$_SESSION['bpmsaid'];
$AName=$_POST['adminname'];
$mobno=$_POST['mobilenumber'];
$email=$_POST['email'];
$sql="update tbladmin set AdminName=:adminname,MobileNumber=:mobilenumber,Email=:email where
ID=:aid";
$query = $dbh->prepare($sql);
$query->bindParam(':adminname',$AName,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':mobilenumber',$mobno,PDO::PARAM_STR);
$query->bindParam(':aid',$adminid,PDO::PARAM_STR);
$query->execute();
echo '<script>alert("Profile has been updated.")</script>';
}
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- wrapper -->
<div id="wrapper">
<!-- navbar top -->
<?php include_once('includes/header.php');?>
<!-- end navbar top -->
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<form method="post">
<?php
</div>
</div>
</div>
<!-- End Form Elements -->
</div>
</div>
</div>
<!-- end page-wrapper -->
</div>
<!-- end wrapper -->
</body>
</html>
<?php } ?>
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['bpmsaid']==0)) {
header('location:logout.php');
} else{
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- wrapper -->
<div id="wrapper">
<!-- navbar top -->
<?php include_once('includes/header.php');?>
<!-- end navbar top -->
<div class="row">
<!--quick info section -->
<div class="col-lg-4">
</div>
<div class="col-lg-4">
<div class="alert alert-warning text-center">
<?php
//Yesterday Pass Generated
</div>
<!-- end wrapper -->
</body>
</html>
<?php } ?>
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['bpmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$fname=$_POST['fullname'];
$cnum=$_POST['cnumber'];
$email=$_POST['email'];
$itype=$_POST['identitytype'];
$icnum=$_POST['icnum'];
$cat=$_POST['category'];
$source=$_POST['source'];
$des=$_POST['destination'];
$fdate=$_POST['fromdate'];
$tdate=$_POST['todate'];
$cost=$_POST['cost'];
$eid=$_GET['editid'];
$sql="update tblpass set
FullName=:fname,ContactNumber=:cnum,Email=:email,IdentityType=:itype,IdentityCardno=:icnum,Categ
ory=:cat,Source=:source,Destination=:des,FromDate=:fdate,ToDate=:tdate, Cost=:cost where ID=:eid";
$query=$dbh->prepare($sql);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':cnum',$cnum,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':itype',$itype,PDO::PARAM_STR);
$query->bindParam(':icnum',$icnum,PDO::PARAM_STR);
$query->bindParam(':cat',$cat,PDO::PARAM_STR);
$query->bindParam(':source',$source,PDO::PARAM_STR);
$query->bindParam(':des',$des,PDO::PARAM_STR);
$query->bindParam(':fdate',$fdate,PDO::PARAM_STR);
$query->bindParam(':tdate',$tdate,PDO::PARAM_STR);
$query->bindParam(':cost',$cost,PDO::PARAM_STR);
$query->bindParam(':eid',$eid,PDO::PARAM_STR);
$query->execute();
}
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- wrapper -->
<div id="wrapper">
<!-- navbar top -->
<?php include_once('includes/header.php');?>
<!-- end navbar top -->
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
foreach($result2 as $row2)
{
?>
<option value="<?php echo htmlentities($row2->CategoryName);?>"><?php echo htmlentities($row2-
>CategoryName);?></option>
<?php } ?>
</select></div>
<div class="form-group"><label for="exampleInputEmail1">From Date</label><input type="date"
name="fromdate" value="<?php echo $row->FromDate;?>" class="form-control" required='true'></div>
<div class="form-group"><label for="exampleInputEmail1">To Date</label><input type="date"
name="todate" value="<?php echo $row->ToDate;?>" class="form-control" required='true'></div>
<div class="form-group"><label for="exampleInputEmail1">Cost</label><input type="text" name="cost"
value="<?php echo $row->Cost;?>" class="form-control" required='true'></div>
<div class="form-group"><label for="exampleInputEmail1">Pass Creation Date</label><input type="text"
value="<?php echo $row->PasscreationDate;?>" class="form-control" readonly='true'></div>
<?php $cnt=$cnt+1;}} ?>
<p style="padding-left: 450px"><button type="submit" class="btn btn-primary" name="submit"
id="submit">Update</button></p></form>
</div>
</div>
</div>
</div>
<!-- End Form Elements -->
</div>
</div>
</div>
<!-- end page-wrapper -->
</div>
<!-- end wrapper -->
OUTPUT
HOME PAGE
PASS DETAILS
ADMIN DASHBOARD
DATABASE
SERVER
XAMPP
CONCLUSION
The “Bus pass Management System” has been developed to contents all present requirements. The process
of getting bus Pass Apply through Online, view bus information and Cost details for given source and
destination, Add New bus detail sand Ticket amount details by admin and all Customer detail sand Bus pass
details and Renewal Details, Payment Details are maintained more simple and easy.
FUTURE SCOPE
Every project is created with an aim for future extensibility. This website is also made with that intention.
The above-mentioned features could be the added extension for the project and the project can have extra
modules.
Bus pass system gives option to download a particular pass or having a soft copy of pass. In the future scope
supervisor can check bus pass using QR code scanning.
REFERENCES
1. https://www.ijraset.com/research-paper/bus-pass-system
2. https://ijarsct.co.in/Paper4770.pdf
3. https://ijarsct.co.in/Paper4770.pdf
4. https://www.bing.com/ck/a?!&&p=313024f993734e02JmltdHM9MTY2ODcyOTYwMCZpZ3
5. https://codeshoppy.com/shop/product/bus-pass-system/
6. https://phpgurukul.com/bus-pass-management-system-using-php-and-mysql