Professional Documents
Culture Documents
PHP Project Coding and SNAP
PHP Project Coding and SNAP
<?php
session_start();
$_SESSION['error'] = "";
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div class="container">
<header>
<div class="banner">
<h1>INDIAN POLICE</h1>
<p>More about us</p>
</div>
</header>
<main>
<section>
<div class="card">
<div class="img">
</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
</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">
</div>
</div>
</section>
</main>
</div>
</body>
</html>
<?php
require_once("inc/ManageUser.php");
session_start();
$_SESSION['error'] = "";
if(isset($_SESSION['id'])):
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div class="container">
<header>
<?php include("navbar.php"); ?>
<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
$result = $user->Execute($query);
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>
</tr>
<?php
endwhile;
endif;
?>
</table>
</div>
</section>
</main>
</div>
<script type="text/javascript">
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
slides[i].style.display = "none";
slideIndex++;
if (slideIndex> slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = "block";
</script>
</body>
</html>
<?php
else:
endif;
?>
<footer>
<div class="left">
<div class="link">
<ul>
<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
</div>
</div>
<div class="feedback">
<div class="form-content">
</div>
<div class="form-content">
<input type="text" name="name" placeholder="Name">
echo $_SESSION['id'];
else:
endif;
?>">
</div>
<div class="form-content">
</div>
<div class="form-content">
</div>
<div class="form-content">
</div>
</form>
</div>
</footer>
<?php
if (isset($_POST['upload'])) {
require_once("inc/ManageUser.php");
$name = $_POST['name'];
$email = $_POST['email'];
$text = $_POST['msg'];
if($result){
}else{
}
}
?>
<head>
<meta charset="utf-8">
<title>FIR</title>
</head>
<body>
<div class="container">
<header>
<div class="banner">
<p>INDIA</p>
</div>
</header>
<main>
<section class="slider">
<div class="container">
<div class="lable">
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="product">
<div class="title">
<h3>FIR Section</h3>
</div>
<div class="card">
<div class="complain-form">
<div class="form-content">
<div class="title">
<?php
if(isset($_SESSION['msg'])):
?>
<h5><?php echo $_SESSION['msg']; ?></h5>
<?php
endif;
?>
</div>
</div>
<div class="form-content">
</div>
<div class="form-content">
</div>
<div class="form-content">
<div class="form-content">
</div>
<div class="form-content">
</div>
<div class="form-content">
</div>
<div class="form-content">
</div>
</form>
</div>
<div class="detail">
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>
</div>
</div>
</section>
</main>
</div>
<script type="text/javascript">
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
slides[i].style.display = "none";
slideIndex++;
</script>
</body>
</html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div class="container">
<header>
</header>
<main>
<div class="join-container">
<div class="form-content">
<?php
else:
endif;
?>
</div>
<div class="form-content">
</div>
<div class="form-content">
</div>
<div class="form-content">
password">
</div>
<div class="form-content">
</div>
<div class="form-content">
</div>
<div class="form-content">
</div>
</form>
</div>
</main>
</div>
</body>
</html>
<?php
endif;
?>
<?php
session_start();
if(isset($_SESSION['id'])):
header("location: index.php");
else:
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div class="container">
<header>
</header>
<main>
<div class="login-container">
<div class="form-content">
<?php
else:
endif;
?>
</div>
<div class="form-content">
</label>
</div>
<div class="form-content">
<label for="email">Password:
</label>
</div>
<div class="form-content">
</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'])):?>
</ul>
</nav>