Subversion Repositories Applications.projet

Rev

Rev 2 | Blame | Last modification | View Log | RSS feed

<?
//le cartouche

$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_forum_tela_ab=0;
//$nb_forum_tela_mess=0;

  $nb_total_mess=$nb_total_mess+$nb_forum_tela_mess;
  $nb_total_abon=$nb_total_abon+$nb_forum_tela_ab;

  //AFFICHAGE DU CARTOUCHE
  echo"
  <tr>
        <td align=\"center\" class=\"actuTexte\" colspan=\"2\"><font size=\"3\" color=\"Maroon\">Agora Botanica</font></td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  <tr>
        <td>        
                        
                    <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"600\" bgcolor=\"#FFFFFF\">
                                   <tr bgcolor=\"#FFFFFF\"> 
                                                   <td colspan=\"2\">
                                                   <form method=\"POST\" action=
                          \"document.php?project=$project&locale=&doc=".$DOCrow->D_NAME."&set=$set&page=$pageNdx&thema=$thema&fichier_arbre=".$fichier_arbre."\">
                    
                                                   <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpading=\"0\" bordercolor=\"#000000\">
                                                        <tr>                                                
                                                        <td width=\"100%\" class=\"actuTexte\" valign=\"middle\" align=\"center\"><b>&nbsp;&nbsp;nombre d'abonn&eacute;s&nbsp;&nbsp;</b>
                                                                $nb_total_abon&nbsp;&nbsp;<b>nombre de messages&nbsp;&nbsp;</b>$nb_total_mess&nbsp;&nbsp;
                                                                Semaine&nbsp;&nbsp;
                                                                
                                                                 <select name=\"num_sem\"><option selected value=\"2\">num";

        //requete d'affichage des semaines dans le select
  $req_sem = mysql_query("select NUM_SEM from $nom_table_tela 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);
   echo"<option value=\"$num\"";
   if ($num_sem == $num) echo " selected";
   echo ">$num";
  }

  echo"                         
                                </option>
                              </select>&nbsp;&nbsp;                                              
                            <input type=image src=Local/arbre/valider.gif>
                           </td>                                                
                                                </tr>
                                                </table>
                                                </form>
                                                </td>
                      </tr>
                          <tr bgcolor=\"#FFFFFF\"> 
                                                         <td>&nbsp;</td>
                                                         <td align=\"right\"><font color=\"#000000\" size=\"-1\">Evolution 
                                                           de l'arbre, choisissez la semaine &agrave; laquelle vous voulez voir l'arbre</font></td>
                                         </tr>                                    
                     </table>           
        </td>
      </tr>
          <tr><td>&nbsp;</td></tr>
          <tr><td align=\"center\"><a href=\"http://v2.tela-botanica.org/document.php?project=tela&locale=fr&doc=aide&page=0\"><font color=\"Maroon\">L&eacute;gende de l'arbre</font></a></td></tr>
          
          
          ";
                                          
  mysql_free_result($req_nb_forum_tela);
  mysql_free_result($req_sem);

?>