1 | <B_selection> |
---|
2 | <div id="selection_objets[_(#ENV{l,no_lang})]"> |
---|
3 | <table class='spip liste'> |
---|
4 | [<caption><strong class="caption">(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{selection_objet:info_1_selection_objet,selection_objet:info_nb_selection_objets}}) |
---|
5 | [(#GET{langues}|count|>{1}|oui) |
---|
6 | [(#VALEUR)] |
---|
7 | ]</strong> |
---|
8 | </caption>] |
---|
9 | |
---|
10 | <BOUCLE_selection(SELECTION_OBJETS){par ordre,lang}{lang ?=#ENV{l}}{statut ?}{id_objet_dest ?} {objet_dest ?}> |
---|
11 | |
---|
12 | [<tr class="tr_liste" id='#ID_OBJET'>(#ID_OBJET|generer_modele{#OBJET,modeles_so/selection_interface_tr,#ARRAY{ |
---|
13 | id_selection_objet,#ID_SELECTION_OBJET, |
---|
14 | langue,#ENV{lang}, |
---|
15 | objet_dest,#OBJET_DEST, |
---|
16 | id_objet_dest,#ID_OBJET_DEST, |
---|
17 | total_boucle,#TOTAL_BOUCLE, |
---|
18 | id_selection_objet,#ID_SELECTION_OBJET, |
---|
19 | titre,#TITRE, |
---|
20 | compteur_boucle,#COMPTEUR_BOUCLE, |
---|
21 | date,#DATE, |
---|
22 | type_lien,#TYPE_LIEN, |
---|
23 | }})</tr>] |
---|
24 | </BOUCLE_selection> |
---|
25 | </table> |
---|
26 | </div> |
---|
27 | </B_selection> |
---|
28 | |
---|
29 | <script type="text/javascript"> |
---|
30 | $(function() { |
---|
31 | [(#REM)action rangement] |
---|
32 | $('#selection_objets[_(#ENV{l,no_lang})] .tr_liste a.select').click(function(){ |
---|
33 | $('#selection_objets[_(#ENV{l,no_lang})]').load($(this).attr("href")); |
---|
34 | return false; |
---|
35 | }); |
---|
36 | [(#REM)drag and drop] |
---|
37 | $( "#selection_objets[_(#ENV{l,no_lang})]" ).sortable({items:"tr.tr_liste"}); |
---|
38 | $( "#selection_objets[_(#ENV{l,no_lang})]" ).bind("sortupdate", function(event, ui) { |
---|
39 | var ordre = $(this).sortable('toArray').toString(); |
---|
40 | $('#selection_objets[_(#ENV{l,no_lang})]').load('[(#URL_ACTION_AUTEUR{ranger,nouvel_ordre-#ENV{l}-0-0-[(#OBJET_DEST)]-[(#ENV{id_objet_dest})]-load}|replace{&,&})]&nouvel_ordre='+ordre); |
---|
41 | }); |
---|
42 | }); |
---|
43 | </script> |
---|
44 | |
---|