New file |
0,0 → 1,48 |
<? |
//le cartouche |
/* |
* |
* derniere modification par alexandre GRANIER le 10 decembre 2001 |
* |
* |
* |
*/ |
$fichier_arbre="appli_arbre_date.php"; //c'est le lien du cartouche... |
/* |
$req_nb_forum_tela=mysql_query("select NB_MESSAGES,NB_ABONNES,NUM_SEM from $nom_table_tela order by NUM_SEM"); |
$nbrestela=mysql_num_rows($req_nb_forum_tela); |
$nb_forum_tela_mess =mysql_result($req_nb_forum_tela,($nbrestela-1),NB_MESSAGES); |
$nb_forum_tela_ab =mysql_result($req_nb_forum_tela,($nbrestela-1),NB_ABONNES); |
*/ |
//$nb_total_mess=$nb_total_mess+$nb_forum_tela_mess; |
//$nb_total_abon=$nb_total_abon+$nb_forum_tela_ab; |
//AFFICHAGE DU CARTOUCHE |
|
$res .= '<div>Agora Botanica</div>' ; |
$GLOBALS['url']->removeQueryString ('forum') ; |
$res .= '<div><form method="post" action="'.$GLOBALS['url']->getURL() ; |
if (isset($thema)) { |
$res .= '&thema='.$thema ; |
} |
$res .= '">' ; |
$res .= "<span> Nombre d'abonnés |
$nb_total_abon</span> <span>Nombre de messages $nb_total_mess Semaine </span> |
<select name=\"num_sem\">"; |
//requete d'affichage des semaines dans le select |
$req_sem = mysql_query("select distinct(NUM_SEM) from agora_stats order by NUM_SEM desc"); |
$nb_req_sem = mysql_num_rows($req_sem); |
for($i=0;$i<$nb_req_sem-1;$i++) |
{ |
$num = mysql_result($req_sem,$i,0); |
$res .= "<option value=\"$num\""; |
if ($num_sem == $num) $res .= ' selected="selected"'; |
$res .= ">$num</option>"; |
} |
|
$res .= '</select> |
<input type="submit" value="valider" /> |
</form></div> |
<div>Evolution de l\'arbre, choisissez la semaine à laquelle vous voulez voir l\'arbre</div>'; |
mysql_free_result($req_sem); |
|
?> |