-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjv.php
301 lines (266 loc) · 8.54 KB
/
jv.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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/box.css">
<link rel="stylesheet" type="text/css" href="css/menubar.css">
<link rel="stylesheet" type="text/css" href="css/pop.css">
<link rel="stylesheet" type="text/css" href="css/abtbody.css">
<link rel="stylesheet" type="text/css" href="css/table.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
.container1 {
width:1000px;
height: 500px;
}
.leftbar {
width:300px;
float:left;
margin-top: 0px;
height: 150px;
}
.centerbar {
width:1000px;
height: 150px;
float:center;
margin-top: 50px;
margin-left:320px;
}
.centerbar p {
color: #ffffff;
}
header
{
background-color:#191970;
padding: 1px;
font-size: 15px;
color: white;
}
footer {
background-color: #191970;
padding: 20px;
text-align: center;
color: white;
margin-top: 500px;
}
</style>
<style>
.drop1 {
padding: 16px;
font-size: 16px;
border: darkblue;
cursor: pointer;
}
.drop1:hover, .drop1:focus {
background-color: #2980B9;
}
.drop1 {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color:#191970;
min-width: 150px;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
color: white;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.drop1 a:hover {background-color: #ddd;}
.show {display: block;}
</style>
<title>Judgements & Verdicts|Supreme Court Of India</title>
</head>
<header>
<center><a style="text-decoration:none;color:white" href="home.html"><h1>Supreme Court Of India</h1></a></center>
<center><h3>|| यतो धर्मस्ततो जयः ||</h3></center>
</header>
<div class="slideshow-container">
<div class="mySlides fade">
<img src="img/slide1.jpg" style="width:100%">
<div class="text"></div>
</div>
<div class="mySlides fade">
<img src="img/slide4.jpg" style="width:100%">
<div class="text"></div>
</div>
<div class="mySlides fade">
<img src="img/slide3.jpg" style="width:100%">
<div class="text"></div>
</div>
</div>
<br>
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<script>
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
setTimeout(showSlides, 1000); // Change image every 2 seconds
}
</script>
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="nc.html">Notices & Circulars</a></li>
<li><a class="active" href="do.php">Daily Orders</a></li>
<li><a href="ef.html">E-Filling</a></li>
<li style="float:right">
<div class="dropdown">
<a id="drop1" onclick="myFunction()">About The Court</a>
<div id="myDropdown" class="dropdown-content">
<a href="history.html">History</a>
<a href="contact.html">Contact</a>
</div>
</div>
</li>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.drop1')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</ul>
<div id="id01" class="modal">
<form class="modal-content animate" action="/action_page.php">
<div class="imgcontainer">
<span onclick="document.getElementById('id01').style.display='none'" class="close" title="Close Modal">×</span>
<img src="img/supreme.jpg" alt="Avatar" class="avatar">
</div>
<div class="container2">
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="uname" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<button type="submit">Login</button>
<label>
<input type="checkbox" checked="checked" name="remember"> Remember me
</label>
</div>
<div class="container2" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
<span class="psw"> <a href="#">Forgot password?</a></span>
</div>
</form>
</div>
<script>
// Get the modal
var modal = document.getElementById('id01');
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
<body>
<div class="container1">
<div class="leftbar">
<div class="card">
<div class="header">
<h3>Quick Links</h3>
</div>
<div class="container">
<a rel="Click Here" style="text-decoration:none" href="judges.php"><h5>●Judges</h5></a>
<a rel="Click Here" style="text-decoration:none" href="advocates.php"><h5>●Advocates</h5></a>
<a rel="Click Here" style="text-decoration:none" href="casestatus.php"><h5>●Case Status</h5></a>
<a rel="Click Here" style="text-decoration:none;color:red;" href="jv.php"><h5>●Judgements & Verdicts</h5>
</a><a rel="Click Here" style="text-decoration:none" href="cavet.php"> <h5>●Caveat</h5></a>
<a rel="Click Here" style="text-decoration:none" href="casecategory.php"><h5>●Case Category</h5></a>
<a rel="Click Here" style="text-decoration:none" href="cfshow.php"> <h5>●Court Fees</h5></a>
</div>
</div>
</div>
<div class="centerbar">
<form action="jvcase.php" method="POST">
<input id="search" size="30" type="text" name="case" placeholder="Search by Case No." >
</form>
<form action="jvdiary.php" method="POST">
<input id="search" type="text" name="diary" placeholder="Search by Diary No.">
</form>
<form action="jvdate.php" method="POST">
<input id="search" type="text" name="date" placeholder="Search by Judgement Date (YYYY-MM-DD)">
</form>
<h2>Judgements & Verdicts </h2>
<hr>
<table >
<tr>
<th>Case No.</th>
<th>Diary No.</th>
<th>Case Type</th>
<th>Case Year</th>
<th>Petitioner Name</th>
<th>Respondent Name</th>
<th>Respondent Advocates</th>
<th>Petitioner Advocates</th>
<th>Judges</th>
<th>Judgement Date</th>
<th>Description</th>
</tr>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "scdatabase";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT triggerjudgement.*,judgement.jd,judgement.description FROM triggerjudgement INNER JOIN judgement ON triggerjudgement.cno = judgement.caseno";
$result = $conn->query($sql);
if ($result->num_rows > 0 ) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<tr><td> " . $row["cno"]."</td><td>".$row["diaryno"]."</td><td>".$row["ctype"]."</td><td>".$row["cyear"]."</td><td>".$row["pname"]."</td><td>".$row["rname"]."</td><td>".$row["radvocates"]."</td><td>".$row["padvocates"]."</td><td>".$row["judges"]."</td><td>".$row["jd"]."</td><td>".$row["description"]."</td></tr>";
}
} else {
echo "0 results";
}
$conn->close();
?>
</table>
</div>
</div>
</body>
<footer>
<p>Government Of India ● 2018</p>
</footer>
</html>