Subversion Repositories Applications.projet

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 ddelon 1
<?
2
//le cartouche
3
 
4
$fichier_arbre="appli_arbre_date.php"; //c'est le lien du cartouche...
5
 
6
$req_nb_forum_tela=mysql_query("select NB_MESSAGES,NB_ABONNES,NUM_SEM from $nom_table_tela order by NUM_SEM");
7
 
8
  $nbrestela=mysql_num_rows($req_nb_forum_tela);
9
 
10
  $nb_forum_tela_mess =mysql_result($req_nb_forum_tela,($nbrestela-1),NB_MESSAGES);
11
  $nb_forum_tela_ab =mysql_result($req_nb_forum_tela,($nbrestela-1),NB_ABONNES);
12
 
13
//$nb_forum_tela_ab=0;
14
//$nb_forum_tela_mess=0;
15
 
16
  $nb_total_mess=$nb_total_mess+$nb_forum_tela_mess;
17
  $nb_total_abon=$nb_total_abon+$nb_forum_tela_ab;
18
 
19
  //AFFICHAGE DU CARTOUCHE
20
  echo"
21
  <tr>
22
        <td align=\"center\" class=\"actuTexte\" colspan=\"2\"><font size=\"3\" color=\"Maroon\">Agora Botanica</font></td>
23
  </tr>
24
  <tr><td>&nbsp;</td></tr>
25
  <tr>
26
        <td>
27
 
28
                    <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"600\" bgcolor=\"#FFFFFF\">
29
                   		   <tr bgcolor=\"#FFFFFF\">
30
						   <td colspan=\"2\">
31
						   <form method=\"POST\" action=
32
                          \"document.php?project=$project&locale=&doc=".$DOCrow->D_NAME."&set=$set&page=$pageNdx&thema=$thema&fichier_arbre=".$fichier_arbre."\">
33
 
34
						   <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpading=\"0\" bordercolor=\"#000000\">
35
						   	<tr>
36
    							<td width=\"100%\" class=\"actuTexte\" valign=\"middle\" align=\"center\"><b>&nbsp;&nbsp;nombre d'abonn&eacute;s&nbsp;&nbsp;</b>
37
								$nb_total_abon&nbsp;&nbsp;<b>nombre de messages&nbsp;&nbsp;</b>$nb_total_mess&nbsp;&nbsp;
38
								Semaine&nbsp;&nbsp;
39
 
40
   								 <select name=\"num_sem\"><option selected value=\"2\">num";
41
 
42
	//requete d'affichage des semaines dans le select
43
  $req_sem = mysql_query("select NUM_SEM from $nom_table_tela order by NUM_SEM desc");
44
  $nb_req_sem = mysql_num_rows($req_sem);
45
 
46
  for($i=0;$i<$nb_req_sem-1;$i++)
47
  {
48
   $num = mysql_result($req_sem,$i,0);
49
   echo"<option value=\"$num\"";
50
   if ($num_sem == $num) echo " selected";
51
   echo ">$num";
52
  }
53
 
54
  echo"
55
                                </option>
56
                              </select>&nbsp;&nbsp;
57
                            <input type=image src=Local/arbre/valider.gif>
58
                           </td>
59
						</tr>
60
						</table>
61
						</form>
62
						</td>
63
                      </tr>
64
                   	  <tr bgcolor=\"#FFFFFF\">
65
   							 <td>&nbsp;</td>
66
  							 <td align=\"right\"><font color=\"#000000\" size=\"-1\">Evolution
67
 							   de l'arbre, choisissez la semaine &agrave; laquelle vous voulez voir l'arbre</font></td>
68
 					 </tr>
69
		     </table>
70
        </td>
71
      </tr>
72
	  <tr><td>&nbsp;</td></tr>
73
	  <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>
74
 
75
 
76
	  ";
77
 
78
  mysql_free_result($req_nb_forum_tela);
79
  mysql_free_result($req_sem);
80
 
81
?>