mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -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,72 +1,157 @@
|
||||||
<script language="javascript">
|
|
||||||
function elementHideShow(elementToHideOrShow)
|
|
||||||
{
|
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
|
||||||
if (el.style.display == "block") {
|
|
||||||
el.style.display = "none";
|
|
||||||
} else {
|
|
||||||
el.style.display = "block";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
<table class='data'>
|
<form id="vstobjects" name="v_add_dns" method="post">
|
||||||
<tr class="data-add">
|
<script language="javascript">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
function elementHideShow(elementToHideOrShow){
|
||||||
<table class="data-col1">
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
<tr><td style="padding: 18 0 4 18;"></td></tr>
|
if (el.style.display == "block") {
|
||||||
</table>
|
el.style.display = "none";
|
||||||
</td>
|
} else {
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
el.style.display = "block";
|
||||||
<table width="830px"><tr>
|
}
|
||||||
<td></td>
|
|
||||||
</tr></table>
|
|
||||||
<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: 10px 0 0 2px;">Template</td></tr>
|
|
||||||
<tr><td><select class="add-list" name="v_template">
|
|
||||||
<?php
|
|
||||||
foreach ($templates as $key => $value) {
|
|
||||||
echo "\t\t\t\t<option value=\"".$value."\"";
|
|
||||||
if ((!empty($v_template)) && ( $value == $_POST['v_template'])){
|
|
||||||
echo ' selected' ;
|
|
||||||
}
|
|
||||||
if ((empty($v_template)) && ( $value == $template)){
|
|
||||||
echo ' selected' ;
|
|
||||||
}
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
echo ">".$value."</option>\n";
|
<table class="data">
|
||||||
}
|
<tr class="data-add">
|
||||||
?>
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
</select></td></tr>
|
<table class="data-col1">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Domain Expiriation</td></tr>
|
<tr><td style="padding: 18 0 4 18;"></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>
|
</table>
|
||||||
<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>
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Name Servers</td></tr>
|
<table width="830px">
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".$v_ns1; ?>></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".$v_ns2; ?>></tr>
|
<td></td>
|
||||||
<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>
|
</table>
|
||||||
|
<table class="data-col2" width="600px">
|
||||||
|
<tr>
|
||||||
</table>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
</td></tr>
|
Domain
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
</td>
|
||||||
<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/'">
|
<tr>
|
||||||
</td></tr>
|
<td>
|
||||||
</table>
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
<tr>
|
||||||
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
<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;">
|
||||||
|
Template
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select class="add-list" name="v_template">
|
||||||
|
<?php
|
||||||
|
foreach ($templates as $key => $value) {
|
||||||
|
echo "\n\t\t\t\t\t\\t\t\t\t<option value=\"".$value."\"";
|
||||||
|
if ((!empty($v_template)) && ( $value == $_POST['v_template'])){
|
||||||
|
echo ' selected' ;
|
||||||
|
}
|
||||||
|
if ((empty($v_template)) && ( $value == $template)){
|
||||||
|
echo ' selected' ;
|
||||||
|
}
|
||||||
|
echo ">".$value."</option>\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</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;">
|
||||||
|
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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -1,58 +1,109 @@
|
||||||
<script language="javascript">
|
|
||||||
function elementHideShow(elementToHideOrShow)
|
|
||||||
{
|
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
|
||||||
if (el.style.display == "block") {
|
|
||||||
el.style.display = "none";
|
|
||||||
} else {
|
|
||||||
el.style.display = "block";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 12px 2px 16px 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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<table class='data'>
|
<form id="vstobjects" name="v_add_dns_rec" method="post">
|
||||||
<tr class="data-add">
|
<table class='data'>
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
<tr class="data-add">
|
||||||
<table class="data-col1">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
<tr><td style="padding: 18 0 4 18;"></td></tr>
|
<table class="data-col1">
|
||||||
</table>
|
<tr><td style="padding: 18 0 4 18;"></td></tr>
|
||||||
</td>
|
</table>
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
</td>
|
||||||
<table width="830px"><tr>
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<td></td>
|
<table width="830px">
|
||||||
</tr></table>
|
<tr>
|
||||||
<table class="data-col2" width="600px">
|
<td></td>
|
||||||
<form method="post" name="v_add_user">
|
</tr>
|
||||||
<tr><td class="add-text" style="padding: 10 0 0 2px;">Domain</td></tr>
|
</table>
|
||||||
<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>
|
<table class="data-col2" width="600px">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Record</td></tr>
|
<tr>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_rec" <?php if (!empty($v_rec)) echo "value=".$v_rec; ?>></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Type</td></tr>
|
Domain
|
||||||
<tr><td><select class="add-list" name="v_type">
|
</td>
|
||||||
<option value="A" <?php if ($v_type == 'A') echo selected; ?>>A</option>
|
</tr>
|
||||||
<option value="AAAA" <?php if ($v_type == 'AAAA') echo selected; ?>>AAAA</option>
|
<tr>
|
||||||
<option value="NS" <?php if ($v_type == 'NS') echo selected; ?>>NS</option>
|
<td>
|
||||||
<option value="CNAME" <?php if ($v_type == 'CNAME') echo selected; ?>>CNAME</option>
|
<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; ?>>
|
||||||
<option value="MX" <?php if ($v_type == 'MX') echo selected; ?>>MX</option>
|
</td>
|
||||||
<option value="TXT" <?php if ($v_type == 'TXT') echo selected; ?>>TXT</option>
|
</tr>
|
||||||
<option value="SRV" <?php if ($v_type == 'SRV') echo selected; ?>>SRV</option>
|
<tr>
|
||||||
<option value="DNSKEY" <?php if ($v_type == 'DNSKEY') echo selected; ?>>DNSKEY</option>
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<option value="KEY" <?php if ($v_type == 'KEY') echo selected; ?>>KEY</option>
|
Record
|
||||||
<option value="IPSECKEY" <?php if ($v_type == 'IPSECKEY') echo selected; ?>>IPSECKEY</option>
|
</td>
|
||||||
<option value="PTR" <?php if ($v_type == 'PTR') echo selected; ?>>PTR</option>
|
</tr>
|
||||||
<option value="SPF" <?php if ($v_type == 'SPF') echo selected; ?>>SPF</option>
|
<tr>
|
||||||
</select></td></tr>
|
<td>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP or Value</td></tr>
|
<input type="text" size="20" class="add-input" name="v_rec" <?php if (!empty($v_rec)) echo "value=".$v_rec; ?>>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_val" <?php if (!empty($v_val)) echo "value=".$v_val; ?>></tr>
|
</td>
|
||||||
<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>
|
<tr>
|
||||||
|
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
Type
|
||||||
<input type="submit" name="ok_rec" value="OK" class="add-button"></form>
|
</td>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/<?php echo "?domain=".$v_domain; ?>'">
|
</tr>
|
||||||
</td></tr>
|
<tr>
|
||||||
</table>
|
<td>
|
||||||
</td>
|
<select class="add-list" name="v_type">
|
||||||
</tr>
|
<option value="A" <?php if ($v_type == 'A') echo selected; ?>>A</option>
|
||||||
</table>
|
<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="CNAME" <?php if ($v_type == 'CNAME') echo selected; ?>>CNAME</option>
|
||||||
|
<option value="MX" <?php if ($v_type == 'MX') echo selected; ?>>MX</option>
|
||||||
|
<option value="TXT" <?php if ($v_type == 'TXT') echo selected; ?>>TXT</option>
|
||||||
|
<option value="SRV" <?php if ($v_type == 'SRV') echo selected; ?>>SRV</option>
|
||||||
|
<option value="DNSKEY" <?php if ($v_type == 'DNSKEY') echo selected; ?>>DNSKEY</option>
|
||||||
|
<option value="KEY" <?php if ($v_type == 'KEY') echo selected; ?>>KEY</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="SPF" <?php if ($v_type == 'SPF') echo selected; ?>>SPF</option>
|
||||||
|
</select>
|
||||||
|
</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" 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>
|
||||||
|
</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,48 +1,119 @@
|
||||||
<table class='data'>
|
|
||||||
<tr class="data-add">
|
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
|
||||||
<table class="data-col1">
|
|
||||||
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo date("d M Y", strtotime($v_date))?></a></td></tr>
|
|
||||||
<tr><td style="padding: 0 0 6px 4px;"><a class="data-date" ?><?php echo $v_time?></a></td></tr>
|
|
||||||
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
|
||||||
<table width="830px"><tr>
|
|
||||||
<td></td>
|
|
||||||
</tr></table>
|
|
||||||
<form method="post" name="v_edit_user">
|
|
||||||
<table class="data-col2" width="830px">
|
|
||||||
<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; ?> 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
|
|
||||||
foreach ($templates as $key => $value) {
|
|
||||||
echo "\t\t\t\t<option value=\"".$value."\"";
|
|
||||||
$svalue = "'".$value."'";
|
|
||||||
if ((!empty($v_template)) && ( $value == $v_template ) || ($svalue == $v_template)){
|
|
||||||
echo ' selected' ;
|
|
||||||
}
|
|
||||||
echo ">".$value."</option>\n";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select></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; ?>></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; ?>></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 style="padding: 24px 0 0 0;">
|
<table class="sub-menu" style="background: white;">
|
||||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
<tr>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing DNS Domain</b></a>
|
||||||
</td></tr>
|
<?php
|
||||||
</form>
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
</table>
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
</td>
|
} else {
|
||||||
</tr>
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
</table>
|
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'>
|
||||||
|
<tr class="data-add">
|
||||||
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
|
<table class="data-col1">
|
||||||
|
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo date("d M Y", strtotime($v_date))?></a></td></tr>
|
||||||
|
<tr><td style="padding: 0 0 6px 4px;"><a class="data-date" ?><?php echo $v_time?></a></td></tr>
|
||||||
|
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table class="data-col2" width="830px">
|
||||||
|
<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; ?> 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
|
||||||
|
foreach ($templates as $key => $value) {
|
||||||
|
echo "\t\t\t\t<option value=\"".$value."\"";
|
||||||
|
$svalue = "'".$value."'";
|
||||||
|
if ((!empty($v_template)) && ( $value == $v_template ) || ($svalue == $v_template)){
|
||||||
|
echo ' selected' ;
|
||||||
|
}
|
||||||
|
echo ">".$value."</option>\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -1,35 +1,99 @@
|
||||||
<table class='data'>
|
|
||||||
<tr class="data-add">
|
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
|
||||||
<table class="data-col1">
|
|
||||||
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo date("d M Y", strtotime($v_date))?></a></td></tr>
|
|
||||||
<tr><td style="padding: 0 0 6px 4px;"><a class="data-date" ?><?php echo $v_time?></a></td></tr>
|
|
||||||
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
|
||||||
<table width="830px"><tr>
|
|
||||||
<td></td>
|
|
||||||
</tr></table>
|
|
||||||
<form method="post" name="v_edit_user">
|
|
||||||
<table class="data-col2" width="830px">
|
|
||||||
<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 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; ?> disabled> <input type="hidden" name="v_record_id" <?php if (!empty($v_record_id)) echo "value=".$v_record_id; ?> ></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></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."'"; ?>></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; ?>></tr>
|
|
||||||
|
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
<table class="sub-menu" style="background: white;">
|
||||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
<tr>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/<?php echo "?domain=".$_GET['domain']; ?>'">
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing DNS Record</b></a>
|
||||||
</td></tr>
|
<?php
|
||||||
</form>
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
</table>
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
</td>
|
} else {
|
||||||
</tr>
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
</table>
|
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'>
|
||||||
|
<tr class="data-add">
|
||||||
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
|
<table class="data-col1">
|
||||||
|
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo date("d M Y", strtotime($v_date))?></a></td></tr>
|
||||||
|
<tr><td style="padding: 0 0 6px 4px;"><a class="data-date" ?><?php echo $v_time?></a></td></tr>
|
||||||
|
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table class="data-col2" width="830px">
|
||||||
|
<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 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; ?> 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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</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,133 +1,187 @@
|
||||||
<table class='data'>
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
<?php
|
<td style="padding: 12px 0 8px 6px">
|
||||||
foreach ($data as $key => $value) {
|
<div style="float:left">
|
||||||
++$i;
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/'"> Add DNS Domain </button>
|
||||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
</div>
|
||||||
$status = 'suspended';
|
<div style="text-align: right; float: right;">
|
||||||
$spnd_action = 'unsuspend' ;
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
} else {
|
<button> Search </button>
|
||||||
$status = 'active';
|
</div>
|
||||||
$spnd_action = 'suspend' ;
|
<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;" >
|
||||||
<script type="text/javascript">
|
<option>apply to selected</option>
|
||||||
$(function(){
|
<option>rebuild</option>
|
||||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
<option>update counters</option>
|
||||||
modal: true,
|
<option>suspend</option>
|
||||||
autoOpen: false,
|
<option>unsuspend</option>
|
||||||
width: 360,
|
<option>delete</option>
|
||||||
buttons: {
|
</select>
|
||||||
"Ok": function(event, ui) {
|
<button style="width:27px;"> › </button>
|
||||||
location.href = '/<?php echo $spnd_action ?>/dns/?domain=<?php echo "$key" ?>';
|
</div>
|
||||||
},
|
</td>
|
||||||
"Cancel": function() {
|
</tr>
|
||||||
$(this).dialog("close");
|
</table>
|
||||||
}
|
</td>
|
||||||
}
|
</tr>
|
||||||
});
|
|
||||||
$('#<?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({
|
|
||||||
modal: true,
|
|
||||||
autoOpen: false,
|
|
||||||
width: 360,
|
|
||||||
buttons: {
|
|
||||||
"Ok": function(event, ui) {
|
|
||||||
location.href = '/delete/dns/?domain=<?php echo "$key" ?>';
|
|
||||||
},
|
|
||||||
"Cancel": function() {
|
|
||||||
$(this).dialog("close");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#delete_link_<?php echo "$i" ?>').click(function(){
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<tr class="data-row">
|
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
|
||||||
<table class="data-col1">
|
|
||||||
<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 class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
|
||||||
<table width="830px"><tr>
|
|
||||||
<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="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="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/dns/?domain=<?php echo $key ?>"> edit</a></td>
|
|
||||||
<td class="data-controls" width="80px">
|
|
||||||
<img src="/images/suspend.png" width="7px" height="8px">
|
|
||||||
<a href="#" id="<?php echo $spnd_action ?>_link_<?php echo "$i" ?>"> <?php echo $spnd_action ?></a>
|
|
||||||
<div id="<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>" title="Confirmation">
|
|
||||||
<p class="counter-value">Are you sure you want to <?php echo $spnd_action ?> <b><?php echo "$key" ?></b>domain?</p>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td class="data-controls" width="70px">
|
|
||||||
<img src="/images/delete.png" width="7px" height="7px">
|
|
||||||
<a href="#" id="delete_link_<?php echo $i ?>"> delete</a>
|
|
||||||
<div id="delete_dialog_<?php echo $i ?>" title="Confirmation">
|
|
||||||
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr></table>
|
|
||||||
<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 style="vertical-align:top;" >
|
|
||||||
<table>
|
|
||||||
<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 style="vertical-align:top;" width="250">
|
|
||||||
<table>
|
|
||||||
<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>
|
|
||||||
</td>
|
|
||||||
<td rowspan=4 style="vertical-align:top;" width="300">
|
|
||||||
<table>
|
|
||||||
<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>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
<form id="vstobjects">
|
||||||
|
<table class="data">
|
||||||
|
<?php
|
||||||
|
foreach ($data as $key => $value) {
|
||||||
|
++$i;
|
||||||
|
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||||
|
$status = 'suspended';
|
||||||
|
$spnd_action = 'unsuspend' ;
|
||||||
|
} else {
|
||||||
|
$status = 'active';
|
||||||
|
$spnd_action = 'suspend' ;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<?php
|
<script type="text/javascript">
|
||||||
}
|
$(function(){
|
||||||
?>
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||||
</table>
|
modal: true,
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
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({
|
||||||
|
modal: true,
|
||||||
|
autoOpen: false,
|
||||||
|
width: 360,
|
||||||
|
buttons: {
|
||||||
|
"Ok": function(event, ui) {
|
||||||
|
location.href = '/delete/dns/?domain=<?php echo "$key" ?>';
|
||||||
|
},
|
||||||
|
"Cancel": function() {
|
||||||
|
$(this).dialog("close");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#delete_link_<?php echo "$i" ?>').click(function(){
|
||||||
|
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<table class="data-count">
|
<tr class="data-row">
|
||||||
<tr>
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
<td>→
|
<table class="data-col1">
|
||||||
<?php
|
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
|
||||||
if ( $i == 1) {
|
<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>
|
||||||
echo "1 user dns domain ";
|
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
||||||
} else {
|
</table>
|
||||||
echo "$i dns domains ";
|
</td>
|
||||||
}
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
?>
|
<table width="830px">
|
||||||
</td>
|
<tr>
|
||||||
</tr>
|
<td></td>
|
||||||
</table>
|
<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>
|
||||||
</form>
|
<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>
|
||||||
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/dns/?domain=<?php echo $key ?>"> edit</a></td>
|
||||||
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:157px\"><tr><td></td></tr></table>"; ?>
|
<td class="data-controls" width="80px">
|
||||||
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:25px\"><tr><td></td></tr></table>"; ?>
|
<img src="/images/suspend.png" width="7px" height="8px">
|
||||||
|
<a href="#" id="<?php echo $spnd_action ?>_link_<?php echo "$i" ?>"> <?php echo $spnd_action ?></a>
|
||||||
|
<div id="<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>" title="Confirmation">
|
||||||
|
<p class="counter-value">Are you sure you want to <?php echo $spnd_action ?> <b><?php echo "$key" ?></b>domain?</p>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td class="data-controls" width="70px">
|
||||||
|
<img src="/images/delete.png" width="7px" height="7px">
|
||||||
|
<a href="#" id="delete_link_<?php echo $i ?>"> delete</a>
|
||||||
|
<div id="delete_dialog_<?php echo $i ?>" title="Confirmation">
|
||||||
|
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<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 style="vertical-align:top;" >
|
||||||
|
<table>
|
||||||
|
<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>
|
||||||
|
</td>
|
||||||
|
<td style="vertical-align:top;" width="250">
|
||||||
|
<table>
|
||||||
|
<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>
|
||||||
|
</td>
|
||||||
|
<td rowspan=4 style="vertical-align:top;" width="300">
|
||||||
|
<table>
|
||||||
|
<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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
||||||
|
<table class="data-count">
|
||||||
|
<tr>
|
||||||
|
<td width="160px"></td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
if ( $i == 1) {
|
||||||
|
echo "1 user dns domain ";
|
||||||
|
} else {
|
||||||
|
echo "$i dns domains ";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?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 == 2) echo "<table class=\"data-spacer\" style=\"height:25px\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
|
@ -1,117 +1,149 @@
|
||||||
<table class='data'>
|
|
||||||
|
|
||||||
<?php
|
<table class="sub-menu" style="background: white;">
|
||||||
foreach ($data as $key => $value) {
|
<tr>
|
||||||
++$i;
|
<td style="padding: 12px 0 8px 6px">
|
||||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
<div style="float:left">
|
||||||
$status = 'suspended';
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/?domain=<?php echo $_GET['domain'] ?>'"> Add DNS Record </button>
|
||||||
$spnd_action = 'unsuspend' ;
|
</div>
|
||||||
} else {
|
<div style="text-align: right; float: right;">
|
||||||
$status = 'active';
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
$spnd_action = 'suspend' ;
|
<button> Search </button>
|
||||||
}
|
</div>
|
||||||
?>
|
<div style="float:left; padding-left: 26px;">
|
||||||
<script type="text/javascript">
|
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||||
$(function(){
|
<select style="margin:0 2px 0 0px;" >
|
||||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
<option>apply to selected</option>
|
||||||
modal: true,
|
<option>rebuild</option>
|
||||||
autoOpen: false,
|
<option>update counters</option>
|
||||||
width: 360,
|
<option>suspend</option>
|
||||||
buttons: {
|
<option>unsuspend</option>
|
||||||
"Ok": function(event, ui) {
|
<option>delete</option>
|
||||||
location.href = '/<?php echo $spnd_action ?>/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>';
|
</select>
|
||||||
},
|
<button style="width:27px;"> › </button>
|
||||||
"Cancel": function() {
|
</div>
|
||||||
$(this).dialog("close");
|
</td>
|
||||||
}
|
</tr>
|
||||||
}
|
</table>
|
||||||
});
|
</td>
|
||||||
$('#<?php echo $spnd_action ?>_link_<?php echo "$i" ?>').click(function(){
|
</tr>
|
||||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
</table>
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
<form id="vstobjects">
|
||||||
modal: true,
|
<table class="data">
|
||||||
autoOpen: false,
|
<?php
|
||||||
width: 360,
|
foreach ($data as $key => $value) {
|
||||||
buttons: {
|
++$i;
|
||||||
"Ok": function(event, ui) {
|
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||||
location.href = '/delete/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>';
|
$status = 'suspended';
|
||||||
},
|
$spnd_action = 'unsuspend' ;
|
||||||
"Cancel": function() {
|
} else {
|
||||||
$(this).dialog("close");
|
$status = 'active';
|
||||||
}
|
$spnd_action = 'suspend' ;
|
||||||
}
|
}
|
||||||
});
|
?>
|
||||||
$('#delete_link_<?php echo "$i" ?>').click(function(){
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<tr class="data-row">
|
<script type="text/javascript">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
$(function(){
|
||||||
<table class="data-col1">
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||||
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
|
modal: true,
|
||||||
<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>
|
autoOpen: false,
|
||||||
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
width: 360,
|
||||||
</table>
|
buttons: {
|
||||||
</td>
|
"Ok": function(event, ui) {
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
location.href = '/<?php echo $spnd_action ?>/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>';
|
||||||
<table width="830px"><tr>
|
},
|
||||||
<td></td>
|
"Cancel": function() {
|
||||||
<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>
|
$(this).dialog("close");
|
||||||
<td class="data-controls" width="80px">
|
}
|
||||||
<img src="/images/suspend.png" width="7px" height="8px">
|
}
|
||||||
<a href="#" id="<?php echo $spnd_action ?>_link_<?php echo "$i" ?>"> <?php echo $spnd_action ?></a>
|
});
|
||||||
<div id="<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>" title="Confirmation">
|
$('#<?php echo $spnd_action ?>_link_<?php echo "$i" ?>').click(function(){
|
||||||
<p class="counter-value">Are you sure you want to <?php echo $spnd_action ?> <span style="color: #34536A;"><b><?php echo $data[$key]['RECORD'] ?></b></span> record?</p>
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
</div>
|
return false;
|
||||||
</td>
|
});
|
||||||
<td class="data-controls" width="87px">
|
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||||
<img src="/images/delete.png" width="7px" height="7px">
|
modal: true,
|
||||||
<a href="#" id="delete_link_<?php echo "$i" ?>"> delete</a>
|
autoOpen: false,
|
||||||
<div id="delete_dialog_<?php echo "$i" ?>" title="Confirmation">
|
width: 360,
|
||||||
<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>
|
buttons: {
|
||||||
</div>
|
"Ok": function(event, ui) {
|
||||||
</td>
|
location.href = '/delete/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>';
|
||||||
|
},
|
||||||
|
"Cancel": function() {
|
||||||
|
$(this).dialog("close");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#delete_link_<?php echo "$i" ?>').click(function(){
|
||||||
|
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
</tr></table>
|
<tr class="data-row">
|
||||||
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
|
<table class="data-col1">
|
||||||
|
<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 class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
|
<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="80px">
|
||||||
|
<img src="/images/suspend.png" width="7px" height="8px">
|
||||||
|
<a href="#" id="<?php echo $spnd_action ?>_link_<?php echo "$i" ?>"> <?php echo $spnd_action ?></a>
|
||||||
|
<div id="<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>" title="Confirmation">
|
||||||
|
<p class="counter-value">Are you sure you want to <?php echo $spnd_action ?> <span style="color: #34536A;"><b><?php echo $data[$key]['RECORD'] ?></b></span> record?</p>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td class="data-controls" width="87px">
|
||||||
|
<img src="/images/delete.png" width="7px" height="7px">
|
||||||
|
<a href="#" id="delete_link_<?php echo "$i" ?>"> delete</a>
|
||||||
|
<div id="delete_dialog_<?php echo "$i" ?>" title="Confirmation">
|
||||||
|
<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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table class="data-col5" width="780px">
|
||||||
|
<tr>
|
||||||
|
<td class="log" style="padding: 0 0 0 4px;" width="200"><b><?php echo $data[$key]['RECORD'] ?></b></td>
|
||||||
|
<td class="log-counter-value" width="80"><?php echo $data[$key]['TYPE'] ?></td>
|
||||||
|
<td class="log-counter-value" width="80"><?php echo $data[$key]['PRIORITY'] ?></td>
|
||||||
|
<td class="log-counter-value" ><?php echo $data[$key]['VALUE'] ?></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
|
||||||
<table class="data-col5" width="780px">
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
<tr>
|
|
||||||
<td class="log" style="padding: 0 0 0 4px;" width="200"><b><?php echo $data[$key]['RECORD'] ?></b></td>
|
|
||||||
<td class="log-counter-value" width="80"><?php echo $data[$key]['TYPE'] ?></td>
|
|
||||||
<td class="log-counter-value" width="80"><?php echo $data[$key]['PRIORITY'] ?></td>
|
|
||||||
<td class="log-counter-value" ><?php echo $data[$key]['VALUE'] ?></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
<table class="data-count">
|
||||||
|
<tr>
|
||||||
|
<td width="160px">
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
if ( $i == 1) {
|
||||||
|
echo "1 dns record ";
|
||||||
|
} else {
|
||||||
|
echo "$i dns records ";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
<?php
|
<?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 == 2) echo "<table class=\"data-spacer\" style=\"height:103px\"><tr><td></td></tr></table>"; ?>
|
||||||
</table>
|
<?php if ($i == 3) echo "<table class=\"data-spacer\" style=\"height:10px\"><tr><td></td></tr></table>"; ?>
|
||||||
<table class="data-count">
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
|
||||||
<tr>
|
|
||||||
<td>→
|
|
||||||
<?php
|
|
||||||
if ( $i == 1) {
|
|
||||||
echo "1 dns record ";
|
|
||||||
} else {
|
|
||||||
echo "$i dns records ";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<?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 == 2) echo "<table class=\"data-spacer\" style=\"height:103px\"><tr><td></td></tr></table>"; ?>
|
|
||||||
<?php if ($i == 3) echo "<table class=\"data-spacer\" style=\"height:10px\"><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,56 +1,134 @@
|
||||||
<script language="javascript">
|
|
||||||
function elementHideShow(elementToHideOrShow)
|
|
||||||
{
|
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
|
||||||
if (el.style.display == "block") {
|
|
||||||
el.style.display = "none";
|
|
||||||
} else {
|
|
||||||
el.style.display = "block";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
<table class='data'>
|
<form id="vstobjects" name="v_add_dns" method="post">
|
||||||
<tr class="data-add">
|
<script language="javascript">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
function elementHideShow(elementToHideOrShow){
|
||||||
<table class="data-col1">
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
<tr><td style="padding: 18 0 4 18;"></td></tr>
|
if (el.style.display == "block") {
|
||||||
</table>
|
el.style.display = "none";
|
||||||
</td>
|
} else {
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
el.style.display = "block";
|
||||||
<table width="830px"><tr>
|
}
|
||||||
<td></td>
|
}
|
||||||
</tr></table>
|
</script>
|
||||||
<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>
|
<table class="data">
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 0px;">
|
<tr class="data-add">
|
||||||
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
<tr><td class="add-text" style="padding: 0px 0 0 2px;">Domain Expiriation</td></tr>
|
<table class="data-col1">
|
||||||
<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 style="padding: 18 0 4 18;"></td></tr>
|
||||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">TTL</td></tr>
|
</table>
|
||||||
<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><td class="add-text" style="padding: 10px 0 0 2px;">Name Servers</td></tr>
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".$v_ns1; ?>></tr>
|
<table width="830px">
|
||||||
<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>
|
<td></td>
|
||||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns4" <?php if (!empty($v_ns4)) echo "value=".$v_ns4; ?>></tr>
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table class="data-col2" width="600px">
|
||||||
</table>
|
<tr>
|
||||||
</td></tr>
|
<td class="add-text" style="padding: 10 0 0 2px;">
|
||||||
<tr><td style="padding: 24px 0 0 0;">
|
Domain
|
||||||
<input type="submit" name="ok" value="OK" class="add-button"></form>
|
</td>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
</tr>
|
||||||
</td></tr>
|
<tr>
|
||||||
</table>
|
<td>
|
||||||
</td>
|
<input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?>>
|
||||||
</tr>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
<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>
|
||||||
|
</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,35 +1,98 @@
|
||||||
<table class='data'>
|
|
||||||
<tr class="data-add">
|
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
|
||||||
<table class="data-col1">
|
|
||||||
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo date("d M Y", strtotime($v_date))?></a></td></tr>
|
|
||||||
<tr><td style="padding: 0 0 6px 4px;"><a class="data-date" ?><?php echo $v_time?></a></td></tr>
|
|
||||||
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
|
||||||
<table width="830px"><tr>
|
|
||||||
<td></td>
|
|
||||||
</tr></table>
|
|
||||||
<form method="post" name="v_edit_user">
|
|
||||||
<table class="data-col2" width="830px">
|
|
||||||
<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; ?> 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;">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;">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; ?>></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 style="padding: 24px 0 0 0;">
|
<table class="sub-menu" style="background: white;">
|
||||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
<tr>
|
||||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing DNS Domain</b></a>
|
||||||
</td></tr>
|
<?php
|
||||||
</form>
|
if (!empty($_SESSION['error_msg'])) {
|
||||||
</table>
|
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||||
</td>
|
} else {
|
||||||
</tr>
|
if (!empty($_SESSION['ok_msg'])) {
|
||||||
</table>
|
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'>
|
||||||
|
<tr class="data-add">
|
||||||
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
|
<table class="data-col1">
|
||||||
|
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo date("d M Y", strtotime($v_date))?></a></td></tr>
|
||||||
|
<tr><td style="padding: 0 0 6px 4px;"><a class="data-date" ?><?php echo $v_time?></a></td></tr>
|
||||||
|
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table class="data-col2" width="830px">
|
||||||
|
<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; ?> 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;">
|
||||||
|
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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
|
@ -1,108 +1,179 @@
|
||||||
<table class='data'>
|
<table class="sub-menu" style="background: white;">
|
||||||
|
<tr>
|
||||||
<?php
|
<td style="padding: 12px 0 8px 6px">
|
||||||
foreach ($data as $key => $value) {
|
<div style="float:left">
|
||||||
++$i;
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/'"> Add DNS Domain </button>
|
||||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
</div>
|
||||||
$status = 'suspended';
|
<div style="text-align: right; float: right;">
|
||||||
$spnd_action = 'unsuspend' ;
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
} else {
|
<button> Search </button>
|
||||||
$status = 'active';
|
</div>
|
||||||
$spnd_action = 'suspend' ;
|
<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;" >
|
||||||
<script type="text/javascript">
|
<option>apply to selected</option>
|
||||||
$(function(){
|
<option>rebuild</option>
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
<option>update counters</option>
|
||||||
modal: true,
|
<option>unsuspend</option>
|
||||||
autoOpen: false,
|
<option>delete</option>
|
||||||
width: 360,
|
</select>
|
||||||
buttons: {
|
<button style="width:27px;"> › </button>
|
||||||
"Ok": function(event, ui) {
|
</div>
|
||||||
location.href = '/delete/dns/?domain=<?php echo "$key" ?>';
|
</td>
|
||||||
},
|
</tr>
|
||||||
"Cancel": function() {
|
</table>
|
||||||
$(this).dialog("close");
|
</td>
|
||||||
}
|
</tr>
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#delete_link_<?php echo "$i" ?>').click(function(){
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<tr class="data-row">
|
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
|
||||||
<table class="data-col1">
|
|
||||||
<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 class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
|
||||||
<table width="830px"><tr>
|
|
||||||
<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="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="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/dns/?domain=<?php echo $key ?>"> edit</a></td>
|
|
||||||
<td class="data-controls" width="70px">
|
|
||||||
<img src="/images/delete.png" width="7px" height="7px">
|
|
||||||
<a href="#" id="delete_link_<?php echo $i ?>"> delete</a>
|
|
||||||
<div id="delete_dialog_<?php echo $i ?>" title="Confirmation">
|
|
||||||
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr></table>
|
|
||||||
<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 style="vertical-align:top;" >
|
|
||||||
<table>
|
|
||||||
<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 style="vertical-align:top;" width="250">
|
|
||||||
<table>
|
|
||||||
<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>
|
|
||||||
</td>
|
|
||||||
<td rowspan=4 style="vertical-align:top;" width="300">
|
|
||||||
<table>
|
|
||||||
<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>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
<form id="vstobjects">
|
||||||
|
<table class="data">
|
||||||
|
<?php
|
||||||
|
foreach ($data as $key => $value) {
|
||||||
|
++$i;
|
||||||
|
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||||
|
$status = 'suspended';
|
||||||
|
$spnd_action = 'unsuspend' ;
|
||||||
|
} else {
|
||||||
|
$status = 'active';
|
||||||
|
$spnd_action = 'suspend' ;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<?php
|
<script type="text/javascript">
|
||||||
}
|
$(function(){
|
||||||
?>
|
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||||
</table>
|
modal: true,
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
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({
|
||||||
|
modal: true,
|
||||||
|
autoOpen: false,
|
||||||
|
width: 360,
|
||||||
|
buttons: {
|
||||||
|
"Ok": function(event, ui) {
|
||||||
|
location.href = '/delete/dns/?domain=<?php echo "$key" ?>';
|
||||||
|
},
|
||||||
|
"Cancel": function() {
|
||||||
|
$(this).dialog("close");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#delete_link_<?php echo "$i" ?>').click(function(){
|
||||||
|
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<table class="data-count">
|
<tr class="data-row">
|
||||||
<tr>
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
<td>→
|
<table class="data-col1">
|
||||||
<?php
|
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
|
||||||
if ( $i == 1) {
|
<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>
|
||||||
echo "1 user dns domain ";
|
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
||||||
} else {
|
</table>
|
||||||
echo "$i dns domains ";
|
</td>
|
||||||
}
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
?>
|
<table width="830px">
|
||||||
</td>
|
<tr>
|
||||||
</tr>
|
<td></td>
|
||||||
</table>
|
<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>
|
||||||
</form>
|
<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>
|
||||||
<?php if ($i == 0) echo "<table class=\"data-spacer\" style=\"height:279px\"><tr><td></td></tr></table>"; ?>
|
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/dns/?domain=<?php echo $key ?>"> edit</a></td>
|
||||||
<?php if ($i == 1) echo "<table class=\"data-spacer\" style=\"height:157px\"><tr><td></td></tr></table>"; ?>
|
<td class="data-controls" width="70px">
|
||||||
<?php if ($i == 2) echo "<table class=\"data-spacer\" style=\"height:25px\"><tr><td></td></tr></table>"; ?>
|
<img src="/images/delete.png" width="7px" height="7px">
|
||||||
|
<a href="#" id="delete_link_<?php echo $i ?>"> delete</a>
|
||||||
|
<div id="delete_dialog_<?php echo $i ?>" title="Confirmation">
|
||||||
|
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<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 style="vertical-align:top;" >
|
||||||
|
<table>
|
||||||
|
<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>
|
||||||
|
</td>
|
||||||
|
<td style="vertical-align:top;" width="250">
|
||||||
|
<table>
|
||||||
|
<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>
|
||||||
|
</td>
|
||||||
|
<td rowspan=4 style="vertical-align:top;" width="300">
|
||||||
|
<table>
|
||||||
|
<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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
||||||
|
<table class="data-count">
|
||||||
|
<tr>
|
||||||
|
<td width="160px"></td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
if ( $i == 1) {
|
||||||
|
echo "1 user dns domain ";
|
||||||
|
} else {
|
||||||
|
echo "$i dns domains ";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?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 == 2) echo "<table class=\"data-spacer\" style=\"height:25px\"><tr><td></td></tr></table>"; ?>
|
||||||
|
|
|
@ -1,93 +1,125 @@
|
||||||
<table class='data'>
|
|
||||||
|
|
||||||
<?php
|
<table class="sub-menu" style="background: white;">
|
||||||
foreach ($data as $key => $value) {
|
<tr>
|
||||||
++$i;
|
<td style="padding: 12px 0 8px 6px">
|
||||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
<div style="float:left">
|
||||||
$status = 'suspended';
|
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/?domain=<?php echo $_GET['domain'] ?>'"> Add DNS Record </button>
|
||||||
$spnd_action = 'unsuspend' ;
|
</div>
|
||||||
} else {
|
<div style="text-align: right; float: right;">
|
||||||
$status = 'active';
|
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||||
$spnd_action = 'suspend' ;
|
<button> Search </button>
|
||||||
}
|
</div>
|
||||||
?>
|
<div style="float:left; padding-left: 26px;">
|
||||||
<script type="text/javascript">
|
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||||
$(function(){
|
<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>
|
||||||
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
<form id="vstobjects">
|
||||||
modal: true,
|
<table class="data">
|
||||||
autoOpen: false,
|
<?php
|
||||||
width: 360,
|
foreach ($data as $key => $value) {
|
||||||
buttons: {
|
++$i;
|
||||||
"Ok": function(event, ui) {
|
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||||
location.href = '/delete/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>';
|
$status = 'suspended';
|
||||||
},
|
$spnd_action = 'unsuspend' ;
|
||||||
"Cancel": function() {
|
} else {
|
||||||
$(this).dialog("close");
|
$status = 'active';
|
||||||
}
|
$spnd_action = 'suspend' ;
|
||||||
}
|
}
|
||||||
});
|
?>
|
||||||
$('#delete_link_<?php echo "$i" ?>').click(function(){
|
|
||||||
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<tr class="data-row">
|
<script type="text/javascript">
|
||||||
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
$(function(){
|
||||||
<table class="data-col1">
|
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||||
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
|
modal: true,
|
||||||
<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>
|
autoOpen: false,
|
||||||
<tr><td class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
width: 360,
|
||||||
</table>
|
buttons: {
|
||||||
</td>
|
"Ok": function(event, ui) {
|
||||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
location.href = '/delete/dns/?domain=<?php echo $_GET['domain'] ?>&record_id=<?php echo $data[$key]['ID'] ?>';
|
||||||
<table width="830px"><tr>
|
},
|
||||||
<td></td>
|
"Cancel": function() {
|
||||||
<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>
|
$(this).dialog("close");
|
||||||
<td class="data-controls" width="87px">
|
}
|
||||||
<img src="/images/delete.png" width="7px" height="7px">
|
}
|
||||||
<a href="#" id="delete_link_<?php echo "$i" ?>"> delete</a>
|
});
|
||||||
<div id="delete_dialog_<?php echo "$i" ?>" title="Confirmation">
|
$('#delete_link_<?php echo "$i" ?>').click(function(){
|
||||||
<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>
|
$('#delete_dialog_<?php echo "$i" ?>').dialog('open');
|
||||||
</div>
|
return false;
|
||||||
</td>
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
</tr></table>
|
<tr class="data-row">
|
||||||
|
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
|
||||||
|
<table class="data-col1">
|
||||||
|
<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 class="data-<?php echo $status ?>"><b><?php echo $status ?></b></td></tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||||
|
<table width="830px">
|
||||||
|
<tr>
|
||||||
|
<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="87px">
|
||||||
|
<img src="/images/delete.png" width="7px" height="7px">
|
||||||
|
<a href="#" id="delete_link_<?php echo "$i" ?>"> delete</a>
|
||||||
|
<div id="delete_dialog_<?php echo "$i" ?>" title="Confirmation">
|
||||||
|
<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>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table class="data-col5" width="780px">
|
||||||
|
<tr>
|
||||||
|
<td class="log" style="padding: 0 0 0 4px;" width="200"><b><?php echo $data[$key]['RECORD'] ?></b></td>
|
||||||
|
<td class="log-counter-value" width="80"><?php echo $data[$key]['TYPE'] ?></td>
|
||||||
|
<td class="log-counter-value" width="80"><?php echo $data[$key]['PRIORITY'] ?></td>
|
||||||
|
<td class="log-counter-value" ><?php echo $data[$key]['VALUE'] ?></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
|
||||||
<table class="data-col5" width="780px">
|
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||||
<tr>
|
|
||||||
<td class="log" style="padding: 0 0 0 4px;" width="200"><b><?php echo $data[$key]['RECORD'] ?></b></td>
|
|
||||||
<td class="log-counter-value" width="80"><?php echo $data[$key]['TYPE'] ?></td>
|
|
||||||
<td class="log-counter-value" width="80"><?php echo $data[$key]['PRIORITY'] ?></td>
|
|
||||||
<td class="log-counter-value" ><?php echo $data[$key]['VALUE'] ?></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
<table class="data-count">
|
||||||
|
<tr>
|
||||||
|
<td width="160px">
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
if ( $i == 1) {
|
||||||
|
echo "1 dns record ";
|
||||||
|
} else {
|
||||||
|
echo "$i dns records ";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
<?php
|
<?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 == 2) echo "<table class=\"data-spacer\" style=\"height:103px\"><tr><td></td></tr></table>"; ?>
|
||||||
</table>
|
<?php if ($i == 3) echo "<table class=\"data-spacer\" style=\"height:10px\"><tr><td></td></tr></table>"; ?>
|
||||||
<table class="data-count">
|
|
||||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
|
||||||
<tr>
|
|
||||||
<td>→
|
|
||||||
<?php
|
|
||||||
if ( $i == 1) {
|
|
||||||
echo "1 dns record ";
|
|
||||||
} else {
|
|
||||||
echo "$i dns records ";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<?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 == 2) echo "<table class=\"data-spacer\" style=\"height:103px\"><tr><td></td></tr></table>"; ?>
|
|
||||||
<?php if ($i == 3) echo "<table class=\"data-spacer\" style=\"height:10px\"><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