mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
refactoring dns section: new html formating
This commit is contained in:
parent
64e74887f8
commit
28d66aac89
26 changed files with 1337 additions and 922 deletions
|
@ -50,7 +50,7 @@ rm -f $HOMEDIR/$user/conf/dns/$domain.db
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Deleting domain
|
# Deleting domain
|
||||||
sed -i "/$user\/conf\/dns\/$domain.db\"/d" /etc/named.conf
|
sed -i "/DOMAIN='$domain'/ d" $USER_DATA/dns.conf
|
||||||
rm -f $USER_DATA/dns/$domain.conf
|
rm -f $USER_DATA/dns/$domain.conf
|
||||||
|
|
||||||
# Decreasing domain value
|
# Decreasing domain value
|
||||||
|
|
|
@ -150,23 +150,17 @@ top_panel($user,$TAB);
|
||||||
$v_ns4 = $nameservers[3];
|
$v_ns4 = $nameservers[3];
|
||||||
unset($output);
|
unset($output);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($v_ttl)) $v_ttl = 14400;
|
if (empty($v_ttl)) $v_ttl = 14400;
|
||||||
if (empty($v_exp)) $v_exp = date('Y-m-d', strtotime('+1 year'));
|
if (empty($v_exp)) $v_exp = date('Y-m-d', strtotime('+1 year'));
|
||||||
|
|
||||||
if ($_SESSION['user'] == 'admin') {
|
if ($_SESSION['user'] == 'admin') {
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_dns.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_dns.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_dns.html');
|
||||||
} else {
|
} else {
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_dns.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/add_dns.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/add_dns.html');
|
||||||
}
|
}
|
||||||
unset($_SESSION['error_msg']);
|
unset($_SESSION['error_msg']);
|
||||||
unset($_SESSION['ok_msg']);
|
unset($_SESSION['ok_msg']);
|
||||||
} else {
|
} else {
|
||||||
$v_domain = $_GET['domain'];
|
$v_domain = $_GET['domain'];
|
||||||
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_dns_rec.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_dns_rec.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_dns_rec.html');
|
||||||
unset($_SESSION['error_msg']);
|
unset($_SESSION['error_msg']);
|
||||||
unset($_SESSION['ok_msg']);
|
unset($_SESSION['ok_msg']);
|
||||||
|
|
|
@ -140,10 +140,8 @@ top_panel($user,$TAB);
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($_SESSION['user'] == 'admin') {
|
if ($_SESSION['user'] == 'admin') {
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_dns.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_dns.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_dns.html');
|
||||||
} else {
|
} else {
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_dns.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/edit_dns.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/edit_dns.html');
|
||||||
}
|
}
|
||||||
unset($_SESSION['error_msg']);
|
unset($_SESSION['error_msg']);
|
||||||
|
@ -200,7 +198,6 @@ top_panel($user,$TAB);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_dns_rec.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_dns_rec.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_dns_rec.html');
|
||||||
unset($_SESSION['error_msg']);
|
unset($_SESSION['error_msg']);
|
||||||
unset($_SESSION['ok_msg']);
|
unset($_SESSION['ok_msg']);
|
||||||
|
|
|
@ -20,8 +20,6 @@ if ($_SESSION['user'] == 'admin') {
|
||||||
$data = json_decode(implode('', $output), true);
|
$data = json_decode(implode('', $output), true);
|
||||||
$data = array_reverse($data);
|
$data = array_reverse($data);
|
||||||
unset($output);
|
unset($output);
|
||||||
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_dns.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns.html');
|
||||||
} else {
|
} else {
|
||||||
exec (VESTA_CMD."v_list_dns_domain_records '".$user."' '".$_GET['domain']."' 'json'", $output, $return_var);
|
exec (VESTA_CMD."v_list_dns_domain_records '".$user."' '".$_GET['domain']."' 'json'", $output, $return_var);
|
||||||
|
@ -29,19 +27,15 @@ if ($_SESSION['user'] == 'admin') {
|
||||||
$data = json_decode(implode('', $output), true);
|
$data = json_decode(implode('', $output), true);
|
||||||
$data = array_reverse($data);
|
$data = array_reverse($data);
|
||||||
unset($output);
|
unset($output);
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_dns_rec.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns_rec.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns_rec.html');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (empty($_GET['domain'])){
|
if (empty($_GET['domain'])){
|
||||||
exec (VESTA_CMD."v_list_dns_domains $user json", $output, $return_var);
|
exec (VESTA_CMD."v_list_dns_domains $user json", $output, $return_var);
|
||||||
check_error($return_var);
|
check_error($return_var);
|
||||||
$data = json_decode(implode('', $output), true);
|
$data = json_decode(implode('', $output), true);
|
||||||
$data = array_reverse($data);
|
$data = array_reverse($data);
|
||||||
unset($output);
|
unset($output);
|
||||||
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_dns.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_dns.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_dns.html');
|
||||||
} else {
|
} else {
|
||||||
exec (VESTA_CMD."v_list_dns_domain_records '".$user."' '".$_GET['domain']."' 'json'", $output, $return_var);
|
exec (VESTA_CMD."v_list_dns_domain_records '".$user."' '".$_GET['domain']."' 'json'", $output, $return_var);
|
||||||
|
@ -49,7 +43,6 @@ if ($_SESSION['user'] == 'admin') {
|
||||||
$data = json_decode(implode('', $output), true);
|
$data = json_decode(implode('', $output), true);
|
||||||
$data = array_reverse($data);
|
$data = array_reverse($data);
|
||||||
unset($output);
|
unset($output);
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_dns_rec.html');
|
|
||||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_dns_rec.html');
|
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_dns_rec.html');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,26 @@
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Adding DNS Domain</b></a>
|
||||||
|
<?php
|
||||||
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
|
} else {
|
||||||
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_add_dns" method="post">
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function elementHideShow(elementToHideOrShow)
|
function elementHideShow(elementToHideOrShow){
|
||||||
{
|
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
if (el.style.display == "block") {
|
if (el.style.display == "block") {
|
||||||
el.style.display = "none";
|
el.style.display = "none";
|
||||||
|
@ -10,8 +30,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<table class="data">
|
||||||
<table class='data'>
|
|
||||||
<tr class="data-add">
|
<tr class="data-add">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
<table class="data-col1">
|
<table class="data-col1">
|
||||||
|
@ -19,54 +38,120 @@
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
|
</table>
|
||||||
<table class="data-col2" width="600px">
|
<table class="data-col2" width="600px">
|
||||||
<form method="post" name="v_add_user">
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> ></td></tr>
|
Domain
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP address</td></tr>
|
</td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>></tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;"><a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options ⇢</a></td></tr>
|
<td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 0px;">
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
IP address
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
<a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 0px;">
|
||||||
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Template</td></tr>
|
<tr>
|
||||||
<tr><td><select class="add-list" name="v_template">
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Template
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_template">
|
||||||
<?php
|
<?php
|
||||||
foreach ($templates as $key => $value) {
|
foreach ($templates as $key => $value) {
|
||||||
echo "\t\t\t\t<option value=\"".$value."\"";
|
echo "\n\t\t\t\t\t\\t\t\t\t<option value=\"".$value."\"";
|
||||||
if ((!empty($v_template)) && ( $value == $_POST['v_template'])){
|
if ((!empty($v_template)) && ( $value == $_POST['v_template'])){
|
||||||
echo ' selected' ;
|
echo ' selected' ;
|
||||||
}
|
}
|
||||||
if ((empty($v_template)) && ( $value == $template)){
|
if ((empty($v_template)) && ( $value == $template)){
|
||||||
echo ' selected' ;
|
echo ' selected' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo ">".$value."</option>\n";
|
echo ">".$value."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Domain Expiriation</td></tr>
|
</td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>></tr>
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">TTL</td></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>></tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Name Servers</td></tr>
|
Domain Expiriation
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".$v_ns1; ?>></tr>
|
</td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".$v_ns2; ?>></tr>
|
</tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns3" <?php if (!empty($v_ns3)) echo "value=".$v_ns3; ?>></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns4" <?php if (!empty($v_ns4)) echo "value=".$v_ns4; ?>></tr>
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
TTL
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Name Servers
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".$v_ns1; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".$v_ns2; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ns3" <?php if (!empty($v_ns3)) echo "value=".$v_ns3; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ns4" <?php if (!empty($v_ns4)) echo "value=".$v_ns4; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
</tr>
|
||||||
<input type="submit" name="ok" value="OK" class="add-button"></form>
|
<tr>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
<td style="padding: 24px 0 0 0;">
|
||||||
</td></tr>
|
<input type="submit" name="ok" value="OK" class="button">
|
||||||
|
<input type="button" class="button" value="Cancel" onclick="location.href='/list/dns/'">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -1,16 +1,24 @@
|
||||||
<script language="javascript">
|
|
||||||
function elementHideShow(elementToHideOrShow)
|
<table class="sub-menu" style="background: white;">
|
||||||
{
|
<tr>
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Adding DNS Record</b></a>
|
||||||
if (el.style.display == "block") {
|
<?php
|
||||||
el.style.display = "none";
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
} else {
|
} else {
|
||||||
el.style.display = "block";
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_add_dns_rec" method="post">
|
||||||
<table class='data'>
|
<table class='data'>
|
||||||
<tr class="data-add">
|
<tr class="data-add">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
|
@ -19,17 +27,40 @@
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
|
</table>
|
||||||
<table class="data-col2" width="600px">
|
<table class="data-col2" width="600px">
|
||||||
<form method="post" name="v_add_user">
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php echo "value=".$v_domain; ?> disabled ><input type="hidden" name="v_domain" <?php echo "value=".$v_domain; ?>></td></tr>
|
Domain
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Record</td></tr>
|
</td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_rec" <?php if (!empty($v_rec)) echo "value=".$v_rec; ?>></tr>
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Type</td></tr>
|
<tr>
|
||||||
<tr><td><select class="add-list" name="v_type">
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_domain" <?php echo "value=".$v_domain; ?> disabled ><input type="hidden" name="v_domain" <?php echo "value=".$v_domain; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Record
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_rec" <?php if (!empty($v_rec)) echo "value=".$v_rec; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Type
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_type">
|
||||||
<option value="A" <?php if ($v_type == 'A') echo selected; ?>>A</option>
|
<option value="A" <?php if ($v_type == 'A') echo selected; ?>>A</option>
|
||||||
<option value="AAAA" <?php if ($v_type == 'AAAA') echo selected; ?>>AAAA</option>
|
<option value="AAAA" <?php if ($v_type == 'AAAA') echo selected; ?>>AAAA</option>
|
||||||
<option value="NS" <?php if ($v_type == 'NS') echo selected; ?>>NS</option>
|
<option value="NS" <?php if ($v_type == 'NS') echo selected; ?>>NS</option>
|
||||||
|
@ -42,17 +73,37 @@
|
||||||
<option value="IPSECKEY" <?php if ($v_type == 'IPSECKEY') echo selected; ?>>IPSECKEY</option>
|
<option value="IPSECKEY" <?php if ($v_type == 'IPSECKEY') echo selected; ?>>IPSECKEY</option>
|
||||||
<option value="PTR" <?php if ($v_type == 'PTR') echo selected; ?>>PTR</option>
|
<option value="PTR" <?php if ($v_type == 'PTR') echo selected; ?>>PTR</option>
|
||||||
<option value="SPF" <?php if ($v_type == 'SPF') echo selected; ?>>SPF</option>
|
<option value="SPF" <?php if ($v_type == 'SPF') echo selected; ?>>SPF</option>
|
||||||
</select></td></tr>
|
</select>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP or Value</td></tr>
|
</td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_val" <?php if (!empty($v_val)) echo "value=".$v_val; ?>></tr>
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Priority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span></td></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_priority" <?php if (!empty($v_priority)) echo "value=".$v_priority; ?>></tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
IP or Value
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
</td>
|
||||||
<input type="submit" name="ok_rec" value="OK" class="add-button"></form>
|
</tr>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/<?php echo "?domain=".$v_domain; ?>'">
|
<tr>
|
||||||
</td></tr>
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_val" <?php if (!empty($v_val)) echo "value=".$v_val; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Priority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_priority" <?php if (!empty($v_priority)) echo "value=".$v_priority; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 24px 0 0 0;">
|
||||||
|
<input type="submit" name="ok_rec" value="OK" class="button">
|
||||||
|
<input type="button" class="button" value="Cancel" onclick="location.href='/list/dns/<?php echo "?domain=".$v_domain; ?>'">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="add-text" style="padding: 10px 0 0 2px;">
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options ⇢</a>
|
<a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -1,3 +1,24 @@
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing DNS Domain</b></a>
|
||||||
|
<?php
|
||||||
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
|
} else {
|
||||||
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_edit_dns" method="post">
|
||||||
<table class='data'>
|
<table class='data'>
|
||||||
<tr class="data-add">
|
<tr class="data-add">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
|
@ -8,17 +29,40 @@
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
<form method="post" name="v_edit_user">
|
</table>
|
||||||
<table class="data-col2" width="830px">
|
<table class="data-col2" width="830px">
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>></td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP address</td></tr>
|
Domain
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>></td></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Template</td></tr>
|
</tr>
|
||||||
<tr><td><select class="add-list" name="v_template">
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
IP address
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Template
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_template">
|
||||||
<?php
|
<?php
|
||||||
foreach ($templates as $key => $value) {
|
foreach ($templates as $key => $value) {
|
||||||
echo "\t\t\t\t<option value=\"".$value."\"";
|
echo "\t\t\t\t<option value=\"".$value."\"";
|
||||||
|
@ -29,20 +73,47 @@
|
||||||
echo ">".$value."</option>\n";
|
echo ">".$value."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select></td></tr>
|
</select>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Domain Expiriation</td></tr>
|
</td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>></tr>
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SOA</td></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_soa" <?php if (!empty($v_soa)) echo "value=".$v_soa; ?>></tr>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">TTL</td></tr>
|
Domain Expiriation
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>></tr>
|
</td>
|
||||||
|
</tr>
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
<tr>
|
||||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
<td>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
<input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>>
|
||||||
</td></tr>
|
</td>
|
||||||
</form>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SOA
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_soa" <?php if (!empty($v_soa)) echo "value=".$v_soa; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
TTL
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 24px 0 0 0;">
|
||||||
|
<input type="submit" class="button" name="save" value="Save">
|
||||||
|
<input type="button" class="button" value="Cancel" onclick="location.href='/list/dns/'">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -1,3 +1,24 @@
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing DNS Record</b></a>
|
||||||
|
<?php
|
||||||
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
|
} else {
|
||||||
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_edit_dns_rec" method="post">
|
||||||
<table class='data'>
|
<table class='data'>
|
||||||
<tr class="data-add">
|
<tr class="data-add">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
|
@ -8,28 +29,71 @@
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
<form method="post" name="v_edit_user">
|
</table>
|
||||||
<table class="data-col2" width="830px">
|
<table class="data-col2" width="830px">
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php echo "value=".$v_domain; ?> disabled ><input type="hidden" name="v_domain" <?php echo "value=".$v_domain; ?>></td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Record</td></tr>
|
Domain
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_rec" <?php if (!empty($v_rec)) echo "value=".$v_rec; ?> disabled> <input type="hidden" name="v_record_id" <?php if (!empty($v_record_id)) echo "value=".$v_record_id; ?> ></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Type</td></tr>
|
</tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_type" <?php if (!empty($v_rec)) echo "value=".$v_type; ?> disabled></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP or Value</td></tr>
|
<td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_val" <?php if (!empty($v_val)) echo "value='".$v_val."'"; ?>></tr>
|
<input type="text" size="20" class="add-input" name="v_domain" <?php echo "value=".$v_domain; ?> disabled >
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Priority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span></td></tr>
|
<input type="hidden" name="v_domain" <?php echo "value=".$v_domain; ?>>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_priority" <?php if (!empty($v_priority)) echo "value=".$v_priority; ?>></tr>
|
</td>
|
||||||
|
</tr>
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
<tr>
|
||||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/<?php echo "?domain=".$_GET['domain']; ?>'">
|
Record
|
||||||
</td></tr>
|
</td>
|
||||||
</form>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_rec" <?php if (!empty($v_rec)) echo "value=".$v_rec; ?> disabled> <input type="hidden" name="v_record_id" <?php if (!empty($v_record_id)) echo "value=".$v_record_id; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Type
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_type" <?php if (!empty($v_rec)) echo "value=".$v_type; ?> disabled>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
IP or Value
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_val" <?php if (!empty($v_val)) echo "value='".$v_val."'"; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Priority <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(optional)</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_priority" <?php if (!empty($v_priority)) echo "value=".$v_priority; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 24px 0 0 0;">
|
||||||
|
<input type="submit" class="button" name="save" value="Save">
|
||||||
|
<input type="button" class="button" value="Cancel" onclick="location.href='/list/dns/<?php echo "?domain=".$_GET['domain']; ?>'">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<form id="vstobjects" name="v_edit_user" method="post">
|
<form id="vstobjects" name="v_edit_web" method="post">
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
|
|
|
@ -1,5 +1,34 @@
|
||||||
<table class='data'>
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 0 8px 6px">
|
||||||
|
<div style="float:left">
|
||||||
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/'"> Add DNS Domain </button>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: right; float: right;">
|
||||||
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
|
<button> Search </button>
|
||||||
|
</div>
|
||||||
|
<div style="float:left; padding-left: 26px;">
|
||||||
|
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||||
|
<select style="margin:0 2px 0 0px;" >
|
||||||
|
<option>apply to selected</option>
|
||||||
|
<option>rebuild</option>
|
||||||
|
<option>update counters</option>
|
||||||
|
<option>suspend</option>
|
||||||
|
<option>unsuspend</option>
|
||||||
|
<option>delete</option>
|
||||||
|
</select>
|
||||||
|
<button style="width:27px;"> › </button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects">
|
||||||
|
<table class="data">
|
||||||
<?php
|
<?php
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
++$i;
|
++$i;
|
||||||
|
@ -11,6 +40,7 @@ foreach ($data as $key => $value) {
|
||||||
$spnd_action = 'suspend' ;
|
$spnd_action = 'suspend' ;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||||
|
@ -30,7 +60,6 @@ foreach ($data as $key => $value) {
|
||||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
|
@ -57,11 +86,11 @@ foreach ($data as $key => $value) {
|
||||||
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
|
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
|
||||||
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
|
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
|
||||||
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="data-controls" width="96px"><img src="/images/more.png" width="8px" height="8px"><a href="/list/dns/?domain=<?php echo $key ?>"> list records</a></td>
|
<td class="data-controls" width="96px"><img src="/images/more.png" width="8px" height="8px"><a href="/list/dns/?domain=<?php echo $key ?>"> list records</a></td>
|
||||||
<td class="data-controls" width="92px"><img src="/images/add.png" width="8px" height="8px"><a href="/add/dns/?domain=<?php echo $key ?>"> add record</a></td>
|
<td class="data-controls" width="92px"><img src="/images/add.png" width="8px" height="8px"><a href="/add/dns/?domain=<?php echo $key ?>"> add record</a></td>
|
||||||
|
@ -80,43 +109,67 @@ foreach ($data as $key => $value) {
|
||||||
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr></table>
|
</tr>
|
||||||
|
</table>
|
||||||
<table class="data-col2" width="830px">
|
<table class="data-col2" width="830px">
|
||||||
<tr><td colspan=3 class="domain" style="padding: 0 0 0 4px;"><b><?php echo $key ?></b></td></tr>
|
<tr>
|
||||||
|
<td colspan=3 class="domain" style="padding: 0 0 0 4px;">
|
||||||
|
<b><?php echo $key ?></b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align:top;" >
|
<td style="vertical-align:top;" >
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name" style="padding: 2px 0 0 2px;"><?php echo $data[$key]['IP'] ?></td>
|
<tr>
|
||||||
<tr><td class="counter-name" style="padding: 0 0 20px 2px">[<?php echo $data[$key]['TPL'] ?>] template</td></tr>
|
<td class="counter-name" style="padding: 2px 0 0 2px;">
|
||||||
|
<?php echo $data[$key]['IP'] ?>
|
||||||
|
</td>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name" style="padding: 0 0 20px 2px">
|
||||||
|
[<?php echo $data[$key]['TPL'] ?>] template
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align:top;" width="250">
|
<td style="vertical-align:top;" width="250">
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name">SOA:</td><td class="counter-value"><?php echo $data[$key]['SOA'] ?></td></tr>
|
<tr>
|
||||||
<tr><td class="counter-name">TTL:</td><td class="counter-value"><?php echo $data[$key]['TTL'] ?></td></tr>
|
<td class="counter-name">SOA:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['SOA'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">TTL:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['TTL'] ?></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td rowspan=4 style="vertical-align:top;" width="300">
|
<td rowspan=4 style="vertical-align:top;" width="300">
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name">Expire:</td><td class="counter-value"><?php echo $data[$key]['EXP'] ?></td></tr>
|
<tr>
|
||||||
<tr><td class="counter-name">Records:</td><td class="counter-value"><?php echo $data[$key]['RECORDS'] ?></td></tr>
|
<td class="counter-name">Expire:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['EXP'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Records:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['RECORDS'] ?></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
||||||
<table class="data-count">
|
<table class="data-count">
|
||||||
<tr>
|
<tr>
|
||||||
<td>→
|
<td width="160px"></td>
|
||||||
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ( $i == 1) {
|
if ( $i == 1) {
|
||||||
echo "1 user dns domain ";
|
echo "1 user dns domain ";
|
||||||
|
@ -128,6 +181,7 @@ foreach ($data as $key => $value) {
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:157px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:157px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:25px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:25px\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
|
@ -1,5 +1,35 @@
|
||||||
<table class='data'>
|
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 0 8px 6px">
|
||||||
|
<div style="float:left">
|
||||||
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/?domain=<?php echo $_GET['domain'] ?>'"> Add DNS Record </button>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: right; float: right;">
|
||||||
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
|
<button> Search </button>
|
||||||
|
</div>
|
||||||
|
<div style="float:left; padding-left: 26px;">
|
||||||
|
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||||
|
<select style="margin:0 2px 0 0px;" >
|
||||||
|
<option>apply to selected</option>
|
||||||
|
<option>rebuild</option>
|
||||||
|
<option>update counters</option>
|
||||||
|
<option>suspend</option>
|
||||||
|
<option>unsuspend</option>
|
||||||
|
<option>delete</option>
|
||||||
|
</select>
|
||||||
|
<button style="width:27px;"> › </button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects">
|
||||||
|
<table class="data">
|
||||||
<?php
|
<?php
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
++$i;
|
++$i;
|
||||||
|
@ -11,6 +41,7 @@ foreach ($data as $key => $value) {
|
||||||
$spnd_action = 'suspend' ;
|
$spnd_action = 'suspend' ;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||||
|
@ -30,7 +61,6 @@ foreach ($data as $key => $value) {
|
||||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
|
@ -60,7 +90,8 @@ foreach ($data as $key => $value) {
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>"> edit</a></td>
|
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>"> edit</a></td>
|
||||||
<td class="data-controls" width="80px">
|
<td class="data-controls" width="80px">
|
||||||
|
@ -77,9 +108,8 @@ foreach ($data as $key => $value) {
|
||||||
<p class="counter-value">Are you sure you want to delete <span style="color: #34536A;"><b><?php echo $data[$key]['RECORD'] ?></b></span> record?</p>
|
<p class="counter-value">Are you sure you want to delete <span style="color: #34536A;"><b><?php echo $data[$key]['RECORD'] ?></b></span> record?</p>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
</tr></table>
|
</table>
|
||||||
|
|
||||||
<table class="data-col5" width="780px">
|
<table class="data-col5" width="780px">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="log" style="padding: 0 0 0 4px;" width="200"><b><?php echo $data[$key]['RECORD'] ?></b></td>
|
<td class="log" style="padding: 0 0 0 4px;" width="200"><b><?php echo $data[$key]['RECORD'] ?></b></td>
|
||||||
|
@ -90,16 +120,17 @@ foreach ($data as $key => $value) {
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
<table class="data-count">
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
||||||
|
<table class="data-count">
|
||||||
<tr>
|
<tr>
|
||||||
<td>→
|
<td width="160px">
|
||||||
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ( $i == 1) {
|
if ( $i == 1) {
|
||||||
echo "1 dns record ";
|
echo "1 dns record ";
|
||||||
|
@ -111,6 +142,7 @@ foreach ($data as $key => $value) {
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:196px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:196px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:103px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:103px\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td style="padding: 14px 0 24px 0;" ><a class="add-name"><b>Adding DNS Domain</b></a>
|
|
||||||
<?php
|
|
||||||
if (!empty($_SESSION['error_msg'])) {
|
|
||||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
|
||||||
} else {
|
|
||||||
if (!empty($_SESSION['ok_msg'])) {
|
|
||||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
|
@ -1,15 +0,0 @@
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td style="padding: 14px 0 24px 0;" ><a class="add-name"><b>Adding DNS Record</b></a>
|
|
||||||
<?php
|
|
||||||
if (!empty($_SESSION['error_msg'])) {
|
|
||||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
|
||||||
} else {
|
|
||||||
if (!empty($_SESSION['ok_msg'])) {
|
|
||||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
|
@ -1,42 +0,0 @@
|
||||||
<?php
|
|
||||||
if (!empty($_SESSION['error_msg'])) {
|
|
||||||
?>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$( "#dialog:ui-dialog" ).dialog( "destroy" );
|
|
||||||
$( "#dialog-message" ).dialog({
|
|
||||||
modal: true,
|
|
||||||
buttons: {
|
|
||||||
Ok: function() {
|
|
||||||
$( this ).dialog( "close" );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<div id="dialog-message" title="Error">
|
|
||||||
<p><?php echo $_SESSION['error_msg'] ?>.</p>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
unset($_SESSION['error_msg']);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td width="142px" style="padding: 16px 0 16px 6px">
|
|
||||||
<button style="width:120px; padding: 2px 0px 2px 0px;" onclick="location.href='/add/dns/'">Add Domain</button>
|
|
||||||
<td><a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
|
||||||
<select style="margin:0 0 0 0px">
|
|
||||||
<option>apply to selected</option>
|
|
||||||
<option>rebuild</option>
|
|
||||||
<option>suspend</option>
|
|
||||||
<option>unsuspend</option>
|
|
||||||
<option>delete</option>
|
|
||||||
</select> <button> > </button></td>
|
|
||||||
</td>
|
|
||||||
<td style="text-align: right;"><input type="text" size="30" style="padding: 3px 80px 3px 0;"> <button> Search </button></td>
|
|
||||||
</tr><tr>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<form id="vstobjects">
|
|
|
@ -1,40 +0,0 @@
|
||||||
<?php
|
|
||||||
if (!empty($_SESSION['error_msg'])) {
|
|
||||||
?>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$( "#dialog:ui-dialog" ).dialog( "destroy" );
|
|
||||||
$( "#dialog-message" ).dialog({
|
|
||||||
modal: true,
|
|
||||||
buttons: {
|
|
||||||
Ok: function() {
|
|
||||||
$( this ).dialog( "close" );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<div id="dialog-message" title="Error">
|
|
||||||
<p><?php echo $_SESSION['error_msg'] ?>.</p>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
unset($_SESSION['error_msg']);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td width="142px" style="padding: 16px 0 16px 6px">
|
|
||||||
<button style="width:120px; padding: 2px 0px 2px 0px;" onclick="location.href='/add/dns/?domain=<?php echo $_GET['domain'] ?>'">Add Record</button>
|
|
||||||
<td><a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
|
||||||
<select style="margin:0 0 0 0px">
|
|
||||||
<option>apply to selected</option>
|
|
||||||
<option>suspend</option>
|
|
||||||
<option>unsuspend</option>
|
|
||||||
<option>delete</option>
|
|
||||||
</select> <button> > </button></td>
|
|
||||||
</td>
|
|
||||||
<td style="text-align: right;"><input type="text" size="30" style="padding: 3px 80px 3px 0;"> <button> Search </button></td>
|
|
||||||
</tr><tr>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<form id="vstobjects">
|
|
|
@ -1,15 +0,0 @@
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td style="padding: 14px 0 24px 0;" ><a class="add-name"><b>Editing DNS Domain</b></a>
|
|
||||||
<?php
|
|
||||||
if (!empty($_SESSION['error_msg'])) {
|
|
||||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
|
||||||
} else {
|
|
||||||
if (!empty($_SESSION['ok_msg'])) {
|
|
||||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
|
@ -1,15 +0,0 @@
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td style="padding: 14px 0 24px 0;" ><a class="add-name"><b>Editing Record</b></a>
|
|
||||||
<?php
|
|
||||||
if (!empty($_SESSION['error_msg'])) {
|
|
||||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
|
||||||
} else {
|
|
||||||
if (!empty($_SESSION['ok_msg'])) {
|
|
||||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
|
@ -59,7 +59,7 @@
|
||||||
|
|
||||||
.bottom {
|
.bottom {
|
||||||
background: #ebe9dc;
|
background: #ebe9dc;
|
||||||
color: #777;
|
color: #555;
|
||||||
margin: 30 0 0 0;
|
margin: 30 0 0 0;
|
||||||
padding: 4 20 8 0;
|
padding: 4 20 8 0;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
@ -76,17 +76,17 @@
|
||||||
.bottom a:link {
|
.bottom a:link {
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #777;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom a:visited {
|
.bottom a:visited {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #777;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom a:hover {
|
.bottom a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
color: #333;
|
color: #7fa1cb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
|
@ -568,7 +568,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.genpass {
|
.genpass {
|
||||||
color: #34536A;
|
color: #34536a;
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
padding: 0 5px 0 8px;
|
padding: 0 5px 0 8px;
|
||||||
|
@ -577,20 +577,23 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.genpass:hover {
|
.genpass:hover {
|
||||||
color: #9ba68c;
|
color: #7fa1cb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.add-advanced {
|
.add-advanced {
|
||||||
color: #34536A;
|
color: #34536a;
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 1px solid #f79b44;
|
||||||
}
|
}
|
||||||
|
|
||||||
.add-advanced:hover {
|
.add-advanced:hover {
|
||||||
color: #9ba68c;
|
color: #7fa1cb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* fixed header */
|
/* fixed header */
|
||||||
.fixed{
|
.fixed{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
|
@ -1,6 +1,26 @@
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Adding DNS Domain</b></a>
|
||||||
|
<?php
|
||||||
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
|
} else {
|
||||||
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_add_dns" method="post">
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function elementHideShow(elementToHideOrShow)
|
function elementHideShow(elementToHideOrShow){
|
||||||
{
|
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
if (el.style.display == "block") {
|
if (el.style.display == "block") {
|
||||||
el.style.display = "none";
|
el.style.display = "none";
|
||||||
|
@ -10,8 +30,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<table class="data">
|
||||||
<table class='data'>
|
|
||||||
<tr class="data-add">
|
<tr class="data-add">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
<table class="data-col1">
|
<table class="data-col1">
|
||||||
|
@ -19,38 +38,97 @@
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
<table class="data-col2" width="600px">
|
|
||||||
<form method="post" name="v_add_user">
|
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> ></td></tr>
|
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP address</td></tr>
|
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>></tr>
|
|
||||||
|
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;"><a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options ⇢</a></td></tr>
|
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 0px;">
|
|
||||||
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
|
||||||
<tr><td class="add-text" style="padding: 0px 0 0 2px;">Domain Expiriation</td></tr>
|
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>></tr>
|
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">TTL</td></tr>
|
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>></tr>
|
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Name Servers</td></tr>
|
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".$v_ns1; ?>></tr>
|
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".$v_ns2; ?>></tr>
|
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns3" <?php if (!empty($v_ns3)) echo "value=".$v_ns3; ?>></tr>
|
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns4" <?php if (!empty($v_ns4)) echo "value=".$v_ns4; ?>></tr>
|
|
||||||
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</td></tr>
|
<table class="data-col2" width="600px">
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
<tr>
|
||||||
<input type="submit" name="ok" value="OK" class="add-button"></form>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
Domain
|
||||||
</td></tr>
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
IP address
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
<a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 0px;">
|
||||||
|
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Domain Expiriation
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
TTL
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Name Servers
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".$v_ns1; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".$v_ns2; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ns3" <?php if (!empty($v_ns3)) echo "value=".$v_ns3; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ns4" <?php if (!empty($v_ns4)) echo "value=".$v_ns4; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 24px 0 0 0;">
|
||||||
|
<input type="submit" name="ok" value="OK" class="button">
|
||||||
|
<input type="button" class="button" value="Cancel" onclick="location.href='/list/dns/'">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="add-text" style="padding: 10px 0 0 2px;">
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options ⇢</a>
|
<a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -1,3 +1,24 @@
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing DNS Domain</b></a>
|
||||||
|
<?php
|
||||||
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
|
} else {
|
||||||
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
|
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects" name="v_edit_dns" method="post">
|
||||||
<table class='data'>
|
<table class='data'>
|
||||||
<tr class="data-add">
|
<tr class="data-add">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
|
@ -8,28 +29,70 @@
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr></table>
|
</tr>
|
||||||
<form method="post" name="v_edit_user">
|
</table>
|
||||||
<table class="data-col2" width="830px">
|
<table class="data-col2" width="830px">
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>></td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP address</td></tr>
|
Domain
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>></td></tr>
|
</td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Domain Expiriation</td></tr>
|
</tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>></tr>
|
<tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SOA</td></tr>
|
<td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_soa" <?php if (!empty($v_soa)) echo "value=".$v_soa; ?>></tr>
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">TTL</td></tr>
|
</td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>></tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
IP address
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
</td>
|
||||||
</td></tr>
|
</tr>
|
||||||
</form>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
Domain Expiriation
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
SOA
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_soa" <?php if (!empty($v_soa)) echo "value=".$v_soa; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
|
TTL
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 24px 0 0 0;">
|
||||||
|
<input type="submit" class="button" name="save" value="Save">
|
||||||
|
<input type="button" class="button" value="Cancel" onclick="location.href='/list/dns/'">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -1,5 +1,33 @@
|
||||||
<table class='data'>
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 0 8px 6px">
|
||||||
|
<div style="float:left">
|
||||||
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/'"> Add DNS Domain </button>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: right; float: right;">
|
||||||
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
|
<button> Search </button>
|
||||||
|
</div>
|
||||||
|
<div style="float:left; padding-left: 26px;">
|
||||||
|
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||||
|
<select style="margin:0 2px 0 0px;" >
|
||||||
|
<option>apply to selected</option>
|
||||||
|
<option>rebuild</option>
|
||||||
|
<option>update counters</option>
|
||||||
|
<option>unsuspend</option>
|
||||||
|
<option>delete</option>
|
||||||
|
</select>
|
||||||
|
<button style="width:27px;"> › </button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects">
|
||||||
|
<table class="data">
|
||||||
<?php
|
<?php
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
++$i;
|
++$i;
|
||||||
|
@ -11,8 +39,26 @@ foreach ($data as $key => $value) {
|
||||||
$spnd_action = 'suspend' ;
|
$spnd_action = 'suspend' ;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||||
|
modal: true,
|
||||||
|
autoOpen: false,
|
||||||
|
width: 360,
|
||||||
|
buttons: {
|
||||||
|
"Ok": function(event, ui) {
|
||||||
|
location.href = '/<?php echo $spnd_action ?>/dns/?domain=<?php echo "$key" ?>';
|
||||||
|
},
|
||||||
|
"Cancel": function() {
|
||||||
|
$(this).dialog("close");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#<?php echo $spnd_action ?>_link_<?php echo "$i" ?>').click(function(){
|
||||||
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
|
return false;
|
||||||
|
});
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
|
@ -39,11 +85,11 @@ foreach ($data as $key => $value) {
|
||||||
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
|
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
|
||||||
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
|
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
|
||||||
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="data-controls" width="96px"><img src="/images/more.png" width="8px" height="8px"><a href="/list/dns/?domain=<?php echo $key ?>"> list records</a></td>
|
<td class="data-controls" width="96px"><img src="/images/more.png" width="8px" height="8px"><a href="/list/dns/?domain=<?php echo $key ?>"> list records</a></td>
|
||||||
<td class="data-controls" width="92px"><img src="/images/add.png" width="8px" height="8px"><a href="/add/dns/?domain=<?php echo $key ?>"> add record</a></td>
|
<td class="data-controls" width="92px"><img src="/images/add.png" width="8px" height="8px"><a href="/add/dns/?domain=<?php echo $key ?>"> add record</a></td>
|
||||||
|
@ -55,43 +101,67 @@ foreach ($data as $key => $value) {
|
||||||
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr></table>
|
</tr>
|
||||||
|
</table>
|
||||||
<table class="data-col2" width="830px">
|
<table class="data-col2" width="830px">
|
||||||
<tr><td colspan=3 class="domain" style="padding: 0 0 0 4px;"><b><?php echo $key ?></b></td></tr>
|
<tr>
|
||||||
|
<td colspan=3 class="domain" style="padding: 0 0 0 4px;">
|
||||||
|
<b><?php echo $key ?></b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align:top;" >
|
<td style="vertical-align:top;" >
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name" style="padding: 2px 0 0 2px;"><?php echo $data[$key]['IP'] ?></td>
|
<tr>
|
||||||
<tr><td class="counter-name" style="padding: 0 0 20px 2px">[<?php echo $data[$key]['TPL'] ?>] template</td></tr>
|
<td class="counter-name" style="padding: 2px 0 0 2px;">
|
||||||
|
<?php echo $data[$key]['IP'] ?>
|
||||||
|
</td>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name" style="padding: 0 0 20px 2px">
|
||||||
|
[<?php echo $data[$key]['TPL'] ?>] template
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align:top;" width="250">
|
<td style="vertical-align:top;" width="250">
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name">SOA:</td><td class="counter-value"><?php echo $data[$key]['SOA'] ?></td></tr>
|
<tr>
|
||||||
<tr><td class="counter-name">TTL:</td><td class="counter-value"><?php echo $data[$key]['TTL'] ?></td></tr>
|
<td class="counter-name">SOA:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['SOA'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">TTL:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['TTL'] ?></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td rowspan=4 style="vertical-align:top;" width="300">
|
<td rowspan=4 style="vertical-align:top;" width="300">
|
||||||
<table>
|
<table>
|
||||||
<tr><td class="counter-name">Expire:</td><td class="counter-value"><?php echo $data[$key]['EXP'] ?></td></tr>
|
<tr>
|
||||||
<tr><td class="counter-name">Records:</td><td class="counter-value"><?php echo $data[$key]['RECORDS'] ?></td></tr>
|
<td class="counter-name">Expire:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['EXP'] ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="counter-name">Records:</td>
|
||||||
|
<td class="counter-value"><?php echo $data[$key]['RECORDS'] ?></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
||||||
<table class="data-count">
|
<table class="data-count">
|
||||||
<tr>
|
<tr>
|
||||||
<td>→
|
<td width="160px"></td>
|
||||||
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ( $i == 1) {
|
if ( $i == 1) {
|
||||||
echo "1 user dns domain ";
|
echo "1 user dns domain ";
|
||||||
|
@ -103,6 +173,7 @@ foreach ($data as $key => $value) {
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:157px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:157px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:25px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:25px\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
|
@ -1,5 +1,35 @@
|
||||||
<table class='data'>
|
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 0 8px 6px">
|
||||||
|
<div style="float:left">
|
||||||
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/?domain=<?php echo $_GET['domain'] ?>'"> Add DNS Record </button>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: right; float: right;">
|
||||||
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
|
<button> Search </button>
|
||||||
|
</div>
|
||||||
|
<div style="float:left; padding-left: 26px;">
|
||||||
|
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||||
|
<select style="margin:0 2px 0 0px;" >
|
||||||
|
<option>apply to selected</option>
|
||||||
|
<option>rebuild</option>
|
||||||
|
<option>update counters</option>
|
||||||
|
<option>suspend</option>
|
||||||
|
<option>unsuspend</option>
|
||||||
|
<option>delete</option>
|
||||||
|
</select>
|
||||||
|
<button style="width:27px;"> › </button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form id="vstobjects">
|
||||||
|
<table class="data">
|
||||||
<?php
|
<?php
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
++$i;
|
++$i;
|
||||||
|
@ -11,9 +41,9 @@ foreach ($data as $key => $value) {
|
||||||
$spnd_action = 'suspend' ;
|
$spnd_action = 'suspend' ;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
|
@ -43,7 +73,8 @@ foreach ($data as $key => $value) {
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<table width="830px"><tr>
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>"> edit</a></td>
|
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>"> edit</a></td>
|
||||||
<td class="data-controls" width="87px">
|
<td class="data-controls" width="87px">
|
||||||
|
@ -53,9 +84,8 @@ foreach ($data as $key => $value) {
|
||||||
<p class="counter-value">Are you sure you want to delete <span style="color: #34536A;"><b><?php echo $data[$key]['RECORD'] ?></b></span> record?</p>
|
<p class="counter-value">Are you sure you want to delete <span style="color: #34536A;"><b><?php echo $data[$key]['RECORD'] ?></b></span> record?</p>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
</tr></table>
|
</table>
|
||||||
|
|
||||||
<table class="data-col5" width="780px">
|
<table class="data-col5" width="780px">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="log" style="padding: 0 0 0 4px;" width="200"><b><?php echo $data[$key]['RECORD'] ?></b></td>
|
<td class="log" style="padding: 0 0 0 4px;" width="200"><b><?php echo $data[$key]['RECORD'] ?></b></td>
|
||||||
|
@ -66,16 +96,17 @@ foreach ($data as $key => $value) {
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
<table class="data-count">
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
||||||
|
<table class="data-count">
|
||||||
<tr>
|
<tr>
|
||||||
<td>→
|
<td width="160px">
|
||||||
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ( $i == 1) {
|
if ( $i == 1) {
|
||||||
echo "1 dns record ";
|
echo "1 dns record ";
|
||||||
|
@ -87,6 +118,7 @@ foreach ($data as $key => $value) {
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:196px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:196px\"><tr><td></td></tr></table>"; ?>
|
||||||
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:103px\"><tr><td></td></tr></table>"; ?>
|
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:103px\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td width="142px" style="padding: 16px 0 16px 6px">
|
|
||||||
<button style="width:120px; padding: 2px 0px 2px 0px;" onclick="location.href='/add/dns/'">Add Domain</button>
|
|
||||||
<td><a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
|
||||||
<select style="margin:0 0 0 0px">
|
|
||||||
<option>apply to selected</option>
|
|
||||||
<option>update counters</option>
|
|
||||||
<option>delete</option>
|
|
||||||
</select> <button> > </button></td>
|
|
||||||
</td>
|
|
||||||
<td style="text-align: right;"><input type="text" size="30" style="padding: 3px 80px 3px 0;"> <button> Search </button></td>
|
|
||||||
</tr><tr>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<form id="vstobjects">
|
|
|
@ -1,15 +0,0 @@
|
||||||
<table class="sub-menu">
|
|
||||||
<tr>
|
|
||||||
<td width="142px" style="padding: 16px 0 16px 6px">
|
|
||||||
<button style="width:120px; padding: 2px 0px 2px 0px;" onclick="location.href='/add/dns/?domain=<?php echo $_GET['domain'] ?>'">Add Record</button>
|
|
||||||
<td><a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
|
||||||
<select style="margin:0 0 0 0px">
|
|
||||||
<option>apply to selected</option>
|
|
||||||
<option>delete</option>
|
|
||||||
</select> <button> > </button></td>
|
|
||||||
</td>
|
|
||||||
<td style="text-align: right;"><input type="text" size="30" style="padding: 3px 80px 3px 0;"> <button> Search </button></td>
|
|
||||||
</tr><tr>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<form id="vstobjects">
|
|
Loading…
Add table
Add a link
Reference in a new issue