Emergency Assistance Response System (PHP)
Emergency Assistance Response System (PHP)
ACKNOWLEDGEMENT
We wish to place on record our profound indebtedness and gratitude to all those who
have contributed directly or indirectly to make this project work judicious supervision and
guidance, which helped us on the successful completion of this project a success. At the very
onset, we express our deep gratitude to God Almighty , who sheltered us under his protective
wings and showered on us innumerable blessings throughout the period of this bachelor in
computer science course.
We are thankful to_________________, our principal for providing as with all facilities for
carrying out this project
We wish to express our sincere thanks to EEL Softwares, Thiruvananthapuram for giving
us the opportunity to do this project work. We express our profound gratitude to Mr.Aneesh for
their judicious supervision and guidance, which helped us on the successful completion of this
project.
Last but not the least we thank our parents and friends for their moral support and
encouragement for the successful completion of this project.
1
TRIVANDRUM
Emergency Assistance Response System
ABSTRACT
Emergency Assistance Response system are a web based program developed in PHP with
database MYSQL. The designing part is done with the help of HTML and PHP Designer
program eclipse and dream weaver. The protocol used in this project is HTTP.
This project is aimed at developing an application for the Emergency Department of the city the
system is an application that can be accessed throughout the organization with proper login
provided.
2
TRIVANDRUM
Emergency Assistance Response System
1.INTRODUCTION
This project is aimed at developing an application for the Emergency Department of the city the
system is an application that can be accessed throughout the organization with proper login
provided. This system can be used as an application for Emergency aid services. They are Fire
Force, Police, Ambulance and Hospital. Here Admin gather all this kind of emergency providing
agencies details and register on this project. Then give an individual user account for each
department units. Location wise these services stored in database.
Common People have a toll free number to contact admin, via admin post an emergency incident
on this project. By location near by all needed services got this Incident details and they get
ready for serve.
For Example:
An road accident was happen in Kowdiar . Admin register this case on our project
information via informer. Rapidly this accident news is spread to nearby police station, Fire
force, hospitals and Ambulance service, more than 1 ambulance service got this information but
only 1 can pick this case. Like this police Hospital and Fire force would be alerted. Hospital does
not need to wait for police conformation, because via our Emergency Assistance Response
system Police should involve all cases. So we can rapidly and safely protect a life via this
Project.
3
TRIVANDRUM
Emergency Assistance Response System
2.SYSTEM ANALYSIS
System Analysis refers into the process of examining a situation with the intent of improving it
through better procedures and methods. System Analysis is the process of planning a new
System to either replace or complement an existing system. But before any planning is done the
old system must be thoroughly understood and the requirements determined. System Analysis is
therefore, the process of gathering and interpreting facts, diagnosing problems and using the
information to re-comment improvements in the System. Or in other words, System Analysis
means a detailed explanation or description.
21 Present System
Now we have proper emergency service. But it lies be separately, each units does not
have a connections. So in an emergency situation people be confused to take a proper
decision and get more delay to solve an incident.
Loss of Time
No one be alert Properly
Police miss some cases
Absent of Police Emergency case will be critical
Wastage of time
Delay in processing
Tedious process
4
TRIVANDRUM
Emergency Assistance Response System
In existing method of preparing information, errors are common and much time is required to
spot the errors. A large number of registers have to be retained for permanently keeping the
information. Besides, a large amount of manpower is also needed.
Benifits
o Security of data.
o Ensure data accuracy’s.
o Administrator controls the entire system.
o Reduce the damages of the machines.
o Minimize manual data entry.
o Greater efficiency.
o User friendly and interactive.
o Minimum time required.
o Lower manpower utilization
o Eliminates human error
o The manager need not to worry about the record to be lost or damaged
5
TRIVANDRUM
Emergency Assistance Response System
and effective use of resources. For this project we need to analyse currently which type of easily
over come emergency situation .At that time we found many emergency service system like 101
, 100 , 111 websites. But these websites connect the all common users wuth the company.Thus
when a new application is proposed, it normally goes through a feasibility study before it is
approved for development. The main objective of feasibility study is not to solve the problem but
acquire a sense of its scope.
The main objective of feasibility study is to test the technical, social and economic feasibility of
developing a system. Investing the existing system in the area under investigation and generating
ideas about the new system does this. Feasibility study has been done to gather required
information. Training, experience and commonsense are required for collection of the
information.Here Emergency Assistance Response system we first decided which kind of
language to be used.At that time we compared PHP and ASP.NET.Finally we choosed PHP
because it is an open source server side scripting language.So at in cheap rate we can easily host
this project. Data was gathered and checked for completeness and accuracy. Analyzing the data
involved identification of the components of the system and their inter relationship and
identifying the strength and weakness of the system.
The main points that are considered to prove that the project is technically feasible are:
Economic and Financial analysis is used for evaluating the effectiveness of the candidate system.
My project is technically and operationally feasible. Considering the financial conditions the
system is cost effective also since PHP, MySQL both are free softwares. This feasibility checks
whether the system can be developed with the available funds. This can be done economically
if planned judicially, so it is economically feasible
6
TRIVANDRUM
Emergency Assistance Response System
Design is the only ways that can accurately translate customer registration into finished software
or system. Without software design, the risk of building an unstable system exists. System design
provides the procedural details necessary for implementing the system recommended in the
feasibility study.
7
TRIVANDRUM
Emergency Assistance Response System
3. SYSTEM DESIGN
3.1 Modular Design
In Emergency Assistance Response system main User Modules are:-
Admin
Police Service
Ambulance Service
Fire Force Service
Hospital Servive
Admin Module
Here Admin takes a major role, because a common person does not use this system. They
only inform admin via toll free number admin can register an emergency case, add emergency
cervices add more location like every thing
With each unique username with its password ambulance can login, also monitor case list
nearby happen, pick cases, and monitor other services also
With each unique username with its password hospital can login, also monitor case list
nearby happen, pick cases, and monitor other services also
With each unique username with its password fire force can login, also monitor case list
nearby happen, pick cases, and monitor other services also
With each unique username with its password police can login, also monitor case list
nearby happen, pick cases, and monitor other services also
8
TRIVANDRUM
Emergency Assistance Response System
9
TRIVANDRUM
Emergency Assistance Response System
10
TRIVANDRUM
Emergency Assistance Response System
11
TRIVANDRUM
Emergency Assistance Response System
12
TRIVANDRUM
Emergency Assistance Response System
13
TRIVANDRUM
Emergency Assistance Response System
14
TRIVANDRUM
Emergency Assistance Response System
Database oes
15
TRIVANDRUM
Emergency Assistance Response System
16
TRIVANDRUM
Emergency Assistance Response System
HOSPITAL
LEVEL 0
Responce Request
Request Responce
ADMIN FIREFORCE
Responce Request
POLICE AMBULANCE
17
TRIVANDRUM
Emergency Assistance Response System
LEVEL 1 Admin
login user
Username/password
Login 0.1 Case report 1.2
ADMIN 1 report
invalid
18
TRIVANDRUM
Emergency Assistance Response System
LEVEL 1 USER
login user
USER
(POLICE, Username/password
Login 0.1 Monitor 2.3 report
AMBULANCE
, FIRE FORCE,
HOSPITAL)2 invalid
Case Monitor
19
TRIVANDRUM
Emergency Assistance Response System
Output
Police 0.5.2
user
ADMIN
user
Hospital 0.5.4
Output
user
Output
20
TRIVANDRUM
Emergency Assistance Response System
USER
user
View 0.2.2
report
USER Incident 0.3.1
Output
21
TRIVANDRUM
Emergency Assistance Response System
Login ADMIN
User Register
Case
report
Monitor Case
POLICE
Profil
e
Monitor
Case
AMBULANCE
Profile
Monitor Case
HOSPITAL
FIRE
FORCE Profil
A
e
Profil
e Monitor
Case
Monitor
Case
22
TRIVANDRUM
Emergency Assistance Response System
3.7 UseCase
Register Case
Monitor Case
Approve case
Search Case
Add Location
23
TRIVANDRUM
Emergency Assistance Response System
Profile
Monitor Case
Police
Profile
Monitor Case
Ambulance
24
TRIVANDRUM
Emergency Assistance Response System
Profile
Monitor Case
Hospital
Profile
Monitor Case
Fire Force
25
TRIVANDRUM
Emergency Assistance Response System
4. SYSTEM SPECIFICATIONS
System Analysis refers into the process of examining a situation with the intent of improving it
through better procedures and methods. System Analysis is the process of planning a new
System to either replace or complement an existing system. But before any planning is done the
old system must be thoroughly understood and the requirements determined. System Analysis is
therefore, the process of gathering and interpreting facts, diagnosing problems and using the
information to re-comment improvements in the System. Or in other words, System Analysis
means a detailed explanation or description.
A detailed study of these processes must be made by the various techniques like reviews,
questionnaires etc. The data collected by these sources must be scrutinized to arrive to a
conclusion. The conclusion is an understanding of how the system functions. This system is
called the existing system. Now the existing system is subjected to a close study and the problem
areas are identified. The designer now functions as problem solver and tries to sort out the
difficulties that the enterprise facts. The solutions are given as a proposal, which is the proposed
system. The proposal is then weighed with the existing system analytically and the best one is
selected. The proposal is presented to the user for an endorsement by the user. The proposal is
reviewed on user request and suitable changes are made. This is loop that ends as soon as the
user is satisfied with the proposal.
Preliminary Study is the process of gathering and interpreting facts, using the information for
further studies on the system. Preliminary Study is a problem solving activity that requires
intensive communication between the system users and the system developers. It does various
feasibility studies too.
26
TRIVANDRUM
Emergency Assistance Response System
Operating System: Any HTTP Server (preferably Apache) configured to work with PHP 5(and
above) and MYSQL5.0(and above). PHP Specification: PHP5 or above
Client Specification
Environment: Any DOM supporting browser with JavaScript, CSS, XHTML support with
Flash9 Plug-in installed.
27
TRIVANDRUM
Emergency Assistance Response System
Front end of the project is designed using PHP (PHP Hypertext Preprocessor) and back end is
designed using MySQL. The project can be run in web browsers like Internet Explorer or
Mozilla Firefox.
PHP, which stands for “PHP Hypertext Preprocessor", is a server-side, HTML embedded
scripting language used to create dynamic Web pages. Much of its syntax is borrowed from C,
Java and Perl with some unique features thrown in. The goal of the language is to allow Web
developers to write dynamically generated pages quickly.
PHP is open free software. In its newest version PHP5 strives to give something many users
wanted for the past years, a much improved object-oriented programming functionality. New
PHP version’s newly rebuilt object model brings PHP in line with Java, C++ offering support for
features like overloading, interfaces, private member variables and methods and other OOP
constructions.
PHP is easy to learn similar to other languages of the same use. PHP has a simple syntax that is
quite easy to parse and human friendly. PHP is steady to solve problems today. Many of the
useful functions like opening an Oracle data base and fetching email from an IMAP server are
predefined. In an HTML page, PHP code is enclosed within special PHP tags. When a visitor
opens the page, the server processes the PHP code and then sends the output (not the PHP code
itself) to the visitor's browser.
PHP offers excellent connectivity to many databases including MySQL, Informix, Oracle,
Sybase, Solid, Posture SQL, and Generic ODBC. The popular PHP-MySQL combination (both
are open-source products) is available on almost every UNIX host. Being web-oriented, PHP
PHP is a rather simple language. Much of its syntax is borrowed from C except for dealing .
28
TRIVANDRUM
Emergency Assistance Response System
4.2.2 MYSQL
MySQLis an open source Relational Database Management System that uses Structured Query
Language. Information is stored in "Tables" which can be thought of as the equivalent of Excel
spreadsheets. A single MySQL database can contain many tables at once and store thousands of
individual records. It's fast, reliable and flexible. We can copy MySQL to our PCs and Laptops
PHPand MySQL work extremely well together. MySQL is one of the easiest data bases to
administrators on all platforms and because it is so light weight, it can run on even low powered
PCs. Databases are generally useful arguably the most consistent family of software products.
Unlike other databases its administration is very simple and handy.
MySQL 4 version has introduced some innovation and changes both on the database side and
PHP side.
Earlier versions of the MYSQL lacked some core SQL constructs such as sub selects and foreign
keys. But because of simple licensing nature it become popular among users. MYSQL tables are
of type called MyISAM. The new version of the MYSQL created new types of transaction safe
table into DB and BDB. They impose little over head and slower in action. MySQL allows you
to grant quite fine-grained permission to different users from different client locations. There are
four descending levels of privileges global, database, table and column.
PHPMyAdmin is a web based GUI front end for the MYSQL. We can create databases with
MYSQL by using the create table command. There are a number of data types and functions
available with MYSQL.PHP’s MYSQL and MYSQL improved versions are easy to use,
interaction should have a connection, a database select and query or command that returns a
result identifier.
4.2.3 JAVASCRIPT
29
TRIVANDRUM
Emergency Assistance Response System
like other languages as C++, C#, VB.NET etc. JavaScript is a client side language and it runs on
the client browser. Netscape developed it and because of its simplicity it is one of the most
known scripting languages. However JavaScript can be also used on the server-side.
JavaScript can be used on all most known browsers. It can be easily used to interact with HTML
elements. You can validate text fields, disable buttons, validate forms, or change the background
color of your page. All this is possible with JavaScript. Like each programming language, it
contains variables, arrays, functions, operators, objects and much more which can be help you to
create better scripts for your pages. On the server side you can use JavaScript for example to
manage your database entry. JavaScript code can be inserted directly in the HTML or you can
place it in a separate file with the .js extension and link the web page with the .js file.
Dreamweaver can hide the details of pages' HTML code from the user, making it possible for
non-coders to create web pages and sites. A professional criticism of this approach is that it
produces HTMLpages whose file size and amount of HTML code is much larger than they
should be, which can cause web browsers to perform poorly. This can be particularly true
because the application makes it very easy to create table-based layouts. In addition, some web
site developers have criticized Dreamweaver in the past for producing code that often does not
comply with W3C standards, though this has improved considerably in recent versions.
Dreamweaver 8.0 (the version prior to the recently released 9.0 within CS3) performed poorly on
the Acid2 Test, developed by the Web Standards Project. However, Macromedia has increased
the support for CSS and other ways to lay out a page without tables in later versions of the
application,with the ability to convert tables to layers and vice versa. Dreamweaver allows users
to preview websites in many browsers, provided that they are installed on their computer. It also
has some site management tools, such as the ability to find and replace lines of text or code by
30
TRIVANDRUM
Emergency Assistance Response System
whatever parameters specified across the entire site, and a templatization feature for creating
multiple pages with similar structures. The behaviors panel also enables use of basic JavaScript
without any coding knowledge.
Dreamweaver can use "Extensions" - small programs, which any web developer can write
(usually in HTML and JavaScript). Extensions provide added functionality to the software for
whoever wants to download and install them. Dreamweaver is supported by a large community
of extension developers who make extensions available (both commercial and free) for most web
development tasks from simple rollover effects to full-featured shopping carts.
31
TRIVANDRUM
Emergency Assistance Response System
Careful planning
Investigation of the system and constraint
Design the methods to achieve the change over
Train the staff in the changed phase
Evaluation of change over method
32
TRIVANDRUM
Emergency Assistance Response System
There are several methods for handling the implementation and consequent conversation
from the old to new automated system. The most secure for this conversion is to run the old and
new system in parallel. This method offers high security but the cost for maintaining the two
systems in parallel is very high. Another method is direct cut over the existing system to
automated system. The chance may take place within a week or within a day.
5.2 CODING
Coding is undertaken once the design phase is completed and the design documents have
been successfully reviewed. In coding phase every module identified and specified in the design
document is independently coded and tested. The input to the coding phase is the design
document during the coding phase, we will have the module structure and the module
specification. Therefore the objective of the coding phase is to transform the design of a system.
As given by its module specification, into a high level language code and to unit test this code.
A good software development organization requires their programmers to adhere to some well
defined and standard style of coding is call coding standard. A coding standard has several rules
to be followed during the system. Such as the way variables should be named. The way the code
should be laid out, error detection return conventions, and so forth. Decide the coding standards,
several coding guidelines are also suggested by the software companies. Coding guidelines on
the other hand provide only general suggestions regarding the coding style to be followed and
leave the actual implementation of these to the discretion of the individual engineer.
33
TRIVANDRUM
Emergency Assistance Response System
6. SYSTEM TESTING
6.1 PURPOSE
Software Testing is a critical element of software quality assurance and represents the
ultimate review of specification, design and code generation. System testing is the stage of
implementation, which is aimed at ensuring that the system works accurately and efficiently
before live operation commences.
6.2 QUALITY
Testing is the major quality measure employed during the software development. After the
coding phase, computer programs available are executed for testing purpose. Testing not only has to
uncover errors introduced during coding, but also locates errors committed during the previous
phase. Thus the aim of testing is to uncover requirements, design or coding errors in the program.
Testing is a process of executing a program with the intention of finding an error.
A good test case is one that has a highest probability of finding an as yet undiscovered
error.
A successful test is one that uncovers an as yet undiscovered error.
Our objective is to design tests that systematically uncover different classes of errors and to do so
with minimum amount of time and effort. Testing demonstrate that software functions appear to
be working according to specification, that performance requirements appear to have been met.
Data collected as testing is conducted provide a good indication of software reliability and some
indication of software quality as a whole. But there is one thing that testing cannot do: testing
cannot show the absence of defects it can only show that software defects as present.
In this testing we test each module individual and integrated the overall system. Unit
testing focuses verification efforts on the smallest unit of software design in the module. This is
also known as ‘module’ testing. The modules of the system are testing separately. This testing is
34
TRIVANDRUM
Emergency Assistance Response System
carried out during programming stage itself. In this testing step each module is found to be
validation checks for verifying the data input given the user which both the formal and validity
of the entered. It is very easy to find error and debug the system.
35
TRIVANDRUM
Emergency Assistance Response System
Data security is the means of ensuring that data is kept safe from corruption and that
access to it is suitably controlled. Thus data security helps to ensure privacy. It also helps in
protecting personal data.
Software based security solutions encrypt the data to prevent data from being stolen.
However a malicious program for hacker may corrupt the data in order to make it unrecoverable
or unusable. Similarly, encrypted operating system can corrupt by a malicious program or a
hacker, making the system unusable. Hardware based security solution can prevent lead and
write access to data and hence offers very strong protection against tampering and unauthorized
access.
In Emergency Assistances Response system, there is a link in the home page. The
administrator page is secured using password and login name and. The password is in encrypted
form. Since only the administrator has only the power to handle the database. Registered users
can access the site.
36
TRIVANDRUM
Emergency Assistance Response System
8. CONCLUSION
We are much delighted and relieved with the successful completion of our project. We have
made a small attempt in developing a computer based solution for private institution
management. This has helped us immensely in understanding the basic principles behind the
operations involved within anserver programming environment. It has enabled us to learn in
depth the server programming with the php language. Virtually no technique for protecting
digital assets is impregnable to attacks from determined hackers. Our software is no exception to
this fact. Still, we are able to prevent unauthorized access through user authentication before
using the software. Under standard testing conditions, the Emergency Assistance Response
system .software ( Emergency Assistance Response system is found to be working
satisfactorily and no serious errors were spotted. The online software has been exposed to strict
testing mechanisms and we are pretty happy that it achieved reasonable scores in all of them. No
serious errors were spotted till date. We do realize that this is an overconfident claim but we stick
to our point rigidly because we sincerely feel that we would be excused on any minute errors due
to the complication associated with the PHP programming environment and the fact that we are
beginners in PHP Programming.
37
TRIVANDRUM
Emergency Assistance Response System
9. FUTURE ENHANCEMENT
The Emergency Assistance Response system project that we have made presently
carries out only the very basic needs of Emergency Service software. When coming to future
enhancements, the fields like Users and Admin management with the help of Digital signature,
Android App, Powerful Search Facility based on various Search Criteria, etc; are yet to be
implemented which are essential for future institution management systems. Bearing these
facts in mind, we would like to put forward some of the desirable features for our software in
the long run. We may at a later stage, incorporate more stringent measures such as Adding
Reference Books and Android App. The Online software is designed in such a way that a
programmer would find it very easy for implementing it. If the choicest blessings of the
ALMIGHTY allows, we would surely be successful for incorporating these features at the
earliest.
38
TRIVANDRUM
Emergency Assistance Response System
10. APPENDIX
10.1 FORTNIGHTLY REPORT
DFD
Design: Database
Started coding
Completed coding
Completeddocumentation and
implementation
39
TRIVANDRUM
Emergency Assistance Response System
System
Analysis
System
Design
Coding
Final
Testing
Implementation
Completed Incompleted
work work
40
TRIVANDRUM
Emergency Assistance Response System
Minutes 1
DATE:
TIME: 9.30am-3.30pm
PRESENT
SUMMARY
NEXT MEETING
On
Started the design of the project
Will begin the concept of different HTML fonts
41
TRIVANDRUM
Emergency Assistance Response System
Minutes 2
DATE:
TIME: 9.30am-3.30pm
PRESENT
SUMMARY
NEXT MEETING
On
To complete coding and testing, start final test.
42
TRIVANDRUM
Emergency Assistance Response System
Minutes 3
DATE:
TIME: 9.30am-3.30pm
PRESENT
NEXT MEETING
On
To complete final testing , implementation and documentation
43
TRIVANDRUM
Emergency Assistance Response System
Minutes 4
DATE:
TIME: 9.30am-3.30pm
PRESENT
44
TRIVANDRUM
Emergency Assistance Response System
45
TRIVANDRUM
Emergency Assistance Response System
46
TRIVANDRUM
Emergency Assistance Response System
47
TRIVANDRUM
Emergency Assistance Response System
48
TRIVANDRUM
Emergency Assistance Response System
49
TRIVANDRUM
Emergency Assistance Response System
50
TRIVANDRUM
Emergency Assistance Response System
51
TRIVANDRUM
Emergency Assistance Response System
10.5 CODE
Index.php
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
</div>
52
TRIVANDRUM
Emergency Assistance Response System
<div id="header_right">
<div id="twitter">
</div>
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('menu.php');
?>
<div id="content_wrapper">
53
TRIVANDRUM
Emergency Assistance Response System
<div id="content_left">
<div class="content_box">
<p>Kerala Institute of Medical Sciences , one of Asia's leading tertiary care hospitals, is
a landmark healthcare destination in Kerala initiated by Healthcare Management Ltd. The 600
bed multi disciplinary super speciality hospital was started with the objective of providing world
class healthcare services and specialized medical facilities at affordable costs. </p>
<p> </p>
<p><center>
</center></p>
<p> </p>
<p>our strength is the team of highly qualified, well experienced senior consultants who
are ably supported by high calibre nursing professionals and paramedical staff. With the focus on
delivering most modern healthcare</p>
<p align="justify"> </p>
<p> </p>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
<?php
54
TRIVANDRUM
Emergency Assistance Response System
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
Process.php
<?php
session_start();
$UserName=$_POST['uname'];
$Password=$_POST['pword'];
55
TRIVANDRUM
Emergency Assistance Response System
$type=$_POST['type'];
include('link.php');
if($type=="Admin")
$result = mysql_query($sql,$con);
$records = mysql_num_rows($result);
$row = mysql_fetch_array($result);
if ($records==0)
else
$_SESSION['user']='Admin';
header("location: admin/index.php");
56
TRIVANDRUM
Emergency Assistance Response System
//end of admin
elseif($type=="FireForce")
$result = mysql_query($sql,$con);
$records = mysql_num_rows($result);
$row = mysql_fetch_array($result);
if ($records==0)
else
$_SESSION['did']=$row['1'];
header("location: FireForce/index.php");
//end of FireForce
57
TRIVANDRUM
Emergency Assistance Response System
elseif($type=="Hospital")
$result = mysql_query($sql,$con);
$records = mysql_num_rows($result);
$row = mysql_fetch_array($result);
if ($records==0)
else
$_SESSION['did']=$row['1'];
header("location: Hospital/index.php");
//end of Hospital
58
TRIVANDRUM
Emergency Assistance Response System
elseif($type=="Police")
$result = mysql_query($sql,$con);
$records = mysql_num_rows($result);
$row = mysql_fetch_array($result);
if ($records==0)
else
$_SESSION['did']=$row['1'];
header("location: Police/index.php");
//end of Police
elseif($type=="Ambulance")
59
TRIVANDRUM
Emergency Assistance Response System
$result = mysql_query($sql,$con);
$records = mysql_num_rows($result);
$row = mysql_fetch_array($result);
if ($records==0)
else
$_SESSION['did']=$row['1'];
header("location: Ambulance/index.php");
//end of Ambulance
?>
60
TRIVANDRUM
Emergency Assistance Response System
Add locpro.php
<?php
include('link.php');
$Name=$_POST['docname'];
$spl=$_POST['spl'];
// execute query
$qry=mysql_query ($sql,$con);
if($qry)
header('Location: doctor.php?process=sucess');
else
header('Location: doctor.php?process=failed');
61
TRIVANDRUM
Emergency Assistance Response System
mysql_close ($con);
?>
Adduser.php
<?php
session_start();
$uname=$_POST['uname'];
$pword=$_POST['pword'];
$dep=$_POST['dep'];
$name=$_POST['name'];
$phone=$_POST['phone'];
$loc=$_POST['loc'];
include('link.php');
//if($dep=="FireForce")
//{
$result = mysql_query($sql,$con);
$records = mysql_num_rows($result);
if ($records==0)
62
TRIVANDRUM
Emergency Assistance Response System
$sql1 = "INSERT INTO `users` (`did`, `name`, `phone`, `location`, `department`, `status`)
VALUES (NULL, '".$name."', '".$phone."', '".$loc."', '".$dep."', '1');";
$result1 = mysql_query($sql1,$con);
$qry3= mysql_query($sel);
$row= mysql_fetch_array($qry3);
$sql2 = "INSERT INTO `login` (`did`, `uname`, `pword`, `type`) VALUES ('".$row['did']."', '".
$uname."', '".$pword."', '".$dep."');";
$result2 = mysql_query($sql2,$con);
else
else
63
TRIVANDRUM
Emergency Assistance Response System
//}
//end of FireForce
/*
elseif($dep=="Hospital")
$result = mysql_query($sql,$con);
$records = mysql_num_rows($result);
$row = mysql_fetch_array($result);
if ($records==0)
else
64
TRIVANDRUM
Emergency Assistance Response System
header("location: Hospital/index.php");
//end of Hospital
elseif($dep=="PoliceStation")
$result = mysql_query($sql,$con);
$records = mysql_num_rows($result);
$row = mysql_fetch_array($result);
if ($records==0)
else
65
TRIVANDRUM
Emergency Assistance Response System
header("location: Police/index.php");
//end of Police
elseif($dep=="Ambulance")
$result = mysql_query($sql,$con);
$records = mysql_num_rows($result);
$row = mysql_fetch_array($result);
if ($records==0)
else
header("location: Ambulance/index.php");
66
TRIVANDRUM
Emergency Assistance Response System
//end of Ambulance
*/
?>
Repprocess.php
<?php
session_start();
$incident=$_GET['incident'];
$description=$_GET['description'];
$loc=$_GET['loc'];
$landmark=$_GET['landmark'];
$repnum=$_GET['repnum'];
$connum=$_GET['connum'];
$conperson=$_GET['conperson'];
$bood=$_GET['bood'];
67
TRIVANDRUM
Emergency Assistance Response System
$dor=$_GET['dor'];
if(isset($_GET['Ambulance'])){$ambulance=$_GET['Ambulance'];}else{$ambulance="0";}
if(isset($_GET['FireForce'])){$fireforce=$_GET['FireForce'];}else{$fireforce="0";}
if(isset($_GET['Hospital'])){$hospital=$_GET['Hospital'];}else{$hospital="0";}
if(isset($_GET['Police'])){$police=$_GET['Police'];}else{$police="0";}
include('link.php');
//if($dep=="FireForce")
//{
$result1 = mysql_query($sql1,$con);
//$qry3= mysql_query($sel);
//$row= mysql_fetch_array($qry3);
//$sql2 = "INSERT INTO `login` (`did`, `uname`, `pword`, `type`) VALUES ('".$row['did']."', '".
$uname."', '".$pword."', '".$dep."');";
//$result2 = mysql_query($sql2,$con);
if($result1)
68
TRIVANDRUM
Emergency Assistance Response System
else
?>
Link.php
<?php
// Select Database
mysql_select_db("oes", $con);
?>
Monitor.php (admin)
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
69
TRIVANDRUM
Emergency Assistance Response System
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
<div id="header_right">
<div id="twitter">
</div>
<div class="cleaner"></div>
70
TRIVANDRUM
Emergency Assistance Response System
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('menu.php');
?>
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
<h2>Welcome Admin</h2>
<div id="auto"></div>
71
TRIVANDRUM
Emergency Assistance Response System
<script type="text/javascript">
$(document).ready( function(){
$('#auto').load('load.php');
refresh();
});
function refresh()
setTimeout( function() {
$('#auto').load('load.php');
refresh();
}, 1000);
</script>
<p> </p>
<p> </p>
<p></p>
<h2 align="justify"> </h2>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
<?php
72
TRIVANDRUM
Emergency Assistance Response System
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
Monitor.php (police)
73
TRIVANDRUM
Emergency Assistance Response System
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
<div id="header_right">
<div id="twitter">
</div>
74
TRIVANDRUM
Emergency Assistance Response System
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('link.php');
session_start();
include('menu.php');
$sql= mysql_query($qry);
$row= mysql_fetch_array($sql);
?>
<div id="content_wrapper">
75
TRIVANDRUM
Emergency Assistance Response System
<div id="content_left">
<div class="content_box">
<div id="auto"></div>
<script type="text/javascript">
$(document).ready( function(){
$('#auto').load('load.php');
refresh();
});
function refresh()
setTimeout( function() {
$('#auto').load('load.php');
refresh();
}, 1000);
</script>
<p> </p>
76
TRIVANDRUM
Emergency Assistance Response System
<p> </p>
<p></p>
<h2 align="justify"> </h2>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
<?php
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
77
TRIVANDRUM
Emergency Assistance Response System
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
Monitor.php (Hospital)
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
78
TRIVANDRUM
Emergency Assistance Response System
<div id="site_title">
<div id="header_right">
<div id="twitter">
</div>
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('link.php');
session_start();
79
TRIVANDRUM
Emergency Assistance Response System
include('menu.php');
$sql= mysql_query($qry);
$row= mysql_fetch_array($sql);
?>
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
<div id="auto"></div>
<script type="text/javascript">
$(document).ready( function(){
$('#auto').load('load.php');
refresh();
});
function refresh()
80
TRIVANDRUM
Emergency Assistance Response System
setTimeout( function() {
$('#auto').load('load.php');
refresh();
}, 1000);
</script>
<p> </p>
<p> </p>
<p></p>
<h2 align="justify"> </h2>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
<?php
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
81
TRIVANDRUM
Emergency Assistance Response System
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
Monitor.php(fireforce)
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
82
TRIVANDRUM
Emergency Assistance Response System
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
<div id="header_right">
<div id="twitter">
</div>
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
83
TRIVANDRUM
Emergency Assistance Response System
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('link.php');
session_start();
include('menu.php');
$sql= mysql_query($qry);
$row= mysql_fetch_array($sql);
?>
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
84
TRIVANDRUM
Emergency Assistance Response System
<div id="auto"></div>
<script type="text/javascript">
$(document).ready( function(){
$('#auto').load('load.php');
refresh();
});
function refresh()
setTimeout( function() {
$('#auto').load('load.php');
refresh();
}, 1000);
</script>
<p> </p>
<p> </p>
<p></p>
<h2 align="justify"> </h2>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
85
TRIVANDRUM
Emergency Assistance Response System
<?php
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
Monitor.php(Ambulance)
86
TRIVANDRUM
Emergency Assistance Response System
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
<div id="header_right">
87
TRIVANDRUM
Emergency Assistance Response System
<div id="twitter">
</div>
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('link.php');
session_start();
include('menu.php');
$sql= mysql_query($qry);
$row= mysql_fetch_array($sql);
?>
88
TRIVANDRUM
Emergency Assistance Response System
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
<div id="auto"></div>
<script type="text/javascript">
$(document).ready( function(){
$('#auto').load('load.php');
refresh();
});
function refresh()
setTimeout( function() {
$('#auto').load('load.php');
refresh();
}, 1000);
89
TRIVANDRUM
Emergency Assistance Response System
</script>
<p> </p>
<p> </p>
<p></p>
<h2 align="justify"> </h2>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
<?php
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
<div id="templatemo_copyright">
<?php
include('footer.php');
90
TRIVANDRUM
Emergency Assistance Response System
?>
</div>
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
Profile .php
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
91
TRIVANDRUM
Emergency Assistance Response System
<div id="templatemo_header">
<div id="site_title">
<div id="header_right">
<div id="twitter">
</div>
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
92
TRIVANDRUM
Emergency Assistance Response System
include('link.php');
session_start();
include('menu.php');
$sql= mysql_query($qry);
$row= mysql_fetch_array($sql);
?>
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
<tr>
<label for="catname"></label>
93
TRIVANDRUM
Emergency Assistance Response System
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
<?php
94
TRIVANDRUM
Emergency Assistance Response System
if(isset($_GET['ph']))
{?>
<?php }
else { ?>
<?php } ?>
</div></th>
</tr>
<tr>
<label for="catname"></label>
<?php
95
TRIVANDRUM
Emergency Assistance Response System
if(isset($_GET['pw']))
{?>
<?php }
else { ?>
<?php } ?>
</div></th>
</tr>
</table>
<p> </p>
<!--
<label for="search"></label>
<?php
96
TRIVANDRUM
Emergency Assistance Response System
if(isset($_GET['search']))
?>
<?php
?>
</form>
<p> </p>
<tr>
</tr>
<?php
include('link.php');
if(!isset($_GET['search']))
else
97
TRIVANDRUM
Emergency Assistance Response System
$ab=mysql_query($a);
while($abc=mysql_fetch_array($ab))
echo "<tr>";
echo "<td>".$abc['did']."</td>
<td>".$abc['name']."</td>
<td>".$abc['spl']."</td>
echo "</tr>";
?>
</table>-->
98
TRIVANDRUM
Emergency Assistance Response System
<p> </p>
<p> </p>
<p></p>
<h2 align="justify"> </h2>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
<?php
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
99
TRIVANDRUM
Emergency Assistance Response System
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>EARs Template</title>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
100
TRIVANDRUM
Emergency Assistance Response System
<div id="header_right">
<div id="twitter">
</div>
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('link.php');
session_start();
include('menu.php');
101
TRIVANDRUM
Emergency Assistance Response System
$sql= mysql_query($qry);
$row= mysql_fetch_array($sql);
?>
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
102
TRIVANDRUM
Emergency Assistance Response System
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
<?php
if(isset($_GET['ph']))
{?>
103
TRIVANDRUM
Emergency Assistance Response System
<?php }
else { ?>
<?php } ?>
</div></th>
</tr>
<tr>
<label for="catname"></label>
<?php
if(isset($_GET['pw']))
{?>
104
TRIVANDRUM
Emergency Assistance Response System
<?php }
else { ?>
<?php } ?>
</div></th>
</tr>
</table>
<p> </p>
<!--
<label for="search"></label>
<?php
if(isset($_GET['search']))
?>
105
TRIVANDRUM
Emergency Assistance Response System
<?php
?>
</form>
<p> </p>
<tr>
</tr>
<?php
include('link.php');
if(!isset($_GET['search']))
else
$ab=mysql_query($a);
106
TRIVANDRUM
Emergency Assistance Response System
while($abc=mysql_fetch_array($ab))
echo "<tr>";
echo "<td>".$abc['did']."</td>
<td>".$abc['name']."</td>
<td>".$abc['spl']."</td>
echo "</tr>";
?>
</table>-->
<p> </p>
<p> </p>
<p></p>
107
TRIVANDRUM
Emergency Assistance Response System
<h2 align="justify"> </h2>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
<?php
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
<div class="cleaner"></div>
</div>
108
TRIVANDRUM
Emergency Assistance Response System
</div>
</body>
</html>
<?php
session_start();
include('link.php');
$id=$_GET['id'];
$ok=mysql_query($change,$con);
if($ok)
header('Location: profile.php?process=sucess');
else
header('Location: profile.php?process=failed');
?>
109
TRIVANDRUM
Emergency Assistance Response System
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>EARs Template</title>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
<div id="header_right">
<div id="twitter">
</div>
110
TRIVANDRUM
Emergency Assistance Response System
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('menu.php');
?>
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
<h2>Welcome Admin</h2>
111
TRIVANDRUM
Emergency Assistance Response System
<tr>
<label for="catname"></label>
<option value="FireForce">FireForce</option>
<option value="Hospital">Hospital</option>
<option value="Police">PoliceStation</option>
<option value="Ambulance">Ambulance</option>
</select>
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
112
TRIVANDRUM
Emergency Assistance Response System
<tr>
<label for="catname"></label>
<option value="0">--Select--</option>
<option value="Thycadu">Thycadu</option>
<option value="Sasthamangalam">Sasthamangalam</option>
<option value="Vattiyurkavu">Vattiyurkavu</option>
<option value="Kowdiar">Kowdiar</option>
<option value="Peroorkada">Peroorkada</option>
<option value="Kudappanakunnu">Kudappanakunnu</option>
<option value="Pattom">Pattom</option>
<option value="Ulloor">Ulloor</option>
<option value="Cheruvaikal">Cheruvaikal</option>
<option value="Attipra">Attipra</option>
<option value="Kadakampalli">Kadakampalli</option>
<option value="Pettah">Pettah</option>
<option value="Vanchiyur">Vanchiyur</option>
<option value="Muttathara">Muttathara</option>
<option value="Manacaud">Manacaud</option>
<option value="Thiruvallam">Thiruvallam</option>
<option value="Nemom">Nemom</option>
<option value="Thirumala">Thirumala</option>
</select>
113
TRIVANDRUM
Emergency Assistance Response System
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
114
TRIVANDRUM
Emergency Assistance Response System
</div></th>
</tr>
</table>
<p> </p>
</form>
<!--
<label for="search"></label>
<?php
if(isset($_GET['search']))
?>
<?php
?>
</form>
<p> </p>
<tr>
115
TRIVANDRUM
Emergency Assistance Response System
</tr>
<?php
include('link.php');
if(!isset($_GET['search']))
else
$ab=mysql_query($a);
while($abc=mysql_fetch_array($ab))
echo "<tr>";
echo "<td>".$abc['did']."</td>
<td>".$abc['name']."</td>
<td>".$abc['spl']."</td>
116
TRIVANDRUM
Emergency Assistance Response System
echo "</tr>";
?>
</table>-->
<p> </p>
<p> </p>
<p></p>
<h2 align="justify"> </h2>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
<?php
include('side.php');
?>
117
TRIVANDRUM
Emergency Assistance Response System
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
118
TRIVANDRUM
Emergency Assistance Response System
<title>EARs Template</title>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
<div id="header_right">
<div id="twitter">
</div>
<div class="cleaner"></div>
119
TRIVANDRUM
Emergency Assistance Response System
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('menu.php');
?>
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
<h2>Welcome Admin</h2>
120
TRIVANDRUM
Emergency Assistance Response System
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
<p>
<label>
FireForce</label>
<br />
121
TRIVANDRUM
Emergency Assistance Response System
<label>
Hospital</label>
<br />
<label>
Ambulance</label>
<br />
<label>
Police</label>
<br />
</p>
</div></th>
</tr>
<tr>
<label for="catname"></label>
<option value="0">--Select--</option>
<option value="Thycadu">Thycadu</option>
<option value="Sasthamangalam">Sasthamangalam</option>
<option value="Vattiyurkavu">Vattiyurkavu</option>
122
TRIVANDRUM
Emergency Assistance Response System
<option value="Kowdiar">Kowdiar</option>
<option value="Peroorkada">Peroorkada</option>
<option value="Kudappanakunnu">Kudappanakunnu</option>
<option value="Pattom">Pattom</option>
<option value="Ulloor">Ulloor</option>
<option value="Cheruvaikal">Cheruvaikal</option>
<option value="Attipra">Attipra</option>
<option value="Kadakampalli">Kadakampalli</option>
<option value="Pettah">Pettah</option>
<option value="Vanchiyur">Vanchiyur</option>
<option value="Muttathara">Muttathara</option>
<option value="Manacaud">Manacaud</option>
<option value="Thiruvallam">Thiruvallam</option>
<option value="Nemom">Nemom</option>
<option value="Thirumala">Thirumala</option>
</select>
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
123
TRIVANDRUM
Emergency Assistance Response System
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
124
TRIVANDRUM
Emergency Assistance Response System
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
<tr>
<label for="catname"></label>
</div></th>
</tr>
</table>
<p> </p>
</form>
<!--
125
TRIVANDRUM
Emergency Assistance Response System
<label for="search"></label>
<?php
if(isset($_GET['search']))
?>
<?php
?>
</form>
<p> </p>
<tr>
</tr>
<?php
include('link.php');
if(!isset($_GET['search']))
126
TRIVANDRUM
Emergency Assistance Response System
else
$ab=mysql_query($a);
while($abc=mysql_fetch_array($ab))
echo "<tr>";
echo "<td>".$abc['did']."</td>
<td>".$abc['name']."</td>
<td>".$abc['spl']."</td>
echo "</tr>";
127
TRIVANDRUM
Emergency Assistance Response System
?>
</table>-->
<p> </p>
<p> </p>
<p></p>
<h2 align="justify"> </h2>
<p> </p>
<div class="cleaner"></div>
</div>
</div>
<?php
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
<div id="templatemo_copyright">
128
TRIVANDRUM
Emergency Assistance Response System
<?php
include('footer.php');
?>
</div>
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
<?php
session_start();
$incident=$_GET['incident'];
$description=$_GET['description'];
$loc=$_GET['loc'];
$landmark=$_GET['landmark'];
$repnum=$_GET['repnum'];
$connum=$_GET['connum'];
$conperson=$_GET['conperson'];
$bood=$_GET['bood'];
$dor=$_GET['dor'];
if(isset($_GET['Ambulance'])){$ambulance=$_GET['Ambulance'];}else{$ambulance="0";}
if(isset($_GET['FireForce'])){$fireforce=$_GET['FireForce'];}else{$fireforce="0";}
129
TRIVANDRUM
Emergency Assistance Response System
if(isset($_GET['Hospital'])){$hospital=$_GET['Hospital'];}else{$hospital="0";}
if(isset($_GET['Police'])){$police=$_GET['Police'];}else{$police="0";}
include('link.php');
//if($dep=="FireForce")
//{
$result1 = mysql_query($sql1,$con);
//$qry3= mysql_query($sel);
//$row= mysql_fetch_array($qry3);
//$sql2 = "INSERT INTO `login` (`did`, `uname`, `pword`, `type`) VALUES ('".$row['did']."', '".
$uname."', '".$pword."', '".$dep."');";
//$result2 = mysql_query($sql2,$con);
if($result1)
else
130
TRIVANDRUM
Emergency Assistance Response System
?>
<div id="content_right">
<div class="content_box">
<h2>Doctor's Desk</h2>
<ul id="news_box">
<li>
<h6> </h6>
</li>
</ul>
<div class="cleaner"></div>
</div>
</div>
131
TRIVANDRUM
Emergency Assistance Response System
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>EARs Template</title>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
<div id="header_right">
<div id="twitter">
132
TRIVANDRUM
Emergency Assistance Response System
</div>
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
include('menu.php');
?>
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
133
TRIVANDRUM
Emergency Assistance Response System
<h2>Welcome Admin</h2>
<tr>
</tr>
<tr>
<td valign="top">Age</td>
</tr>
<tr>
<td valign="top">Address</td>
</tr>
<tr>
<td valign="middle">Gender</td>
<tr>
<td><label>
134
TRIVANDRUM
Emergency Assistance Response System
Male</label></td>
</tr>
<tr>
<td><label>
Female</label></td>
</tr>
</table></td>
</tr>
<tr>
</tr>
<tr>
<select name="desi">
<option>Female Nurse</option>
<option>Male Nurse</option>
<option>X-ray Assistent</option>
<option>Cleaner</option>
<option>Front Office</option>
<option>Pharmacist</option>
135
TRIVANDRUM
Emergency Assistance Response System
</select></td>
</tr>
<tr>
</tr>
</table>
</form>
<div class="cleaner"></div>
</div>
</div>
<?php
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
136
TRIVANDRUM
Emergency Assistance Response System
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
<?php
session_start();
include('link.php');
$id=$_GET['id'];
$ok=mysql_query($change,$con);
if($ok)
137
TRIVANDRUM
Emergency Assistance Response System
header('Location: monitor.php?process=sucess');
else
header('Location: monitor.php?process=failed');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>EARs Template</title>
</head>
<body>
<div id="templatemo_main_wrapper">
<div id="templatemo_wrapper">
138
TRIVANDRUM
Emergency Assistance Response System
<div id="templatemo_header">
<div id="site_title">
<div id="header_right">
<div id="twitter">
</div>
<div class="cleaner"></div>
<h1> </h1>
<p> </p>
</div>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<?php
139
TRIVANDRUM
Emergency Assistance Response System
include('menu.php');
?>
<div id="content_wrapper">
<div id="content_left">
<div class="content_box">
<h2>Welcome Admin</h2>
<p>
<?php
if(isset($_POST['emp']))
if(($_POST['emp'])=='Search')
header('location: dview.php?id='.$_POST['emp_id']);
?>
</p>
<?php
if(!isset($_POST['desi']))
140
TRIVANDRUM
Emergency Assistance Response System
?>
<tr>
</tr>
<?php
include('link.php');
$ab=mysql_query($a);
while($abc=mysql_fetch_array($ab))
echo "<tr>";
echo "<td>".$abc['emp_id']."</td>
<td>".$abc['Name']."</td>
<td>".$abc['designation']."</td>
<td>".$abc['mobile']."</td>
141
TRIVANDRUM
Emergency Assistance Response System
echo "</tr>";
?>
</table>
<?php
if(isset($_POST['desi']))
if(($_POST['desi'])=='Search')
?>
<tr>
142
TRIVANDRUM
Emergency Assistance Response System
</tr>
<?php
include('link.php');
$ab=mysql_query($a);
while($abc=mysql_fetch_array($ab))
echo "<tr>";
echo "<td>".$abc['emp_id']."</td>
<td>".$abc['Name']."</td>
<td>".$abc['designation']."</td>
<td>".$abc['mobile']."</td>
echo "</tr>";
143
TRIVANDRUM
Emergency Assistance Response System
?>
</table>
<?php
?>
<p></p>
<div class="cleaner"></div>
</div>
</div>
<?php
include('side.php');
?>
<div class="cleaner"></div>
</div>
<div id="templatemo_footer">
<div class="cleaner"></div>
144
TRIVANDRUM
Emergency Assistance Response System
<div id="templatemo_copyright">
<?php
include('footer.php');
?>
</div>
<div class="cleaner"></div>
</div>
</div>
</body>
</html>
11. BIBLIOGRAPHY
Text Books
Holster, Steven; “PHP: the complete reference”, N.Y. : McGraw-Hill Co. Inc., ©2008.
Sklar, David and Trachtenberg , Adam; “PHP Cookbook, Second Edition”, N.Y. :
O’Reilly Media, Inc., © 2006
Roger S Pressman; “Software Engineering-A practitioners Approach”, Tata McGraw Hill
International Edition.
145
TRIVANDRUM
Emergency Assistance Response System
146
TRIVANDRUM