-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompleted.php
84 lines (67 loc) · 1.69 KB
/
completed.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
<html>
<head>
<link rel="stylesheet" type="text/css" href="navigation.css" media="screen"/>
</head>
<body>
<div class="sidenav">
<a href="case.html">Enter case details</a>
<a href="hearing_1.php">Enter Hearing details</a>
<a href="slots.php">Book a slot</a>
<a href="particular_date.html">View Hearings of a date</a>
<a href="pending.php">View pending cases</a>
<a href="completed.php">View completed cases</a>
</div>
<div class="content">
<?php
include "connection.php";
$sql = "SELECT slotss.date, courtCase.cin ,hearing.reason,hearing.summary from courtCase,hearing,slotss where courtCase.status ='completed' and courtCase.cin=hearing.cin and hearing.hid=slotss.hid order by courtCase.cin, slotss.date";
$result = $con->query($sql);
?>
<div align="right">
<button onclick="window.location='welcome.html';"><h2 align="right">LOG OUT</h2></button>
</div>
<table align="center" border="1px" style="width:1000px; line-height:40px;">
<tr>
<th colspan="4" ><h2>All completed cases history</h2></th>
</tr>
<tr>
<th>Date of hearing</th><th>Case Id</th> <th>Reason of hearing </th><th>Summary of that hearing</th>
</tr>
<?php
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc())
{
?>
<tr>
<th><?php $hold=$row['date'];
echo $hold;
?></th>
<th><?php $hold = $row['cin'];
echo $hold;
?>
</th>
<th><?php $hold=$row['reason'];
echo $hold;
?></th>
<th><?php $hold = $row['summary'];
echo $hold;
?>
</th>
</tr>
<?php
}
}
else {
?>
<script type="text/javascript">
alert("No completed cases ");
location='registrar.html';
</script>
<?php
}
$con->close();
?>
</table>
</div>
</body>
</html>