diff --git a/core/domain_settings/domain_setting_edit.php b/core/domain_settings/domain_setting_edit.php index ea7de72364..a8eb693b03 100644 --- a/core/domain_settings/domain_setting_edit.php +++ b/core/domain_settings/domain_setting_edit.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-2019 + Portions created by the Initial Developer are Copyright (C) 2008-2020 the Initial Developer. All Rights Reserved. Contributor(s): @@ -347,49 +347,49 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $object = new token; $token = $object->create($_SERVER['PHP_SELF']); -//show the header - require_once "resources/header.php"; +//include the header if ($action == "update") { $document['title'] = $text['title-domain_setting-edit']; } elseif ($action == "add") { $document['title'] = $text['title-domain_setting-add']; } + require_once "resources/header.php"; //show the content - echo "
\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + + echo "
"; + echo "\n"; + + echo "
\n"; + echo "
"; if ($action == "update") { - echo $text['header-domain_setting-edit']; + echo "".$text['header-domain_setting-edit'].""; } if ($action == "add") { - echo $text['header-domain_setting-add']; + echo "".$text['header-domain_setting-add'].""; } - echo "
"; - echo " "; - echo " \n"; - echo "
\n"; + echo " \n"; + echo "
\n"; + echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'style'=>'margin-right: 15px;','link'=>PROJECT_PATH.'/core/domains/domain_edit.php?id='.urlencode($domain_uuid)]); + echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'onclick'=>'submit_form();']); + echo "
\n"; + echo "
\n"; + echo "\n"; + if ($action == "update") { - echo $text['description-domain_setting-edit']; + echo $text['description-domain_setting-edit']."\n"; } if ($action == "add") { - echo $text['description-domain_setting-add']; + echo $text['description-domain_setting-add']."\n"; } echo "

\n"; - echo "
\n"; echo "\n"; - echo "\n"; - echo "\n"; echo "\n"; - echo " \n"; - echo " \n"; - echo " "; echo "
\n"; + echo "\n"; echo " ".$text['label-category']."\n"; echo "\n"; + echo "\n"; if (permission_exists('domain_setting_category_edit')) { if ($action == 'add') { $domain_setting_category = $_GET['domain_setting_category']; @@ -765,19 +765,15 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " \n"; - if ($action == "update") { - echo " \n"; - } - echo " \n"; - echo "
"; - echo " \n"; - echo "
"; - echo "
"; + echo "

"; + + echo "\n"; + if ($action == "update") { + echo "\n"; + } + echo "\n"; + echo "
"; echo "