diff --git a/input.html b/input.html index 6b6aef7..c2bf3c3 100644 --- a/input.html +++ b/input.html @@ -5,8 +5,8 @@ // Set default value to current date & time document.addEventListener("DOMContentLoaded", function () { - let now = new Date(); - let localDatetime = now.toISOString().slice(0, 16); // Format for datetime-local input + const currentIsoDateString = new Date(Date.now() - new Date().getTimezoneOffset() * 60000).toISOString() + let localDatetime = currentIsoDateString.slice(0, 16); // Format for datetime-local input document.getElementById("eta").value = localDatetime; // document.getElementById("etd").value = localDatetime; }); diff --git a/newppr.php b/newppr.php index fa91f3d..480554f 100644 --- a/newppr.php +++ b/newppr.php @@ -11,7 +11,14 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { echo "
+ | ' . htmlspecialchars($field->name ?? '') . ' | '; + if (!in_array($field->name, ['notes', 'status', 'id', 'ac_call'])) { + $tableHtml .= "" . htmlspecialchars($field->name ?? '') . " | "; } - } - echo 'actions | '; + $tableHtml .= "actions | |
|---|---|---|---|---|
| ' . htmlspecialchars($row['ac_call'] ?? '') . " " . $value . ' | ';
- } else {
- echo '' . htmlspecialchars($row['ac_call'] ?? '') . " " . $value . ' | ';
- }
- } else if ($key == 'ac_reg' && !empty($row['notes'])) {
- echo '' . htmlspecialchars($value ?? '') . ' | '; - } else { - echo '' . htmlspecialchars($value ?? '') . ' | '; - } - } - } - echo '![]() | ';
- echo '