-
Notifications
You must be signed in to change notification settings - Fork 2
/
loggedinAdvocate.php
279 lines (238 loc) · 7.37 KB
/
loggedinAdvocate.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
<!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/tab.css">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<script type="text/javascript">
function executeOnSubmit()
{
alert('Details inserted !')
}
</script>
<style>
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
</style>
<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:300px;
}
.centerbar p {
color: #ffffff;
padding-top: 10px;
}
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>
<title>Supreme Court Of India</title>
</head>
<header>
<center><h1>Supreme Court Of India</h1></center>
<center><h3>|| यतो धर्मस्ततो जयः ||</h3></center>
</header>
<div class="slideshow-container">
<div class="mySlides fade">
<img src="slide1.jpg" style="width:100%">
<div class="text"></div>
</div>
<div class="mySlides fade">
<img src="slide4.jpg" style="width:100%">
<div class="text"></div>
</div>
<div class="mySlides fade">
<img src="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="anc.html">Home</a></li>
<li><a href="anc.html">Notices & Circulars</a></li>
<li><a href="loggedinJV.php">Daily Orders</a></li>
<li><a href="loggedinef.php">E-Filled</a></li>
<li style="float:right"><a class="active" href="staffLogIn.html">Log Out</a></li>
</ul>
<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="loggedinJudges.php"><h5>●Judges</h5></a>
<a rel="Click Here" style="text-decoration:none;color:red;" href="loggedinAdvocate.php"><h5>●Advocates</h5></a>
<a rel="Click Here" style="text-decoration:none" href="loggedInCS.php"><h5>●Case Status</h5></a>
<a rel="Click Here" style="text-decoration:none;" href="loggedinJV.php"> <h5>●Judgements & Verdicts</h5></a>
<a rel="Click Here" style="text-decoration:none" href="loggedincaveat.html"><h5>●Caveat</h5></a>
<a rel="Click Here" style="text-decoration:none" href="loggedinCourtfees.html"><h5>●Court Fees</h5></a>
</div>
</div>
</div>
<div class="centerbar">
<h1><center>Advocate Details</center> </h1>
<div class="tab">
<button1 class="tablinks" onclick="openTab(event, 'Insert')" id="defaultOpen"><center>Insert</center></button1>
<button1 class="tablinks" onclick="openTab(event, 'Delete')"><center>Delete</center></button1>
</div>
<div id="Insert" class="tabcontent">
<form action="a_insert.php" method="POST" onsubmit="return executeOnSubmit();">
Name:<input type="text" name="a_name" required >
Code:<input type="text" name="a_code" required>
Mobile No.:<input type="text" name="m_no" required >
Email-ID:<input type="text" name="email">
Address:<input type="text" name="address">
Charge Per Appearence:<input type="text" name="charge" >
Acheivments:<input type="text" name="acheivments" >
<br><br>
<input type="submit" /><br><br>
</form>
</div>
<div id="Delete" class="tabcontent">
<table >
<tr>
<th>Name</th>
<th>AoR Code</th>
<th>Mobile no.</th>
<th>Email-Id</th>
<th>Address</th>
<th>Charge Per Appearance</th>
<th>Acheivments</th>
<th></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 name,code,mobile_no,email_id,address,charge,acheivments FROM advocates";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<tr><td> " . $row["name"]."</td><td>".$row["code"]."</td><td>".$row["mobile_no"]."</td><td>".$row["email_id"]."</td><td>".$row["address"]."</td><td>".$row["charge"]."</td><td>".$row["acheivments"]."</td><td>"." <button onclick=\"location.href='advocateDetailsDelete.php?id=".$row['code']."'\">Delete</button></td>"."</td></tr>";
}
} else {
echo "0 results";
}
$conn->close();
?>
</table>
</div>
<script>
function openTab(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();
</script>
</div>
</div>
</body>
<footer>
<p>Government Of India ● 2018</p>
</footer>
</html>