Add autofocus to index and update copyright

This commit is contained in:
Gregory Soutade 2015-11-05 18:03:52 +01:00
parent 9dac732efe
commit 2e471ecbe5

View File

@ -55,7 +55,7 @@ if (!isset($_SESSION["user"]))
$users = GetUsers(); $users = GetUsers();
echo "<center><h1>KissCount</h1><br /><br/>\n"; echo "<center><h1>KissCount</h1><br /><br/>\n";
echo "<form id=\"login\" method=\"post\" action='index.php'>\n"; echo "<form id=\"login\" method=\"post\" action='index.php'>\n";
echo "Login : <select name=\"user\">\n"; echo "Login : <select name=\"user\" autofocus>\n";
foreach($users as $i => $name) foreach($users as $i => $name)
echo "<option value=\"$name\">$name</option>\n"; echo "<option value=\"$name\">$name</option>\n";
echo "</select><br /><br />\n"; echo "</select><br /><br />\n";
@ -63,7 +63,7 @@ if (!isset($_SESSION["user"]))
echo "<input type=\"submit\" value=\"Connect\"/>\n"; echo "<input type=\"submit\" value=\"Connect\"/>\n";
echo "</form></center>\n"; echo "</form></center>\n";
echo "<br /><br />\n"; echo "<br /><br />\n";
echo "<center><a href=\"http://indefero.soutade.fr/p/kisscount\">KissCount</a> &copy; 2010-2012 Grégory Soutadé</center>\n"; echo "<center><a href=\"http://indefero.soutade.fr/p/kisscount\">KissCount</a> &copy; 2010-2015 Grégory Soutadé</center>\n";
die(); die();
} }
else else