示例#1
0
文件: chart.php 项目: jphcoi/veille
echo get_string_periode($list_of_periods[$i]);
echo '</option>';
}
echo '</select>';
echo '<input type="hidden" value="'.$id_concept.'" name="id_concept">';
echo '<input type="hidden" value="source" name="nav">';
echo '<input type="submit" value="Changer">';
echo '</form>';
echo '</p>';
echo '</div>';

//ici on récupère tous nos billets les plus proches
//print_r($list_of_concepts);
$list_of_concepts=array();
$list_of_concepts[0]=$id_concept;
$liste_of_posts = scan_billet_seuil($list_of_concepts,$periode,0);
$nb_termes_list = $liste_of_posts;
if (count($liste_of_posts)>0)
{$resultat = extract_permalink(array_keys($liste_of_posts));
$i=0;
$info_sources=array();
while( $row = mysql_fetch_array ($resultat))
{
$perma=$row['permalink'];
$site=strip_www($row['site']);
$site =str_replace('***','; ',$site);
$id = $row['id'];
$nb_terme=$nb_termes_list[$id];
$idauteur=$row['auteur_id'];
$content=$row['content'];
$concepts=$row['concepts_id'];
示例#2
0
文件: chart3d.php 项目: jphcoi/veille
	echo '<td width=2.5%></td>';

	echo '<td width=60%>';
	echo '<div class=subbanner>Billets mentionnant le terme </div>';

	echo '<br>';	
	
	echo "<table class=tableitems rules=all width=100% cellspacing=0 cellpadding=0>";
	
	echo "<td align=left width=80%>";
	
	//ici on affiche tous nos billets les plus proches
	//print_r($list_of_concepts);
	$list_of_concepts=array();
	$list_of_concepts=$id_concepts;
	$liste_of_posts = scan_billet_seuil($list_of_concepts,$periode,count($id_concepts)-1);
	$nb_termes_list = $liste_of_posts;
	if (count($liste_of_posts)>0)
	{$resultat = extract_permalink(array_keys($liste_of_posts));
	$i=0;
	$info_sources=array();
	while( $row = mysql_fetch_array ($resultat))
	{
		$perma=$row['permalink'];
		$site=strip_www($row['site']);
		$id = $row['id'];
		$nb_terme=$nb_termes_list[$id];
		$idauteur=$row['auteur_id'];
//		echo $idauteur.'<br>';		
		if (!array_key_exists($site,$info_sources)) {
		$info_sources[$site]=array('site'=>$site,'idauteur'=>$idauteur,'permaliens'=>array(),'titres'=>array(),'dates'=>array(),'nbtermes'=>array());