Ejemplo n.º 1
0
function selective_column_tt($arraykey,$list,$plus,$minus,$main=0){
	global $dico_termes,$my_period,$backdark,$backdarker;
	$fz="
		";
	$backcolor=$backdark;
	$ncolumns=2;
	$wcolumns=width_column($ncolumns,$arraykey)-2;
	$columns=make_columns($ncolumns,count($arraykey));
	$fz.='<table class="commentitems" ';
	$fz.='style="background-color:'.$backcolor.';"';
	$fz.=' rules=groups border=1 cellpadding=5>';
	$fz.='<tr align=left valign=top class="ui-widget-cluster">';
	for ($i=0;$i<$ncolumns;$i++) {
		$fz.="<td>";
		for ($j=$columns[$i][0];$j<=$columns[$i][1];$j++) {
			$terme=$arraykey[$j][1];
			$added=0;$removed=0;$there=0;
			if (in_array($terme,$plus)) $added=1;
			if (in_array($terme,$list)) $there=1;
			if (in_array($terme,$minus)) $removed=1;
			
			if ($there OR $removed) {
				if ($there) {
					$fz.="<a href=chart.php?id_concept=".$terme."&periode=".arrange_periode($my_period);
					$fz.=">";
					}
				if (!$added) $fz.="<b>";
				if ($removed) $fz.='<s style="color:#AAAAAA;">';
				$fz.=remove_popo($dico_termes[$terme]);
				if ($removed) $fz.="</s>";
				if (!$added) $fz.="</b>";
				if ($there) $fz.="</a>";
				}
			else $fz.='<span style="color:'.$backcolor.';">'.remove_popo($dico_termes[$terme]).'</span>';
			$fz.=("<br>");
			}
			
		$fz.='</td>';
		if ($i<$ncolumns-1) $fz.="<td width=10%></td>";
		}
	$fz.="</tr>";
	$fz.="</table>";
	return ($fz);
}
Ejemplo n.º 2
0
//bloc d'affichage des termes

echo "<td width=57.5% align=justify>";

$ensemble_concepts_tri=array();
for($i=0;$i<count($ensemble_concepts);$i++)
	{$ensemble_concepts_tri[$ensemble_concepts_string[$i]]=$ensemble_concepts[$i];}
uksort($ensemble_concepts_tri,"strcasecmpcam");
$ensemble_concepts_tri_keys=array_keys($ensemble_concepts_tri);

$ncolumns=3;
$columns=make_columns($ncolumns,count($ensemble_concepts_tri));
echo "<table class=tableitems width=100%><tr valign=top>";
foreach($columns as $col)
	{
	echo "<td width=".width_column($ncolumns)."%>";
	for ($i=$col[0];$i<=$col[1];$i++){
		$key=$ensemble_concepts_tri_keys[$i];
		$id=$ensemble_concepts_tri[$key];
		echo "<a href=chart.php?id_concept=".$id."&periode=".arrange_periode($my_period).">".$key.'</a> <i style="font-size:6pt;">('.$id.")</i><br>";
		}
	echo "</td><td width=3%></td>";
	}
echo "</tr></table>";

echo "</td>";

echo("</tr>");
echo "</table>";

Ejemplo n.º 3
0
function display_columns($n, $l, $force_width = "yes")
{
    $w = width_column($n);
    $c = make_columns($n, count($l));
    $td = '';
    if ($force_width == "yes") {
        $td = ' width=' . $w . '%';
    }
    for ($i = 0; $i < $n; $i++) {
        echo "<td" . $td . ">";
        if ($c[$i][0] < count($l)) {
            for ($j = $c[$i][0]; $j <= $c[$i][1]; $j++) {
                echo $l[$j] . "<br>";
            }
        }
        echo '</td>';
    }
}