aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-04 15:58:27 +0200
committerMateja <mail@matejamaric.com>2020-10-04 15:58:27 +0200
commitaa11550b9e05f9a5f9a091bc524cabf1c3a8bda0 (patch)
tree472c9a7869329656485fb984de08ebea24c9b593
parent7c68757f672691d29c749fcbf3a95b22baffcede (diff)
downloadold-php-yota-aa11550b9e05f9a5f9a091bc524cabf1c3a8bda0.tar.gz
old-php-yota-aa11550b9e05f9a5f9a091bc524cabf1c3a8bda0.zip
Release 0.1
-rw-r--r--admin.php8
-rw-r--r--edit.php5
-rw-r--r--index.php6
-rw-r--r--reservation.php8
-rw-r--r--style.css10
5 files changed, 24 insertions, 13 deletions
diff --git a/admin.php b/admin.php
index ee50227..17da123 100644
--- a/admin.php
+++ b/admin.php
@@ -14,14 +14,16 @@ session_start();
<nav>
<a 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>';
- echo '<a class="active right" href="admin.php">Administration</a>';
+ echo '<a class="active" href="admin.php">Administration</a>';
+ echo '<a href="/logout.php">Logout</a>';
} else {
- echo '<a class="active right" href="/admin.php">Login</a>';
+ echo '<a class="active" href="/admin.php">Login</a>';
}
?>
+ </span>
</nav>
<main>
<?php
diff --git a/edit.php b/edit.php
index c515de7..5bc5b42 100644
--- a/edit.php
+++ b/edit.php
@@ -33,6 +33,11 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_SESSION['admin']) && $_SESSI
$recvData->operatorEmail = clear_input($recvData->operatorEmail);
$recvData->operatorPhone = clear_input($recvData->operatorPhone);
$recvData->qso = clear_input($recvData->qso);
+
+ $recvData->$specialCall = strtoupper($recvData->$specialCall);
+ $recvData->$modes = strtoupper($recvData->$modes);
+ $recvData->$operatorCall = strtoupper($recvData->$operatorCall);
+
} catch (Exception $e) {
die("Can't decode JSON!");
}
diff --git a/index.php b/index.php
index 39a38ab..5262804 100644
--- a/index.php
+++ b/index.php
@@ -17,10 +17,10 @@ session_start();
<span class="right">
<?php
if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
- echo '<a class="right" href="/logout.php">Logout</a>';
- echo '<a class="right" href="admin.php">Administration</a>';
+ echo '<a href="admin.php">Administration</a>';
+ echo '<a href="/logout.php">Logout</a>';
} else {
- echo '<a class="right" href="/admin.php">Login</a>';
+ echo '<a href="/admin.php">Login</a>';
}
?>
</span>
diff --git a/reservation.php b/reservation.php
index d557c1e..689f74e 100644
--- a/reservation.php
+++ b/reservation.php
@@ -14,14 +14,16 @@ session_start();
<nav>
<a href="index.php">Activity Plan</a>
<a class="active" 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>';
- echo '<a class="right" href="admin.php">Administration</a>';
+ echo '<a href="admin.php">Administration</a>';
+ echo '<a href="/logout.php">Logout</a>';
} else {
- echo '<a class="right" href="/admin.php">Login</a>';
+ echo '<a href="/admin.php">Login</a>';
}
?>
+ </span>
</nav>
<main>
diff --git a/style.css b/style.css
index ed88e24..7244b63 100644
--- a/style.css
+++ b/style.css
@@ -79,11 +79,13 @@ table {
width: 100%;
}
-thead {
- background-color: black;
+thead th {
color: white;
- /*color: black;*/
- /*background-color: #ccc;*/
+ background-color: black;
+ border: 1px solid #ccc;
+ background-clip: padding-box;
+ position: sticky;
+ top: 0;
}
td, th {