ADD informations concernant les jours pendant lesquels les participants sont présent...
[cl7.git] / tx_inscription.php
index 22847f4..742e153 100644 (file)
@@ -93,6 +93,25 @@ else
          <input type="text" maxlength="30" name="e_mail" <?php echo($le_participant->valide?('value="'.$le_participant->info->e_mail.'"'):''); ?> />
       </td>
    </tr>
+   <tr>
+      <td>
+         prĂ©sence
+      </td>
+      <td>
+         <?php          
+            $res = mysql_query("
+               SELECT periodes.id, periodes.nom, participations.participant_id
+               FROM periodes
+               LEFT JOIN participations ON periodes.id = participations.periode_id
+                  AND participations.participant_id = ".($le_participant->valide ? $le_participant->info->id : "0")."
+            ");
+            while($periode = mysql_fetch_object($res))
+            {
+               echo '<p><input name="periodes[]" value="'.$periode->id.'" '.(! $le_participant->valide || $periode->participant_id ? 'checked="checked"' : '').' id="periode'.$periode->id.'" type="checkbox" /><label for="periode'.$periode->id.'" />'.$periode->nom.'</label></p>';
+            }
+         ?>
+      </td>
+   </tr>
    <tr>
       <td>
          remarques