enabled field verification for ServerName
This commit is contained in:
parent
28149ed229
commit
ce66f0b9b8
|
@ -25,8 +25,8 @@ if (isset($_GET['edit']) ) {
|
||||||
include_once EVOADMIN_BASE . '../tpl/menu.tpl.php';
|
include_once EVOADMIN_BASE . '../tpl/menu.tpl.php';
|
||||||
|
|
||||||
$form = new FormPage("Modification du ServerName", FALSE);
|
$form = new FormPage("Modification du ServerName", FALSE);
|
||||||
$form->addField('domain_servername', new DomainInputFormField("ServerName", FALSE), $_GET['edit']);
|
$form->addField('domain_servername', new DomainInputFormField("ServerName", TRUE), $_GET['edit']);
|
||||||
$form->addField('previous_servername', new DomainInputFormField("", FALSE, TRUE), $_GET['edit']);
|
$form->addField('previous_servername', new DomainInputFormField("", TRUE, TRUE), $_GET['edit']);
|
||||||
|
|
||||||
if (!empty($_POST)) {
|
if (!empty($_POST)) {
|
||||||
$form->isCurrentPage(TRUE);
|
$form->isCurrentPage(TRUE);
|
||||||
|
@ -133,16 +133,25 @@ if (isset($_GET['edit']) ) {
|
||||||
print "</center>";
|
print "</center>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
print "<h2>Modification du ServerName</h2><hr>";
|
||||||
|
print "<form name=\"form-add\" id=\"form-add\" action=\"\" method=\"POST\">";
|
||||||
|
print " <fieldset>";
|
||||||
|
print " <legend>Modification du ServerName</legend>";
|
||||||
|
print $form;
|
||||||
|
print " <p><input type=\"submit\" value=\"Modifier\"/></p>";
|
||||||
|
print " </fieldset>";
|
||||||
|
print "</form>";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print "<h2>Modification du ServerName</h2><hr>";
|
print "<h2>Modification du ServerName</h2><hr>";
|
||||||
print "<form name=\"form-add\" id=\"form-add\" action=\"\" method=\"POST\">";
|
print "<form name=\"form-add\" id=\"form-add\" action=\"\" method=\"POST\">";
|
||||||
print " <fieldset>";
|
print " <fieldset>";
|
||||||
print " <legend>Modification du ServerName</legend>";
|
print " <legend>Modification du ServerName</legend>";
|
||||||
print $form;
|
print $form;
|
||||||
print " <p><input type=\"submit\" value=\"Modifier\"/></p>";
|
print " <p><input type=\"submit\" value=\"Modifier\"/></p>";
|
||||||
print " </fieldset>";
|
print " </fieldset>";
|
||||||
print "</form>";
|
print "</form>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue