Sie sind auf Seite 1von 34

Screen Shot

<?php

session_start();

$_SESSION['error'] = "";

?>

<!DOCTYPE html>

<html lang="en" dir="ltr">

<head>

<meta charset="utf-8">

<title></title>

<link rel="stylesheet" href="css/style.css">

</head>

<body>

<div class="container">

<header>

<?php include("navbar.php"); ?>

<div class="banner">

<h1>INDIAN POLICE</h1>
<p>More about us</p>

</div>

</header>

<main>

<section>

<div class="card">

<div class="img">

<img src="image\police1.jpg" alt="">

</div>

<div class="detail">

<span><p> Patnaik is learnt to be a man of few words. IPS officer will have one of the

longest tenures as Delhi Police chief. Amulya Patnaik, will have one of the longest tenures as

Delhi Police chief.</p></span>

<p>Amulya Patnaik <small> (IPS)</small> </p>

</div>

</div>

</section>

<section id="right">
<div class="card">

<div class="detail">

<span><p>The Indian Police Service (Bhāratīya Pulis Sevā) or IPS,is an All India

Service for policing.It replaced the Indian Imperial Police in 1948, a year after India gained

independence.

</p></span>

</div>

<div class="img">

<img src="image\police2.jpg" alt="">

</div>

</div>

</section>

</main>

<?php include ("footer.php"); ?>

</div>

</body>

</html>

<?php
require_once("inc/ManageUser.php");

session_start();

$_SESSION['error'] = "";

if(isset($_SESSION['id'])):

$user = new ManageUser();

?>

<!DOCTYPE html>

<html lang="en" dir="ltr">

<head>

<meta charset="utf-8">

<title></title>

<link rel="stylesheet" href="css/style.css">

</head>

<body>

<div class="container">

<header>
<?php include("navbar.php"); ?>

<div class="banner adminbanner">

<h1>"First Information Report" Management</h1>

<p>India</p>

</div>

</header>

<main>

<section class="product">

<div class="title">

<h3>FIR INFORMATION</h3>

</div>

<div class="card">

<table class="firTable">

<tr>

<th>FIR_ID</th>

<th>Name</th>

<th>Email</th>
<th>Phone</th>

<th>Address</th>

<th>Subject</th>

<th>FIR Information</th>

<th>submit Date</th>

</tr>

<?php

$query = ("SELECT * FROM `complain`");

$result = $user->Execute($query);

if($result->num_rows > 0):

while($row = $result->fetch_assoc()):

$id = $row['fir_id'];

$name = $row['name'];

$email = $row['email'];

$phone = $row['phone'];

$address = $row['address'];

$subject = $row['subject'];
$text = $row['complain_text'];

$date = $row['submit'];

?>

<tr>

<td><?php echo $id; ?></td>

<td><?php echo $name; ?></td>

<td><?php echo $email; ?></td>

<td><?php echo $phone; ?></td>

<td><?php echo $address; ?></td>

<td><?php echo $subject; ?></td>

<td><?php echo $text; ?></td>

<td><?php echo $date; ?></td>

</tr>

<?php

endwhile;

endif;

?>
</table>

</div>

</section>

</main>

<?php include ("footer.php"); ?>

</div>

<script type="text/javascript">

var slideIndex = 0;

showSlides();

function showSlides() {

var i;

var slides = document.getElementsByClassName("imageslide");

for (i = 0; i < slides.length; i++) {

slides[i].style.display = "none";

slideIndex++;
if (slideIndex> slides.length) {slideIndex = 1}

slides[slideIndex-1].style.display = "block";

setTimeout(showSlides, 10000); // Change image every 2 seconds

</script>

</body>

</html>

<?php

else:

echo "<h1>404<h1> page not found";

endif;

?>

<footer>

<div class="left">

<div class="link">

<ul>

<li><a href="index.php">Submit a FIR</a></li>


<li><a href="index.php">Home</a></li>

<li><a href="about.php">About</a></li>

</ul>

</div>

<div class="detail">

<span><p>The present police system in the country was created following the

recommendation of the Police Commission headed by Mr. H.M. Court in 1860 which led to the

enactment of the Police Act of 1861, which is in force even today. The same Mr. Court became

the first Inspector General of Police of the then North West Province and Avadh which

comprised the territory of the present state of Uttar Pradesh. </p></span>

</div>

</div>

<div class="feedback">

<form class="form" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">

<div class="form-content">

<label class="title">Feed Back</label>

</div>

<div class="form-content">
<input type="text" name="name" placeholder="Name">

<input type="hidden" name="id" value="<?php if (isset($_SESSION['id'])):

echo $_SESSION['id'];

else:

echo " ";

endif;

?>">

</div>

<div class="form-content">

<input type="email" name="email" placeholder="example@gmail.com">

</div>

<div class="form-content">

<textarea name="msg" rows="5" cols="15" placeholder="Enter your msg"></textarea>

</div>

<div class="form-content">

<input type="submit" name="upload" value="send">

</div>
</form>

</div>

</footer>

<?php

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

require_once("inc/ManageUser.php");

$user = new ManageUser();

$name = $_POST['name'];

$email = $_POST['email'];

$text = $_POST['msg'];

$id = isset($_POST['id']) ? $_POST['id'] : " ";

$result = $user->feedBack($id, $name, $email, $text);

if($result){

echo "<script>alert('Feedback upload Successfully :) '); </script>";

}else{

echo "<script>alert('Feedback upload failed :( '); </script>";

}
}

?>

<html lang="en" dir="ltr">

<head>

<meta charset="utf-8">

<title>FIR</title>

<link rel="stylesheet" href="css/style.css">

</head>

<body>

<div class="container">

<header>

<?php include("navbar.php"); ?>

<div class="banner">

<h1>FIRST INFORMATION REPORT</h1>

<p>INDIA</p>

</div>
</header>

<main>

<section class="slider">

<div class="container">

<div class="lable">

<span><h1>Always ready to help...!</h1></span>

</div>

<div class="imageslide fade">

<img src="image\pic1.jpeg" alt="">

</div>

<div class="imageslide fade">

<img src="image\pic2.jpg" alt="">

</div>

<div class="imageslide fade">

<img src="image\pic3.jpg" alt="">

</div>

<div class="imageslide fade">


<img src="image\pic4.jpg" alt="">

</div>

</div>

</section>

<section class="product">

<div class="title">

<h3>FIR Section</h3>

</div>

<div class="card">

<div class="complain-form">

<form class="form" action="inc/checkFIR.php" method="post">

<div class="form-content">

<div class="title">

<h3>Write your complain</h3>

<?php

if(isset($_SESSION['msg'])):

?>
<h5><?php echo $_SESSION['msg']; ?></h5>

<?php

endif;

?>

</div>

</div>

<div class="form-content">

<label class="label" for="name">Name:</label>

<input type="text" name="name" value="">

</div>

<div class="form-content">

<label class="label" for="email">Email:</label>

<input type="email" name="email" value="">

</div>

<div class="form-content">

<label class="label" for="phone">Phone:</label>

<input type="text" name="phone" value="">


</div>

<div class="form-content">

<label class="label" for="address">Postel Address:</label>

<input type="text" name="address" value="">

</div>

<div class="form-content">

<label class="label" for="subject">Subject:</label>

<input type="text" name="subject" value="">

</div>

<div class="form-content">

<label class="label" for="complain">Complain:</label>

<textarea name="complain" rows="8" cols="80"></textarea>

</div>

<div class="form-content">

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

</div>

</form>
</div>

<div class="detail">

<p>A First Information Report (FIR) is a written document prepared by police

organizations in countries like Bangladesh, India, and Pakistan when they receive information

about the commission of a cognisable offence, or in Singapore when the police receives

information about any criminal offence. It is generally a complaint lodged with the police by the

victim of a cognizable offense or by someone on his or her behalf, but anyone can make such a

report either orally or in writing to the police. Investigating work of the police starts after an FIR

is recorded</p>

<p>पपपपप पपपपप पपपपपपप पप पपपपपप (First Information Report पप

FIR) पप पपपपप पपपपपपप (पपपपपपपपपपप) पप पप पपपप, पपपपपपपपप,

पपप पपपपप पपप पप पपपपप पपपपपप पपपप पपपपपपप पपपपप (cognizable

offence) पप पपपपप पपपपपपप पपपप पप पपपपप पपपप पपपप पपप पप

पपपपप पपपपपप पपपपप पप पपपपप पपपपपपप पपपपपप पपपपप पप पपप

पप पपपपपप पप पपप पपप पपपप पप पपपप पपप पपपप पपपपप पप पपपप

पपप पपपपप पप पपप पप पपपपपपप पपपपप पप पपपपप पपप पपप पपपपप

पप पपपप पपप FIR पपपपप पपपपपप पपपपप पपपप पपप पप पपपपपपपप पप

पपपपप पपपपप पप पपपपप पपपपपप पपपप पप I पपपपपपपप: पपपपप

पपपपपप पपपपप पपपपपप पपपपपपपप पपपपपपप पपपप पप पपपपप पप

पपपप पपप पपपपपपपप पप </p>

</div>
</div>

</section>

</main>

<?php include ("footer.php"); ?>

</div>

<script type="text/javascript">

var slideIndex = 0;

showSlides();

function showSlides() {

var i;

var slides = document.getElementsByClassName("imageslide");

for (i = 0; i < slides.length; i++) {

slides[i].style.display = "none";

slideIndex++;

if (slideIndex> slides.length) {slideIndex = 1}


slides[slideIndex-1].style.display = "block";

setTimeout(showSlides, 10000); // Change image every 2 seconds

</script>

</body>

</html>

<html lang="en" dir="ltr">

<head>

<meta charset="utf-8">

<title></title>

<link rel="stylesheet" href="css/style.css">

</head>

<body>

<div class="container">

<header>

<?php include("navbar.php"); ?>

</header>
<main>

<div class="join-container">

<form class="join" action="inc\join_user.php" method="post">

<div class="form-content">

<h1 class="title">Registered Your Account</h1>

<?php if(isset($_SESSION['error'])): ?>

<span class="title"><p><?php echo $_SESSION['error'];?></p></span>

<?php

else:

echo " ";

endif;

?>

</div>

<div class="form-content">

<input type="text" name="firstName" value="" placeholder="First name">

<input type="text" name="lastName" value="" placeholder="Last name">

</div>
<div class="form-content">

<input type="email" name="email" value="" placeholder="example@gmail.com">

</div>

<div class="form-content">

<input type="password" name="password" value="" placeholder="password">

<input type="password" name="rePassword" value="" placeholder="conform

password">

</div>

<div class="form-content">

<input type="text" name="contect" placeholder="+91 ">

</div>

<div class="form-content">

<input type="text" name="address" value="" placeholder="Enter your full address">

</div>

<div class="form-content">

<input type="submit" name="submit" value="Register">

<a href="login.php"><input type="button" name="" value="Login"></a>

</div>
</form>

</div>

</main>

</div>

</body>

</html>

<?php

endif;

?>

<?php

session_start();

if(isset($_SESSION['id'])):

echo "<h1>404</h1> page not found";

header("location: index.php");

else:

?>

<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>

<meta charset="utf-8">

<title></title>

<link rel="stylesheet" href="css/style.css">

</head>

<body>

<div class="container">

<header>

<?php include("navbar.php"); ?>

</header>

<main>

<div class="login-container">

<form class="login" action="inc/checkLogin.php" method="post">

<div class="form-content">

<h1 class="title">Login Your Account</h1>

<?php if(isset($_SESSION['error'])): ?>


<span class="title"><p><?php echo $_SESSION['error'];?></p></span>

<?php

else:

echo " ";

endif;

?>

</div>

<div class="form-content">

<label for="email">Enter your register email or phone:

<input type="text" name="email" value="" placeholder="email or phone">

</label>

</div>

<div class="form-content">

<label for="email">Password:

<input type="password" name="password" value="" placeholder="password">

</label>

</div>
<div class="form-content">

<input type="submit" name="submit" value="Login">

</div>

</form>

</div>

</main>

</div>

</body>

</html>

<?php

endif;

?>

<nav>

<ul>

<li><a href="index.php">F.I.R.</a></li>

<li><a href="index.php">Home</a></li>

<li><a href="about.php">About</a></li>
<?php if (isset($_SESSION['id'])):?>

<li><a href="inc/logout.php">log out</a></li>

<li><a href="#"><?php echo $_SESSION['name'];?></a></li>

<?php else: ?>

<li class="right"><a href="login.php">Login</a></li>

<?php endif; ?>

</ul>

</nav>

Das könnte Ihnen auch gefallen