diff --git a/app/call_forward/call_forward_edit.php b/app/call_forward/call_forward_edit.php index 1cf50ad392..634141f8ed 100644 --- a/app/call_forward/call_forward_edit.php +++ b/app/call_forward/call_forward_edit.php @@ -477,7 +477,7 @@ unset($sql, $parameters, $result, $row); } } - + //add the pre-defined follow me destinations for ($n = 0; $n <= (((!empty($_SESSION['follow_me']['max_destinations']['numeric'])) ? $_SESSION['follow_me']['max_destinations']['numeric'] : 5) - 1); $n++) { if (empty($destinations[$n]['uuid'])) { $destinations[$n]['uuid'] = null; } @@ -523,7 +523,7 @@ echo " source: extensions\n"; echo " });\n"; } - + echo "});\n"; echo "\n"; } @@ -558,14 +558,38 @@ echo " ".$text['label-call_forward']."\n"; echo "\n"; echo "
| \n"; - echo " ".$text['label-destinations']."\n"; - echo " | \n"; - echo "\n";
-
- echo "
";
- echo $text['label-ignore_busy'];
- echo " | \n";
- echo " \n";
- echo " \n";
- echo " \n";
- echo " | \n";
- echo " \n"; - echo $text['description-ignore_busy']."\n"; - echo " \n";
- echo " ".$text['label-cid-name-prefix']."\n";
- echo " | \n";
- echo "\n";
- echo " \n";
- echo " | \n";
echo "\n"; - echo $text['description-cid-name-prefix']."\n"; echo " | ||||||||||
| \n"; - echo " ".$text['label-cid-number-prefix']."\n"; - echo " | \n"; - echo "\n";
- echo " \n";
- echo " \n"; - echo $text['description-cid-number-prefix']."\n"; - echo " | \n";
- echo "
| \n"; + echo " ".$text['label-destinations']."\n"; + echo " | \n"; + echo "\n";
+
+ echo "
| \n";
+ echo "||||||||
| "; + echo $text['label-ignore_busy']; + echo " | \n"; + echo "\n";
+ if (substr($settings->get('theme', 'input_toggle_style'), 0, 6) == 'switch') {
+ echo " \n";
+
+ }
+ else {
+ echo " \n";
+ echo " \n";
+ }
+ echo " \n"; + echo $text['description-ignore_busy']."\n"; + echo " | \n";
+ echo " ||||||||
| \n"; + echo " ".$text['label-cid-name-prefix']."\n"; + echo " | \n"; + echo "\n";
+ echo " \n";
+ echo " \n"; + echo $text['description-cid-name-prefix']."\n"; + echo " | \n";
+ echo "||||||||
| \n"; + echo " ".$text['label-cid-number-prefix']."\n"; + echo " | \n"; + echo "\n";
+ echo " \n";
+ echo " \n"; + echo $text['description-cid-number-prefix']."\n"; + echo " | \n";
+ echo "||||||||
| \n";
- $on_click = "document.getElementById('forward_all_disabled').checked=true;";
- $on_click .= "$('#tr_follow_me_settings').slideUp('fast'); ";
- $on_click2 .= "(document.getElementById('follow_me_enabled').checked) ? $('#tr_follow_me_settings').slideDown('fast') : '' ";
- echo " \n";
- echo " \n";
+ if (substr($settings->get('theme', 'input_toggle_style'), 0, 6) == 'switch') {
+ echo "\n";
+ echo "\n";
+ }
+ else {
+ $on_click = "document.getElementById('forward_all_disabled').checked=true;";
+ $on_click2 = "if (document.getElementById('follow_me_enabled').checked) { $('#div_follow_me_settings').slideDown('fast'); }";
+ echo " \n";
+ echo " \n";
+ }
echo " \n"; echo " | \n";
echo "\n";