From b43bcb9a1306a2ae6d8536adf7dd826179e13f57 Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:43:42 -0700 Subject: [PATCH] Added the heading counter div (#7124) --- app/access_controls/access_controls.php | 2 +- app/bridges/bridges.php | 2 +- app/call_block/call_block.php | 2 +- app/call_broadcast/call_broadcast.php | 2 +- app/call_centers/call_center_agents.php | 2 +- app/call_centers/call_center_queues.php | 2 +- app/call_flows/call_flows.php | 2 +- app/call_forward/call_forward.php | 2 +- app/calls_active/calls_active_inc.php | 2 +- app/conference_centers/conference_centers.php | 2 +- app/conference_centers/conference_rooms.php | 6 ++--- .../conference_session_details.php | 2 +- .../conference_sessions.php | 5 ++-- .../conference_control_details.php | 2 +- .../conference_controls.php | 2 +- .../conference_profile_params.php | 2 +- .../conference_profiles.php | 2 +- app/conferences/conferences.php | 2 +- app/conferences_active/conferences_active.php | 4 +--- app/contacts/contacts.php | 2 +- .../database_transactions.php | 4 ++-- app/destinations/destinations.php | 2 +- app/devices/device_profiles.php | 2 +- app/devices/device_vendor_functions.php | 3 +-- app/devices/device_vendors.php | 3 +-- app/devices/devices.php | 3 +-- app/dialplans/dialplans.php | 2 +- app/email_queue/email_queue.php | 10 ++++---- app/email_templates/email_templates.php | 2 +- app/emergency/emergency.php | 2 +- app/event_guard/event_guard_logs.php | 4 ++-- app/extension_settings/extension_settings.php | 2 +- app/extensions/extensions.php | 2 +- app/fax/fax.php | 2 +- app/fax/fax_files.php | 4 ++-- app/fax/fax_logs.php | 2 +- app/fax_queue/fax_queue.php | 2 +- app/fifo/fifo.php | 2 +- app/gateways/gateways.php | 2 +- app/ivr_menus/ivr_menus.php | 2 +- app/modules/modules.php | 2 +- .../number_translations.php | 2 +- app/phrases/phrases.php | 2 +- app/pin_numbers/pin_numbers.php | 4 ++-- app/recordings/recordings.php | 2 +- app/registrations/registrations.php | 2 +- app/ring_groups/ring_groups.php | 2 +- app/sip_profiles/sip_profiles.php | 2 +- .../sofia_global_settings.php | 2 +- app/time_conditions/time_conditions.php | 2 +- .../voicemail_greetings.php | 8 +++---- app/voicemails/voicemails.php | 2 +- core/dashboard/dashboard.php | 2 +- core/databases/databases.php | 2 +- core/default_settings/default_settings.php | 2 +- core/domains/domains.php | 2 +- core/groups/group_members.php | 4 ++-- core/groups/group_permissions.php | 24 +++++++++---------- core/groups/groups.php | 4 ++-- core/user_logs/user_logs.php | 4 ++-- core/user_settings/user_settings.php | 2 +- core/users/users.php | 4 ++-- 62 files changed, 91 insertions(+), 97 deletions(-) diff --git a/app/access_controls/access_controls.php b/app/access_controls/access_controls.php index 5415dd9f40..ac6f92a527 100644 --- a/app/access_controls/access_controls.php +++ b/app/access_controls/access_controls.php @@ -157,7 +157,7 @@ //show the content echo "
\n"; - echo "
".$text['title-access_controls']." (".$num_rows.")
\n"; + echo "
".$text['title-access_controls']."
".number_format($num_rows)."
\n"; echo "
\n"; echo button::create(['label'=>$text['button-reload'],'icon'=>$_SESSION['theme']['button_icon_reload'],'type'=>'button','id'=>'button_reload','link'=>'access_controls_reload.php'.(!empty($search) ? '?search='.urlencode($search) : null),'style'=>'margin-right: 15px;']); if (permission_exists('access_control_add')) { diff --git a/app/bridges/bridges.php b/app/bridges/bridges.php index 1354e6cadb..39946553f0 100644 --- a/app/bridges/bridges.php +++ b/app/bridges/bridges.php @@ -157,7 +157,7 @@ //show the content echo "
\n"; - echo "
".$text['title-bridges']." (".$num_rows.")
\n"; + echo "
".$text['title-bridges']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('bridge_import')) { echo button::create(['type'=>'button','label'=>$text['button-import'],'icon'=>$_SESSION['theme']['button_icon_import'],'style'=>'margin-right: 15px;','link'=>'bridge_imports.php']); diff --git a/app/call_block/call_block.php b/app/call_block/call_block.php index 080f69d48b..83484517eb 100644 --- a/app/call_block/call_block.php +++ b/app/call_block/call_block.php @@ -226,7 +226,7 @@ //show the content echo "
\n"; - echo "
".$text['title-call_block']." (".$num_rows.")
\n"; + echo "
".$text['title-call_block']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('call_block_add')) { echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','link'=>'call_block_edit.php']); diff --git a/app/call_broadcast/call_broadcast.php b/app/call_broadcast/call_broadcast.php index 80a7ae7d77..33ad94f238 100644 --- a/app/call_broadcast/call_broadcast.php +++ b/app/call_broadcast/call_broadcast.php @@ -159,7 +159,7 @@ //show the content echo "
\n"; - echo "
".$text['title-call_broadcast']." (".$num_rows.")
\n"; + echo "
".$text['title-call_broadcast']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('call_broadcast_add')) { echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','link'=>'call_broadcast_edit.php']); diff --git a/app/call_centers/call_center_agents.php b/app/call_centers/call_center_agents.php index b260805650..07951e8535 100644 --- a/app/call_centers/call_center_agents.php +++ b/app/call_centers/call_center_agents.php @@ -138,7 +138,7 @@ //show content echo "
\n"; - echo "
".$text['header-call_center_agents']." (".$num_rows.")
\n"; + echo "
".$text['header-call_center_agents']."
".number_format($num_rows)."
\n"; echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','link'=>'call_center_queues.php','style'=>'margin-right: 15px;']); if (permission_exists('call_center_imports')) { diff --git a/app/call_centers/call_center_queues.php b/app/call_centers/call_center_queues.php index 3b37d6e9c9..76d4692f2b 100644 --- a/app/call_centers/call_center_queues.php +++ b/app/call_centers/call_center_queues.php @@ -134,7 +134,7 @@ //show the content echo "
\n"; - echo "
".$text['header-call_center_queues']." (".$num_rows.")
\n"; + echo "
".$text['header-call_center_queues']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('call_center_imports')) { echo button::create(['type'=>'button','label'=>$text['button-import'],'icon'=>$_SESSION['theme']['button_icon_import'],'link'=>PROJECT_PATH.'/app/call_center_imports/call_center_imports.php?import_type=call_center_queues']); diff --git a/app/call_flows/call_flows.php b/app/call_flows/call_flows.php index ac8ec65e49..90083781d4 100644 --- a/app/call_flows/call_flows.php +++ b/app/call_flows/call_flows.php @@ -158,7 +158,7 @@ //show the content echo "
\n"; - echo "
".$text['title-call_flows']." (".$num_rows.")
\n"; + echo "
".$text['title-call_flows']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('call_flow_add')) { echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','link'=>'call_flow_edit.php']); diff --git a/app/call_forward/call_forward.php b/app/call_forward/call_forward.php index 521803e085..e95fa55f1e 100644 --- a/app/call_forward/call_forward.php +++ b/app/call_forward/call_forward.php @@ -223,7 +223,7 @@ } else { echo "
\n"; - echo "
" . $text['header-call_forward'] . " (" . $num_rows . ")
\n"; + echo "
" . $text['header-call_forward'] . "
".number_format($num_rows)."
\n"; echo "
\n"; if (count($extensions) > 0) { diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index f6ec0f7c3a..ffa00988c4 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -113,7 +113,7 @@ //show content echo "
\n"; - echo "
".$text['title']." (".$num_rows.")
\n"; + echo "
".$text['title']."
".number_format($num_rows)."
\n"; echo "
\n"; echo " ".button::create(['type'=>'button','title'=>$text['label-refresh_pause'],'icon'=>'sync-alt fa-spin','onclick'=>'refresh_stop()']).""; if (permission_exists('call_active_eavesdrop') && !empty($_SESSION['user']['extensions'])) { diff --git a/app/conference_centers/conference_centers.php b/app/conference_centers/conference_centers.php index a141679c34..b0b1038154 100644 --- a/app/conference_centers/conference_centers.php +++ b/app/conference_centers/conference_centers.php @@ -155,7 +155,7 @@ //show the content echo "
\n"; - echo "
".$text['title-conference_centers']." (".$num_rows.")
\n"; + echo "
".$text['title-conference_centers']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('conference_active_view')) { echo button::create(['type'=>'button','label'=>$text['button-view_active'],'icon'=>'comments','link'=>PROJECT_PATH.'/app/conferences_active/conferences_active.php']); diff --git a/app/conference_centers/conference_rooms.php b/app/conference_centers/conference_rooms.php index b1e8034959..5ce0cd55de 100644 --- a/app/conference_centers/conference_rooms.php +++ b/app/conference_centers/conference_rooms.php @@ -222,7 +222,7 @@ //show the content echo "
\n"; - echo "
".$text['title-conference_rooms']." (".$num_rows.")
\n"; + echo "
".$text['title-conference_rooms']."
".number_format($num_rows)."
\n"; echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','style'=>'margin-right: 15px;','link'=>'conference_centers.php']); if (permission_exists('conference_room_add')) { @@ -457,10 +457,10 @@ else if (permission_exists('conference_active_view')) { echo " ".$text['label-view']."\n"; } - if (permission_exists('conference_cdr_view')) { + if (permission_exists('conference_cdr_view')) { echo " ".$text['button-cdr']."\n"; } - if (permission_exists('conference_session_view')) { + if (permission_exists('conference_session_view')) { echo " ".$text['label-sessions']."\n"; } echo " \n"; diff --git a/app/conference_centers/conference_session_details.php b/app/conference_centers/conference_session_details.php index 3a74a65067..c5c9a8249e 100644 --- a/app/conference_centers/conference_session_details.php +++ b/app/conference_centers/conference_session_details.php @@ -111,7 +111,7 @@ //show the content echo "
\n"; - echo "
".$text['title-conference_session_details']." (".$num_rows.")
\n"; + echo "
".$text['title-conference_session_details']."
".number_format($num_rows)."
\n"; echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','link'=>'conference_sessions.php']); $tmp_dir = $_SESSION['switch']['recordings']['dir'].'/'.$_SESSION['domain_name'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day; diff --git a/app/conference_centers/conference_sessions.php b/app/conference_centers/conference_sessions.php index dcbbc90c9e..91ad8b043e 100644 --- a/app/conference_centers/conference_sessions.php +++ b/app/conference_centers/conference_sessions.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) 2008 - 2024 + Portions created by the Initial Developer are Copyright (C) 2008-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -97,7 +97,6 @@ list($paging_controls, $rows_per_page) = paging($num_rows, $param, $rows_per_page); list($paging_controls_mini, $rows_per_page) = paging($num_rows, $param, $rows_per_page, true); $offset = $rows_per_page * $page; - //get the list $sql = "select * from v_conference_sessions "; @@ -135,7 +134,7 @@ //show the content echo "
\n"; - echo "
".$text['title-conference_sessions']." (".$num_rows.")
\n"; + echo "
".$text['title-conference_sessions']."
".number_format($num_rows)."
\n"; echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','link'=>'conference_rooms.php']); if (permission_exists('conference_session_delete') && $conference_sessions) { diff --git a/app/conference_controls/conference_control_details.php b/app/conference_controls/conference_control_details.php index ddbd25cd2f..88bafae32a 100644 --- a/app/conference_controls/conference_control_details.php +++ b/app/conference_controls/conference_control_details.php @@ -124,7 +124,7 @@ //show the content echo "
\n"; - echo "
".$text['title-conference_control_details']." (".$num_rows.")
\n"; + echo "
".$text['title-conference_control_details']."
".number_format($num_rows)."
\n"; echo "
\n"; echo button::create(['type'=>'button','id'=>'action_bar_sub_button_back','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'collapse'=>'hide-xs','style'=>'margin-right: 15px; display: none;','link'=>'conference_controls.php']); if (permission_exists('conference_control_detail_add')) { diff --git a/app/conference_controls/conference_controls.php b/app/conference_controls/conference_controls.php index b33d0a9be1..a4b997c7fb 100644 --- a/app/conference_controls/conference_controls.php +++ b/app/conference_controls/conference_controls.php @@ -125,7 +125,7 @@ //show the content echo "
\n"; - echo "
".$text['title-conference_controls']." (".$num_rows.")
\n"; + echo "
".$text['title-conference_controls']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('conference_control_add')) { echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','link'=>'conference_control_edit.php']); diff --git a/app/conference_profiles/conference_profile_params.php b/app/conference_profiles/conference_profile_params.php index d97b81bfac..48bbc165ee 100644 --- a/app/conference_profiles/conference_profile_params.php +++ b/app/conference_profiles/conference_profile_params.php @@ -110,7 +110,7 @@ //show the content echo "
\n"; - echo "
".$text['title-conference_profile_params']." (".$num_rows.")
\n"; + echo "
".$text['title-conference_profile_params']."
".number_format($num_rows)."
\n"; echo "
\n"; echo button::create(['type'=>'button','id'=>'action_bar_sub_button_back','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'collapse'=>'hide-xs','style'=>'margin-right: 15px; display: none;','link'=>'conference_profiles.php']); if (permission_exists('conference_profile_param_add')) { diff --git a/app/conference_profiles/conference_profiles.php b/app/conference_profiles/conference_profiles.php index 0decb2c823..a02a6b21f5 100644 --- a/app/conference_profiles/conference_profiles.php +++ b/app/conference_profiles/conference_profiles.php @@ -121,7 +121,7 @@ //show the content echo "
\n"; - echo "
".$text['title-conference_profiles']." (".$num_rows.")
\n"; + echo "
".$text['title-conference_profiles']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('conference_profile_add')) { echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','link'=>'conference_profile_edit.php']); diff --git a/app/conferences/conferences.php b/app/conferences/conferences.php index 73e2490d49..159cc29475 100644 --- a/app/conferences/conferences.php +++ b/app/conferences/conferences.php @@ -151,7 +151,7 @@ //show the content echo "
\n"; - echo "
".$text['title-conferences']." (".$num_rows.")
\n"; + echo "
".$text['title-conferences']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('conference_active_view')) { echo button::create(['type'=>'button','label'=>$text['button-view_active'],'icon'=>'comments','style'=>'margin-right: 15px;','link'=>PROJECT_PATH.'/app/conferences_active/conferences_active.php']); diff --git a/app/conferences_active/conferences_active.php b/app/conferences_active/conferences_active.php index 0c31c3a69b..2b4e2c7606 100644 --- a/app/conferences_active/conferences_active.php +++ b/app/conferences_active/conferences_active.php @@ -132,9 +132,7 @@ else if (window.attachEvent) { echo "

\n"; //show the content - echo "
\n"; - echo "
"; - echo "
\n"; + echo "
"; echo "

"; //include the footer diff --git a/app/contacts/contacts.php b/app/contacts/contacts.php index 6390fbe21e..3ff09d34f9 100644 --- a/app/contacts/contacts.php +++ b/app/contacts/contacts.php @@ -325,7 +325,7 @@ //show the content echo "
\n"; - echo "
".$text['header-contacts']." (".$num_rows.")
\n"; + echo "
".$text['header-contacts']."
".number_format($num_rows)."
\n"; echo "
\n"; if (permission_exists('contact_add')) { echo button::create(['type'=>'button','label'=>$text['button-import'],'icon'=>$_SESSION['theme']['button_icon_import'],'collapse'=>'hide-sm-dn','style'=>'margin-right: 15px;','link'=>'contact_import.php']); diff --git a/app/database_transactions/database_transactions.php b/app/database_transactions/database_transactions.php index aff1863eb7..a04060d413 100644 --- a/app/database_transactions/database_transactions.php +++ b/app/database_transactions/database_transactions.php @@ -150,7 +150,7 @@ //show the content echo "
\n"; - echo "
".$text['title-database_transactions']." (".$num_rows.")
\n"; + echo "
".$text['title-database_transactions']."
".number_format($num_rows)."
\n"; echo "
\n"; echo "