From b14060fd9f97cedc49522f9c3dac43b8da2633ee Mon Sep 17 00:00:00 2001 From: Alexandre MOTTIER <am@am-networks.fr> Date: Sun, 15 Jan 2023 22:36:32 +0100 Subject: [PATCH] Update index.php --- .DS_Store | Bin 8196 -> 8196 bytes index.php | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.DS_Store b/.DS_Store index e05345af67eed0f562d5b90c219f0d428e1c0dd5..49e6bc41f59621c8478c9f820d369230860043fc 100644 GIT binary patch delta 39 qcmZp1XmQx!C%_c*U~+(f1k1OHfl-rl1Y{tL9sxPVfX%A~BKZLz6%FeE delta 39 qcmZp1XmQx!C%_c^W^#al1WTt{v-jj20T~FRM?j8IVDoB$NPYkVy9`7C diff --git a/index.php b/index.php index 3f7c4d0..5d069d3 100755 --- a/index.php +++ b/index.php @@ -42,8 +42,9 @@ if ($result->num_rows > 0) { $findate = str_replace('-"', '/', $row["datefin"]); $datefin = date("d/m/Y", strtotime($findate)); $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=$link" class="button">Supprimer la ligne</button></td></tr>"; + $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=" . '"' . $link . '"' . "' class='button'>Supprimer la ligne</button></td></tr>"; + } } else {