function inc_signatures_dist($script, $id, $debut, $pas, $where, $order, $type='') { if ($id) { $args = "id_article=$id&"; } else $args = ""; $t = sql_countsel("spip_signatures", $where); if ($t > $pas) { $res = navigation_pagination($t, $pas, generer_url_ecrire($script, $args), $debut, 'debut', false); } else $res = ''; $limit = (!$pas AND !$debut) ? '' : (($debut ? "$debut," : "") . $pas); $arg = "debut=$debut&type=$type"; $res .= "<br />\n"; include_spip('inc/urls'); $r = sql_allfetsel('*', 'spip_signatures', $where, '', $order, $limit); foreach($r as $k => $row) $r[$k] = signatures_edit($script, $id, $arg, $row); return $res."<br />\n" . join("<br />\n", $r); }
function afficher_tranches_requete($num_rows, $idom, $url='', $nb_aff = 10, $old_arg=NULL) { static $ancre = 0; global $browser_name, $spip_lang_right, $spip_display; if ($old_arg!==NULL){ // eviter de casser la compat des vieux appels $cols_span ayant disparu ... $idom = $url; $url = $nb_aff; $nb_aff=$old_arg; } $ancre++; $self = self(); $ie_style = ($browser_name == "MSIE") ? "height:1%" : ''; $style = "style='visibility: hidden; float: $spip_lang_right'"; $nav= navigation_pagination($num_rows, $nb_aff, $url, _request($idom), $idom, true); $script = parametre_url($self, $idom, -1); $l = htmlentities(_T('lien_tout_afficher')); return http_img_pack("searching.gif", "*", "$style id='img_$idom'") . "\n<div style='$ie_style;' class='arial1 tranches' id='a$ancre'>" . $nav . "<a href='$script#a$ancre' class='plus'" . (!$url ? '' : generer_onclic_ajax($url, $idom,-1)) . "><img title=\"$l\" alt=\"$l\"\nsrc=\"" . chemin_image("plus.gif") . "\" /></a></div>\n"; }