diff --git a/app/call_forward/resources/dashboard/call_forward.php b/app/call_forward/resources/dashboard/call_forward.php index 4f6e01fc54..4cbcd8eaa5 100644 --- a/app/call_forward/resources/dashboard/call_forward.php +++ b/app/call_forward/resources/dashboard/call_forward.php @@ -22,23 +22,29 @@ $language = new text; $text = $language->get($_SESSION['domain']['language']['code'], 'app/call_forward'); +//extensions link + $extension_link = '#'; + if (permission_exists('extension_view')) { + $extension_link = PROJECT_PATH."/app/extensions/extensions.php"; + } + $call_forward_link = PROJECT_PATH."/app/call_forward/call_forward.php"; + //set the row style $c = 0; $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; //get data - $sql = " - select - extension_uuid, - extension, - forward_all_enabled, - forward_all_destination, - follow_me_enabled, - follow_me_uuid, - do_not_disturb - from - v_extensions "; + $sql = "select "; + $sql .= "extension_uuid,"; + $sql .= "extension, "; + $sql .= "forward_all_enabled, "; + $sql .= "forward_all_destination, "; + $sql .= "follow_me_enabled, "; + $sql .= "follow_me_uuid, "; + $sql .= "do_not_disturb "; + $sql .= "from "; + $sql .= "v_extensions "; if (!empty($_GET['show']) && $_GET['show'] == "all" && permission_exists('call_forward_all')) { $sql .= "where true "; } @@ -181,19 +187,17 @@ echo "
"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; if (permission_exists('call_forward')) { - echo " \n"; + echo " \n"; } if (permission_exists('follow_me')) { - echo " \n"; + echo " \n"; } if (permission_exists('do_not_disturb')) { - echo " \n"; + echo " \n"; } echo "\n"; - -// data if (is_array($extensions) && @sizeof($extensions) != 0) { foreach ($extensions as $row) { $tr_link = PROJECT_PATH."/app/call_forward/call_forward_edit.php?id=".$row['extension_uuid']; @@ -233,4 +237,4 @@ echo "\n"; echo "\n"; -?> \ No newline at end of file +?>
".$text['label-extension']."".$text['label-extension']."".$text['label-call_forward']."".$text['label-call_forward']."".$text['label-follow_me']."".$text['label-follow_me']."".$text['label-dnd']."".$text['label-dnd']."