diff --git a/web/add/cron/index.php b/web/add/cron/index.php
index 7384a914..d0a1a1e3 100644
--- a/web/add/cron/index.php
+++ b/web/add/cron/index.php
@@ -68,7 +68,6 @@ top_panel($user,$TAB);
$db_types = json_decode(implode('', $output), true);
unset($output);
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_cron.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_cron.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
diff --git a/web/list/cron/index.php b/web/list/cron/index.php
index 7f826a33..6d8a32ae 100644
--- a/web/list/cron/index.php
+++ b/web/list/cron/index.php
@@ -13,26 +13,18 @@ top_panel($user,$TAB);
// Data
if ($_SESSION['user'] == 'admin') {
-
exec (VESTA_CMD."v_list_cron_jobs $user json", $output, $return_var);
- check_error($return_var);
$data = json_decode(implode('', $output), true);
$data = array_reverse($data);
unset($output);
-
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_cron.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_cron.html');
} else {
exec (VESTA_CMD."v_list_cron_jobs $user json", $output, $return_var);
- check_error($return_var);
$data = json_decode(implode('', $output), true);
$data = array_reverse($data);
unset($output);
-
- include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_cron.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_cron.html');
-
}
// Footer
diff --git a/web/templates/admin/add_cron.html b/web/templates/admin/add_cron.html
index ca1c760a..4d1ea2da 100644
--- a/web/templates/admin/add_cron.html
+++ b/web/templates/admin/add_cron.html
@@ -1,57 +1,106 @@
-
+
+
+
+
-
-
+
diff --git a/web/templates/admin/edit_cron.html b/web/templates/admin/edit_cron.html
index 85b629b2..320cd4b1 100644
--- a/web/templates/admin/edit_cron.html
+++ b/web/templates/admin/edit_cron.html
@@ -1,59 +1,109 @@
-
+
+
+
+
+
diff --git a/web/templates/admin/list_cron.html b/web/templates/admin/list_cron.html
index b83f1422..a0c60161 100644
--- a/web/templates/admin/list_cron.html
+++ b/web/templates/admin/list_cron.html
@@ -1,151 +1,220 @@
-
-
- $value) {
- ++$i;
- if ($data[$key]['SUSPENDED'] == 'yes') {
- $status = 'suspended';
- $spnd_action = 'unsuspend' ;
- } else {
- $status = 'active';
- $spnd_action = 'suspend';
- }
-
- if (empty($data[$key]['CATCHALL'])) {
- $data[$key]['CATCHALL'] = 'null';
- }
- ?>
-
-
-
-
-
- |
-
-
-
- |
- edit |
-
-
- ">
- " title="Confirmation">
- Are you sure you want to cron job?
-
- |
-
-
- delete
-
- Are you sure you want to delete cron job?
-
- |
-
-
-
- |
-
-
-
- |
-
-
- |
-
-
- |
+
+
+
+
+
+ |
+
+
+
+ |
+ edit |
+
+
+ ">
+ " title="Confirmation">
+ Are you sure you want to cron job?
+
+ |
+
+
+ delete
+
+ Are you sure you want to delete cron job?
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Min
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ Hour
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ Day
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ Month
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ Day of Week
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
-
-
- |
|
"; ?>
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
+
+
+
+ |
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/admin/menu_add_cron.html b/web/templates/admin/menu_add_cron.html
deleted file mode 100644
index e332401a..00000000
--- a/web/templates/admin/menu_add_cron.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_cron.html b/web/templates/admin/menu_cron.html
deleted file mode 100644
index bc359fa5..00000000
--- a/web/templates/admin/menu_cron.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
+
+
+
+ |
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/menu_cron.html b/web/templates/user/menu_cron.html
deleted file mode 100644
index b16d2428..00000000
--- a/web/templates/user/menu_cron.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-