<input type="text" name="admin_cred" size="1" maxlength="1" value="<?php echo $creditos ?>" />
créditos a
<select name="admin_cred_user">
- <?php foreach ($users as $u)
- {
- printf("<option value=\"%s\"%s>%s %s (%d)</option>\n",
- $u->getId(), ($u->getId() == $user) ? ' selected="selected"' : '',
- $u->getNombre(), $u->getApellido(), $u->getCreditos());
- } ?>
+ <?php foreach ($users as $u) echo $u->toHtmlOption($user) ?>
</select><br />
Contraseña: <input type="password" name="admin_cred_pass" /> (esta operación requiere contraseña)
</p>