-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcriminals.php
More file actions
155 lines (143 loc) · 4.14 KB
/
Copy pathcriminals.php
File metadata and controls
155 lines (143 loc) · 4.14 KB
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
144
145
146
147
148
149
150
151
152
153
154
155
<?php
session_start();
include 'crime.php';
$_SESSION['veri'];
if(!empty($_SESSION['ver'])){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style>
@import "forms.css";
</style>
<script>
<!--
function sea(){
alert("Success");
window.location="register.php";
}
function go(){
window.location="print.php";
}
function sear(){
alert("Empty Field(s)");
}
function ut(){
alert("Unsuppoted Image format/ Limit of 500MB");
}
function utau(){
alert("Audio format must be .wav/ limit of 10MB");
}
function ad(){
alert("Successfully joined admins");
}
function wl(){
var i;
window.location='print.php';
alert('You will be redirected soon');
}
function red(){
alert("Successfully Joined Admins");
setTimeout('wl()',100);
}
-->
</script>
<title>Home</title>
<link rel="stylesheet" media="screen" type="text/css" href="style.css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
</head>
<body>
<div id="container">
<div id="body_space">
<div id="header">
<div id="logo-block">
<!-- type your logo and small slogan here -->
<p id="logo">Crime<span class="logoblue">report</span></p>
<p id="slogan">Alert us Morning</p>
<!-- end logo and small slogan -->
</div>
<div id="definels">
<!-- login -->
<div id="login_top">
</div>
<!-- end login -->
<!-- search -->
<div id="search"></div>
<!-- end search -->
</div>
<div class="cls"></div>
<div id="top-nav-bg">
<div id="top-nav">
<!-- start top navigation bar -->
<ul>
<li><a href="index.php">Home</a></li>
<?php include 't.php';?>
</ul>
<!-- end top navigation bar -->
</div>
</div>
</div>
<div id="clouds">
<!-- large slogan here -->
<div id="clouds-slogan1">
<p>Be Alert ,Be Alive!</p></div>
<div id="clouds-slogan2">
<p>Criminal Report System</p></div>
<!-- end large slogan -->
</div>
</div>
</div>
<div id="page">
<div id="page-padding">
<!-- start content -->
<div id="content" style=" background:gainsboro; width:auto; margin-left:0px;">
<div id="content-padding" style="margin-left:0px;">
<h1>Criminals</h1>
<table border='1' cellspacing="0" cellpadding="10" style="color:black; font-style:normal;font-size:24px; font-family:'Browallia New';">
<tr><th>Case No.</th><th>Name</th><th>Offense</th><th>Date Arrested</th>
<th>Date of Conviction</th><th>Cell No.</th><th>Court</th><th>Years of Conviction</th><th>Inspector</th>
<th>Age</th><th>Operation</th></tr>
<?php
$sql=mysql_query("SELECT * FROM criminals WHERE sta='locked'");
while($er=mysql_fetch_assoc($sql)){
$n=ucwords($er['name']);
$p=$er['photo'];
$dob=$er['dob'];
$sto=ucwords($er['sto']);
$nk=ucwords($er['nk']);
$off=$er['offense'];
$lga=ucwords($er['lga']);
$age=$er['age'];
$sta=$er['sta'];
$dconv=$er['dconviction'];
$darrest=$er['darrest'];
$insp=ucwords($er['icg']);
$court=$er['court'];
$cell=$er['cell'];
$real=$er['yrs'];
$id=$er['id'];
echo "<tr><td>$id</td><td><a href='face/$p'><img src='face/$p' width='25' height='25'></a> $n</td><td>$off</td>
<td>$darrest</td><td>$dconv</td>
<td>$cell</td><td>$court</td><td>$real</td>
<td>$insp</td><td>$age</td><td><a href='ex.php?m=$id'>Release</a></td></tr>";
}
?>
</table>
</div>
</div>
<!-- end content --></div>
<div id="footer">
<div id="footer-pad">
<!-- footer and copyright notice -->
<p> </p>
<!-- end footer and copyright notice -->
</div>
</div>
</div>
</body>
</html>
<?php
}else{
header('location:index.php');
}
?>