From fecab891fc2285e29d940a3185a61f80889f26e6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 4 May 2025 13:44:08 +0300 Subject: [PATCH] add a basic prefs panel for scheduled task records --- classes/Pref_System.php | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/classes/Pref_System.php b/classes/Pref_System.php index 43bc733f0..c5d7ab606 100644 --- a/classes/Pref_System.php +++ b/classes/Pref_System.php @@ -28,6 +28,38 @@ class Pref_System extends Handler_Administrative { print json_encode(['rc' => $rc, 'error' => $mailer->error()]); } + function getscheduledtasks(): void { + ?> + + + + + + + + find_many(); + + foreach ($task_records as $task) { + $row_style = $task->last_rc === 0 ? 'text-success' : 'text-error'; + + ?> + + + + + + + +
task_name ?>last_run) ?>last_duration ?>last_rc ?>
+ -
'> +
'>
-
'> +
'>