forked from sushil11-art/Exam-Hall-Seating-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserViewSeatPlan.php
78 lines (67 loc) · 1.62 KB
/
userViewSeatPlan.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
<!DOCTYPE html>
<html>
<head>
<title>User View Seat Plan</title>
<style type="text/css">
.hr{
margin-top: 10px;
margin-right: 20px;
height: 3px;
background: darkgreen;
}
.th{
width: 100px;
height: 20px;
text-align: center;
}
.seat{
border: 1px solid black ;
border-radius: 10px;
margin-left:50px;
width: 600px;
}
</style>
<!-- <script type="text/javascript" src="js/viewRoom.js"></script> -->
</head>
<body>
<?php include "userSlide.php"; ?>
<div style="margin-left: 220px; margin-top: 60px; margin-right: 50px; margin-bottom: 50px;">
<!-- ----------------------------------------------------------------------------------------- -->
<div class="container">
<p><b>View seat plan</b></p>
</div>
<div class="container">
<hr class="hr">
</div>
<!-- --------------------------------- -->
<?php
$host = "localhost";
$dbusername = "root";
$dbpassword = "";
$dbname = "dbphp";
$con = mysqli_connect($host,$dbusername,$dbpassword,$dbname);
if (!$con) {
# code...
die("connection fail....".mysqli_connect_error());
}
$pubvalue=0;
$sql="select publish from publish";
$result_set = mysqli_query($con,$sql);
if (mysqli_num_rows($result_set)>0) {
while($row = mysqli_fetch_array($result_set)){
$pubvalue=$row['publish'];
}
}
?>
<?php
if ($pubvalue==1) {
include "viewSeatPlan.php";
}
else{
echo "seat plan not publish---";
}
?>
<!-- ............................. -->
</div>
</body>
</html>