Dashboard - Minor changes (#6993)
This commit is contained in:
@@ -106,7 +106,7 @@
|
||||
echo " <span class='hud_title'>".$text['header-call_forward']."</span>\n";
|
||||
|
||||
//doughnut chart
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") {
|
||||
echo "<div class='hud_chart' style='width: 275px;'><canvas id='call_forward_chart'></canvas></div>\n";
|
||||
|
||||
echo "<script>\n";
|
||||
@@ -191,7 +191,7 @@
|
||||
echo " );\n";
|
||||
echo "</script>\n";
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
if ($dashboard_chart_type == "number") {
|
||||
echo " <span class='hud_stat'>".$stats['call_forward']."</span>";
|
||||
}
|
||||
echo " </div>\n";
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
echo " <span class='hud_title'>".$text['label-domain_limits']."</span>\n";
|
||||
|
||||
//doughnut chart
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") {
|
||||
echo "<div class='hud_chart' style='width: 275px;'><canvas id='domain_limits_chart'></canvas></div>\n";
|
||||
|
||||
echo "<script>\n";
|
||||
@@ -173,7 +173,7 @@
|
||||
echo " );\n";
|
||||
echo "</script>\n";
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
if ($dashboard_chart_type == "number") {
|
||||
echo " <span class='hud_stat'>".$hud_stat_used."</span>";
|
||||
}
|
||||
echo " </div>\n";
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
echo " <span class='hud_title'>".$text['label-caller_id_number']."</span>\n";
|
||||
|
||||
//doughnut chart
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") {
|
||||
echo "<div class='hud_chart' style='width: 275px;'><canvas id='caller_id_chart'></canvas></div>\n";
|
||||
|
||||
echo "<script>\n";
|
||||
@@ -237,7 +237,7 @@
|
||||
echo " );\n";
|
||||
echo "</script>\n";
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
if ($dashboard_chart_type == "number") {
|
||||
echo " <span class='hud_stat'>".$stats['undefined']."</span>";
|
||||
}
|
||||
echo " </div>\n";
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
echo " <span class='hud_title'>".$text['header-ring-group-forward']."</span>\n";
|
||||
|
||||
//doughnut chart
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
if (!isset($dashboard_chart_type) ||$dashboard_chart_type == "doughnut") {
|
||||
echo " <div class='hud_chart' style='width: 275px;'><canvas id='ring_group_forward_chart'></canvas></div>\n";
|
||||
|
||||
echo "<script>\n";
|
||||
@@ -221,7 +221,7 @@
|
||||
echo " );\n";
|
||||
echo "</script>\n";
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
if ($dashboard_chart_type == "number") {
|
||||
echo " <span class='hud_stat'>".$stats['forwarding']."</span>";
|
||||
}
|
||||
echo " </div>\n";
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
echo "<div class='hud_container' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_switch_status_details').slideToggle('fast'); toggle_grid_row_end('".$dashboard_name."')\"").">\n";
|
||||
echo " <span class='hud_title'>".$text['label-switch_status']."</span>\n";
|
||||
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") {
|
||||
//add doughnut chart
|
||||
?>
|
||||
<div class='hud_chart'><canvas id='switch_status_chart'></canvas></div>
|
||||
@@ -125,7 +125,7 @@
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
if ($dashboard_chart_type == "number") {
|
||||
echo " <span class='hud_stat'>".$registrations."</span>";
|
||||
}
|
||||
echo " </div>\n";
|
||||
|
||||
@@ -298,7 +298,7 @@
|
||||
echo "<div class='hud_container' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_system_counts_details').slideToggle('fast'); toggle_grid_row_end('".$dashboard_name."')\"").">\n";
|
||||
echo " <span class='hud_title' onclick=\"document.location.href='".PROJECT_PATH."/app/system/system.php'\">".$text['label-system_counts']."</span>\n";
|
||||
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") {
|
||||
//add doughnut chart
|
||||
?>
|
||||
<div class='hud_chart' style='width: 250px;'><canvas id='system_counts_chart'></canvas></div>
|
||||
@@ -354,7 +354,7 @@
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
if ($dashboard_chart_type == "number") {
|
||||
echo " <span class='hud_stat'>".$domain_total."</span>";
|
||||
}
|
||||
echo " </div>\n";
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
echo " <span class='hud_title' onclick=\"document.location.href='".PROJECT_PATH."/app/system/system.php'\">".$text['label-cpu_usage']."</span>\n";
|
||||
|
||||
//add half doughnut chart
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") {
|
||||
?>
|
||||
<div class='hud_chart' style='width: 175px;'><canvas id='system_cpu_status_chart'></canvas></div>
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
if ($dashboard_chart_type == "number") {
|
||||
echo "<span class='hud_stat'>".round($percent_cpu)."%</span>";
|
||||
}
|
||||
echo "</div>\n";
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
echo " <div class='hud_container' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_system_status_details').slideToggle('fast'); toggle_grid_row_end('".$dashboard_name."')\"").">\n";
|
||||
echo " <span class='hud_title' onclick=\"document.location.href='".PROJECT_PATH."/app/system/system.php'\">".$text['label-disk_usage']."</span>\n";
|
||||
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") {
|
||||
?>
|
||||
<div class='hud_chart' style='width: 175px;'><canvas id='system_status_chart'></canvas></div>
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
if ($dashboard_chart_type == "number") {
|
||||
echo " <span class='hud_stat'>".round($percent_disk_usage)."%</span>";
|
||||
}
|
||||
echo " </div>\n";
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
echo "<div class='hud_container' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_voicemail_details').slideToggle('fast'); toggle_grid_row_end('".$dashboard_name."')\"").">\n";
|
||||
echo " <span class='hud_title' onclick=\"document.location.href='".PROJECT_PATH."/app/voicemails/voicemail_messages.php'\">".$text['label-new_messages']."</span>";
|
||||
|
||||
if (isset($row['dashboard_chart_type']) && $row['dashboard_chart_type'] == "doughnut") {
|
||||
if (isset($dashboard_chart_type) && $dashboard_chart_type == "doughnut") {
|
||||
//add doughnut chart
|
||||
?>
|
||||
<div class='hud_chart'><canvas id='new_messages_chart'></canvas></div>
|
||||
@@ -100,7 +100,7 @@
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if (!isset($row['dashboard_chart_type']) || $row['dashboard_chart_type'] == "none") {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "number") {
|
||||
echo " <span class='hud_stat'>".$messages['new']."</span>";
|
||||
}
|
||||
echo "</div>\n";
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
echo "<div class='hud_container' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_missed_calls_details').slideToggle('fast'); toggle_grid_row_end('".$dashboard_name."')\"").">\n";
|
||||
echo " <span class='hud_title' onclick=\"document.location.href='".PROJECT_PATH."/app/xml_cdr/xml_cdr.php?call_result=missed'\">".$text['label-missed_calls']."</span>";
|
||||
|
||||
if ($row['dashboard_chart_type'] == "doughnut") {
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
//add doughnut chart
|
||||
?>
|
||||
<div class='hud_chart'><canvas id='missed_calls_chart'></canvas></div>
|
||||
@@ -138,7 +138,7 @@
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if ($row['dashboard_chart_type'] == "none" || !isset($row['dashboard_chart_type'])) {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "number") {
|
||||
echo "<span class='hud_stat'>".$num_rows."</span>";
|
||||
}
|
||||
echo "</div>\n";
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
echo "<div class='hud_container' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_recent_calls_details').slideToggle('fast'); toggle_grid_row_end('".$dashboard_name."')\"").">\n";
|
||||
echo " <span class='hud_title' onclick=\"document.location.href='".PROJECT_PATH."/app/xml_cdr/xml_cdr.php';\">".$text['label-recent_calls']."</span>\n";
|
||||
|
||||
if ($row['dashboard_chart_type'] == "doughnut") {
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
//add doughnut chart
|
||||
?>
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if ($row['dashboard_chart_type'] == "none" || !isset($row['dashboard_chart_type'])) {
|
||||
if (!isset($dashboard_chart_type) || $dashboard_chart_type == "number") {
|
||||
echo "<span class='hud_stat'>".$num_rows."</span>";
|
||||
}
|
||||
echo "</div>\n";
|
||||
|
||||
Reference in New Issue
Block a user