0% found this document useful (0 votes)
615 views146 pages

Emergency Assistance Response System (PHP)

Emergency Assistance Response System (PHP)

Uploaded by

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

Emergency Assistance Response System (PHP)

Emergency Assistance Response System (PHP)

Uploaded by

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

Emergency Assistance Response System

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.

We highly obliged to __________ our internal guides from College, Department of


Computer Science, ___________, for being a source of inspiration throughout the course and to
her valuable guidance. We are thankful to all the staffs and members of the Department of
Computer Science for their encouragement and suggestions.

We acknowledge our sincere gratitude to ___________,HOD Department of the Computer


Science, __________for her/his encouragement and suggestions.

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

 The routine manual work is time-consuming

 Difficulties in accessing data because of its clumsy way of storing

 Tedious process

4
TRIVANDRUM
Emergency Assistance Response System

 Accuracy rate is low

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.

2.2 Proposed System


In our present world we need a safe and rapid way of solution for every problem , especially for
oru Emergency Sevice system , In this project Emergency Assistance Response system , we
make a wonderfull network between Emergency serveice , though this we can spread a incident
all around with in second and get ready for serve

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 Automatic and real-time update of database

o Flexibility to introduce new services

o The manager need not to worry about the record to be lost or damaged

2.3  FEASIBILITY ANALYSIS 


Feasibility study In this project Emergency Assistance Response system is a test of a system
proposal, according to its workability, impact on the organization, ability to meet the user needs

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.

2.3.1 TECHNICAL FEASIBILITY:

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:

 The present technology is sufficient to develop the project.


 The proposed system provides adequate response to the user.
 The system can be expanded and developed.
 The project outputs given are reliable and it is easy to access.

  2.3.2 ECONOMICAL FEASIBILTY:

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

2.3.3 OPERATIONAL FEASIBILITY:

There is no difficulty in implementing the system. The Emergency Assistance Response


system proposed system is effective, user friendly and functionally .The user of the system must
be completely unaware of the internal working of the system. So that the users will not face any
problem while running the system. The system thus reduces the responsive time of computer
thereby, the system is found to be operationally feasible.

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

Ambulance service module

With each unique username with its password ambulance can login, also monitor case list
nearby happen, pick cases, and monitor other services also

Hospital service module

With each unique username with its password hospital can login, also monitor case list
nearby happen, pick cases, and monitor other services also

Fire Force service module

With each unique username with its password fire force can login, also monitor case list
nearby happen, pick cases, and monitor other services also

Police service module

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

3.2 INPUT DESIGN

9
TRIVANDRUM
Emergency Assistance Response System

10
TRIVANDRUM
Emergency Assistance Response System

3.3 OUTPUT DESIGN

11
TRIVANDRUM
Emergency Assistance Response System

12
TRIVANDRUM
Emergency Assistance Response System

13
TRIVANDRUM
Emergency Assistance Response System

14
TRIVANDRUM
Emergency Assistance Response System

3.4 DATABASE DESIGN

Database oes

Table structure for table report

Primary key case_id

Column Type Constrains

case_id int(5) Primary

incidence varchar(100) Not Null

description varchar(1000) Not Null

location varchar(50) Not Null

landmark varchar(100) Not Null

in_mob_num bigint(10) Not Null

cont_numb bigint(10) Not Null

cont_person varchar(50) Not Null

blood varchar(10) Not Null

dor varchar(12) Not Null

ambu int(5) Not Null

fireforce int(5) Not Null

hospital int(5) Not Null

police int(5) Not Null

Table structure for table login

15
TRIVANDRUM
Emergency Assistance Response System

Primary key uid

Column Type Constrains

uid int(5) Primary

did int(5) foreign

uname varchar(30) Not Null

pword varchar(30) Not Null

type varchar(20) Not Null

Table structure for table users

Primary key did

Column Type Constrains

did int(5) Primary

name varchar(100) Not Null

phone bigint(12) Not Null

location varchar(100) Not Null

department varchar(50) Not Null

status int(2) Not Null

3.5 DATA FLOW DIAGRAM

16
TRIVANDRUM
Emergency Assistance Response System

HOSPITAL
LEVEL 0

Responce Request

Emergency Assistance Response System

Request Responce
ADMIN FIREFORCE

Responce Request

Request Responce Request


Responce

POLICE AMBULANCE

17
TRIVANDRUM
Emergency Assistance Response System

LEVEL 1 Admin

login user

User register 1.1


Username/password

Username/password
Login 0.1 Case report 1.2
ADMIN 1 report
invalid

Monitor case 1.3

18
TRIVANDRUM
Emergency Assistance Response System

LEVEL 1 USER

login user

Username/password Profile 2.2 Display Profile

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

LEVEL 2 Admin (Monitor case)

Ambulance 0.5.1 user

Output

Police 0.5.2
user
ADMIN

Fire Force 0.5.3 Output

user

Hospital 0.5.4
Output

user

Output

20
TRIVANDRUM
Emergency Assistance Response System

Level 2 of user (Profile)

Update profile 0.2.1

USER
user
View 0.2.2

Level 2 of user (Monitor Case)

report
USER Incident 0.3.1

Output

21
TRIVANDRUM
Emergency Assistance Response System

3.6 Menu Tree


EARs – (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

Use Case Diagram For Admin

Register Case

Monitor Case

Approve case

Search Case

Admin Add Services

Add Location

23
TRIVANDRUM
Emergency Assistance Response System

Use Case Diagram For Police

Profile

Monitor Case

Police

Use Case Diagram For Ambulance

Profile

Monitor Case

Ambulance

24
TRIVANDRUM
Emergency Assistance Response System

Use Case Diagram For Hospital

Profile

Monitor Case

Hospital

Use Case Diagram For Fire Force

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

4.1. SOFTWARE SPECIFICATION


Server Specification

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.

Graphical Tools: PhotoShop

Server Environment: WAMP

Development Tool: Sublime text 

4.2 HARDWARE SPECIFICATION


The hardware configuration required for the proper functioning of the system can be outlined as
below: - 

Processor                                                :           Intel Pentium III or above

Processor Speed                                    :           1GHz & above

RAM                                                     :           256 MB & above

Hard Disk Capacity                               :          20GB & above

Monitor                                                  :           SVGA Color Monitor

Modem                                                   :          56.6 kbps internal/external

Keyboard            :         Multimedia Keyboard 

27
TRIVANDRUM
Emergency Assistance Response System

4.2 SELECTION OF SOFTWARE


4.2.1 PHP

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

JavaScript is a scripting language used in many websites. A scripting language is a language,


which is easy and fast to learn. A scripting language is interpreted in run-time. It is not compiled

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.

4.4.4 ADOBE DREAM WEAVER

Dream Weaver is a web development application originally created by Macromedia and


now owned by Adobe Systems,which acquired Macromedia in 2005.Dreamweaver is available
for both Mac and Windows operating systems. Recent versions have incorporated support for
web technologies such as CSS, JavaScript, and various server-side scripting languages and
frameworksincludingASP.NET, ColdFusion, Java Server Pages, and PHP.

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

5. CODING AND IMPLEMENTATION

In Emergency Assistance Response system Implementation is the process of having the


system personnel check out and put new equipment to use, train the users to use the new system
and construct any file that are needed to see it. The final and impartment phases in the system
life cycle are the implementation of the new system. System implementation refers to the steps
necessary to install a new system to put into operation. The implementation has different
meaning, ranging from the conversion of a basic application to complete replacement of
computer system. Implementation includes all these activities that take place to convert from old
system to new one. The new system may be totally new replacing an existing manual or
automated system or it may be major modification to an existing system. The methods of
implementation and time scale adopted are found out initially. The system is tested properly and
at the same time the users are trained in the new procedure. Proper implementation is essential to
provide a reliable system to met organization requirements. Successful implementations may not
guarantee improvement in the organization using the new system, but it will prevent improper
installation. Here Emergency Assistance Response system implementation involves the
following things:

 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

5.1 Implementation methods

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.

6.3 TESTING STRATEGIES


6.3.1 Unit testing

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

7. SECURITY MECHANISM AND SECURITY

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.

Hardware based or assisted computer security offers an alternative software-only


computer security. Security tokens such as those using PKCS#11 may be more secure due to the
physical access required in order to being compromised. Accessing enables only when the token
is connected and correct PIN is entered (see two factor authentications).However dongles can be
used by anyone who can gain physical access to it. Newer technologies in hardware security
solve this problem offering fool proof security for data.

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

Date Topics Covered

Analysis: Study 0f Existing system

Study Of Proposed system

Design: Input Design

DFD
Design: Database

Started coding
Completed coding

Started final testing


Completed final testing

Completeddocumentation and
implementation

39
TRIVANDRUM
Emergency Assistance Response System

10.2 GANTT CHART

Dec 12 Jan 30 Feb25 Mar12Mar 30

System

Analysis

System

Design

Coding

Final

Testing

Implementation

Completed Incompleted
work work

40
TRIVANDRUM
Emergency Assistance Response System

10.3 MEETING MINUTES

Minutes 1

DATE:

TIME: 9.30am-3.30pm

LOCATION: EEL Softwares

PRESENT

SUMMARY

 Discussed in which language to do the project


 Started learning the basics of PHP
 Learning MySQL and Adobe Dream Weaver

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

LOCATION: EEL Softwares

PRESENT

SUMMARY

 Started the concept of connecting PHP to MySQL database


 Designing various forms using Dream Weaver
 Started the design of database
 Started coding

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

LOCATION: Rsha Software Technologies

PRESENT

 Finished the coding and started final testing


 Final testing removes errors
 Analysed and finalized our project according to our requirements

NEXT MEETING
 On
 To complete final testing , implementation and documentation

43
TRIVANDRUM
Emergency Assistance Response System

Minutes 4

DATE:

TIME: 9.30am-3.30pm

LOCATION: Rsha Software Technologies

PRESENT

 Finished the project and implemented successfully

44
TRIVANDRUM
Emergency Assistance Response System

10.4 SCREEN SHOT

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title> Emergency Assistance Response system </title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</head>

<body>

<div id="templatemo_main_wrapper">

<div id="templatemo_wrapper">

<div id="templatemo_header">

<div id="site_title">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div>

<!-- end of site_title -->

52
TRIVANDRUM
Emergency Assistance Response System

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</p>

</div>

<div class="cleaner"></div>

</div>

<div id="templatemo_menu">

<?php

include('menu.php');

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

53
TRIVANDRUM
Emergency Assistance Response System

<div id="content_left">

<div class="content_box">

<h2>Care &amp; Services</h2>

<div class="image_wrapper image_fl"><img src="images/templatemo_image_01.jpg"


alt="image" /></div>

<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>&nbsp;</p>

<p><center>

<a href="login.php"><img src="signin.png" width="209" height="75" /></a>

</center></p>

<p>&nbsp;</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">&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</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><!-- end of footer -->

<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")

$sql = "select * from login where uname='".$UserName."' and pword='".$Password."' and


type='".$type."'";

$result = mysql_query($sql,$con);

$records = mysql_num_rows($result);

$row = mysql_fetch_array($result);

if ($records==0)

echo '<script type="text/javascript">alert("Wrong UserName or


Password");window.location=\'login.php\';</script>';

else

$_SESSION['user']='Admin';

header("location: admin/index.php");

56
TRIVANDRUM
Emergency Assistance Response System

//end of admin

elseif($type=="FireForce")

$sql = "select * from login where uname='".$UserName."' and pword='".$Password."' and


type='".$type."'";

$result = mysql_query($sql,$con);

$records = mysql_num_rows($result);

$row = mysql_fetch_array($result);

if ($records==0)

echo '<script type="text/javascript">alert("Wrong UserName or


Password");window.location=\'login.php\';</script>';

else

$_SESSION['did']=$row['1'];

header("location: FireForce/index.php");

//end of FireForce

57
TRIVANDRUM
Emergency Assistance Response System

elseif($type=="Hospital")

$sql = "select * from login where uname='".$UserName."' and pword='".$Password."' and


type='".$type."'";

$result = mysql_query($sql,$con);

$records = mysql_num_rows($result);

$row = mysql_fetch_array($result);

if ($records==0)

echo '<script type="text/javascript">alert("Wrong UserName or


Password");window.location=\'login.php\';</script>';

else

$_SESSION['did']=$row['1'];

header("location: Hospital/index.php");

//end of Hospital

58
TRIVANDRUM
Emergency Assistance Response System

elseif($type=="Police")

$sql = "select * from login where uname='".$UserName."' and pword='".$Password."' and


type='".$type."'";

$result = mysql_query($sql,$con);

$records = mysql_num_rows($result);

$row = mysql_fetch_array($result);

if ($records==0)

echo '<script type="text/javascript">alert("Wrong UserName or


Password");window.location=\'login.php\';</script>';

else

$_SESSION['did']=$row['1'];

header("location: Police/index.php");

//end of Police

elseif($type=="Ambulance")

59
TRIVANDRUM
Emergency Assistance Response System

$sql = "select * from login where uname='".$UserName."' and pword='".$Password."' and


type='".$type."'";

$result = mysql_query($sql,$con);

$records = mysql_num_rows($result);

$row = mysql_fetch_array($result);

if ($records==0)

echo '<script type="text/javascript">alert("Wrong UserName or


Password");window.location=\'login.php\';</script>';

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'];

$sql = "insert into doc(`name`,`spl`) values('".$Name."','".$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

// Close The Connection

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")

//{

$sql = "select * from login where uname='".$uname."' and type='".$dep."'";

$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);

$sel="select * from `users` where `name`='".$name."'and `phone`='".$phone."'and `location`='".


$loc."'and `department`='".$dep."'";

$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 && $result2)

echo '<script type="text/javascript">alert("Record Succesfully


Inserted");window.location=\'reg.php\';</script>';

else

echo '<script type="text/javascript">alert("Record Insertion


failed");window.location=\'reg.php\';</script>';

else

63
TRIVANDRUM
Emergency Assistance Response System

echo '<script type="text/javascript">alert("Login id Already


Exist");window.location=\'reg.php\';</script>';

//}

//end of FireForce

/*

elseif($dep=="Hospital")

$sql = "select * from login where uname='".$UserName."' and pword='".$Password."' and


type='".$dep."'";

$result = mysql_query($sql,$con);

$records = mysql_num_rows($result);

$row = mysql_fetch_array($result);

if ($records==0)

echo '<script type="text/javascript">alert("Wrong UserName or


Password");window.location=\'login.php\';</script>';

else

64
TRIVANDRUM
Emergency Assistance Response System

header("location: Hospital/index.php");

//end of Hospital

elseif($dep=="PoliceStation")

$sql = "select * from login where uname='".$UserName."' and pword='".$Password."' and


type='".$dep."'";

$result = mysql_query($sql,$con);

$records = mysql_num_rows($result);

$row = mysql_fetch_array($result);

if ($records==0)

echo '<script type="text/javascript">alert("Wrong UserName or


Password");window.location=\'login.php\';</script>';

else

65
TRIVANDRUM
Emergency Assistance Response System

header("location: Police/index.php");

//end of Police

elseif($dep=="Ambulance")

$sql = "select * from login where uname='".$UserName."' and pword='".$Password."' and


type='".$dep."'";

$result = mysql_query($sql,$con);

$records = mysql_num_rows($result);

$row = mysql_fetch_array($result);

if ($records==0)

echo '<script type="text/javascript">alert("Wrong UserName or


Password");window.location=\'login.php\';</script>';

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")

//{

$sql1 = "INSERT INTO `report`(`incidence`, `description`, `location`, `landmark`,


`in_mob_num`, `cont_numb`, `cont_person`, `blood`, `dor`, `ambu`, `fireforce`, `hospital`,
`police`) VALUES ('".$incident."','".$description."','".$loc."','".$landmark."','".$repnum."','".
$connum."','".$conperson."','".$bood."','".$dor."','".$ambulance."','".$fireforce."','".$hospital."','".
$police."');";

$result1 = mysql_query($sql1,$con);

//$sel="select * from `users` where `name`='".$name."'and `phone`='".$phone."'and `location`='".


$loc."'and `department`='".$dep."'";

//$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

echo '<script type="text/javascript">alert("Record Succesfully


Inserted");window.location=\'rep.php\';</script>';

else

echo '<script type="text/javascript">alert("Record Insertion


failed");window.location=\'rep.php\';</script>';

?>

Link.php

<?php

$con = mysql_connect ("localhost","root");

// Select Database

mysql_select_db("oes", $con);

// Specify the query to Insert Record

?>

Monitor.php (admin)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

69
TRIVANDRUM
Emergency Assistance Response System

<title> Emergency Assistance Response system Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</head>

<body>

<div id="templatemo_main_wrapper">

<div id="templatemo_wrapper">

<div id="templatemo_header">

<div id="site_title">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

70
TRIVANDRUM
Emergency Assistance Response System

<h1>&nbsp;</h1>

<p>&nbsp;</p>

</div>

<div class="cleaner"></div>

</div>

<div id="templatemo_menu">

<?php

include('menu.php');

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

<div id="content_left">

<div class="content_box">

<h2>Welcome Admin</h2>

<p align="RIGHT"><a href="rep.php">Add New Case</a></p>

<div id="auto"></div>

<script type="text/javascript" src="jquery-1.9.0.min.js"></script>

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>&nbsp;</p>

<p>&nbsp;</p>

<p></p>

<h2 align="justify">&nbsp;</h2>

<p>&nbsp;</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><!-- end of footer -->

<div id="templatemo_copyright">

<?php

include('footer.php');

?>

</div>

<div class="cleaner"></div>

</div>

</div>

</body>

</html>

Monitor.php (police)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

73
TRIVANDRUM
Emergency Assistance Response System

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title> Emergency Assistance Response system Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</head>

<body>

<div id="templatemo_main_wrapper">

<div id="templatemo_wrapper">

<div id="templatemo_header">

<div id="site_title">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

74
TRIVANDRUM
Emergency Assistance Response System

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</p>

</div>

<div class="cleaner"></div>

</div>

<div id="templatemo_menu">

<?php

include('link.php');

session_start();

include('menu.php');

$qry="select * from users where `did`='".$_SESSION['did']."'";

$sql= mysql_query($qry);

$row= mysql_fetch_array($sql);

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

75
TRIVANDRUM
Emergency Assistance Response System

<div id="content_left">

<div class="content_box">

<h2>Welcome <?php echo $row['name']." ".$row['department']; ?


></h2>

<div id="auto"></div>

<script type="text/javascript" src="jquery-1.9.0.min.js"></script>

<script type="text/javascript">

$(document).ready( function(){

$('#auto').load('load.php');

refresh();

});

function refresh()

setTimeout( function() {

$('#auto').load('load.php');

refresh();

}, 1000);

</script>

<p>&nbsp;</p>

76
TRIVANDRUM
Emergency Assistance Response System

<p>&nbsp;</p>

<p></p>

<h2 align="justify">&nbsp;</h2>

<p>&nbsp;</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><!-- end of footer -->

<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)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title> Emergency Assistance Response system Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</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">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</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');

$qry="select * from users where `did`='".$_SESSION['did']."'";

$sql= mysql_query($qry);

$row= mysql_fetch_array($sql);

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

<div id="content_left">

<div class="content_box">

<h2>Welcome <?php echo $row['name']." ".$row['department']; ?


></h2>

<div id="auto"></div>

<script type="text/javascript" src="jquery-1.9.0.min.js"></script>

<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>&nbsp;</p>

<p>&nbsp;</p>

<p></p>

<h2 align="justify">&nbsp;</h2>

<p>&nbsp;</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><!-- end of footer -->

<div id="templatemo_copyright">

<?php

include('footer.php');

?>

</div>

<div class="cleaner"></div>

</div>

</div>

</body>

</html>

Monitor.php(fireforce)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title> Emergency Assistance Response system Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

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">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</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');

$qry="select * from users where `did`='".$_SESSION['did']."'";

$sql= mysql_query($qry);

$row= mysql_fetch_array($sql);

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

<div id="content_left">

<div class="content_box">

<h2>Welcome <?php echo $row['name']." ".$row['department']; ?


></h2>

84
TRIVANDRUM
Emergency Assistance Response System

<div id="auto"></div>

<script type="text/javascript" src="jquery-1.9.0.min.js"></script>

<script type="text/javascript">

$(document).ready( function(){

$('#auto').load('load.php');

refresh();

});

function refresh()

setTimeout( function() {

$('#auto').load('load.php');

refresh();

}, 1000);

</script>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p></p>

<h2 align="justify">&nbsp;</h2>

<p>&nbsp;</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><!-- end of footer -->

<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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title> Emergency Assistance Response system Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</head>

<body>

<div id="templatemo_main_wrapper">

<div id="templatemo_wrapper">

<div id="templatemo_header">

<div id="site_title">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

87
TRIVANDRUM
Emergency Assistance Response System

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</p>

</div>

<div class="cleaner"></div>

</div>

<div id="templatemo_menu">

<?php

include('link.php');

session_start();

include('menu.php');

$qry="select * from users where `did`='".$_SESSION['did']."'";

$sql= mysql_query($qry);

$row= mysql_fetch_array($sql);

?>

</div><!-- end of templatemo_menu -->

88
TRIVANDRUM
Emergency Assistance Response System

<div id="content_wrapper">

<div id="content_left">

<div class="content_box">

<h2>Welcome <?php echo $row['name']." ".$row['department']; ?


></h2>

<div id="auto"></div>

<script type="text/javascript" src="jquery-1.9.0.min.js"></script>

<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>&nbsp;</p>

<p>&nbsp;</p>

<p></p>

<h2 align="justify">&nbsp;</h2>

<p>&nbsp;</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><!-- end of footer -->

<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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title> Emergency Assistance Response system Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</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">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</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');

$qry="select * from users where `did`='".$_SESSION['did']."'";

$sql= mysql_query($qry);

$row= mysql_fetch_array($sql);

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

<div id="content_left">

<div class="content_box">

<h2>Welcome <?php echo $row['name']." ".$row['department']; ?


></h2>

<table width="505" border="0" align="center" cellspacing="0">

<tr>

<th width="187" height="38" align="left"><div align="left">Department</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<?php echo $row[4]; ?>

93
TRIVANDRUM
Emergency Assistance Response System

</div></th>

<th width="91" align="left"></th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Specific Name</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<?php echo $row[1]; ?>

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Location</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<?php echo $row[3]; ?>

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Phone</div></th>

<th width="500" align="left"><div align="left">

<label for="catname"></label>

<?php

94
TRIVANDRUM
Emergency Assistance Response System

if(isset($_GET['ph']))

{?>

<form action="phchange.php"><input type="text" name="phone" /><input


type="submit"/></form>

<?php }

else { ?>

<?php echo $row[2]; ?>

<a href="profile.php?ph=<?php echo $_SESSION['did']; ?> ">(Change)</a>

<?php } ?>

</div></th>

<th width="91" align="left"></th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Password</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<?php

95
TRIVANDRUM
Emergency Assistance Response System

if(isset($_GET['pw']))

{?>

<form action="pwchange.php"><input type="text" name="pass" /><input


type="submit"/></form>

<?php }

else { ?>

<a href="profile.php?pw=<?php echo $_SESSION['did']; ?> ">(Change)</a>

<?php } ?>

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

</table>

<p>&nbsp;</p>

<!--

<form id="form2" name="form2" method="get" action="doctor.php">

<label for="search"></label>

<input type="text" placeholder="doctor's id" name="search" id="search" />

<input type="submit" name="button2" id="button2" value="Submit" />

<?php

96
TRIVANDRUM
Emergency Assistance Response System

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

?>

<a href="doctor.php">show all</a>

<?php

?>

</form>

<p>&nbsp;</p>

<table width="652" border="1" align="center" cellspacing="0">

<tr>

<th align="left" width="63"><div align="center">Doc id</div></th>

<th width="176" align="left"><div align="center">Name</div></th><th width="399"


align="left"><div align="center">Specialist</div></th>

</tr>

<?php

include('link.php');

if(!isset($_GET['search']))

$a="select * from doc";

else

$a="select * from doc where did=".$_GET['search'];

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>

<td align=right><div align=center><a href='docdel.php?id=".$abc['did']."'><img


src='del.png'/></a></div></td>";

echo "</tr>";

?>

</table>-->

98
TRIVANDRUM
Emergency Assistance Response System

<p>&nbsp;</p>

<p>&nbsp;</p>

<p></p>

<h2 align="justify">&nbsp;</h2>

<p>&nbsp;</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><!-- end of footer -->

<div id="templatemo_copyright">

<?php

include('footer.php');

?>

</div>

99
TRIVANDRUM
Emergency Assistance Response System

<div class="cleaner"></div>

</div>

</div>

</body>

</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>EARs Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</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

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</p>

</div>

<div class="cleaner"></div>

</div>

<div id="templatemo_menu">

<?php

include('link.php');

session_start();

include('menu.php');

$qry="select * from users where `did`='".$_SESSION['did']."'";

101
TRIVANDRUM
Emergency Assistance Response System

$sql= mysql_query($qry);

$row= mysql_fetch_array($sql);

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

<div id="content_left">

<div class="content_box">

<h2>Welcome <?php echo $row['name']." ".$row['department']; ?


></h2>

<table width="505" border="0" align="center" cellspacing="0">

<tr>

<th width="187" height="38" align="left"><div align="left">Department</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<?php echo $row[4]; ?>

</div></th>

<th width="91" align="left"></th>

</tr>

<tr>

102
TRIVANDRUM
Emergency Assistance Response System

<th width="187" height="37" align="left"><div align="left">Specific Name</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<?php echo $row[1]; ?>

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Location</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<?php echo $row[3]; ?>

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Phone</div></th>

<th width="500" align="left"><div align="left">

<label for="catname"></label>

<?php

if(isset($_GET['ph']))

{?>

103
TRIVANDRUM
Emergency Assistance Response System

<form action="phchange.php"><input type="text" name="phone" /><input


type="submit"/></form>

<?php }

else { ?>

<?php echo $row[2]; ?>

<a href="profile.php?ph=<?php echo $_SESSION['did']; ?> ">(Change)</a>

<?php } ?>

</div></th>

<th width="91" align="left"></th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Password</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<?php

if(isset($_GET['pw']))

{?>

104
TRIVANDRUM
Emergency Assistance Response System

<form action="pwchange.php"><input type="text" name="pass" /><input


type="submit"/></form>

<?php }

else { ?>

<a href="profile.php?pw=<?php echo $_SESSION['did']; ?> ">(Change)</a>

<?php } ?>

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

</table>

<p>&nbsp;</p>

<!--

<form id="form2" name="form2" method="get" action="doctor.php">

<label for="search"></label>

<input type="text" placeholder="doctor's id" name="search" id="search" />

<input type="submit" name="button2" id="button2" value="Submit" />

<?php

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

?>

105
TRIVANDRUM
Emergency Assistance Response System

<a href="doctor.php">show all</a>

<?php

?>

</form>

<p>&nbsp;</p>

<table width="652" border="1" align="center" cellspacing="0">

<tr>

<th align="left" width="63"><div align="center">Doc id</div></th>

<th width="176" align="left"><div align="center">Name</div></th><th width="399"


align="left"><div align="center">Specialist</div></th>

</tr>

<?php

include('link.php');

if(!isset($_GET['search']))

$a="select * from doc";

else

$a="select * from doc where did=".$_GET['search'];

$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>

<td align=right><div align=center><a href='docdel.php?id=".$abc['did']."'><img


src='del.png'/></a></div></td>";

echo "</tr>";

?>

</table>-->

<p>&nbsp;</p>

<p>&nbsp;</p>

<p></p>

107
TRIVANDRUM
Emergency Assistance Response System

<h2 align="justify">&nbsp;</h2>

<p>&nbsp;</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><!-- end of footer -->

<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'];

$change="UPDATE `login` SET `pword` = '".$_GET['pass']."' WHERE `did` = '".


$_SESSION['did']."'";

$ok=mysql_query($change,$con);

if($ok)

header('Location: profile.php?process=sucess');

else

header('Location: profile.php?process=failed');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

109
TRIVANDRUM
Emergency Assistance Response System

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>EARs Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</head>

<body>

<div id="templatemo_main_wrapper">

<div id="templatemo_wrapper">

<div id="templatemo_header">

<div id="site_title">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

110
TRIVANDRUM
Emergency Assistance Response System

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</p>

</div>

<div class="cleaner"></div>

</div>

<div id="templatemo_menu">

<?php

include('menu.php');

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

<div id="content_left">

<div class="content_box">

<h2>Welcome Admin</h2>

<p align="RIGHT"><a href="viewuser.php">VIEW ALL DEPARTMENT USERS</a></p>

111
TRIVANDRUM
Emergency Assistance Response System

<form action="adduser.php" method="post" name="form1" id="form1">

<table width="505" border="0" align="center" cellspacing="0">

<tr>

<th width="187" height="38" align="left"><div align="left">Department</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<select name="dep" id="dep">

<option value="FireForce">FireForce</option>

<option value="Hospital">Hospital</option>

<option value="Police">PoliceStation</option>

<option value="Ambulance">Ambulance</option>

</select>

</div></th>

<th width="91" align="left"></th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Specific Name</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="name" id="name" />

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

112
TRIVANDRUM
Emergency Assistance Response System

<tr>

<th width="187" height="37" align="left"><div align="left">Location</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<select name="loc" id="loc">

<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>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Phone</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="std" id="std" size="4" value="0471" readonly/> - - <input size="7"


type="text" name="phone" id="phone" />

</div></th>

<th width="91" align="left"></th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Login id</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="uname" id="uname" />

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Login


Password</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="pword" id="pword" />

114
TRIVANDRUM
Emergency Assistance Response System

</div></th>

<th width="91" align="left"><input type="submit" name="button" id="button"


value="ADD" /></th>

</tr>

</table>

<p>&nbsp;</p>

</form>

<!--

<form id="form2" name="form2" method="get" action="doctor.php">

<label for="search"></label>

<input type="text" placeholder="doctor's id" name="search" id="search" />

<input type="submit" name="button2" id="button2" value="Submit" />

<?php

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

?>

<a href="doctor.php">show all</a>

<?php

?>

</form>

<p>&nbsp;</p>

<table width="652" border="1" align="center" cellspacing="0">

<tr>

<th align="left" width="63"><div align="center">Doc id</div></th>

115
TRIVANDRUM
Emergency Assistance Response System

<th width="176" align="left"><div align="center">Name</div></th><th width="399"


align="left"><div align="center">Specialist</div></th>

</tr>

<?php

include('link.php');

if(!isset($_GET['search']))

$a="select * from doc";

else

$a="select * from doc where did=".$_GET['search'];

$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

<td align=right><div align=center><a href='docdel.php?id=".$abc['did']."'><img


src='del.png'/></a></div></td>";

echo "</tr>";

?>

</table>-->

<p>&nbsp;</p>

<p>&nbsp;</p>

<p></p>

<h2 align="justify">&nbsp;</h2>

<p>&nbsp;</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><!-- end of footer -->

<div id="templatemo_copyright">

<?php

include('footer.php');

?>

</div>

<div class="cleaner"></div>

</div>

</div>

</body>

</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

118
TRIVANDRUM
Emergency Assistance Response System

<title>EARs Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</head>

<body>

<div id="templatemo_main_wrapper">

<div id="templatemo_wrapper">

<div id="templatemo_header">

<div id="site_title">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

119
TRIVANDRUM
Emergency Assistance Response System

<h1>&nbsp;</h1>

<p>&nbsp;</p>

</div>

<div class="cleaner"></div>

</div>

<div id="templatemo_menu">

<?php

include('menu.php');

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

<div id="content_left">

<div class="content_box">

<h2>Welcome Admin</h2>

<p align="RIGHT"><a href="monitor.php">Monitor Case</a></p>

<form action="repprocess.php" method="get" name="form1" id="form1">

<table width="505" border="0" align="center" cellspacing="0">

120
TRIVANDRUM
Emergency Assistance Response System

<tr>

<th width="187" height="38" align="left"><div align="left">INCIDENT</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="incident" id="incident" />

</div></th>

<th width="91" align="left"></th>

</tr>

<tr>

<th width="187" height="64" align="left"><div align="left">Description</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<textarea name="description" rows="4" id="description"></textarea>

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Service Needed</div></th>

<th width="221" align="left" valign="middle"><div align="left">

<label for="catname"></label>

<p>

<label>

<input type="checkbox" name="FireForce" value="1" id="FireForce" />

FireForce</label>

<br />

121
TRIVANDRUM
Emergency Assistance Response System

<label>

<input type="checkbox" name="Hospital" value="1" id="Hospital" />

Hospital</label>

<br />

<label>

<input type="checkbox" name="Ambulance" value="1" id="Ambulance" />

Ambulance</label>

<br />

<label>

<input type="checkbox" name="Police" value="1" id="Police" />

Police</label>

<br />

</p>

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Location</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<select name="loc" id="loc">

<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>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Landmark</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="landmark" id="landmark" />

</div></th>

123
TRIVANDRUM
Emergency Assistance Response System

<th width="91" align="left"></th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Reported mob


number</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="repnum" id="repnum" />

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Contact


Number</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="connum" id="connum" />

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Contact Person</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="conperson" id="conperson" />

</div></th>

124
TRIVANDRUM
Emergency Assistance Response System

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Blood Group


Needed</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="bood" id="bood" />

</div></th>

<th width="91" align="left">&nbsp;</th>

</tr>

<tr>

<th width="187" height="37" align="left"><div align="left">Date of


Reporting</div></th>

<th width="221" align="left"><div align="left">

<label for="catname"></label>

<input type="text" name="dor" id="dor" value="<?php echo date('d/m/Y'); ?>" readonly/>

</div></th>

<th width="91" align="left"><input type="submit" name="button" id="button"


value="ADD" /></th>

</tr>

</table>

<p>&nbsp;</p>

</form>

<!--

125
TRIVANDRUM
Emergency Assistance Response System

<form id="form2" name="form2" method="get" action="doctor.php">

<label for="search"></label>

<input type="text" placeholder="doctor's id" name="search" id="search" />

<input type="submit" name="button2" id="button2" value="Submit" />

<?php

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

?>

<a href="doctor.php">show all</a>

<?php

?>

</form>

<p>&nbsp;</p>

<table width="652" border="1" align="center" cellspacing="0">

<tr>

<th align="left" width="63"><div align="center">Doc id</div></th>

<th width="176" align="left"><div align="center">Name</div></th><th width="399"


align="left"><div align="center">Specialist</div></th>

</tr>

<?php

include('link.php');

if(!isset($_GET['search']))

$a="select * from doc";

126
TRIVANDRUM
Emergency Assistance Response System

else

$a="select * from doc where did=".$_GET['search'];

$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>

<td align=right><div align=center><a href='docdel.php?id=".$abc['did']."'><img


src='del.png'/></a></div></td>";

echo "</tr>";

127
TRIVANDRUM
Emergency Assistance Response System

?>

</table>-->

<p>&nbsp;</p>

<p>&nbsp;</p>

<p></p>

<h2 align="justify">&nbsp;</h2>

<p>&nbsp;</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><!-- end of footer -->

<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")

//{

$sql1 = "INSERT INTO `report`(`incidence`, `description`, `location`, `landmark`,


`in_mob_num`, `cont_numb`, `cont_person`, `blood`, `dor`, `ambu`, `fireforce`, `hospital`,
`police`) VALUES ('".$incident."','".$description."','".$loc."','".$landmark."','".$repnum."','".
$connum."','".$conperson."','".$bood."','".$dor."','".$ambulance."','".$fireforce."','".$hospital."','".
$police."');";

$result1 = mysql_query($sql1,$con);

//$sel="select * from `users` where `name`='".$name."'and `phone`='".$phone."'and `location`='".


$loc."'and `department`='".$dep."'";

//$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)

echo '<script type="text/javascript">alert("Record Succesfully


Inserted");window.location=\'rep.php\';</script>';

else

130
TRIVANDRUM
Emergency Assistance Response System

echo '<script type="text/javascript">alert("Record Insertion


failed");window.location=\'rep.php\';</script>';

?>

<div id="content_right">

<div class="content_box">

<h2>Doctor's Desk</h2>

<ul id="news_box">

<li>

<span class="date">OCT 26, 2014</span>

<h6>&nbsp;</h6>

<p>ExcelPACES, the MRCP course conducted by KIMS has been unanimously


approved by the Management Board of Royal College of Physicians, London officially. This is
the first time a private course is approved by the Royal College. This is in recognition to the
conduction of ExcelPaces by KIMS Trivandrum every year.</p>

</li>

</ul>

<div class="btn_more float_r"></div>

<div class="cleaner"></div>

</div>

</div>

131
TRIVANDRUM
Emergency Assistance Response System

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>EARs Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</head>

<body>

<div id="templatemo_main_wrapper">

<div id="templatemo_wrapper">

<div id="templatemo_header">

<div id="site_title">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

132
TRIVANDRUM
Emergency Assistance Response System

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</p>

</div>

<div class="cleaner"></div>

</div>

<div id="templatemo_menu">

<?php

include('menu.php');

?>

</div><!-- end of templatemo_menu -->

<div id="content_wrapper">

<div id="content_left">

<div class="content_box">

133
TRIVANDRUM
Emergency Assistance Response System

<h2>Welcome Admin</h2>

<p><a href="view.php">VIEW ALL</a></p>

<form name="form1" method="post" action="emp_pros.php">

<table width="379" border="0" align="center">

<tr>

<td width="96" valign="top">Staff Name</td>

<td colspan="2" valign="top"><label for="name"></label>

<input type="text" name="name" id="name"></td>

</tr>

<tr>

<td valign="top">Age</td>

<td colspan="2" valign="top"><label for="age"></label>

<input type="text" name="age" id="age"></td>

</tr>

<tr>

<td valign="top">Address</td>

<td colspan="2" valign="top"><label for="add"></label>

<textarea name="add" id="add"></textarea></td>

</tr>

<tr>

<td valign="middle">Gender</td>

<td colspan="2" valign="top"><table width="200">

<tr>

<td><label>

<input type="radio" name="Gender" value="male" id="Gender_0">

134
TRIVANDRUM
Emergency Assistance Response System

Male</label></td>

</tr>

<tr>

<td><label>

<input type="radio" name="Gender" value="female" id="Gender_1">

Female</label></td>

</tr>

</table></td>

</tr>

<tr>

<td valign="top">Phone number</td>

<td colspan="2" valign="top"><label for="pnum"></label>

<input type="text" name="pnum" id="pnum"></td>

</tr>

<tr>

<td height="26" valign="top">Designation</td>

<td colspan="2" valign="top"><label for="des"></label>

<select name="desi">

<option value="0">Select Designation</option>

<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>

<td align="right" valign="top">&nbsp;</td>

<td width="56" align="right" valign="top"><label for="pnum"></label></td>

<td width="141" align="right" valign="top"><input type="submit" name="button2"


id="button2" value="Submit" /></td>

</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>

</div><!-- end of footer -->

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'];

$change="UPDATE `report` SET `ambu` = '".$_SESSION['did']."' WHERE `case_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');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>EARs Template</title>

<meta name="keywords" content="EARs" />

<meta name="description" content="EARs." />

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

</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">

<a href="#" target="_parent"><img src="images/ears.png" width="301" /></a>

</div><!-- end of site_title -->

<div id="header_right">

<div id="twitter">

<a href="#">Follow us on Twitter</a>

</div>

<div class="cleaner"></div>

<h1>&nbsp;</h1>

<p>&nbsp;</p>

</div>

<div class="cleaner"></div>

</div>

<div id="templatemo_menu">

<?php

139
TRIVANDRUM
Emergency Assistance Response System

include('menu.php');

?>

</div><!-- end of templatemo_menu -->

<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

?>

<table width="505" border="1" align="center" cellspacing="0">

<tr>

<th align="left" width="108"><div align="center">Empid</div></th>

<th width="143" align="left"><div align="center">Name</div></th>

<th width="143" align="left"><div align="center">Designation</div></th>

<th width="143" align="left"><div align="center">Contact</div></th>

<th width="143" align="left"><div align="center">view more</div></th>

</tr>

<?php

include('link.php');

$a="select * from staff";

$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

<td align=right><div align=center><a href='dview.php?id=".$abc['emp_id']."'>Click


Here</a></div></td>

<td align=right><div align=center><a href='empdel.php?id=".$abc['emp_id']."'><img


src='del.png'/></a></div></td>";

echo "</tr>";

?>

</table>

<?php

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

if(($_POST['desi'])=='Search')

?>

<table width="505" border="1" align="center" cellspacing="0">

<tr>

<th align="left" width="108"><div align="center">Empid</div></th>

<th width="143" align="left"><div align="center">Name</div></th>

142
TRIVANDRUM
Emergency Assistance Response System

<th width="143" align="left"><div align="center">Designation</div></th>

<th width="143" align="left"><div align="center">Contact</div></th>

<th width="143" align="left"><div align="center">view more</div></th>

</tr>

<?php

include('link.php');

$a="select * from staff `designation`='".$_POST['des']."'";

$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>

<td align=right><div align=center><a href='dview.php?id=".$abc['emp_id']."'>Click


Here</a></div></td>

<td align=right><div align=center><a href='empdel.php?id=".$abc['emp_id']."'><img


src='del.png'/></a></div></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><!-- end of footer -->

<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

 RemezElmasri, Nava the; “Fundamentals of database systems”.

146
TRIVANDRUM

You might also like