Update index.php

This commit is contained in:
Alexandre MOTTIER 2023-01-15 22:36:32 +01:00
parent aae15b6693
commit b14060fd9f
Signed by: am
GPG Key ID: AF5BF6F50334C605
2 changed files with 3 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -42,8 +42,9 @@ 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"]. "'; $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>"; 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 { } else {