Commit 43424bb2 authored by slopez's avatar slopez
Browse files

test recherche créneaux réunion

parent 42de7d66
...@@ -113,24 +113,20 @@ foreach($oqp as $jour => $_horraires) ...@@ -113,24 +113,20 @@ foreach($oqp as $jour => $_horraires)
$lastB = false; $lastB = false;
foreach($_horraires as $horraire => $_oqp) foreach($_horraires as $horraire => $_oqp)
{ {
print_r($_oqp);
if((int)$_oqp['A']==0) if((int)$_oqp['A']==0)
{ {
print_r('A : '.$startA." : ".$lastA."\n");
$lastA=$horraire; $lastA=$horraire;
if(!$startA) if(!$startA)
$startA=$horraire; $startA=$horraire;
} }
elseif((int)$_oqp['B']==0) elseif((int)$_oqp['B']==0)
{ {
print_r('A : '.$startB." : ".$lastB."\n");
$lastB=$horraire; $lastB=$horraire;
if(!$startB) if(!$startB)
$startB=$horraire; $startB=$horraire;
} }
elseif((int)$_oqp['B']>0) elseif((int)$_oqp['B']>0)
{ {
print_r('B : '.$startB." : ".$lastB."\n");
if($startB && $startB!=$lastB) if($startB && $startB!=$lastB)
{ {
$free[] = array("semaine_seance" =>'B', $free[] = array("semaine_seance" =>'B',
...@@ -147,7 +143,6 @@ foreach($oqp as $jour => $_horraires) ...@@ -147,7 +143,6 @@ foreach($oqp as $jour => $_horraires)
} }
elseif((int)$_oqp['A']>0) elseif((int)$_oqp['A']>0)
{ {
print_r('A : '.$startA." : ".$lastA."\n");
if($startA && $startA!=$lastA) if($startA && $startA!=$lastA)
{ {
$free[] = array("semaine_seance" =>'A', $free[] = array("semaine_seance" =>'A',
...@@ -186,8 +181,6 @@ foreach($oqp as $jour => $_horraires) ...@@ -186,8 +181,6 @@ foreach($oqp as $jour => $_horraires)
"salle_seance" => ''); "salle_seance" => '');
} }
} }
print_r($free);
exit();
$edt = new edt_img('Créneaux disponibles', $free); $edt = new edt_img('Créneaux disponibles', $free);
$edt->generate(false); $edt->generate(false);
exit; exit;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment