epnadmin-fr
[Top][All Lists]
Advanced

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

[Epnadmin-fr] CVS: epnadmin constantes.inc.php,1.26,1.27 fr.lang.inc.php


From: Loïc Dayot
Subject: [Epnadmin-fr] CVS: epnadmin constantes.inc.php,1.26,1.27 fr.lang.inc.php,1.13,1.14 inscription_session.php,1.20,1.21 reservations.php,1.12,1.13 stats.php,1.15,1.16table_horaire.php,1.16,1.17
Date: Tue, 25 Feb 2003 16:22:36 -0500

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

Modified Files:
        constantes.inc.php fr.lang.inc.php inscription_session.php 
        reservations.php stats.php table_horaire.php 
Log Message:
Je ne comprends pas pourquoi il y aurait tant de changement détecté avec le CVS 
alors que les modificaitons ne touchent qu'aux réservations des postes par les 
usagers, et aussi des statistiques.



Index: constantes.inc.php
===================================================================
RCS file: /cvsroot/epnadmin/epnadmin/constantes.inc.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** constantes.inc.php  24 Feb 2003 21:30:42 -0000      1.26
--- constantes.inc.php  25 Feb 2003 21:22:32 -0000      1.27
***************
*** 41,45 ****
  }
  if (! $mysql_base)
!   $mysql_base="epnadmin2";         // Mettre le nom de la bonne base
  
  // Divers chemins
--- 41,45 ----
  }
  if (! $mysql_base)
!   $mysql_base="epnadmin";         // Mettre le nom de la bonne base
  
  // Divers chemins

Index: fr.lang.inc.php
===================================================================
RCS file: /cvsroot/epnadmin/epnadmin/fr.lang.inc.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** fr.lang.inc.php     24 Feb 2003 21:30:42 -0000      1.13
--- fr.lang.inc.php     25 Feb 2003 21:22:32 -0000      1.14
***************
*** 318,322 ****
  $screditresemuh=" - (son crédit d'heures reservables a été diminué d'une 
heure.)\n";
  $screditcollremis=" - (%s a(/ont) été remise(s) à son crédit d'heures 
d'activités collectives. Il lui en reste %s)\n";
! $slisteinscrits="<p><a href=\"%s\">Afficher la liste des 
<b>inscrits</b></a></p>\n";
  $svoirlistesessionfutur="<a href=\"%s\">Liste des sessions à venir (pour 
<b>inscrire</b> du monde)</a><br>\n";
  $svoirlistesessionpasse="<a href=\"%s\">Liste des sessions passées (pour en 
<b>faire le bilan</b>
--- 318,322 ----
  $screditresemuh=" - (son crédit d'heures reservables a été diminué d'une 
heure.)\n";
  $screditcollremis=" - (%s a(/ont) été remise(s) à son crédit d'heures 
d'activités collectives. Il lui en reste %s)\n";
! $svoirlisteinscrits="<p><a href=\"%s\">Afficher la liste des 
<b>inscrits</b></a></p>\n";
  $svoirlistesessionfutur="<a href=\"%s\">Liste des sessions à venir (pour 
<b>inscrire</b> du monde)</a><br>\n";
  $svoirlistesessionpasse="<a href=\"%s\">Liste des sessions passées (pour en 
<b>faire le bilan</b>
***************
*** 423,426 ****
--- 423,430 ----
  $questions="questions";
  $titrequestions="Base des questions d'autoévaluation";
+              
+ // reservations.php
+ $sreservation="reservations de postes";
+ $stitrereservation="Réservation de poste en accès individuel";
  
  // session.php
***************
*** 470,473 ****
--- 474,481 ----
                        ni pour celle de l'administration de la messagerie 
électronique.";
  $schgmdpstruok="Changement de mot de passe dans la base PHP d'epnadmin";
+ 
+ // tableau_horaire.php
+ $stablehoraire="disponibilité postes accès individuels";
+ $stitretablehoraire="Gestion du planning de l'utilisation des postes";
  
  // table_horaire_session.php

Index: inscription_session.php
===================================================================
RCS file: /cvsroot/epnadmin/epnadmin/inscription_session.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** inscription_session.php     24 Feb 2003 21:30:42 -0000      1.20
--- inscription_session.php     25 Feb 2003 21:22:32 -0000      1.21
***************
*** 603,607 ****
  
  if ($id_session && PARCOURS_AUTRES>="r")
!   printf($slisteinscrits, "$PHP_SELF?id_session=$id_session");
  if (SESSIONS>"~" && ($is_ident=="structure" || $is_ident=="animateur"))
  { 
--- 603,607 ----
  
  if ($id_session && PARCOURS_AUTRES>="r")
!   printf($svoirlisteinscrits, "$PHP_SELF?id_session=$id_session");
  if (SESSIONS>"~" && ($is_ident=="structure" || $is_ident=="animateur"))
  { 
***************
*** 612,616 ****
  if (SESSIONS_MOI>="w" || SESSIONS_AUTRES>="w")
        printf($sajoutersession, "session.php?operation=1");
!                                                                            -
  require("basdepage.inc.php");
  echo "</body></html>\n";
--- 612,616 ----
  if (SESSIONS_MOI>="w" || SESSIONS_AUTRES>="w")
        printf($sajoutersession, "session.php?operation=1");
! 
  require("basdepage.inc.php");
  echo "</body></html>\n";

Index: reservations.php
===================================================================
RCS file: /cvsroot/epnadmin/epnadmin/reservations.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** reservations.php    17 Feb 2003 22:45:35 -0000      1.12
--- reservations.php    25 Feb 2003 21:22:32 -0000      1.13
***************
*** 23,26 ****
--- 23,27 ----
  
  require_once("header.inc.php"); 
+ require_once("constantes.inc.php");             // définition des constantes
  if (!defined("FCT_UTILISATIONS"))
  {
***************
*** 29,33 ****
  }
  
- require_once("constantes.inc.php");             // définition des constantes
  //require_once("fonctions.inc.php");              // concernant des fonctions 
transversales inclassables
  require_once("mysql.inc.php");                  // concernant mysql
--- 30,33 ----
***************
*** 41,52 ****
  //require_once("initiations.inc.php");          // concernant les initiations 
et les thèmes
  //require_once("parcours.inc.php");             // concernant les parcours 
des usagers et leur positionnement
! ?>
! <html>
! <head>
! <title>reservations de postes - epnadmin</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
! <?
! $titr = "Réservation de poste en accès individuel";
! $datemaj="5 janvier 2003";
  require("entete.inc.php");
  
--- 41,53 ----
  //require_once("initiations.inc.php");          // concernant les initiations 
et les thèmes
  //require_once("parcours.inc.php");             // concernant les parcours 
des usagers et leur positionnement
! 
! echo "<html>
!       <head>
!       <title>$sreservation - epnadmin</title>
!       <meta http-equiv=\"Content-Type\" content=\"text/html; 
charset=iso-8859-1\">";
! 
! $titr = $stitrereservation;
! $datemaj="25 février 2003";
! define("COULEUR", COULEUR_UTILISATIONS);
  require("entete.inc.php");
  
***************
*** 227,231 ****
  
  case 3 : // Ajout    $usagev, $id_usager, $datev, $id_materiel, $debutv et 
éventuellement $finv;
!   //debug($id_usager);
    $mes = verifdroits($datev);
    echo "<a name=\"a\"></a>";
--- 228,233 ----
  
  case 3 : // Ajout    $usagev, $id_usager, $datev, $id_materiel, $debutv et 
éventuellement $finv;
!   //debug($id_usager); 
!       echo cadre_debut("Nouvelle réservation de poste");
    $mes = verifdroits($datev);
    echo "<a name=\"a\"></a>";
***************
*** 233,240 ****
    {
       echo "<b>$mes</b>\n";
       break;
    }
  
!   echo "<table align=center border=1 
bgColor=\"".COULEUR_ACCES_INDIVIDUEL."\"><tr><th colspan='2' 
align=center>Réservation</th></tr>\n";
    echo "<form name=\"form2\" method=\"post\" action=\"reservations.php\">
            <input type=\"hidden\" name=\"operation\" value=\"31\">
--- 235,243 ----
    {
       echo "<b>$mes</b>\n";
+                echo cadre_fin();
       break;
    }
  
!   echo "<table align=center border=1>\n";
    echo "<form name=\"form2\" method=\"post\" action=\"reservations.php\">
            <input type=\"hidden\" name=\"operation\" value=\"31\">
***************
*** 247,251 ****
      <input type=\"hidden\" name=\"debutv\" value=\"$debutv\">\n";
  //    <input type=\"hidden\" name=\"finv\" value=\"$finv\">\n";
!   echo "<tr><td>Date :</td><td>$datev</td></tr>
            <tr><td>Horaire :</td><td>";
    // changement avec la version 0.5, les réservations se font de manière plus 
souple par heure de début
--- 250,254 ----
      <input type=\"hidden\" name=\"debutv\" value=\"$debutv\">\n";
  //    <input type=\"hidden\" name=\"finv\" value=\"$finv\">\n";
!   echo "<tr><td>Date :</td><td>".datetodate($datev)."</td></tr>
            <tr><td>Horaire :</td><td>";
    // changement avec la version 0.5, les réservations se font de manière plus 
souple par heure de début
***************
*** 253,257 ****
    if (!$finv)
      $finv=date("H:i", strtotime("+".$unitehoraire." minutes", 
strtotime($debutv)));
!   echo "de ".date("H:i", strtotime($debutv))." à ";
    echo "<select name=\"finv\"
             onchange=\"document.rechercheusager.finv.value=this.value;\">";
--- 256,260 ----
    if (!$finv)
      $finv=date("H:i", strtotime("+".$unitehoraire." minutes", 
strtotime($debutv)));
!   echo "de ".datetoheure($debutv)." à ";
    echo "<select name=\"finv\"
             onchange=\"document.rechercheusager.finv.value=this.value;\">";
***************
*** 319,323 ****
  
    $req = "SELECT * FROM usages";
!       if ($listeusagesimpossibles=$mat->usages != "") 
                $req.=" WHERE id NOT IN ($listeusagesimpossibles)";
        $req.=" ORDER BY nom";
--- 322,326 ----
  
    $req = "SELECT * FROM usages";
!       if ($listeusagesimpossibles=$mat->usages != "")
                $req.=" WHERE id NOT IN ($listeusagesimpossibles)";
        $req.=" ORDER BY nom";
***************
*** 335,339 ****
  
    // choix de l'usager
!    if (USAGERS_AUTRES>="r")
        echo "<input type=\"hidden\" name=\"id_usager\" value=\"$id_usager\">";
     else
--- 338,342 ----
  
    // choix de l'usager
!    if (USAGERS_AUTRES<"r")
        echo "<input type=\"hidden\" name=\"id_usager\" value=\"$id_usager\">";
     else
***************
*** 355,359 ****
          value=\"Je veux confirmer la réservation\"></td></tr>
          </table>\n";
!   echo "</form>\n";
  
    if (USAGERS_AUTRES>="r")
--- 358,363 ----
          value=\"Je veux confirmer la réservation\"></td></tr>
          </table>\n";
!   echo "</form>\n";   
!       echo cadre_fin();
  
    if (USAGERS_AUTRES>="r")
***************
*** 361,365 ****
--- 365,371 ----
        if ($code_barre!="" & $id=="")
           $id=substr($code_barre,0,4);
+                 //echo cadre_debut("Liste des usagers");
        affiche_liste_usagers($id, $login, $nom, $prenom, "nom", "RESERVATION");
+                       //echo cadre_fin();
     }
  
***************
*** 491,519 ****
  
     //echo "<h3>Toutes mes réservations de postes à venir.</h3>\n";
!    echo "<table align=center bgcolor=\"".COULEUR_ACCES_INDIVIDUEL."\">
!          <tr><td align=center><font size=\"+2\">Accès individuels 
prévus</font></td></tr>
!          <tr><td align=center>\n";
     affiche_utilisations($id_usager, FUTUR);
!    echo "</td></tr></table>\n";
     break;
  
  case 4 : // Affichage des utilisations passées
!   echo "<table align=center bgcolor=\"".COULEUR_ACCES_INDIVIDUEL."\">
!         <tr><td align=center><font size=\"+2\">Accès individuels 
passés</font></td></tr>
!         <tr><td align=center>\n";
    affiche_utilisations($id_usager, PASSE);
!   echo "</td></tr></table>\n";
    break;
  
  case 5 : // Affichage des utilisations futures
!   echo "<table align=center bgcolor=\"".COULEUR_ACCES_INDIVIDUEL."\">
!         <tr><td align=center><font size=\"+2\">Accès individuels 
prévus</font></td></tr>
!         <tr><td align=center>\n";
    affiche_utilisations($id_usager, FUTUR);
!   echo "</td></tr></table>\n";
    break;
  
  default:
          // affichage des informations seulement si administrateur
    if (UTILISATIONS_AUTRES>="r")
    {
--- 497,520 ----
  
     //echo "<h3>Toutes mes réservations de postes à venir.</h3>\n";
!   echo cadre_debut("Accès individuels prévus");
     affiche_utilisations($id_usager, FUTUR);
!   echo cadre_fin();
     break;
  
  case 4 : // Affichage des utilisations passées
!   echo cadre_debut("Accès individuels passés");
    affiche_utilisations($id_usager, PASSE);
!   echo cadre_fin();
    break;
  
  case 5 : // Affichage des utilisations futures
!   echo cadre_debut("Accès individuels prévus");
    affiche_utilisations($id_usager, FUTUR);
!   echo cadre_fin();
    break;
  
  default:
          // affichage des informations seulement si administrateur
+   echo cadre_debut("Information sur une réservation");
    if (UTILISATIONS_AUTRES>="r")
    {
***************
*** 523,527 ****
        if ($res2 = recherche("materiels", "id", $utilisation->id_materiel))
           $materiel = mysql_fetch_object($res2);
!       echo "<table align=center border=\"1\" dwcopytype=\"CopyTableRow\" 
bgColor=\"".COULEUR_ACCES_INDIVIDUEL."\">
              <tr><td>Nom de l'ordinateur : </td><td><a 
href=\"materiels.php?id_materiel=$materiel->id&$idu\">$materiel->materiel</a></td></tr>
              <tr><td>Date : 
</td><td>".date("d\/m\/Y",strtotime($utilisation->date))."</td></tr>
--- 524,528 ----
        if ($res2 = recherche("materiels", "id", $utilisation->id_materiel))
           $materiel = mysql_fetch_object($res2);
!       echo "<table align=center border=\"1\" 
bgColor=\"".COULEUR_ACCES_INDIVIDUEL."\">
              <tr><td>Nom de l'ordinateur : </td><td><a 
href=\"materiels.php?id_materiel=$materiel->id&$idu\">$materiel->materiel</a></td></tr>
              <tr><td>Date : 
</td><td>".date("d\/m\/Y",strtotime($utilisation->date))."</td></tr>
***************
*** 565,576 ****
        echo "<p>La r&eacute;servation choisie n'existe plus.</p>\n";
      }
    }  // if $isadmin
    else
    {
!    echo "<table align=center bgcolor=\"".COULEUR_ACCES_INDIVIDUEL."\">
!          <tr><td align=center><font size=\"+2\">Accès individuels 
prévues</font></td></tr>
!          <tr><td align=center>\n";
!    affiche_utilisations($id_usager, FUTUR);
!    echo "</td></tr></table>\n";
    }
    break;
--- 566,576 ----
        echo "<p>La r&eacute;servation choisie n'existe plus.</p>\n";
      }
+               echo cadre_fin();
    }  // if $isadmin
    else
    {
!     echo cadre_debut("Accès individuels prévus");
!     affiche_utilisations($id_usager, FUTUR);
!     echo cadre_fin();
    }
    break;

Index: stats.php
===================================================================
RCS file: /cvsroot/epnadmin/epnadmin/stats.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** stats.php   20 Feb 2003 22:15:20 -0000      1.15
--- stats.php   25 Feb 2003 21:22:32 -0000      1.16
***************
*** 734,738 ****
      }
  
!     echo "</tr><tr><th>Nb d'inscriptions</th>"; // nombre d'inscriptions par 
mois
  
      for ($an=$dyear; $an<=$fyear ; $an++)
--- 734,738 ----
      }
  
!     echo "</tr><tr bgcolor=\"".COULEUR_USAGERS."\"><th>Nb 
d'inscriptions</th>"; // nombre d'inscriptions par mois
  
      for ($an=$dyear; $an<=$fyear ; $an++)
***************
*** 757,761 ****
      }
  
!     echo "</tr><tr><th>Nb sessions</th>"; // nombre de sessions par mois
  
      for ($an=$dyear; $an<=$fyear ; $an++)
--- 757,761 ----
      }
  
!     echo "</tr><tr bgcolor=\"".COULEUR_SESSIONS."\"><th>Nb sessions</th>"; // 
nombre de sessions par mois
  
      for ($an=$dyear; $an<=$fyear ; $an++)
***************
*** 781,785 ****
      }
  
!     echo "</tr><tr><th>Nb participants sessions</th>";  // nombre de 
participants aux sessions
  
      for ($an=$dyear; $an<=$fyear ; $an++)
--- 781,785 ----
      }
  
!     echo "</tr><tr bgcolor=\"".COULEUR_SESSIONS."\"><th>Nb participants 
sessions</th>";  // nombre de participants aux sessions
  
      for ($an=$dyear; $an<=$fyear ; $an++)
***************
*** 805,809 ****
      }
  
!     echo "</tr><tr><th>Nb usagers différents<br>aux sessions</th>"; // nombre 
d'usagers différents dans l'accès individuel
  
      for ($an=$dyear; $an<=$fyear ; $an++)
--- 805,809 ----
      }
  
!     echo "</tr><tr bgcolor=\"".COULEUR_SESSIONS."\"><th>Nb usagers 
différents<br>aux sessions</th>"; // nombre d'usagers différents dans l'accès 
individuel
  
      for ($an=$dyear; $an<=$fyear ; $an++)
***************
*** 822,826 ****
                    $where AND sessions.etat<>'annulée' AND parcours.etat IN 
('effectué', 'en retard', 'problème')
                                        GROUP BY parcours.id_usager";
!           $res = executeRequete($req);   
            $i="";
            if ($nb = mysql_num_rows($res))
--- 822,826 ----
                    $where AND sessions.etat<>'annulée' AND parcours.etat IN 
('effectué', 'en retard', 'problème')
                                        GROUP BY parcours.id_usager";
!           $res = executeRequete($req);
            $i="";
            if ($nb = mysql_num_rows($res))
***************
*** 830,834 ****
      }
  
!     echo "</tr><tr><th>Nb d'heures d'accès individuels</th>\n";
  
      for ($an=$dyear; $an<=$fyear ; $an++)
--- 830,866 ----
      }
  
!     echo "</tr><tr bgcolor=\"".COULEUR_SESSIONS."\"><th>Nb moyen d'usagers 
par session</th>"; // nombre d'usagers différents dans l'accès individuel
! 
!     for ($an=$dyear; $an<=$fyear ; $an++)
!     {
!        if ($an==$dyear) $dmois=$dmonth; else $dmois=1;
!        if ($an==$fyear) $fmois=$fmonth;   else $fmois=12;
!        for ($mois=$dmois; $mois<=$fmois; $mois++)
!        {
!           $dated = date("Y-m-d",strtotime($mois."/01/".$an));
!           $mois1=$mois+1;
!           $datef = date("Y-m-d",strtotime($mois1."/01/".$an));
!           echo "<td>";
!           $where = "WHERE sessions.date>=\"$dated\" AND 
sessions.date<\"$datef\" ";
!           $req = "SELECT COUNT(*) AS nb
!                   FROM sessions
!                   $where AND sessions.etat<>'annulée'";
!           $res = executeRequete($req);
!           $stat = mysql_fetch_object($res);
!           $nbsessions=$stat->nb;
! 
!           $req = "SELECT COUNT(parcours.id_usager) AS nb FROM sessions
!                   LEFT JOIN parcours ON parcours.id_session=sessions.id
!                   $where AND sessions.etat<>'annulée' AND parcours.etat IN 
('effectué', 'en retard', 'problème')";
!           $res = executeRequete($req);
!           $stat = mysql_fetch_object($res);
!           $nbpart=$stat->nb;
!           if ($nbpart>0)
!             $nbmoyenpartparsession=round($nbpart/$nbsessions,1);
!           echo "$nbmoyenpartparsession</td>";
!        }
!     }
! 
!     echo "</tr><tr bgcolor=\"".COULEUR_UTILISATIONS."\"><th>Nb d'heures 
d'accès individuels</th>\n";
  
      for ($an=$dyear; $an<=$fyear ; $an++)
***************
*** 854,858 ****
      }
  
!     echo "</tr><tr><th>Nb usagers différents<br>de l'accès individuel</th>"; 
// nombre d'usagers différents dans l'accès individuel
  
      for ($an=$dyear; $an<=$fyear ; $an++)
--- 886,890 ----
      }
  
!     echo "</tr><tr bgcolor=\"".COULEUR_UTILISATIONS."\"><th>Nb usagers 
différents<br>de l'accès individuel</th>"; // nombre d'usagers différents dans 
l'accès individuel
  
      for ($an=$dyear; $an<=$fyear ; $an++)
***************
*** 875,878 ****
--- 907,938 ----
            if ($nb = mysql_num_rows($res))
               echo $nb;
+           echo "</td>";
+        }
+     }
+ 
+     echo "</tr><tr bgcolor=\"".COULEUR_UTILISATIONS."\"><th>Nb heures 
ouvertures<br>en accès individuels</th>"; // nombre d'usagers différents dans 
l'accès individuel
+ 
+     for ($an=$dyear; $an<=$fyear ; $an++)
+     {
+        if ($an==$dyear) $dmois=$dmonth; else $dmois=1;
+        if ($an==$fyear) $fmois=$fmonth;   else $fmois=12;
+        for ($mois=$dmois; $mois<=$fmois; $mois++)
+        {
+           $dated = date("Y-m-d",strtotime($mois."/01/".$an));
+           $mois1=$mois+1;
+           $datef = date("Y-m-d",strtotime($mois1."/01/".$an));
+           echo "<td>";
+           $where = "WHERE date>=\"$dated\" AND date<\"$datef\" ";
+ 
+           $req = "SELECT SUM(TIME_TO_SEC(fin) - TIME_TO_SEC(debut))/60 AS nb
+                     FROM calendrier
+                   $where AND ouverture='accès individuels'
+                   GROUP BY id_localisation";
+           $res = executeRequete($req);
+           $i="";       
+           $nbt=0;
+           if ($stat = mysql_fetch_object($res))
+             //$nbt+=$stat->nb;
+             echo datetoheure(minute2heure($stat->nb));
            echo "</td>";
         }

Index: table_horaire.php
===================================================================
RCS file: /cvsroot/epnadmin/epnadmin/table_horaire.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** table_horaire.php   24 Feb 2003 21:30:43 -0000      1.16
--- table_horaire.php   25 Feb 2003 21:22:32 -0000      1.17
***************
*** 23,26 ****
--- 23,27 ----
  
  require_once("header.inc.php"); 
+ require_once("constantes.inc.php");             // définition des constantes
  if (!defined("FCT_UTILISATIONS"))
  {
***************
*** 29,33 ****
  }
  
- require_once("constantes.inc.php");             // définition des constantes
  //require_once("fonctions.inc.php");              // concernant des fonctions 
transversales inclassables
  require_once("mysql.inc.php");                  // concernant mysql
--- 30,33 ----
***************
*** 42,53 ****
  //require_once("parcours.inc.php");             // concernant les parcours 
des usagers et leur positionnement
  
! ?>
! <html>
! <head>
! <title>disponibilité postes accès individuels - epnadmin</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
! <?
! $titr = "Gestion du planning de l'utilisation des postes";
! $datemaj="16 février 2003";
  require("entete.inc.php");
  
--- 42,53 ----
  //require_once("parcours.inc.php");             // concernant les parcours 
des usagers et leur positionnement
  
! echo "<html>
!   <head>
!   <title>$stablehoraire - epnadmin</title>
!   <meta http-equiv=\"Content-Type\" content=\"text/html; 
charset=iso-8859-1\">\n";
! 
! $titr = $stitretablehoraire;
! $datemaj="25 février 2003";
! define("COULEUR", COULEUR_UTILISATIONS);
  require("entete.inc.php");
  
***************
*** 85,90 ****
     {
       $unlieu=true;
!      echo "<hr>\n";
!      echo "<h3>$reponse->salle de $reponse->structure à 
$reponse->ville</h3>\n";
  
       // Affichage des disponibilités en fonction du calendrier et des 
réservations
--- 85,91 ----
     {
       $unlieu=true;
!      echo "<hr>\n"; 
!      echo cadre_debut(localisation($reponse->id_localisation, TRUE));
!      //echo "<h3>$reponse->salle de $reponse->structure à 
$reponse->ville</h3>\n";
  
       // Affichage des disponibilités en fonction du calendrier et des 
réservations
***************
*** 128,132 ****
           $tableau[$i][$j]["param"]= " colspan=$nbcolparheure";
           $tableau[$i][$j]["contenu"]= date("H", strtotime($heure))."h - ".
!                                               date("H:i:00", strtotime("+ 1 
hour", strtotime($heure)))."h";
           $j++;
       }
--- 129,133 ----
           $tableau[$i][$j]["param"]= " colspan=$nbcolparheure";
           $tableau[$i][$j]["contenu"]= date("H", strtotime($heure))."h - ".
!                                               date("H", strtotime("+ 1 hour", 
strtotime($heure)))."h";
           $j++;
       }
***************
*** 278,281 ****
--- 279,284 ----
       if (!$unposte)
          echo "<p align=center>Désolé, aucun poste disponible ce jour là 
!</p>\n";
+ 
+      echo cadre_fin();
     } // on est usager ou chez nous
    } // while reponse;
***************
*** 336,360 ****
  function formChoixLieuDateUsage($lieuv, $datev, $usagev, $combienv, $sens, 
$operation)
  {
! global $idu, $PHP_SELF;
     echo "<form name=\"formlieudateusage\" method=\"post\" 
action=\"$PHP_SELF\">
!          <input type=\"hidden\" name=\"operation\" value=\"$operation\">
!          <table border=1 align=center>";
!    echo "<tr><td>Lieu</td><td>";  Choix_lieu($lieuv); echo "</td>\n";
! 
!    echo "<td rowspan=\"4\">Disposition<br>";  choixSensTableau($sens);
!    echo "</tr><tr><td>Date</td>
!          <td><table><tr><td>
!            <a 
href=\"$PHP_SELF?operation=$operation&usagev=$usagev&datev=".date("Y-m-d",strtotime("-1
 day",strtotime($datev)))."&lieuv=$lieuv&sens=$sens\">&lt;&lt;</a>
!          </td>";
     choixJour($datev);
!    echo "<td>
!            <a 
href=\"$PHP_SELF?operation=$operation&usagev=$usagev&datev=".date("Y-m-d",strtotime("+1
 day",strtotime($datev)))."&lieuv=$lieuv&sens=$sens\">&gt;&gt;</a>
!          </td></tr></table></td>\n";
! 
!    echo "</tr><tr><td>Usage</td>";  formChoixUsage($usagev);
!    echo "</tr><tr><td>Accompagné(e)</td>";  choixCombien($combienv);
!    echo "</tr><tr><td align=center colspan=3>
!            <input type=\"submit\" name=\"Recherche disponibilités\" 
value=\"Recherche disponibilités\"></td></tr></table></form>\n";
!     echo "</td></tr></table>\n";
  }
  
--- 339,384 ----
  function formChoixLieuDateUsage($lieuv, $datev, $usagev, $combienv, $sens, 
$operation)
  {
! global $idu, $PHP_SELF;     
!   echo cadre_debut("Critères de sélection");
     echo "<form name=\"formlieudateusage\" method=\"post\" 
action=\"$PHP_SELF\">
!           <input type=\"hidden\" name=\"operation\" value=\"$operation\">
!           <table border=1 align=center>";
!    echo " <tr>
!             <td>Lieu</td>
!                                               <td>";  Choix_lieu($lieuv); 
echo "</td>\n";
! 
!    echo "   <td rowspan=\"4\">Disposition<br>"; choixSensTableau($sens);
!    echo "   </td>
!               </tr>
!                           <tr>
!                                         <td>Date</td>
!             <td>
!                                           <table>
!                                                   <tr>
!                                                         <td>
!                     <a 
href=\"$PHP_SELF?operation=$operation&usagev=$usagev&datev=".date("Y-m-d",strtotime("-1
 day",strtotime($datev)))."&lieuv=$lieuv&sens=$sens\">&lt;&lt;</a>
!                   </td>";
     choixJour($datev);
!    echo "         <td>
!                     <a 
href=\"$PHP_SELF?operation=$operation&usagev=$usagev&datev=".date("Y-m-d",strtotime("+1
 day",strtotime($datev)))."&lieuv=$lieuv&sens=$sens\">&gt;&gt;</a>
!                   </td>
!                                                       </tr>
!                                               </table>
!                             </td>\n";
! 
!    echo " </tr>
!               <tr>
!                                         <td>Usage</td>";  
formChoixUsage($usagev);
!    echo " </tr>
!               <tr>
!                                         <td>Accompagné(e)</td>";  
choixCombien($combienv);
!    echo " </tr>
!               <tr>
!                                         <td align=center colspan=3>
!               <input type=\"submit\" name=\"Recherche disponibilités\" 
value=\"Recherche disponibilités\">
!                             </td>
!                           </tr>
!                                       </table></form>\n";
!   echo cadre_fin();
  }
  





reply via email to

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