-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
55 lines (46 loc) · 1.6 KB
/
index.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
<?php
include 'header.php';
include 'db.php';
?>
<main>
<div class="container uk-margin-xlarge-top">
<div class="row">
<div class="col">
<p class="uk-text-bold uk-text-large">Freie Räume</p>
<div class="uk-flex uk-flex-wrap uk-text-center">
<?php
$notebooks_sql = "SELECT * FROM `raume` WHERE `belegt` = 0";
$notebooks = mysqli_query($con, $notebooks_sql);
while ($row = mysqli_fetch_assoc($notebooks)) {
$roomname = $row['Name'];
$roomebene = $row['Ebene'];
echo "<div class='cardcolorgreen uk-card uk-card-body uk-card-default uk-margin-left uk-margin-bottom uk-border-rounded'>". $row['Name'] ."<br>". $row['Ebene'] ."</div>";
}
?>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="">
<p class="uk-text-bold uk-text-large">Belegte Räume</p>
<div class="uk-flex uk-text-center">
<?php
$notebooks_sql = "SELECT * FROM `raume` WHERE `belegt` = 1";
$notebooks = mysqli_query($con, $notebooks_sql);
while ($row = mysqli_fetch_assoc($notebooks)) {
$roomname = $row['Name'];
$roomebene = $row['Ebene'];
echo "<div class='cardcolorred uk-card uk-card-body uk-card-default uk-margin-left uk-border-rounded'>". $row['Name'] ."<br>". $row['Ebene'] ."</div>";
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<?php
include 'footer.php';
?>