From c67b75d19a9037fbec3f9768dc21291a77d4b3a0 Mon Sep 17 00:00:00 2001 From: xbipin Date: Sat, 31 Jan 2015 10:35:11 +0400 Subject: 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(+) (limited to 'usr/local/www/pkg_edit.php') diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index fbcd6b8..b601137 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"; -- cgit v1.1