This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/host_tld/view.tpl
2011-05-03 09:49:01 +10:00

145 lines
6.1 KiB
Smarty

{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display each record -->
<form id="view" method="post" action='' enctype="multipart/form-data">
<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 class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">{osb f=tf field=status}</td>
<td width="50%">{$list->bool('host_tld_status',$record.status,'onChange="submit()')}</td>
</tr>
<tr valign="top">
<td width="50%">{osb f=tf field=name}</td>
<td width="50%"><input type="text" name="host_tld_name" value="{$record.name}" size="12"/></td>
</tr>
<tr valign="top">
<td width="50%">{osb f=tf field=whois_plugin}</td>
<td width="50%">{$list->menu_files('','host_tld_whois_plugin',$record.whois_plugin,'whois_plugin','','.php','form_menu')}</td>
</tr>
</table>
{assign var="ablock" value="host_whois_plugin:plugin_cfg_"}
{assign var="afile" value=$record.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%">{osb f=tf field=registrar_plugin_id}</td>
<td width="50%">{$list->menu('','host_tld_registrar_plugin_id','host_registrar_plugin','name',$record.registrar_plugin_id,'form_menu')}</td>
</tr>
<tr valign="top">
<td width="50%">{osb f=tf field=taxable}</td>
<td width="50%">{$list->bool('host_tld_taxable',$record.taxable,'form_menu')}</td>
</tr>
<tr valign="top">
<td width="50%">{osb f=tf field=auto_search}</td>
<td width="50%">{$list->bool('host_tld_auto_search',$record.auto_search,'form_menu')}</td>
</tr>
<tr valign="top">
<td width="50%">{osb f=tf field=default_term_new}</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="{$record.default_term_new}" size="5"/>
{$list->unserial($record.price_group,'price')}
</td>
<td style="text-align: right;"><input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/></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>{t}Offer domain parking for this TLD{/t}&nbsp;&nbsp;{$list->bool('host_tld_price_group[0][show]',$price[0].show,'form_menu')}</b></td>
</tr>
</table>
</td>
</tr>
{if ($list->smarty_array('group','name'," AND pricing='1' ",'group_array'))}{/if}
<tr valign="top">
<td width="65%" class="row1">
{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%">&nbsp;</td>
<td width="20%">&nbsp;</td>
</tr>
</table>
{/foreach}
</td>
</tr>
{section name=year start=1 loop=11 step=1}
{assign var="year" value=$smarty.section.year.index}
<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>{t}Offer purchase options for this TLD for year{/t}: {$year}&nbsp;&nbsp;{$list->bool("host_tld_price_group[$year][show]",$price[$year].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%">&nbsp;</td>
<td width="20%">{t}Registrations{/t}</td>
<td width="20%">{t}Renewals{/t}</td>
<td width="20%">{t}Transfers{/t}</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[{$year}][{$arr.id}][register]" value="{$price[$year][$idx].register}" size="5"/>{$list->currency_iso('')}</td>
<td width="20%"><input type="text" name="host_tld_price_group[{$year}][{$arr.id}][renew]" value="{$price[$year][$idx].renew}" size="5"/>{$list->currency_iso('')}</td>
<td width="20%"><input type="text" name="host_tld_price_group[{$year}][{$arr.id}][transfer]" value="{$price[$year][$idx].transfer}" size="5"/>{$list->currency_iso('')}</td>
</tr>
</table>
{/foreach}
</td>
</tr>
{/section}
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}