Update voicemails.php (#6115)
This commit is contained in:
parent
a8697e1f71
commit
aa9eac0684
|
|
@ -22,17 +22,20 @@
|
|||
$theme_image_path = $_SERVER["DOCUMENT_ROOT"]."/themes/".$_SESSION['domain']['template']['name']."/images/";
|
||||
|
||||
//voicemail
|
||||
//if (is_array($selected_blocks) && in_array('voicemail', $selected_blocks) && permission_exists('voicemail_message_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/voicemails/")) {
|
||||
//required class
|
||||
echo "<div class='hud_box'>\n";
|
||||
|
||||
//required class
|
||||
require_once "app/voicemails/resources/classes/voicemail.php";
|
||||
//get the voicemail
|
||||
|
||||
//get the voicemail
|
||||
$vm = new voicemail;
|
||||
$vm->db = $db;
|
||||
$vm->domain_uuid = $_SESSION['domain_uuid'];
|
||||
$vm->order_by = $order_by;
|
||||
$vm->order = $order;
|
||||
$voicemails = $vm->messages();
|
||||
//sum total and new
|
||||
|
||||
//sum total and new
|
||||
$messages['total'] = 0;
|
||||
$messages['new'] = 0;
|
||||
if (sizeof($voicemails) > 0) {
|
||||
|
|
@ -51,7 +54,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
//add doughnut chart
|
||||
//add doughnut chart
|
||||
echo "
|
||||
<div style='display: flex; flex-wrap: wrap; justify-content: center; padding-bottom:10px;'>
|
||||
<div style='width: 175px; height: 175px;'><canvas id='new_messages_chart'></canvas></div>
|
||||
|
|
@ -131,7 +134,8 @@
|
|||
}
|
||||
echo "</div>";
|
||||
$n++;
|
||||
//}
|
||||
echo " <span class='hud_expander' onclick=\"$('#hud_voicemail_details').slideToggle('fast');\"><span class='fas fa-ellipsis-h'></span></span>";
|
||||
|
||||
echo "<span class='hud_expander' onclick=\"$('#hud_voicemail_details').slideToggle('fast');\"><span class='fas fa-ellipsis-h'></span></span>";
|
||||
echo "</div>\n";
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue