epnadmin-fr
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Epnadmin-fr] CVS: epnadmin horaires.php,1.14,1.15


From: Loïc Dayot
Subject: [Epnadmin-fr] CVS: epnadmin horaires.php,1.14,1.15
Date: Thu, 27 Mar 2003 16:38:47 -0500

Update of /cvsroot/epnadmin/epnadmin
In directory subversions:/tmp/cvs-serv19143/epnadmin

Modified Files:
        horaires.php 
Log Message:
Erreurs dans le script horaires.php concernant les droits d'accès des 
structures.



Index: horaires.php
===================================================================
RCS file: /cvsroot/epnadmin/epnadmin/horaires.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** horaires.php        9 Mar 2003 21:23:00 -0000       1.14
--- horaires.php        27 Mar 2003 21:38:45 -0000      1.15
***************
*** 46,50 ****
  
  $titr = $shortitre;
! $datemaj="7 mars 2003";
  define("COULEUR", COULEUR_HORAIRES);
  require("entete.inc.php");
--- 46,50 ----
  
  $titr = $shortitre;
! $datemaj="27 mars 2003";
  define("COULEUR", COULEUR_HORAIRES);
  require("entete.inc.php");
***************
*** 152,166 ****
         if (!$tranchehoraire->ouverture)
           echo "F ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
id_structure==$tranchehoraire->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=11&id_localisation=$id_localisation&date=$datecur&debut=$heure\">f</a>
 \n";
  
         if ($tranchehoraire->ouverture=="accès individuels")
           echo "I ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
id_structure==$tranchehoraire->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=12&id_localisation=$id_localisation&date=$datecur&debut=$heure\">i</a>
 ";
  
         if ($tranchehoraire->ouverture=="activités collectives")
           echo "C ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
id_structure==$tranchehoraire->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=13&id_localisation=$id_localisation&date=$datecur&debut=$heure\">c</a>";
  
--- 152,166 ----
         if (!$tranchehoraire->ouverture)
           echo "F ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
$id_structure==$tranchehoraire->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=11&id_localisation=$id_localisation&date=$datecur&debut=$heure\">f</a>
 \n";
  
         if ($tranchehoraire->ouverture=="accès individuels")
           echo "I ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
$id_structure==$tranchehoraire->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=12&id_localisation=$id_localisation&date=$datecur&debut=$heure\">i</a>
 ";
  
         if ($tranchehoraire->ouverture=="activités collectives")
           echo "C ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
$id_structure==$tranchehoraire->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=13&id_localisation=$id_localisation&date=$datecur&debut=$heure\">c</a>";
  
***************
*** 176,180 ****
    echo "</tr>\n";
    
!   if (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
id_structure==$tranchehoraire->id_structure))
      echo "<tr><td colspan=\"$nbcol\" align=\"center\">
          <a 
href=\"$PHP_SELF?operation=2&id_localisation=$id_localisation&date=$date\">Appliquer
 le modèle</a>
--- 176,180 ----
    echo "</tr>\n";
    
!   if (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
$id_structure==$tranchehoraire->id_structure))
      echo "<tr><td colspan=\"$nbcol\" align=\"center\">
          <a 
href=\"$PHP_SELF?operation=2&id_localisation=$id_localisation&date=$date\">Appliquer
 le modèle</a>
***************
*** 191,195 ****
  function AfficheModèle($id_localisation)
  {
! global $unitehoraire, $PHP_SELF;
  
    // Construction de la requête.
--- 191,195 ----
  function AfficheModèle($id_localisation)
  {
! global $unitehoraire, $PHP_SELF, $shorlegende;
  
    // Construction de la requête.
***************
*** 203,206 ****
--- 203,218 ----
    $res = executeRequete($req);*/
  
+   // Affichage de la légende
+   echo cadre_debut($shorlegende);
+   echo "<table>
+           <tr><td bgcolor=\"grey\">F</td><td>= fermé</td>
+             <td> </td>
+             <td bgcolor=\"".COULEUR_UTILISATIONS."\">I</td><td>= 
$shoraccesindiv</td>
+             <td> </td>
+             <td bgcolor=\"".COULEUR_SESSIONS."\">C</td><td>= 
$shoractivcoll</td>
+           </tr>
+         </table>\n";
+   echo cadre_fin();
+   
    $unlieu=false;
  
***************
*** 266,280 ****
         if (!$tranchehoraire->ouverture)
           echo "F ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
id_structure==$reponse->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=51&id_localisation=$id_localisation&nomjour=$nomjour&debut=$heure\">f</a>
 \n";
  
         if ($tranchehoraire->ouverture=="accès individuels")
           echo "I ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
id_structure==$reponse->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=52&id_localisation=$id_localisation&nomjour=$nomjour&debut=$heure\">i</a>
 ";
  
         if ($tranchehoraire->ouverture=="activités collectives")
           echo "C ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
id_structure==$reponse->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=53&id_localisation=$id_localisation&nomjour=$nomjour&debut=$heure\">c</a>";
  
--- 278,292 ----
         if (!$tranchehoraire->ouverture)
           echo "F ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
$id_structure==$reponse->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=51&id_localisation=$id_localisation&nomjour=$nomjour&debut=$heure\">f</a>
 \n";
  
         if ($tranchehoraire->ouverture=="accès individuels")
           echo "I ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
$id_structure==$reponse->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=52&id_localisation=$id_localisation&nomjour=$nomjour&debut=$heure\">i</a>
 ";
  
         if ($tranchehoraire->ouverture=="activités collectives")
           echo "C ";
!        elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
$id_structure==$reponse->id_structure))
           echo "<a 
href=\"$PHP_SELF?operation=53&id_localisation=$id_localisation&nomjour=$nomjour&debut=$heure\">c</a>";
  
***************
*** 308,312 ****
    }
    // On regarde si on a les droits
!   if ( !(HORAIRES_AUTRES>=$droit || (HORAIRES_MOI>=$droit && 
id_structure==$reponse->id_structure)))
    {
      echo $pasledroit;
--- 320,324 ----
    }
    // On regarde si on a les droits
!   if ( !(HORAIRES_AUTRES>=$droit || (HORAIRES_MOI>=$droit && 
$id_structure==$localisation->id_structure)))
    {
      echo $pasledroit;
***************
*** 640,648 ****
                    <td>$local->structure</td>
                    <td>$local->salle</td>\n";
!         if (HORAIRES_AUTRES>="r" || (HORAIRES_MOI>="r" && 
id_structure==$local->id_structure))
            echo "<td><a 
href=\"$PHP_SELF?operation=1&id_localisation=$local->id_localisation\">$shorcalendrier</a></td>\n";
          else
            echo "<td></td>\n";
!         if (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
id_structure==$local->id_structure))
            echo "<td><a 
href=\"$PHP_SELF?operation=5&id_localisation=$local->id_localisation\">$shormodelehebdo</a></td>\n";
          else
--- 652,660 ----
                    <td>$local->structure</td>
                    <td>$local->salle</td>\n";
!         if (HORAIRES_AUTRES>="r" || (HORAIRES_MOI>="r" && 
$id_structure==$local->id_structure))
            echo "<td><a 
href=\"$PHP_SELF?operation=1&id_localisation=$local->id_localisation\">$shorcalendrier</a></td>\n";
          else
            echo "<td></td>\n";
!         if (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" && 
$id_structure==$local->id_structure))
            echo "<td><a 
href=\"$PHP_SELF?operation=5&id_localisation=$local->id_localisation\">$shormodelehebdo</a></td>\n";
          else





reply via email to

[Prev in Thread] Current Thread [Next in Thread]