Download as pdf or txt
Download as pdf or txt
You are on page 1of 65

SOFTWARE PROJECT MANAGEMENT

SWE 2006
E-COPS MANAGEMENT SYSTEM
REVIEW-1
TEAM MEMBERS:
20MIS0017 - MAKAM DHEERAJ
20MIS0036 - G PAVAN
20MIS0445 - D SIVARAM
FACULTY:
KAMALAKANNAN J
ABSTRACT:
This feature is made available to public for interaction with police
indirectly. This system registers the complaints from people through
online and is helpful to the police department in identifying criminals. In
this system any person can register their complaint online. The aim of this
project is to develop an E-cops reporting and management system which
is easily accessible to the public, police department and the
administrative department. Generally, many crimes seen by the public
will not reach to the police due to many reasons like fear, lack of time,
ignorance. Due to this reason many cases are not even reported to the
police station. Though some cases are registered they are not
investigated properly due to lack of evidences and cooperation of the
public. This project helps the public to report about the crimes to the
police without any fear in correct time.
This is also helpful for higher authorities of police to have an
overview about the progress of the investigation. This feature is made
available to public for interaction with police indirectly. This system
registers the complaints from people through online and is helpful to the
police department in identifying criminals. In this system any person can
register their complaint online. The aim of this project is to develop an E-
cops reporting and management system which is easily accessible to the
public, police department and the administrative department.
E-cop provides a facility where citizen can make emergency
complaint and the corresponding police officer gets immediate e-mail and
responds to it. Also, the citizen can make a report missing persons, report
missing valuables and can report about wanted criminals. E-cop establish
at virtual police station setup to provide a very easy to access police
service to the citizens. It saves the valuable times of our citizen. Citizen
can also make request for loudspeaker, mass meeting etc. licenses from
his home just by clicking some links online.
E-cop also provides an interface where assigned police officers of
each. Police station of certain city can log in the system and perform their
duties such as complaint approvals, FIR filing, License approvals and
various other form (e.g., Arrest form, Crime Details form, Property
Seizure form, Final form etc.) creation for investigation.

OBJECTIVES:
 Generally, many crimes seen by the public will not reach to the
police due to many reasons like fear, Lack of time, Ignorance. Due
to this reason many cases are not even reaching the police station.
Though some cases are registered they are not investigated
properly due to lack of evidences and Cooperation of the public.
This software helps the public to report about the crimes to the
police without any fear in correct time. This is helpful to police in
solving the cases. This is also helpful for higher authorities of police
to have an overview about the progress of the investigation.

 ECOPS is an online reporting service to which the internet user can


report crimes committed on or through the Internet. The impact of
IT and communications is traversing at a fast pace. As information
for the department is crucial, an enterprise IT tool for enhancing
the performance of the police officials became necessary called
ECOPS or E-Computerized Operations for Police Services, the main
purpose is to maintain information, monitor and enhance the
performance of the department.

 The focus of ECOPS is to computerize the activities of controlling


crime, administration and support services across the state in an
integrated fashion so as to enable the division heads and senior
officers to obtain the relevant information. Besides, it is also
envisaged to reduce dependence on paper and help in automatic
maintenance of registers and generation of reports, data analysis,
better planning and coordination, speedy detection of crimes and
monitoring the prosecutions.

STAKE HOLDERS:
Police officers at all levels are the key stakeholders for the e-COPS
system. Victims of crime are the other main group who have consciously
been included in the stakeholder map for the system. Though not
consciously included, criminals represent the final major stakeholders.
Minor stakeholders are the other players in the criminal justice system
such as the judiciary and prison systems.

• USER
• ADMINISTRATOR
• POLICE DEPARTMENT

GANTT CHART:
USE CASE:
The use case diagram is used to identify the primary elements and
processes that form the system. The primary elements are termed as
"actors" and the processes are called "use cases." The use case diagram
shows which actors interact with each use case.
Use Case Name: Citizen Signup
Primary Actors: Citizen, End Users
Brief Description:
This use case describes creation of citizens’ profile in the E-cop database
system.

Use Case Name: Citizen Login


Primary Actors: Citizen, End Users
Brief Description:
This use case describes successful log in by the user

Use Case Name: Make an Emergency Complaint


Primary Actors: Citizen, End Users
Brief Description:
This use case describes creation of unapproved emergency complaint by
user.

Use Case Name: Report Missing Person


Primary Actors: Citizen, End Users
Brief Description:
This use case describes how a user can report about missing person

Use Case Name: Request Licenses


Primary Actors: Citizen, End Users
Brief Description:
This use case describes how a user can request for licenses.

Use Case Name: Approve Complaints


Primary Actors: Employees, Station House Officer, Police Officer, DGP
Brief Description:
This use case describes how employees can approve complaints.
Use Case Name: Approve Licenses
Primary Actors: Employees, Station House Officer, Police Officer, DGP
Brief Description:
This use case describes how employees can approve licenses.

Use Case Name: Adding Criminal Details


Primary Actors: Employees, Station House Officer, Police Officer, DGP
Brief Description:
This use case describes how employees can add criminal records.

Use Case Name: Adding Police Officers


Primary Actors: Administrator
Brief Description:
This use case describes how admin can add police officers.

Use Case Name: Adding Police Stations


Primary Actors: Administrator
Brief Description:
This use case describes how admin can add police stations.

Data Flow Diagrams:


Context Level DFD:
It shows the interaction between the system and external agents
which act as data sources and data sinks. On the context diagram (also
known as the 'Level 0 DFD') the system's interactions with the outside
world are modelled purely in terms of data flows across the system
boundary. The context diagram shows the entire system as a single
process, and gives no clues as to its internal organization.
Level 1 DFD
This context-level DFD is next "exploded", to produce a Level 1 DFD
that shows some of the detail of the system being modelled. The Level 1
DFD shows how the system is divided into sub-systems (processes), each
of which deals with one or more of the data flows to or from an external
agent, and which together provide all of the functionality of the system as
a whole. It also identifies internal data stores that must be present in
order for the system to do its job, and shows the flow of data between
the various parts of the system.
Level 2 DFD
Name: - Login System
Name: Complaint Filing and license application system
Name: - FIR and Court Disposals System

Name: - Reporting System

Name: - Maintaining Database


E-COPS MANAGEMENT SYSTEM

SPM REVIEW 2&3


20MIS0017 - MAKAM DHEERAJ
20MIS0036 - PAVAN G
20MIS0445 - SIVARAM D
COST BENEFIT ANALYSIS
Cost-benefit analysis is used to determine the worth of a project, programme or
policy.
It is used to assist in making judgments and appraising available options. It
identifies and attempts to quantify the costs and benefits of a programme or
activity and converts available data into manageable information.
Cost benefit analysis attempts to measure the value of all costs and benefits that
are expected to result from the activity.
The standard way of evaluating economic benefits of any project is done by
‘’cost benefit analysis’’.
It includes estimating costs and benefits which are ‘unpriced’ and not the
subject of normal market transactions but which nevertheless entail the use of
real resources.
Cost benefit analysis comprises of two steps :
Step-1: Identifying and estimating all the costs and benefits of carrying out the
project.

Step-2: Expressing these costs and benefits in common units.

➢ Development costs: Includes salary and other employment cost of staff involved.

➢ Setup costs: Includes the cost of implementation of system such as hardware, and
also file conversation, recruitment and staff training.

➢ Operational cost: Cost requires to operate system, after it is installed.


CASH FLOW FORECASTING :
•It estimates the cash flow that will take place in their timing.
• It estimates overall expenditure and income that taken place.
• Negative cash flow during development stage
• Positive cash flow over their operating life.
It considers
• The things of the costs and benefits
• The benefits relative to the size of the investment
• Common method for comparing projects on the basic of their cash flow
forecasting
PAYBACK PERIOD:
Payback period is the time taken to breakeven or payback the initial investment.

As we can observe from the net profit the investment for our project is
90,000. The recovery cash flow in the first, second, third, fourth, fifth, sixth year
are 10000, 20000, 30000, 30000, 20000, 20000 respectively.

Therefore,we can analyse that the investment (90000) is recovered in the


first four years and the returns after the fourth year are profits.

Therefore, the payback period is “4 Years”.


RETURN ON INVESTMENT(ROI):
A way of comparing the net profitability to the investment required.

Return on investment = (Average annual Profit/Total investment)*100

Average Annual Profit = 40000/6 = 6666.67

ROI = (6666.77/90000)*100

ROI = 7.407%
NET PRESENT VALUE(NPV):
• Takes in to the account the profitability of a project and the timing of the cash
flows that are produced.

• It does so by discounting the future cash flows by a percentage known as the


discount rate.

Discount Factor = 1/(1+r)^t

Where ‘r’ is the rate of interest and

‘T’ is the number of years.


Year Cash Flow Discounted factor Discounted Cash
(8%) Flow

0 -90000 1 -90000

1 10000 0.9259 9259

2 20000 0.8573 8573

3 30000 0.7398 7938

4 30000 0.7350 7350

5 20000 0.6806 6806

6 20000 0.6302 6302

NPV 8485

As NPV is greater than 0, therefore the project is accepted.


CPM for estimating the duration of the project:
ACTIVITY ON NODE DIAGRAM:
CRITICAL PATH:
The one path that defines through the network that defines the duration of the
project is called as the Critical path

Any delay to any activity on this critical path will delay the completion of
the project.
Therefore, the Critical path is A→C→E→F→H. The duration of the project is “28”.
ACTIVITIES INVOLVED IN THE PROJECT :
1) Planning
2) Requirement gathering
3) Design
4) Prototyping
5) Coding
6) Testing
7) Implementation
8) Customers / User Acceptance
9) Development
10)Maintenance of the system
PRODUCT BREAKDOWN STRUCTURE :
RISK ASSOCIATED :
Software Risk encompasses the probability of occurrence for uncertain events and
their potential for loss within an organization. Risk management has become an
important component of Software development as organizations continue to
implement more applicants across a multiple technology, multi-tiered environment.
The chance of exposure to the adverse consequences of future events. Project Plans
have to be based on the possibility that an assumption is wrong, when the risk
happens, it becomes a problem or an issue
RISK ASSOCIATED WITH EACH ACTIVITY
1) PLANNING :

Cost risk i.e, wrong assumptions of costs leads to it.

Duration risk i.e, regarding wrong assumptions.

1) REQUIREMENT GATHERING :

Incomplete requirements.

Infeasible requirements.
3) DESIGN :

Team risk.

Actor risk.

4) PROTOTYPING :

Prototyping risk.

Technology risk.

Inaccurate risk.

Few connections / links between the prototyping.


5) CODING:
Technical Risk.
Structural Risk.
Task Risk.
6) TESTING:
Technical Risk.
Operational Risk.
7) IMPLEMENTATION:
Quality Assurance risk i.e., Risk associated with the Quality in the
implementation.
8) USER ACCEPTING :
Quality assuring risk.
9) DEPLOYMENT :
Structural risk.
Technology risk.
Change validation.
10) MAINTENANCE OF THE SYSTEM :
Technical risk. Task risk.
Team risk. Presence of individual judgements.
Structural risk.
PRODUCT FLOW STRUCTURE :
SNAP SHOTS OF THE PROJECT IMPLEMENTATION:
SNAP SHOTS OF OUR PROJECT IMPLEMENTATION:
HOME PAGE

USER REGISTRATION:
USER LOGIN:

USER LOGGED IN
COMPLAINT FORM

OFFICIAL LOGIN
POLICE LOGIN

POLICE LOGGED IN
VIEW COMPLAINT

IN-CHARGE LOGIN
INCHARGE COMPLAINTS

ADDING POLICE OFFICERS


HEAD QUARTERS LOGIN

COMPLAINT VIEW
COMPLAINT DETAILS AND STATUS

CODE:
Userlogin.php:

<!DOCTYPE html>

<html>

<head>

<?php if(isset($_POST['s']))

session_start();

$_SESSION['x']=1;

$conn=mysqli_connect("localhost","root","","crime_portal"); if(!$conn)

die("could not connect".mysqli_error());

mysqli_select_db("crime_portal",$conn); if($_SERVER["REQUEST_METHOD"]=="POST")

{
$name=$_POST['email'];

$pass=$_POST['password'];

$u_id=$_POST['email'];

$_SESSION['u_id']=$u_id;

$result=mysqli_query($conn,"SELECT u_id,u_pass FROM user where u_id='$name' and


u_pass='$pass' ");

if(!$result || mysqli_num_rows($result)==0)

$message = "Id or Password not Matched.";

echo "<script type='text/javascript'>alert('$message');</script>";

else

header("location:complainer_page.php");

?>

<link rel="stylesheet" type="text/css"

href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-


awesome/4.4.0/css/font-awesome.min.css">

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic"
rel="stylesheet" type="text/css”

<script> function f1()

var sta2=document.getElementById("exampleInputEmail1").value; var


sta3=document.getElementById("exampleInputPassword1").value; var x2=sta2.indexOf(' ');

var x3=sta3.indexOf(' '); if(sta2!="" && x2>=0){

document.getElementById("exampleInputEmail1").value="";
document.getElementById("exampleInputEmail1").focus(); alert("Space Not Allowed");

}
else if(sta3!="" && x3>=0){ document.getElementById("exampleInputPassword1").value="";
document.getElementById("exampleInputPassword1").focus(); alert("Space Not Allowed");

</script>

<title>Complainant Login</title>

</head>

<body style="background-size: cover; background-image: url(regi_bg.jpeg); background-position:


center;">

<nav class="navbar navbar-default navbar-fixed-top" style="height: 60px;">

<div class="container">

<div class="navbar-header">

<a class="navbar-brand" href="home.php" style="margin-top: 5%;"><b>Crime Portal</b></a>

</div>

<div id="navbar" class="collapse navbar-collapse">

<ul class="nav navbar-nav">

<li class="active" style="margin-top: 5%;"><a href="userlogin.php">Complainer Login</a></li>

</ul>

</div>

</div>

</nav>

<div align="center" >

<div class="form" style="margin-top: 15%">

<form method="post">

<div class="form-group" style="width: 30%">

<label for="exampleInputEmail1"><h1 style="color: #fff;">User Id</h1></label>

<input type="email" class="form-control" id="exampleInputEmail1" aria- describedby="emailHelp"


size="5" placeholder="Enter Email id" required name="email" onfocusout="f1()">

</div>

<div class="form-group" style="width:30%">

<label for="exampleInputPassword1"><h1 style="color: #fff;">Password</h1></label>


<input type="password" class="form-control" id="exampleInputPassword1"
placeholder="Password" required name="password" onfocusout="f1()">

</div>

<button type="submit" class="btn btn-primary" name="s" onclick="f1()">Submit</button>

</form>

</div>

</div>

<div style="position: fixed; left: 0;

bottom: 0;

width: 100%;

background-color: rgba(0,0,0,0.7); color: white;

text-align: center;">

<h4 style="color: white;">&copy <b>Crime Portal 2018</b></h4>

</div>

</body>

</html>

<!DOCTYPE html>

<html>

<?php if(isset($_POST['s'])){

$con=mysqli_connect('localhost','root','','crime_portal'); if(!$con)

die('could not connect: '.mysqli_error());

if($_SERVER["REQUEST_METHOD"]=="POST"){

$u_name=$_POST['name'];

$u_id=$_POST['email'];

$u_pass=$_POST['password'];

$u_addr=$_POST['adress'];

$a_no=$_POST['aadhar_number'];

$gen=$_POST['gender'];

$mob=$_POST['mobile_number'];
// $password=md5($u_pass);

$reg="insert into user values('$u_name','$u_id','$u_pass','$u_addr','$a_no','$gen','$mob')";


mysqli_select_db("crime_portal");

$res=mysqli_query($con,$reg); if(!$res)

$message1 = "User Already Exist";

echo "<script type='text/javascript'>alert('$message1');</script>";

else

$message = "User Registered Successfully";

echo "<script type='text/javascript'>alert('$message');</script>";

?>

<script>

function f1()

var sta=document.getElementById("name1").value; var


sta1=document.getElementById("email1").value; var sta2=document.getElementById("pass").value;
var sta3=document.getElementById("addr").value; var
sta4=document.getElementById("aadh").value; var sta5=document.getElementById("mobno").value;

var x=sta.trim();

var x1=sta1.indexOf(' '); var x2=sta2.indexOf(' '); var x3=sta3.trim();

var x4=sta4.indexOf(' ');

var x5=sta5.indexOf(' '); if(sta!="" && x==""){

document.getElementById("name1").value=""; document.getElementById("name1").focus();
alert("Space Not Allowed");

else if(sta1!="" && x1>=0){ document.getElementById("email1").value="";


document.getElementById("email1").focus(); alert("Space Not Allowed");

}
else if(sta2!="" && x2>=0){ document.getElementById("pass").value="";
document.getElementById("pass").focus(); alert("Space Not Allowed");

else if(sta3!="" && x3==""){ document.getElementById("addr").value="";


document.getElementById("addr").focus(); alert("Space Not Allowed");

else if(sta4!="" && x4>=0){ document.getElementById("aadh").value="";


document.getElementById("aadh").focus(); alert("Space Not Allowed");

else if(sta5!="" && x5>=0){ document.getElementById("mobno").value="";


document.getElementById("mobno").focus(); alert("Space Not Allowed");

</script>

<head>

<title>User Registration</title>

<link rel="stylesheet" type="text/css"


href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic"
rel="stylesheet" type="text/css">

<link href="complainer_page.css" rel="stylesheet" type="text/css" media="all" />

</head>

<body>

<nav class="navbar navbar-default navbar-fixed-top">

<div class="container">

<div class="navbar-header">

<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-


target="#navbar" aria-expanded="false" aria-controls="navbar">

<span class="sr-only">Toggle navigation</span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

</button>
<a class="navbar-brand" href="home.php"><b>Crime Portal</b></a>

</div>

<div id="navbar" class="collapse navbar-collapse">

<ul class="nav navbar-nav">

<li class="active"><a href="registration.php">Registration</a></li>

</ul>

</div>

</div>

</nav>

<div class="video" style="margin-top: 5%">

<div class="center-container">

<div class="bg-agile">

<br><br>

<div class="login-form">

<form action="#" method="post">

<p style="color:#dfdfdf">Full Name</p><input type="text" name="name" required="" id="name1"


onfocusout="f1()" />

<p style="color:#dfdfdf">Email-Id</p><input type="email" name="email" required="" id="email1"


onfocusout="f1()"/>

<p style="color:#dfdfdf">Password</p><input type="text" name="password" placeholder="6


Character minimum" pattern=".{6,}" id="pass" onfocusout="f1()"/>

<p style="color:#dfdfdf">Home Adress</p><input type="text" name="adress" required="" id="addr"


onfocusout="f1()"/>

<p style="color:#dfdfdf">Aadhar Number</p><input type="text" name="aadhar_number"


minlength="12" maxlength="12" required pattern="[123456789][0-9]{11}" id="aadh"
onfocusout="f1()"/>

<div class="left-w3-agile">

<p style="color:#dfdfdf">Gender</p><select

class="form-control" name="gender">

</div>

<option>Male</option>

<option>Female</option>

<option>Others</option>
</select>

<div class="right-agileits">

<p style="color:#dfdfdf">Mobile</p><input type="text" name="mobile_number" required


pattern="[6789][0-9]{9}" minlength="10" maxlength="10" id="mobno" onfocusout="f1()"/>

</div>

<input type="submit" value="Submit" name="s">

</form>

</div>

</div>

</div>

</div>

<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.js"></script>

<script type="text/javascript"

src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

</body>

</html>

<!DOCTYPE html>

<html>

<head>

<title>Crime Portal</title>

<link rel="stylesheet" type="text/css"


href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-


awesome/4.4.0/css/font-awesome.min.css">

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic"
rel="stylesheet" type="text/css">

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

<style> body {

background-size: cover; background-image: url(home.jpg); background-position: center;

body, html {

width: 100%;
height: 100%;

font-family: "Lato"; color: white;

h1 {

font-weight: 700; font-size: 5em;

.content{

padding-top: 25%; text-align: center;

text-shadow: 0px 4px 3px rgba(0,0,0,0.4), 0px 8px 13px rgba(0,0,0,0.1), 0px 18px 23px
rgba(0,0,0,0.1);

hr {

width: 250px;

border-top: 1px solid #f8f8f8;

border-bottom: 1px solid rgba(0,0,0,0.2);

</style>

</head>

<body>

<nav class="navbar navbar-default navbar-fixed-top">

<div class="container">

<div class="navbar-header">

<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-


target="#navbar" aria-expanded="false" aria-controls="navbar">

<span class="sr-only">Toggle navigation</span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

</button>

<a class="navbar-brand" href="home.php"><b>Crime Portal</b></a>

</div>

<div id="navbar" class="collapse navbar-collapse">


<ul class="nav navbar-nav">

<li class="active"><a href="home.php">Home</a></li>

</ul>

<ul class="nav navbar-nav navbar-right">

<li><a href="userlogin.php">User Login <i class="fa fa-user"></i></a></li>

<li><a href="official_login.php">Official Login <i class="fa fa-user"></i></a></li>

</ul>

</div>

</div>

</nav>

<div class="container">

<div class="row">

<div class="col-lg-12">

<div class="content">

<h1>Have a Complaint?</h1>

<h3>Register Below &nbsp &nbsp<i class="fa fa-hand-o-down" aria-hidden="true"></i></h3>

<hr>

<a href="registration.php" class="btn btn-default btn-lg" role="button" aria- pressed="true">Sign


Up!</a>

</div>

</div>

</div>

</div>

<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.js"></script>

<script type="text/javascript"

src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

</body>

</html>

<!DOCTYPE html>

<html>

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

<linkrel="stylesheet"type="text/css"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-


awesome/4.4.0/css/font-awesome.min.css">

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic"
rel="stylesheet" type="text/css">

<title>Police Login</title>

<?php

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

session_start();

$_SESSION['x']=1;

$conn=mysqli_connect("localhost","root","","crime_portal"); if(!$conn)

die("could not connect".mysqli_error());

mysqli_select_db("crime_portal",$conn);

if($_SERVER["REQUEST_METHOD"]=="POST")

$name=$_POST['email'];

$pass=$_POST['password'];

$result=mysqli_query($conn,"SELECT p_id,p_pass FROM police where p_id='$name' and


p_pass='$pass' ");

$_SESSION['pol']=$name;

if(!$result || mysqli_num_rows($result)==0)

$message = "Id or Password not Matched.";

echo "<script type='text/javascript'>alert('$message');</script>";

else

{
header("location:police_pending_complain.php");

?>

<script> function f1()

var sta2=document.getElementById("exampleInputEmail1").value; var


sta3=document.getElementById("exampleInputPassword1").value; var x2=sta2.indexOf(' ');

var x3=sta3.indexOf(' '); if(sta2!="" && x2>=0){

document.getElementById("exampleInputEmail1").value="";
document.getElementById("exampleInputEmail1").focus(); alert("Space Not Allowed");

else if(sta3!="" && x3>=0){ document.getElementById("exampleInputPassword1").value="";


document.getElementById("exampleInputPassword1").focus(); alert("Space Not Allowed");

</script>

</head>

<body style="color: black;background-image: url(locker.jpeg);background-size: 100%;background-


repeat: no-repeat;">

<nav class="navbar navbar-default navbar-fixed-top">

<div class="container">

<div class="navbar-header">

<a class="navbar-brand" href="home.php"><b>Crime Portal</b></a>

</div>

<div id="navbar" class="collapse navbar-collapse">

<ul class="nav navbar-nav">

<li><a href="official_login.php">Official Login</a></li>

<li class="active"><a href="policelogin.php">Police Login</a></li>

</ul>

</div>
</div>

</nav>

<div align="center" >

<div class="form" style="margin-top: 15%">

<form method="post">

<div class="form-group" style="width: 30%">

<label for="exampleInputEmail1" ><h1 style="color:white">Police Id</h1></label>

<input type="text" name="email" class="form-control" id="exampleInputEmail1" aria-


describedby="emailHelp" size="5" placeholder="Enter user id" required onfocusout="f1()">

</div>

<div class="form-group" style="width:30%">

<label for="exampleInputPassword1"><h1 style="color:white">Password</h1></label>

<input type="password" name="password" class="form-</div>

<button type="submit" class="btn btn-primary" name="s">Submit</button>

</form>

</div>

</div>

<div style="position: fixed; left: 0;

bottom: 0;

width: 100%; height: 30px;

background-color: rgba(0,0,0,0.8); color: white;

text-align: center;">

<h4 style="color: white;">&copy <b>Crime Portal 2018</b></h4>

</div>

</body>

</html>

<!DOCTYPE html>

<html>

<?php session_st

art();

if(!isset($_SESSION['x'])) header("location:userlogin.php");
$conn=mysqli_connect("localhost","root","","crime_portal"); if(!$conn)

die("could not connect".mysqli_error());

mysqli_select_db("crime_portal",$conn);

$u_id=$_SESSION['u_id'];

$result=mysqli_query($conn,"SELECT a_no FROM user where u_id='$u_id' ");

$q2=mysqli_fetch_assoc($result);

$a_no=$q2['a_no'];

$result1=mysqli_query($conn,"SELECT u_name FROM user where u_id='$u_id' ");

$q2=mysqli_fetch_assoc($result1);

$u_name=$q2['u_name'];

if(isset($_POST['s'])){

$con=mysqli_connect('localhost','root',''); if(!$con)

die('could not connect: '.mysqli_error());

if($_SERVER["REQUEST_METHOD"]=="POST")

$location=$_POST['location'];

$type_crime=$_POST['type_crime'];

$d_o_c=$_POST['d_o_c'];

$description=$_POST['description'];

$var=strtotime(date("Ymd"))-strtotime($d_o_c);

if($var>=0)

$comp="INSERT into complaint(a_no,location,type_crime,d_o_c,description)


values('$a_no','$location','$type_crime','$d_o_c','$description')";

mysqli_select_db($conn,"crime_portal");

$res=mysqli_query($conn,$comp);

if(!$res)
{

$message1 = "Complaint already filed";

echo "<script type='text/javascript'>alert('$message1');</script>";

else

$message = "Complaint Registered Successfully";

echo "<script type='text/javascript'>alert('$message');</script>";

else

$message = "Enter Valid Date";

echo "<script type='text/javascript'>alert('$message');</script>";

?>

<script> function f1() {

var sta1=document.getElementById("desc").value; var x1=sta1.trim(); if(sta1!="" && x1==""){


document.getElementById("desc").value=""; document.getElementById("desc").focus(); alert("Space
Found"); } } </script> <head> <title>Complainer Home Page</title> <link rel="stylesheet" type="<link
rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-
awesome/4.4.0/css/font-awesome.min.css">

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic"
rel="stylesheet" type="text/css">

<link href="complainer_page.css" rel="stylesheet" type="text/css" media="all" />

</head>

<body

style="background-size: cover; background-image: url(home_bg1.jpeg); background-position:


center;">

<nav class="navbar navbar-default navbar-fixed-top">

<div class="container">

<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-
target="#navbar" aria-expanded="false" aria-controls="navbar">

<span class="sr-only">Toggle navigation</span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

</button>

<a class="navbar-brand" href="home.php"><b>Home</b></a>

</div>

<div id="navbar" class="collapse navbar-collapse">

<ul class="nav navbar-nav">

<li ><a href="userlogin.php">User Login</a></li>

<li class="active"><a href="complainer_page.php">User Home</a></li>

</ul>

<ul class="nav navbar-nav navbar-right">

<li class="active"><a href="complainer_page.php">Log New Complain</a></li>

<li><a href="complainer_complain_history.php">Complaint History</a></li>

<li><a href="logout.php">Logout &nbsp <i class="fa fa-sign-out" </ul>

</div>

</div>

</nav>

<div class="video" style="margin-top: 5%">

<div class="center-container">

<div class="bg-agile">

<br><br>

<div class="login-form"><p><h2 style="color:white">Welcome <?php echo "$u_name"


?></h2></p><br>

<p><h2>Log New Complain</h2></p><br>

<form action="#" method="post" style="color: gray">Aadhar

<input type="text" name="aadhar_number" placeholder="Aadhar Number" required="" disabled


value=<?php echo "$a_no"; ?>>

<div class="top-w3-agile" style="color: gray">Location of Crime


<select class="form-control" name="location">

<?php

$loc=mysqli_query($conn,"select location from police_station");


while($row=mysqli_fetch_array($loc))

?>

<option> <?php echo $row[0]; ?> </option>

<?php

?>

</select>

</div>

<div class="top-w3-agile" style="color: gray">Type of Crime

<select class="form-control" name="type_crime">

<option>Theft</option>

<option>Robbery</option>

<option>Pick Pocket</option>

<option>Murder</option>

<option>Rape</option>

<option>Molestation</option>

<option>Kidnapping</option>

<option>Missing Person</option>

</select>

</div>

<div class="Top-w3-agile" style="color: gray"> Date Of Crime : &nbsp &nbsp

<input style="background-color: #313131;white" type="date" name="d_o_c" required>

</div>

<br>

<div class="top-w3-agile" style="color: gray"> Description

<textarea name="description" rows="20" cols="50" placeholder="Describe the incident in details


with time" onfocusout="f1()" id="desc" required></textarea>

</div>
<input type="submit" value="Submit" name="s">

</form>

</div>

</div>

</div>

</div> <div style="position: relative; left: 0; bottom: 0; width: 100%; height: 30px; background-color:
rgba(0,0,0,0.8); color: white; text-align: center;"> <h4 style="color: white;">&copy <b>Crime Portal
2018</b></h4> </div> <script type="text/javascript" src="https://code.jquery.com/jquery-
2.1.4.js"></script> <script type="text/javascript"
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> </body>
</html> -- phpMyAdmin SQL Dump -- version 4.8.0.1

-- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 17, 2018 at 04:19 PM


-- Server version: 10.1.32-MariaDB

-- PHP Version: 5.6.36

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0;

START TRANSACTION;

SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;

/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS

*/;

/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;

/*!40101 SET NAMES utf8mb4 */;

--

-- Database: `crime_portal`

--

--

-- Table structure for table `complaint`

--

CREATE TABLE `complaint` (

`c_id` int(11) NOT NULL,

`a_no` bigint(12) NOT NULL,

`location` varchar(50) NOT NULL,

`type_crime` varchar(50) NOT NULL,


`d_o_c` date NOT NULL,

`description` varchar(7000) NOT NULL,

`inc_status` varchar(50) DEFAULT 'Unassigned',

`pol_status` varchar(50) DEFAULT 'null',

`p_id` varchar(50) DEFAULT 'Null'

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `complaint`

--

INSERT INTO `complaint` (`c_id`, `a_no`, `location`, `type_crime`, `d_o_c`, `description`,

`inc_status`, `pol_status`, `p_id`) VALUES

(1, 123214521452, 'Tollygunge', 'Robbery', '2018-12-06', 'My Home has been Robbed.', 'Assigned',
'ChargeSheet Filed', 't101');

--

-- Table structure for table `head`

--

CREATE TABLE `head` (

`h_id` varchar(50) NOT NULL,

`h_pass` varchar(50) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `head`

--

INSERT INTO `head` (`h_id`, `h_pass`) VALUES ('head@kp', 'head');

--

-- Table structure for table `police`

--

CREATE TABLE `police` (

`p_name` varchar(50) NOT NULL,

`p_id` varchar(50) NOT NULL,

`spec` varchar(50) NOT NULL,


`location` varchar(50) NOT NULL,

`p_pass` varchar(50) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `police`

--

INSERT INTO `police` (`p_name`, `p_id`, `spec`, `location`, `p_pass`) VALUES ('Manish Singh', 'a101',
'Murder', 'Anandapur', 'manish'),

('Jay Singh', 'a102', 'All', 'Anandapur', 'jay'),

('Suvendu Ghosh', 't101', 'Robbery', 'Tollygunge', 'suvendu');

--

-- Table structure for table `police_station`

--

CREATE TABLE `police_station` (

`i_id` varchar(50) NOT NULL,

`i_name` varchar(50) NOT NULL,

`location` varchar(50) NOT NULL,

`i_pass` varchar(50) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `police_station`

--

INSERT INTO `police_station` (`i_id`, `i_name`, `location`, `i_pass`) VALUES ('shah@anandapur',


'Shahbaz', 'Anandapur', 'shahbaz'),

('shivam@tollygunge', 'Shivam', 'Tollygunge', 'shivam');

--

-- Table structure for table `update_case`

--

CREATE TABLE `update_case` (

`c_id` int(11) NOT NULL,

`d_o_u` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,

`case_update` varchar(200) NOT NULL


) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `update_case`

--

INSERT INTO `update_case` (`c_id`, `d_o_u`, `case_update`) VALUES (1, '2018-12-17 10:32:06',
'Criminal Verified'),

(1, '2018-12-17 10:32:12', 'Criminal Caught'),

(1, '2018-12-17 10:32:15', 'Criminal Interrogated'),

(1, '2018-12-17 10:32:21', 'Criminal Accepted the Crime'),

(1, '2018-12-17 10:32:26', 'Criminal Charged'),

(1, '2018-12-17 10:32:51', 'The case has been moved to Court.'), (1, '2018-12-17 10:32:59', 'Criminal
Verified');

--

-- Table structure for table `user`

--

CREATE TABLE `user` (

`u_name` varchar(50) NOT NULL,

`u_id` varchar(50) NOT NULL,

`u_pass` varchar(50) NOT NULL,

`u_addr` varchar(100) NOT NULL,

`a_no` bigint(12) NOT NULL,

`gen` varchar(15) NOT NULL,

`mob` bigint(10) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `user`

--

INSERT INTO `user` (`u_name`, `u_id`, `u_pass`, `u_addr`, `a_no`, `gen`, `mob`) VALUES

('Satyansh Kumar', 'satyansh123@gmail.com', 'satyansh', 'Ranchi', 123214521452, 'Male',


9854123654);

--

-- Indexes for dumped tables


--

--

-- Indexes for table `complaint`

--

ALTER TABLE `complaint` ADD PRIMARY KEY (`c_id`);

--

-- Indexes for table `police`

--

ALTER TABLE `police`

ADD PRIMARY KEY (`p_id`);

--

-- Indexes for table `police_station`

--

ALTER TABLE `police_station` ADD PRIMARY KEY (`i_id`),

ADD UNIQUE KEY `location` (`location`);

--

-- Indexes for table `update_case`

--

ALTER TABLE `update_case`

ADD UNIQUE KEY `d_o_u` (`d_o_u`);

--

-- Indexes for table `user`

--

ALTER TABLE `user`

ADD PRIMARY KEY (`a_no`),

ADD UNIQUE KEY `u_id` (`u_id`), ADD UNIQUE KEY `mob` (`mob`);

--

-- AUTO_INCREMENT for dumped tables

--

--

-- AUTO_INCREMENT for table `complaint`


--

ALTER TABLE `complaint`

MODIFY `c_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;

/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Conclusion:
The focus of ECOPS is to computerize the activities of controlling crime, administration and
support services across the state in an integrated fashion so as to enable the division heads
and senior officers to obtain the relevant information. Besides, it is also envisaged to reduce
dependence on paper and help in automatic maintenance of registers and generation of
reports, data analysis, better planning and coordination, speedy detection of crimes and
monitoring the prosecutions.
An online solution is very useful as the solution is inherently distributive. This distributive
characteristic of the online solution helps in getting the different police stations to share
information and get in contact with one another. Information about the criminals and the
police is also made available to the people in this system.

THANK YOU!!!

You might also like