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 /admin.php | |
parent | 49a53b71175f14d988ee79ef202743700eab0661 (diff) | |
download | old-php-yota-7c68757f672691d29c749fcbf3a95b22baffcede.tar.gz old-php-yota-7c68757f672691d29c749fcbf3a95b22baffcede.zip |
finished. polishing
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -24,7 +24,6 @@ session_start(); ?> </nav> <main> -<p id="notice"></p> <?php if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) { try { @@ -34,7 +33,8 @@ if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) { $conn = new PDO("mysql:host=localhost;dbname=$database", $user, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - echo '<div style="overflow-x:auto;">'; + echo '<p id="notice">Reservation records: </p>'; + echo '<div class="tablediv">'; echo "<table><thead>\n"; echo "<tr>"; echo "<th>ID</th>"; @@ -57,7 +57,7 @@ if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) { echo "<td>" . $row['id'] . "</td>"; if ($row['approved']) - echo "<td><input type=\"checkbox\" checked></td>"; + echo "<td class=\"center\"><input type=\"checkbox\" checked></td>"; else echo "<td class=\"center\"><input type=\"checkbox\"></td>"; |