Add dashboard icon color setting (#7197)

* Add dashboard icon color setting

* Update index.php

* Update app_languages.php

* Update app_defaults.php

* Update app_config.php

* Update dashboard_edit.php

* Update index.php

* Update app_languages.php

* Update app_defaults.php

* Update app_config.php

* Update config.php

* Update domains.php

* Update config.php

* Update config.php

* Update config.php

* Update config.php

* Update config.php

* Update config.php

* Update config.php

* Update config.php

* Update config.php

* Update config.php

* Update registrations.php

* Update config.php

* Update config.php

* Update config.php

* Update config.php

* Update voicemails.php

* Update config.php

* Update missed_calls.php

* Update recent_calls.php

* Update index.php

* Update index.php

* Update index.php
This commit is contained in:
Alex 2024-12-11 21:28:45 -07:00 committed by GitHub
parent 3d4fe6e5c1
commit 9fc82c02cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
26 changed files with 349 additions and 67 deletions

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'e75f04ff-6d1b-4b39-af0f-e1d1860327c
$array['dashboard'][$x]['dashboard_name'] = 'Call Block';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-ban';
$array['dashboard'][$x]['dashboard_icon_color'] = '#EA4C46';
$array['dashboard'][$x]['dashboard_url'] = '/app/call_block/call_block.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -17,9 +18,9 @@ $array['dashboard'][$x]['dashboard_heading_text_color'] = '';
$array['dashboard'][$x]['dashboard_heading_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_heading_background_color'] = '';
$array['dashboard'][$x]['dashboard_heading_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#EA4C46';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';
@ -44,3 +45,4 @@ $array['dashboard'][$x]['dashboard_groups'][$y]['group_name'] = 'user';
$y++;
?>

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'ba60799a-1c40-44a8-80ef-c2be4f4692f
$array['dashboard'][$x]['dashboard_name'] = 'Call Forward';
$array['dashboard'][$x]['dashboard_path'] = 'call_forward/call_forward';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-forward';
$array['dashboard'][$x]['dashboard_icon_color'] = '';
$array['dashboard'][$x]['dashboard_url'] = '/app/call_forward/call_forward.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'd1b26c96-6cfd-45ea-824f-0b5e16a9aab
$array['dashboard'][$x]['dashboard_name'] = 'Conference Centers';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-hotel';
$array['dashboard'][$x]['dashboard_icon_color'] = '#5D5CE3';
$array['dashboard'][$x]['dashboard_url'] = '/app/conference_centers/conference_rooms.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#5d5ce3';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'c3c37d29-b654-4024-8ee4-d752b3e4db4
$array['dashboard'][$x]['dashboard_name'] = 'Conferences';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-comments';
$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_url'] = '/app/conferences/conferences.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292FF';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'a294b771-a125-4d36-b51a-973540346fa
$array['dashboard'][$x]['dashboard_name'] = 'Destinations';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-right-to-bracket';
$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_url'] = '/app/destinations/destinations.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'e95f0221-d956-4baf-90c5-e38e16a20a4
$array['dashboard'][$x]['dashboard_name'] = 'Event Guard';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-person-military-pointing';
$array['dashboard'][$x]['dashboard_icon_color'] = '#5D5CE3';
$array['dashboard'][$x]['dashboard_url'] = '/app/event_guard/event_guard_logs.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -17,9 +18,9 @@ $array['dashboard'][$x]['dashboard_heading_text_color'] = '';
$array['dashboard'][$x]['dashboard_heading_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_heading_background_color'] = '';
$array['dashboard'][$x]['dashboard_heading_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#5D5CE3';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -26,6 +26,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '4b7b6652-7e5f-48d3-987e-971053f093a
$array['dashboard'][$x]['dashboard_name'] = 'Extensions';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-suitcase';
$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_url'] = '/app/extensions/extensions.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -39,9 +40,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'ea3f5a8a-fc93-47d7-a632-a733522affc
$array['dashboard'][$x]['dashboard_name'] = 'Fax Server';
$array['dashboard'][$x]['dashboard_path'] = 'core/dashboard/resources/dashboard/icon.php';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-print';
$array['dashboard'][$x]['dashboard_icon_color'] = '#5D5CE3';
$array['dashboard'][$x]['dashboard_url'] = '/app/fax/fax.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#5d5ce3';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '3af7af65-7861-4d05-a0bc-36d704458fa
$array['dashboard'][$x]['dashboard_name'] = 'IVR Menus';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-diagram-project';
$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_url'] = '/app/ivr_menus/ivr_menus.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '3d8efe65-49c3-4783-844e-4ebc1c97db6
$array['dashboard'][$x]['dashboard_name'] = 'Recordings';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-microphone';
$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_url'] = '/app/recordings/recordings.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'ce343ebe-3b54-4aad-b7e0-66de02171e7
$array['dashboard'][$x]['dashboard_name'] = 'Registrations';
$array['dashboard'][$x]['dashboard_path'] = 'registrations/registrations.php';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-list-check';
$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_url'] = '/app/registrations/registrations.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '#5d5ce3';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -59,7 +59,7 @@
echo " <span class='hud_title' onclick=\"window.open('".$dashboard_url."', '".$dashboard_target."', '".$window_parameters."')\">".escape($dashboard_label)."</span>";
echo " <div style='position: relative; display: inline-block;'>\n";
echo " <span class='hud_stat' onclick=\"window.open('".$dashboard_url."', '".$dashboard_target."', '".$window_parameters."')\"><i class=\"fas ".$dashboard_icon."\"></i></span>\n";
echo " <span style=\"background-color: #5d5ce3; color: #ffffff; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 22px; left: 25px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$active_registrations." / ".($active_registrations + $inactive_registrations)."</span>\n";
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#5d5ce3')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 22px; left: 25px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$active_registrations." / ".($active_registrations + $inactive_registrations)."</span>\n";
echo " </div>\n";
echo " </div>\n";
if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") {

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'b5da1d72-2cc7-422e-b05c-f07659aed41
$array['dashboard'][$x]['dashboard_name'] = 'Ring Group Forward';
$array['dashboard'][$x]['dashboard_path'] = 'ring_groups/ring_group_forward';
$array['dashboard'][$x]['dashboard_icon'] = '';
$array['dashboard'][$x]['dashboard_icon_color'] = '0292ff';
$array['dashboard'][$x]['dashboard_url'] = '';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'e9f06ed4-ddfc-4611-b246-fdeab36a49c
$array['dashboard'][$x]['dashboard_name'] = 'Time Conditions';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-clock';
$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_url'] = '/app/time_conditions/time_conditions.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'be2aaa22-d8f1-4d9b-b5f9-14a26da329c
$array['dashboard'][$x]['dashboard_name'] = 'New Messages';
$array['dashboard'][$x]['dashboard_path'] = 'voicemails/voicemails';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-envelope';
$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_url'] = '';
$array['dashboard'][$x]['dashboard_target'] = '';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '#03c04a';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -111,7 +111,7 @@
echo "<span class='hud_content'>\n";
echo "<div style='position: relative; display: inline-block;'>\n";
echo " <span class='hud_stat'><i class=\"fas ".$dashboard_icon." \"></i></span>\n";
echo " <span style=\"background-color: #03c04a; color: #ffffff; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$messages['new']."</span>\n";
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#03c04a')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$messages['new']."</span>\n";
echo " </div>\n";
echo "</span>";
}

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '6ad0e056-bf3d-465a-956d-bd77d513ab3
$array['dashboard'][$x]['dashboard_name'] = 'Missed Calls';
$array['dashboard'][$x]['dashboard_path'] = 'xml_cdr/missed_calls';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-circle-xmark';
$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_url'] = '';
$array['dashboard'][$x]['dashboard_target'] = '';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '#EA4C46';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';
@ -49,6 +50,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'c323e296-b1cf-42ea-9c57-fc00697915b
$array['dashboard'][$x]['dashboard_name'] = 'Recent Calls';
$array['dashboard'][$x]['dashboard_path'] = 'xml_cdr/recent_calls';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-rectangle-list';
$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_url'] = '';
$array['dashboard'][$x]['dashboard_target'] = '';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -62,9 +64,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '#417ed3';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';
@ -93,6 +95,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '7fb8c79b-3fc4-4977-992a-eb0404f80fe
$array['dashboard'][$x]['dashboard_name'] = 'Call Detail Records';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-list-ul';
$array['dashboard'][$x]['dashboard_icon_color'] = '#0292ff';
$array['dashboard'][$x]['dashboard_url'] = '/app/xml_cdr/xml_cdr.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';

View File

@ -149,7 +149,7 @@
echo "<span class='hud_content'>\n";
echo "<div style='position: relative; display: inline-block;'>\n";
echo " <span class='hud_stat'><i class=\"fas ".$dashboard_icon." \"></i></span>\n";
echo " <span style=\"background-color: #EA4C46; color: #ffffff; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$num_rows."</span>\n";
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#EA4C46')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$num_rows."</span>\n";
echo " </div>\n";
echo "</span>";
}

View File

@ -147,7 +147,7 @@
echo "<div class='hud_content'>\n";
echo " <div style='position: relative; display: inline-block;'>\n";
echo " <span class='hud_stat'><i class=\"fas ".$dashboard_icon." \"></i></span>\n";
echo " <span style=\"background-color: #417ed3; color: #ffffff; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$num_rows."</span>\n";
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#417ed3')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$num_rows."</span>\n";
echo " </div>\n";
echo "</div>";
}

View File

@ -78,6 +78,11 @@
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard icon.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_icon_color';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard icon color.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_url';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
@ -157,6 +162,11 @@
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the number text color hover.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_number_background_color';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the number background color.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_background_color';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';

View File

@ -66,7 +66,9 @@ if ($domains_processed == 1) {
if (!empty($row['dashboard_label_text_color_hover'])) { $array['dashboard'][$x]['dashboard_label_text_color_hover'] = $row['dashboard_label_text_color_hover']; }
if (!empty($row['dashboard_number_text_color'])) { $array['dashboard'][$x]['dashboard_number_text_color'] = $row['dashboard_number_text_color']; }
if (!empty($row['dashboard_number_text_color_hover'])) { $array['dashboard'][$x]['dashboard_number_text_color_hover'] = $row['dashboard_number_text_color_hover']; }
if (!empty($row['dashboard_number_background_color'])) { $array['dashboard'][$x]['dashboard_number_background_color'] = $row['dashboard_number_background_color']; }
if (!empty($row['dashboard_icon'])) { $array['dashboard'][$x]['dashboard_icon'] = $row['dashboard_icon']; }
if (!empty($row['dashboard_icon_color'])) { $array['dashboard'][$x]['dashboard_icon_color'] = $row['dashboard_icon_color']; }
if (!empty($row['dashboard_url'])) { $array['dashboard'][$x]['dashboard_url'] = $row['dashboard_url']; }
if (!empty($row['dashboard_width'])) { $array['dashboard'][$x]['dashboard_width'] = $row['dashboard_width']; }
if (!empty($row['dashboard_height'])) { $array['dashboard'][$x]['dashboard_height'] = $row['dashboard_height']; }

View File

@ -216,6 +216,168 @@ $text['description-dashboard_path']['zh-cn'] = "输入仪表板小部件路径
$text['description-dashboard_path']['ja-jp'] = "ダッシュボード ウィジェットのパスを入力します。";
$text['description-dashboard_path']['ko-kr'] = "대시보드 위젯 경로를 입력합니다.";
$text['description-dashboard_icon']['en-us'] = "Select an icon.";
$text['description-dashboard_icon']['en-gb'] = "Select an icon.";
$text['description-dashboard_icon']['ar-eg'] = "اختر أيقونة.";
$text['description-dashboard_icon']['de-at'] = "Wählen Sie ein Symbol.";
$text['description-dashboard_icon']['de-ch'] = "Wählen Sie ein Symbol.";
$text['description-dashboard_icon']['de-de'] = "Wählen Sie ein Symbol.";
$text['description-dashboard_icon']['el-gr'] = "Επιλέξτε ένα εικονίδιο.";
$text['description-dashboard_icon']['es-cl'] = "Selecciona un ícono.";
$text['description-dashboard_icon']['es-mx'] = "Selecciona un ícono.";
$text['description-dashboard_icon']['fr-ca'] = "Sélectionnez une icône.";
$text['description-dashboard_icon']['fr-fr'] = "Sélectionnez une icône.";
$text['description-dashboard_icon']['he-il'] = "בחר אייקון.";
$text['description-dashboard_icon']['it-it'] = "Seleziona un'icona.";
$text['description-dashboard_icon']['ka-ge'] = "აირჩიეთ ხატული.";
$text['description-dashboard_icon']['nl-nl'] = "Selecteer een pictogram.";
$text['description-dashboard_icon']['pl-pl'] = "Wybierz ikonę.";
$text['description-dashboard_icon']['pt-br'] = "Selecione um ícone.";
$text['description-dashboard_icon']['pt-pt'] = "Selecione um ícone.";
$text['description-dashboard_icon']['ro-ro'] = "Selectați o pictogramă.";
$text['description-dashboard_icon']['ru-ru'] = "Выберите значок.";
$text['description-dashboard_icon']['sv-se'] = "Välj ett ikon.";
$text['description-dashboard_icon']['uk-ua'] = "Виберіть значок.";
$text['description-dashboard_icon']['tr-tr'] = "Bir simge seçin.";
$text['description-dashboard_icon']['zh-cn'] = "选择一个图标。";
$text['description-dashboard_icon']['ja-jp'] = "アイコンを選択してください。";
$text['description-dashboard_icon']['ko-kr'] = "아이콘을 선택하세요.";
$text['label-dashboard_icon_color']['en-us'] = "Color";
$text['label-dashboard_icon_color']['en-gb'] = "Color";
$text['label-dashboard_icon_color']['ar-eg'] = "اللون";
$text['label-dashboard_icon_color']['de-at'] = "Farbe";
$text['label-dashboard_icon_color']['de-ch'] = "Farbe";
$text['label-dashboard_icon_color']['de-de'] = "Farbe";
$text['label-dashboard_icon_color']['el-gr'] = "Χρώμα";
$text['label-dashboard_icon_color']['es-cl'] = "Color";
$text['label-dashboard_icon_color']['es-mx'] = "Color";
$text['label-dashboard_icon_color']['fr-ca'] = "Couleur";
$text['label-dashboard_icon_color']['fr-fr'] = "Couleur";
$text['label-dashboard_icon_color']['he-il'] = "צבע";
$text['label-dashboard_icon_color']['it-it'] = "Colore";
$text['label-dashboard_icon_color']['ka-ge'] = "ფერი";
$text['label-dashboard_icon_color']['nl-nl'] = "Kleur";
$text['label-dashboard_icon_color']['pl-pl'] = "Kolor";
$text['label-dashboard_icon_color']['pt-br'] = "Cor";
$text['label-dashboard_icon_color']['pt-pt'] = "Cor";
$text['label-dashboard_icon_color']['ro-ro'] = "Culoare";
$text['label-dashboard_icon_color']['ru-ru'] = "Цвет";
$text['label-dashboard_icon_color']['sv-se'] = "Färg";
$text['label-dashboard_icon_color']['uk-ua'] = "Колір";
$text['label-dashboard_icon_color']['tr-tr'] = "Renk";
$text['label-dashboard_icon_color']['zh-cn'] = "颜色";
$text['label-dashboard_icon_color']['ja-jp'] = "";
$text['label-dashboard_icon_color']['ko-kr'] = "색상";
$text['description-dashboard_icon_color']['en-us'] = "Enter the icon color.";
$text['description-dashboard_icon_color']['en-gb'] = "Enter the icon color.";
$text['description-dashboard_icon_color']['ar-eg'] = "أدخل لون الأيقونة.";
$text['description-dashboard_icon_color']['de-at'] = "Geben Sie die Symbolfarbe ein.";
$text['description-dashboard_icon_color']['de-ch'] = "Geben Sie die Symbolfarbe ein.";
$text['description-dashboard_icon_color']['de-de'] = "Geben Sie die Symbolfarbe ein.";
$text['description-dashboard_icon_color']['el-gr'] = "Εισάγετε το χρώμα του εικονιδίου.";
$text['description-dashboard_icon_color']['es-cl'] = "Ingresa el color del ícono.";
$text['description-dashboard_icon_color']['es-mx'] = "Ingresa el color del ícono.";
$text['description-dashboard_icon_color']['fr-ca'] = "Entrez la couleur de l'icône.";
$text['description-dashboard_icon_color']['fr-fr'] = "Entrez la couleur de l'icône.";
$text['description-dashboard_icon_color']['he-il'] = "הזן את צבע האייקון.";
$text['description-dashboard_icon_color']['it-it'] = "Inserisci il colore dell'icona.";
$text['description-dashboard_icon_color']['ka-ge'] = "შეიყვანეთ ხატულის ფერი.";
$text['description-dashboard_icon_color']['nl-nl'] = "Voer de kleur van het pictogram in.";
$text['description-dashboard_icon_color']['pl-pl'] = "Wprowadź kolor ikony.";
$text['description-dashboard_icon_color']['pt-br'] = "Digite a cor do ícone.";
$text['description-dashboard_icon_color']['pt-pt'] = "Digite a cor do ícone.";
$text['description-dashboard_icon_color']['ro-ro'] = "Introduceți culoarea pictogramei.";
$text['description-dashboard_icon_color']['ru-ru'] = "Введите цвет значка.";
$text['description-dashboard_icon_color']['sv-se'] = "Ange ikons färg.";
$text['description-dashboard_icon_color']['uk-ua'] = "Введіть колір значка.";
$text['description-dashboard_icon_color']['tr-tr'] = "Simge rengini girin.";
$text['description-dashboard_icon_color']['zh-cn'] = "输入图标颜色。";
$text['description-dashboard_icon_color']['ja-jp'] = "アイコンの色を入力してください。";
$text['description-dashboard_icon_color']['ko-kr'] = "아이콘 색상을 입력하세요.";
$text['description-dashboard_url']['en-us'] = "Enter the URL.";
$text['description-dashboard_url']['en-gb'] = "Enter the URL.";
$text['description-dashboard_url']['ar-eg'] = "أدخل الرابط.";
$text['description-dashboard_url']['de-at'] = "Geben Sie die URL ein.";
$text['description-dashboard_url']['de-ch'] = "Geben Sie die URL ein.";
$text['description-dashboard_url']['de-de'] = "Geben Sie die URL ein.";
$text['description-dashboard_url']['el-gr'] = "Εισάγετε τη διεύθυνση URL.";
$text['description-dashboard_url']['es-cl'] = "Ingrese la URL.";
$text['description-dashboard_url']['es-mx'] = "Ingrese la URL.";
$text['description-dashboard_url']['fr-ca'] = "Entrez l'URL.";
$text['description-dashboard_url']['fr-fr'] = "Entrez l'URL.";
$text['description-dashboard_url']['he-il'] = "הכנס את ה-URL.";
$text['description-dashboard_url']['it-it'] = "Inserisci l'URL.";
$text['description-dashboard_url']['ka-ge'] = "შეიყვანეთ URL-მისამართი.";
$text['description-dashboard_url']['nl-nl'] = "Voer de URL in.";
$text['description-dashboard_url']['pl-pl'] = "Wprowadź URL.";
$text['description-dashboard_url']['pt-br'] = "Digite a URL.";
$text['description-dashboard_url']['pt-pt'] = "Digite a URL.";
$text['description-dashboard_url']['ro-ro'] = "Introduceți URL-ul.";
$text['description-dashboard_url']['ru-ru'] = "Введите URL.";
$text['description-dashboard_url']['sv-se'] = "Ange URL:en.";
$text['description-dashboard_url']['uk-ua'] = "Введіть URL.";
$text['description-dashboard_url']['tr-tr'] = "URL'yi girin.";
$text['description-dashboard_url']['zh-cn'] = "请输入网址.";
$text['description-dashboard_url']['ja-jp'] = "URLを入力してください。";
$text['description-dashboard_url']['ko-kr'] = "URL을 입력하세요.";
$text['description-dashboard_width']['en-us'] = "Enter the window width.";
$text['description-dashboard_width']['en-gb'] = "Enter the window width.";
$text['description-dashboard_width']['ar-eg'] = "أدخل عرض النافذة.";
$text['description-dashboard_width']['de-at'] = "Geben Sie die Fensterbreite ein.";
$text['description-dashboard_width']['de-ch'] = "Geben Sie die Fensterbreite ein.";
$text['description-dashboard_width']['de-de'] = "Geben Sie die Fensterbreite ein.";
$text['description-dashboard_width']['el-gr'] = "Εισάγετε το πλάτος του παραθύρου.";
$text['description-dashboard_width']['es-cl'] = "Ingrese el ancho de la ventana.";
$text['description-dashboard_width']['es-mx'] = "Ingrese el ancho de la ventana.";
$text['description-dashboard_width']['fr-ca'] = "Entrez la largeur de la fenêtre.";
$text['description-dashboard_width']['fr-fr'] = "Entrez la largeur de la fenêtre.";
$text['description-dashboard_width']['he-il'] = "הכנס את רוחב החלון.";
$text['description-dashboard_width']['it-it'] = "Inserisci la larghezza della finestra.";
$text['description-dashboard_width']['ka-ge'] = "შეიყვანეთ ფანჯრის სიგანე.";
$text['description-dashboard_width']['nl-nl'] = "Voer de vensterbreedte in.";
$text['description-dashboard_width']['pl-pl'] = "Wprowadź szerokość okna.";
$text['description-dashboard_width']['pt-br'] = "Digite a largura da janela.";
$text['description-dashboard_width']['pt-pt'] = "Digite a largura da janela.";
$text['description-dashboard_width']['ro-ro'] = "Introduceți lățimea ferestrei.";
$text['description-dashboard_width']['ru-ru'] = "Введите ширину окна.";
$text['description-dashboard_width']['sv-se'] = "Ange fönstrets bredd.";
$text['description-dashboard_width']['uk-ua'] = "Введіть ширину вікна.";
$text['description-dashboard_width']['tr-tr'] = "Pencere genişliğini girin.";
$text['description-dashboard_width']['zh-cn'] = "请输入窗口宽度.";
$text['description-dashboard_width']['ja-jp'] = "ウィンドウの幅を入力してください。";
$text['description-dashboard_width']['ko-kr'] = "창 너비를 입력하세요.";
$text['description-dashboard_height']['en-us'] = "Enter the window height.";
$text['description-dashboard_height']['en-gb'] = "Enter the window height.";
$text['description-dashboard_height']['ar-eg'] = "أدخل ارتفاع النافذة.";
$text['description-dashboard_height']['de-at'] = "Geben Sie die Fensterhöhe ein.";
$text['description-dashboard_height']['de-ch'] = "Geben Sie die Fensterhöhe ein.";
$text['description-dashboard_height']['de-de'] = "Geben Sie die Fensterhöhe ein.";
$text['description-dashboard_height']['el-gr'] = "Εισάγετε το ύψος του παραθύρου.";
$text['description-dashboard_height']['es-cl'] = "Ingrese la altura de la ventana.";
$text['description-dashboard_height']['es-mx'] = "Ingrese la altura de la ventana.";
$text['description-dashboard_height']['fr-ca'] = "Entrez la hauteur de la fenêtre.";
$text['description-dashboard_height']['fr-fr'] = "Entrez la hauteur de la fenêtre.";
$text['description-dashboard_height']['he-il'] = "הכנס את גובה החלון.";
$text['description-dashboard_height']['it-it'] = "Inserisci l'altezza della finestra.";
$text['description-dashboard_height']['ka-ge'] = "შეიყვანეთ ფანჯრის სიმაღლე.";
$text['description-dashboard_height']['nl-nl'] = "Voer de vensterhoogte in.";
$text['description-dashboard_height']['pl-pl'] = "Wprowadź wysokość okna.";
$text['description-dashboard_height']['pt-br'] = "Digite a altura da janela.";
$text['description-dashboard_height']['pt-pt'] = "Digite a altura da janela.";
$text['description-dashboard_height']['ro-ro'] = "Introduceți înălțimea ferestrei.";
$text['description-dashboard_height']['ru-ru'] = "Введите высоту окна.";
$text['description-dashboard_height']['sv-se'] = "Ange fönstrets höjd.";
$text['description-dashboard_height']['uk-ua'] = "Введіть висоту вікна.";
$text['description-dashboard_height']['tr-tr'] = "Pencere yüksekliğini girin.";
$text['description-dashboard_height']['zh-cn'] = "请输入窗口高度.";
$text['description-dashboard_height']['ja-jp'] = "ウィンドウの高さを入力してください。";
$text['description-dashboard_height']['ko-kr'] = "창 높이를 입력하세요.";
$text['label-dashboard_content_text_align']['en-us'] = "Text Align";
$text['label-dashboard_content_text_align']['en-gb'] = "Text Align";
$text['label-dashboard_content_text_align']['ar-eg'] = "محاذاة النص";
@ -891,6 +1053,60 @@ $text['description-dashboard_number_text_color_hover']['zh-cn'] = "输入仪表
$text['description-dashboard_number_text_color_hover']['ja-jp'] = "ダッシュボード ウィジェットの番号、テキストの色、ホバーを入力します。";
$text['description-dashboard_number_text_color_hover']['ko-kr'] = "대시보드 위젯 번호 텍스트 색상을 마우스로 가리키면 입력됩니다.";
$text['label-dashboard_number_background_color']['en-us'] = "Number Background Color";
$text['label-dashboard_number_background_color']['en-gb'] = "Number Background Color";
$text['label-dashboard_number_background_color']['ar-eg'] = "لون خلفية الرقم";
$text['label-dashboard_number_background_color']['de-at'] = "Hintergrundfarbe der Zahl";
$text['label-dashboard_number_background_color']['de-ch'] = "Hintergrundfarbe der Zahl";
$text['label-dashboard_number_background_color']['de-de'] = "Hintergrundfarbe der Zahl";
$text['label-dashboard_number_background_color']['el-gr'] = "Χρώμα φόντου αριθμού";
$text['label-dashboard_number_background_color']['es-cl'] = "Color de fondo del número";
$text['label-dashboard_number_background_color']['es-mx'] = "Color de fondo del número";
$text['label-dashboard_number_background_color']['fr-ca'] = "Couleur de fond du nombre";
$text['label-dashboard_number_background_color']['fr-fr'] = "Couleur de fond du nombre";
$text['label-dashboard_number_background_color']['he-il'] = "צבע רקע המספר";
$text['label-dashboard_number_background_color']['it-it'] = "Colore di sfondo del numero";
$text['label-dashboard_number_background_color']['ka-ge'] = "რიცხვის ფონური ფერი";
$text['label-dashboard_number_background_color']['nl-nl'] = "Achtergrondkleur van het nummer";
$text['label-dashboard_number_background_color']['pl-pl'] = "Kolor tła liczby";
$text['label-dashboard_number_background_color']['pt-br'] = "Cor de fundo do número";
$text['label-dashboard_number_background_color']['pt-pt'] = "Cor de fundo do número";
$text['label-dashboard_number_background_color']['ro-ro'] = "Culoare fundal număr";
$text['label-dashboard_number_background_color']['ru-ru'] = "Цвет фона числа";
$text['label-dashboard_number_background_color']['sv-se'] = "Nummerbakgrundsfärg";
$text['label-dashboard_number_background_color']['uk-ua'] = "Колір фону числа";
$text['label-dashboard_number_background_color']['tr-tr'] = "Numara Arka Plan Rengi";
$text['label-dashboard_number_background_color']['zh-cn'] = "数字背景颜色";
$text['label-dashboard_number_background_color']['ja-jp'] = "数字の背景色";
$text['label-dashboard_number_background_color']['ko-kr'] = "숫자 배경 색상";
$text['description-dashboard_number_background_color']['en-us'] = "Enter the dashboard widget number background color.";
$text['description-dashboard_number_background_color']['en-gb'] = "Enter the dashboard widget number background color.";
$text['description-dashboard_number_background_color']['ar-eg'] = "أدخل لون خلفية الرقم في عنصر واجهة المستخدم على لوحة التحكم.";
$text['description-dashboard_number_background_color']['de-at'] = "Geben Sie die Hintergrundfarbe der Zahl im Dashboard-Widget ein.";
$text['description-dashboard_number_background_color']['de-ch'] = "Geben Sie die Hintergrundfarbe der Zahl im Dashboard-Widget ein.";
$text['description-dashboard_number_background_color']['de-de'] = "Geben Sie die Hintergrundfarbe der Zahl im Dashboard-Widget ein.";
$text['description-dashboard_number_background_color']['el-gr'] = "Εισάγετε το χρώμα φόντου του αριθμού στο widget του πίνακα ελέγχου.";
$text['description-dashboard_number_background_color']['es-cl'] = "Ingrese el color de fondo del número en el widget del tablero.";
$text['description-dashboard_number_background_color']['es-mx'] = "Ingrese el color de fondo del número en el widget del tablero.";
$text['description-dashboard_number_background_color']['fr-ca'] = "Entrez la couleur de fond du nombre dans le widget du tableau de bord.";
$text['description-dashboard_number_background_color']['fr-fr'] = "Entrez la couleur de fond du nombre dans le widget du tableau de bord.";
$text['description-dashboard_number_background_color']['he-il'] = "הזן את צבע הרקע של המספר בווידג'ט בלוח המחוונים.";
$text['description-dashboard_number_background_color']['it-it'] = "Inserisci il colore di sfondo del numero nel widget del cruscotto.";
$text['description-dashboard_number_background_color']['ka-ge'] = "შეიტანეთ ფონი რიცხვის ფონური ფერი ვიჯეტში.";
$text['description-dashboard_number_background_color']['nl-nl'] = "Voer de achtergrondkleur van het nummer in het dashboardwidget in.";
$text['description-dashboard_number_background_color']['pl-pl'] = "Wprowadź kolor tła liczby w widżecie pulpitu nawigacyjnego.";
$text['description-dashboard_number_background_color']['pt-br'] = "Digite a cor de fundo do número no widget do painel.";
$text['description-dashboard_number_background_color']['pt-pt'] = "Digite a cor de fundo do número no widget do painel.";
$text['description-dashboard_number_background_color']['ro-ro'] = "Introduceți culoarea de fundal a numărului în widgetul tabloului de bord.";
$text['description-dashboard_number_background_color']['ru-ru'] = "Введите цвет фона числа в виджете панели управления.";
$text['description-dashboard_number_background_color']['sv-se'] = "Ange bakgrundsfärgen för numret i dashboard-widgeten.";
$text['description-dashboard_number_background_color']['uk-ua'] = "Введіть колір фону числа в віджеті панелі інструментів.";
$text['description-dashboard_number_background_color']['tr-tr'] = "Panel aracındaki numara arka plan rengini girin.";
$text['description-dashboard_number_background_color']['zh-cn'] = "输入仪表板小部件中数字的背景颜色。";
$text['description-dashboard_number_background_color']['ja-jp'] = "ダッシュボードウィジェットの数字の背景色を入力してください。";
$text['description-dashboard_number_background_color']['ko-kr'] = "대시보드 위젯 숫자의 배경 색상을 입력하세요.";
$text['label-dashboard_background_color']['en-us'] = "Background Color";
$text['label-dashboard_background_color']['en-gb'] = "Background Color";
$text['label-dashboard_background_color']['ar-eg'] = "لون الخلفية";

View File

@ -47,6 +47,7 @@
$dashboard_path = 'dashboard/icon';
//$dashboard_path = '';
$dashboard_icon = '';
$dashboard_icon_color = '';
$dashboard_url = '';
$dashboard_target = 'self';
$dashboard_width = '';
@ -58,6 +59,7 @@
$dashboard_label_text_color = '';
$dashboard_label_background_color = '';
$dashboard_number_text_color = '';
$dashboard_number_background_color = '';
$dashboard_groups = [];
$dashboard_column_span = '';
$dashboard_row_span = '';
@ -83,6 +85,7 @@
$dashboard_name = $_POST["dashboard_name"] ?? '';
$dashboard_path = $_POST["dashboard_path"] ?? '';
$dashboard_icon = $_POST["dashboard_icon"] ?? '';
$dashboard_icon_color = $_POST["dashboard_icon_color"] ?? '';
$dashboard_url = $_POST["dashboard_url"] ?? '';
$dashboard_target = $_POST["dashboard_target"] ?? 'self';
$dashboard_width = $_POST["dashboard_width"] ?? '';
@ -99,6 +102,7 @@
$dashboard_label_background_color_hover = $_POST["dashboard_label_background_color_hover"] ?? '';
$dashboard_number_text_color = $_POST["dashboard_number_text_color"] ?? '';
$dashboard_number_text_color_hover = $_POST["dashboard_number_text_color_hover"] ?? '';
$dashboard_number_background_color = $_POST["dashboard_number_background_color"] ?? '';
$dashboard_background_color = $_POST["dashboard_background_color"] ?? '';
$dashboard_background_color_hover = $_POST["dashboard_background_color_hover"] ?? '';
$dashboard_detail_background_color = $_POST["dashboard_detail_background_color"] ?? '';
@ -121,6 +125,7 @@
$dashboard_name = trim(preg_replace('/[^a-zA-Z0-9 _\-\/.#]/', '', $dashboard_name));
$dashboard_path = preg_replace($text_pattern, '', strtolower($dashboard_path));
$dashboard_icon = preg_replace($text_pattern, '', $dashboard_icon);
$dashboard_icon_color = preg_replace($text_pattern, '', $dashboard_icon_color);
$dashboard_url = trim(preg_replace($text_pattern, '', $dashboard_url));
$dashboard_target = trim(preg_replace($text_pattern, '', $dashboard_target));
$dashboard_width = trim(preg_replace($text_pattern, '', $dashboard_width));
@ -136,6 +141,7 @@
$dashboard_label_background_color_hover = preg_replace($text_pattern, '', $dashboard_label_background_color_hover);
$dashboard_number_text_color = preg_replace($text_pattern, '', $dashboard_number_text_color);
$dashboard_number_text_color_hover = preg_replace($text_pattern, '', $dashboard_number_text_color_hover);
$dashboard_number_background_color = preg_replace($text_pattern, '', $dashboard_number_background_color);
$dashboard_background_color = preg_replace($text_pattern, '', $dashboard_background_color);
$dashboard_background_color_hover = preg_replace($text_pattern, '', $dashboard_background_color_hover);
$dashboard_detail_background_color = preg_replace($text_pattern, '', $dashboard_detail_background_color);
@ -273,6 +279,7 @@
$array['dashboard'][0]['dashboard_name'] = $dashboard_name;
$array['dashboard'][0]['dashboard_path'] = $dashboard_path;
$array['dashboard'][0]['dashboard_icon'] = $dashboard_icon;
$array['dashboard'][0]['dashboard_icon_color'] = $dashboard_icon_color;
$array['dashboard'][0]['dashboard_url'] = $dashboard_url;
$array['dashboard'][0]['dashboard_width'] = $dashboard_width;
$array['dashboard'][0]['dashboard_height'] = $dashboard_height;
@ -288,6 +295,7 @@
$array['dashboard'][0]['dashboard_label_background_color_hover'] = $dashboard_label_background_color_hover;
$array['dashboard'][0]['dashboard_number_text_color'] = $dashboard_number_text_color;
$array['dashboard'][0]['dashboard_number_text_color_hover'] = $dashboard_number_text_color_hover;
$array['dashboard'][0]['dashboard_number_background_color'] = $dashboard_number_background_color;
$array['dashboard'][0]['dashboard_background_color'] = $dashboard_background_color;
$array['dashboard'][0]['dashboard_background_color_hover'] = $dashboard_background_color_hover;
$array['dashboard'][0]['dashboard_detail_background_color'] = $dashboard_detail_background_color;
@ -338,6 +346,7 @@
$sql .= " dashboard_name, ";
$sql .= " dashboard_path, ";
$sql .= " dashboard_icon, ";
$sql .= " dashboard_icon_color, ";
$sql .= " dashboard_url, ";
$sql .= " dashboard_width, ";
$sql .= " dashboard_height, ";
@ -353,6 +362,7 @@
$sql .= " dashboard_label_background_color_hover, ";
$sql .= " dashboard_number_text_color, ";
$sql .= " dashboard_number_text_color_hover, ";
$sql .= " dashboard_number_background_color, ";
$sql .= " dashboard_background_color, ";
$sql .= " dashboard_background_color_hover, ";
$sql .= " dashboard_detail_background_color, ";
@ -373,6 +383,7 @@
$dashboard_name = $row["dashboard_name"];
$dashboard_path = $row["dashboard_path"];
$dashboard_icon = $row["dashboard_icon"];
$dashboard_icon_color = $row["dashboard_icon_color"];
$dashboard_url = $row["dashboard_url"];
$dashboard_width = $row["dashboard_width"];
$dashboard_height = $row["dashboard_height"];
@ -388,6 +399,7 @@
$dashboard_label_background_color_hover = $row["dashboard_label_background_color_hover"];
$dashboard_number_text_color = $row["dashboard_number_text_color"];
$dashboard_number_text_color_hover = $row["dashboard_number_text_color_hover"];
$dashboard_number_background_color = $row["dashboard_number_background_color"];
$dashboard_background_color = $row["dashboard_background_color"];
$dashboard_background_color_hover = $row["dashboard_background_color_hover"];
$dashboard_detail_background_color = $row["dashboard_detail_background_color"];
@ -650,9 +662,21 @@
else {
echo " <input type='text' class='formfld' name='dashboard_icon' value='".escape($dashboard_icon)."'>";
}
echo $text['description-dashboard_icon']."\n";
echo " </td>";
echo " </tr>";
echo "<tr class='type_icon'>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo $text['label-dashboard_icon_color']."\n";
echo "</td>\n";
echo "<td class='vtable' style='position: relative;' align='left'>\n";
echo " <input type='text' class='formfld colorpicker' name='dashboard_icon_color' value='".escape($dashboard_icon_color)."'>\n";
echo "<br />\n";
echo $text['description-dashboard_icon_color']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr class='type_icon' ".($dashboard_path != 'dashboard/icon' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-link']."\n";
@ -704,10 +728,7 @@
echo "</tr>\n";
}
if (
$action == "add" ||
$dashboard_path == "dashboard/content"
) {
if ($action == "add" || $dashboard_path == "dashboard/content") {
echo "<tr class='type_content' ".($dashboard_path != 'dashboard/content' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-content']."\n";
@ -734,11 +755,7 @@
echo "</tr>\n";
}
if (
$action == "add" ||
$dashboard_path == "dashboard/content" ||
$dashboard_path == "dashboard/icon"
) {
if ($action == "add" || $dashboard_path == "dashboard/content" || $dashboard_path == "dashboard/icon") {
echo "<tr class='type_icon type_content' ".($dashboard_path != 'dashboard/content' && $dashboard_path != 'dashboard/icon' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-details']."\n";
@ -793,8 +810,7 @@
echo "</td>\n";
echo "</tr>\n";
if (
$dashboard_path == "voicemails/voicemails" ||
if ($dashboard_path == "voicemails/voicemails" ||
$dashboard_path == "xml_cdr/missed_calls" ||
$dashboard_path == "xml_cdr/recent_calls" ||
$dashboard_path == "system/system_status" ||
@ -808,8 +824,7 @@
$dashboard_path == "registrations/registrations" ||
$dashboard_path == "domains/domains" ||
$dashboard_path == "extensions/caller_id" ||
$dashboard_path == "maintenance/maintenance"
) {
$dashboard_path == "maintenance/maintenance") {
echo "<tr class='type_chart' ".($action == "add" ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo $text['label-dashboard_chart_type']."\n";
@ -900,6 +915,7 @@
echo "</tr>\n";
}
if ($dashboard_path != "dashboard/icon") {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo $text['label-dashboard_number_text_color']."\n";
@ -911,7 +927,6 @@
echo "</td>\n";
echo "</tr>\n";
if ($action == "add" || $dashboard_path == "dashboard/icon") {
echo "<tr class='type_icon' ".($dashboard_path != 'dashboard/icon' ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo $text['label-dashboard_number_text_color_hover']."\n";
@ -924,6 +939,19 @@
echo "</tr>\n";
}
if ($dashboard_chart_type == "icon") {
echo "<tr class='type_icon'>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo $text['label-dashboard_number_background_color']."\n";
echo "</td>\n";
echo "<td class='vtable' style='position: relative;' align='left'>\n";
echo " <input type='text' class='formfld colorpicker' name='dashboard_number_background_color' value='".escape($dashboard_number_background_color)."'>\n";
echo "<br />\n";
echo $text['description-dashboard_number_background_color']."\n";
echo "</td>\n";
echo "</tr>\n";
}
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo $text['label-dashboard_background_color']."\n";

View File

@ -78,6 +78,7 @@
$sql .= "dashboard_name, ";
$sql .= "dashboard_path, ";
$sql .= "dashboard_icon, ";
$sql .= "dashboard_icon_color, ";
$sql .= "dashboard_url, ";
$sql .= "dashboard_target, ";
$sql .= "dashboard_width, ";
@ -93,6 +94,7 @@
$sql .= "dashboard_label_background_color_hover, ";
$sql .= "dashboard_number_text_color, ";
$sql .= "dashboard_number_text_color_hover, ";
$sql .= "dashboard_number_background_color, ";
$sql .= "dashboard_background_color, ";
$sql .= "dashboard_background_color_hover, ";
$sql .= "dashboard_detail_background_color, ";
@ -263,6 +265,11 @@ div.hud_chart {
<?php
foreach ($dashboard as $row) {
$dashboard_name = trim(preg_replace("/[^a-z]/", '_', strtolower($row['dashboard_name'])),'_');
if (!empty($row['dashboard_icon_color'])) {
echo "#".$dashboard_name." .hud_stat:has(i) {\n";
echo " color: ".$row['dashboard_icon_color'].";\n";
echo "}\n";
}
if (!empty($row['dashboard_label_text_color']) || !empty($row['dashboard_label_background_color'])) {
echo "#".$dashboard_name." .hud_title {\n";
if (!empty($row['dashboard_label_text_color'])) { echo " color: ".$row['dashboard_label_text_color'].";\n"; }

View File

@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'c41e7619-e213-49fd-a82f-df8fb8c46ad
$array['dashboard'][$x]['dashboard_name'] = 'Domains';
$array['dashboard'][$x]['dashboard_path'] = 'domains/domains.php';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-earth-americas';
$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_url'] = '/core/domains/domains.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_number_background_color'] = '#0292FF';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';

View File

@ -37,7 +37,7 @@
echo " <span class='hud_title' onclick=\"window.open('".$dashboard_url."', '".$dashboard_target."', '".$window_parameters."')\">".escape($dashboard_label)."</span>";
echo " <div style='position: relative; display: inline-block;'>\n";
echo " <span class='hud_stat' onclick=\"window.open('".$dashboard_url."', '".$dashboard_target."', '".$window_parameters."')\"><i class=\"fas ".$dashboard_icon."\"></i></span>\n";
echo " <span style=\"background-color: #0292FF; color: #ffffff; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 22px; left: 25px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$domain_count."</span>\n";
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#0292FF')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 22px; left: 25px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$domain_count."</span>\n";
echo " </div>\n";
echo " </div>\n";
if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") {