From c67b75d19a9037fbec3f9768dc21291a77d4b3a0 Mon Sep 17 00:00:00 2001 From: xbipin Date: Sat, 31 Jan 2015 10:35:11 +0400 Subject: [PATCH 1/3] add schedule selection to pkg_edit.php this allows schedule selection to pkg_edit.php, this can then be utilized by packages to set schedules in many other places. This is the first set of changes, will further modify other files to make full use of schedules. --- usr/local/www/pkg_edit.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index fbcd6b8152..b6011370e9 100644 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -808,6 +808,33 @@ if ($pkg['tabs'] <> "") { echo $input ."\n
" . fixup_string($pkga['description']) . "\n"; break; + case "schedule_selection": + $input = "\n
\n" . fixup_string($pkga['description']) . "\n"; + if(isset($pkga['advancedfield']) && isset($adv_filed_count)) { + $js_array[] = $pkga['fieldname']; + $advanced .= display_advanced_field($pkga['fieldname']).$input; + $advanced .= "\n"; + } + else + echo $input; + break; + case "rowhelper": #$rowhelpername=($fields['fieldname'] ? $fields['fieldname'] : "row"); $rowhelpername="row"; From f55ef2e70ee262c9e5934b9177cd78848e7e4a85 Mon Sep 17 00:00:00 2001 From: xbipin Date: Sat, 31 Jan 2015 10:38:58 +0400 Subject: [PATCH 2/3] Update pkg_edit.php --- usr/local/www/pkg_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index b6011370e9..5e717d59e9 100644 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -811,7 +811,7 @@ if ($pkg['tabs'] <> "") { case "schedule_selection": $input = "\n
\n" . fixup_string($pkga['description']) . "\n"; if(isset($pkga['advancedfield']) && isset($adv_filed_count)) { $js_array[] = $pkga['fieldname']; $advanced .= display_advanced_field($pkga['fieldname']).$input; $advanced .= "\n"; - } - else + } else echo $input; break;