Subversion Repositories Applications.projet

Rev

Blame | Last modification | View Log | RSS feed

<?
//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 .=  '&amp;thema='.$thema ;
}
$res .= '">' ;
$res .= "<span>&nbsp;Nombre d'abonn&eacute;s&nbsp;
            $nb_total_abon</span>&nbsp;<span>Nombre de messages&nbsp;$nb_total_mess&nbsp;Semaine&nbsp;</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>&nbsp;
            <input type="submit" value="valider" />
            </form></div>
        <div>Evolution de l\'arbre, choisissez la semaine &agrave; laquelle vous voulez voir l\'arbre</div>';
mysql_free_result($req_sem);

?>