From 2182ebd0b46409f4a7b2d09ec8206ab3a6493081 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 5 Sep 2024 23:37:34 -0600 Subject: [PATCH] Added the content card div --- app/destinations/destination_download.php | 5 +- app/dialplan_inbound/dialplan_inbound_add.php | 16 ++++--- app/dialplans/dialplan_add.php | 46 ++++++++++--------- app/dialplans/dialplan_edit.php | 4 +- app/dialplans/dialplan_xml.php | 13 ++++-- app/dialplans/dialplans.php | 3 ++ .../extension_setting_edit.php | 8 ++-- app/extension_settings/extension_settings.php | 3 ++ app/extensions/extension_download.php | 4 +- app/extensions/extension_edit.php | 4 +- app/extensions/extension_imports.php | 7 ++- app/extensions/extensions.php | 3 ++ app/gateways/gateway_edit.php | 5 +- app/gateways/gateways.php | 6 ++- core/user_settings/user_setting_edit.php | 11 +++-- core/user_settings/user_settings.php | 2 + core/users/user_edit.php | 2 + core/users/user_imports.php | 13 ++++-- core/users/users.php | 2 + 19 files changed, 102 insertions(+), 55 deletions(-) diff --git a/app/destinations/destination_download.php b/app/destinations/destination_download.php index 0032ae459c..ba8d097bb8 100644 --- a/app/destinations/destination_download.php +++ b/app/destinations/destination_download.php @@ -148,7 +148,6 @@ //show the content echo "
\n"; - echo "
\n"; echo "
".$text['header-destination_export']."
\n"; echo "
\n"; @@ -157,10 +156,11 @@ echo "
\n"; echo "
\n"; echo "
\n"; - + echo $text['description-destination_export']; echo "

\n"; + echo "
\n"; echo "\n"; echo "\n"; echo "
\n"; @@ -184,6 +184,7 @@ } echo "
\n"; + echo "
\n"; echo "
\n"; echo "\n"; echo "
\n"; diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index 13e27ef9dd..deb8175233 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -71,27 +71,27 @@ $condition_field_2 = $_POST["condition_field_2"] ?? null; $condition_expression_2 = $_POST["condition_expression_2"] ?? null; $destination_uuid = $_POST["destination_uuid"]; - + $action_1 = $_POST["action_1"]; //$action_1 = "transfer:1001 XML default"; $action_1_array = explode(":", $action_1); $action_application_1 = array_shift($action_1_array); $action_data_1 = join(':', $action_1_array); - + $action_2 = $_POST["action_2"] ?? ''; //$action_2 = "transfer:1001 XML default"; $action_2_array = explode(":", $action_2); $action_application_2 = array_shift($action_2_array); $action_data_2 = join(':', $action_2_array); - + //$action_application_1 = $_POST["action_application_1"]; //$action_data_1 = $_POST["action_data_1"]; //$action_application_2 = $_POST["action_application_2"]; //$action_data_2 = $_POST["action_data_2"]; - + $destination_carrier = ''; $destination_accountcode = ''; - + //use the destination_uuid to set the condition_expression_1 if (is_uuid($destination_uuid)) { $sql = "select * from v_destinations "; @@ -110,7 +110,7 @@ } unset($sql, $parameters, $row); } - + if (permission_exists("inbound_route_advanced") && $action == "advanced") { //allow users with group advanced control, not always superadmin. You may change this in group permissions } @@ -503,6 +503,7 @@ echo $text['description-dialplan-inbound-add']."\n"; echo "

\n"; + echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; @@ -807,6 +808,7 @@ echo "
"; + echo "
\n"; echo "

"; if ($action == "update" && permission_exists("inbound_route_edit")) { @@ -819,4 +821,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/dialplans/dialplan_add.php b/app/dialplans/dialplan_add.php index fe2fe629e8..eaa88c1a9c 100644 --- a/app/dialplans/dialplan_add.php +++ b/app/dialplans/dialplan_add.php @@ -111,11 +111,11 @@ require_once "resources/footer.php"; return; } - + //remove the invalid characters from the extension name $dialplan_name = str_replace(" ", "_", $dialplan_name); $dialplan_name = str_replace("/", "", $dialplan_name); - + //add the main dialplan include entry $dialplan_uuid = uuid(); $array['dialplans'][0]['domain_uuid'] = $domain_uuid; @@ -149,7 +149,7 @@ $array['dialplan_details'][1]['dialplan_detail_data'] = $condition_expression_2; $array['dialplan_details'][1]['dialplan_detail_order'] = '2'; } - + //add action 1 $dialplan_detail_uuid = uuid(); $array['dialplan_details'][2]['domain_uuid'] = $domain_uuid; @@ -161,7 +161,7 @@ $array['dialplan_details'][2]['dialplan_detail_data'] = $action_data_1; } $array['dialplan_details'][2]['dialplan_detail_order'] = '3'; - + //add action 2 if (!empty($action_application_2)) { $dialplan_detail_uuid = uuid(); @@ -175,18 +175,18 @@ } $array['dialplan_details'][3]['dialplan_detail_order'] = '4'; } - + //execute inserts $database = new database; $database->app_name = 'dialplans'; $database->app_uuid = '742714e5-8cdf-32fd-462c-cbe7e3d655db'; $database->save($array); unset($array); - + //clear the cache $cache = new cache; $cache->delete("dialplan:".$_SESSION["context"]); - + //send a message and redirect the user message::add($text['message-update']); header("Location: ".PROJECT_PATH."/app/dialplans/dialplans.php"); @@ -249,8 +249,9 @@ echo $text['description-dialplan_manager-superadmin']."\n"; 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 "\n"; echo "\n"; echo "
\n"; echo " ".$text['label-name']."\n"; @@ -261,7 +262,7 @@ echo "\n"; echo "
\n"; //echo " Continue\n"; @@ -286,7 +287,7 @@ //echo "Extension Continue in most cases this is false. default: false\n"; //echo "
\n"; echo " ".$text['label-condition_1']."\n"; @@ -316,7 +317,7 @@ obj.parentNode.removeChild(obj); Replace_condition_field_1(this.objs); } - + function Replace_condition_field_1(obj){ obj[2].parentNode.insertBefore(obj[0],obj[2]); obj[0].parentNode.removeChild(obj[1]); @@ -374,13 +375,13 @@ echo "
\n"; echo "
\n"; echo " ".$text['label-condition_2']."\n"; echo "\n"; - + echo " \n"; echo " \n"; //echo " \n"; @@ -409,7 +410,7 @@ obj.parentNode.removeChild(obj); Replace_condition_field_2(this.objs); } - + function Replace_condition_field_2(obj){ obj[2].parentNode.insertBefore(obj[0],obj[2]); obj[0].parentNode.removeChild(obj[1]); @@ -463,7 +464,7 @@ 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 " \n"; echo "\n"; - + echo "\n"; echo "\n"; echo "\n"; - + echo "\n"; echo " \n"; echo "\n"; - + echo "\n"; echo " \n"; echo "
".$text['label-field']."
\n"; echo " ".$text['label-action_1']."\n"; @@ -472,10 +473,10 @@ echo $destination->select('dialplan', 'action_1', escape($action_1 ?? null)); echo "
\n"; echo " ".$text['label-action_2']."\n"; @@ -484,7 +485,7 @@ echo $destination->select('dialplan', 'action_2', escape($action_2 ?? null)); echo "
\n"; echo " ".$text['label-context']."\n"; @@ -494,7 +495,7 @@ echo "
\n"; echo "
\n"; echo " ".$text['label-order']."\n"; @@ -514,7 +515,7 @@ echo "
\n"; echo "
\n"; echo " ".$text['label-enabled']."\n"; @@ -527,7 +528,7 @@ echo "
\n"; echo "
\n"; echo " ".$text['label-description']."\n"; @@ -539,6 +540,7 @@ echo "
"; + echo "\n"; echo "

"; if (!empty($action) && $action == "update") { @@ -551,4 +553,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/dialplans/dialplan_edit.php b/app/dialplans/dialplan_edit.php index 6cddf76467..b93bdc47e1 100644 --- a/app/dialplans/dialplan_edit.php +++ b/app/dialplans/dialplan_edit.php @@ -117,7 +117,7 @@ $esl = event_socket::create(); if ($esl->is_connected()) { $result = event_socket::api('show application'); - + $show_applications = explode("\n\n", $result); $raw_applications = explode("\n", $show_applications[0]); unset($result); @@ -590,6 +590,7 @@ echo $text['description-dialplan-edit']."\n"; echo "

\n"; + echo "
\n"; echo "\n"; echo "\n"; echo "
\n"; @@ -1068,6 +1069,7 @@ unset($details); echo "
"; + echo "
\n"; } //end if results diff --git a/app/dialplans/dialplan_xml.php b/app/dialplans/dialplan_xml.php index 440f7e00d8..7ee63f5d36 100644 --- a/app/dialplans/dialplan_xml.php +++ b/app/dialplans/dialplan_xml.php @@ -258,6 +258,7 @@ echo $text['description-dialplan-edit']."\n"; echo "
\n"; + echo "
\n"; echo " "; echo " \n"; echo " \n"; @@ -329,12 +330,14 @@ 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 "\n"; + echo "\n"; echo "\n"; diff --git a/app/dialplans/dialplans.php b/app/dialplans/dialplans.php index 11394b6ff8..9b3f77cad7 100644 --- a/app/dialplans/dialplans.php +++ b/app/dialplans/dialplans.php @@ -498,6 +498,7 @@ } echo "\n

\n"; + echo "
\n"; echo "\n"; echo "\n"; @@ -506,6 +507,7 @@ echo "\n"; echo "\n"; + echo "
\n"; echo "\n"; echo "\n"; if ( @@ -634,6 +636,7 @@ } echo "
\n"; + echo "
\n"; echo "
\n"; echo "
".$paging_controls."
\n"; diff --git a/app/extension_settings/extension_setting_edit.php b/app/extension_settings/extension_setting_edit.php index c8a1615133..86e66bc7e7 100644 --- a/app/extension_settings/extension_setting_edit.php +++ b/app/extension_settings/extension_setting_edit.php @@ -159,8 +159,8 @@ $database->app_name = 'extension settings'; $database->app_uuid = '1416a250-f6e1-4edc-91a6-5c9b883638fd'; $database->save($array); - - //clear the cache + + //clear the cache $sql = "select extension, number_alias, user_context from v_extensions "; $sql .= "where extension_uuid = :extension_uuid "; $parameters['extension_uuid'] = $extension_uuid; @@ -169,7 +169,7 @@ $cache = new cache; $cache->delete("directory:".$extension["extension"]."@".$extension["user_context"]); $cache->delete("directory:".$extension["number_alias"]."@".$extension["user_context"]); - + //redirect the user if (isset($action)) { if ($action == "add") { @@ -260,6 +260,7 @@ } } + echo "
\n"; echo "\n"; //echo "\n"; @@ -369,6 +370,7 @@ echo "\n"; echo "
\n"; + echo "
\n"; echo "

\n"; echo "\n"; diff --git a/app/extension_settings/extension_settings.php b/app/extension_settings/extension_settings.php index 1aeee73236..63b8920921 100644 --- a/app/extension_settings/extension_settings.php +++ b/app/extension_settings/extension_settings.php @@ -226,6 +226,7 @@ echo "\n"; echo "\n"; + echo "
\n"; echo "\n"; if (!empty($extension_settings)) { //define the variable @@ -319,7 +320,9 @@ } echo "
\n"; + echo "
\n"; echo "
\n"; + echo "
".$paging_controls."
\n"; echo "\n"; echo "\n"; diff --git a/app/extensions/extension_download.php b/app/extensions/extension_download.php index 30909f4822..9d5d3e7e23 100644 --- a/app/extensions/extension_download.php +++ b/app/extensions/extension_download.php @@ -183,6 +183,7 @@ echo $text['description-extension_export']; echo "

\n"; + echo "
\n"; echo "\n"; echo "\n"; echo "
\n"; @@ -206,6 +207,7 @@ } echo "
\n"; + echo "
\n"; echo "
\n"; echo "\n"; echo "
\n"; @@ -213,4 +215,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 0af169bc11..b8dd6f5a17 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -1140,6 +1140,7 @@ echo "
\n"; echo "\n"; + echo "
\n"; echo "\n"; echo "\n"; @@ -2284,6 +2285,7 @@ echo "\n"; echo "
"; + echo "
\n"; echo "

"; if (isset($page) && is_numeric($page)) { @@ -2313,4 +2315,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/extensions/extension_imports.php b/app/extensions/extension_imports.php index 5283eef89c..47562ae405 100644 --- a/app/extensions/extension_imports.php +++ b/app/extensions/extension_imports.php @@ -164,6 +164,7 @@ echo $text['description-import']."\n"; echo "

\n"; + echo "
\n"; echo "\n"; //loop through user columns @@ -202,6 +203,7 @@ } echo "
\n"; + echo "
\n"; echo "

\n"; echo "\n"; @@ -365,7 +367,6 @@ //show content echo "
\n"; - echo "
\n"; echo "
".$text['header-extension_import']."
\n"; echo "
\n"; @@ -378,6 +379,7 @@ echo $text['description-import']."\n"; echo "

\n"; + echo "
\n"; echo "\n"; echo "\n"; @@ -448,6 +450,7 @@ echo "\n"; echo "
\n"; + echo "
\n"; echo "

"; echo "\n"; @@ -458,4 +461,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/extensions/extensions.php b/app/extensions/extensions.php index 17ad8a9303..68b437ecb2 100644 --- a/app/extensions/extensions.php +++ b/app/extensions/extensions.php @@ -294,6 +294,7 @@ echo "\n"; echo "\n"; + echo "
\n"; echo "\n"; echo "\n"; if (permission_exists('extension_enabled') || permission_exists('extension_delete')) { @@ -431,6 +432,8 @@ } echo "
\n"; + echo "
\n"; + echo "
\n"; echo "
".$paging_controls."
\n"; diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php index 1060d6cde0..dcb82c34f1 100644 --- a/app/gateways/gateway_edit.php +++ b/app/gateways/gateway_edit.php @@ -391,7 +391,7 @@ echo "

\n"; echo "\n"; - + echo "
\n"; echo "\n"; echo "\n"; @@ -930,7 +930,7 @@ echo "\n"; echo "
"; - echo "

"; + echo "
\n"; if ($action == "update") { echo "\n"; @@ -938,6 +938,7 @@ echo "\n"; echo ""; + echo "

"; //hide password fields before submit echo "