-
Notifications
You must be signed in to change notification settings - Fork 1
/
complainanalysis.php
125 lines (103 loc) · 4.89 KB
/
complainanalysis.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Akhil is PRO</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.1/semantic.min.css">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans:400,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Comfortaa:400,700" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<nav>
<ul class="brand-logo">
<a href="#">
<img src="http://4.bp.blogspot.com/_J3v765bIS9A/S18Q5W7xupI/AAAAAAAAA2Y/-tnW72pqw0k/s640/indian_map.gif" alt="logo">
</a>
</ul>
<ul class="nav-links">
<li><a href="index.php">Complaints</a></li>
<li><a href="satellite.php">Satellite images</a></li>
<li><a href="satelliteanalysis.php">Satellite analysis</a></li>
<li><a href="#">Real time monitoring</a></li>
</ul>
</nav>
<br>
<div class="container">
<div class="fluid-container">
<div class="c-label">Uttar pradesh
</div>
<br>
<br>
<div class="ui segment">
<div class="row col-lg-12">
<div class="col-lg-4">
<?php
//echo $_REQUEST['imageid'];
if (isset($_REQUEST['imageid']))
{
$imageid = $_REQUEST['imageid'];
//echo $imageid;
$hostname = 'localhost';
$username = 'akhilgupta';
$password = '8171834923';
$database = 'irrs';
$conn = mysqli_connect($hostname,$username,$password,$database)
or die("Unable to connect with the Server.");
//$b = system('test.py',$a);
echo shell_exec("python testing4.py $imageid");
//echo $b;
//image fetch from database
$sql = "SELECT * FROM complainprocessing WHERE input_id = $imageid";
$result = mysqli_query($conn,$sql);
while ($row = mysqli_fetch_array($result)){
$image_name = $row["image_name"];
$vehicle = $row["vehicle"];
$potholes = $row["potholes"];
$freeways = $row["freeways"];
$traffic = $row["traffic"];
$pedestrian_lanes = $row["pedestrian_lanes"];
$time_stamp = $row["time_stamp"];
echo "<img style='float: left; margin:2%'; height = '300' width = '300' src = '$image_name'>";
// echo '<div class="col-lg-4">';
echo "<button class='col-lg-12 btn btn-info' style='margin-top:4px;' onclick='myfunction();';>Assign</button>";
?>
</div>
<?php
echo "<p style = 'text-align:right; margin-top:8%; margin-right:20%; float:right'";
echo "<b><em><font size =3%>VEHICLE :$vehicle";
echo '<br><br>';
echo " POTHOLES :$potholes";
echo '<br><br>';
echo " FREEWAYS :$freeways";
echo '<br><br>';
echo " TRAFFIC :$traffic";
echo '<br><br>';
echo " PEDESTRIAN LANES :$pedestrian_lanes";
echo '<br><br>';
// echo "TIME :$time_stamp";
echo '<br><br></p>';
//$imageid = $row["id"];
?>
<?php
}
}
?>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
function myfunction() {
alert("Workers has been assigned");
}
</script>