diff options
author | Mateja <mail@matejamaric.com> | 2020-10-04 14:46:33 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-04 14:46:33 +0200 |
commit | 7c68757f672691d29c749fcbf3a95b22baffcede (patch) | |
tree | 78457ad839089834094d741f4bb7c1a9696ab622 /index.php | |
parent | 49a53b71175f14d988ee79ef202743700eab0661 (diff) | |
download | old-php-yota-7c68757f672691d29c749fcbf3a95b22baffcede.tar.gz old-php-yota-7c68757f672691d29c749fcbf3a95b22baffcede.zip |
finished. polishing
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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>"; |