INTRODUCTION
This project is a web based CRIME REPORTING SYSTEM OF POLICE STATION for an existing police station 24.Online reporting is the process whereby user directly make complain from a relevant station, without an intermediary service, over the Internet. It is a form of electronic commerce. This project is an attempt to provide the advantages of online CRIME REPORTING SYSTEM OF POLICE STATION to user of a physical station.
PROJECT OBJECTIVES
The oBjective of the project is to maKe a website to complain online in an existing police station. In order to build such a website complete web support need to be provided. A complete and efficient website which can provide the online reporting system experience is the basic objective of the project.
PROJECT OVERVIEW
The project titled as “Online CRIME REPORTING SYSTEM OF POLICE STATION “ is a web based application. This software provides facility for reporting online crimes, complaints, missing persons, show most wanted person details mailing as well as chatting. AnyNumber of clients can connect to the server. Each user first makes their login to server to show their availability. The server can be any Web Server. An SMTP Server must be maintained for temporary storage of emails and chat jar files for enable the chatting facilities.
PROJECT SCOPE:
This system can be implemented to nearby stations in the locality or to multinational branded shops having retail outlet chains. The system recommends a facility to accept the orders Monday-Friday8.00 -19.00, Saturday 9.30-17.00 and Sunday 9.30-15.00 at a home delivery facility which can bring ease in buying medicine for the customers.
The online portal provided a joy and ease to their customers, the shops won’t be losing any more customers to the trending online shops such as flip cart or eBay.
TOOLS FOR DEVELOPMENT
Our website is based on the following tools and computer languages:
Back-end Tools and Technologies
XAMPP
Front-End Tools and Technologies
- Sublime Text Editor
- CSS
- JavaScript 1.8.5
- AJAX
Other Tools and Technologies
Microsoft word 2016 (for documentation)
HARDWARE REQUIREMENT
Computers equipped with a Pentium 4 processor or higher, The computer must have approximately 100MB of free hard drive space and 128MB of RAM.
DEPLOYMENT
- Google chrome Version 75.0.3770.100 (Browser)
- Server side operating system XAMPP.
- Client side operating system Android, windows XP and above
Source of ONLINE CRIME REPORTING SYSTEM IN PHP
Incharge_complain_details.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
<!DOCTYPE html> <html> <head> <title>Assign Police</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"> </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 navbar-right"> <li ><a href="Incharge_complain_page.php">View Complaints</a></li> <li class="active" ><a href="incharge_complain_details.php">Complaints Details</a></li> <li><a href="inc_logout.php">Logout   <i class="fa fa-sign-out" aria-hidden="true"></i></a></li> </ul> </div> </div> </nav> <div style="padding:50px; margin-top:10px;"> <table class="table table-bordered"> <thead class="thead-dark" style="background-color: black; color: white;"> <tr> <th scope="col">Complaint Id</th> <th scope="col">Type of Crime</th> <th scope="col">Date of Crime</th> <th scope="col">Description</th> </tr> </thead> </table> </div> <div> <form method="post"> <select class="form-control" name="police_name" style="margin-left:40%; width:250px;"> <?php $p_name=mysqli_query("select p_name from police where location='$location'"); while($row=mysqli_fetch_array($p_name)) { ?> <option> <?php echo $row[0]; ?> </option> <?php } ?> </select> <input type="submit" name="assign" value="Assign Case" class="btn btn-primary" style="margin-top:10px; margin-left:45%;"> </form> </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;">© <b>Crime Portal 2021</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> |
incharge_view_police.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
<!DOCTYPE html> <html> <head> <?php session_start(); if(!isset($_SESSION['x'])) header("location:inchargelogin.php"); $conn=mysqli_connect("localhost","root","","crime_portal"); if(!$conn) { die("could not connect".mysqli_error()); } mysqli_select_db("crime_portal",$conn); $i_id=$_SESSION['email']; $result1=mysqli_query($conn,"SELECT location FROM police_station where i_id='$i_id'"); $q2=mysqli_fetch_assoc($result1); $location=$q2['location']; if(isset($_POST['s2'])) { if($_SERVER["REQUEST_METHOD"]=="POST") { $pid=$_POST['pid']; $q1=mysqli_query($conn,"delete from police where p_id='$pid'"); $q3=mysqli_query($conn,"update complaint set pol_status='null',inc_status='Unassigned',p_id='Null' where p_id='$pid'"); } } $result=mysqli_query($conn,"select p_id,p_name,spec,location from police where location='$location'"); ?> <title>Incharge View Police</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"> <script> function f1() { var sta2=document.getElementById("ciid").value; var x2=sta2.indexOf(' '); if(sta2!="" && x2>=0){ document.getElementById("ciid").value=""; alert("Blank Field not Allowed"); } } </script> </head> <body style="background-color: #dfdfdf"> <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><a href="official_login.php">Official Login</a></li> <li><a href="inchargelogin.php">Incharge Login</a></li> <li class="active"><a href="incharge_view_police.php">Incharge Home</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="Incharge_complain_page.php">View Complaints</a></li> <li class="active" ><a href="incharge_view_police.php">Police Officers</a></li> <li><a href="inc_logout.php">Logout   <i class="fa fa-sign-out" aria-hidden="true"></i></a></li> </ul> </div> </div> </nav> <div style="margin-top: 10%;margin-left: 45%"> <a href="police_add.php"><input type="button" name="add" value="Add Police Officers" class="btn btn-primary"></a> </div> <div style="padding:50px;"> <table class="table table-bordered"> <thead class="thead-dark" style="background-color: black; color: white;"> <tr> <th scope="col">Police Id</th> <th scope="col">Police Name</th> <th scope="col">Specialist</th> <th scope="col">Location</th> </tr> </thead> <?php while($rows=mysqli_fetch_assoc($result)){ ?> <tbody style="background-color: white; color: black;"> <tr> <td><?php echo $rows['p_id']; ?></td> <td><?php echo $rows['p_name']; ?></td> <td><?php echo $rows['spec']; ?></td> <td><?php echo $rows['location']; ?></td> </tr> </tbody> <?php } ?> </table> </div> <form style="margin-top: 5%; margin-left: 40%;" method="post"> <input type="text" name="pid" style="width: 250px; height: 30px; background-color:white;" placeholder="  Police Id" id="ciid" onfocusout="f1()" required> <div> <input class="btn btn-danger" type="submit" value="Delete Police" name="s2" style="margin-top: 10px; margin-left: 9%;"> </div> </form> <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;">© <b>Crime Portal 2021</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> |
inchargelogin.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="bootstrap.css"> <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"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Incharge 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 i_id,i_pass FROM police_station where i_id='$name' and i_pass='$pass' "); $_SESSION['email']=$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:incharge_complain_page.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(OIP.jpg);background-size: 100%;background-repeat: no-repeat;back"> <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="inchargelogin.php">Incharge 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:black; font-weight: bold">Incharge 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:black; font-weight: bold">Password</h1></label> <input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="Password" required onfocusout="f1()"> </div> <button type="submit" class="btn btn-primary" name="s">Submit</button> <br> <br> <button class="btn btn-light"> <a href ="forgotpassword1.php" >Forgot Password</a></button> </br></br> </form> </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;">© <b>Crime Portal 2021</b></h4> </div> </body> </html> |
Download PHP Source code of ONLINE CRIME REPORTING SYSTEM
More helping material Of Online Crime Reporting System
- Functional and Non Functional Requirements of CRIME REPORTING SYSTEM
- Code of ONLINE CRIME REPORTING SYSTEM IN PHP
- Use Case description Of Online Crime Reporting System
- Database Tables Of Online Crime Reporting System
- Use case diagram of Crime Reporting System
- Activity Diagram of Crime Reporting System
- Sequence Diagram of Crime Reporting System
- Class Diagram of Crime Reporting System
- PPT Presentation CRIME REPORTING SYSTEM Project