Initial Commit of AgileBill Open Source
This commit is contained in:
116
themes/default/blocks/host_tld/add.tpl
Normal file
116
themes/default/blocks/host_tld/add.tpl
Normal file
@@ -0,0 +1,116 @@
|
||||
|
||||
<!-- Display the form validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display the form to collect the input values -->
|
||||
<form id="host_tld_add" name="host_tld_add" method="post" action="">
|
||||
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=host_tld}
|
||||
title_add
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ if $VAR.host_tld_status != ""}
|
||||
{ $list->bool("host_tld_status", $VAR.host_tld_status, "form_menu") }
|
||||
{else}
|
||||
{ $list->bool("host_tld_status", "1", "form_menu") }
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_tld_name" value="{$VAR.host_tld_name}" {if $host_tld_name == true}class="form_field_error"{/if} size="12">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_whois_plugin
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->menu_files("", "host_tld_whois_plugin", $VAR.host_tld_whois_plugin, "whois_plugin", "", ".php", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_registrar_plugin_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->menu("", "host_tld_registrar_plugin_id", "host_registrar_plugin", "name", $VAR.host_tld_registrar_plugin_id, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_taxable
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_tld_taxable", $VAR.host_tld_taxable, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_auto_search
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_tld_auto_search", $VAR.host_tld_auto_search, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_default_term_new
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_tld_default_term_new" value="{$VAR.host_tld_default_term_new}" {if $host_tld_default_term_new == true}class="form_field_error"{/if} size="5">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%"> </td>
|
||||
<td width="50%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="host_tld:view">
|
||||
<input type="hidden" name="_page_current" value="host_tld:add">
|
||||
<input type="hidden" name="do[]" value="host_tld:add">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
105
themes/default/blocks/host_tld/admin_search.tpl
Normal file
105
themes/default/blocks/host_tld/admin_search.tpl
Normal file
@@ -0,0 +1,105 @@
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
var type='register';
|
||||
function cartAdminAdd(type) {
|
||||
document.location = '?_page=cart:admin_view&do[]=cart:admin_add&host_type='+type+'&domain_name='+domain+'&domain_tld='+tld+'&account_id={/literal}{$VAR.account_id}{literal}';
|
||||
}
|
||||
</script>
|
||||
<script src="themes/default/blocks/host_tld/ajax.js" type="text/javascript"></script>
|
||||
{/literal}
|
||||
<table width=100% border="0" cellspacing="1" cellpadding="0" class="table_background">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading" height="25">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
{translate module=host_tld}
|
||||
domain_register
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row2">
|
||||
<td width="96%">
|
||||
<form name="domain" method="post" action="javascript:void(0);" onSubmit="domainSearch();">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td width="15%">
|
||||
<input type="text" id="domainName" name="domainName" maxlength="128" size="22">
|
||||
</td>
|
||||
<td width="6%">
|
||||
<select id="domainTLD" name="domainTLD">
|
||||
{ if $list->smarty_array("host_tld", "name", "", "tld") }
|
||||
{foreach from=$tld item=tld}
|
||||
<option value="{$tld.name}" {if $tld.name == $VAR.tld}selected{/if}>
|
||||
{$tld.name}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
</td>
|
||||
<td width="20"><a href="javascript:domainSearch();"><img src="themes/{$THEME_NAME}/images/icons/srch_16.gif" border="0" width="16" height="16"></a><b></b></td>
|
||||
<td width="68%" class="body"><a href="javascript:domainSearch();"><b><u>{translate}search{/translate}</u></b></a></td>
|
||||
<td width="68%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td>
|
||||
<div id="search" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
searching
|
||||
{/translate}
|
||||
</b></div>
|
||||
<div id="unavailable" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
domain_unavail
|
||||
{/translate}
|
||||
</b></div>
|
||||
<div id="available" style="display:none">
|
||||
<b>
|
||||
{translate module=host_tld}
|
||||
domain_avail_s
|
||||
{/translate}
|
||||
<br>
|
||||
<br>
|
||||
<a href="javascript:cartAdminAdd('register')"><img src="themes/{$THEME_NAME}/images/icons/cart_16.gif" border="0">
|
||||
{translate module=host_tld}
|
||||
register_cart
|
||||
{/translate}
|
||||
</a></b>
|
||||
</div>
|
||||
<div id="park_available" style="display:none">
|
||||
<br><b>
|
||||
<a href="javascript:cartAdminAdd('park')"><img src="themes/{$THEME_NAME}/images/icons/cart_16.gif" border="0">
|
||||
{translate module=host_tld}
|
||||
park_cart
|
||||
{/translate}
|
||||
</a></b>
|
||||
</div>
|
||||
<div id="instructions"> <b>
|
||||
{translate module=host_tld}
|
||||
register_instructions_s
|
||||
{/translate}
|
||||
</b> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{literal}<script language="JavaScript"> try{ document.getElementById('domain').focus(); } catch(e) {} </script>{/literal}
|
||||
<br>
|
||||
<div class=select> <a href="?_page=host_tld:admin_search_transfer&account_id={$VAR.account_id}"><b>Domain Transfer Form</b></a> </div>
|
92
themes/default/blocks/host_tld/admin_search_transfer.tpl
Normal file
92
themes/default/blocks/host_tld/admin_search_transfer.tpl
Normal file
@@ -0,0 +1,92 @@
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
var type='transfer';
|
||||
function cartAdminAdd(type) {
|
||||
document.location = '?_page=cart:admin_view&do[]=cart:admin_add&host_type='+type+'&domain_name='+domain+'&domain_tld='+tld+'&account_id={/literal}{$VAR.account_id}{literal}';
|
||||
}
|
||||
</script>
|
||||
<script src="themes/default/blocks/host_tld/ajax.js" type="text/javascript"></script>
|
||||
{/literal}
|
||||
<table width=100% border="0" cellspacing="1" cellpadding="0" class="table_background">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading" height="25">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
{translate module=host_tld}
|
||||
domain_transfer
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row2">
|
||||
<td width="96%">
|
||||
<form name="domain" method="post" action="javascript:void(0);" onSubmit="domainSearch();">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td width="13%">
|
||||
<input type="text" id="domainName" name="domainName" maxlength="128" size="22">
|
||||
</td>
|
||||
<td width="5%">
|
||||
<select id="domainTLD" name="domainTLD">
|
||||
{ if $list->smarty_array("host_tld", "name", "", "tld") }
|
||||
{foreach from=$tld item=tld}
|
||||
<option value="{$tld.name}">
|
||||
{$tld.name}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
</td>
|
||||
<td width="20"><a href="javascript:domainSearch();"><img src="themes/{$THEME_NAME}/images/icons/srch_16.gif" border="0" width="16" height="16"></a><b></b></td>
|
||||
<td width="68%" class="body"><a href="javascript:domainSearch();"><b><u>{translate}search{/translate}</u></b></a></td>
|
||||
<td width="77%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td class="row1">
|
||||
<div id="search" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
transfer_searching
|
||||
{/translate}
|
||||
</b></div>
|
||||
<div id="unavailable" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
transfer_unavail
|
||||
{/translate}
|
||||
</b></div>
|
||||
<div id="available" style="display:none"> <b>
|
||||
{translate module=host_tld}
|
||||
transfer_avail_s
|
||||
{/translate}</b><br><br>
|
||||
<a href="javascript:cartAdminAdd('transfer')">
|
||||
<img src="themes/{$THEME_NAME}/images/icons/cart_16.gif" border="0">
|
||||
{translate module=host_tld}
|
||||
transfer_cart
|
||||
{/translate}
|
||||
</a> </div>
|
||||
<div id="instructions"> <b>
|
||||
{translate module=host_tld}
|
||||
register_instructions_s
|
||||
{/translate}
|
||||
</b> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{literal}<script language="JavaScript"> try{ document.getElementById('domain').focus(); } catch(e) {} </script>{/literal}
|
69
themes/default/blocks/host_tld/ajax.js
Normal file
69
themes/default/blocks/host_tld/ajax.js
Normal file
@@ -0,0 +1,69 @@
|
||||
var http=getHTTPObject();
|
||||
var validatedDomain=false;
|
||||
var domain=null;
|
||||
var tld=null;
|
||||
|
||||
function cartAdd(type) {
|
||||
if(validatedDomain) {
|
||||
getUserDomainInfo();
|
||||
document.location = '?_page=cart:cart&do[]=cart:add&host_type='+type+'&domain_name='+domain+'&domain_tld='+tld;
|
||||
} else {
|
||||
alert('Invalid domain!');
|
||||
}
|
||||
}
|
||||
|
||||
function showSuggest() {
|
||||
getUserDomainInfo();
|
||||
if(domain==null || domain=='')
|
||||
document.location = '?_page=host_tld:suggest&domain='+domain+'&tld='+tld;
|
||||
else
|
||||
document.location = '?_page=host_tld:suggest';
|
||||
}
|
||||
|
||||
function getUserDomainInfo() {
|
||||
domain = document.getElementById("domainName").value;
|
||||
tld = document.getElementById("domainTLD").value;
|
||||
}
|
||||
|
||||
function domainSearchResponse(domain,tld) {
|
||||
http.open("GET", 'ajax.php?do[]=host_tld:whois&type='+type+'&tld='+tld+'&domain='+domain, true);
|
||||
http.onreadystatechange = function() {
|
||||
if (http.readyState == 4) {
|
||||
try { eval(http.responseText) } catch(e) {}
|
||||
}
|
||||
}
|
||||
http.send(null);
|
||||
}
|
||||
|
||||
function domainSearch() {
|
||||
getUserDomainInfo();
|
||||
validatedDomain=false;
|
||||
try{ window.parent.domainUpdate(0,0,0) } catch(e) {}
|
||||
if(domain!=null || domain!='') {
|
||||
document.getElementById("search").style.display='block';
|
||||
try{ document.getElementById("instructions").style.display='none' }catch(e){}
|
||||
document.getElementById("available").style.display='none';
|
||||
document.getElementById("unavailable").style.display='none';
|
||||
domainSearchResponse(domain,tld,type);
|
||||
} else {
|
||||
unavailable();
|
||||
}
|
||||
}
|
||||
|
||||
function available(i) {
|
||||
validatedDomain=true;
|
||||
document.getElementById("available").style.display='block';
|
||||
document.getElementById("search").style.display='none';
|
||||
document.getElementById("unavailable").style.display='none';
|
||||
if(i==1 || i==true ) try{ document.getElementById("park_available").style.display='block' } catch(e) {}
|
||||
try{ window.parent.domainUpdate(domain,tld,type) } catch(e) {}
|
||||
}
|
||||
|
||||
function unavailable() {
|
||||
validatedDomain=false;
|
||||
document.getElementById("unavailable").style.display='block';
|
||||
document.getElementById("search").style.display='none';
|
||||
document.getElementById("available").style.display='none';
|
||||
try{ document.getElementById("park_available").style.display='none'; } catch(e) {}
|
||||
try{ window.parent.domainUpdate(0,0,0) } catch(e) {}
|
||||
}
|
26
themes/default/blocks/host_tld/iframe_ns_transfer.tpl
Normal file
26
themes/default/blocks/host_tld/iframe_ns_transfer.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
{ $block->display("core:top_clean") }
|
||||
<form name="domain" method="post" action="{$SSL_URL}">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
|
||||
<tr>
|
||||
<td width="95%" class="body"> <b> <br>
|
||||
{translate module=host_tld}
|
||||
ns_transfer_instructions
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="5%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<p>
|
||||
<input type="text" id="domain" name="domain" maxlength="128" size="22" onchange="parent.document.getElementById('domain_name').value = this.value;">
|
||||
.
|
||||
<input type="text" id="tld" name="tld" size="5" maxlength="7" onchange="parent.document.getElementById('domain_tld').value = this.value;">
|
||||
</p> <br>
|
||||
</td>
|
||||
<td width="5%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{literal}<script language="JavaScript"> try{ document.getElementById('domain').focus(); } catch(e) {} </script>{/literal}
|
||||
</body>
|
||||
</html>
|
71
themes/default/blocks/host_tld/iframe_register.tpl
Normal file
71
themes/default/blocks/host_tld/iframe_register.tpl
Normal file
@@ -0,0 +1,71 @@
|
||||
{ $block->display("core:top_clean") }
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
var type='register';
|
||||
</script>
|
||||
<script src="themes/default/blocks/host_tld/ajax.js" type="text/javascript"></script>
|
||||
{/literal}
|
||||
<form name="domain" method="post" action="javascript:void(0);" onsubmit="domainSearch();">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
|
||||
<tr>
|
||||
<td width="95%" class="body"> <b> <br>
|
||||
{translate module=host_tld}
|
||||
register_instructions
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
|
||||
<tr>
|
||||
<td width="14%">
|
||||
<input type="text" id="domainName" name="domainName" maxlength="128" size="22">
|
||||
</td>
|
||||
<td width="6%">
|
||||
<select id="domainTLD" name="domainTLD">
|
||||
{ if $list->smarty_array("host_tld", "name", "", "tld") }
|
||||
{foreach from=$tld item=tld}
|
||||
<option value="{$tld.name}">
|
||||
{$tld.name}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
</td>
|
||||
<td width="12%"><a href="javascript:domainSearch();"><b><u>{translate}search{/translate}</u></b></a><b></b></td>
|
||||
<td width="68%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td class="body">
|
||||
<DIV id="search" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
searching
|
||||
{/translate}
|
||||
</b></DIV>
|
||||
<DIV id="unavailable" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
domain_unavail
|
||||
{/translate}
|
||||
</b></DIV>
|
||||
<DIV id="available" style="display:none"> <b>
|
||||
{translate module=host_tld}
|
||||
domain_avail
|
||||
{/translate}
|
||||
</b> </DIV>
|
||||
<DIV id="none" style="display:block"> </DIV>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{literal}<script language="JavaScript"> try{ document.getElementById('domain').focus(); } catch(e) {} </script>{/literal}
|
||||
</body>
|
||||
</html>
|
71
themes/default/blocks/host_tld/iframe_transfer.tpl
Normal file
71
themes/default/blocks/host_tld/iframe_transfer.tpl
Normal file
@@ -0,0 +1,71 @@
|
||||
{ $block->display("core:top_clean") }
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
var type='transfer';
|
||||
</script>
|
||||
<script src="themes/default/blocks/host_tld/ajax.js" type="text/javascript"></script>
|
||||
{/literal}
|
||||
<form name="domain" method="post" action="javascript:void(0);" onsubmit="domainSearch();">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
|
||||
<tr>
|
||||
<td width="95%" class="body"> <b> <br>
|
||||
{translate module=host_tld}
|
||||
register_instructions
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
|
||||
<tr>
|
||||
<td width="14%">
|
||||
<input type="text" id="domainName" name="domainName" maxlength="128" size="22" >
|
||||
</td>
|
||||
<td width="6%">
|
||||
<select id="domainTLD" name="domainTLD" >
|
||||
{ if $list->smarty_array("host_tld", "name", "", "tld") }
|
||||
{foreach from=$tld item=tld}
|
||||
<option value="{$tld.name}">
|
||||
{$tld.name}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
</td>
|
||||
<td width="12%"><a href="javascript:domainSearch();"><b><u>{translate}search{/translate}</u></b></a><b></b></td>
|
||||
<td width="68%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td class="body">
|
||||
<DIV id="search" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
transfer_ searching
|
||||
{/translate}
|
||||
</b></DIV>
|
||||
<DIV id="unavailable" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
transfer_unavail
|
||||
{/translate}
|
||||
</b></DIV>
|
||||
<DIV id="available" style="display:none"> <b>
|
||||
{translate module=host_tld}
|
||||
transfer_avail
|
||||
{/translate}
|
||||
</b> </DIV>
|
||||
<DIV id="none" style="display:block"> </DIV>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{literal}<script language="JavaScript"> try{ document.getElementById('domain').focus(); } catch(e) {} </script>{/literal}
|
||||
</body>
|
||||
</html>
|
123
themes/default/blocks/host_tld/search.tpl
Normal file
123
themes/default/blocks/host_tld/search.tpl
Normal file
@@ -0,0 +1,123 @@
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
var type='register';
|
||||
</script>
|
||||
<script src="themes/default/blocks/host_tld/ajax.js" type="text/javascript"></script>
|
||||
{/literal}
|
||||
<table width=100% border="0" cellspacing="1" cellpadding="0" class="table_background">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart" height="25">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
{translate module=host_tld}
|
||||
domain_register
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row2">
|
||||
<td width="96%">
|
||||
<form name="domain" method="post" action="javascript:void(0);" onSubmit="domainSearch();">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td width="15%">
|
||||
<input type="text" id="domainName" name="domainName" maxlength="128" size="22" value="{$VAR.domain}">
|
||||
</td>
|
||||
<td width="6%">
|
||||
<select id="domainTLD" name="domainTLD">
|
||||
{ if $list->smarty_array("host_tld", "name", "", "tld") }
|
||||
{foreach from=$tld item=tld}
|
||||
<option value="{$tld.name}"{if $VAR.tld==$tld.name} selected{/if}>
|
||||
{$tld.name}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
</td>
|
||||
<td width="20"><a href="javascript:domainSearch();"><img src="themes/{$THEME_NAME}/images/icons/srch_16.gif" border="0" width="16" height="16"></a><b></b></td>
|
||||
<td width="68%" class="body"><a href="javascript:domainSearch();"><b><u>{translate}search{/translate}</u></b></a></td>
|
||||
<td width="68%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td>
|
||||
<div id="search" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
searching
|
||||
{/translate}
|
||||
</b></div>
|
||||
<div id="unavailable" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
domain_unavail
|
||||
{/translate}
|
||||
</b></div>
|
||||
<div id="available" style="display:none">
|
||||
<b>
|
||||
{translate module=host_tld}
|
||||
domain_avail_s
|
||||
{/translate}
|
||||
<br>
|
||||
<br>
|
||||
<a href="javascript:cartAdd('register')"><img src="themes/{$THEME_NAME}/images/icons/cart_16.gif" border="0">
|
||||
{translate module=host_tld}
|
||||
register_cart
|
||||
{/translate}
|
||||
</a></b>
|
||||
</div>
|
||||
<div id="park_available" style="display:none">
|
||||
<br><b>
|
||||
<a href="javascript:cartAdd('park')"><img src="themes/{$THEME_NAME}/images/icons/cart_16.gif" border="0">
|
||||
{translate module=host_tld}
|
||||
park_cart
|
||||
{/translate}
|
||||
</a></b>
|
||||
</div>
|
||||
<div id="instructions"> <b>
|
||||
{translate module=host_tld}
|
||||
register_instructions_s
|
||||
{/translate}
|
||||
</b> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{if $VAR._page!='host_tld:iframe_register'}
|
||||
<br>
|
||||
<div class=select>
|
||||
<p><a href="?_page=host_tld:search_transfer"><b>
|
||||
{translate module=host_tld}
|
||||
domain_transfer
|
||||
{/translate}
|
||||
</b></a> </p>
|
||||
<p><a href="javascript:showSuggest();"><b>
|
||||
{translate module=host_tld}
|
||||
suggest_other
|
||||
{/translate}
|
||||
</b></a> </p>
|
||||
<p><a href="?_page=host_tld:search_mass"><b>
|
||||
{translate module=host_tld}
|
||||
search_mass
|
||||
{/translate}
|
||||
</b></a> </p>
|
||||
</div>
|
||||
<script language="JavaScript">
|
||||
{if $VAR.domain != ""} domainSearch('register'); {else} {literal} try{ document.getElementById('domain').focus(); } catch(e) {} {/literal} {/if}
|
||||
</script>
|
||||
{/if}
|
73
themes/default/blocks/host_tld/search_mass.tpl
Normal file
73
themes/default/blocks/host_tld/search_mass.tpl
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
|
||||
<table width=100% border="0" cellspacing="1" cellpadding="0" class="table_background">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart" height="25">
|
||||
<tr valign="top">
|
||||
|
||||
<td>
|
||||
{translate module=host_tld}
|
||||
search_mass_header
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row2">
|
||||
<td width="96%">
|
||||
<form name="domain" method="post" action="">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr>
|
||||
<td width="53%">
|
||||
<textarea id="domain" name="domains" cols="40" rows="10">{$domains}</textarea>
|
||||
</td>
|
||||
<td width="47%" valign="top">
|
||||
<p>
|
||||
{translate module=host_tld}
|
||||
search_mass_instructions
|
||||
{/translate}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="53%"><a href="javascript:search();"><b><u> </u></b></a>
|
||||
<input type="submit" name="Submit" value="{translate}search{/translate}">
|
||||
<input type="hidden" name="do[]" value="host_tld:whois_mass">
|
||||
<input type="hidden" name="_page" value="host_tld:search_mass">
|
||||
</td>
|
||||
<td width="47%" align="right">
|
||||
{if $checkout}
|
||||
<b> <a href="javascript:document.getElementById('cartadd').submit();">
|
||||
<u>
|
||||
{translate module=host_tld}
|
||||
suggest_purchase
|
||||
{/translate}
|
||||
</u></a></b>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<form id="cartadd" name="cartadd" method="post" action="">
|
||||
|
||||
{foreach from=$domainarr item=rs}
|
||||
<input type="hidden" name="domain_name[]" value="{$rs.0}">
|
||||
<input type="hidden" name="domain_tld[]" value="{$rs.1}">
|
||||
<input type="hidden" name="host_type[]" value="register">
|
||||
{/foreach}
|
||||
|
||||
<input type="hidden" name="do[]" value="cart:add">
|
||||
<input type="hidden" name="_page" value="cart:cart">
|
||||
</form>
|
||||
|
129
themes/default/blocks/host_tld/search_show.tpl
Normal file
129
themes/default/blocks/host_tld/search_show.tpl
Normal file
@@ -0,0 +1,129 @@
|
||||
|
||||
|
||||
{$method->exe("host_tld","search_show")}
|
||||
{if ($method->result == FALSE)}
|
||||
{$block->display("core:method_error")}
|
||||
{else}
|
||||
{if $results == 1}
|
||||
{translate results=$results}search_result_count{/translate}
|
||||
{else}
|
||||
{translate results=$results}search_results_count{/translate}
|
||||
{/if}
|
||||
<BR>
|
||||
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'host_tld';
|
||||
{/literal}
|
||||
{if $VAR._print == TRUE}
|
||||
var p = '&_escape=y&_print=y';
|
||||
{else}
|
||||
var p = '';
|
||||
{/if}{literal}
|
||||
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
|
||||
var order = '{/literal}{$order}{literal}';
|
||||
var sort1 = '{/literal}{$sort}{literal}';
|
||||
var search_id = '{/literal}{$search_id}{literal}';
|
||||
var page = {/literal}{$page}{literal};
|
||||
var pages = '{/literal}{$pages}{literal}';
|
||||
var results = '{/literal}{$results}{literal}';
|
||||
var limit = '{/literal}{$limit}{literal}';
|
||||
record_arr = new Array ({/literal}{$limit}{literal});
|
||||
var i = 0;
|
||||
// END -->
|
||||
</script>
|
||||
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
|
||||
{/literal}
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
||||
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<div id="search_results" onKeyPress="key_handler(event);">
|
||||
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<form id="form1" name="form1" method="post" action="">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<!-- DISPLAY THE SEARCH HEADING -->
|
||||
<tr valign="middle" align="center" class="table_heading">
|
||||
<td width="5%" class="table_heading"> </td>
|
||||
<td width="21%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=host_tld}field_name{/translate}{literal}','name'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="17%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=host_tld}field_status{/translate}{literal}','status'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="20%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=host_tld}field_whois_plugin{/translate}{literal}','whois_plugin'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="37%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=host_tld}field_registrar_plugin_id{/translate}{literal}','registrar_plugin_id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$host_tld item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=host_tld:view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
|
||||
<td align="center" width="5%">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="21%">
|
||||
{$record.name}
|
||||
</td>
|
||||
<td width="17%">
|
||||
{if $record.status == "1"}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="20%">
|
||||
{$record.whois_plugin}
|
||||
</td>
|
||||
<td width="37%">
|
||||
{$record.registrar_plugin_id}
|
||||
</td>
|
||||
</tr>
|
||||
{literal}
|
||||
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
|
||||
{/literal}
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
{if $VAR._print != TRUE}<br>
|
||||
<center>
|
||||
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}delete{/translate}" onClick="mass_do('delete', module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
|
||||
<br>
|
||||
</center>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
91
themes/default/blocks/host_tld/search_transfer.tpl
Normal file
91
themes/default/blocks/host_tld/search_transfer.tpl
Normal file
@@ -0,0 +1,91 @@
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
var type='transfer';
|
||||
</script>
|
||||
<script src="themes/default/blocks/host_tld/ajax.js" type="text/javascript"></script>
|
||||
{/literal}
|
||||
<table width=100% border="0" cellspacing="1" cellpadding="0" class="table_background">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart" height="25">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
{translate module=host_tld}
|
||||
domain_transfer
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row2">
|
||||
<td width="96%">
|
||||
<form name="domain" method="post" action="javascript:void(0);" onSubmit="domainSearch();">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td width="13%">
|
||||
<input type="text" id="domainName" name="domainName" maxlength="128" size="22" value="{$VAR.domain}">
|
||||
</td>
|
||||
<td width="5%">
|
||||
<select id="domainTLD" name="domainTLD" >
|
||||
{ if $list->smarty_array("host_tld", "name", "", "tld") }
|
||||
{foreach from=$tld item=tld}
|
||||
<option value="{$tld.name}"{if $VAR.tld==$tld.name} selected{/if}>
|
||||
{$tld.name}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
</td>
|
||||
<td width="20"><a href="javascript:domainSearch();"><img src="themes/{$THEME_NAME}/images/icons/srch_16.gif" border="0" width="16" height="16"></a><b></b></td>
|
||||
<td width="68%" class="body"><a href="javascript:domainSearch();"><b><u>{translate}search{/translate}</u></b></a></td>
|
||||
<td width="77%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td class="row1">
|
||||
<div id="search" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
transfer_searching
|
||||
{/translate}
|
||||
</b></div>
|
||||
<div id="unavailable" style="display:none"><b>
|
||||
{translate module=host_tld}
|
||||
transfer_unavail
|
||||
{/translate}
|
||||
</b></div>
|
||||
<div id="available" style="display:none"> <b>
|
||||
{translate module=host_tld}
|
||||
transfer_avail_s
|
||||
{/translate}</b><br><br>
|
||||
<a href="javascript:cartAdd('transfer')">
|
||||
<img src="themes/{$THEME_NAME}/images/icons/cart_16.gif" border="0">
|
||||
{translate module=host_tld}
|
||||
transfer_cart
|
||||
{/translate}
|
||||
</a> </div>
|
||||
<div id="instructions"> <b>
|
||||
{translate module=host_tld}
|
||||
register_instructions_s
|
||||
{/translate}
|
||||
</b> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<script language="JavaScript">
|
||||
{if $VAR.domain != ""} domainSearch('transfer'); {else} {literal} try{ document.getElementById('domain').focus(); } catch(e) {} {/literal} {/if}
|
||||
</script>
|
291
themes/default/blocks/host_tld/suggest.tpl
Normal file
291
themes/default/blocks/host_tld/suggest.tpl
Normal file
@@ -0,0 +1,291 @@
|
||||
{$method->exe_noauth("host_tld","suggest")}
|
||||
<table width=100% border="0" cellspacing="1" cellpadding="0" class="table_background">
|
||||
<tr valign="middle" class="row2">
|
||||
<td width="96%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart" height="25">
|
||||
<tr valign="top">
|
||||
|
||||
<td>
|
||||
{translate module=host_tld}
|
||||
suggest_heading
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row2">
|
||||
<td width="96%">
|
||||
<form name="domain" method="post" action="javascript:void(0);" onSubmit="search();">
|
||||
<script language="JavaScript">
|
||||
{$javascript}
|
||||
{literal}
|
||||
var tldDone = new Array();
|
||||
var available = '<b>{/literal}{translate module=host_tld}suggest_available{/translate}{literal}</b>';
|
||||
var unavailable = '{/literal}{translate module=host_tld}suggest_reserved{/translate}{literal}';
|
||||
var searching = '<font color="#FF0000"><b>{/literal}{translate module=host_tld}suggest_searching{/translate}{literal}<b></font>';
|
||||
function domainSwitch(element) {
|
||||
var domain = document.getElementById('domainName').value;
|
||||
var tld = document.getElementById('domainTLD').value;
|
||||
if(document.getElementById(element+"_check").checked == false)
|
||||
domainUnselect(domain, tld, element);
|
||||
else
|
||||
domainSelect(domain, tld, element);
|
||||
checkCart();
|
||||
}
|
||||
function domainSelect(domain, tld, element) {
|
||||
document.getElementById(element+"_check").checked = true;
|
||||
document.getElementById(element+"_area").className = 'row_mouse_over_select';
|
||||
}
|
||||
function domainUnselect(domain, tld, element) {
|
||||
document.getElementById(element+"_check").checked = false;
|
||||
document.getElementById(element+"_area").className = 'row_select';
|
||||
}
|
||||
function domainUpdate(domain,tld,type,element,status) {
|
||||
if(element == 'default') for(i=0; i<tldCount; i++) tldDone[tldArr[i]] = false;
|
||||
tldDone[tld] = true;
|
||||
if (status == 1) {
|
||||
document.getElementById(element+"_status").innerHTML=available;
|
||||
document.getElementById(element+"_check").disabled = false;
|
||||
if(element == 'default') {
|
||||
domainSelect(domain, tld, element) ;
|
||||
} else {
|
||||
domainUnselect(domain, tld, element);
|
||||
}
|
||||
} else {
|
||||
document.getElementById(element+"_status").innerHTML=unavailable;
|
||||
document.getElementById(element+"_name").innerHTML= domain+'.'+tld;
|
||||
document.getElementById(element+"_area").className = 'row1';
|
||||
document.getElementById(element+"_check").disabled = true;
|
||||
document.getElementById(element+"_check").checked = false;
|
||||
}
|
||||
for(i=0; i<tldCount; i++)
|
||||
{
|
||||
if(tldDone[tldArr[i]] != true)
|
||||
{
|
||||
document.getElementById(tldArr[i]+"_area").className = 'row_mouse_over';
|
||||
document.getElementById(tldArr[i]+"_area").style.display='block';
|
||||
document.getElementById(tldArr[i]+"_name").innerHTML = '<b>'+domain+'.'+tldArr[i]+'</b>';
|
||||
document.getElementById(tldArr[i]+"_status").innerHTML = searching;
|
||||
domainSearch(domain,tldArr[i],tldArr[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
checkCart();
|
||||
}
|
||||
|
||||
var http = getHTTPObject();
|
||||
function domainSearch(domain,tld,element) {
|
||||
var url = 'ajax.php?do[]=host_tld:whois&type=suggest&element='+element+'&tld='+tld+'&domain='+domain;
|
||||
http.open("GET", url, true);
|
||||
http.onreadystatechange = function() {
|
||||
if (http.readyState == 4) {
|
||||
try { eval(http.responseText) } catch(e) {}
|
||||
}
|
||||
}
|
||||
http.send(null);
|
||||
}
|
||||
|
||||
function search() {
|
||||
var domain = document.getElementById('domainName').value;
|
||||
var tld = document.getElementById('domainTLD').value;
|
||||
for(i=0; i<tldCount; i++)
|
||||
{
|
||||
if(tldArr[i] != tld)
|
||||
{
|
||||
document.getElementById(tldArr[i]+"_area").style.display='block';
|
||||
document.getElementById(tldArr[i]+"_name").innerHTML = '<b>'+domain+'.'+tldArr[i]+'</b>';
|
||||
document.getElementById(tldArr[i]+"_status").innerHTML = '...';
|
||||
document.getElementById(tldArr[i]+"_area").className = 'row2';
|
||||
document.getElementById(tldArr[i]+"_check").disabled = true;
|
||||
document.getElementById(tldArr[i]+"_check").checked = false;
|
||||
} else {
|
||||
document.getElementById(tldArr[i]+"_area").style.display='none';
|
||||
}
|
||||
}
|
||||
domainSearch(domain,tld,'default');
|
||||
|
||||
document.getElementById("default_area").style.display='block';
|
||||
document.getElementById("default_name").innerHTML = '<b>'+domain+'.'+tld+'</b>';
|
||||
document.getElementById("default_area").className = 'row1';
|
||||
document.getElementById("default_area").className = 'row_mouse_over';
|
||||
document.getElementById("default_status").innerHTML = searching;
|
||||
document.getElementById("default_check").disabled = true;
|
||||
document.getElementById("default_check").checked = false;
|
||||
}
|
||||
function cartUrl() {
|
||||
var domain = document.getElementById('domainName').value;
|
||||
var tld = document.getElementById('domainTLD').value;
|
||||
var url = '';
|
||||
if(document.getElementById("default_check").checked == true) {
|
||||
url = url + '&domain_name[]='+domain;
|
||||
url = url + '&domain_tld[]='+tld;
|
||||
url = url + '&host_type[]=register';
|
||||
}
|
||||
for(i=0; i<tldCount; i++) {
|
||||
if(document.getElementById(tldArr[i]+"_check").checked == true) {
|
||||
url = url + '&domain_name[]='+domain;
|
||||
url = url + '&domain_tld[]='+tldArr[i];
|
||||
url = url + '&host_type[]=register';
|
||||
}
|
||||
}
|
||||
|
||||
if(url == '')
|
||||
return false;
|
||||
else
|
||||
return '?_page=cart:cart&do[]=cart:add'+url;
|
||||
document.location = url;
|
||||
}
|
||||
function cartAdd() {
|
||||
document.location = cartUrl();
|
||||
}
|
||||
function checkCart() {
|
||||
var url = cartUrl();
|
||||
if(url == false)
|
||||
{
|
||||
document.getElementById("available").style.display='none';
|
||||
document.getElementById("unavailable").style.display='block';
|
||||
} else {
|
||||
document.getElementById("available").style.display='block';
|
||||
document.getElementById("unavailable").style.display='none';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
<input type="hidden" id="domain_name" name="domain_name" value="0">
|
||||
<input type="hidden" id="domain_tld" name="domain_tld" value="0">
|
||||
<input type="hidden" id="domain_option" name="domain_option" value="0">
|
||||
<input type="hidden" name="_page" value="cart:cart">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td width="15%">
|
||||
<input type="text" id="domainName" name="domain" maxlength="128" size="22" onChange="parent.document.getElementById('domain_name').value = this.value;" value="{$VAR.domain}">
|
||||
</td>
|
||||
<td width="6%">
|
||||
<select id="domainTLD" name="tld" onChange="parent.document.getElementById('domain_tld').value = this.value;" >
|
||||
{ if $list->smarty_array("host_tld", "name", "", "tld") }
|
||||
{foreach from=$tld item=tld}
|
||||
<option value="{$tld.name}" {if $tld.name == $VAR.tld}selected{/if}>
|
||||
{$tld.name}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
</td>
|
||||
<td width="20"><a href="javascript:search();"><img src="themes/{$THEME_NAME}/images/icons/srch_16.gif" border="0" width="16" height="16"></a><b></b></td>
|
||||
<td width="68%" class="body"><a href="javascript:search();"><b><u>
|
||||
{translate}
|
||||
search
|
||||
{/translate}
|
||||
</u></b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td>
|
||||
<div id="search" style="display:none"><b> </b></div>
|
||||
<div id="instructions"> <b>
|
||||
{translate module=host_tld}
|
||||
register_instructions_s
|
||||
{/translate}
|
||||
</b> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="95%">
|
||||
<!-- USER SELECTED TLD RESULTS -->
|
||||
<div id="default_area" style="display:none">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
|
||||
<tr>
|
||||
<td width="5%">
|
||||
<input type="checkbox" id="default_check" name="default_check" value="checkbox" onClick="domainSwitch('default')">
|
||||
</td>
|
||||
<td width="40%">
|
||||
<div id="default_name"></div>
|
||||
</td>
|
||||
<td width="52%">
|
||||
<div id="default_status"></div>
|
||||
</td>
|
||||
<td width="8%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- AUTO SEARCH TLD RESULTS -->
|
||||
{foreach from=$tlds item=tld}
|
||||
<div id="{$tld.name}_area" style="display:none">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
|
||||
<tr>
|
||||
<td width="5%">
|
||||
<input type="checkbox" id="{$tld.name}_check" name="{$tld.name}_check" value="checkbox" onClick="domainSwitch('{$tld.name}')">
|
||||
</td>
|
||||
<td width="40%">
|
||||
<div id="{$tld.name}_name"></div>
|
||||
</td>
|
||||
<td width="52%">
|
||||
<div id="{$tld.name}_status"></div>
|
||||
</td>
|
||||
<td width="8%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id="available" style="display:none">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row1">
|
||||
<tr>
|
||||
<td width="95%" valign="middle" align="center"> <b> </b>
|
||||
<div id="search" style="display:none"><b> </b></div>
|
||||
<div id="instructions"> <b>
|
||||
{translate module=host_tld}
|
||||
suggest_select
|
||||
{/translate}
|
||||
</b></div>
|
||||
<b><br>
|
||||
<br>
|
||||
<input type="submit" name="Submit" value="{translate module=host_tld}suggest_purchase{/translate}" onClick="cartAdd()">
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="unavailable" style="display:none">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row1">
|
||||
<tr>
|
||||
<td width="95%" valign="middle" align="center"> <b> </b>
|
||||
<div id="search" style="display:none"><b> </b></div>
|
||||
<div id="instructions"> <b>
|
||||
{translate module=host_tld}
|
||||
suggest_select
|
||||
{/translate}
|
||||
</b><b><br>
|
||||
<br>
|
||||
</b> </div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<script language="JavaScript">
|
||||
{if $VAR.domain != ""}
|
||||
search();
|
||||
{else}
|
||||
document.domain.domain.focus();
|
||||
{/if}
|
||||
</script>
|
||||
<br>
|
||||
<p><a href="?_page=host_tld:search_transfer"><b>{translate module=host_tld}domain_transfer{/translate}</b></a></p>
|
||||
|
735
themes/default/blocks/host_tld/view.tpl
Normal file
735
themes/default/blocks/host_tld/view.tpl
Normal file
@@ -0,0 +1,735 @@
|
||||
|
||||
{ $method->exe("host_tld","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
{literal}
|
||||
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
|
||||
<script language="JavaScript">
|
||||
var module = 'host_tld';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
var id = '{/literal}{$VAR.id}{literal}';
|
||||
var ids = '{/literal}{$VAR.ids}{literal}';
|
||||
var array_id = id.split(",");
|
||||
var array_ids = ids.split(",");
|
||||
var num=0;
|
||||
if(array_id.length > 2) {
|
||||
document.location = '?_page='+module+':view&id='+array_id[0]+'&ids='+id;
|
||||
}else if (array_ids.length > 2) {
|
||||
document.write(view_nav_top(array_ids,id,ids));
|
||||
}
|
||||
|
||||
function delete_record(id,ids)
|
||||
{
|
||||
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
|
||||
if(temp == false) return;
|
||||
|
||||
var replace_id = id + ",";
|
||||
ids = ids.replace(replace_id, '');
|
||||
if(ids == '') {
|
||||
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
return;
|
||||
} else {
|
||||
var page = 'view&id=' +ids;
|
||||
}
|
||||
|
||||
var doit = 'delete';
|
||||
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$host_tld item=host_tld} <a name="{$host_tld.id}"></a>
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display each record -->
|
||||
<form name="host_tld_view" method="post" action="">
|
||||
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=host_tld}
|
||||
title_view
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_tld_status", $host_tld.status, "onChange=\"submit()\"") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_tld_name" value="{$host_tld.name}" size="12">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_whois_plugin
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->menu_files("", "host_tld_whois_plugin", $host_tld.whois_plugin, "whois_plugin", "", ".php", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{assign var="ablock" value="host_whois_plugin:plugin_cfg_"}
|
||||
{assign var="afile" value=$host_tld.whois_plugin}
|
||||
{assign var="blockfile" value="$ablock$afile"}
|
||||
{ $block->display($blockfile) }
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_registrar_plugin_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->menu("", "host_tld_registrar_plugin_id", "host_registrar_plugin", "name", $host_tld.registrar_plugin_id, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_taxable
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_tld_taxable", $host_tld.taxable, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_auto_search
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_tld_auto_search", $host_tld.auto_search, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_tld}
|
||||
field_default_term_new
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" name="host_tld_default_term_new" value="{$host_tld.default_term_new}" size="5">
|
||||
{$list->unserial($host_tld.price_group, "price")}
|
||||
</td>
|
||||
<td>
|
||||
<div align="right">
|
||||
<input type="submit" name="Submit22" value="{translate}submit{/translate}" class="form_button">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
parking
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[0][show]", $price[0].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
{ if ($list->smarty_array("group","name"," AND pricing='1' ", "group_array")) }
|
||||
{/if}
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[0][{$arr.id}][register]" value="{$price[0][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%"> </td>
|
||||
<td width="20%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year1
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[1][show]", $price[1].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[1][{$arr.id}][register]" value="{$price[1][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[1][{$arr.id}][renew]" value="{$price[1][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[1][{$arr.id}][transfer]" value="{$price[1][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year2
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[2][show]", $price[2].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[2][{$arr.id}][register]" value="{$price[2][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[2][{$arr.id}][renew]" value="{$price[2][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[2][{$arr.id}][transfer]" value="{$price[2][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year3
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[3][show]", $price[3].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[3][{$arr.id}][register]" value="{$price[3][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[3][{$arr.id}][renew]" value="{$price[3][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[3][{$arr.id}][transfer]" value="{$price[3][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year4
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[4][show]", $price[4].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[4][{$arr.id}][register]" value="{$price[4][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[4][{$arr.id}][renew]" value="{$price[4][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[4][{$arr.id}][transfer]" value="{$price[4][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year5
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[5][show]", $price[5].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[5][{$arr.id}][register]" value="{$price[5][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[5][{$arr.id}][renew]" value="{$price[5][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[5][{$arr.id}][transfer]" value="{$price[5][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year6
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[6][show]", $price[6].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[6][{$arr.id}][register]" value="{$price[6][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[6][{$arr.id}][renew]" value="{$price[6][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[6][{$arr.id}][transfer]" value="{$price[6][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1"><b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year7
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[7][show]", $price[7].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[7][{$arr.id}][register]" value="{$price[7][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[7][{$arr.id}][renew]" value="{$price[7][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[7][{$arr.id}][transfer]" value="{$price[7][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1"><b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year8
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[8][show]", $price[8].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[8][{$arr.id}][register]" value="{$price[8][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[8][{$arr.id}][renew]" value="{$price[8][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[8][{$arr.id}][transfer]" value="{$price[8][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1"><b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year9
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[9][show]", $price[9].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[9][{$arr.id}][register]" value="{$price[9][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[9][{$arr.id}][renew]" value="{$price[9][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[9][{$arr.id}][transfer]" value="{$price[9][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1"><b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading"> <b>
|
||||
{translate module=host_tld}
|
||||
year10
|
||||
{/translate}
|
||||
|
||||
{ $list->bool("host_tld_price_group[10][show]", $price[10].show, "form_menu") }
|
||||
</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b> </b> </td>
|
||||
<td width="20%"> Registrations</td>
|
||||
<td width="20%"> Renewals</td>
|
||||
<td width="20%"> Transfers</td>
|
||||
</tr>
|
||||
</table>
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var="idx" value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="30%"> <b>
|
||||
{$arr.name}
|
||||
</b> </td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[10][{$arr.id}][register]" value="{$price[10][$idx].register}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[10][{$arr.id}][renew]" value="{$price[10][$idx].renew}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<input type="text" name="host_tld_price_group[10][{$arr.id}][transfer]" value="{$price[10][$idx].transfer}" size="5">
|
||||
{$list->currency_iso("")}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="33%">
|
||||
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
<td width="67%">
|
||||
<div align="right">
|
||||
<input type="button" name="delete2" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$host_tld.id}','{$VAR.id}');">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="_page" value="host_tld:view">
|
||||
<input type="hidden" name="host_tld_id" value="{$host_tld.id}">
|
||||
<input type="hidden" name="do[]" value="host_tld:update">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
</form>
|
||||
{/foreach}
|
||||
{/if}
|
Reference in New Issue
Block a user