adding space before/after 'advanced options' in dns types, sorting dns types by historical insert
This commit is contained in:
parent
3f67f06c06
commit
558ac8d549
|
@ -7,7 +7,7 @@ include_once("head.php");
|
||||||
# Take the values of the subdomain in arguments
|
# Take the values of the subdomain in arguments
|
||||||
|
|
||||||
function sub_domains_edit($domain, $sub=false,$type=false,$value=false) {
|
function sub_domains_edit($domain, $sub=false,$type=false,$value=false) {
|
||||||
global $admin, $oldid;
|
global $admin, $oldid, $isedit;
|
||||||
|
|
||||||
$dom=new m_dom();
|
$dom=new m_dom();
|
||||||
$dom->lock();
|
$dom->lock();
|
||||||
|
@ -37,9 +37,9 @@ $dom->unlock();
|
||||||
<input type="hidden" name="action" value="add" />
|
<input type="hidden" name="action" value="add" />
|
||||||
<?php
|
<?php
|
||||||
if ($isedit) {
|
if ($isedit) {
|
||||||
__("Create a subdomain:");
|
|
||||||
} else {
|
|
||||||
__("Edit a subdomain:");
|
__("Edit a subdomain:");
|
||||||
|
} else {
|
||||||
|
__("Create a subdomain:");
|
||||||
}
|
}
|
||||||
?></td><td>
|
?></td><td>
|
||||||
<input type="text" class="int" name="sub" style="text-align:right" value="<?php ehe($sub); ?>" size="22" id="sub" /><span class="int" id="newsubname">.<?php echo $domain; ?></span></td>
|
<input type="text" class="int" name="sub" style="text-align:right" value="<?php ehe($sub); ?>" size="22" id="sub" /><span class="int" id="newsubname">.<?php echo $domain; ?></span></td>
|
||||||
|
@ -59,8 +59,10 @@ $dom->unlock();
|
||||||
$lst_advanced[]=$dt['name'];
|
$lst_advanced[]=$dt['name'];
|
||||||
if ($first_advanced) {
|
if ($first_advanced) {
|
||||||
$first_advanced=false;
|
$first_advanced=false;
|
||||||
|
echo "<tr><td colspan=\"2\" class=\"advdom\"></td></tr>";
|
||||||
echo "<tr id='domtype_show' class='lst2' onClick=\"domtype_advanced_show();\"><td colspan=2><a href=\"javascript:domtype_advanced_show();\"><b>+ "; __("Show advanced options"); echo "</b></a></td></tr>";
|
echo "<tr id='domtype_show' class='lst2' onClick=\"domtype_advanced_show();\"><td colspan=2><a href=\"javascript:domtype_advanced_show();\"><b>+ "; __("Show advanced options"); echo "</b></a></td></tr>";
|
||||||
echo "<tr id='domtype_hide' class='lst2' onClick=\"domtype_advanced_hide();\" style='display:none'><td colspan=2><a href=\"javascript:domtype_advanced_hide();\"><b>- "; __("Hide advanced options"); echo "</b></a></td></tr>";
|
echo "<tr id='domtype_hide' class='lst2' onClick=\"domtype_advanced_hide();\" style='display:none'><td colspan=2><a href=\"javascript:domtype_advanced_hide();\"><b>- "; __("Hide advanced options"); echo "</b></a></td></tr>";
|
||||||
|
echo "<tr><td colspan=\"2\" class=\"advdom\"></td></tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -433,3 +433,8 @@ input#dir, input#sub_local {
|
||||||
#admlistbtn {
|
#admlistbtn {
|
||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.advdom {
|
||||||
|
padding-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ class m_dom {
|
||||||
function domains_type_lst() {
|
function domains_type_lst() {
|
||||||
global $db,$err,$cuid;
|
global $db,$err,$cuid;
|
||||||
$err->log("dom","domains_type_lst");
|
$err->log("dom","domains_type_lst");
|
||||||
$db->query("select * from domaines_type order by advanced, name;");
|
$db->query("select * from domaines_type order by advanced;");
|
||||||
$this->domains_type_lst=false;
|
$this->domains_type_lst=false;
|
||||||
while ($db->next_record()) {
|
while ($db->next_record()) {
|
||||||
$this->domains_type_lst[] = $db->Record;
|
$this->domains_type_lst[] = $db->Record;
|
||||||
|
|
Loading…
Reference in New Issue