Vous êtes sur la page 1sur 54

Project Report

online crime Station

1. Introduction
The project titled as online crime statation is a web based application. This
software provides facility for reporting online crimes, complaints, missing persons, show
mostwanted person. Any Number of clients can connect to the server. Each user first makes
their login to sever to show their availability. The server can be any Web Server.The main
modules in this project

Modules

Visitors
Registered Users
Administrator

The visitor module include,

View Hotnews: This module help the visitor to see the latest hotnews which can
updated by the admin.

The registered user module includes,

Add Complaint: This module help the user to report online complaints.
Add Crime report: This module help the user to report online crimes.
Add Missing person: This module help the user to report online missing persons

details also we have to add photos of missing person using hetrogenious database.
View Missing persons: This module help the user to view all the missing person

details.
View Mostwanted persons: This module help the user to view all mostwanted

persons which can be given by the administrator.


Edit Complaint: This module help the user to edit his complaint details.
Edit Account: This module help the user to update his or her profile.
View complaint status: This module allows us to view the status of all complaint

that you have posted earlier.


View crime status: This module allows us to view the status of the all crimes that

you have posted earlier.


Add and View feedback: This module helps the user to add and view feedbacks
The administrator module includes,
View and reply user complaint: This module helps the admin to view and reply
users complaint details

Project Report

online crime Station

View and reply user crimes: This module helps the admin to view and reply users

crimes details
New admin: This module used for add new admin
Add and delete latest hotnews: This module helps the admin to add and delete latest

hotnews.
View and delete users feedback: This module helps the amin to add and delete

users feedback
Add, delete and view mostwanted persons: This module helps the amin to add,

delete and view mostwanted person details


Add, delete and view missing persons: This module helps the amin to add, delete

and view missing person details


Add and view Criminal registeration: This module helps the amin to add and view

criminal registrations
Add and view FIR: This module helps the amin to add and view Fir reports
Add and view history sheet: This module helps the amin to add and view history

reports
View and delete all complaint reply: This module helps the amin to view and delete

complaint reply.
Add and view prisoner report: This module helps the amin to add and prisoner

reports
Change password: This module helps the amin to update his or her password

2. Organization overview
Srishti Systems is a Software and Web Development Company which provides
technology solutions and professional software for clients worldwide. Srishti focus on
quality, innovations and leverage deep industry and functional expertise to help customers
to transform their highest-value business processes.
Our in-depth technical knowledge coupled with industry experience and the unique
methodology enables us to successfully deliver the services to the clients worldwide. We
are driven to attain our customer's highest satisfaction by providing business experts with
underlying

delivery

expertise

in

Enterprise

Technology,

Methodologies

and

Implementations. Our core competencies are designed to effectively deliver results to our
customers.

Project Report

online crime Station

Srishti Training Center provides premier instructor-led IT training through a


carefully balanced blend of hands-on lab exercises and lecture. Training is conducted in the
comfortable classrooms at our training facility and client locations. Experienced instructors
make training productive and enjoyable. Customizable courses and computer lab offer
additional options for your training needs. We also provide project guidance for all
academic students which help them to build a successful portfolio and start their IT journey
successfully.

Project Report

online crime Station

3. Introduction
System analysis is a process of gathering and interpreting facts,
diagnosing problems and the information to recommend improvements on the system. It is
a problem solving activity that requires intensive communication between the system users
and system developers. System analysis or study is an important phase of any system
development process. The system is studied to the minutest detail and analyzed. The
system analyst plays the role of the interrogator and dwells deep into the working of the
present system. The system is viewed as a whole and the input to the system are identified.
The outputs from the organizations are traced to the various processes. System analysis is
concerned with becoming aware of the problem, identifying the relevant and decisional
variables, analyzing and synthesizing the various factors and determining an optimal or at
least a satisfactory solution or program of action.
A detailed study of the process must be made by various techniques like
interviews, 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 close
study and problem areas are identified. The designer now functions as a problem solver and
tries to sort out the difficulties that the enterprise faces. The solutions are given as
proposals. 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 proposal.
Preliminary study is the process of gathering and interpreting facts, using the
information for further studies on the system. Preliminary study is problem solving activity
that requires intensive communication between the system users and system developers. It
does various feasibility studies. In these studies a rough figure of the system activities can
be obtained, from which the decision about the strategies to be followed for effective
system study and analysis can be taken.
Here in the Email to Fax server project, a detailed study of existing system is carried
along with all the steps in system analysis. An idea for creating a better project was carried
and the next steps were followed.

Project Report

online crime Station

3.1 Existing System


In the existing system only we can see the details of particular information about
the police stations in our state, the existing system has more workload for the authorized
person, but in the case of Proposed System, the user can registered in our site and send the
crimereport and complaint about a particular city or person.

3.2 Drawbacks of Existing System


More man power.
Time consuming.
Consumes large volume of pare work.
Needs manual calculations.
No direct role for the higher officials.
Damage of machines due to lack of attention.
To avoid all these limitations and make the working more accurately the system needs to be
computerized.

3.3 Proposed System


The aim of proposed system is to develop a system of improved facilities. The
proposed system can overcome all the limitations of the existing system. The system
provides proper security and reduces the manual work. The existing system has several
disadvantages and many more difficulties to work well. The proposed system tries to
eliminate or reduce these difficulties up to some extent. The proposed system will help the
user to reduce the workload and mental conflict. The proposed system helps the user to
work user friendly and he can easily do his jobs without time lagging.

3.4 Expected Advantages of Proposed System


The system is very simple in design and to implement. The system requires very
low system resources and the system will work in almost all configurations. It has got
following features

Ensure data accuracys.


Proper control of the higher officials.
Reduce the damages of the machines.
Minimize manual data entry.
Minimum time needed for the various processing.

Project Report

online crime Station

Greater efficiency.
Better service.
User friendliness and interactive.
Minimum time required.

3.4.1 FEASIBILITY STUDY


Feasibility study is made to see if the project on completion will serve the purpose
of the organization for the amount of work, effort and the time that spend on it. Feasibility
study lets the developer foresee the future of the project and the usefulness. A feasibility
study of a system proposal is according to its workability, which is the impact on the
organization, ability to meet their user needs and effective use of resources. Thus when a
new application is proposed it normally goes through a feasibility study before it is
approved for development.
The document provide the feasibility of the project that is being designed and lists
various areas that were considered very carefully during the feasibility study of this project
such as Technical, Economic and Operational feasibilities. The following are its features:
3.4.2 TECHNICAL FEASIBILITY
The system must be evaluated from the technical point of view first. The assessment
of this feasibility must be based on an outline design of the system requirement in the terms
of input, output, programs and procedures. Having identified an outline system, the
investigation must go on to suggest the type of equipment, required method developing the
system, of running the system once it has been designed.
Technical issues raised during the investigation are:
Does the existing technology sufficient for the suggested one?
Can the system expand if developed?
The project should be developed such that the necessary functions and
performance are achieved within the constraints. The project is developed within latest
technology. Through the technology may become obsolete after some period of time, due to
the fact that never version of same software supports older versions, the system may still be
used. So there are minimal constraints involved with this project. The system has been
developed using Java the project is technically feasible for development.
3.4.3 ECONOMIC FEASIBILITY

Project Report

online crime Station

The developing system must be justified by cost and benefit. Criteria to ensure that
effort is concentrated on project, which will give best, return at the earliest. One of the
factors, which affect the development of a new system, is the cost it would require.
The following are some of the important financial questions asked during
preliminary investigation:
The costs conduct a full system investigation.
The cost of the hardware and software.
The benefits in the form of reduced costs or fewer costly errors.
Since the system is developed as part of project work, there is no manual cost to spend
for the proposed system. Also all the resources are already available, it give an indication of
the system is economically possible for development.
3.4.4 BEHAVIORAL FEASIBILITY
This includes the following questions:
Is there sufficient support for the users?
Will the proposed system cause harm?
The project would be beneficial because it satisfies the objectives when developed and
installed. All behavioral aspects are considered carefully and conclude that the project is
behaviorally feasible.

4. Introduction

Project Report

online crime Station

Design is the first step into the development phase for any engineered product or
system. Design is a creative process. A good design is the key to effective system. The term
design is defined as the process of applying various techniques and principles for the
purpose of defining a process or a system in sufficient detail to permit its physical
realization. It may be defined as a process of applying various techniques and principles
for the purpose of defining a device, a process or a system in sufficient detail to permit its
physical realization. Software design sits at the technical kernel of the software engineering
process and is applied regardless of the development paradigm that is used. The system
design develops the architectural detail required to build a system or product. As in the case
of any systematic approach, this software too has undergone the best possible design phase
fine tuning all efficiency, performance and accuracy levels. The design phase is a transition
from a user oriented document to a document to the programmers or database personnel.
System design goes through two phases of development: Logical and Physical Design.
4.1 LOGICAL DESIGN:
The logical flow of a system and define the boundaries of a system. It includes the
following steps:
Reviews the current physical system its data flows, file content, volumes ,
Frequencies etc.
Prepares output specifications that is, determines the format, content and

Frequency of reports.
Prepares input specifications format, content and most of the input functions.
Prepares edit, security and control specifications.
Specifies the implementation plan.
Prepares a logical design walk through of the information flow, output, input,

Controls and implementation plan.


Reviews benefits, costs, target dates and system constraints.

4.2 PHYSICAL DESIGN:

Project Report

online crime Station

Physical system produces the working systems by define the design specifications that
tell the programmers exactly what the candidate system must do. It includes the following
steps.

Design the physical system.


Specify input and output media.
Design the database and specify backup procedures.
Design physical information flow through the system and a physical design
Plan system implementation.
Prepare a conversion schedule and target date.
Determine training procedures, courses and timetable.
Devise a test and implementation plan and specify any new hardware/software.
Update benefits , costs , conversion date and system constraints

Design/Specification activities:

Concept formulation.
Problem understanding.
High level requirements proposals.
Feasibility study.
Requirements engineering.
Architectural design.

4.3 MODULE DESIGN


Visitors
Registered Users
Administrator

The visitor module include,


View Hotnews: This module help the visitor to see the latest hotnews which can
updated by the admin.
The registered user module includes,
Add Complaint: This module help the user to report online complaints.
Add Crime report: This module help the user to report online crimes.

Project Report

online crime Station

Add Missing person: This module help the user to report online missing persons
details also we have to add photos of missing person using hetrogenious database.
View Missing persons: This module help the user to view all the missing person
details.
View Mostwanted persons: This module help the user to view all mostwanted
persons which can be given by the administrator.
Edit Complaint: This module help the user to edit his complaint details.
Edit Account: This module help the user to update his or her profile.
View complaint status: This module allows us to view the status of all complaint
that you have posted earlier.
View crime status: This module allows us to view the status of the all crimes that
you have posted earlier.
Add and View feedback: This module helps the user to add and view feedbacks
The administrator module includes,
View and reply user complaint: This module helps the admin to view and reply
users complaint details
View and reply user crimes: This module helps the admin to view and reply users
crimes details
New admin: This module used for add new admin
Add and delete latest hotnews: This module helps the admin to add and delete latest
hotnews.
View and delete users feedback: This module helps the amin to add and delete
users feedback
Add, delete and view mostwanted persons: This module helps the amin to add,
delete and view mostwanted person details
Add, delete and view missing persons: This module helps the amin to add, delete
and view missing person details
Add and view Criminal registeration: This module helps the amin to add and view
criminal registrations
Add and view FIR: This module helps the amin to add and view Fir reports
Add and view history sheet: This module helps the amin to add and view history
reports
View and delete all complaint reply: This module helps the amin to view and delete
complaint reply.
Add and view prisoner report: This module helps the amin to add and prisoner
reports
Change password: This module helps the amin to update his or her password

Project Report

online crime Station

4.4 INPUT DESIGN


The input design is the link between the information system and the user. It
comprises the developing specification and procedures for data preparation and those steps
are necessary to put transaction data in to a usable form for processing can be achieved by
inspecting the computer to read data from a written or printed document or it can occur by
having people keying the data directly into the system. The design of input focuses on
controlling the amount of input required, controlling the errors, avoiding delay, avoiding
extra steps and keeping the process simple. The input is designed in such a way so that it
provides security and ease of use with retaining the privacy. Input Design considered the
following things:

What data should be given as input?


How the data should be arranged or coded?
The dialog to guide the operating personnel in providing input.
Methods for preparing input validations and steps to follow when error occur.

OBJECTIVES

Input Design is the process of converting a user-oriented description of the input


into a computer-based system. This design is important to avoid errors in the data
input process and show the correct direction to the management for getting correct
information from the computerized system.
It is achieved by creating user-friendly screens for the data entry to handle large
volume of data. The goal of designing input is to make data entry easier and to be
free from errors. The data entry screen is designed in such a way that all the data
manipulates can be performed. It also provides record viewing facilities.
When the data is entered it will check for its validity. Data can be entered with the
help of screens. Appropriate messages are provided as when needed so that the user
will not be in maize of instant. Thus the objective of input design is to create an
input layout that is easy to follow
4.5 OUTPUT DESIGN
A quality output is one, which meets the requirements of the end user and
presents the information clearly. In any system results of processing are communicated to

Project Report

online crime Station

the users and to other system through outputs. In output design it is determined how the
information is to be displaced for immediate need and also the hard copy output. It is the
most important and direct source information to the user. Efficient and intelligent output
design improves the systems relationship to help user decision-making.
Designing computer output should proceed in an organized, well thought out
manner; the right output must be developed while ensuring that each output element
is designed so that people will find the system can use easily and effectively. When
analysis design computer output, they should Identify the specific output that is
needed to meet the requirements.
Select methods for presenting information.
Create document, report, or other formats that contain information produced
by the system.
The output form of an information system should accomplish one or more of the
following objectives.
o Convey information about past activities, current status or projections of the
Future.
o Signal important events, opportunities, problems, or warnings.
o Trigger an action.
o Confirm an action.
4.6 Data Flow Diagram
Context flow diagram

UserID, Complaints
User

Online Crime File System Complaint Management

Administrator

Solutions, Feedback

Project Report

online crime Station

Level 1 DFD- Administrator

Administrator

Registration details
User name, Password

View user details

Online Crime File System

Login

View Complaints
Complaints

Add Solutions
View Feedback
User

Feedback
Add FIR Reports

Add mortem analysis

Mortem Details

Level 2 DFD- Administrator

FIR

Project Report

online crime Station

Administrator

View complaints

Complaints
Complaint Details

FIR No: Details


FIR Management
Login

FIR
FIR Details

Postmortem Management
Mortem details
Mortem Details

Report Generation

Add Reports
Reports

View Reports
User

Level 1 DFD- User

Project Report

online crime Station

Registration
Registration

User

Username/Password
Username/Password
Login

Login

Verify

Complaints

Complaint Registration

Complaints

Level 2 DFD- User


Collecting Feedback
Solutions

User

Feedback

User name Password

Complaint Registration
Complaint

Login
Complaint Details
Complaint ID

Complaint Status
Complaint Status

Complaint Status

Project Report

online crime Station

5.1 Software and Hardware Specifications


5.1.1 Hardware Specification
Processor

Pentium III/AMD Athlone XP

RAM

128 MB

Hard disk

20 GB

FDD

1.44MB

Monitor

14 inch

Mouse

3 Button scroll

CD Drive

52 X

Keyboard

108 keys

Operating System

Windows 2000/xp

Languages

Java, Servlets, JSp

Front End

HTML, JavaScript

Web Servers

Tomcat Apache, GlassFish

5.1.2 Software Specification

Backend
Browser Program

My SQL
: Internet explorer/Mozilla Fireworks

Project Report

online crime Station

TECHNOLOGIES USED IN THE PROJECT:


What is HTML?
HTML is a language for describing web pages.

HTML stands for Hyper Text Markup Language

HTML is not a programming language, it is a markup language

A markup language is a set of markup tags

The purpose of the tags are to describe page content

HTML Tags
HTML markup tags are usually called HTML tags

HTML tags are keywords (tag names) surrounded by angle brackets like <html>

HTML tags normally come in pairs like <b> and </b>

The first tag in a pair is the start tag, the second tag is the end tag

The end tag is written like the start tag, with a forward slash before the tag name

Start and end tags are also called opening tags and closing tags

HTML Elements
"HTML tags" and "HTML elements" are often used to describe the same thing.
But strictly speaking, an HTML element is everything between the start tag and the end tag,
including the tags:
HTML Element:

<p>This is a paragraph.</p>

HTML Documents = Web Pages

HTML documents describe web pages

HTML documents contain HTML tags and plain text

HTML documents are also called web pages

Project Report

online crime Station

Web Browsers
The purpose of a web browser (Chrome, Internet Explorer, Firefox) is to read HTML
documents and display them as web pages. The browser does not display the HTML tags,
but uses the tags to interpret the content of the page:

HTML Page Structure


Below is a visualization of an HTML page structure:
<html>
<body>
<h1>This a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>

HTML Headings
HTML headings are defined with the <h1> to <h6> tags.

Example
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>

Project Report

online crime Station

HTML Paragraphs
HTML paragraphs are defined with the <p> tag.

Example
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

JAVASCRIPT INTRODUCTION
JavaScript is the most popular scripting language in the world. It is the standard language
used in web pages, but it is also widely used by desktop apps, mobile phone apps, and
internet servers.

Project Report

online crime Station

What is JavaScript?

JavaScript is a scripting language

JavaScript was designed to add interactivity to HTML pages

What is a Scripting Language?


A scripting language is a lightweight programming language that supports the writing of
scripts.
Scripts are code lines that can be interpreted and executed "on-the-fly", without explicit
compile and link steps.

What can JavaScript do?


JavaScript gives HTML designers a programming tool
HTML editors are normally not programmers, but JavaScript is a language with a very
simple syntax. Almost anyone can put small "snippets" of JavaScript code into HTML
pages.
JavaScript can manipulate HTML
JavaScript can both read and change the content of HTML elements.
JavaScript can manipulate CSS
JavaScript can both read and change the style of HTML elements.
JavaScript can validate data
JavaScript can be used to validate data, like validating forms input.
JavaScript can store data
JavaScript can be used to store and retrieve information on the visitor's computer.
JavaScript can react to events
JavaScript can be set to execute when something happens, like when a user clicks on an
HTML element.
A JavaScript is surrounded by a <script> and </script> tag.
JavaScript is typically used to manipulate HTML elements.

The <script> Tag


To insert a JavaScript into an HTML page, use the <script> tag.
The <script> and </script> tells where the JavaScript starts and ends.

Project Report

online crime Station

The lines between the <script> and </script> contain the JavaScript:
<script>
alert("My First JavaScript");
</script>

Manipulating HTML Elements


To access an HTML element from a JavaScript, use the document.getElementById(id)
method, and an "id" attribute to identify the HTML element:

Example
Access the HTML element with the specified id, and change its content:
<!DOCTYPE html>
<html>
<body>
<h1>My First Web Page</h1>
<p id="demo">My First Paragraph</p>
<script>
document.getElementById("demo").innerHTML="My First JavaScript";
</script>
</body>
</html>
The JavaScript is executed by the web browser. In this case, the browser will access the
HTML element with id="demo", and replace its content (innerHTML) with "My First
JavaScript".

Writing Directly into The Document Output


The example below writes a <p> element directly into the HTML document output:

Example
<!DOCTYPE html>
<html>
<body>
<h1>My First Web Page</h1>
<script>
document.write("<p>My First JavaScript</p>");
</script>

Project Report

online crime Station

</body>
</html>

JavaScript in <body>
The example below manipulate the content of an existing <p> element when the page
loads:

Example
<!DOCTYPE html>
<html>
<body>
<h1>My Web Page</h1>
<p id="demo">A Paragraph</p>
<script>
document.getElementById("demo").innerHTML="My First JavaScript";
</script>
</body>
</html>

Project Report

online crime Station

CODING

Project Report

online crime Station

Global.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mypack;
import java.sql.*;
/**
*
* @author N!t!n
*/
public class global {
Connection con;
ResultSet rs;
Statement stmt;
public global()
{
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
con=DriverManager.getConnection("jdbc:mysql:///crimes","root","");
stmt=con.createStatement();
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
}
public ResultSet execute(String s)throws Exception
{
rs=stmt.executeQuery(s);
return(rs);
}
public void update(String s)throws Exception
{
stmt.executeUpdate(s);
}
}
Register.jsp
<body>
<h1>Registration Form</h1>
<table class="a" width="60%" border="0" align="center">

Project Report

online crime Station

<form name="form1" method="post" action="register2.jsp">

<tr>
<th width="197" scope="col"><div align="right">Name:</div></th>
<th width="248" scope="col">
<div align="left">
<input name="name" type="text" id="name" />
</div>
</th>
</tr>
<tr>
<th width="197" scope="col"><div align="right">Username:</div></th>
<th width="248" scope="col">
<div align="left">
<input name="username" type="text" id="username" />
</div>
</th>
</tr>
<tr>
<th ><div align="right">Password:</div></th>
<td>
<input name="password" type="password" id="password" maxlength="8" />
</tr>
<tr>
<th scope="row"><div align="right">Confirmpassword:</div></th>
<td>
<input name="confirmpassword" type="password" id="confirmpassword"
maxlength="8" />
</td>
</tr>
<tr>
<th scope="row"><div align="right">Secret Question </div></th>
<td><select name="secretquestion" id="secretquestion" size="1">
<option>What is your pet's name?</option>
<option>Which is your first school?</option>
<option>Which is your native place?</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><div align="right">Answer</div></th>
<td><input name="answer" type="text" id="answer" /></td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td><strong>Personal Information </strong></td>
</tr>
<tr>
<th scope="row"><div align="right">Address:</div></th>

</td>

Project Report

online crime Station

<td>
<textarea name="address" id="address"></textarea>
</td>
</tr>
<tr>
<th scope="row"><div align="right">Pincode:</div></th>
<td>
<input name="pincode" type="text" id="pincode" />
</td>
</tr>
<tr>
<th scope="row"><div align="right">Phoneno:</div></th>
<td>
<input name="phone" type="text" id="phone" />
</td>
</tr>
<tr>
<th scope="row"><div align="right">E-Mail:</div></th>
<td>
<input name="email" type="text" id="email" />
</td>
</tr>
<tr>
<th scope="row"><div align="right">Village:</div></th>
<td>
<input name="village" type="text" id="village" />
</td>
</tr>
<tr>
<th scope="row"><div align="right">District:</div></th>
<td>
<select name="district">
<%
ResultSet rs=cn.execute("select * from city;");
while(rs.next())
{
String cid=rs.getString("cid");
String cname=rs.getString("cname");
out.println("<option value="+cid+">"+cname+"</option>)");
}
%>
</select>
</td>
</tr>
<tr>
<th scope="row"><div align="right">State:</div></th>
<td>
<input name="state" type="text" value="Haryana" id="state" />
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>

</td>

Project Report

online crime Station

<input name="Submit" type="Submit" id="submit" value="Register" onclick="return


doCheck()" />
<input name="reset" type="reset" id="reset" value="Reset" />
</td>
</tr>
</table>
Register2.jsp
<%
String name=request.getParameter("name");
String username=request.getParameter("username");
String password=request.getParameter("password");
String confirmpassword=request.getParameter("confirmpassword");
String answer=request.getParameter("answer");
String address=request.getParameter("address");
String pincode=request.getParameter("pincode");
String phone=request.getParameter("phone");
String email=request.getParameter("email");
String village=request.getParameter("village");
String district=request.getParameter("district");
String state=request.getParameter("state");
String qry="insert into
registration(name,username,password,answer,address,pincode,phone,email,village,district,s
tate)
values('"+name+"','"+username+"','"+password+"','"+answer+"','"+address+"','"+pincode+"
','"+phone+"','"+email+"','"+village+"','"+district+"','"+state+"')";
m1.update(qry);
out.println("<h1>your are register</h1>");
%>
Adminlogin.jsp
<jsp:useBean id="m1" scope="page" class="mypack.global" />
<%@page import="java.sql.*" %>

Project Report

online crime Station

<%
String name="Haryana Police";
String tid=request.getParameter("username");
String pass=request.getParameter("password");
ResultSet rs;
try
{
rs=m1.execute("select * from admin where adminname='"+tid+"' and
adminpassword='"+pass+"'");
rs.next();
int n=rs.getRow();
//out.println(n);
if(n>=1)
{
out.println("<table border='2' align='center'>");
out.println("<tr><td colspan='2'>");
out.println("<h1 align='center'>Welcome Administrator " +tid+"</td></tr>");

session.setAttribute("username",tid);
}
else
{
out.println("<h1>Invalid User</h1>");
response.sendRedirect("adminlogin1.jsp");
%>
<script language="javascript">
alert("please enter the valid user name and password");
</script>
<%

Project Report

online crime Station

response.sendRedirect("index.jsp");
}
}
catch(Exception e)
{
out.println(e);
}
%>
<%@page import="java.sql.*" %>

<%
String name="Haryana Police";
String tid=request.getParameter("pupilname");
String pass=request.getParameter("pupilpass");
ResultSet rs;
try
{
rs=m1.execute("select * from registration where username='"+tid+"' and
password='"+pass+"'");
rs.next();
int n=rs.getRow();
//out.println(n);
if(n>=1)
{
out.println("<table border='2' align='center'>");
out.println("<tr><td colspan='2'>");
out.println("<h1 align='center'>Welcome User");
rs=m1.execute("select * from registration where username='"+tid+"' and
password='"+pass+"'");
while(rs.next())

Project Report
{
session.setAttribute("uid",rs.getString("uid"));
session.setAttribute("name",rs.getString("name"));
session.setAttribute("address",rs.getString("address"));
session.setAttribute("phoneno", rs.getString("phone"));
session.setAttribute("email", rs.getString("email"));
session.setAttribute("district",rs.getString("district"));
session.setAttribute("state",rs.getString("state"));
}
session.setAttribute("username",tid);
}
else
{
out.println("<h1>Invalid User</h1>");
response.sendRedirect("userlogin1.jsp");
}
}
catch(Exception e)
{
out.println(e);
}
%>

online crime Station

Project Report

online crime Station

DATABASE
SNAPSHOTS

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

PROJECT
SNAPSHOTS

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Project Report

online crime Station

Vous aimerez peut-être aussi