Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="rechercheZone" style="padding-bottom:0px;margin-top:0px;">
- <form action="#" method="post">
- <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;" />
- </form>
- </div>
- <center>
- <h1 style="color:#ff9401;">Journal du jour (07/12/15) en <?php echo $donneeEleves['classe']; ?></h1><br />
- <table>
- <tr>
- <th><p>Travail à faire</p></th>
- <th style="background-color:white;"><p>Cours</p></th>
- <th><p>Travail fait en classe</p></th>
- </tr>
- <?php
- $reqDailyJDC = $bdd->prepare('SELECT * FROM devoirs WHERE classe = :classe AND date = :date ORDER BY type, matiere');
- $reqDailyJDC->execute(array(
- 'classe' => $donneeEleves['classe'],
- 'date' => '2016-02-09'));
- while($donneeDailyJDC = $reqDailyJDC->fetch()) {
- ?>
- <tr>
- <td><p><?php
- if ($donneeDailyJDC['type'] == 1) {
- if ($donneeDailyJDC['contenu'] != '') { //A bosser /!\
- echo $donneeDailyJDC['contenu'];
- }
- else {
- echo 'Rien à faire';
- }
- }
- ?></p></td>
- <td><p><?php echo $donneeDailyJDC['matiere']; ?></p></td>
- <td><p><?php
- if ($donneeDailyJDC['type'] == 0) {
- echo $donneeDailyJDC['contenu'];
- }
- ?></p></td>
- </tr>
- <?php
- }
- ?>
- </table>
- </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement