From dcba27e7acbbc4c50ed5d08be29cadeb34d9ca77 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Sun, 27 Apr 2014 10:24:54 +0000 Subject: [PATCH] Time Conditions, select box mods. --- app/time_conditions/app_languages.php | 14 ++++++------ app/time_conditions/time_condition_add.php | 26 +++++++++------------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/app/time_conditions/app_languages.php b/app/time_conditions/app_languages.php index 1663744d7d..7cdd5151e7 100644 --- a/app/time_conditions/app_languages.php +++ b/app/time_conditions/app_languages.php @@ -1,4 +1,4 @@ -\n"; echo " ".$text['label-template'].":\n"; echo "\n"; echo "\n"; -echo " \n"; echo " \n"; echo " \n"; echo " \n"; @@ -987,7 +987,7 @@ echo "\n"; echo "\n"; //switch_select_destination(select_type, select_label, select_name, select_value, select_style, $action); -switch_select_destination("dialplan", $action_1, "action_1", $action_1, "width: 60%;", ""); +switch_select_destination("dialplan", $action_1, "action_1", $action_1, "", ""); echo "\n"; echo "\n"; @@ -999,7 +999,7 @@ echo "\n"; echo "\n"; //switch_select_destination(select_type, select_label, select_name, select_value, select_style, $action); -switch_select_destination("dialplan", $anti_action_1, "anti_action_1", $anti_action_1, "width: 60%;", ""); +switch_select_destination("dialplan", $anti_action_1, "anti_action_1", $anti_action_1, "", ""); echo "
\n"; echo "\n"; @@ -1010,21 +1010,17 @@ echo "\n"; echo " ".$text['label-order'].":\n"; echo "\n"; echo "\n"; -echo " \n"; $i = 300; while($i <= 999) { - if (strlen($i) == 1) { echo " \n"; } - if (strlen($i) == 2) { echo " \n"; } - if (strlen($i) == 3) { echo " \n"; } + $selected = ($dialplan_order == $i) ? "selected" : null; + if (strlen($i) == 1) { echo "\n"; } + if (strlen($i) == 2) { echo "\n"; } + if (strlen($i) == 3) { echo "\n"; } $i = $i + 10; } echo " \n"; -echo "
\n"; -echo "\n"; +echo "
\n"; echo "\n"; echo "\n"; @@ -1033,7 +1029,7 @@ echo "\n"; echo " ".$text['label-enabled'].":\n"; echo "\n"; echo "\n"; -echo " \n"; if ($dialplan_enabled == "true") { echo " \n"; } @@ -1057,7 +1053,7 @@ echo "\n"; echo " ".$text['label-description'].":\n"; echo "\n"; echo "\n"; -echo " \n"; +echo " \n"; echo "
\n"; echo "\n"; echo "\n";