FALL SEMESTER 2021-22 SWE1012- E-GOVERNANCE TOPIC : ECOPS REVIEW I Course Faculty –Prof.JAGADEESH G Slot: B2 BY NAMES: M SHOAIB KHAN 20MIS0045 POCHA DIWAKAR REDDY 20MIS0046 ABSTRACT ECOP is an a online crime reporting service made by the government to the citizens to report crime through online services. The focus of ECOPS is to computerize the activities of controlling crime, administration and support services across the state. 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 reporting the cases. ECOPS is envisaged to reduce the fair amount of paper work and helps in the automatic maintenance of registers and generation of reports. 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 reaching the police station. STAKEHOLDERS USER ADMINISTRATOR POLICE DEPARTMENT EXISTING SYSTEM The normal public in India is afraid to give a complaint in police station because they are filled with a false fear about the police department. An online complaint registering system will solve the fears of public and will also help the police department in catching criminals. This existing software doesn’t have an option to report a crime online. As in our government there is no option to report cases online and there are only two methods to report a crime. Those are by : i. Through interaction ii. Through dialing helpline Why should people use our service? In this service you are accessible to report a crime through online or internet service just by registering by your details. This distributive characteristic of the online solution helps in getting the different police stations to share information and get in contact with one another. An online solution is very useful as the solution is inherently distributive The aim is to develop new technologies that include designing new techniques to fight crime and improve criminal justice. If any false report is uploaded then the report can be deleted. Benefit to Government Improve efficiency in police department Availability of online police service to citizens Availability of data to senior officials for quick decision making Better administration and co-ordination Speedy detection of crimes Duplication of work avoided Retrieval and access of data is easy Paper work is drastically reduced Automatic maintenance of registers FALL SEMESTER 2021-22 SWE1012- E-GOVERNANCE TOPIC: ECOPS REVIEW II Course Faculty –Prof.JAGADEESH G Slot: B2 BY NAMES: M SHOAIB KHAN 20MIS0045 POCHA DIWAKAR REDDY 20MIS0046 USECASE DIAGRAM CONTEXT DIAGRAM SECOND LEVEL DFD(Data Flow Diagram) TECHNOLOGIES USED WEB PORTAL A portal is a web-based platform that collects information from different sources into a single user interface and presents users with the most relevant information for their context. Over time, simple web portals have evolved into portal platforms that support digital customer experience initiatives. FUNCTIONS Provides the searching facilities based on various factors. Such as Crime, Public, Solutions, Department. The transactions are executed in off-line mode, hence on-line data for Crime, Criminal capture and modification is not possible. It tracks all the information of Criminal, Complaint and Solutions etc. Manage the information of Criminal. Shows the information and description of the Crime, Public All the fields such as Crime, Public, and Department are validated and does not take invalid data. It generates the report on Crime Criminal Complaint. Editing adding and updating of Records is improved which results in proper resource management of Crime data. Integration of all records of Department. DATA WAREHOUSING & DATA MINING A data warehouse is a system used for reporting and data analysis and is considered a core component of Business Intelligence. Data Warehouses are central repositories of integrated data from one or more disparate sources. They store current and historical data in one single place that are used for creating analytical reports for workers throughout the enterprise. This includes to store data and access it whenever required to the police department and as well as citizens. FUNCTIONS It improves the efficiency and as well as performance for the users and as well as the police department. Long-term data storage. By this the police department can store a data for long time it can also be viewed whenever possible. Provides the data for the users and as well as police department. By Data Mining we can also analysis the data given by the users. OPEN STANDARDS An open standard is a standard that is publicly available and has various rights to use associated with it and may also have various properties of how it was designed. Standards in e-Governance are a high priority activity, which will help ensure sharing of information and seamless interoperability of data across e-Governance applications Since police, as an agency of the criminal justice system, have a major responsibility for dealing with serious crime, efforts should continually be made to improve the capacity of police to discharge this responsibility effectively. To achieve optimum police effectiveness, the police should be recognized as having complex and multiple tasks to perform in addition to identifying and apprehending persons committing serious criminal offenses. Recommendations made in these standards are based on the view that this diversity of responsibility is likely to continue and, more importantly, that police authority and skills are needed to handle appropriately a wide variety of community problems. Such other police tasks include protection of certain rights such as to speak and to assemble, participation either directly or in conjunction with other public and social agencies in the prevention of criminal and delinquent behavior. It should also be recognized, however, that police effectiveness in dealing with crime is often largely dependent upon the effectiveness of other agencies both within and outside the criminal justice system. Those in the system must work together through liaison, cooperation, and constructive join effort. This effort is vital to the effective operation of the police and the entire criminal justice system FALL SEMESTER 2021-22 SWE1012- E-GOVERNANCE TOPIC: ECOPS REVIEW III Course Faculty –Prof.JAGADEESH G Slot: B2 BY NAMES: M SHOAIB KHAN 20MIS0045 POCHA DIWAKAR REDDY 20MIS0046 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" awesome/4.4.0/css/font-awesome.min.css"> href="https://maxcdn.bootstrapcdn.com/font- <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" Portal</b></a> href="home.php" style="margin-top: 5%;"><b>Crime </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li class="active" Login</a></li> style="margin-top: 5%;"><a </ul> </div> </div> </nav> <div align="center" > <div class="form" style="margin-top: 15%"> <form method="post"> <div class="form-group" style="width: 30%"> href="userlogin.php">Complainer <label for="exampleInputEmail1"><h1 style="color: #fff;">User Id</h1></label> <input type="email" class="form-control" id="exampleInputEmail1" ariadescribedby="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" datatarget="#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 type="text" name="name" required="" id="name1" onfocusout="f1()" /> Name</p><input <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 type="text" name="adress" required="" id="addr" onfocusout="f1()"/> Adress</p><input <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"> <option>Male</option> <option>Female</option> <option>Others</option> </select> </div> <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> v> </di </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" awesome/4.4.0/css/font-awesome.min.css"> href="https://maxcdn.bootstrapcdn.com/font- <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" datatarget="#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" pressed="true">Sign Up!</a> </div> </div> </div> </div> class="btn btn-default btn-lg" role="button" aria- html > <scri pt type= "text/ javas cript" src=" https: //cod e.jqu ery.c om/jq uery2.1.4. js">< /scrip t> <scri pt src="h ttps:// maxcd n.boot strapc dn.co m/boo tstrap/ 3.3.5/j s/boot strap. min.js "></sc ript> </bod y> </htm l> <!DO CTYP E <ht ml> <he ad> < l i n k r e l = " s t y l le is nh ke e rt "e l t= y " p s e t= y" lt e sx ht e/ ce ts s" " t h ype="text/css" r href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.mi en.css"> f <link rel="stylesheet" type="text/css" = href="https://maxcdn.bootstrapcdn.com/font" awesome/4.4.0/css/font-awesome.min.css"> b o <link o href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400it t alic,700italic" rel="stylesheet" type="text/css"> s t <title>Police Login</title> r a <?php p . cif(isset($_POST['s'])) s s{ " session_start(); > type="text/javascript" $_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) { $ m e s s a g e = " I d o r P a s s w o r d n o t M a t c h e d . " ; e c h o e _pending_complain.php"); ' ) } ; } < }/ s ?> c r i < p s t > c " ; r " < s c r i p t t y p e = ' t e x t / j a v a s c r i p t ' > a l e r t ( ' $ m e s s a g } i e l s e p t > { h e a d e r ( " l o c a t i o n : p o l i c e f u n c t i o n f 1 ( ) { v a r s t a 2 = d o c u m e n t . g e t E l e m e n t B l mentById("exampleInputPassword1").value; y u var x2=sta2.indexOf(' '); I e var d ; x3=sta3.ind ( exOf(' '); " v if(sta2!="" e a && x r x2>=0){ a document.getElementById("exampleInputEm m s ail1").value=""; p t document.getElementById("exampleInputE l a mail1").focus(); alert("Space Not Allowed"); e 3 } I = else if(sta3!="" && x3>=0){ n d document.getElementById("exampleInputPas p o sword1").value=""; u c document.getElementById("exampleInputPa t u ssword1").focus(); alert("Space Not E m Allowed"); m e a n i t } l . </script> 1 g " e ) t </head> . E <body v l a e } no-repeat;"> style="color: black;background-image: url(locker.jpeg);background-size: 100%;background-repeat: < n a v c l a s s = " n a v b a r t o p " > < di v cl as s = "c o nt ai n er " > n a v b <d a iv r class - ="na d vbar ef head a er"> u < l a t n a v b a r f i x e d - c l a s s = " n a v b a r - b r a n d " </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> h r </ul> e </div> f = " </div> h </nav> o m <div align="center" > e <div class="form" style="margin-top: 15%"> . p <form method="post"> h p <div class="form-group" style="width: 30%"> " > <label for="exampleInputEmail1" ><h1 style="color:white">Police < Id</h1></label> b <input type="text" name="email" class="form-control" > id="exampleInputEmail1" aria- describedby="emailHelp" C size="5" placeholder="Enter user id" required onfocusout="f1()"> r i </div> m e <div class="form-group" style="width:30%"> <label for="exampleInputPassword1"><h1 P style="color:white">Password</h1></label> o r <input type="password" name="password" class="form t a </div> l < / b > <button type="submit" class="btn btn-primary" name="s">Submit</button> < </form> / a </div> > </div> < l t a(0,0,0,0. d e : 8); color: i f v t 3 text-align: center;"> : 0 <h4 style="color: white;">&copy <b>Crime Portal 2018</b></h4> s white; p </div> t 0 x y ; ; l b </body> a </html> = bo tto m: 0; c <!DOCTYPE html> " w k <html> p i g o d r < s t o ? i h u p t : n h d p e i o 1 - n 0 c s : 0 o e % l s ; o s r i : o f i x h e e d i r _ ; g g s h b t n a ] n t("localhost","root","","crime_portal"); r ) . if(!$conn) t ) p { ( h die("could not connect".mysqli_error()); ) h p } ; e " mysqli_select_db("crime_portal",$conn); a ) f d ; ( e ! r i ( $ s " c s l o e o n t c n $result1=mysqli_query($conn,"SELECT u_name FROM user where u_id='$u_id' "); ( a = $q2=mysqli_fetch_assoc($result1); $ t m $u_name=$q2['u_name']; _ i y S o s E n q S : l $con=mysqli_connect('lo S u i calhost','root',''); if(!$con) I s _ { O e c N r o } [ l n if($_SERVER["REQUEST_METHOD"]=="POST") ' o n { x g e ' i c i $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']; if(isset($_POST['s'])){ die('could not connect: '.mysqli_error()); $ l o c a ti o n = $ _ P O S T [' l o c a ti o n '] ; $ t y p e _ c ri m e = $ _ P O S T [' t y p e _ c r i m e ' ] ; $ d _ o _ c = $ _ P O S T [ ' d _ o _ c ' ] ; $ d e s c r i p t i o n = $ "))-strtotime($d_o_c); _ P O S T if($var>=0) [ { ' d e $comp="INSERT into s c complaint(a_no,location,type_crime,d_o_c r ,description) i values('$a_no','$location','$type_crime','$d_o_c','$description')"; p mysqli_select_db($conn,"crime_portal"); t i $res=mysqli_query($conn,$comp); o n ' if(!$res) ] ; { $ v a r = s t r t o t i m e ( d a t e ( " Y m d } $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>"; } ?> d .trim(); s ( if(sta1!="" && x1==""){ t " document.getElementById("d s a d esc").value=""; c 1 e document.getElementById("d r = s esc").focus(); alert("Space i d c Found"); p o " t c )} > u . </script> m v f e a<head> u n l n t u c . e t g ; i e o t n E rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/fontvawesome/4.4.0/css/font-awesome.min.css"> a l r < } <title>Complainer Home Page</title> <link rel="stylesheet" <link f e 1 m <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300 italic,400italic,700italic" rel="stylesheet" type="text/css"> x ( e 1 ) <link href="complainer_page.css" rel="stylesheet" type="text/css" media="all" /> n = t s v B t</head> a y a r I 1<body { type=" s ; t b g y b 1 l a . e c j = k p " g e b r g a o ) c u ; k n g d b r - a o i c u m k n a g d g r - e o s : u i n: center;"> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" datatoggle="collapse" data- target="#navbar" ariaexpanded="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> n z u d e r - : l p ( o c h s o o i v m t e e i r _ o <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 </ul> </div> </div> </nav> href="logout.php">Logout &nbsp <i class="fa fa-sign-out" < d i v c l a s s = " c e n t e r c o n t a i n e r " > < d i v c l a <div s class= s "video = " " style= b "marg g in-top: 5%"> a g i l e " > o r m " > < p > < h 2 d i v c l a s s = " l o g i n f s t y l e = " c o l o r : w h i t e " > W e l c o m e < ? p h p 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"> < b r > < b r > <?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> < o p t i o n > M u r d e r < / o p t i o n > < o p t i o n > R a p e < / o p t i o n > < o p o > t p </div> i t o i <div class="Top-w3-agile" n o style="color: gray"> Date > n M > Of Crime : &nbsp &nbsp o < l <input style="background-color: e white"otype="date" p s name="d_o_c" t t i required> a o t </div> n i > <br> o M n <div class="top-w3-agile" i < s / style="color: gray"> s o Description i p n t <textarea g i name="de o scription" rows="20" cols="50" placeholder="Describe the incident in P n details with e time" onfocusout="f1()" id="desc" required></textarea> > r </div> < s o o <input type="submit" value="Submit" p n name="s"> t < </form> i / o o n p > t K i i o d n </div> n > a < p / p s i e n l g e < c / t #3131 </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 */; SNAPSHOTS Home screen: User registration: User login: User logged in: Complaint form: Official login: Police login: Police logged in: View complaint: In-charge login: In charge Complaints: Adding police officers: Head quarters login: Complaint view: Complaint details and status: Police stations: Adding police stations: 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