Full Doc-Passport Tracking System
Full Doc-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
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
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 of hardware and software for the class of application being considered.
• 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.
It is mainly related to human organizations and political aspects. The points to be considered are:
The system is operationally feasible as it very easy for the End users to operate it. It only needs
basic information about Windows platform.
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.
DFD LEVEL 0
DFD LEVEL 1
DFD LEVEL 2
4. SYSTEM DESIGN
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:
Address:
District:
Occupation:Proof:
Browse
MobileNo:
YearofRegistration:Username (Email):Password:
REGISTER
TableName:tblregister
TableName:tblofficerdetails
Purpose:Tostorethe detailsoftheOfficers-in-Charge
TableName:data
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.
HARDWARE REQUIREMENTS
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.
[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'];
$res = $db->query($sql);
if (!$res)
die($db->error);
$row = $res->fetch_assoc();
$db->close();
$_SESSION['loggedin'] = 1;
header("Location: adminPanel.php");
die();
else
print("Invalid credentials");
?>
<!DOCTYPE html>
<html>
<head>
<title>Admin Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<?phprequire_once('header.php'); ?>
<br>
<div class="container"><br>
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
<br>
</div>
</div>
<script type="text/javascript">
function validation() {
if (username == "") {
return false;
if (password == "") {
return false;
</script>
<h1></h1>
<?phprequire_once('footer.php'); ?>
<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>
<scriptsrc="js/bootstrap/popper.min.js"></script>
<scriptsrc="js/bootstrap/bootstrap.min.js"></script>
<scriptsrc="js/plugins/plugins.js"></script>
</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>
<title>Admin Panel</title>
</head>
<body>
<?phprequire_once('header.php'); ?>
<ul class="list-group">
</ul>
<br>
</form>
</div>
<br>
<?phprequire_once('footer.php'); ?>
<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>
<scriptsrc="js/bootstrap/popper.min.js"></script>
<scriptsrc="js/bootstrap/bootstrap.min.js"></script>
<scriptsrc="js/plugins/plugins.js"></script>
<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>
<title>Admin Panel</title>
</head>
<body>
<?phprequire_once('header.php'); ?>
<div class="col-lg-6 m-auto d-block">
<ul class="list-group">
</ul>
<br>
</form>
</div>
<br>
<?phprequire_once('footer.php'); ?>
<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>
<scriptsrc="js/bootstrap/popper.min.js"></script>
<scriptsrc="js/bootstrap/bootstrap.min.js"></script>
<scriptsrc="js/plugins/plugins.js"></script>
<scriptsrc="js/active.js"></script>
</body>
</html>
Confirmll
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?phprequire_once('header.php'); ?>
<div class="row">
<ul class="list-group">
<?php
session_start();
require_once('Connection.php');
$llno = $_SESSION['llno'];
$aadhar = $_SESSION['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'];
");
if (isset($_POST['confirm']))
// die();
// header("Location: checkDLStatus.php");
echo "1";
$Date = date("Y-m-d");
$r = $db->query($q);
echo "2";
$_SESSION['aadhar'] = $aadhar;
$_SESSION['rto'] = $rto;
header("Location: dlstatus.php");
// die();
if (!$r)
$db->error;
$db->close();
echo "1";
echo "1";
?>
</ul>
</div>
</div>
<form method="post">
</form>
<?phprequire_once('footer.php'); ?>
<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>
<scriptsrc="js/bootstrap/bootstrap.min.js"></script>
<scriptsrc="js/plugins/plugins.js"></script>
<scriptsrc="js/active.js"></script>
</body>
</html>
Connection
<?php
class Connection
functiongetNewConnection()
if ($db->connect_error) {
return $db;
}
?>
Editll data
<?php
session_start();
require_once('Connection.php');
$aadhar = $_SESSION['aadhar'];
// echo $aadhar;
// die();
$db = $obj->getNewConnection();
$res = $db->query($sql);
$row = $res->fetch_assoc();
if (isset($_POST['submit']))
$issueDate = $_POST['issueDate'];
$q = "update ll
set name='$name', llno=$llno, fatherName='$fatherName',
$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>
<div class="container"><br>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
<label for="bloodGroup" class="font-weight-bold">
Blood Group: </label>
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
<br>
</div>
</div>
<script type="text/javascript">
function validation() {
if (name == "") {
return false;
varllno = document.getElementById('llno').value;
if (llno == "") {
return false;
}
varfatherName = document.getElementById('fatherName').value;
if (fatherName == "") {
return false;
vardob = document.getElementById('dob').value;
if (dob == "") {
return false;
varbloodGroup = document.getElementById('bloodGroup').value;
if (bloodGroup == "") {
return false;
if (address == "") {
return false;
if (gender == "") {
return false;
}
varmobileNumber = document.getElementById('mobileNumber').value;
if (mobileNumber == "") {
return false;
if (email == "") {
return false;
varrto = document.getElementById('rto').value;
if (rto == "") {
return false;
if (status == "") {
return false;
if (validity == "") {
return false;
}
varissueDate = document.getElementById('issueDate').value;
if (issueDate == "") {
return false;
return true;
</script>
<?phprequire_once('footer.php'); ?>
<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>
<scriptsrc="js/bootstrap/popper.min.js"></script>
<scriptsrc="js/bootstrap/bootstrap.min.js"></script>
<scriptsrc="js/plugins/plugins.js"></script>
<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'];
$r = $db->query($q);
if ($r->num_rows> 0)
else
$Date = date("Y-m-d");
$sql = "insert into ll(name, fatherName, dob, bloodGroup, address, aadhar, gender,
mobileNumber, email, rto, status, examDate)
$res = $db->query($sql);
$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>
</head>
<body>
<?phprequire_once('header.php'); ?>
<br>
<div class="container"><br>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
<label for="address" class="font-weight-bold"> Enter
Address: </label>
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
<br>
</div>
</div>
<script type="text/javascript">
function validation() {
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;
varmobileNumber = document.getElementById('mobileNumber').value;
varrto = document.getElementById('rto').value;
if (name == "") {
return false;
if (fatherName == "") {
return false;
if (dob == "") {
return false;
if (bloodGroup == "") {
return false;
if (address == "") {
return false;
}
if (aadhar == "") {
return false;
document.getElementById('aadharerr').innerHTML =" **
Aadhar No should be of 10 digits";
return false;
if (gender == "") {
return false;
if (mobileNumber == "") {
return false;
if (email == "") {
return false;
if (rto == "") {
return false;
}
}
</script>
<?phprequire_once('footer.php'); ?>
<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>
<scriptsrc="js/bootstrap/popper.min.js"></script>
<scriptsrc="js/bootstrap/bootstrap.min.js"></script>
<scriptsrc="js/plugins/plugins.js"></script>
<scriptsrc="js/active.js"></script>
</body>
</html>
Showll
<!DOCTYPE html>
<html>
<head>
<title>Show Passport</title>
</head>
<body>
<?phprequire_once('header.php'); ?>
<div class="row">
<ul class="list-group">
<?php
error_reporting(0);
session_start();
require_once('Connection.php');
$llno = $_SESSION['llno'];
$aadhar = $_SESSION['aadhar'];
$db = $obj->getNewConnection();
$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'];
");
session_destroy();
$db->close();
?>
</ul>
</div>
</div>
<?phprequire_once('footer.php'); ?>
<scriptsrc="js/bootstrap/popper.min.js"></script>
<scriptsrc="js/bootstrap/bootstrap.min.js"></script>
<scriptsrc="js/plugins/plugins.js"></script>
<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');
$db = $obj->getNewConnection();
$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>
</head>
<body>
<?phprequire_once('header.php'); ?>
<form method="post">
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<form method="post">
</form>
</td>
</tr>
<?phpendwhile; ?>
</table>
</form>
<br><br>
<form method="post">
</form>
<br>
<?phprequire_once('footer.php'); ?>
<scriptsrc="js/jquery/jquery-2.2.4.min.js"></script>
<scriptsrc="js/bootstrap/popper.min.js"></script>
<scriptsrc="js/bootstrap/bootstrap.min.js"></script>
<scriptsrc="js/plugins/plugins.js"></script>
<scriptsrc="js/active.js"></script>
</body>
</html>
SCREENSHOTS
Admin login
Admin panel
View passport data
Edit passport data