[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Epnadmin-fr] CVS: epnadmin horaires.php,1.15,1.16 usagers.php,1.21,1.22
From: |
Loïc Dayot |
Subject: |
[Epnadmin-fr] CVS: epnadmin horaires.php,1.15,1.16 usagers.php,1.21,1.22 |
Date: |
Sat, 29 Mar 2003 05:27:00 -0500 |
Update of /cvsroot/epnadmin/epnadmin
In directory subversions:/tmp/cvs-serv16901/epnadmin
Modified Files:
horaires.php usagers.php
Log Message:
Corrections de punaises dans horaires (les droits) et dans usagers (sur le
choix des tarifs et la suppression de compte).
Index: horaires.php
===================================================================
RCS file: /cvsroot/epnadmin/epnadmin/horaires.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** horaires.php 27 Mar 2003 21:38:45 -0000 1.15
--- horaires.php 29 Mar 2003 10:26:57 -0000 1.16
***************
*** 53,57 ****
function AfficheCalendrier($id_localisation, $date)
{
! global $unitehoraire, $PHP_SELF,
$shorlegende,$shoraccesindiv,$shoractivcoll,
$shorsemainedu;
--- 53,57 ----
function AfficheCalendrier($id_localisation, $date)
{
! global $unitehoraire, $PHP_SELF, $id_structure,
$shorlegende,$shoraccesindiv,$shoractivcoll,
$shorsemainedu;
***************
*** 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,169 ----
if (!$tranchehoraire->ouverture)
echo "F ";
! //elseif (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" &&
$id_structure==$tranchehoraire->id_structure))
! elseif (verifiedroits("w", FALSE))
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))
! elseif (verifiedroits("w", FALSE))
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))
! elseif (verifiedroits("w", FALSE))
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>
--- 179,184 ----
echo "</tr>\n";
! //if (HORAIRES_AUTRES>="w" || (HORAIRES_MOI>="w" &&
$id_structure==$tranchehoraire->id_structure))
! if (verifiedroits("w", FALSE))
echo "<tr><td colspan=\"$nbcol\" align=\"center\">
<a
href=\"$PHP_SELF?operation=2&id_localisation=$id_localisation&date=$date\">Appliquer
le modèle</a>
***************
*** 303,307 ****
}
! function verifiedroits($droit="r")
{
global $id_localisation, $id_structure,
--- 307,311 ----
}
! function verifiedroits($droit="r", $affiche=TRUE)
{
global $id_localisation, $id_structure,
***************
*** 310,314 ****
if (! $id_localisation)
{
! echo $manqueinfosalle;
return FALSE;
}
--- 314,318 ----
if (! $id_localisation)
{
! if ($affiche) echo $manqueinfosalle;
return FALSE;
}
***************
*** 316,320 ****
if (! $localisation=mysql_fetch_object($res))
{
! echo $salleintrouvable;
return FALSE;
}
--- 320,324 ----
if (! $localisation=mysql_fetch_object($res))
{
! if ($affiche) echo $salleintrouvable;
return FALSE;
}
***************
*** 322,326 ****
if ( !(HORAIRES_AUTRES>=$droit || (HORAIRES_MOI>=$droit &&
$id_structure==$localisation->id_structure)))
{
! echo $pasledroit;
return FALSE;
}
--- 326,330 ----
if ( !(HORAIRES_AUTRES>=$droit || (HORAIRES_MOI>=$droit &&
$id_structure==$localisation->id_structure)))
{
! if ($affiche) echo $pasledroit;
return FALSE;
}
Index: usagers.php
===================================================================
RCS file: /cvsroot/epnadmin/epnadmin/usagers.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** usagers.php 2 Mar 2003 13:47:10 -0000 1.21
--- usagers.php 29 Mar 2003 10:26:57 -0000 1.22
***************
*** 157,162 ****
<td><select tabindex=10
name=\"tarif\"><option value=\"-1\"></option>\n";
$t=0;
! while ($tarifs[$t])
! {
echo "<option value=\"$t\"";
if ($credit)
--- 157,164 ----
<td><select tabindex=10
name=\"tarif\"><option value=\"-1\"></option>\n";
$t=0;
! while ($t<1000)
! {
! if ($tarifs[$t])
! {
echo "<option value=\"$t\"";
if ($credit)
***************
*** 164,168 ****
echo " SELECTED";
echo ">".$tarifs[$t]."\n";
! $t++;
}
echo "</select></td>\n";
--- 166,171 ----
echo " SELECTED";
echo ">".$tarifs[$t]."\n";
! }
! $t++;
}
echo "</select></td>\n";
***************
*** 637,641 ****
$req="SELECT * FROM domaines";
$res=executeRequete($req);
! while ($domaine=mysql_fecth_object($res))
if (strpos($usager->courriel, $domaine->domaine))
{
--- 640,644 ----
$req="SELECT * FROM domaines";
$res=executeRequete($req);
! while ($domaine=mysql_fetch_object($res))
if (strpos($usager->courriel, $domaine->domaine))
{
***************
*** 876,880 ****
echo "<p><a href=\"table_horaire_session.php\">$susagerversplanning</a></p>
<p><a href=\"$PHP_SELF?operation=3\">$susagerencorecreer</a>.</p>\n";
! cadre_fin();
break;
--- 879,883 ----
echo "<p><a href=\"table_horaire_session.php\">$susagerversplanning</a></p>
<p><a href=\"$PHP_SELF?operation=3\">$susagerencorecreer</a>.</p>\n";
! echo cadre_fin();
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Epnadmin-fr] CVS: epnadmin horaires.php,1.15,1.16 usagers.php,1.21,1.22,
Loïc Dayot <=