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
|
||||
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
|
||||
|
||||
# Decreasing domain value
|
||||
|
|
|
@ -150,23 +150,17 @@ top_panel($user,$TAB);
|
|||
$v_ns4 = $nameservers[3];
|
||||
unset($output);
|
||||
}
|
||||
|
||||
if (empty($v_ttl)) $v_ttl = 14400;
|
||||
if (empty($v_exp)) $v_exp = date('Y-m-d', strtotime('+1 year'));
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_dns.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_dns.html');
|
||||
} else {
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_dns.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/add_dns.html');
|
||||
}
|
||||
unset($_SESSION['error_msg']);
|
||||
unset($_SESSION['ok_msg']);
|
||||
} else {
|
||||
$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');
|
||||
unset($_SESSION['error_msg']);
|
||||
unset($_SESSION['ok_msg']);
|
||||
|
|
|
@ -140,10 +140,8 @@ top_panel($user,$TAB);
|
|||
|
||||
}
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_dns.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_dns.html');
|
||||
} else {
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_dns.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/edit_dns.html');
|
||||
}
|
||||
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');
|
||||
unset($_SESSION['error_msg']);
|
||||
unset($_SESSION['ok_msg']);
|
||||
|
|
|
@ -20,8 +20,6 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
unset($output);
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_dns.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns.html');
|
||||
} else {
|
||||
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 = array_reverse($data);
|
||||
unset($output);
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_dns_rec.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns_rec.html');
|
||||
}
|
||||
} else {
|
||||
|
||||
if (empty($_GET['domain'])){
|
||||
exec (VESTA_CMD."v_list_dns_domains $user json", $output, $return_var);
|
||||
check_error($return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
unset($output);
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_dns.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_dns.html');
|
||||
} else {
|
||||
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 = array_reverse($data);
|
||||
unset($output);
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_dns_rec.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_dns_rec.html');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,26 @@
|
|||
<script language="javascript">
|
||||
function elementHideShow(elementToHideOrShow)
|
||||
{
|
||||
|
||||
<table class="sub-menu" style="background: white;">
|
||||
<tr>
|
||||
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Adding DNS Domain</b></a>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<form id="vstobjects" name="v_add_dns" method="post">
|
||||
<script language="javascript">
|
||||
function elementHideShow(elementToHideOrShow){
|
||||
var el = document.getElementById(elementToHideOrShow);
|
||||
if (el.style.display == "block") {
|
||||
el.style.display = "none";
|
||||
|
@ -8,65 +28,130 @@
|
|||
el.style.display = "block";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
|
||||
<table class='data'>
|
||||
<tr class="data-add">
|
||||
<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: 18 0 4 18;"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||
<table width="830px"><tr>
|
||||
<table width="830px">
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr></table>
|
||||
</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;">
|
||||
<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; ?>>
|
||||
</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">
|
||||
<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."\"";
|
||||
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; ?>></tr>
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">TTL</td></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>></tr>
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Name Servers</td></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".$v_ns1; ?>></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".$v_ns2; ?>></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns3" <?php if (!empty($v_ns3)) echo "value=".$v_ns3; ?>></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns4" <?php if (!empty($v_ns4)) echo "value=".$v_ns4; ?>></tr>
|
||||
|
||||
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td style="padding: 24px 0 0 0;">
|
||||
<input type="submit" name="ok" value="OK" class="add-button"></form>
|
||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
||||
</td></tr>
|
||||
</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>
|
||||
</table>
|
||||
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
||||
</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,35 +1,66 @@
|
|||
<script language="javascript">
|
||||
function elementHideShow(elementToHideOrShow)
|
||||
{
|
||||
var el = document.getElementById(elementToHideOrShow);
|
||||
if (el.style.display == "block") {
|
||||
el.style.display = "none";
|
||||
|
||||
<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 {
|
||||
el.style.display = "block";
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class='data'>
|
||||
<tr class="data-add">
|
||||
<form id="vstobjects" name="v_add_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: 18 0 4 18;"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||
<table width="830px"><tr>
|
||||
<table width="830px">
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr></table>
|
||||
</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 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; ?>></tr>
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Type</td></tr>
|
||||
<tr><td><select class="add-list" name="v_type">
|
||||
<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; ?>>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="add-text" style="padding: 10px 0 0 2px;">
|
||||
Type
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select class="add-list" name="v_type">
|
||||
<option value="A" <?php if ($v_type == 'A') echo selected; ?>>A</option>
|
||||
<option value="AAAA" <?php if ($v_type == 'AAAA') echo selected; ?>>AAAA</option>
|
||||
<option value="NS" <?php if ($v_type == 'NS') echo selected; ?>>NS</option>
|
||||
|
@ -42,17 +73,37 @@
|
|||
<option value="IPSECKEY" <?php if ($v_type == 'IPSECKEY') echo selected; ?>>IPSECKEY</option>
|
||||
<option value="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; ?>></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;">
|
||||
<input type="submit" name="ok_rec" value="OK" class="add-button"></form>
|
||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/<?php echo "?domain=".$v_domain; ?>'">
|
||||
</td></tr>
|
||||
</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>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -1,5 +1,26 @@
|
|||
<table class='data'>
|
||||
<tr class="data-add">
|
||||
|
||||
<table class="sub-menu" style="background: white;">
|
||||
<tr>
|
||||
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing DNS Domain</b></a>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<form id="vstobjects" name="v_edit_dns" method="post">
|
||||
<table class='data'>
|
||||
<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>
|
||||
|
@ -8,17 +29,40 @@
|
|||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||
<table width="830px"><tr>
|
||||
<table width="830px">
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr></table>
|
||||
<form method="post" name="v_edit_user">
|
||||
</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">
|
||||
<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."\"";
|
||||
|
@ -29,20 +73,47 @@
|
|||
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;">
|
||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
||||
</td></tr>
|
||||
</form>
|
||||
</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>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
@ -1,5 +1,26 @@
|
|||
<table class='data'>
|
||||
<tr class="data-add">
|
||||
|
||||
<table class="sub-menu" style="background: white;">
|
||||
<tr>
|
||||
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing DNS Record</b></a>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<form id="vstobjects" name="v_edit_dns_rec" method="post">
|
||||
<table class='data'>
|
||||
<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>
|
||||
|
@ -8,28 +29,71 @@
|
|||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||
<table width="830px"><tr>
|
||||
<table width="830px">
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr></table>
|
||||
<form method="post" name="v_edit_user">
|
||||
</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; ?> ></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;">
|
||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/<?php echo "?domain=".$_GET['domain']; ?>'">
|
||||
</td></tr>
|
||||
</form>
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<form id="vstobjects" name="v_edit_user" method="post">
|
||||
<form id="vstobjects" name="v_edit_web" method="post">
|
||||
<script language="javascript">
|
||||
function elementHideShow(elementToHideOrShow){
|
||||
var el = document.getElementById(elementToHideOrShow);
|
||||
|
|
|
@ -1,7 +1,36 @@
|
|||
<table class='data'>
|
||||
<table class="sub-menu" style="background: white;">
|
||||
<tr>
|
||||
<td style="padding: 12px 0 8px 6px">
|
||||
<div style="float:left">
|
||||
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/'"> Add DNS Domain </button>
|
||||
</div>
|
||||
<div style="text-align: right; float: right;">
|
||||
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||
<button> Search </button>
|
||||
</div>
|
||||
<div style="float:left; padding-left: 26px;">
|
||||
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||
<select style="margin:0 2px 0 0px;" >
|
||||
<option>apply to selected</option>
|
||||
<option>rebuild</option>
|
||||
<option>update counters</option>
|
||||
<option>suspend</option>
|
||||
<option>unsuspend</option>
|
||||
<option>delete</option>
|
||||
</select>
|
||||
<button style="width:27px;"> › </button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
<form id="vstobjects">
|
||||
<table class="data">
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
++$i;
|
||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||
$status = 'suspended';
|
||||
|
@ -11,7 +40,8 @@ foreach ($data as $key => $value) {
|
|||
$spnd_action = 'suspend' ;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||
modal: true,
|
||||
|
@ -30,7 +60,6 @@ foreach ($data as $key => $value) {
|
|||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
|
@ -49,19 +78,19 @@ foreach ($data as $key => $value) {
|
|||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<tr class="data-row">
|
||||
<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>
|
||||
<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>
|
||||
|
@ -80,43 +109,67 @@ foreach ($data as $key => $value) {
|
|||
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr></table>
|
||||
</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 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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<table class="data-count">
|
||||
<tr>
|
||||
<td>→
|
||||
<?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 ";
|
||||
|
@ -125,9 +178,10 @@ foreach ($data as $key => $value) {
|
|||
}
|
||||
?>
|
||||
</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>"; ?>
|
||||
</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,7 +1,37 @@
|
|||
<table class='data'>
|
||||
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
<table class="sub-menu" style="background: white;">
|
||||
<tr>
|
||||
<td style="padding: 12px 0 8px 6px">
|
||||
<div style="float:left">
|
||||
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/?domain=<?php echo $_GET['domain'] ?>'"> Add DNS Record </button>
|
||||
</div>
|
||||
<div style="text-align: right; float: right;">
|
||||
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||
<button> Search </button>
|
||||
</div>
|
||||
<div style="float:left; padding-left: 26px;">
|
||||
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||
<select style="margin:0 2px 0 0px;" >
|
||||
<option>apply to selected</option>
|
||||
<option>rebuild</option>
|
||||
<option>update counters</option>
|
||||
<option>suspend</option>
|
||||
<option>unsuspend</option>
|
||||
<option>delete</option>
|
||||
</select>
|
||||
<button style="width:27px;"> › </button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<form id="vstobjects">
|
||||
<table class="data">
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
++$i;
|
||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||
$status = 'suspended';
|
||||
|
@ -11,7 +41,8 @@ foreach ($data as $key => $value) {
|
|||
$spnd_action = 'suspend' ;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||
modal: true,
|
||||
|
@ -30,7 +61,6 @@ foreach ($data as $key => $value) {
|
|||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
|
@ -49,9 +79,9 @@ foreach ($data as $key => $value) {
|
|||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<tr class="data-row">
|
||||
<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>
|
||||
|
@ -60,7 +90,8 @@ foreach ($data as $key => $value) {
|
|||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||
<table width="830px"><tr>
|
||||
<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">
|
||||
|
@ -77,9 +108,8 @@ foreach ($data as $key => $value) {
|
|||
<p class="counter-value">Are you sure you want to delete <span style="color: #34536A;"><b><?php echo $data[$key]['RECORD'] ?></b></span> record?</p>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr></table>
|
||||
|
||||
</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>
|
||||
|
@ -89,17 +119,18 @@ foreach ($data as $key => $value) {
|
|||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<table class="data-count">
|
||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||
<tr>
|
||||
<td>→
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||
|
||||
<table class="data-count">
|
||||
<tr>
|
||||
<td width="160px">
|
||||
<td>
|
||||
<?php
|
||||
if ( $i == 1) {
|
||||
echo "1 dns record ";
|
||||
|
@ -108,10 +139,11 @@ foreach ($data as $key => $value) {
|
|||
}
|
||||
?>
|
||||
</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>"; ?>
|
||||
</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 {
|
||||
background: #ebe9dc;
|
||||
color: #777;
|
||||
color: #555;
|
||||
margin: 30 0 0 0;
|
||||
padding: 4 20 8 0;
|
||||
margin-left: auto;
|
||||
|
@ -76,17 +76,17 @@
|
|||
.bottom a:link {
|
||||
font-size: 8pt;
|
||||
text-decoration: none;
|
||||
color: #777;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.bottom a:visited {
|
||||
text-decoration: none;
|
||||
color: #777;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.bottom a:hover {
|
||||
text-decoration: underline;
|
||||
color: #333;
|
||||
color: #7fa1cb;
|
||||
}
|
||||
|
||||
.nav {
|
||||
|
@ -568,7 +568,7 @@
|
|||
}
|
||||
|
||||
.genpass {
|
||||
color: #34536A;
|
||||
color: #34536a;
|
||||
font-size: 8pt;
|
||||
font-family: Arial, sans-serif;
|
||||
padding: 0 5px 0 8px;
|
||||
|
@ -577,20 +577,23 @@
|
|||
}
|
||||
|
||||
.genpass:hover {
|
||||
color: #9ba68c;
|
||||
color: #7fa1cb;
|
||||
}
|
||||
|
||||
.add-advanced {
|
||||
color: #34536A;
|
||||
color: #34536a;
|
||||
font-size: 10pt;
|
||||
font-family: Arial, sans-serif;
|
||||
letter-spacing: 0.1em;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid #f79b44;
|
||||
}
|
||||
|
||||
.add-advanced:hover {
|
||||
color: #9ba68c;
|
||||
color: #7fa1cb;
|
||||
}
|
||||
|
||||
|
||||
/* fixed header */
|
||||
.fixed{
|
||||
position: fixed;
|
||||
|
|
|
@ -1,6 +1,26 @@
|
|||
<script language="javascript">
|
||||
function elementHideShow(elementToHideOrShow)
|
||||
{
|
||||
|
||||
<table class="sub-menu" style="background: white;">
|
||||
<tr>
|
||||
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Adding DNS Domain</b></a>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<form id="vstobjects" name="v_add_dns" method="post">
|
||||
<script language="javascript">
|
||||
function elementHideShow(elementToHideOrShow){
|
||||
var el = document.getElementById(elementToHideOrShow);
|
||||
if (el.style.display == "block") {
|
||||
el.style.display = "none";
|
||||
|
@ -8,49 +28,107 @@
|
|||
el.style.display = "block";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
|
||||
<table class='data'>
|
||||
<tr class="data-add">
|
||||
<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: 18 0 4 18;"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||
<table width="830px"><tr>
|
||||
<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: 0px 0 0 2px;">Domain Expiriation</td></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>></tr>
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">TTL</td></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".$v_ttl; ?>></tr>
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Name Servers</td></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".$v_ns1; ?>></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".$v_ns2; ?>></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns3" <?php if (!empty($v_ns3)) echo "value=".$v_ns3; ?>></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ns4" <?php if (!empty($v_ns4)) echo "value=".$v_ns4; ?>></tr>
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td style="padding: 24px 0 0 0;">
|
||||
<input type="submit" name="ok" value="OK" class="add-button"></form>
|
||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
||||
</td></tr>
|
||||
<table class="data-col2" width="600px">
|
||||
<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; ?>>
|
||||
</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>
|
||||
</table>
|
||||
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
||||
</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>
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -1,5 +1,26 @@
|
|||
<table class='data'>
|
||||
<tr class="data-add">
|
||||
|
||||
<table class="sub-menu" style="background: white;">
|
||||
<tr>
|
||||
<td style="padding: 12px 2px 16px 0;" ><a class="add-name"><b>Editing DNS Domain</b></a>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<a class=\"add-error\"> → ".$_SESSION['error_msg']."</a>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<a class=\"add-ok\"> → ".$_SESSION['ok_msg']."</a>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<form id="vstobjects" name="v_edit_dns" method="post">
|
||||
<table class='data'>
|
||||
<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>
|
||||
|
@ -8,28 +29,70 @@
|
|||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||
<table width="830px"><tr>
|
||||
<table width="830px">
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr></table>
|
||||
<form method="post" name="v_edit_user">
|
||||
</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; ?>></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;">
|
||||
<input type="submit" class="add-button" name="save" value="Save"></form>
|
||||
<input type="button" class="add-button" value="Cancel" onClick="location.href='/list/dns/'">
|
||||
</td></tr>
|
||||
</form>
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
@ -1,7 +1,35 @@
|
|||
<table class='data'>
|
||||
<table class="sub-menu" style="background: white;">
|
||||
<tr>
|
||||
<td style="padding: 12px 0 8px 6px">
|
||||
<div style="float:left">
|
||||
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/'"> Add DNS Domain </button>
|
||||
</div>
|
||||
<div style="text-align: right; float: right;">
|
||||
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||
<button> Search </button>
|
||||
</div>
|
||||
<div style="float:left; padding-left: 26px;">
|
||||
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||
<select style="margin:0 2px 0 0px;" >
|
||||
<option>apply to selected</option>
|
||||
<option>rebuild</option>
|
||||
<option>update counters</option>
|
||||
<option>unsuspend</option>
|
||||
<option>delete</option>
|
||||
</select>
|
||||
<button style="width:27px;"> › </button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
<form id="vstobjects">
|
||||
<table class="data">
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
++$i;
|
||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||
$status = 'suspended';
|
||||
|
@ -11,8 +39,26 @@ foreach ($data as $key => $value) {
|
|||
$spnd_action = 'suspend' ;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog({
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
width: 360,
|
||||
buttons: {
|
||||
"Ok": function(event, ui) {
|
||||
location.href = '/<?php echo $spnd_action ?>/dns/?domain=<?php echo "$key" ?>';
|
||||
},
|
||||
"Cancel": function() {
|
||||
$(this).dialog("close");
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#<?php echo $spnd_action ?>_link_<?php echo "$i" ?>').click(function(){
|
||||
$('#<?php echo $spnd_action ?>_dialog_<?php echo "$i" ?>').dialog('open');
|
||||
return false;
|
||||
});
|
||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
|
@ -31,19 +77,19 @@ foreach ($data as $key => $value) {
|
|||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<tr class="data-row">
|
||||
<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>
|
||||
<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>
|
||||
|
@ -55,43 +101,67 @@ foreach ($data as $key => $value) {
|
|||
<p class="counter-value">Are you sure you want to delete <b><?php echo "$key" ?></b> domain?</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr></table>
|
||||
</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 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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<table class="data-count">
|
||||
<tr>
|
||||
<td>→
|
||||
<?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 ";
|
||||
|
@ -100,9 +170,10 @@ foreach ($data as $key => $value) {
|
|||
}
|
||||
?>
|
||||
</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>"; ?>
|
||||
</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,7 +1,37 @@
|
|||
<table class='data'>
|
||||
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
<table class="sub-menu" style="background: white;">
|
||||
<tr>
|
||||
<td style="padding: 12px 0 8px 6px">
|
||||
<div style="float:left">
|
||||
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/dns/?domain=<?php echo $_GET['domain'] ?>'"> Add DNS Record </button>
|
||||
</div>
|
||||
<div style="text-align: right; float: right;">
|
||||
<input type="text" size="30" style="padding: 3px 80px 3px 0; margin: 0 2px 0 0;">
|
||||
<button> Search </button>
|
||||
</div>
|
||||
<div style="float:left; padding-left: 26px;">
|
||||
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("vstobjects");'> toggle all </a>
|
||||
<select style="margin:0 2px 0 0px;" >
|
||||
<option>apply to selected</option>
|
||||
<option>rebuild</option>
|
||||
<option>update counters</option>
|
||||
<option>suspend</option>
|
||||
<option>unsuspend</option>
|
||||
<option>delete</option>
|
||||
</select>
|
||||
<button style="width:27px;"> › </button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<form id="vstobjects">
|
||||
<table class="data">
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
++$i;
|
||||
if ($data[$key]['SUSPENDED'] == 'yes') {
|
||||
$status = 'suspended';
|
||||
|
@ -11,9 +41,9 @@ foreach ($data as $key => $value) {
|
|||
$spnd_action = 'suspend' ;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('#delete_dialog_<?php echo "$i" ?>').dialog({
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
|
@ -32,9 +62,9 @@ foreach ($data as $key => $value) {
|
|||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<tr class="data-row">
|
||||
<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>
|
||||
|
@ -43,7 +73,8 @@ foreach ($data as $key => $value) {
|
|||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px" style="vertical-align:top;">
|
||||
<table width="830px"><tr>
|
||||
<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">
|
||||
|
@ -53,9 +84,8 @@ foreach ($data as $key => $value) {
|
|||
<p class="counter-value">Are you sure you want to delete <span style="color: #34536A;"><b><?php echo $data[$key]['RECORD'] ?></b></span> record?</p>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr></table>
|
||||
|
||||
</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>
|
||||
|
@ -65,17 +95,18 @@ foreach ($data as $key => $value) {
|
|||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<table class="data-count">
|
||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||
<tr>
|
||||
<td>→
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
|
||||
|
||||
<table class="data-count">
|
||||
<tr>
|
||||
<td width="160px">
|
||||
<td>
|
||||
<?php
|
||||
if ( $i == 1) {
|
||||
echo "1 dns record ";
|
||||
|
@ -84,10 +115,11 @@ foreach ($data as $key => $value) {
|
|||
}
|
||||
?>
|
||||
</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>"; ?>
|
||||
</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