-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparticular_date_j.php
68 lines (59 loc) · 1.31 KB
/
particular_date_j.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
<?php
include "connection.php";
$date=$_POST['date'];
$sql = "SELECT hearing.reason ,hearing.summary from hearing,slotss where date='$date' and hearing.hid=slotss.hid";
$result = $con->query($sql);
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="navigation.css" media="screen"/>
</head>
<body>
<div class="sidenav">
<a href="judge.php">Summary of cases</a>
<a href="particular_date_j.html">View Hearings of a date</a>
<a href="pending_j.php">View pending cases</a>
<a href="completed_j.php">View completed cases</a>
</div>
<div class="content">
<table align="center" border="1px" style="width:600px; line-height:40px;">
<div align="right">
<button onclick="window.location='welcome.html';"><h2 align="right">LOG OUT</h2></button>
</div>
<tr>
<th colspan="2" ><h2>Hearings on chosen date</h2></th>
</tr>
<tr>
<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['reason'];
echo $hold;
?></th>
<th><?php $hold = $row['summary'];
echo $hold;
?>
</th>
</tr>
<?php
}
}
else {
?>
<html>
<script type="text/javascript">
alert("Error!!");
location='particular_date.html';
</script>
<?php
}
$con->close();
?>
</table>
</div>
</html>