Esempio n. 1
0
function public_vertebrer_dist($desc)
{
	$nom = $desc['table'];
	$surnom = $desc['id_table'];
	$connexion = $desc['connexion'];
	$field = $desc['field'];
	$key = $desc['key'];

	ksort($field);

	$form = vertebrer_form($field);
	$crit = vertebrer_crit($field);
	$cell = vertebrer_cell($field);
	$sort = vertebrer_sort($field,'');
	$tros = vertebrer_sort($field,'_');
	$distant = !$connexion ? '' : "&connect=$connexion";
	$skel = "./?"._SPIP_PAGE."=table:$surnom$distant&var_mode=debug&var_mode_affiche=squelette#debug_boucle";
	  
	return
"#CACHE{0}
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='#LANG' lang='#LANG' dir='#LANG_DIR'>
<head>
<title>[(#NOM_SITE_SPIP|textebrut)] - #ENV{page}</title>
<INCLURE{fond=inc-head}>
</head>
<body class='page_rubrique'><div id='page'>
<INCLURE{fond=inc-entete}>
<div id='contenu'>
<h1 style='text-align:center'>#ENV{page}</h1><br />
<B1>
[<p class='pagination'>(#PAGINATION)</p>]
<table class='spip' border='1' width='90%'>
	<tr>
		<th><:info_numero_abbreviation:></th>$sort
	</tr>
	<tr>
		<td></td>$form
	</tr>
<BOUCLE1($surnom){pagination} 
		{par #ENV{tri}}{!par #ENV{_tri}}$crit>
	<tr class='[row_(#COMPTEUR_BOUCLE|alterner{'odd','even'})]'>
		<td style='text-align: right;'>#COMPTEUR_BOUCLE</td>$cell
	</tr>
</BOUCLE1>
	<tr>
		<th><:info_numero_abbreviation:></th>$tros
	</tr>
</table>
</B1>\n<h2 style='text-align:center'><:texte_vide:></h2>
<//B1></div>
<INCLURE{fond=inc-pied}{skel='$skel'}>
</div>
</body>
</html>";
}
Esempio n. 2
0
function public_vertebrer_dist($desc)
{
    $nom = $desc['table'];
    $surnom = $desc['id_table'];
    $connexion = $desc['connexion'];
    $field = $desc['field'];
    $key = $desc['key'];
    $defaut_tri = array_keys($field);
    $defaut_tri = reset($defaut_tri);
    //ksort($field);
    $form = vertebrer_form($field);
    $crit = vertebrer_crit($field);
    $cell = vertebrer_cell($field);
    $sort = vertebrer_sort($field, '');
    $distant = !$connexion ? '' : "&amp;connect={$connexion}";
    return "#CACHE{0}\n<B1>\n<h2>[(#GRAND_TOTAL|singulier_ou_pluriel{vertebres:1_donnee,vertebres:nb_donnees})]</h2>\n[<p class='pagination'>(#PAGINATION)</p>]\n<div style='overflow: scroll;overflow-y: auto'>\n<table class='spip'>\n\t<thead>\n\t<tr class='row_first'>\n\t\t<th>\n\t\t\t<p class='tri'>#TRI{'>',#CHEMIN_IMAGE{tri-asc-16.png}|balise_img{up},ajax}  #TRI{'<',#CHEMIN_IMAGE{tri-desc-16.png}|balise_img{desc},ajax}</p>\n\t\t</th>\n\t\t{$sort}\n\t</tr>\n\t<tr>\n\t\t<td></td>{$form}\n\t</tr>\n\t</thead>\n\t<tbody>\n<BOUCLE1({$surnom}){pagination}\n\t\t{tri {$defaut_tri}, direct}{$crit}>\n\t<tr class='[row_(#COMPTEUR_BOUCLE|alterner{'odd','even'})]'>\n\t\t<td style='text-align: right;'>#COMPTEUR_BOUCLE</td>{$cell}\n\t</tr>\n</BOUCLE1>\n\t</tbody>\n\t<tfoot>\n\t<tr>\n\t\t<th>\n\t\t\t<p class='tri'>#TRI{'>',#CHEMIN_IMAGE{tri-asc-16.png}|balise_img{up},ajax}  #TRI{'<',#CHEMIN_IMAGE{tri-desc-16.png}|balise_img{desc},ajax}</p>\n\t\t</th>\n\t\t{$sort}\n\t</tr>\n\t</tfoot>\n</table>\n</B1>\n<div style='overflow: scroll;overflow-y: auto'>\n<h2><:texte_vide:></h2>\n<table class='spip'>\n\t<thead>\n\t<tr class='row_first'>\n\t\t<th>\n\t\t\t<p class='tri'>#TRI{'>',#CHEMIN_IMAGE{tri-asc-16.png}|balise_img{up},ajax}  #TRI{'<',#CHEMIN_IMAGE{tri-desc-16.png}|balise_img{desc},ajax}</p>\n\t\t</th>\n\t\t{$sort}\n\t</tr>\n\t<tr>\n\t\t<td></td>{$form}\n\t</tr>\n\t</thead>\n</table>\n<//B1>\n</div>\n";
}