aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-04 14:46:33 +0200
committerMateja <mail@matejamaric.com>2020-10-04 14:46:33 +0200
commit7c68757f672691d29c749fcbf3a95b22baffcede (patch)
tree78457ad839089834094d741f4bb7c1a9696ab622 /index.php
parent49a53b71175f14d988ee79ef202743700eab0661 (diff)
downloadold-php-yota-7c68757f672691d29c749fcbf3a95b22baffcede.tar.gz
old-php-yota-7c68757f672691d29c749fcbf3a95b22baffcede.zip
finished. polishing
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 6fd938b..39a38ab 100644
--- a/index.php
+++ b/index.php
@@ -14,6 +14,7 @@ session_start();
<nav>
<a class="active" href="index.php">Activity Plan</a>
<a href="reservation.php">Make reservation</a>
+ <span class="right">
<?php
if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
echo '<a class="right" href="/logout.php">Logout</a>';
@@ -22,6 +23,7 @@ session_start();
echo '<a class="right" href="/admin.php">Login</a>';
}
?>
+ </span>
</nav>
<main>
<?php
@@ -45,7 +47,7 @@ session_start();
echo "<th>QSO</th>";
echo "</tr></thead><tbody>\n";
- foreach($db->query("SELECT * FROM $table where approved=false ORDER BY `id` DESC") as $row) {
+ foreach($db->query("SELECT * FROM $table where approved=true ORDER BY `id` DESC") as $row) {
echo "<tr>";
echo "<td>" . $row['operatorCall'] . "</td>";
echo "<td>" . $row['fromTime'] . "</td>";