Domains: Add front end to set domain status, and assign a parent domain.

This commit is contained in:
Nate Jones
2015-02-06 01:26:06 +00:00
parent 2f5fe5055f
commit 84596b7107
7 changed files with 200 additions and 117 deletions
+9 -19
View File
@@ -267,17 +267,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
//show the content
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing=''>\n";
echo "<tr class='border'>\n";
echo " <td align=\"left\">\n";
echo " <br>";
echo "<form method='post' name='frm' action=''>\n";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap='nowrap'><b>";
echo "<td align='left' valign='top' width='30%' nowrap='nowrap'><b>";
if ($action == "update") {
echo $text['header-domain_setting-edit'];
}
@@ -285,7 +278,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo $text['header-domain_setting-add'];
}
echo "</b></td>\n";
echo "<td width='70%' align='right'>";
echo "<td width='70%' align='right' valign='top'>";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='domain_edit.php?id=$domain_uuid'\" value='".$text['button-back']."'>";
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo "</td>\n";
@@ -547,7 +540,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
echo " </select>\n";
echo "<br />\n";
echo $text['description-enabled']."\n";
echo $text['description-setting_enabled']."\n";
echo "</td>\n";
echo "</tr>\n";
@@ -564,21 +557,18 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo " <tr>\n";
echo " <td colspan='2' align='right'>\n";
echo " <input type='hidden' name='domain_uuid' value='$domain_uuid'>\n";
echo " <input type='hidden' name='domain_uuid' value='$domain_uuid'>\n";
if ($action == "update") {
echo " <input type='hidden' name='domain_setting_uuid' value='$domain_setting_uuid'>\n";
echo " <input type='hidden' name='domain_setting_uuid' value='$domain_setting_uuid'>\n";
}
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " <br />";
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " </td>\n";
echo " </tr>";
echo "</table>";
echo "<br />";
echo "</form>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "</div>";
//include the footer
require_once "resources/footer.php";
?>