customization: dark theme, auto-refresh back to index 5 s after submit

This commit is contained in:
2022-08-11 13:36:18 -07:00
parent 8512b62cb4
commit 68ac9a2005
5 changed files with 20 additions and 17 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
*.db *~

View File

@@ -40,7 +40,7 @@ function navbar($backurl)
$backurl = index.php; $backurl = index.php;
global $screensize; global $screensize;
echo "<div class=navbar> echo "<div class=navbar>
<span class=title>OpenKJ Songbook</span> <span class=title>City Karaoke Songbook</span>
</div><div class=mainbody><span class=backbtn><a class=button href=\"$backurl\" class=navbar id=backlink>Back</a></span>"; </div><div class=mainbody><span class=backbtn><a class=button href=\"$backurl\" class=navbar id=backlink>Back</a></span>";
} }

View File

@@ -14,7 +14,7 @@ if (strlen($_GET['q']) < 3)
die(); die();
} }
echo '<br><p>Search Results<br>Tap a song to submit it</p>'; echo '<br><p>Search Results<br>Click a song to submit it</p>';
$terms = explode(' ',$_GET['q']); $terms = explode(' ',$_GET['q']);
$no = count($terms); $no = count($terms);

View File

@@ -1,6 +1,6 @@
<?php <?php
include('global.inc'); include('global.inc');
#header("Refresh: 15; URL="); header("Refresh: 5; url=index.php");
siteheader("Song Submitted"); siteheader("Song Submitted");
@@ -27,9 +27,9 @@ $stmt = $db->prepare("INSERT INTO requests (singer,artist,title) VALUES(:singer,
$stmt->execute(array(":singer" => $singer, ":artist" => $artist, ":title" => $title)); $stmt->execute(array(":singer" => $singer, ":artist" => $artist, ":title" => $title));
newSerial(); newSerial();
echo "<p>Song: $artist - $title</p> echo "<p>Song: $artist - $title</p>
<p>Submitted for singer: $singer</p> <p>Submitted for singer: $singer</p>";
<br><p>Please press back to return to the main screen</p> // <br><p>Please press back to return to the main screen</p>
"; //";
sitefooter(); sitefooter();
?> ?>

View File

@@ -7,17 +7,19 @@ body
font-family: 'Scada', sans-serif; font-family: 'Scada', sans-serif;
font-size: 1.2em; font-size: 1.2em;
font-weight: bold; font-weight: bold;
background-color: white; background-color: #202020;
color: black; color: white;
padding-top: 60px; padding-top: 60px;
} }
input[type=text] { input[type=text] {
border: 2px solid black; border: 2px solid #202020;
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
margin-right: 5px; margin-right: 5px;
font-size: 1.2em; font-size: 1.2em;
font-weight: bold; font-weight: bold;
color: white;
background-color: #404040;
} }
p.info p.info
{ {
@@ -35,15 +37,15 @@ div.navbar
padding-bottom: 5px; padding-bottom: 5px;
padding-right: 5px padding-right: 5px
width: 100%; width: 100%;
background-color: white; background-color: #202020;
color: black; color: white;
text-align: left; text-align: left;
border-style: solid; border-style: solid;
border-width: 0px 0px 2px 0px; border-width: 0px 0px 2px 0px;
} }
a.navbar a.navbar
{ {
color: white; color: #202020;;
text-decoration: none; text-decoration: none;
} }
div.spacer div.spacer
@@ -61,7 +63,8 @@ table
} }
td.result td.result
{ {
color: black; color: white;
background-color: #202020;
font-size: 1.6em; font-size: 1.6em;
font-weight: bold; font-weight: bold;
text-align: left; text-align: left;
@@ -72,12 +75,12 @@ td.result
} }
input[type=button], input[type=submit], input[type=reset], a.button { input[type=button], input[type=submit], input[type=reset], a.button {
background-color: white; background-color: #202020;
border: 2px; border: 2px;
border-style: solid; border-style: solid;
border-color: black; border-color: white;
font-weight: bold; font-weight: bold;
color: black; color: white;
padding: 8px 20px; padding: 8px 20px;
margin-top: 12px; margin-top: 12px;
text-decoration: none; text-decoration: none;