\n";
+ echo "
".$text['label-domain_limits']."\n";
//doughnut chart
if ($dashboard_chart_type == "doughnut") {
- echo "
\n";
+ echo "
\n";
echo "\n";
}
if ($dashboard_chart_type == "none") {
- echo "
".$hud_stat_used."";
+ echo "
".$hud_stat_used."";
}
echo "
";
+ if ($dashboard_details_state != 'disabled') {
+ echo "
";
- echo "
\n";
- echo "\n";
- echo "| ".$text['label-feature']." | \n";
- echo "".$text['label-used']." | \n";
- echo "".$text['label-total']." | \n";
- echo "
\n";
-
- //data
- foreach ($_SESSION['limit'] as $category => $value) {
- $used = $usage[$category];
- $limit = $value['numeric'];
- switch ($category) {
- case 'users':
- if (!permission_exists('user_view')) { continue 2; }
- $url = '/core/users/users.php';
- break;
- case 'call_center_queues':
- if (!permission_exists('call_center_active_view')) { continue 2; }
- $url = '/app/call_centers/call_center_queues.php';
- break;
- case 'destinations':
- if (!permission_exists('destination_view')) { continue 2; }
- $url = '/app/destinations/destinations.php';
- break;
- case 'devices':
- if (!permission_exists('device_view')) { continue 2; }
- $url = '/app/devices/devices.php';
- break;
- case 'extensions':
- if (!permission_exists('extension_view')) { continue 2; }
- $url = '/app/extensions/extensions.php';
- break;
- case 'gateways':
- if (!permission_exists('gateway_view')) { continue 2; }
- $url = '/app/gateways/gateways.php';
- break;
- case 'ivr_menus':
- if (!permission_exists('ivr_menu_view')) { continue 2; }
- $url = '/app/ivr_menus/ivr_menus.php';
- break;
- case 'ring_groups':
- if (!permission_exists('ring_group_view')) { continue 2; }
- $url = '/app/ring_groups/ring_groups.php';
- break;
- }
- $tr_link = "href='".PROJECT_PATH.$url."'";
- echo "\n";
- echo "| ".$text['label-'.$category]." | \n";
- echo "".$used." | \n";
- echo "".$limit." | \n";
+ echo "\n";
+ echo "\n";
+ echo "| ".$text['label-feature']." | \n";
+ echo "".$text['label-used']." | \n";
+ echo "".$text['label-total']." | \n";
echo "
\n";
- $c = ($c) ? 0 : 1;
+
+ //data
+ foreach ($_SESSION['limit'] as $category => $value) {
+ $used = $usage[$category];
+ $limit = $value['numeric'];
+ switch ($category) {
+ case 'users':
+ if (!permission_exists('user_view')) { continue 2; }
+ $url = '/core/users/users.php';
+ break;
+ case 'call_center_queues':
+ if (!permission_exists('call_center_active_view')) { continue 2; }
+ $url = '/app/call_centers/call_center_queues.php';
+ break;
+ case 'destinations':
+ if (!permission_exists('destination_view')) { continue 2; }
+ $url = '/app/destinations/destinations.php';
+ break;
+ case 'devices':
+ if (!permission_exists('device_view')) { continue 2; }
+ $url = '/app/devices/devices.php';
+ break;
+ case 'extensions':
+ if (!permission_exists('extension_view')) { continue 2; }
+ $url = '/app/extensions/extensions.php';
+ break;
+ case 'gateways':
+ if (!permission_exists('gateway_view')) { continue 2; }
+ $url = '/app/gateways/gateways.php';
+ break;
+ case 'ivr_menus':
+ if (!permission_exists('ivr_menu_view')) { continue 2; }
+ $url = '/app/ivr_menus/ivr_menus.php';
+ break;
+ case 'ring_groups':
+ if (!permission_exists('ring_group_view')) { continue 2; }
+ $url = '/app/ring_groups/ring_groups.php';
+ break;
+ }
+ $tr_link = "href='".PROJECT_PATH.$url."'";
+ echo "\n";
+ echo "| ".$text['label-'.$category]." | \n";
+ echo "".$used." | \n";
+ echo "".$limit." | \n";
+ echo "
\n";
+ $c = ($c) ? 0 : 1;
+ }
+
+ echo "
\n";
+ echo "";
+ //$n++;
+
+ echo "";
}
-
- echo "
\n";
- echo "
";
- //$n++;
-
- echo "
";
echo "
\n";
}
diff --git a/app/extensions/resources/dashboard/caller_id.php b/app/extensions/resources/dashboard/caller_id.php
index eb1c7199f0..aa2ba1b873 100644
--- a/app/extensions/resources/dashboard/caller_id.php
+++ b/app/extensions/resources/dashboard/caller_id.php
@@ -173,12 +173,12 @@
//caller id
echo "