$page = "cluster.php?id_cluster=".$liste_clusters[0]."&periode=".arrange_periode($my_period); ?><script>location.href='<? echo $page; ?>'</script><? } else { $page="meta12.php?label1=".$id_label1."&label2=".$id_label2."&periode=".arrange_periode($my_period); ?><script>location.href='<? echo $page; ?>'</script><? } $liste_clusters_label1 =export_label1($liste_clusters,$my_period); $liste_clusters_label2 =export_label2($liste_clusters,$my_period); $label1 = get_concept_string($liste_clusters_label1); $label2 = get_concept_string($liste_clusters_label2); $ensemble_concepts = export_concepts($liste_clusters,$my_period); $ensemble_concepts_string = get_concept_string($ensemble_concepts); $label = get_concept_string(array($id_label)); $label = $label[0]; $label_1 = $label1[0]; $label_2 = $label2[0]; echo '<p><table width=100% class=tableitems>'; if ($type=="gs") { echo '<tr valign=top><td width=2.5%></td><td><h2 class=subtitle>noeud de la carte labellisé par "<i>'.$label_1.'-'.$label_2.'"</i> <i style="font-size:xx-small;">(#'.$id_label_1.')</i></h2></td><td width=2.5%></td></tr>'; }
$check2 = mysql_num_rows($resultat); if ($check2==0) { echo "<div class=subbanner><b>nb: ce terme n'apparaît dans aucun champ thématique pour la période ".get_string_periode(arrange_periode($periode))."</b></div>"; } while( $row = mysql_fetch_array ( $resultat )) { $id_cluster = $row [ 'id_cluster' ]; $ids_cluster[] = $id_cluster; $periodevar = arrange_periode($row [ 'periode' ]); } $concepts_voisins = export_concepts($ids_cluster,derange_periode($periode)); $concepts_voisins_string = get_concept_string($concepts_voisins); echo "<td width=2.5%></td></tr></table>"; //on extrait d'abord la liste totale des périodes: $total_list_periods $commande_sql = "SELECT periode from cluster GROUP BY periode"; $total_periode_sql=mysql_query($commande_sql); while ($total_periode_sql_i=mysql_fetch_array($total_periode_sql)) { $total_periods_raw[]=$total_periode_sql_i['periode']; } $total_list_periods=sort_periods($total_periods_raw);