diff --git a/core/default_settings/default_setting_edit.php b/core/default_settings/default_setting_edit.php index 4f9d71974e..696fd02e03 100644 --- a/core/default_settings/default_setting_edit.php +++ b/core/default_settings/default_setting_edit.php @@ -123,7 +123,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { unset($sql); $_SESSION["message"] = $text['message-add']; - header("Location: default_settings.php"); + header("Location: default_settings.php#".$default_setting_category); return; } //if ($action == "add") @@ -141,7 +141,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { unset($sql); $_SESSION["message"] = $text['message-update']; - header("Location: default_settings.php"); + header("Location: default_settings.php#".$default_setting_category); return; } //if ($action == "update") } //if ($_POST["persistformvar"] != "true") diff --git a/core/default_settings/default_settings.php b/core/default_settings/default_settings.php index c1a1a91572..4101c3398a 100644 --- a/core/default_settings/default_settings.php +++ b/core/default_settings/default_settings.php @@ -222,25 +222,39 @@ require_once "resources/paging.php"; // copy settings javascript if (permission_exists("domain_select") && permission_exists("domain_setting_add") && count($_SESSION['domains']) > 1) { - echo ""; } @@ -248,16 +262,14 @@ if (permission_exists("domain_select") && permission_exists("domain_setting_add" echo "
"; echo ""; - echo "
"; - echo "\n"; - echo "\n"; - echo " "; - echo ""; - echo "
\n"; - echo "
"; - echo "\n"; echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; echo "
".$text['header-default_settings'].""; + echo " "; + echo " ".$text['header-default_settings'].""; + echo "

"; + echo " ".$text['description-default_settings']; + echo "
"; if (permission_exists("domain_select") && permission_exists("domain_setting_add") && count($_SESSION['domains']) > 1) { echo " "; echo " "; @@ -274,16 +286,11 @@ if (permission_exists("domain_select") && permission_exists("domain_setting_add" } echo "
\n"; - echo " ".$text['description-default_settings']."

\n"; - echo "
\n"; + echo "
"; //prepare to page the results $sql = "select count(*) as num_rows from v_default_settings "; -// if (strlen($order_by) > 0) { $sql .= "order by $order_by $order "; } $prep_statement = $db->prepare($sql); if ($prep_statement) { $prep_statement->execute(); @@ -323,7 +330,6 @@ if (permission_exists("domain_select") && permission_exists("domain_setting_add" $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; - echo "
\n"; echo "\n"; if ($result_count > 0) { @@ -334,7 +340,10 @@ if (permission_exists("domain_select") && permission_exists("domain_setting_add" $c = 0; echo "\n"; echo " \n"; echo "
\n"; - if ($previous_category != '') { echo "

"; } + if ($previous_category != '') { + echo " "; + echo "

"; + } echo "
\n"; echo " \n"; if (strtolower($row['default_setting_category']) == "cdr") { @@ -466,15 +475,9 @@ if (permission_exists("domain_select") && permission_exists("domain_setting_add" echo "
"; - echo "
"; echo "

"; echo "

"; - echo "
"; - echo "
"; - echo "
"; echo "

";