-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_approval_sr.php
53 lines (47 loc) · 1.8 KB
/
admin_approval_sr.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
<?php
require('db.php');
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>View Charges</title>
<link rel="stylesheet" href="style.css"/>
</head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<body style="background-color:#006064 ;">
<div class="container">
<br>
<h1 style="color:white;" >License Requests</h1>
<br>
<table class="table caption-top">
<tr class="table-light">
<th>Shop-No</th>
<th>Manager-ID </th>
<th>Status</th>
</tr>
<?php
$query = "SELECT * FROM licenserequest";
$result = mysqli_query($db, $query);
while($row = mysqli_fetch_assoc($result)){
?>
<tr class="table-light">
<td><?php echo $row['sno'];?></td>
<td><?php echo $row['skid'];?></td>
<td>
<form action ="admin_approval_server_sr.php" method ="POST">
<input type = "date" name= "lsdate" />
<input type = "date" name= "ledate" />
<input type = "submit" name ="approve" value = "approve"/>
<input type = "submit" name ="deny" value = "decline"/>
<input type = "hidden" name ="sno" value = "<?php echo $row['sno'];?>"/>
<input type = "hidden" name ="skid" value = "<?php echo $row['skid'];?>"/>
</form>
</td>
</tr>
<?php } ?>
</table>
</div>