no to tak
w login_body.tpl
znajdx
Kod:
<td width="45%" align="right"><span class="gen">{L_USERNAME}:</span></td>
<td>
<input type="text" class="post" name="username" size="25" maxlength="40" value="{USERNAME}" />
</td>
zmien na
Kod:
<td width="45%" align="right"><span class="gen">{L_USERNAME}:</span></td>
<td>
<select name=username>
{USERNAME_LIST}
</select>
</td>
w login.php
znajdx
Kod:
//
// Do a full login page dohickey if
wcześniej dodaj
Kod:
$sql = "SELECT username
FROM " . USERS_TABLE . "
ORDER BY username ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', __LINE__, __FILE__, $sql);
}
while($row = $db->sql_fetchrow($result))
{
$username_list .= '<option value=' . $row['username'] . '>' . $row['username'] . '</option>';
}
$template->assign_vars(array(
'USERNAME_LIST' => $username_list));
jak chcesz tez ta liste na stronie głónej to powiedz
jak chcesz inne sortowanie to tez powiedz
Autor postu otrzymał pochwałę
AIFM [1%] - kiedyś powstanie