Set autofocus attribute to user in index.php

This commit is contained in:
Grégory Soutadé 2015-11-05 18:06:21 +01:00
parent fe5e9208a3
commit 41261cf95f
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,7 @@
v0.6 (11/10/2015) v0.6 (05/11/2015)
** User **
Set autofocus attribute to user in index.php
** Dev ** ** Dev **
Use transactions for SQL updates Use transactions for SQL updates

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