107 lines
3.5 KiB
PHP
107 lines
3.5 KiB
PHP
|
|
<!-- affichage d'une intervention / Derniere modification le 23 mai 2019 par Pascal Blain -->
|
|
<?php
|
|
//$nbi = count($lesInterventions);
|
|
/*
|
|
$titre="Ajout";
|
|
echo ('
|
|
<div id="fiche">
|
|
<ul class="lesOnglets">
|
|
<li class="actif onglet" id="onglet1" onclick="javascript:Affiche(\'1\',3);">'.$titre.'</li>
|
|
<li class="inactif onglet" id="onglet2" onclick="javascript:Affiche(\'2\',3);">onglet 2</li>
|
|
<li class="inactif onglet" id="onglet3" onclick="javascript:Affiche(\'3\',3);">onglet 3</li>
|
|
</ul>');
|
|
|
|
/*================================================================================================== nouvelle intervention (1) */
|
|
/*
|
|
echo("
|
|
<div style='display: block;' class='unOnglet' id='contenuOnglet1'>
|
|
<fieldset><legend>Nouvelle intervention</legend>
|
|
<table>
|
|
<tr><th style='width:180px;'>Description</th><th>Date</th><th>Lieu</th><th>Horaires</th></th></tr>
|
|
<tr><td>".$infosIntervention['iDescription']."</td><td>".$infosIntervention['iDdate']."</td><td>".$infosIntervention['iLieu']."</td><td>de ".$infosIntervention['iHeureDebut']." à ".$infosIntervention['iHeureFin']."</td></tr>
|
|
<tr><td colspan='4'>".$infosIntervention['programme1']."</td></tr>
|
|
</table>
|
|
</fieldset>
|
|
<table style='border: 0px solid white;'>
|
|
<tr>
|
|
<td style='border :0px;'>
|
|
<fieldset><legend><a href='index.php?uc=intervention&action=ajouterIntervenants&atelier=20132115&reunion=1' title='ajouter les participants'><img alt='ajouter des intervenants' src='images/group.png'>Intervenants</a></legend>
|
|
<table>");
|
|
$numPa = 0;
|
|
|
|
foreach ($lesParticipants as $unParticipant) {
|
|
if ( $unParticipant['rOrdre'] == 1 AND $numPa < 7) {
|
|
$numPa = $numPa+1;
|
|
$participant=$unParticipant['uNom'] . " " . $unParticipant['uPrenom'];
|
|
echo("<tr> <th style='width:180px;'>" . $participant . "</th> <td>x</td> </tr>");
|
|
}
|
|
}
|
|
echo(" </table>
|
|
</fieldset></td>
|
|
<td style='border :0px;'>
|
|
<fieldset><legend>(suite)</legend>
|
|
<table>");
|
|
$numP = 0;
|
|
foreach ($lesParticipants as $unParticipant) {
|
|
if ($unParticipant['rOrdre'] == 1 ) {
|
|
$numP = $numP+1;
|
|
if ($numP > 7) {
|
|
$participant = $unParticipant['uNom'] . " " . $unParticipant['uPrenom'];
|
|
echo("<tr> <th style='width:180px;'>".$participant."</th> <td>x</td> </tr>");
|
|
}
|
|
}
|
|
}
|
|
while ($numP<14) {
|
|
echo("<tr> <th>...</th>
|
|
|
|
<td> </td> </tr>");
|
|
$numP = $numP+1;
|
|
}
|
|
echo(" </table>
|
|
</fieldset>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<fieldset><legend>Observations</legend>
|
|
<table style='border: 0px solid white;'>
|
|
<tr>
|
|
<td>".$infosIntervention['commentaire1']."</td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
</div>");
|
|
/*================================================================================================== Onglet (2) */
|
|
/*
|
|
echo ("
|
|
<div style='display: none;' class='unOnglet' id='contenuOnglet2'>
|
|
<fieldset><legend>XXXX</legend>
|
|
<table>
|
|
<tr><th style='width:130px;'>.....</th></tr>
|
|
<tr><td>xxxx</td></tr>
|
|
</table>
|
|
</fieldset>
|
|
</div>");
|
|
|
|
/*================================================================================================== Onglet 3 */
|
|
/*
|
|
echo ("
|
|
<div style='display: none;' class='unOnglet' id='contenuOnglet3'>
|
|
<fieldset><legend>XXXX</legend>
|
|
<table>
|
|
<tr><th style='width:130px;'>.....</th></tr>
|
|
<tr><td>xxxx</td></tr>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
|
|
</div>
|
|
</div>");
|
|
*/
|
|
?>
|
|
|
|
<div class="lesInterventions" style="height: 200px;">
|
|
<!-- Liste des interventions -->
|
|
</div>
|
|
|