0% found this document useful (0 votes)
258 views

Full Doc-Passport Tracking System

This document describes a passport tracking system. It discusses the existing manual passport registration system and its disadvantages like lack of security, time consumption and large paperwork. It then proposes an online passport registration system with advantages like single user interaction, simplified process and centralized updating. It analyzes the system requirements and describes the software used - PHP, a programming language suited for server-side web development. PHP code can be executed on web servers to dynamically generate web page content.

Uploaded by

Taj S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
258 views

Full Doc-Passport Tracking System

This document describes a passport tracking system. It discusses the existing manual passport registration system and its disadvantages like lack of security, time consumption and large paperwork. It then proposes an online passport registration system with advantages like single user interaction, simplified process and centralized updating. It analyzes the system requirements and describes the software used - PHP, a programming language suited for server-side web development. PHP code can be executed on web servers to dynamically generate web page content.

Uploaded by

Taj S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 72

PASSPORT TRACKING SYSTEM

1.1INTRODUCTION
The ideal structure of online passport registration provides security to the passports to be registered where
in we can fill all the details in an efficient and easy manner. A passport is a document, issued by a national
Government. This certifies, for the purpose of international travel, the identity and nationality of its holder.
The Elements of identity are name, date-of-birth, sex and place of birth most often, most often nationality
and citizenship are congruent. A passport does not of itself entitle the passport holder entry into another
country, nor to consular protection while abroad or any other privileges it does. However normally entitle
the passport holder to return to his country that issued the passport. Rights to consular protection arise
from international agreements, and the right to return a rises from the laws of issuing country. An
individual can register for a passport irrespective of his/her age. The registration of passport is a major step
for issuing of a passport. It is system or process in which an individual has to provide exact details of his
/her personal information and residential information. Proper registration of a passport is very vital as all
the detail filled by the individual are depicted on the passport that is issued.
Turn your Ideas
intoProducts
ABOUT US

RND’s Software Development Division specializes in the business of providing services to itsclients
across India. Our expertise lies in reducing costs and improving productivity by
bringingthestrategicadvantagetothedoorstepofourcustomerinmorewaysthanone.Therebyimprovingrelia
bility,speed,agilityandenablingourcustomerstoachievesustainabledifferential advantage over their
competition. Thus, we are a full service organization offering aunique integration of strategy,
technology and creative implementation geared for measurableimpacton our
clients'businessperformance.

RnDCorp. ofIndia.
No.7,3rdFloor, PeriyasamyTowers,
Trichy-
620002,India.Phone:0431-
4217123,9865170006
Web:www.rndcenter.co.inMail
:research@rndcenter.co.in
2. SYSTEM STUDY
2.1 EXISTING SYSTEM

This existing system is not providing secure registration and profile management of all the
users properly.This manual system gives us very less security for saving data and some data may be lost
due to mismanagement.In the previous management system all the details required were taken manually in
the form of documents. In this system every individual had to stand in a queue which involved individuals
in huge numbers. Hence maintaining of documents submitted for passport registration was a tedious work
as many no of individual apply for registration. In this the individual has to go through the passport office
foe registering of a passport through a govt Agent. These agents demanded a huge amount of money and
were not mainly concerned about maintaining the details of every individual in a confidential and secured
manner.Hence the existing system is more time consuming and involves more manpower.

2.2 DISADVANATGES

 Passport can be provided by the admin department.


 Admin Department updated the status.
 Finally User check the updated status.
2.3 PROPOSED SYSTEM

This system makes the overall project management much easier and flexible. Various classes have been
used for maintain the details of all the users and catalog. Authentication is provided for this application
only registered users can access. Report generation features is provided using to generate different kind of
reports. In this system the individual fills all the information or details required for passport reservation
through online. The individual has to fill all the details and can’t leave any field as blank.

2.4 ADVANTAGES

 A single User can interact for both the end user and the passport officer.
 This simplify the process of multiple applications to a single purpose.
 The updated system is made in one single point.
2.5 PROBLEM STATEMENT

•    Lack of security of data.


•    More man power.
•    Time consuming.
•    Consumes large volume of pare work.
•    Needs manual calculations.
•    No direct role for the higher officials.
•    Damage of machines due to lack of attention.
To avoid all these limitations and make the working more accurately the system needs to be
computerized.
3. SYSTEM ANALYSIS
SOFTWARE DESCRIPTION
PHP
PHP: Hypertext Preprocessor (or simply PHP) is a general-purpose programming language
originally designed for web development. It was originally created by RasmusLerdorf 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 initialism PHP: Hypertext Preprocessor.
PHP code may be executed with a command line interface (CLI), embedded into HTML code, or
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 a web server
or as a Common Gateway Interface (CGI) executable. The web server outputs the results of the interpreted
and executed PHP code, which may be any type of data, such as generated HTML code or binary image
data. PHP can be used for many programming tasks outside of the web context, such as standalone
graphical applications and robotic drone control.
The standard PHP interpreter, powered by the Zend Engine, is free software released under the
PHP License. PHP has been widely ported and can be deployed on most web servers on almost every
operating system and platform, free of charge.
The PHP language evolved without a written formal specification or standard until 2014, with the
original implementation acting as the de facto standard which other implementations aimed to follow.
Since 2014, work has gone on to create a formal PHP specification.
PHP Objects
Basic object-oriented programming functionality was added in PHP 3 and improved in PHP 4. This
allowed for PHP to gain further abstraction, making creative tasks easier for programmers using the
language. Object handling was completely rewritten for PHP 5, expanding the feature set and enhancing
performance. In previous versions of PHP, objects were handled like value types. The drawback of this
method was that code had to make heavy use of PHP's "reference" variables if it wanted to modify an
object it was passed rather than creating a copy of it. In the new approach, objects are referenced by
handle, and not by value.
Implementations
The only complete PHP implementation is the original, known simply as PHP. It is the most widely
used and is powered by the Zend Engine. To disambiguate it from other implementations, it is sometimes
unofficially called "Zend PHP". The Zend Engine compiles PHP source code on-the-fly into an internal
format that it can execute, thus it works as an interpreter. It is also the "reference implementation" of PHP,
as PHP has no formal specification, and so the semantics of Zend PHP define the semantics of PHP. Due
to the complex and nuanced semantics of PHP, defined by how Zend works, it is difficult for competing
implementations to offer complete compatibility.
Licensing
PHP is free software released under the PHP License, which stipulates that: Products derived from
this software may not be called "PHP", nor may "PHP" appear in their name, without prior written
permission from group@php.net. You may indicate that your software works in conjunction with PHP by
saying "Foo for PHP" instead of calling it "PHP Foo" or "phpfoo". This restriction on use of "PHP" makes
the PHP License incompatible with the General Public License (GPL), while the Zend License is
incompatible due to an advertising clause similar to that of the original BSD license.
Use

A broad overview of the LAMP software bundle, displayed here together with Squid
PHP is a general-purpose scripting language that is especially suited to server-sideweb
development, in which case PHP generally runs on a web server. Any PHP code in a requested file is
executed by the PHP runtime, usually to create dynamic web page content or dynamic images used on
websites or elsewhere. It can also be used for command-line scripting and client-sidegraphical user
interface (GUI) applications. PHP can be deployed on most web servers, many operating systems and
platforms, and can be used with many relational database management systems (RDBMS). Most web
hosting providers support PHP for use by their clients. It is available free of charge, and the PHP Group
provides the complete source code for users to build, customize and extend for their own use.
Dynamic web page: example of server-side scripting (PHP and MySQL)
PHP acts primarily as a filter taking input from a file or stream containing text and/or PHP
instructions and outputting another stream of data. Most commonly the output will be HTML, although it
could be JSON, XML or binary data such as image or audio formats. Since PHP 4, the PHP
parsercompiles input to produce bytecode for processing by the Zend Engine, giving improved
performance over its interpreter predecessor.
Originally designed to create dynamic web pages, PHP now focuses mainly on server-side
scripting, and it is similar to other server-side scripting languages that provide dynamic content from a web
server to a client, such as Microsoft's ASP.NET, Sun Microsystems' Java Server Pages, and mod_perl.
PHP has also attracted the development of many software frameworks that provide building blocks and a
design structure to promote rapid application development (RAD). Some of these include PRADO,
CakePHP, Symfony, CodeIgniter, Laravel, Yii Framework, Phalcon and Zend Framework, offering
features similar to other web frameworks.
The LAMP architecture has become popular in the web industry as a way of deploying web
applications. PHP is commonly used as the P in this bundle alongside Linux, Apache and MySQL,
although the P may also refer to Python, Perl, or some mix of the three. Similar packages, WAMP and
MAMP, are also available for Windows and macOS, with the first letter standing for the respective
operating system. Although both PHP and Apache are provided as part of the macOS base install, users of
these packages seek a simpler installation mechanism that can be more easily kept up to date.
As of April 2007, over 20 million Internet domains had web services hosted on servers with PHP
installed and mod_php was recorded as the most popular Apache HTTP Server module. As of
August 2019, PHP was used as the server-side programming language on 79.1% of websites, down from
83.5% previously, where the language could be determined. Web content management systems written in
PHP include MediaWiki, Joomla, eZ Publish, eZ Platform, SilverStripe, WordPress, Drupal, and Moodle.
Websites written in PHP, in back-end and/or user-facing portion, include Facebook, Digg, Tumblr,
Dailymotion, and Slack.
For specific and more advanced usage scenarios, PHP offers a well-defined and documented way
for writing custom extensions in C or C++. Besides extending the language itself in form of additional
libraries, extensions are providing a way for improving execution speed where it is critical and there is
room for improvements by using a true compiled language. PHP also offers well defined ways for
embedding itself into other software projects. That way PHP can be easily used as an internal scripting
language for another project, also providing tight interfacing with the project's specific internal data
structures. PHP received mixed reviews due to lacking support for multithreading at the core language
level, though using threads is made possible by the "pthreads" PECL extension. As of January 2013, PHP
was used in more than 240 million websites (39% of those sampled) and was installed on 2.1 million web
servers. A command line interface, php-cli, and two ActiveXWindows Script Host scripting engines for
PHP have been produced. As of 2019, PHP 5 is most used on the web; which was last updated with
security updates in January 2019, with PHP 5.6.40.
Security
In 2017, 3% of all vulnerabilities listed by the National Vulnerability Database were linked to PHP;
historically, about 30% of all vulnerabilities listed since 1996 in this database are linked to PHP. Technical
security flaws of the language itself or of its core libraries are not frequent (22 in 2009, about 1% of the
total although PHP applies to about 20% of programs listed).Recognizing that programmers make
mistakes, some languages include taint checking to automatically detect the lack of input validation which
induces many issues. Such a feature is being developed for PHP, but its inclusion into a release has been
rejected several times in the past. There are advanced protection patches such as Suhosin and Hardening-
Patch, especially designed for web hosting environments. Historically, old versions of PHP had some
configuration parameters and default values for such runtime settings that made some PHP applications
prone to security issues. Among these, magic_quotes_gpc and register_globals configuration directives
were the best known; the latter made any URL parameters become PHP variables, opening a path for
serious security vulnerabilities by allowing an attacker to set the value of any uninitialized global variable
and interfere with the execution of a PHP script. Support for "magic quotes" and "register globals" settings
has been deprecated as of PHP 5.3.0, and removed as of PHP 5.4.0.
WAMP
WAMP is an acronym that stands for Windows, Apache, MySQL, and PHP. It’s a software stack
which means installing WAMP installs Apache, MySQL, and PHP on your operating system (Windows in
the case of WAMP). Even though you can install them separately, they are usually bundled up, and for a
good reason too.
What’s good to know is that WAMP derives from LAMP (the L stands for Linux). The only
difference between these two is that WAMP is used for Windows, while LAMP – for Linux based
operating systems.
Let’s quickly go over what each letter represents:
“W” stands for Windows, there’s also LAMP (for Linux) and MAMP (for Mac).
“A” stands for Apache. Apache is the server software that is responsible for serving web pages.
When you request a page to be seen by you, Apache grants your request over HTTP and shows you the
site.
“M” stands for MySQL. MySQL’s job is to be the database management system for your server. It
stores all of the relevant information like your site’s content, user profiles, etc.
“P” stands for PHP. It’s the programming language that was used to write WordPress. It acts like
glue for this whole software stack. PHP is running in conjunction with Apache and communicating with
MySQL.
Instead of installing and testing WordPress on your hosting account, you can do it on your personal
computer (localhost).
WAMP acts like a virtual server on your computer. It allows you to test all WordPress features
without any consequences since it’s localized on your machine and is not connected to the web.
First of all, this means that you don’t need to wait until files are uploaded to your site, and secondly
– this makes creating backups much easier.
WAMP speeds up the work process for both developers and theme designers alike. What is more,
you also get the benefit of playing around with your site to your heart’s content.
However, to actually make the website go live, you need to get some form of hosting service and a
Domain. See our beginner-friendly article about web hosting for more information.
Functionalities
 WampServer`s functionalities are very complete and easy to use so we won`t explain here how to
use them. With a left click on WampServer`s icon, you will be able to:
 Manage your Apache and MySQL services
 Switch online/offline (give access to everyone or only localhost)
 Install and switch Apache, MySQL and PHP releases
 Manage your servers settings
 Access your logs
 Access your settings files
 Create Alias
 Change WampServer`s menu language
 Access this Page
What is MySQL? – An Introduction To Database Management Systems
Database Management is the most important part when you have humungous data around you.
MySQL is one of the most famous Relational Database to store & handle your data. In this What is
MySQL blog, you will be going through the following topics:
What are Data & Database?
Suppose a company needs to store the names of hundreds of employees working in the company in
such a way that all the employees can be individually identified. Then, the company collects the data of all
those employees. Now, when I say data, I mean that the company collects distinct pieces of information
about an object. So, that object could be a real-world entity such as people, or any object such as a mouse,
laptop etc.
Database Management System & Types of DBMS
A Database Management System (DBMS) is a software application that interacts with the user,
applications and the database itself to capture and analyze data. The data stored in the database can be
modified, retrieved and deleted, and can be of any type like strings, numbers, images etc.
Types of DBMS
There are mainly 4 types of DBMS, which are Hierarchical, Relational, Network, and Object-
Oriented DBMS.
 Hierarchical DBMS:  As the name suggests, this type of DBMS has a style of predecessor-
successor type of relationship. So, it has a structure similar to that of a tree, wherein the nodes
represent records and the branches of the tree represent fields.
 Relational DBMS (RDBMS): This type of DBMS, uses a structure that allows the users to
identify and access data in relation to another piece of data in the database.
 Network DBMS: This type of DBMS supports many to many relations wherein multiple member
records can be linked.
 Object-oriented DBMS: This type of DBMS uses small individual software called objects. Each
object contains a piece of data, and the instructions for the actions to be done with the data.
Angular JS
AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template
language and lets you extend HTML's syntax to express your application's components clearly and
succinctly. AngularJS's data binding and dependency injection eliminate much of the code you would
otherwise have to write. And it all happens within the browser, making it an ideal partner with any server
technology.
AngularJS is what HTML would have been, had it been designed for applications. HTML is a great
declarative language for static documents. It does not contain much in the way of creating applications,
and as a result building web application is an exercise in what do I have to do to trick the browser into
doing what I want?
The impedance mismatch between dynamic applications and static documents is often solved with:
 a library - a collection of functions which are useful when writing web apps. Your code is in
charge and it calls into the library when it sees fit. E.g., jQuery.
 frameworks - a particular implementation of a web application, where your code fills in the
details. The framework is in charge and it calls into your code when it needs something app
specific. E.g., durandal, ember, etc.
AngularJS takes another approach. It attempts to minimize the impedance mismatch between
document centric HTML and what an application needs by creating new HTML constructs. AngularJS
teaches the browser new syntax through a construct we call directives. Examples include:
 Data binding, as in {{}}.
 DOM control structures for repeating, showing and hiding DOM fragments.
 Support for forms and form validation.
 Attaching new behavior to DOM elements, such as DOM event handling.
 Grouping of HTML into reusable components.
A complete client-side solution
AngularJS is not a single piece in the overall puzzle of building the client-side of a web application.
It handles all of the DOM and AJAX glue code you once wrote by hand and puts it in a well-defined
structure. This makes AngularJS opinionated about how a CRUD (Create, Read, Update, Delete)
application should be built. But while it is opinionated, it also tries to make sure that its opinion is just a
starting point you can easily change. AngularJS comes with the following out-of-the-box:
 Everything you need to build a CRUD app in a cohesive set: Data-binding, basic templating
directives, form validation, routing, deep-linking, reusable components and dependency injection.
 Testability story: Unit-testing, end-to-end testing, mocks and test harnesses.
 Seed application with directory layout and test scripts as a starting point.
AngularJS's sweet spot
AngularJS simplifies application development by presenting a higher level of abstraction to the developer.
Like any abstraction, it comes at a cost of flexibility. In other words, not every app is a good fit for
AngularJS. AngularJS was built with the CRUD application in mind. Luckily CRUD applications
represent the majority of web applications. To understand what AngularJS is good at, though, it helps to
understand when an app is not a good fit for AngularJS.
Games and GUI editors are examples of applications with intensive and tricky DOM manipulation.
These kinds of apps are different from CRUD apps, and as a result are probably not a good fit for
AngularJS. In these cases, it may be better to use a library with a lower level of abstraction, such
as jQuery.
Dreamweaver
Adobe Dreamweaver is a proprietary web development tool from Adobe Inc.. It was created
by Macromedia in 1997and developed by them until Macromedia was acquired by Adobe Systems in
2005.
Adobe Dreamweaver is available for the macOS and Windows operating systems. Following
Adobe's acquisition of the Macromedia product suite, releases of Dreamweaver subsequent to version 8.0
have been more compliant with W3C standards. Recent versions have improved support
for Web technologies such as CSS, JavaScript, and various server-side
scripting languages and frameworks including ASP (ASP JavaScript, ASP VBScript, ASP.NET C#,
ASP.NET VB), ColdFusion, Scriptlet, and PHP.
Adobe Dreamweaver CC is a web design and development application that uses both a visual
design surface known as Live View and a code editor with standard features such as syntax
highlighting, code completion, and code collapsing as well as more advanced features such as real-
time syntax checking and code introspection for generating code hints to assist the user in writing code.
Combined with an array of site management tools, Dreamweaver allows for its users to design, code and
manage websites, as well as mobile content. Dreamweaver is an Integrated Development
Environment (IDE) tool. You can live preview of changes for the frontend. Dreamweaver is positioned as
a versatile web design and development tool that enables visualization of web content while coding.
Dreamweaver, like other HTML editors, edits files locally then uploads them to the remote web server
using FTP, SFTP, or WebDAV. Dreamweaver CS4 now supports the Subversion (SVN) version control
system.

Feasibility Study

Depending on the results of the initial investigation the survey is now expanded to a more detailed
feasibility study. “FEASIBILITY STUDY” is a test of system proposal according to its workability,
impact of the organization, ability to meet needs and effective use of the resources. It focuses on these
major questions:

 What are the user’s demonstrable needs and how does a candidate system meet them?
 What resources are available for given candidate system?
 What are the likely impacts of the candidate system on the organization?
 Whether it is worth to solve the problem?

During feasibility analysis for this project, following primary areas of interest are to be considered.
Investigation and generating ideas about a new system does this.

Technical feasibility

A study of resource availability that may affect the ability to achieve an acceptable system. This
evaluation determines whether the technology needed for the proposed system is available or not.

 Can the work for the project be done with current equipment existing software technology
& available personal?
 Can the system be upgraded if developed?
 If new technology is needed then what can be developed?

Economical feasibility

Economic justification is generally the “Bottom Line” consideration for most systems. Economic
justification includes a broad range of concerns that includes cost benefit analysis. In this we weight the
cost and the benefits associated with the candidate system and if it suits the basic purpose of the
organization i.e. profit making, the project is making to the analysis and design phase. The financial and
the economic questions during the preliminary investigation are verified to estimate the following:

• The cost to conduct a full system investigation.

• The cost of hardware and software for the class of application being considered.

• The benefits in the form of reduced cost.

• The proposed system will give the minute information, as a result the performance is improved which in
turn may be expected to provide increased profits.

• This feasibility checks whether the system can be developed with the available funds. The Hospital
Management System does not require enormous amount of money to be developed. This can be done
economically if planned judicially, so it is economically feasible. The cost of project depends upon the
number of manhours required.

3.3.3 Operational Feasibility

It is mainly related to human organizations and political aspects. The points to be considered are:

 What changes will be brought with the system?


 What organization structures are disturbed?
 What new skills will be required? Do the existing staff members have these skills? If not,
can they be trained in due course of time?

The system is operationally feasible as it very easy for the End users to operate it. It only needs
basic information about Windows platform.

3.34 Schedule feasibility

Time evaluation is the most important consideration in the development of project. The time
schedule required for the developed of this project is very important since more development time effect
machine time, cost and cause delay in the development of other systems. A reliable Hospital Management
System can be developed in the considerable amount of time.

3.4 USECASE DIAGRAM


3.5. DATAFLOW DIAGRAM

DFD LEVEL 0

DFD LEVEL 1
DFD LEVEL 2
4. SYSTEM DESIGN

4.1 ARCHITECTURE DIAGRAM

View Feedback
4.2 I/O DESIGN

HomePage

PASSPORT TRACKINGSYSTEM
Let’sstraightenthingsout…

HomeLoginRegister

Welcometoour Website!!!

AdminLogin

LOGIN
Username:
Password:

LOGIN
Approvepassport

PASSPORTAPPROVAL

Name :
EmailId :
Type of job :
Department Name:
Job Description :
Location Address :
Proofofjob :
Date of vacancies :
Date of Approval :
Status :
StatusDescription :

UserLogin

LOGIN
Username:
Password:

LOGIN
UserRegistration

REGISTRATION

Name:

Gender: Male Female Others

Address:

District:
Occupation:Proof:

Browse

MobileNo:
YearofRegistration:Username (Email):Password:

REGISTER

4.3 DATABASE AND DATA STRUCTURE

TableName:tblregister

Purpose:To storethe user detailsgiven by theusers

S.No. Field Name Datatype Size Constraint Description


1 FId Int 10 PrimaryKey FeedbackId
2 Name Varchar 50 NotNull NameofUser
3 EmailId Varchar 30 NotNull MailIdofUser
4 DateOfbirth Date 10 NotNull Feedbackgivendate
5 passportName Varchar 50 NotNull Nameofthe Department
6 Feedback Varchar 500 NotNull FeedbackofUser

TableName:tblofficerdetails

Purpose:Tostorethe detailsoftheOfficers-in-Charge

S.No. Field Name Datatype Size Constraint Description


1 D_Id Int 10 PrimaryKey OfficerId
2 Name Varchar 50 NotNull NameofOfficer
3 Gender Varchar 15 NotNull Gender
4 DepartmentName Varchar 50 NotNull DepartmentName
5 Designation Varchar 30 NotNull DesignationofOfficer
6 OfficialAddress Varchar 100 NotNull OfficialAddress
7 Mobile Varchar 15 NotNull ContactNumber
8 Username Varchar 30 NotNull UsernameofOfficer
9 Password Varchar 30 NotNull PasswordforLogin

TableName:data

Purpose:To storethe total count ofapproved passport

S.No. Field Name Datatype Size Constraint Description


1 DataId Int 10 PrimaryKey Idofeachpassport
2 passportType Varchar 20 NotNull Typeof passport
3 Count Int 10 NotNull Totalcountofapprovedp
assport
4.6 ER DIAGRAM
4.8 CLASS DIAGRAM
4.9 ACTIVITY DIAGRAM
6. TESTING
INTRODUCTION

Testing is an activity to verify that a correct system is being built and is performed
with the intent of finding faults in the system. However testing is not restricted to being
performed after the development phase is complete. But this is too carried out in parallel with
all stages of system development, starting with requirements specification. Testing results,
once gathered and evaluated, provide a qualitative indication of software quality and
reliability and serve as a basis for design modification if require a project is said to be
incomplete without proper testing.

Test Case
File level deduplication will save a relatively large memory space. In general, file
level deduplication view multiple copies of same file. It stores first file and then it links other
references to the first file. Only one copy will be stored. In testing, even though file names
are same, the system can able to detect deduplication. If we upload the same file by using
different names, it will view only the content and not names. Thus redundant data is avoided.
In registration phase, the user may not registered before and type their information. So
if the user is new user, the alert message will display that the user is not registered before.

Fig 7.2 System Testing.


Unit Testing
It is the testing of an individual unit or group of related units. It is done by
programmer to test that the implementation is producing expected output against given input
and it falls under white box testing. Unit testing is done in order to check registration whether
the user properly registered into the cloud. It is done in order to check whether a file is
properly uploaded into the cloud. And an encryption and decryption is checked with unit
testing if it is converted properly. Then deduplication is checked with unit testing.
Integration Testing
All the modules should be integrated into a single module and it should be checked
that it is still working still by integration testing.
System Testing
It is done to ensure that by putting the software in different environments and check
that it still works. System Testing is done by uploading same file in this cloud checking
whether any duplicate file exists.
Software Testing
It is the process of evaluating a software item to detect differences between given
input and expected output. Also to assess the feature of a software item. Testing assess the
quality of the product. It is a process that should be done during the development process. In
other words software testing is a verification and validation process.
There are two types of software testing.
1. Black box testing
2. White box testing
Verification
Verification is the process to make sure the product satisfies the conditions imposed at
the start of the development phase. In other words, to make sure the product behaves the way
we want it to.
Validation
Validation is the process to make sure the product satisfies the specified requirements
at the end of the development phase. In other words, to make sure the product is built as per
customer requirements.
7. SYSTEM SPECIFICATION
SOFTWARE SPECIFICATION:

 Front End : PHP


 Back End : MYSQL
 Server : WAMP
 Operating System : Windows OS
 System type : 32-bit or 64-bit Operating System
 IDE : DREAMWEAVER
 DLL : Depends upon the title

HARDWARE REQUIREMENTS

 Processor : Intel processor 3.0 GHz


 RAM : 4 GB
 Hard disk : 1 TB
 Compact Disk : 650 MB
 Keyboard : Standard keyboard
 Mouse : Logitech mouse
 Monitor : 15 inch color monitor
8. CONCLUSION

 It is concluded that the application works well and satisfy the users.
 The application is tested very well and errors are properly debugged.
 The site is simultaneously accessed from more than one system. Simultaneous login
from more than one place is tested.
 The site works according to the restrictions provided in their respective browsers.
 Further enhancements can be made to the application, so that the web site functions
very attractive and useful manner than the present one.
 The speed of the transactions become more enough now.

FUTURE ENHANCEMENT
 The system that has been developed is accepted and proved to be satisfactory for the
user. And so the system is going to be implemented very soon.
 A simple operating procedure is included so that the user can understand the different
functions clearly and quickly.
 Initially as a first step the executable form of the application is to be created and
loaded in the common server machine which is accessible to all the user and the
server is to be connected to a network.
 The final stage is to document the entire system which provides components and the
operating procedures of the system.

BIBLIOGRAPHY
[1] Software Requirements Specification for project test, 2008

[2] http://www.scribd.com/doc/33852099/on-line-examiniation-system-project-report
Tu. 21/12/2011.

[3]http://whatis.techtarget.com/definition/0,,sid9_gci1103696,00.html, Sat. 29/10/2011.


[4] Software Requirements Specification for Problem Based Learning Module,
SoumanMandal, 2010.

[5] Software Design Specification (SDS) Acropolis Course Management System, 2011

Website Reference

https://www.w3schools.com/php/php_intro.asp

https://www.tutorialspoint.com/php/index.html

https://www.tutorialspoint.com/php/php_syntax_overview.htm
SAMPLE CODE

Admin login

<?php

error_reporting(E_PARSE);

session_start();

if ($_SESSION['loggedin'])

header("Location: adminPanel.php");

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

require_once('Connection.php');

$username = $_POST['username'];

$pass = $_POST['password'];

$obj = new Connection();


$db = $obj->getNewConnection();

$sql = "select * from admin where username='$username' AND password='$pass'";

$res = $db->query($sql);

if (!$res)

die($db->error);

$row = $res->fetch_assoc();

$db->close();

if ($row['username'] === $username AND $pass === $row['password'])

$_SESSION['loggedin'] = 1;

header("Location: adminPanel.php");

die();

else

print("Invalid credentials");

?>

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>Admin Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

</head>

<body>

<?phprequire_once('header.php'); ?>

<br>

<h1 class="text-white text-center font-weight-bold bg-warning" style="font-size: 55px;">


Admin Login </h1>

<div class="container"><br>

<div class="col-lg-6 m-auto d-block">

<form method="POST" onSubmit="return validation()" class="bg-light">

<div class="form-group">

<label for="username" class="font-weight-bold"> Username::</label>

<input type="text" name="username" class="form-control" id="username">

<span id="usernameerr" class="text-danger font-weight-bold"></span>

</div>

<div class="form-group">

<label for="password" class="font-weight-bold"> Password: </label>

<input type="password" name="password" class="form-control"


id="password">

<span id="passworderr" class="text-danger font-weight-bold"></span>

</div>

<center><input type="submit" name="submit" value="LOGIN" class="btnbtn-


success"><center>

</form>

<br>

</div>

</div>
<script type="text/javascript">

function validation() {

var username = document.getElementById('username').value;

var password = document.getElementById('password').value;

if (username == "") {

document.getElementById('usernameerr').innerHTML =" ** Please fill the username field";

return false;

if (password == "") {

document.getElementById('passworderr').innerHTML =" ** Please fill the password field";

return false;

</script>

<h1></h1>

<?phprequire_once('footer.php'); ?>

<!-- ##### All Javascript Script ##### -->

<!-- jQuery-2.2.4 js -->

<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>

<!-- Popper js -->

<scriptsrc="js/bootstrap/popper.min.js"></script>

<!-- Bootstrap js -->

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

<!-- All Plugins js -->

<scriptsrc="js/plugins/plugins.js"></script>

<!-- Active js -->


<scriptsrc="js/active.js"></script></body>

</html>

Admin panel

?php

session_start();

$loggedin = $_SESSION['loggedin'];

if ($loggedin == 0 OR isset($_POST['submit']))

header("Location: adminLogin.php");

session_destroy();

die();

?>

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>Admin Panel</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

</head>

<body>

<?phprequire_once('header.php'); ?>

<div class="col-lg-6 m-auto d-block">


<h1 class="text-white text-center font-weight-bold bg-warning" style="font-size: 55px;">
Admin Panel </h1>

<ul class="list-group">

<li class="list-group-item"><a href="viewllData.php">View Passport Data</a></li>

</ul>

<br>

<form method="post" class="bg-light">

<center><input type="submit" value="Logout" name="submit"


class="btnbtn-danger"></center>

</form>

</div>

<br>

<?phprequire_once('footer.php'); ?>

<!-- ##### All Javascript Script ##### -->

<!-- jQuery-2.2.4 js -->

<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>

<!-- Popper js -->

<scriptsrc="js/bootstrap/popper.min.js"></script>

<!-- Bootstrap js -->

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

<!-- All Plugins js -->

<scriptsrc="js/plugins/plugins.js"></script>

<!-- Active js -->

<scriptsrc="js/active.js"></script>

</body>
</html>

Checkllstatus

?php

session_start();

$loggedin = $_SESSION['loggedin'];

if ($loggedin == 0 OR isset($_POST['submit']))

header("Location: adminLogin.php");

session_destroy();

die();

?>

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>Admin Panel</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

</head>

<body>

<?phprequire_once('header.php'); ?>
<div class="col-lg-6 m-auto d-block">

<h1 class="text-white text-center font-weight-bold bg-warning" style="font-size: 55px;">


Admin Panel </h1>

<ul class="list-group">

<li class="list-group-item"><a href="viewllData.php">View Passport Data</a></li>

</ul>

<br>

<form method="post" class="bg-light">

<center><input type="submit" value="Logout" name="submit"


class="btnbtn-danger"></center>

</form>

</div>

<br>

<?phprequire_once('footer.php'); ?>

<!-- ##### All Javascript Script ##### -->

<!-- jQuery-2.2.4 js -->

<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>

<!-- Popper js -->

<scriptsrc="js/bootstrap/popper.min.js"></script>

<!-- Bootstrap js -->

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

<!-- All Plugins js -->

<scriptsrc="js/plugins/plugins.js"></script>

<!-- Active js -->

<scriptsrc="js/active.js"></script>
</body>

</html>

Confirmll

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>Confirm New DL</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

</head>

<body>

<?phprequire_once('header.php'); ?>

<div class="row">

<div class="col-lg-6 m-auto d-block">

<ul class="list-group">

<?php

session_start();

require_once('Connection.php');

$llno = $_SESSION['llno'];

$aadhar = $_SESSION['aadhar'];

$obj = new Connection();


$db = $obj->getNewConnection();

$sql = "select * from ll where llno=$llno AND aadhar=$aadhar";

$res = $db->query($sql);

$row = $res->fetch_assoc();

$name = $row['name'];

$fatherName = $row['fatherName'];

$dob = $row['dob'];

$bloodGroup = $row['bloodGroup'];

$address = $row['address'];

$aadhar = $row['aadhar'];

$validity = $row['validity'];

$issueDate = $row['issueDate'];

$gender = $row['gender'];

$mobileno = $row['mobileNumber'];

$email = $row['email'];

$rto = $row['rto'];

print("<li class='list-group-item text-muted' contenteditable='false'>LL</li>

<li class='list-group-item text-right'><span class='pull-left'><strong class=''>LL


Number:</strong></span>$llno</li>

<li class='list-group-item text-right'><span class='pull-left'><strong


class=''>Name:</strong></span>$name</li>

<li class='list-group-item text-right'><span class='pull-left'><strong class=''>Aadhar


Number:</strong></span>$aadhar</li>

<li class='list-group-item text-right'><span class='pull-left'><strong class=''>Father's


Name:</strong></span>$fatherName</li>

<li class='list-group-item text-right'><span class='pull-left'><strong


class=''>DOB:</strong></span>$dob</li>
<li class='list-group-item text-right'><span class='pull-left'><strong class=''>Blood
Group:</strong></span>$bloodGroup</li>

<li class='list-group-item text-right'><span class='pull-left'><strong


class=''>Address:</strong></span>$address</li>

<li class='list-group-item text-right'><span class='pull-left'><strong class=''>Issue


Date:</strong></span>$issueDate</li>

<li class='list-group-item text-right'><span class='pull-left'><strong


class=''>Validity:</strong></span>$validity</li>

");

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

// die();

// header("Location: checkDLStatus.php");

echo "1";

$Date = date("Y-m-d");

$examDate = date('Y-m-d', strtotime($Date . ' + 15 days'));

$q = "insert into dl(name, fatherName, dob, bloodGroup, address, aadhar, gender,


mobileNumber, email, rto, examDate)

values('$name', '$fatherName', '$dob', '$bloodGroup', '$address', $aadhar, '$gender',


$mobileno, '$email', '$rto', '$examDate')";

$r = $db->query($q);

echo "2";

// $res1 = $db->query("update dl set status=0 where aadhar=$aadhar");

$_SESSION['aadhar'] = $aadhar;

$_SESSION['rto'] = $rto;

header("Location: dlstatus.php");

// die();
if (!$r)

$db->error;

$db->close();

echo "1";

echo "1";

// print("DL NO: $llno<br> Name: $name <br> Father's Name: $fatherName<br>

// DOB: $dob<br> Blood Group: $bloodGroup<br> Address: $address <br>

// Aadhar Number: $aadhar<br> Issue Date: $issueDate<br> Validity: $validity <br>");

?>

</ul>

</div>

</div>

<form method="post">

<br><center><input class ="btnbtn-success" type="submit" value="Confirm Details"


name="confirm"></center><br>

</form>

<?phprequire_once('footer.php'); ?>

<!-- ##### All Javascript Script ##### -->

<!-- jQuery-2.2.4 js -->

<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>

<!-- Popper js -->


<scriptsrc="js/bootstrap/popper.min.js"></script>

<!-- Bootstrap js -->

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

<!-- All Plugins js -->

<scriptsrc="js/plugins/plugins.js"></script>

<!-- Active js -->

<scriptsrc="js/active.js"></script>

</body>

</html>

Connection

<?php

class Connection

functiongetNewConnection()

$db = new mysqli("localhost", "root", "", "passport");

if ($db->connect_error) {

die("Connection failed: " . $db->connect_error);

return $db;

}
?>

Editll data

<?php

session_start();

require_once('Connection.php');

$aadhar = $_SESSION['aadhar'];

// echo $aadhar;

// die();

$obj = new Connection();

$db = $obj->getNewConnection();

$sql = "select * from ll where aadhar=$aadhar";

$res = $db->query($sql);

$row = $res->fetch_assoc();

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

$name = $_POST['name'];$llno = $_POST['llno'];

$fatherName = $_POST['fatherName'];$dob = $_POST['dob'];

$bloodGroup = $_POST['bloodGroup'];$address = $_POST['address'];

$gender = $_POST['gender'];$mobileNumber = $_POST['mobileNumber'];

$email = $_POST['email'];$rto = $_POST['rto'];

$status = $_POST['status'];$validity = $_POST['validity'];

$issueDate = $_POST['issueDate'];

$q = "update ll
set name='$name', llno=$llno, fatherName='$fatherName',

dob='$dob', bloodGroup='$bloodGroup', address='$address', gender='$gender',

mobileNumber=$mobileNumber, email='$email', rto='$rto', status=$status,


validity='$validity', issueDate='$issueDate' where aadhar=$aadhar";

$res1 = $db->query($q);

if (!$res1)

die($db->error);

$db->close();

// session_destroy();

header("Location: viewllData.php");

die();

$db->close();

?>

<html>

<?phprequire_once('header.php'); ?>

<br>

<h1 class="text-white text-center font-weight-bold bg-warning" style="font-size: 55px;">


Edit Passport Data </h1>

<div class="container"><br>

<div class="col-lg-6 m-auto d-block">

<form method="POST" onSubmit="return validation()" class="bg-light">

<div class="form-group">

<label for="name" class="font-weight-bold"> Name:


</label>
<input type="text" name="name" class="form-control"
id="name" value="<?php echo $row['name'] ?>">

<span id="nameerr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="llno" class="font-weight-bold"> Passport


No: </label>

<input type="number" name="llno" class="form-


control" id="llno" value="<?php echo $row['llno'] ?>">

<span id="llnoerr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="fatherName" class="font-weight-bold">


Father's Name: </label>

<input type="text" name="fatherName" class="form-


control" id="fatherName" value="<?php echo $row['fatherName'] ?>">

<span id="fatherNameerr" class="text-danger font-


weight-bold"></span>

</div>

<div class="form-group">

<label for="dob" class="font-weight-bold"> D.O.B:


</label>

<input type="text" name="dob" class="form-control"


id="dob" value="<?php echo $row['dob'] ?>">

<span id="doberr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">
<label for="bloodGroup" class="font-weight-bold">
Blood Group: </label>

<input type="text" name="bloodGroup" class="form-


control" id="bloodGroup" value="<?php echo $row['bloodGroup'] ?>">

<span id="bloodGrouperr" class="text-danger font-


weight-bold"></span>

</div>

<div class="form-group">

<label for="address" class="font-weight-


bold">Address: </label>

<input type="text" name="address" class="form-


control" id="address" value="<?php echo $row['address'] ?>">

<span id="addresserr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="gender" class="font-weight-bold"> Gender:


</label>

<input type="text" name="gender" class="form-


control" id="gender" value="<?php echo $row['gender'] ?>">

<span id="gendererr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="mobileNumber" class="font-weight-bold">


Mobile Number: </label>

<input type="number" name="mobileNumber"


class="form-control" id="mobileNumber" value="<?php echo $row['mobileNumber'] ?>">

<span id="mobileNumbererr" class="text-danger font-


weight-bold"></span>
</div>

<div class="form-group">

<label for="email" class="font-weight-bold"> Email:


</label>

<input type="email" name="email" class="form-


control" id="email" value="<?php echo $row['email'] ?>">

<span id="emailerr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="rto" class="font-weight-bold"> Passport:


</label>

<input type="text" name="rto" class="form-control"


id="rto" value="<?php echo $row['rto'] ?>">

<span id="rtoerr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="status" class="font-weight-bold"> Status (0-


pending, 1- approved):</label>

<input type="number" name="status" class="form-


control" id="status" value="<?php echo $row['status'] ?>">

<span id="statuserr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="validity" class="font-weight-bold"> Validity


</label>

<input type="date" name="validity" class="form-


control" id="validity" value="<?php echo $row['validity'] ?>">
<span id="validityerr" class="text-danger font-weight-
bold"></span>

</div>

<div class="form-group">

<label for="issueDate" class="font-weight-bold"> Issue


Date </label>

<input type="date" name="issueDate" class="form-


control" id="issueDate" value="<?php echo $row['issueDate'] ?>">

<span id="issueDateerr" class="text-danger font-


weight-bold"></span>

</div>

<center><input type="submit" name="submit" value="SUBMIT" class="btnbtn-


success"><center>

</form>

<br>

</div>

</div>

<script type="text/javascript">

function validation() {

var name = document.getElementById('name').value;

if (name == "") {

document.getElementById('nameerr').innerHTML =" ** Please fill the name field";

return false;

varllno = document.getElementById('llno').value;

if (llno == "") {

document.getElementById('llnoerr').innerHTML =" ** Please fill the llno field";

return false;
}

varfatherName = document.getElementById('fatherName').value;

if (fatherName == "") {

document.getElementById('fatherNameerr').innerHTML =" ** Please fill the fatherName


field";

return false;

vardob = document.getElementById('dob').value;

if (dob == "") {

document.getElementById('doberr').innerHTML =" ** Please fill the dob field";

return false;

varbloodGroup = document.getElementById('bloodGroup').value;

if (bloodGroup == "") {

document.getElementById('bloodGrouperr').innerHTML =" ** Please fill the bloodGroup


field";

return false;

var address = document.getElementById('address').value;

if (address == "") {

document.getElementById('addresserr').innerHTML =" ** Please fill the address field";

return false;

var gender = document.getElementById('gender').value;

if (gender == "") {

document.getElementById('gendererr').innerHTML =" ** Please fill the gender field";

return false;
}

varmobileNumber = document.getElementById('mobileNumber').value;

if (mobileNumber == "") {

document.getElementById('mobileNumbererr').innerHTML =" ** Please fill the


mobileNumber field";

return false;

var email = document.getElementById('email').value;

if (email == "") {

document.getElementById('emailerr').innerHTML =" ** Please fill the email field";

return false;

varrto = document.getElementById('rto').value;

if (rto == "") {

document.getElementById('rtoerr').innerHTML =" ** Please fill the rto field";

return false;

var status = document.getElementById('status').value;

if (status == "") {

document.getElementById('statuserr').innerHTML =" ** Please fill the status field";

return false;

var validity = document.getElementById('validity').value;

if (validity == "") {

document.getElementById('validityerr').innerHTML =" ** Please fill the validity field";

return false;
}

varissueDate = document.getElementById('issueDate').value;

if (issueDate == "") {

document.getElementById('issueDateerr').innerHTML =" ** Please fill the issueDate field";

return false;

return true;

</script>

<?phprequire_once('footer.php'); ?>

<!-- ##### All Javascript Script ##### -->

<!-- jQuery-2.2.4 js -->

<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>

<!-- Popper js -->

<scriptsrc="js/bootstrap/popper.min.js"></script>

<!-- Bootstrap js -->

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

<!-- All Plugins js -->

<scriptsrc="js/plugins/plugins.js"></script>

<!-- Active js -->

<scriptsrc="js/active.js"></script>

</html>

Newll

<?php
$name = '';

$fatherName = '';

$dob = '';

$bloodGroup = '';

$address = '';

$aadhar = '';

$gender = '';

$mobileNumber = '';

$email = '';

$rto = '';

$aadharerr = '';

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

session_start();

require_once('Connection.php');

$name = $_POST['name'];

$fatherName = $_POST['fatherName'];

$dob = $_POST['dob'];

$bloodGroup = $_POST['bloodGroup'];

$address = $_POST['address'];

$aadhar = $_POST['aadhar'];

$gender = $_POST['gender'];

$mobileNumber = $_POST['mobileNumber'];

$email = $_POST['email'];

$rto = $_POST['rto'];

$obj = new Connection();


$db = $obj->getNewConnection();

$q = "select * from ll where aadhar=$aadhar";

$r = $db->query($q);

if ($r->num_rows> 0)

$aadharerr = "Aadhar Number already registered";

else

$Date = date("Y-m-d");

$examDate = date('Y-m-d', strtotime($Date . ' + 15 days'));

$sql = "insert into ll(name, fatherName, dob, bloodGroup, address, aadhar, gender,
mobileNumber, email, rto, status, examDate)

values('$name', '$fatherName', '$dob', '$bloodGroup', '$address', '$aadhar', '$gender',


'$mobileNumber', '$email', '$rto', 0, '$examDate') ";

$res = $db->query($sql);

$sql1 = "select id, status from ll where aadhar='$aadhar'";

$result = $db->query($sql1);

$row = $result->fetch_array();

$id = $row[0];

$status = $row[1];

if ($res)

$_SESSION['rto'] = $rto;

$_SESSION['aadhar'] = $aadhar;

$db->close();

header("Location: llstatus.php");
die();

$db->close();

?>

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>Apply for New Passport</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

</head>

<body>

<?phprequire_once('header.php'); ?>

<br>

<h1 class="text-white text-center font-weight-bold bg-warning" style="font-size: 55px;">


New Passport Registration </h1>

<div class="container"><br>

<div class="col-lg-6 m-auto d-block">

<form method="POST" onSubmit="return validation()" class="bg-light">

<div class="form-group">

<label for="name" class="font-weight-bold"> Enter


Name: </label>
<input type="text" name="name" class="form-control"
id="name" value="<?php echo $name; ?>">

<span id="nameerr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="fatherName" class="font-weight-bold">


Enter Father's Name: </label>

<input type="text" name="fatherName" class="form-


control" id="fatherName" value="<?php echo $fatherName; ?>">

<span id="fatherNameerr" class="text-danger font-


weight-bold"></span>

</div>

<div class="form-group">

<label for="dob" class="font-weight-bold"> Enter DOB:


</label>

<input type="date" name="dob" class="form-control"


id="dob" value="<?php echo $dob; ?>">

<span id="doberr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="bloodGroup" class="font-weight-bold">


Enter Blood Group: </label>

<input type="text" name="bloodGroup" class="form-


control" id="bloodGroup" value="<?php echo $bloodGroup; ?>">

<span id="bloodGrouperr" class="text-danger font-


weight-bold"></span>

</div>

<div class="form-group">
<label for="address" class="font-weight-bold"> Enter
Address: </label>

<input type="text" name="address" class="form-


control" id="address" value="<?php echo $email; ?>">

<span id="addresserr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="aadhar" class="font-weight-bold"> Enter


Aadhar Number: </label>

<input type="text" name="aadhar" class="form-


control" id="aadhar" value="<?php echo $aadhar; ?>">

<span id="aadharerr" class="text-danger font-weight-


bold"><?php echo $aadharerr; ?></span>

</div>

<div class="form-group">

<label for="gender" class="font-weight-bold"> Enter


Gender: </label>

<input type="text" name="gender" class="form-


control" id="gender" value="<?php echo $gender; ?>">

<span id="gendererr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="mobileNumber" class="font-weight-bold">


Enter Mobile Number: </label>

<input type="number" name="mobileNumber"


class="form-control" id="mobileNumber" value="<?php echo $mobileNumber; ?>">

<span id="mobileNumbererr" class="text-danger font-


weight-bold"></span>
</div>

<div class="form-group">

<label for="email" class="font-weight-bold"> Enter


Email ID: </label>

<input type="email" name="email" class="form-


control" id="email" value="<?php echo $email; ?>">

<span id="emailerr" class="text-danger font-weight-


bold"></span>

</div>

<div class="form-group">

<label for="rto" class="font-weight-bold"> Enter


Passport Office: </label>

<input type="text" name="rto" class="form-control"


id="rto" value="<?php echo $rto; ?>">

<span id="rtoerr" class="text-danger font-weight-


bold"></span>

</div>

<center><input type="submit" name="submit" value="SUBMIT" class="btnbtn-


success"><center>

</form>

<br>

</div>

</div>

<script type="text/javascript">

function validation() {

var name = document.getElementById('name').value;

varfatherName = document.getElementById('fatherName').value;

vardob = document.getElementById('dob').value;

varbloodGroup = document.getElementById('bloodGroup').value;
var address = document.getElementById('address').value;

varaadhar = document.getElementById('aadhar').value;

var gender = document.getElementById('gender').value;

varmobileNumber = document.getElementById('mobileNumber').value;

var email = document.getElementById('email').value;

varrto = document.getElementById('rto').value;

if (name == "") {

document.getElementById('nameerr').innerHTML =" ** Please fill the name field";

return false;

if (fatherName == "") {

document.getElementById('fatherNameerr').innerHTML =" ** Please fill the fatherName


field";

return false;

if (dob == "") {

document.getElementById('doberr').innerHTML =" ** Please fill the dob field";

return false;

if (bloodGroup == "") {

document.getElementById('bloodGrouperr').innerHTML =" ** Please fill the bloodGroup


field";

return false;

if (address == "") {

document.getElementById('addresserr').innerHTML =" ** Please fill the address field";

return false;
}

if (aadhar == "") {

document.getElementById('aadharerr').innerHTML =" ** Please fill the aadhar field";

return false;

else if(aadhar.toString().length != 10) {

document.getElementById('aadharerr').innerHTML =" **
Aadhar No should be of 10 digits";

return false;

if (gender == "") {

document.getElementById('gendererr').innerHTML =" ** Please fill the gender field";

return false;

if (mobileNumber == "") {

document.getElementById('mobileNumbererr').innerHTML =" ** Please fill the


mobileNumber field";

return false;

if (email == "") {

document.getElementById('emailerr').innerHTML =" ** Please fill the email field";

return false;

if (rto == "") {

document.getElementById('rtoerr').innerHTML =" ** Please fill the rto field";

return false;

}
}

</script>

<?phprequire_once('footer.php'); ?>

<!-- ##### All Javascript Script ##### -->

<!-- jQuery-2.2.4 js -->

<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>

<!-- Popper js -->

<scriptsrc="js/bootstrap/popper.min.js"></script>

<!-- Bootstrap js -->

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

<!-- All Plugins js -->

<scriptsrc="js/plugins/plugins.js"></script>

<!-- Active js -->

<scriptsrc="js/active.js"></script>

</body>

</html>

Showll

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>Show Passport</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

</head>
<body>

<?phprequire_once('header.php'); ?>

<div class="row">

<div class="col-lg-6 m-auto d-block">

<ul class="list-group">

<?php

error_reporting(0);

session_start();

require_once('Connection.php');

$llno = $_SESSION['llno'];

$aadhar = $_SESSION['aadhar'];

$obj = new Connection();

$db = $obj->getNewConnection();

$sql = "select * from ll where llno=$llno AND aadhar=$aadhar";

$res = $db->query($sql);

$row = $res->fetch_assoc();

$llno = $row['llno'];

$name = $row['name'];

$fatherName = $row['fatherName'];

$dob = $row['dob'];

$bloodGroup = $row['bloodGroup'];

$address = $row['address'];

$aadhar = $row['aadhar'];

$validity = $row['validity'];

$issueDate = $row['issueDate'];

print("<li class='list-group-item text-muted' contenteditable='false'>Passport</li>


<li class='list-group-item text-right'><span class='pull-left'><strong class=''>Passport
Number:</strong></span>$llno</li>

<li class='list-group-item text-right'><span class='pull-left'><strong


class=''>Name:</strong></span>$name</li>

<li class='list-group-item text-right'><span class='pull-left'><strong class=''>Aadhar


Number:</strong></span>$aadhar</li>

<li class='list-group-item text-right'><span class='pull-left'><strong class=''>Father's


Name:</strong></span>$fatherName</li>

<li class='list-group-item text-right'><span class='pull-left'><strong


class=''>DOB:</strong></span>$dob</li>

<li class='list-group-item text-right'><span class='pull-left'><strong class=''>Blood


Group:</strong></span>$bloodGroup</li>

<li class='list-group-item text-right'><span class='pull-left'><strong


class=''>Address:</strong></span>$address</li>

<li class='list-group-item text-right'><span class='pull-left'><strong class=''>Issue


Date:</strong></span>$issueDate</li>

<li class='list-group-item text-right'><span class='pull-left'><strong


class=''>Validity:</strong></span>$validity</li>

");

session_destroy();

$db->close();

?>

</ul>

</div>

</div>

<?phprequire_once('footer.php'); ?>

<!-- ##### All Javascript Script ##### -->

<!-- jQuery-2.2.4 js -->


<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>

<!-- Popper js -->

<scriptsrc="js/bootstrap/popper.min.js"></script>

<!-- Bootstrap js -->

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

<!-- All Plugins js -->

<scriptsrc="js/plugins/plugins.js"></script>

<!-- Active js -->

<scriptsrc="js/active.js"></script>

</body>

</html>

Viewlldata

<?php

session_start();

$loggedin = $_SESSION['loggedin'];

if ($loggedin == 0)

header("Location: adminLogin.php");

session_destroy();

die();

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

{
header("Location: adminPanel.php");

die();

require_once('Connection.php');

$obj = new Connection();

$db = $obj->getNewConnection();

$sql = "select * from ll";

$res = $db->query($sql);

if (isset($_POST['action']) &&isset($_POST['id'])) {

if ($_POST['action'] == 'Edit') {

$_SESSION['aadhar'] = $_POST['id'];

header('Location: editllData.php');

die();

?>

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>View Passport Data</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

</head>

<body>
<?phprequire_once('header.php'); ?>

<h1 class="text-white text-center font-weight-bold bg-warning" style="font-size: 55px;">


View Passport Data </h1>

<form method="post">

<table class="table">

<thead>

<tr>

<th scope="col">Aadhar Number</th>

<th scope="col">Passport No</th>

<th scope="col">Name</th>

</tr>

</thead>

<tbody>

<?php while ($row = $res->fetch_assoc()) : ?>

<tr>

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

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

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

<th scope="col"> Edit</th>

<td>

<form method="post">

<input type="submit" name="action" value="Edit"/>

<input type="hidden" name="id" value="<?php echo $row['aadhar']; ?>"/>

</form>

</td>

</tr>
<?phpendwhile; ?>

</table>

</form>

<br><br>

<form method="post">

<center><input type="submit" value="Admin Panel" name="adminPanel" class="btnbtn-


danger"></center>

</form>

<br>

<?phprequire_once('footer.php'); ?>

<!-- ##### All Javascript Script ##### -->

<!-- jQuery-2.2.4 js -->

<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>

<!-- Popper js -->

<scriptsrc="js/bootstrap/popper.min.js"></script>

<!-- Bootstrap js -->

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

<!-- All Plugins js -->

<scriptsrc="js/plugins/plugins.js"></script>

<!-- Active js -->

<scriptsrc="js/active.js"></script>

</body>

</html>
SCREENSHOTS

Admin login

Admin panel
View passport data
Edit passport data

New passport registration


Check passport

Check passport status

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy