diff --git a/app/call_centers/resources/dashboard/call_center_agents.php b/app/call_centers/resources/dashboard/call_center_agents.php index e8178fee7f..74542a3a51 100644 --- a/app/call_centers/resources/dashboard/call_center_agents.php +++ b/app/call_centers/resources/dashboard/call_center_agents.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2017-2023 + Portions created by the Initial Developer are Copyright (C) 2017-2025 the Initial Developer. All Rights Reserved. Contributor(s): @@ -258,21 +258,24 @@ echo "\n"; //show the content - echo "
\n"; - echo "
".$text['header-call_center_queues'].(!empty($agent['agent_name']) ? "    Agent: ".$agent['agent_name']."" : "")."
\n"; - echo "
\n"; + echo "
"; + + echo "
\n"; + echo "
\n"; + echo "
".$text['header-call_center_queues'].(!empty($agent['agent_name']) ? "    Agent: ".$agent['agent_name']."" : "")."
\n"; + echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"document.getElementById('form_list_call_center_agent_dashboard').submit();"]); + echo "
\n"; + echo "
\n"; echo "
\n"; - echo "
\n"; - echo "
\n"; - echo "
\n"; + echo " \n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo " \n"; - echo "\n"; + echo "
".$text['label-queue_name']."".$text['label-status']."
\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; if (!empty($call_center_queues) && is_array($call_center_queues) && @sizeof($call_center_queues) != 0) { $x = 0; @@ -295,9 +298,12 @@ unset($call_center_queues); } - echo "
".$text['label-queue_name']."".$text['label-status']."
\n"; - echo "
\n"; - echo "\n"; - echo "
\n"; + echo " \n"; + echo "
\n"; + echo " \n"; + echo " \n"; + echo "
\n"; + + echo "
\n"; ?> diff --git a/app/call_centers/resources/dashboard/config.php b/app/call_centers/resources/dashboard/config.php index 17fb4c8225..20e25dd1b3 100644 --- a/app/call_centers/resources/dashboard/config.php +++ b/app/call_centers/resources/dashboard/config.php @@ -20,7 +20,7 @@ $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_background_color'] = ''; +$array['dashboard'][$x]['dashboard_background_color'] = '#ffffff'; $array['dashboard'][$x]['dashboard_background_color_hover'] = ''; $array['dashboard'][$x]['dashboard_detail_background_color'] = ''; $array['dashboard'][$x]['dashboard_column_span'] = '1'; diff --git a/app/devices/resources/dashboard/device_keys.php b/app/devices/resources/dashboard/device_keys.php index 402c1409fb..bddeb7db2d 100644 --- a/app/devices/resources/dashboard/device_keys.php +++ b/app/devices/resources/dashboard/device_keys.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2023 + Portions created by the Initial Developer are Copyright (C) 2016-2025 the Initial Developer. All Rights Reserved. */ @@ -427,22 +427,25 @@ $token = $object->create('/app/devices/resources/dashboard/device_keys.php'); //show the content - echo "
\n"; - echo "
".$text['title-device_keys']."
\n"; - echo "
\n"; + echo "
"; + + echo "
\n"; + echo "
\n"; + echo "
".$text['title-device_keys']."
\n"; + echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-apply'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"document.location.href='".PROJECT_PATH."/app/devices/cmd.php?cmd=check_sync&profile=".$sip_profile_name."&user=".($user_id ?? '')."@".($server_address ?? '')."&domain=".($server_address ?? '')."&agent=".($device_key_vendor ?? '')."';"]); echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"list_form_submit('form_list_device_keys');"]); + echo "
\n"; + echo "
\n"; echo "
\n"; - echo "
\n"; - echo "
\n"; if (!empty($is_included) && !$is_included) { echo $text['description-device_keys']."\n"; echo "

\n"; } - echo "
\n"; - echo "\n"; + echo " \n"; + echo "
\n"; $x = 0; if (is_array($device_keys) && @sizeof($device_keys) != 0) { foreach ($device_keys as $row) { @@ -621,8 +624,11 @@ $x++; } } - echo "
\n"; - echo "\n"; - echo "
"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
\n"; + + echo "
\n"; ?> diff --git a/core/dashboard/index.php b/core/dashboard/index.php index 606832bbff..728847f85f 100644 --- a/core/dashboard/index.php +++ b/core/dashboard/index.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2022-2024 + Portions created by the Initial Developer are Copyright (C) 2022-2025 the Initial Developer. All Rights Reserved. Contributor(s): @@ -147,9 +147,11 @@ } //save the data - $database->app_name = 'dashboard'; - $database->app_uuid = '55533bef-4f04-434a-92af-999c1e9927f7'; - $database->save($array); + if (is_array($array)) { + $database->app_name = 'dashboard'; + $database->app_uuid = '55533bef-4f04-434a-92af-999c1e9927f7'; + $database->save($array); + } //redirect the browser message::add($text['message-update']);