Update index.php

This commit is contained in:
Alexandre MOTTIER 2023-01-15 22:27:30 +01:00
parent 30b3cf0e62
commit 34234fd5fc
Signed by: am
GPG Key ID: AF5BF6F50334C605
2 changed files with 3 additions and 4 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -13,7 +13,7 @@
<body> <body>
<h1>Gestion des congés - Affichage</h1> <h1>Gestion des congés - Affichage</h1>
<h2>Année en cours : <?php echo date('Y'); ?></h2> <h2>Année en cours : <?php echo date('Y'); ?></h2>
<button onclick="window.location.href='saisie.php'">Saisir des congés</button> <button onclick="window.location.href='saisie.php'" class="button">Saisir des congés</button>
<br><br> <br><br>
<?php <?php
$sql = "SELECT * FROM $table"; $sql = "SELECT * FROM $table";
@ -42,7 +42,6 @@ if ($result->num_rows > 0) {
$findate = str_replace('-"', '/', $row["datefin"]); $findate = str_replace('-"', '/', $row["datefin"]);
$datefin = date("d/m/Y", strtotime($findate)); $datefin = date("d/m/Y", strtotime($findate));
$nombrejours = $row["nbjours"]; $nombrejours = $row["nbjours"];
$link = 'class/class.remove.php?datedebut=" . $row["datedebut"] . "&datefin=" . $row["datefin"]. "'
# echo "<tr><td> " . $datedebut. " </td><td> " . $datefin. " </td><td> " . $nombrejours . " jour(s) </td><td> " . $row["type"] . " </td><td><button onclick="window.location.href='class/class.remove.php?datedebut=" . $row["datedebut"] . "&datefin=" . $row["datefin"]. "'">Supprimer la ligne</button></td></tr>"; # echo "<tr><td> " . $datedebut. " </td><td> " . $datefin. " </td><td> " . $nombrejours . " jour(s) </td><td> " . $row["type"] . " </td><td><button onclick="window.location.href='class/class.remove.php?datedebut=" . $row["datedebut"] . "&datefin=" . $row["datefin"]. "'">Supprimer la ligne</button></td></tr>";
} }
@ -54,8 +53,8 @@ $conn->close();
</tbody> </tbody>
</table> </table>
<br> <br>
<button onclick="window.location.href='class/class.clearcp.php'">Supprimer les congés payés</button> <button onclick="window.location.href='class/class.clearcp.php'" class="button">Supprimer les congés payés</button>
<button onclick="window.location.href='class/class.clearrtt.php'">Supprimer les RTT</button> <button onclick="window.location.href='class/class.clearrtt.php'" class="button">Supprimer les RTT</button>
<br><br> <br><br>
<?php require('solde.php') ?> <?php require('solde.php') ?>
</body> </body>