| Current Path : /home/quelfutuu/www/plugins/auto/menus/v3.1.2/prive/objets/liste/ |
| Current File : /home/quelfutuu/www/plugins/auto/menus/v3.1.2/prive/objets/liste/menus_associer.html |
[(#SET{defaut_tri,#ARRAY{
multi titre,1,
identifiant,1,
id_menu,1
}})
]
#SET{exclus,#ENV**{exclus,#ENV{objet_source}|lister_objets_lies{#ENV{objet},#ENV{id_objet},#ENV{_objet_lien}}}}
#SET{debut,#ENV{debutmena,#EVAL{_request("debutmena");}}}
<B_liste_menus>
[(#REM) En cas de pagination indirecte @32, il faut refaire le set car la boucle
a mis a jour la valeur avec la page reelle]
#SET{debut,#ENV{debutmena,#EVAL{_request("debutmena");}}}
#SET{afficher_lettres,#TRI|=={'multi titre'}|oui}
#ANCRE_PAGINATION
<div class="liste-objets liste-objets-associer menus">
<table class="spip liste">
[<caption><span class="caption"><strong>(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{menus:info_1_menu,menus:info_nb_menus}})</strong>
<span class="recherche">
<label for="recherche-#ENV{id}"><:info_rechercher_02:></label>
<input type="text" class="recherche" name="recherche" id="recherche-#ENV{id}" value="#ENV{recherche}" />
<input type="submit" class="tout_voir" name="tout_voir" value="<:info_tout_afficher:>" />
</span>
</span>
</caption>]
<thead>
#SET{p,''}
<BOUCLE_lettre(MENUS){tout}{!id_menu IN #GET{exclus}}{id_menus_entree=0}{where?}{recherche?}
{tri #ENV{par,multi titre},#GET{defaut_tri}}{id_menu==#GET{afficher_lettres}|?{'.*','A'}}>[
(#TITRE**|extraire_multi|initiale|unique|oui)
[(#SET{p,#GET{p}|concat{
#SELF|parametre_url{debutmena,@#ID_MENU}|ancre_url{paginationmena}|afficher_initiale{#TITRE**|extraire_multi|initiale{},#COMPTEUR_BOUCLE,#GET{debut},#ENV{nb,10}}
}})]
]#SAUTER{#ENV{nb,10}|moins{#COMPTEUR_BOUCLE|=={1}|?{2,1}}}</BOUCLE_lettre>[
(#SET{p,
#GET{p}|concat{
#REM|afficher_initiale{#REM,#TOTAL_BOUCLE,#GET{debut},#ENV{nb,10}}
}
})]</B_lettre>
[<tr><td colspan="3"><p class="pagination">(#GET{p})</p></td></tr>]
<tr class="first_row">
<th class="titre" scope="col">[(#TRI{multi titre,<:menus:formulaire_titre:>,ajax})]</th>
<th class="identifiant" scope="col">[(#TRI{identifiant,<:menus:formulaire_identifiant:>,ajax})]</th>
<th class="action" scope="col"></th>
</tr>
</thead>
<tbody>
<BOUCLE_liste_menus(MENUS){!id_menu IN #GET{exclus}}{id_menus_entree=0}{where?}{recherche?}
{tri #ENV{par,multi titre},#GET{defaut_tri}}{pagination #ENV{nb,10} mena}>
<tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})][ (#EXPOSE|unique)][ (#TITRE**|extraire_multi|initiale|=={#ENV{i}}|?{on}|unique)]">
<td class="titre">[(#LOGO_MENU|image_reduire{20,20})]<a href="[(#URL_ECRIRE{menu_edit,id_menu=#ID_MENU})]">#TITRE</a></td>
<td class="identifiant secondaire">#IDENTIFIANT</td>
<td class="action">
<button type="submit" class="button link add" name="ajouter_lien\[menu-#ID_MENU-#OBJET-#ID_OBJET\]" value="+"><:menus:ajouter_lien_menu:> [(#CHEMIN_IMAGE{ajouter-12.png}|balise_img{'+'})]</button>
</td>
</tr>
</BOUCLE_liste_menus>
</tbody>
</table>
[<nav class='pagination'>(#PAGINATION{#ENV{pagination,prive}})</nav>]
</div>
</B_liste_menus>[(#ENV{recherche}|oui)
<div class="liste-objets liste-objets-associer menus caption-wrap">
<span class="caption"><strong>[(#VAL{info_recherche_auteur_zero}|_T{#ARRAY{cherche_auteur,#ENV{recherche}}})]</strong>
<span class="recherche">
<label for="recherche-#ENV{id}"><:info_rechercher_02:></label>
<input type="text" class="recherche" name="recherche" id="recherche-#ENV{id}" value="#ENV{recherche}" />
<input type="submit" class="tout_voir" name="tout_voir" value="<:info_tout_afficher:>" />
</span>
</span>
</div>
]<//B_liste_menus>