Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/liberlog/prive/formulaires/selecteur/ |
<script type='text/javascript'>var img_unpick='#CHEMIN_IMAGE{supprimer-12.png}'; jQuery.getScript('[(#CHEMIN{formulaires/selecteur/jquery.picker.js}|timestamp)]'); </script> [(#REM) afficher la selection dans un ul class item_picked @param int select 1 => le selecteur se comporte comme un select, avec un seul choix possible @param string name nom de l'input envoye @param string|array selected liste de valeurs sour la forme array("rubrique|9","article|8",...) ou "rubrique|9,article|8,..." @param int id_rubrique @param int id_article @param int afficher_langue ]<ul class='item_picked[ (#ENV{select,''}|?{select})]'> <INCLURE{fond=formulaires/selecteur/inc-sel-rubriques}{name}{selected}{select}{img_unpick=#CHEMIN_IMAGE{supprimer-12.png}}{afficher_langue}> </ul> #SET{id_rubrique,#ENV{id_rubrique}} <BOUCLE_art(ARTICLES){statut?}{tout}{id_article}>#SET{id_rubrique,#ID_RUBRIQUE}</BOUCLE_art> [(#REM) le container item_picker est ici pour etre voisin de item_picked ------] <div class='item_picker'> <INCLURE{fond=formulaires/selecteur/picker-ajax}{id_rubrique=#GET{id_rubrique}}{id_article}{rubriques=1}{articles=0}{ajax}{env}> </div> [(#ENV{sortable,non}|=={oui}|oui) <script type='text/javascript'> (function(){ const picked_sorter = () => { new Sortable(document.querySelector("ul.item_picked")); }; if (typeof Sortable === "undefined") { jQuery.getScript('[(#CHEMIN{prive/javascript/Sortable.min.js}|timestamp)]').done(picked_sorter); } else { picked_sorter(); } })(); </script> ]