Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
448 ddelon 1
<?
2
//le cartouche
3
/*
4
*
5
*	derniere modification par alexandre GRANIER le 10 decembre 2001
6
*
7
*
8
*
9
*/
10
$fichier_arbre="appli_arbre_date.php"; //c'est le lien du cartouche...
11
/*
12
$req_nb_forum_tela=mysql_query("select NB_MESSAGES,NB_ABONNES,NUM_SEM from $nom_table_tela order by NUM_SEM");
13
  $nbrestela=mysql_num_rows($req_nb_forum_tela);
14
  $nb_forum_tela_mess =mysql_result($req_nb_forum_tela,($nbrestela-1),NB_MESSAGES);
15
  $nb_forum_tela_ab =mysql_result($req_nb_forum_tela,($nbrestela-1),NB_ABONNES);
16
*/
17
  //$nb_total_mess=$nb_total_mess+$nb_forum_tela_mess;
18
  //$nb_total_abon=$nb_total_abon+$nb_forum_tela_ab;
19
  //AFFICHAGE DU CARTOUCHE
20
 
21
$res .= '<div>Agora Botanica</div>' ;
22
$GLOBALS['url']->removeQueryString ('forum') ;
23
$res .= '<div><form method="post" action="'.$GLOBALS['url']->getURL() ;
24
if (isset($thema)) {
25
    $res .=  '&amp;thema='.$thema ;
26
}
27
$res .= '">' ;
28
$res .= "<span>&nbsp;Nombre d'abonn&eacute;s&nbsp;
29
            $nb_total_abon</span>&nbsp;<span>Nombre de messages&nbsp;$nb_total_mess&nbsp;Semaine&nbsp;</span>
30
                <select name=\"num_sem\">";
31
//requete d'affichage des semaines dans le select
32
  $req_sem = mysql_query("select distinct(NUM_SEM) from agora_stats order by NUM_SEM desc");
33
  $nb_req_sem = mysql_num_rows($req_sem);
34
  for($i=0;$i<$nb_req_sem-1;$i++)
35
  {
36
   $num = mysql_result($req_sem,$i,0);
37
   $res .= "<option value=\"$num\"";
38
   if ($num_sem == $num) $res .= ' selected="selected"';
39
   $res .= ">$num</option>";
40
  }
41
 
42
  $res .= '</select>&nbsp;
43
            <input type="submit" value="valider" />
44
            </form></div>
45
        <div>Evolution de l\'arbre, choisissez la semaine &agrave; laquelle vous voulez voir l\'arbre</div>';
46
mysql_free_result($req_sem);
47
 
48
?>