-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_shop_details.php
141 lines (125 loc) · 4.51 KB
/
admin_shop_details.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
<?php
require('db.php');
?>
<!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>Shop Details</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">
<div class="center">
<br>
<h1 style="color:white;" >Shop Details</h1>
<br>
<h3 style="color:white;" style="margin-bottom: 3cm;" >Area 1: Food Court</h3>
<br>
<table class="table caption-top">
<tr class="table-light">
<th>Shop-No</th>
<th>Shop Name</th>
<th>Address</th>
<th>Contact</th>
<th>Area</th>
<th>Active</th>
<th>License Start Date</th>
<th>License Expiry Date</th>
<th>Approval Status </th>
</tr>
<?php
$query = "SELECT * FROM Shop WHERE Area = 1 ORDER BY sno ASC";
$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['sname'];?></td>
<td><?php echo $row['address'];?></td>
<td><?php echo $row['contact'];?></td>
<td><?php echo $row['area'];?></td>
<td><?php echo $row['Active'];?></td>
<td><?php echo $row['License_Start_Date'];?></td>
<td><?php echo $row['License_Expiry_Date'];?></td>
<td><?php if($row['Active']==0)echo 'Pending'; else echo 'Approved';?></td>
</tr>
<?php
}
?>
</table>
<br>
<h3 style="color:white;" style="margin-bottom: 3cm;" >Area 2: Faculty Quarter</h3>
<br>
<table class="table caption-top">
<tr class="table-light">
<th>Shop-No</th>
<th>Shop Name</th>
<th>Address</th>
<th>Contact</th>
<th>Area</th>
<th>Active</th>
<th>License Start Date</th>
<th>License Expiry Date</th>
<th>Approval Status </th>
</tr>
<?php
$query = "SELECT * FROM Shop WHERE Area = 2 ORDER BY sno ASC";
$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['sname'];?></td>
<td><?php echo $row['address'];?></td>
<td><?php echo $row['contact'];?></td>
<td><?php echo $row['area'];?></td>
<td><?php echo $row['Active'];?></td>
<td><?php echo $row['License_Start_Date'];?></td>
<td><?php echo $row['License_Expiry_Date'];?></td>
<td><?php if($row['Active']==0)echo 'Pending'; else echo 'Approved';?></td>
</tr>
<?php
}
?>
</table>
<br>
<h3 style="color:white;" style="margin-bottom: 3cm;" >Area 3: APJ Hostel</h3>
<br>
<table class="table caption-top">
<tr class="table-light">
<th>Shop-No</th>
<th>Shop Name</th>
<th>Address</th>
<th>Contact</th>
<th>Area</th>
<th>Active</th>
<th>License Start Date</th>
<th>License Expiry Date</th>
<th>Approval Status </th>
</tr>
<?php
$query = "SELECT * FROM Shop WHERE Area = 3 ORDER BY sno ASC";
$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['sname'];?></td>
<td><?php echo $row['address'];?></td>
<td><?php echo $row['contact'];?></td>
<td><?php echo $row['area'];?></td>
<td><?php echo $row['Active'];?></td>
<td><?php echo $row['License_Start_Date'];?></td>
<td><?php echo $row['License_Expiry_Date'];?></td>
<td><?php if($row['Active']==0)echo 'Pending'; else echo 'Approved';?></td>
</tr>
<?php
}
?>
</table>
</div>
<