Subversion Repositories Applications.framework

Rev

Rev 177 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<h2>Ajout d'un administrateur</h2>
<form id="modif_admin" method="post" action="<? $url_form = clone($base_url); 
                                                                                        $url_form->setVariableRequete('m','ajout_admin'); 
                                                                                        echo $url_form; ?>">
        <fieldset>
                <?php if (isset($erreurs['champs'])): ?>
                        <p class="symbole_obligatoire"> <?=$erreurs['champs'] ?> </p>
                <?php endif; ?>
                <ul>
                        <li>
                                <label for="admin_nom">Nom :</label>
                                <input type="text" id="admin_nom" name="admin_nom" maxlength="80" tabindex="1" value="<?=$admin['ga_nom'];?>" />
                        </li>
                        <li>
                                <label for="admin_prenom">Prénom :</label>
                                <input type="text" id="admin_prenom" name="admin_prenom" maxlength="80" tabindex="2" value="<?=$admin['ga_prenom'];?>" />
                        </li>
                        <li>
                                <label for="admin_mail">Mail :</label>
                                <input type="text" id="admin_mail" name="admin_mail" maxlength="120" tabindex="3" value="<?=$admin['ga_mail'];?>" />
                                <?php if (isset($erreurs['mail'])): ?>
                                        <span class="symbole_obligatoire"> <?=$erreurs['mail'] ?> </span>
                                <?php endif; ?>
                        </li>
                        <li>
                                <label for="admin_lang">Langue : </label>
                                <select id="admin_lang" name="admin_lang" tabindex="4">
                                        <option value="fr-FR" <?=($admin['ga_ce_i18n'] == "fr-FR") ? 'selected="selected"' : '';?>>Français</option>
                                        <option value="en-EN" <?=($admin['ga_ce_i18n'] == "en-EN") ? 'selected="selected"' : '';?>>Anglais</option>
                                </select>
                        </li>
                        <li>
                                <label for="password">Mot de passe :</label>
                                <input type="password" id="admin_pass" name="admin_pass" maxlength="80" tabindex="5" value="" />
                        </li>
                        <li>
                                <label for="password_confirm">Confirmez le mot de passe :</label>
                                <input type="password" id="admin_pass_confirm" name="admin_pass_confirm" maxlength="80" tabindex="6" value="" />
                                <?php if (isset($erreurs['pass'])): ?>
                                        <span class="symbole_obligatoire"> <?=$erreurs['pass'] ?> </span>
                                <?php endif; ?>
                        </li>
                </ul>
        </fieldset>
        <input type="submit" id="valider_ajout_admin" name="valider_ajout_admin" tabindex="7" value="Ajouter" />
        <a href="<? $url_annul = clone($base_url); $url_annul->setVariableRequete('m','liste_admin'); echo $url_annul; ?>">Annuler</a>
</form>