-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfaces.php
128 lines (95 loc) · 3.56 KB
/
faces.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
<?php
session_start();
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "fir";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
$uname = $_SESSION['user_name'];
$aResult = mysqli_query($conn, "SELECT * FROM faces WHERE username='$uname'");
$actualpath = "/uploads/";
?>
<html>
<head>
</head>
<body>
<?php
require_once ('clientheader.php');
?>
<br>
<form name="frmForm" id="frmForm">
<table border="1" width="100%" height="30%">
<tr>
<th><font color='Red'>Name</font></th>
<th><font color='Red'>Crime Time</font></th>
<th><font color='Red'>Place</font></th>
<th><font color='Red'>Crime Type</font></th>
<th><font color='Red'>Evidence 1</font></th>
<th><font color='Red'>Evidence 2</font></th>
<th><font color='Red'>Evidence 3</font></th>
<th><font color='Red'>Evidence 4</font></th>
<th><font color='Red'>Suspect 1</font></th>
<th><font color='Red'>Suspect 2</font></th>
<th><font color='Red'>Suspect 3</font></th>
<th><font color='Red'>Suspect 4</font></th>
<th><font color='Red'>Statement 1</font></th>
<th><font color='Red'>Statement 2</font></th>
<th><font color='Red'>Statement 3</font></th>
<th><font color='Red'>Statement 4</font></th>
</tr>
<?php
while($rows = mysqli_fetch_array($aResult,MYSQL_ASSOC))
{
$id = $rows['id'];
$username = $rows['username'];
$crime_time = $rows['crime_time'];
$place = $rows['place'];
$crime_type = $rows['crime_type'];
$add1 = $rows['add1'];
$add2 = $rows['add2'];
$add3 = $rows['add3'];
$add4 = $rows['add4'];
$suspect1 = $rows['suspect1'];
$suspect2 = $rows['suspect2'];
$suspect3 = $rows['suspect3'];
$suspect4 = $rows['suspect4'];
$statment1 = $rows['statment1'];
$statment2 = $rows['statment2'];
$statment3 = $rows['statment3'];
$statment4 = $rows['statment4'];
?>
<tr>
<td><b><font color='#663300'><?php echo $username;?></font></b></td>
<td><b><font color='#663300'><?php echo $crime_time;?></font></b></td>
<td><b><font color='#663300'><?php echo $place;?></font></b></td>
<td><b><font color='#663300'><?php echo $crime_type;?></font></b></td>
<td><b><font color='#663300'><img src="uploads/<?php echo $add1; ?>" alt="" width="50" height="50" ></font></b></td>
<td><b><font color='#663300'><img src="uploads/<?php echo $add2; ?>" alt="" width="50" height="50" ></font></b></td>
<td><b><font color='#663300'><img src="uploads/<?php echo $add3; ?>" alt="" width="50" height="50" ></font></b></td>
<td><b><font color='#663300'><img src="uploads/<?php echo $add4; ?>" alt="" width="50" height="50" ></font></b></td>
<td><b><font color='#663300'><?php echo $suspect1;?></font></b></td>
<td><b><font color='#663300'><?php echo $suspect2;?></font></b></td>
<td><b><font color='#663300'><?php echo $suspect3;?></font></b></td>
<td><b><font color='#663300'><?php echo $suspect4;?></font></b></td>
<td><b><font color='#663300'><?php echo $statment1;?></font></b></td>
<td><b><font color='#663300'><?php echo $statment2;?></font></b></td>
<td><b><font color='#663300'><?php echo $statment3;?></font></b></td>
<td><b><font color='#663300'><?php echo $statment4;?></font></b></td>
</td>
</tr>
<?php } ?>
</table>
<?php
require_once ('footer.php');
?>
</form>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.10.2.min.js"><\/script>')</script>
<script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="js/waypoints.js"></script>
<script src="js/jquery.fittext.js"></script>
<script src="js/main.js"></script>
</body>
</html>