Advertisement
Kryptoleon

Untitled

Feb 8th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. <div id="rechercheZone" style="padding-bottom:0px;margin-top:0px;">
  2. <form action="#" method="post">
  3. <label style="margin-right:10px;">Entrez une date de journal à trouver : </label><input type="text" name="nom" style="margin-right:10px;width:59px;" placeholder="jj/mm/aa"/><input type="submit" value="Chercher" style="background-color:white;height:31px; cursor:pointer;" />
  4. </form>
  5. </div>
  6.  
  7. <center>
  8. <h1 style="color:#ff9401;">Journal du jour (07/12/15) en <?php echo $donneeEleves['classe']; ?></h1><br />
  9.  
  10. <table>
  11. <tr>
  12. <th><p>Travail à faire</p></th>
  13. <th style="background-color:white;"><p>Cours</p></th>
  14. <th><p>Travail fait en classe</p></th>
  15. </tr>
  16. <?php
  17. $reqDailyJDC = $bdd->prepare('SELECT * FROM devoirs WHERE classe = :classe AND date = :date ORDER BY type, matiere');
  18. $reqDailyJDC->execute(array(
  19. 'classe' => $donneeEleves['classe'],
  20. 'date' => '2016-02-09'));
  21. while($donneeDailyJDC = $reqDailyJDC->fetch()) {
  22. ?>
  23. <tr>
  24. <td><p><?php
  25. if ($donneeDailyJDC['type'] == 1) {
  26. if ($donneeDailyJDC['contenu'] != '') { //A bosser /!\
  27. echo $donneeDailyJDC['contenu'];
  28. }
  29. else {
  30. echo 'Rien à faire';
  31. }
  32. }
  33. ?></p></td>
  34. <td><p><?php echo $donneeDailyJDC['matiere']; ?></p></td>
  35. <td><p><?php
  36. if ($donneeDailyJDC['type'] == 0) {
  37. echo $donneeDailyJDC['contenu'];
  38. }
  39. ?></p></td>
  40. </tr>
  41. <?php
  42. }
  43.  
  44. ?>
  45. </table>
  46. </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement