X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fplonger.php;fp=www%2Fecrire%2Finc%2Fplonger.php;h=1faa441d4a3930017504027724b739c9ce8d31fe;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/ecrire/inc/plonger.php b/www/ecrire/inc/plonger.php new file mode 100644 index 0000000..1faa441 --- /dev/null +++ b/www/ecrire/inc/plonger.php @@ -0,0 +1,110 @@ +[' . $row['lang'] . ']'; + $ordre[$row['id_rubrique']] = $t; + } + } + } + $next = isset($list[$col]) ? $list[$col] : 0; + if ($ordre) { + $rec = generer_url_ecrire('plonger',"rac=$idom&exclus=$exclu&do=$do&col=".($col+1)); + $info = generer_url_ecrire('informer', "type=rubrique&rac=$idom&do=$do&id="); + $args = "'$idom',this,$col,'$spip_lang_left','$info',event"; + while (list($id, $titrebrut) = each($ordre)) { + + $titre = supprimer_numero($titrebrut); + + $classe1 = $id_rubrique ? 'petite-rubrique' : "petit-secteur"; + if (isset($rub[$id]["enfants"])) { + $classe2 = " class='rub-ouverte'"; + $url = "\nhref='$rec&id=$id'" ; + } else { $url = $classe2 = '' ; } + + $js_func = $do . '_selection_titre'; + $click = "\nonclick=\"changerhighlight(this.parentNode.parentNode.parentNode);\nreturn " + . (!is_array($list) ? ' false' + : "aff_selection_provisoire($id,$args)") +# ce lien provoque la selection (directe) de la rubrique cliquee +# et l'affichage de son titre dans le bandeau + . "\"\nondblclick=\"" + . "$js_func(this." + . "firstChild.nodeValue," + . $id + . ",'selection_rubrique','id_parent');" + . "\nreturn aff_selection_provisoire($id,$args);" + . "\""; + + $ret .= "
" + . $titre + . "
"; + } + } + + $idom2 = $idom . "_col_".($col+1); + $left = ($col*150); + + return http_img_pack("searching.gif", "*", "style='visibility: hidden; position: absolute; $spip_lang_left: " + . ($left-30) + . "px; top: 2px; z-index: 2;' id='img_$idom2'") + . "
" + . $ret + . "\n
\n
" + . ($next + ? inc_plonger_dist($id_rubrique, $idom, $list, $col+1, $exclu) + : "") + . "\n
"; +} + +?>