<a href="#fermer" title="Fermer" id="btn-fermer" ><?php echo img('icons/cross.png'); ?></a>

<form action="<?php echo WWW_ROOT; ?>/menuclassique/ajouter" method="POST" id="form-menu-ajouter">
    <input type="hidden" name="url" value=""/>
    <table class="table-css table-css-400px table-css-noborder" id="menu-ajouter">
        <caption><h4>Ajouter un élement</h4></caption>
        <tr>
            <td class="g">Nom</td>
            <td class="d">
                <input type="text" name="nom" value=""/>
            </td>
        </tr>
        <tr>
            <td class="g">Placement</td>
            <td class="d">
                <select name="parent_menu">
                    <option value="0">à la racine</option>
                    <optgroup label="dans ..."></optgroup>
                    <?php foreach ((array)v('items') as $MenuItem) { ?>
                    <option value="<?php echo $MenuItem->id; ?>"><?php echo $MenuItem->nom; ?></option>
                    <?php } ?>
                </select>
            </td>
        </tr>
        <tr>
            <td class="g">Type de lien</td>
            <td class="d">
                <input type="radio" name="type-lien" value="sans" checked="checked"> sans
                <input type="radio" name="type-lien" value="interne"> interne
                <input type="radio" name="type-lien" value="externe"> externe
            </td>
        </tr>
        <tr id="row-url-interne">
            <td class="g">Lien</td>
            <td class="d">
                <label for="url-interne">interne</label>
                <select id="url-interne" name="url-interne">
                    <option value="/accueil/index">accueil</option>
                    <option value="/tournoi/index">tournois</option>
                    <option value="/ladder/index">ladder</option>
                    <option value="/tournoi/listedesmatchs">les matchs</option>
                    <option value="/accueil/partenaires">partenaires</option>
                    <option value="/accueil/reglement">reglement</option>
                    <option value="/equipes/index">les équipes</option>
                </select>
            </td>
        </tr>
        <tr id="row-url-externe">
            <td class="g">Lien</td>
            <td class="d">
                <label for="url-externe">externe</label>
                <input type="text" name="url-externe" id="url-externe" value="http://"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" name="submit" value="ajouter"/>
            </td>
        </tr>
    </table>
</form>