OSB enhancements to date

This commit is contained in:
Deon George
2010-11-30 09:41:08 +11:00
parent 8715a2059b
commit ec6a542bc3
478 changed files with 23423 additions and 9309 deletions

View File

@@ -24,7 +24,11 @@
function accountJumpView(account_id,parent_account_id) {
var module = document.getElementById('JumpView').value;
document.getElementById('JumpView').value = '';
var url = '?_page=core:search&module='+module+'&_next_page_one=view&'+module+'_account_id='+account_id;
if(module == 'discount')
var url = '?_page=core:search&module='+module+'&_next_page_one=view&'+module+'_avail_account_id='+account_id;
else
var url = '?_page=core:search&module='+module+'&_next_page_one=view&'+module+'_account_id='+account_id;
if(module != 'invoice' && module != 'service' && module != 'subaccount' && module != 'parentaccount' ) {
view_show('collapse');
showIFrame('iframe',getPageWidth(600),500,url);
@@ -189,10 +193,8 @@
</tr>
</table>
</td>
<td style="width: 37%;">
<td style="width: 37%; vertical-align: top;">
<table width="100%" border="0" cellspacing="4" cellpadding="0" class="body">
<tr><td>&nbsp;</td></tr>
<!-- Invoices -->
{if $record.invoice}
<tr>
@@ -208,29 +210,32 @@
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" style="border: 0px;"/>
{/if}
</td>
<td width="70"><a href="?_page=invoice:view&amp;id={$invoice.id}">{$invoice.id}</a></td>
<td width="70" align="right">
<td width="70" {if ! $invoice.status}style="color: #666666; text-decoration: line-through;"{/if}>
<a href="?_page=invoice:view&amp;id={$invoice.id}">{$invoice.id}</a>
</td>
<td width="70" align="right" {if ! $invoice.status}style="color: #666666; text-decoration: line-through;"{/if}>
{if $invoice.due > 0}
<font color="#666666">{$list->format_currency_num($invoice.total_amt,'')}</font>
{else}
<font color="#006600"><b>{$list->format_currency_num($invoice.total_amt,'')}</b></font>
{/if}
</td>
<td width="100" align="right">
{if $invoice.due > 0}
<td width="100" align="right" {if ! $invoice.status}style="color: #666666; text-decoration: line-through;"{/if}>
{if $invoice.due > 0 && $invoice.status}
<font color="#CC0000"><b>{$list->format_currency_num($invoice.due,'')}</b></font>
{else}
<font color="#999999">{$list->format_currency_num('0','')}</font>
{/if}
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;{$list->date($invoice.date_orig)}</td>
<td {if ! $invoice.status}style="color: #666666; text-decoration: line-through;"{/if}>&nbsp;&nbsp;&nbsp;&nbsp;{$list->date($invoice.date_orig)}</td>
</tr>
{/foreach}
{/if}
{if $record.service}
<tr><td width="6">&nbsp;</td></tr>
<tr>
<td colspan="6"><b><br/>{t}Service Overview{/t}</b></td>
<td colspan="6"><b>{t}Service Overview{/t}</b></td>
</tr>
{foreach from=$record.service item=service}
<tr valign="middle">
@@ -260,13 +265,45 @@
</table>
</td>
<td style="width: 37%;">
<td style="width: 37%; vertical-align: top;">
<table width="100%" border="0" cellspacing="4" cellpadding="0" class="body">
<tr><td>&nbsp;</td></tr>
{if $record.duesoon}
<!-- Payments-->
{if $record.payment}
<tr>
<td colspan="6"><b><br/>{t}Invoices Due Soon{/t}</b></td>
<td colspan="6"><b>{t}Payments Overview{/t}</b></td>
</tr>
{foreach from=$record.payment item=invoice}
<tr valign="middle">
<td width="6">&nbsp;</td>
<td width="38">
{if $invoice.pending_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" style="border: 0px;"/>
{/if}
</td>
<td width="70">
<a href="?_page=payment:view&amp;id={$invoice.id}">{$invoice.id}</a>
</td>
<td width="70" align="right">
{if $invoice.total_amt-$invoice.alloc_amt > 0}
<font color="#CC0000">{$list->format_currency_num($invoice.total_amt,'')}</font>
{else}
<font color="#006600"><b>{$list->format_currency_num($invoice.total_amt,'')}</b></font>
{/if}
</td>
<td width="100" align="right">
<font color="#666666"><b>{$list->format_currency_num($invoice.alloc_amt,'')}</b></font>
</td>
<td width="6">&nbsp;</td>
<td>{$list->date($invoice.date_payment)}</td>
</tr>
{/foreach}
{/if}
{if $record.duesoon}
<tr><td width="6">&nbsp;</td></tr>
<tr>
<td colspan="8"><b>{t}Services Invoiced Soon{/t}</b></td>
</tr>
{foreach from=$record.duesoon item=service}
<tr valign="middle">

View File

@@ -0,0 +1,72 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="add" 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 style="width: 35%;"><b>{osb f=tf field=name}</b></td>
<td style="width: 65%;"><input type="text" name="account_fee_name" value="{$VAR.account_fee_name}"/></td>
</tr>
<tr>
<td colspan="2"><div style="font-weight: bold; text-align: center;">{t}Group Pricing Structure{/t}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
{assign var=groups_fee_array value=$VAR.account_fee_groups_fee}
{foreach from=$list->menu_staticlist('recur_schedule',true,'',0,'') key=key item=schedule}
<tr>
<td style="width: 20%;">{$list->menu_staticlist('recur_schedule','','',$key,'')}</td>
<td>Active {$list->bool("account_fee_groups_fee[$key][show]",$groups_fee_array[$key].show,'form_menu')}</td>
<td>
{if ($list->smarty_array('group','name'," AND pricing='1' ",'group_array'))}
{foreach from=$group_array item=arr}
{assign var='idx' value=$arr.id}
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
<tr>
<td style="width: 35%">{$arr.name}</td>
<td style="width: 65%">{t}Fee{/t} <input type="text" name="account_fee_groups_fee[{$key}][group][{$arr.id}][fee]" value="{$groups_fee_array[$key].group[$idx].fee}" size="5"/> {$list->currency_iso('')}</td>
</tr>
</table>
{/foreach}
{/if}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
</div>
</form>

View File

@@ -0,0 +1,12 @@
{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/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -0,0 +1,72 @@
{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 style="width: 35%;"><b>{osb f=tf field=name}</b></td>
<td style="width: 65%;"><input type="text" name="account_fee_name" value="{$record.name}"/></td>
</tr>
<tr>
<td colspan="2"><div style="font-weight: bold; text-align: center;">{t}Group Pricing Structure{/t}</div></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
{$list->unserial($record.groups_fee,'groups_fee_array')}
{foreach from=$list->menu_staticlist('recur_schedule',true,'',0,'') key=key item=schedule}
<tr>
<td style="width: 20%;">{$list->menu_staticlist('recur_schedule','','',$key,'')}</td>
<td>Active {$list->bool("account_fee_groups_fee[$key][show]",$groups_fee_array[$key].show,'form_menu')}</td>
<td>
{if ($list->smarty_array('group','name'," AND pricing='1' ",'group_array'))}
{foreach from=$group_array item=arr}
{assign var='idx' value=$arr.id}
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
<tr>
<td style="width: 35%">{$arr.name}</td>
<td style="width: 65%">{t}Fee{/t} <input type="text" name="account_fee_groups_fee[{$key}][group][{$arr.id}][fee]" value="{$groups_fee_array[$key].group[$idx].fee}" size="5"/> {$list->currency_iso('')}</td>
</tr>
</table>
{/foreach}
{/if}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}

View File

@@ -0,0 +1,43 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="add" 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 style="width: 35%;">{osb f=tf field=supplier_id}</td>
<td style="width: 65%;">{$list->menu('','adsl_supplier_id','adsl_supplier','name',$VAR.adsl_supplier_id,'form_field',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=product_id}</td>
<td style="width: 65%;"><input type="text" name="adsl_product_id" value="{$VAR.adsl_product_id}" {if $adsl_product_id == true}class="form_field_error"{/if} size=16></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=product_desc}</td>
<td style="width: 65%;"><input type="text" name="adsl_product_desc" value="{$VAR.adsl_product_desc}" {if $adsl_product_desc == true}class="form_field_error"{/if} size=60></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,12 @@
{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/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -0,0 +1,104 @@
{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 style="width: 35%;">{osb f=tf field=supplier_id}</td>
<td style="width: 65%;">{$record.supplier_id}.{$record.id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=product_id}</td>
<td style="width: 65%;"><input type="text" name="adsl_product_id" value="{$record.product_id}" {if $adsl_product_id == true}class="form_field_error"{/if} size=16 /></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=product_desc}</td>
<td style="width: 65%;"><input type="text" name="adsl_product_desc" value="{$record.product_desc}" {if $adsl_product_desc == true}class="form_field_error"{/if} size=60 /></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">{$list->bool('adsl_status',$record.status)}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr>
<td>{osb f=tf field=base_cost}</td>
<td><input type="text" name="adsl_base_cost" value="{$record.base_cost}" {if $adsl_base_cost == true}class="form_field_error"{/if}/></td>
<td>{osb f=tf field=contract_term}</td>
<td><input type="text" name="adsl_contract_term" value="{$record.contract_term}" {if $adsl_contract_term == true}class="form_field_error"{/if}/></td>
</tr>
<tr>
<td>{osb f=tf field=base_down_peak}</td>
<td><input type="text" name="adsl_base_down_peak" value="{$record.base_down_peak}" {if $adsl_base_down_peak == true}class="form_field_error"{/if}/></td>
<td>{osb f=tf field=base_up_peak}</td>
<td><input type="text" name="adsl_base_up_peak" value="{$record.base_up_peak}" {if $adsl_base_up_peak == true}class="form_field_error"{/if}/></td>
</tr>
<tr>
<td>{osb f=tf field=base_down_offpeak}</td>
<td><input type="text" name="adsl_base_down_offpeak" value="{$record.base_down_offpeak}" {if $adsl_base_down_offpeak == true}class="form_field_error"{/if}/></td>
<td>{osb f=tf field=base_up_offpeak}</td>
<td><input type="text" name="adsl_base_up_offpeak" value="{$record.base_up_offpeak}" {if $adsl_base_up_offpeak == true}class="form_field_error"{/if}/></td>
</tr>
<tr>
<td>{osb f=tf field=extra_charged}</td>
<td>{$list->bool('adsl_extra_charged',$record.extra_charged)}</td>
<td>{osb f=tf field=extra_shaped}</td>
<td><input type="text" name="adsl_extra_shaped" value="{$record.extra_shaped}" {if $adsl_extra_shaped == true}class="form_field_error"{/if}/></td>
</tr>
<tr>
<td>{osb f=tf field=offpeak_start}</td>
<td><input type="text" name="adsl_offpeak_start" value="{$record.offpeak_start|date_format:"%H:%M"}" {if $adsl_offpeak_start == true}class="form_field_error"{/if} size=5/></td>
<td>{osb f=tf field=offpeak_end}</td>
<td><input type="text" name="adsl_offpeak_end" value="{$record.offpeak_end|date_format:"%H:%M"}" {if $adsl_offpeak_end == true}class="form_field_error"{/if} size=5/></td>
</tr>
<tr>
<td>{osb f=tf field=extra_down_peak}</td>
<td><input type="text" name="adsl_extra_down_peak" value="{$record.extra_down_peak}" {if $adsl_extra_down_peak == true}class="form_field_error"{/if}/></td>
<td>{osb f=tf field=extra_up_peak}</td>
<td><input type="text" name="adsl_extra_up_peak" value="{$record.extra_up_peak}" {if $adsl_extra_up_peak == true}class="form_field_error"{/if}/></td>
</tr>
<tr>
<td>{osb f=tf field=extra_down_offpeak}</td>
<td><input type="text" name="adsl_extra_down_offpeak" value="{$record.extra_down_offpeak}" {if $adsl_extra_down_offpeak == true}class="form_field_error"{/if}/></td>
<td>{osb f=tf field=extra_up_offpeak}</td>
<td><input type="text" name="adsl_extra_up_offpeak" value="{$record.extra_up_offpeak}" {if $adsl_extra_up_offpeak == true}class="form_field_error"{/if}/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}

View File

@@ -0,0 +1,36 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display the form to collect the input values -->
<form id="add" 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>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="adsl_supplier_name" value="{$VAR.adsl_supplier_name}" {if $adsl_supplier_name == true}class="form_field_error"{/if}/></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,12 @@
{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/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -0,0 +1,49 @@
{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">
<!-- SUPPLIER NAME -->
<tr valign="top">
<td width="35%">{osb f=tf field=name}</td>
<td width="65%"><input type="text" name="adsl_supplier_name" value="{$record.name}" size="32"/></td>
</tr>
<!-- AVAILABLE -->
<tr valign="top">
<td width="35%">{osb f=tf field=status}</td>
<td width="65%">{$list->bool('adsl_supplier_status',$record.status)}</td>
</tr>
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}

View File

@@ -1,67 +1,46 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="asset_add" name="asset_add" method="post" action="">
{$COOKIE_FORM}
<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=asset}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="35%">
{translate module=asset}
field_pool_id
{/translate}</td>
<td width="65%">
{ $list->menu("no", "asset_pool_id", "asset_pool", "name", $VAR.asset_pool_id, "") } </td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_asset
{/translate}</td>
<td width="65%">
<input type="text" name="asset_asset" value="{$VAR.asset_asset}" {if $asset_asset == true}class="form_field_error"{/if}> </td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_misc
{/translate}</td>
<td width="65%">
<textarea name="asset_misc" cols="40" rows="5" {if $asset_misc == true}class="form_field_error"{/if}>{$VAR.asset_misc}</textarea> </td>
</tr>
<tr valign="top">
<td width="35%"></td>
<td width="65%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="asset:view">
<input type="hidden" name="_page_current" value="asset:add">
<input type="hidden" name="do[]" value="asset:add">
<input type="hidden" name="asset_date_last" value="{$smarty.now}">
<input type="hidden" name="asset_date_orig" value="{$smarty.now}">
<input type="hidden" name="asset_status" value="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<form id="add" 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="35%">{osb f=tf field=pool_id}</td>
<td width="65%">{$list->menu('no','asset_pool_id','asset_pool','name',$VAR.asset_pool_id,'')}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=asset}</td>
<td width="65%"><input type="text" name="asset_asset" value="{$VAR.asset_asset}" {if $asset_asset == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=misc}</td>
<td width="65%"><textarea name="asset_misc" cols="40" rows="5" {if $asset_misc == true}class="form_field_error"{/if}>{$VAR.asset_misc}</textarea></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="asset_status" value="0">
</div>
</form>

View File

@@ -1,119 +1,12 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe("asset","search_show")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{$method->exe($meth.0,$meth.1)}
{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 = 'asset';
{/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="66" class="table_heading">&nbsp;</td>
<td width="267" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset}field_date_last{/translate}{literal}','date_last'));
</script>
{/literal}
</td>
<td width="75" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset}field_status{/translate}{literal}','status'));
</script>
{/literal}
</td>
<td width="391" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset}field_pool_id{/translate}{literal}','pool_id'));
</script>
{/literal}
</td>
<td width="264" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset}field_asset{/translate}{literal}','asset'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$asset item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=asset:view&id={$record.id},{$COOKIE_URL}';" 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="66">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;{$list->date_time($record.date_last)}</td>
<td>&nbsp;{if $record.status == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}</td>
<td>&nbsp;{$record.pool_id}</td>
<td>&nbsp;{$record.asset}</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}{$COOKIE_URL}', 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>
{include file='file:../core/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}
{/if}
</div>

View File

@@ -1,158 +1,73 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("asset","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
{literal}
<!-- Define the update delete function -->
<script language="JavaScript">
<!-- START
var module = 'asset';
var locations = '{/literal}{$VAR.module_id}{literal}';
if (locations != "")
{
refresh(0,'#'+locations)
}
// Mass update, view, and delete controller
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}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Loop through each record -->
{foreach from=$asset item=asset} <a name="{$asset.id}"></a>
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="asset_view" method="post" action="">
{$COOKIE_FORM}
<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=asset}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="35%">
{translate module=asset}
field_date_orig
{/translate}</td>
<td width="65%">
{$list->date_time($asset.date_orig)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_date_last
{/translate}</td>
<td width="65%">
{$list->date_time($asset.date_last)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_status
{/translate}</td>
<td width="65%">
{if $asset.status == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_service_id
{/translate}</td>
<td width="65%">
{if $asset.service_id}
<a href="?_page=service:view&id={$asset.service_id}">ID {$asset.service_id}</a>
{else}
---
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_pool_id
{/translate}</td>
<td width="65%">
{ $list->menu("no", "asset_pool_id", "asset_pool", "name", $asset.pool_id, "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_asset
{/translate}</td>
<td width="65%">
<input type="text" name="asset_asset" value="{$asset.asset}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=asset}
field_misc
{/translate}</td>
<td width="65%">
<textarea name="asset_misc" cols="40" rows="5">{$asset.misc}</textarea>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"></td>
<td width="65%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
<td align="right">
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$asset.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="asset:view">
<input type="hidden" name="asset_id" value="{$asset.id}">
<input type="hidden" name="do[]" value="asset:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
<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 style="width: 35%;">{osb f=tf field=date_orig}</td>
<td style="width: 65%;">{$list->date_time($record.date_orig)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_last}</td>
<td style="width: 65%;">{$list->date_time($record.date_last)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">{$list->bool('',$record.status)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=service_id}</td>
<td style="width: 65%;">
{if $record.service_id}
<a href="?_page=service:view&id={$record.service_id}">ID {$record.service_id}</a>
{else}
---
{/if}
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=pool_id}</td>
<td style="width: 65%;">{$list->menu('no','asset_pool_id','asset_pool','name',$record.pool_id,'')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=asset}</td>
<td style="width: 65%;"><input type="text" name="asset_asset" value="{$record.asset}" size="32"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=misc}</td>
<td style="width: 65%;"><textarea name="asset_misc" cols="40" rows="5">{$record.misc}</textarea></td>
</tr>
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}

View File

@@ -1,50 +1,35 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="asset_pool_add" name="asset_pool_add" method="post" action="">
{$COOKIE_FORM}
<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=asset_pool}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="35%">
{translate module=asset_pool}
field_name
{/translate}</td>
<td width="65%">
<input type="text" name="asset_pool_name" value="{$VAR.asset_pool_name}" {if $asset_pool_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%"></td>
<td width="65%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="asset_pool:view">
<input type="hidden" name="_page_current" value="asset_pool:add">
<input type="hidden" name="do[]" value="asset_pool:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<form id="add" 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 style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="asset_pool_name" value="{$VAR.asset_pool_name}" {if $asset_pool_name == true}class="form_field_error"{/if}/></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -1,95 +1,12 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe("asset_pool","search_show")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{$method->exe($meth.0,$meth.1)}
{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 = 'asset_pool';
{/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">&nbsp;</td>
<td width="95%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=asset_pool}field_name{/translate}{literal}','name'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$asset_pool item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=asset_pool:view&id={$record.id},{$COOKIE_URL}';" 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>&nbsp;{$record.name}</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}{$COOKIE_URL}', 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>
{include file='file:../core/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}
{/if}
</div>

View File

@@ -1,100 +1,43 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("asset_pool","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
{literal}
<!-- Define the update delete function -->
<script language="JavaScript">
<!-- START
var module = 'asset_pool';
var locations = '{/literal}{$VAR.module_id}{literal}';
if (locations != "")
{
refresh(0,'#'+locations)
}
// Mass update, view, and delete controller
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}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Loop through each record -->
{foreach from=$asset_pool item=asset_pool} <a name="{$asset_pool.id}"></a>
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="asset_pool_view" method="post" action="">
{$COOKIE_FORM}
<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=asset_pool}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="35%">
{translate module=asset_pool}
field_name
{/translate}</td>
<td width="65%">
<input type="text" name="asset_pool_name" value="{$asset_pool.name}" size="32">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%"></td>
<td width="65%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
<td align="right">
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$asset_pool.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="asset_pool:view">
<input type="hidden" name="asset_pool_id" value="{$asset_pool.id}">
<input type="hidden" name="do[]" value="asset_pool:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
<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 style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="asset_pool_name" value="{$record.name}" size="32"/></td>
</tr>
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}

View File

@@ -62,7 +62,7 @@
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$cart item=cart}
<div id="c{$cart.id}">
<div id="c{$cart.cart_id}">
{if $cart.cart_type == '2'}
{include file='file:cart_table_type_2.tpl' showadmin=true}
{elseif $cart.cart_type == '3'}

View File

@@ -52,7 +52,7 @@
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$cart item=cart}
<div id="c{$cart.id}">
<div id="c{$cart.cart_id}">
{if $cart.cart_type == '2'}
{include file='file:cart_table_type_2.tpl'}
{elseif $cart.cart_type == '3'}

View File

@@ -11,7 +11,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td style="text-decoration: underline;"><b>{$cart.domain_name|upper}.{$cart.domain_tld|upper}</b></td>
<td style="width: 20px; text-align: right;">{if $disable}&nbsp;{else}<a href="javascript:deleteCart('{$cart.id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" alt="Remove from Cart" style="border: 0px;"/></a>{/if}</td>
<td style="width: 20px; text-align: right;">{if $disable}&nbsp;{else}<a href="javascript:deleteCart('{$cart.cart_id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" alt="Remove from Cart" style="border: 0px;"/></a>{/if}</td>
</tr>
</table>
</td>
@@ -27,8 +27,8 @@
<td style="width: 70%;">{t}Base Price{/t}</td>
<td style="width: 30%;" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
<div id="def_base_price_{$cart.id}">{$list->format_currency_num($cart.price, $smarty.const.SESS_CURRENCY)}</div>
<div id="base_price_{$cart.id}"></div>
<div id="def_base_price_{$cart.cart_id}">{$list->format_currency_num($cart.price, $smarty.const.SESS_CURRENCY)}</div>
<div id="base_price_{$cart.cart_id}"></div>
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
@@ -38,7 +38,7 @@
{/if}
</table>
{if $cart.host_type == 'register'}
<select id="quantity_{$cart.id}" onchange="changeDomainTerm('{$cart.id}',this.value);" {if $disable}disabled="disabled"{/if}>
<select id="quantity_{$cart.cart_id}" onchange="changeDomainTerm('{$cart.cart_id}',this.value);" {if $disable}disabled="disabled"{/if}>
{foreach from=$cart.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart.domain_term}selected="selected"{/if}>{$tld_term} Year {$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}</option>
{/foreach}

View File

@@ -8,7 +8,7 @@
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td><b>{$cart.ad_hoc_name}</b></td>
<td style="width: 20px; text-align: right;">{if $disable}&nbsp;{else}<a href="javascript:deleteCart('{$cart.id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" alt="Remove from Cart" style="border: 0px;"/></a>{/if}</td>
<td style="width: 20px; text-align: right;">{if $disable}&nbsp;{else}<a href="javascript:deleteCart('{$cart.cart_id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" alt="Remove from Cart" style="border: 0px;"/></a>{/if}</td>
</tr>
<tr>
<td>&nbsp;&nbsp;<b>{t}Pricing Structure{/t}:</b> {$list->menu_staticlist('pricetype','','',0,'form_menu')}</td>
@@ -20,8 +20,8 @@
<tr>
<td style="width: 70%;">{t}Base Price{/t}</td>
<td style="width: 30%;" valign="middle" align="right">
<div id="def_base_price_{$cart.id}">{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}</div>
<div id="base_price_{$cart.id}"></div>
<div id="def_base_price_{$cart.cart_id}">{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}</div>
<div id="base_price_{$cart.cart_id}"></div>
</td>
</tr>
<tr>
@@ -29,7 +29,7 @@
<td style="width: 30%;" valign="middle" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="text" id="quantity_{$cart.id}" name="quantity_{$cart.id}2" size="2" value="{$cart.quantity}" onChange="changeQuantity('{$cart.id}',this.value);" {if $disable}disabled="disabled"{/if}/></td>
<td><input type="text" id="quantity_{$cart.cart_id}" name="quantity_{$cart.cart_id}2" size="2" value="{$cart.quantity}" onChange="changeQuantity('{$cart.cart_id}',this.value);" {if $disable}disabled="disabled"{/if}/></td>
<td style="width: 20px; text-align: right;"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" alt="Calc" style="border: 0px;"/></td>
</tr>
</table>

View File

@@ -8,7 +8,7 @@
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td><b>{if $list->translate('product_translate','name','product_id',$cart.product_id,'translate_product')}{/if} <span style="text-decoration: underline;"><a href="?_page=product:details&amp;id={$cart.product_id}">{$translate_product.name}</a></span></b></td>
<td style="width: 20px; text-align: right;">{if $disable}&nbsp;{else}<a href="javascript:deleteCart('{$cart.id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" alt="Remove from Cart" style="border: 0px;"/></a>{/if}</td>
<td style="width: 20px; text-align: right;">{if $disable}&nbsp;{else}<a href="javascript:deleteCart('{$cart.cart_id}');"><img src="themes/{$THEME_NAME}/images/icons/trash_16.gif" alt="Remove from Cart" style="border: 0px;"/></a>{/if}</td>
</tr>
<tr>
<td>&nbsp;&nbsp;<b>{t}Pricing Structure{/t}:</b> {$list->menu_staticlist('pricetype','','',$cart.product.price_type,'form_menu')}</td>
@@ -16,7 +16,7 @@
<tr>
<td>
{if $cart.product.price_type == '1'}&nbsp;
<select id="recurr_schedule_{$cart.id}" name="recurr_schedule_{$cart.id}" onchange="changeRecurring('{$cart.id}',this.value);" {if $disable}disabled="disabled"{/if}>
<select id="recurr_schedule_{$cart.cart_id}" name="recurr_schedule_{$cart.cart_id}" onchange="changeRecurring('{$cart.cart_id}',this.value);" {if $disable}disabled="disabled"{/if}>
{foreach from=$cart.price item=price_recurr key=key}
<option value="{$key}" {if $cart.recurr_schedule == $key} selected="selected"{/if}>
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}&nbsp;
@@ -57,15 +57,15 @@
<tr>
<td style="width: 70%;">{t}Base Price{/t}</td>
<td style="width: 30%;" valign="middle" align="right">
<div id="def_base_price_{$cart.id}">{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}</div>
<div id="base_price_{$cart.id}"></div>
<div id="def_base_price_{$cart.cart_id}">{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}</div>
<div id="base_price_{$cart.cart_id}"></div>
</td>
</tr>
<tr>
<td style="width: 70%;">{t}Setup Price{/t}</td>
<td style="width: 30%;" valign="middle" align="right">
<div id="def_setup_price_{$cart.id}">{$list->format_currency_num($cart.price_setup, $smarty.const.SESS_CURRENCY)}</div>
<div id="setup_price_{$cart.id}"></div>
<div id="def_setup_price_{$cart.cart_id}">{$list->format_currency_num($cart.price_setup, $smarty.const.SESS_CURRENCY)}</div>
<div id="setup_price_{$cart.cart_id}"></div>
</td>
</tr>
<tr>
@@ -73,7 +73,7 @@
<td style="width: 30%;" valign="middle" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="text" id="quantity_{$cart.id}" name="quantity_{$cart.id}" size="2" value="{$cart.quantity}" onchange="changeQuantity('{$cart.id}',this.value);" {if ($disable || $cart.host_type != 'ip' && $cart.host_type != '') || $cart.service_id > 0}disabled="disabled"{/if}/></td>
<td><input type="text" id="quantity_{$cart.cart_id}" name="quantity_{$cart.cart_id}" size="2" value="{$cart.quantity}" onchange="changeQuantity('{$cart.cart_id}',this.value);" {if ($disable || $cart.host_type != 'ip' && $cart.host_type != '') || $cart.service_id > 0}disabled="disabled"{/if}/></td>
<td style="width: 20px; text-align: right;"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" alt="Calc" style="border: 0px;"/></td>
</tr>
</table>

View File

@@ -1,4 +1,4 @@
<tr>
<td style="width: 70%;">Ad Hoc Discount</td>
<td style="width: 30%;" valign="middle" align="right"><input type="text" size="5" id="ad_hoc_discount_{$cart.id}" value="{$cart.ad_hoc_discount}" onchange="ad_hoc_discount('{$cart.id}');"></td>
<td style="width: 30%;" valign="middle" align="right"><input type="text" size="5" id="ad_hoc_discount_{$cart.cart_id}" value="{$cart.ad_hoc_discount}" onchange="ad_hoc_discount('{$cart.cart_id}');"></td>
</tr>

View File

@@ -57,6 +57,10 @@
<td style="width: 35%;">{osb f=tf field=taxable}</td>
<td style="width: 65%;">{$list->bool('charge_taxable',$VAR.charge_taxable,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=description}</td>
<td style="width: 65%;"><input type="text" name="charge_description" value="{$VAR.charge_description}" {if $charge_description == true}class="form_field_error"{/if}/></td>
</tr>
<tr class="row1" valign="top">
<td style="width: 35%;">{osb f=tf field=attributes}</td>
<td style="width: 65%;">

View File

@@ -50,7 +50,10 @@
<td style="width: 35%;">{osb f=tf field=taxable}</td>
<td style="width: 65%;">{$list->bool('charge_taxable','all')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=description}</td>
<td style="width: 65%;"><input type="text" name="charge_description" value="{$VAR.charge_description}" {if $charge_description == true}class="form_field_error"{/if}/></td>
</tr>
<tr class="row1" valign="top">
<td style="width: 35%;">{osb f=tf field=attributes}</td>
<td style="width: 65%;">

View File

@@ -62,6 +62,10 @@
<td style="width: 35%;">{osb f=tf field=taxable}</td>
<td style="width: 65%;">{$list->bool('charge_taxable',$record.taxable,'')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=description}</td>
<td style="width: 65%;"><input type="text" name="charge_description" value="{$record.description}"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=attributes}</td>
<td style="width: 65%;">{$record.attributes|nl2br|replace:'==':' -> '}</td>

View File

@@ -173,7 +173,7 @@
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_allowed_currencies,'checkout_allowed_currencies','currency','name','5','5','form_menu')}</td>
<td style="width: 50%;"><textarea name="checkout_email" cols="40" rows="4">{$VAR.checkout_email_template}</textarea></td>
<td style="width: 50%;"><textarea name="checkout_email_template" cols="40" rows="4">{$VAR.checkout_email_template}</textarea></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>

View File

@@ -25,7 +25,7 @@
}
function addDiscount() {
var discount = document.getElementById("discount").value;
document.location='{/literal}{$SSL_URL}{literal}?_page=checkout:checkout&discount='+discount+'&do[]=checkout:adddiscount';
document.location='{/literal}{$SSL_URL}{literal}?_page=checkout:checkout&discount='+discount+'&do[]=discount:add_cart_discount';
}
{/literal}
//-->
@@ -213,7 +213,7 @@
<td style="width: 35%; text-align: right;">{$list->format_currency_num($sub_total, $smarty.const.SESS_CURRENCY)}</td>
</tr>
{foreach from=$discount item=discount}
{if $discount.total > 0}
{if $discounttotal > 0}
<tr>
<td style="width: 65%;">{t}Discount{/t} ({$discount.name})</td>
<td style="width: 35%; text-align: right;"> - {$list->format_currency_num($discount.total, $smarty.const.SESS_CURRENCY)}</td>
@@ -221,10 +221,10 @@
{/if}
{/foreach}
{if $tax != false}
{foreach from=$tax item=tax }
{foreach from=$tax item=amount key=name}
<tr>
<td style="width: 65%;">{$tax.name}</td>
<td style="width: 35%; text-align: right;">{$list->format_currency_num($tax.rate, $smarty.const.SESS_CURRENCY)}</td>
<td style="width: 65%;">{$name}</td>
<td style="width: 35%; text-align: right;">{$list->format_currency_num($amount, $smarty.const.SESS_CURRENCY)}</td>
</tr>
{/foreach}
{/if}

View File

@@ -0,0 +1,2 @@
</body>
</html>

View File

@@ -22,7 +22,7 @@
<script type="text/javascript">
<!--
var url = '?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id}{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1{/if}';
var url = '?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id}&s={$smarty.const.SESS}{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1{/if}';
document.location = url;
//-->
@@ -37,7 +37,7 @@
<script type="text/javascript">
<!--
{if $VAR._next_page == ''}
{if $VAR._next_page == ''}
var url = '?_page={$VAR.module}:search_show&search_id={$search_id}&order_by={$order_by}&limit={$limit}&page=1{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1{/if}';
{else}
var url = '?_page={$VAR.module}:{$VAR._next_page}&search_id={$search_id}&order_by={$order_by}&limit={$limit}&page=1{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1{/if}';

View File

@@ -28,7 +28,7 @@
{if $results > 0}
<script type="text/javascript" language="javascript">
{if $results == '1' && $VAR._next_page_one != ''}
var url = '?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id},{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1{/if}';
var url = '?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id}{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1{/if}';
{else}
{if $VAR._next_page == ''}
var url = '?_page={$VAR.module}:search_show&search_id={$search_id}&order_by={$order_by}&limit={$limit}&page=1{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1&{$VAR.name_id1}={$VAR.val_id1}&{$VAR.name_id2}={$VAR.val_id2}{/if}';
@@ -44,7 +44,7 @@
{if $VAR._next_page_none == ''}
document.close();
{else}
var url = '?_page={$VAR.module}:{$VAR._next_page_none}&_escape=1&_escape_next=1&{$VAR.name_id1}={$VAR.val_id1}&{$VAR.name_id2}={$VAR.val_id2}';
var url = '?_page={$VAR.module}:{$VAR._next_page_none}&{$VAR.name_id1}={$VAR.val_id1}&{$VAR.name_id2}={$VAR.val_id2}{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1{/if}';
document.location = url;
{/if}
</script>

View File

@@ -4,6 +4,7 @@
<script type="text/javascript">
<!--
var module = '{$meth.0}';
var method = '{$meth.1}';
{if $VAR._print == true}
var p = '&_escape=y&_print=y';
{else}

View File

@@ -1,4 +1,8 @@
<tr id="row{$record.id}" onclick="row_sel('{$record.id}',1);" ondblclick="window.location='?_page={$meth.0}:view&amp;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}">
{if ! $module}
{assign var=module value=$meth.0}
{/if}
<tr id="row{$record.id}" onclick="row_sel('{$record.id}',1);" ondblclick="window.location='?_page={$module}:view&amp;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 style="text-align: center;"><input type="checkbox" id="record{$record.id}" name="record{$record.id}" value="{$record.id}" onclick="row_sel('{$record.id}',1,'{$record._C}');"/>
<script type="text/javascript">row_sel('{$record.id}',0,'{$record._C}'); record_arr[i] = '{$record.id}'; i++; </script>
</td>

View File

@@ -1 +0,0 @@
{group id=1 msg="Sorry, you are not authorized!"} some text {/group}

View File

@@ -1,103 +1,39 @@
{$method->exe("discount","user_search_show")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{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}
{if $results == 1}
{translate results=$results}search_result_count{/translate}
{else}
{translate results=$results}search_results_count{/translate}
{/if}
<BR>
<!-- 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="90" class="table_heading">
{translate module=discount}
field_status
{/translate}
</td>
<td width="132" class="table_heading">
{translate module=discount}
field_name
{/translate}
</td>
<td width="284" class="table_heading">
{translate module=discount}
field_new_status
{/translate}
</td>
<td width="219" class="table_heading">
{translate module=discount}
field_recurr_status
{/translate}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$discount item=record}
<tr id="row{$record.id}" class="{$record._C}">
<td width="90">&nbsp;
{if $record.status == "1"}
{translate}
true
{/translate}
{else}
{translate}
false
{/translate}
{/if}
</td>
<td width="132">&nbsp;
{$record.name}
</td>
<td width="284">&nbsp;
{if $record.new_status == "1"}
{translate}
true
{/translate}
(
{if $record.new_type == 0}
{math equation="x * y" x=$record.new_rate y=100}%
{else}
{$list->format_currency($record.new_rate, '')}
{/if}
)
{else}
{translate}
false
{/translate}
{/if}
</td>
<td width="219">&nbsp;
{if $record.recurr_status == "1"}
{translate}
true
{/translate}
(
{if $record.recurr_type == 0}
{math equation="x * y" x=$record.recurr_rate y=100}%
{else}
{$list->format_currency($record.recurr_rate, '')}
{/if}
)
{else}
{translate}
false
{/translate}
{/if}
</td>
</tr>
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</form>
</table>
{/if}
{include file='file:../core/user_search_show_pre.tpl'}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
{$method->exe_noauth($meth.0,'tpl_search_show')}
{foreach from=$search_show item=record}
{include file='file:../core/user_search_show_tr_record.tpl'}
<td>{$record.name}</td>
<td>{$list->bool('',$record.status,'')}</td>
<td>
{$list->bool('',$record.new_status,'')}
{if $record.new_status == '1'}
({if $record.new_type == 0}{math equation="x * y" x=$record.new_rate y=100}%{else}{$list->format_currency($record.new_rate,'')}{/if})
{/if}
</td>
<td>
{$list->bool('',$record.recurr_status,'')}
{if $record.recurr_status == '1'}
({if $record.recurr_type == 0}{math equation="x * y" x=$record.recurr_rate y=100}%{else}{$list->format_currency($record.recurr_rate,'')}{/if})
{/if}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
</form>
</div>
{/if}

View File

@@ -0,0 +1,54 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="add" 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 style="width: 35%;">{osb f=tf field=plugin_name}</td>
<td style="width: 65%;"><input type="text" name="export_plugin_name" value="{$VAR.export_plugin_name}" {if $export_plugin_name == true}class="form_field_error"{/if} size="30"></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=module_id}</td>
<td style="width: 65%;">{$list->menu('export_module_id','export_module_id','module','name',$VAR.export_module_id,'form_field" onchange="submit();',true)}</td>
</tr>
</table>
{if $VAR.export_plugin_name && $VAR.export_module_id}
{assign var='plugin' value=$VAR.export_plugin_name}
{assign var='mod' value=$VAR.module_name}
{assign var='file' value="add_$plugin$mod.tpl"}
{include file=$file record=$VAR}
{/if}
</td>
</tr>
<tr>
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
{include file='file:../core/add_tr_submit.tpl'}
<tr valign="top">
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,27 @@
{$list->unserial($record.map_data,'map_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="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=item_id}</td>
<td style="width: 65%;">{$list->menu('export_item_id','export_item_id','product','sku',$record.item_id,'','form_field',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=map_data} {t}Account{/t}</td>
<td style="width: 65%;"><input type="text" name="export_map_data[account]" value="{$map_data.account}" size="30"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=map_data} {t}Item{/t}</td>
<td style="width: 65%;"><input type="text" name="export_map_data[item]" value="{$map_data.item}" size="30"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

View File

@@ -0,0 +1,12 @@
{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/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -0,0 +1,57 @@
{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 style="width: 35%;">{osb f=tf field=plugin_name}</td>
<td style="width: 65%;"><input type="text" name="export_plugin_name" value="{$record.plugin_name}" {if $plugin_name == true}class="form_field_error"{/if} size="30"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=module_id}</td>
<td style="width: 65%;">{$list->menu('export_module_id','export_module_id','module','name',$record.module_id,'form_field" onchange="submit();',true)}</td>
</tr>
</table>
{if $record.plugin_name && $record.module_id}
{assign var='plugin' value=$record.plugin_name}
{assign var='mod' value=$module_name}
{assign var='file' value="add_$plugin$mod.tpl"}
{include file=$file record=$record}
{/if}
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}

View File

@@ -0,0 +1,6 @@
// Supporting Javascript for HOST_TLD
function domainUpdate(domain,tld,type) {
document.getElementById('domain_name').value = domain;
document.getElementById('domain_tld').value = tld;
document.getElementById('domain_option').value = type;
}

View File

@@ -0,0 +1,45 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exetm($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/search_show_pre.tpl'}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
{$method->exe_noauth($meth.0,'tpl_search_show')}
{foreach from=$search_show item=record}
{include file='file:../core/search_show_tr_record.tpl' module='service'}
<td>{$record.last_name}, {$record.first_name}</td>
<td>{$record.sid} ({$record.sku})</td>
<td>{$record.invoice_date}</td>
<td style="text-align: right;">{$list->format_currency_num($record.price,$record.billed_currency_id)}</td>
<td style="text-align: center;">
{if $record.billing_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" alt="" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/remov_16.gif" alt="" style="border: 0px;"/>
{/if}
{if $record.process_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="" style="border: 0px;"/>
{/if}
<a href="?_page=core:search&amp;module=service&amp;service_invoice_id={$record.sid}"><img src="themes/{$THEME_NAME}/images/icons/tools_16.gif" alt="Services" style="border: 0px;"/></a>
<a href="?_page=account:view&amp;id={$record.account_id}"><img src="themes/{$THEME_NAME}/images/icons/user_16.gif" alt="" style="border: 0px;"/></a>
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
</form>
</div>
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -1,72 +0,0 @@
{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/search_show_pre.tpl'}
{translate amount=$total_amount module=invoice}search_result_amount{/translate}<br/>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="25" class="table_heading">&nbsp;</td>
<td class="table_heading">
<script type="text/javascript">document.write(search_heading('{translate module=invoice}field_account_id{/translate}','account_id'));</script>
</td>
<td class="table_heading">
<script type="text/javascript">document.write(search_heading('{translate module=service}field_id{/translate}','id'));</script>
</td>
<td class="table_heading">
<script type="text/javascript">document.write(search_heading('{translate module=invoice}XXX{/translate}Next Invoice Date','date_orig'));</script>
</td>
<td class="table_heading">
<script type="text/javascript">document.write(search_heading('{translate module=invoice}field_total_amt{/translate}','total_amt'));</script>
</td>
<td class="table_heading" style="width: 120px; text-align: right;">&nbsp;</td>
</tr>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$invoice item=record}
<tr id="row{$record.sid}" onClick="row_sel('{$record.sid}',1);" onDblClick="window.location='?_page=service:view&id={$record.sid},';" onMouseOver="row_mouseover('{$record.sid}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.sid}', '{$record._C}', 'row_select');" class="{$record._C}">
<td align="center" width="25">
<input type="checkbox" name="record{$record.sid}" value="{$record.sid}" onClick="row_sel('{$record.sid}',1,'{$record._C}');"/>
<script type="text/javascript">row_sel('{$record.sid}',0,'{$record._C}'); record_arr[i] = '{$record.sid}'; i++;</script>
</td>
<td>{$record.last_name}, {$record.first_name}</td>
<td>{$record.sid} ({$record.sku})</td>
<td>{$record.invoice_date}</td>
<td><div align="right">{$list->format_currency_num($record.price,$record.billed_currency_id)}&nbsp;</div></td>
<td>
<center>
{if $record.billing_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" border="0" vspace="2" hspace="2"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/remov_16.gif" border="0" vspace="2" hspace="2"/>
{/if}
{if $record.process_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0" vspace="2" hspace="2"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0" vspace="2" hspace="2"/>
{/if}
<a href="?_page=core:search&module=service&service_invoice_id={$record.sid}"><img title=Services src="themes/{$THEME_NAME}/images/icons/tools_16.gif" border="0" alt="Services" vspace="2" hspace="2"/></a>
<a href="?_page=account:view&id={$record.account_id}"><img src="themes/{$THEME_NAME}/images/icons/user_16.gif" border="0" vspace="2" hspace="2"/></a>
</center>
</td>
</tr>
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</table>
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -3,24 +3,26 @@
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{translate module=invoice}thank_you{/translate}</td>
<td class="table_heading">{t}Thank You{/t}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td>{translate module=invoice}thank_you_text{/translate}</td>
<td style="font-size: 120%; font-weight: bold;">{t}We want to take this opportunity to thank you for your purchase/invoice payment!{/t}</td>
</tr>
<tr valign="top">
<td>
{if $VAR.id != ''}
<a href="?id={$VAR.id}&_page={if $VAR._next_page != ''}{$VAR._next_page}{else}invoice:user_view{/if}">{translate module="invoice"}invoice_link{/translate}</a>
{/if}
{t}From here you may{/t}
<ul>
{if $VAR.id != ''}
<li><a href="?id={$VAR.id}&_page={if $VAR._next_page != ''}{$VAR._next_page}{else}invoice:user_view{/if}">{t}Click here to review your invoice details{/t}</a></li>
{/if}
<li><a href="?_page=account:account">{t}Click here to return to your account{/t}</a></li>
<li><a href="?_page=product_cat:menu">{t}View our other products and services{/t}</a></li>
</ul>
</td>
</tr>
<tr valign="top">
<td><a href="?_page=account:account">{translate module="invoice"}account_link{/translate}</a></td>
</tr>
</table>
</td>
</tr>

View File

@@ -38,7 +38,8 @@
{include file='file:../core/user_search_show_tr_record.tpl'}
<td>{$record.id}</td>
<td>{$list->date_time($record.date_orig)}</td>
<td><div style="text-align: right">{$list->format_currency_num($record.total_amt, $record.actual_billed_currency_id)}</div></td>
<td><div style="text-align: right">{$list->format_currency_num($record.total_amt,$record.actual_billed_currency_id)}</div></td>
<td><div style="text-align: right">{$list->format_currency_num($record.balance,$record.actual_billed_currency_id)}</div></td>
<td style="text-align: center">
{if $record.billing_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" alt="" style="border: 0px;"/>

View File

@@ -147,6 +147,41 @@
<div>
<br/>
</div>
{if $record.payment_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" class="table_background">
<td class="table_heading">{t}Payments Applied{/t}</td>
</tr>
<!-- Loop through each payment item record -->
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top" class="table_background">
<td style="width: 33%;"><b>{t}Payment Date{/t}</b></td>
<td style="width: 33%;"><b>{t}Payment Amount{/t}</b></td>
<td style="width: 33%;"><b>{t}Applied to this invoice{/t}</b></td>
</tr>
{foreach from=$record.payment_data item=pd}
<tr valign="top" class="table_background">
<td>{$list->date($pd.date_payment)}</td>
<td>{$list->format_currency_num($pd.total,$record.actual_billed_currency_id)}</td>
<td>{$list->format_currency_num($pd.alloc,$record.actual_billed_currency_id)}</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<br/>
</div>
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
@@ -423,5 +458,5 @@
{/if}
<!-- custom tracking code -->
{$method->exe('invoice','custom_tracking')}
{$method->exe('invoice','drCustomTracking')}
{/if}

View File

@@ -18,11 +18,11 @@
elements[2] = 'affiliate';
{literal}
function approveInvoice(id,status) {
if(status.value == '1') {
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:approveInvoice';
function pApproveVoid(id,status) {
if(status == '1') {
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:pApproveInvoice';
} else {
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:voidInvoice';
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:pVoidInvoice';
}
}
@@ -32,14 +32,6 @@
document.forms.view.submit();
}
function approveInvoice(id,status,ids) {
if(status == '1') {
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:approveInvoice&ids='+ids;
} else {
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:voidInvoice&ids='+ids;
}
}
function displayArea() {
{/literal}
{if $VAR.area == ""}
@@ -155,6 +147,7 @@
{else}
{$list->format_currency_num($record.balance,$record.billed_currency_id)} (<a href="javascript:showReconcile('{$record.balance}');">{t}Reconcile Invoice{/t}</a>)
{/if}
({$list->format_currency_num($record.credit_amt,$record.billed_currency_id)})
</td>
<td style="width: 1%;">&nbsp;</td>
<td style="width: 32%;">
@@ -198,9 +191,9 @@
<td>&nbsp;</td>
<td>
{if $record.process_status == 1}
Yes (<a href="javascript:approveInvoice('{$record.id}',0);">{t}Void Invoice & Services{/t}</a>)
Yes (<a href="javascript:pApproveVoid('{$record.id}',0);">{t}Void Invoice & Services{/t}</a>)
{elseif $record.billing_status == 1}
No (<a href="javascript:approveInvoice('{$record.id}',1);">{t}Approve Invoice & Services{/t}</a>)
No (<a href="javascript:pApproveVoid('{$record.id}',1);">{t}Approve Invoice & Services{/t}</a>)
{else}
{t}Pending Billing{/t}
{/if}
@@ -299,13 +292,13 @@
{$record.notice_count}&nbsp;<a href="?_page=invoice:view&amp;account_id={$record.account_id}&amp;id={$record.id}&amp;ids={$VAR.ids}&amp;do[]=invoice:resend"><img src="themes/{$THEME_NAME}/images/icons/mail_16.gif" alt="Resend Invoice" width="16" height="16" style="border: 0px;"/></a>
</td>
<td style="width: 5%;"><b>{osb f=tf field=due_date}</b></td>
<td style="width: 45%;"><b>{$list->calender_view('invoice_due_date',$record.due_date,'form_field')}</b></td>
<td style="width: 45%;"><b>{$list->calender_view('invoice_due_date',$record.due_date,'form_field','')}</b></td>
</tr>
<tr valign="top">
<td><b>{osb f=tf field=notice_max}</b></td>
<td><input type="text" name="invoice_notice_max" value="{$record.notice_max}" size="2"/></td>
<td><b>{osb f=tf field=notice_next_date}</b></td>
<td><b>{$list->calender_view('invoice_notice_next_date',$record.notice_next_date,'form_field')}</b></td>
<td><b>{$list->calender_view('invoice_notice_next_date',$record.notice_next_date,'form_field','')}</b></td>
</tr>
<tr valign="top">
<td><b>{osb f=tf field=grace_period}</b></td>
@@ -563,7 +556,7 @@
<td align="right">&nbsp;
{if $record.type == 1 || $cart.service_id > 0}<b><a href="?_page=service:view&amp;id={$cart.service_id}">{$cart.service_id}</a></b> -{/if}
<b><a href="?_page=product:view&amp;id={$cart.product_id}">{$cart.sku}</a></b>
{if $cart.domain_name != ''}(<a href="?_page=service:view&amp;id={$cart.service_id}">{$cart.domain_name}. {$cart.domain_tld}</a>){/if}
{if $cart.domain_name != ''}(<a href="?_page=service:view&amp;id={$cart.service_id}">{$cart.domain_name}.{$cart.domain_tld}</a>){/if}
</td>
<td style="width: 5%; text-align: right;">
{if $cart.attribute_popup != ''}
@@ -682,7 +675,7 @@
<script type="text/javascript">
<!--
displayArea();
var invoice_id = {$record.id};
var invoice_id = '{$record.id}';
var account_id = '{$record.account_id}';
{literal}

View File

@@ -27,7 +27,7 @@
<td style="text-align: center;"><input type="checkbox" name="hidden_record{$record.id}" value="{$record.id}" checked="checked" disabled="disabled"/></td>
{else}
<tr id="row{$record.id}" onclick="row_sel('{$record.id}',1);" 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 style="text-align: center;"><input type="checkbox" name="record{$record.id}" value="{$record.id}" onclick="row_sel('{$record.id}',1,'{$record._C}');"/></td>
<td style="text-align: center;"><input type="checkbox" id="record{$record.id}" name="record{$record.id}" value="{$record.id}" onclick="row_sel('{$record.id}',1,'{$record._C}');"/></td>
{/if}
<td>{$record.name}</td>
<td>

View File

@@ -0,0 +1,34 @@
{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/search_show_pre.tpl'}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
{$method->exe_noauth($meth.0,'tpl_search_show')}
{foreach from=$search_show item=record}
{include file='file:../core/search_show_tr_record.tpl'}
<td>{$record.id}</td>
<td>{$record.account_id}</td>
<td>{$list->date($record.date_orig)}</td>
<td>{$list->format_currency_num($record.total_amt,$record.billed_currency_id)}</td>
<td>{$list->format_currency_num($record.alloc_amt,$record.billed_currency_id)}</td>
<td>{$list->format_currency_num($record.balance,$record.billed_currency_id)}</td>
<td>{$list->format_currency_num($record.acct_bal,$record.billed_currency_id)}</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -0,0 +1,34 @@
{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/search_show_pre.tpl'}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
{$method->exe_noauth($meth.0,'tpl_search_show')}
{foreach from=$search_show item=record}
{include file='file:../core/search_show_tr_record.tpl'}
<td>{$record.id}</td>
<td>{$record.account_id}</td>
<td>{$list->date($record.date_orig)}</td>
<td>{$list->format_currency_num($record.total_amt,$record.billed_currency_id)}</td>
<td>{$list->format_currency_num($record.alloc_amt,$record.billed_currency_id)}</td>
<td>{$list->format_currency_num($record.balance,$record.billed_currency_id)}</td>
<td>{$list->format_currency_num($record.acct_bal,$record.billed_currency_id)}</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -0,0 +1,34 @@
{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/search_show_pre.tpl'}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
{$method->exe_noauth($meth.0,'tpl_search_show')}
{foreach from=$search_show item=record}
{include file='file:../core/search_show_tr_record.tpl'}
<td>{$record.id}</td>
<td>{$record.account_id}</td>
<td>{$record.invoice_id}</td>
<td>{$list->date($record.date_orig)}</td>
<td>{$list->format_currency_num($record.total_amt,$record.billed_currency_id)}</td>
<td>{$list->format_currency_num($record.billed_amt,$record.billed_currency_id)}</td>
<td>{$list->format_currency_num($record.alloc_amt,$record.billed_currency_id)}</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -0,0 +1,66 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="add" 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 style="width: 35%;">{osb f=tf field=account_id}</td>
<td style="width: 65%;">{osb f=autoselect module=account return=id field=payment_account_id default=$VAR.payment_account_id}</td>
</tr>
{if $VAR.payment_account_id}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_payment}</td>
<td style="width: 65%;">{$list->calender_add('payment_date_payment','now','form_field','')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=checkout_plugin_id}</td>
<td style="width: 65%;">{$list->mmenu('no','payment_checkout_plugin_id','checkout','name',$VAR.payment_checkout_plugin_id,'active=1','',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=total_amt}</td>
<td style="width: 65%;"><input type="text" name="payment_total_amt" value="{$VAR.payment_total_amt}" {if $payment_total_amt == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=fees_amt}</td>
<td style="width: 65%;"><input type="text" name="payment_fees_amt" value="{$VAR.payment_fees_amt}" {if $payment_fees_amt == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=notes}</td>
<td style="width: 65%;"><textarea name="payment_notes" cols="25" rows="2" {if $payment_notes == true}class="form_field_error"{/if}>{$VAR.payment_notes}</textarea></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
{else}
<tr valign="top">
<td style="width: 35%;"><input type="hidden" name="_page" value="payment:add"/></td>
{include file='file:../core/view_td_submit.tpl'}
</tr>
{/if}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="payment_source_id" value="{$smarty.const.SESS_ACCOUNT}">
</div>
</form>

View File

@@ -0,0 +1,51 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- @todo change to exe() -->
{$method->exe_noauth($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/search_show_pre.tpl'}
<!-- Display each record -->
<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">{t}Invoice Date{/t}</td>
<td class="table_heading">{t}Invoice Number{/t}</td>
<td class="table_heading">{t}Invoice Amount{/t}</td>
<td class="table_heading">{t}Invoice Balance{/t}</td>
<td class="table_heading">{t}Allocate{/t}</td>
</tr>
{foreach from=$invoices item=record}
<tr id="row{$record.id}" onclick="row_sel('{$record.id}',1);" ondblclick="window.location='?_page=invoice:view&amp;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>{$list->date($record.date_orig)}</td>
<td id="record{$record.id}" style="width: 150px;">{$record.id}</td>
<td>{$list->format_currency_num($record.total_amt,$smarty.const.SESS_CURRENCY)} ({$list->format_currency_num($record.credit_amt,$smarty.const.SESS_CURRENCY)})</td>
<td>{$list->format_currency_num($record.balance,$smarty.const.SESS_CURRENCY)}</td>
<td><input type="text" name="payment_item_allocate[{$record.id}]" value="{$record.alloc_amt}"/></td>
</tr>
{/foreach}
</table>
</td>
</tr>
<tr class="row1">
<td>&nbsp;</td>
</tr>
<tr class="row2">
{include file='file:../core/view_td_submit.tpl'}
</tr>
</table>
<div>
<input type="hidden" name="do[]" value="payment_item:allocate"/>
</div>
</form>
</div>
{/if}

View File

@@ -0,0 +1,62 @@
{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}
<form id="search_form" 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="35%">{osb f=tf field=account_id}</td>
<td width="65%">{osb f=autoselect module=account return=id field=payment_account_id default=$record.account_id}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=source_id}</td>
<td width="65%">{osb f=autoselect module=account return=id field=payment_source_id default=$record.source_id}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=checkout_plugin_id}</td>
<td width="65%">{$list->menu('','payment_checkout_plugin_id','checkout','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=billed_currency_id}</td>
<td width="65%">{$list->menu('','payment_billed_currency_id','currency','name','','form_menu',true)}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=date_orig}</td>
<td width="65%">{$list->calender_search('payment_date_orig',$VAR.payment_date_orig,'form_field','')}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=payment_date}</td>
<td width="65%">{$list->calender_search('payment_payment_date',$VAR.payment_payment_date,'form_field','')}</td>
</tr>
<tr valign="top">
<td width="35%">{osb f=tf field=refund_status}</td>
<td width="65%">{$list->bool('payment_refund_status','all')}</td>
</tr>
{include file='file:../core/search_post.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{$block->display('core:saved_searches')}
{$block->display('core:recent_searches')}
{/if}

View File

@@ -0,0 +1,12 @@
{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/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -0,0 +1,77 @@
{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} {$record.id}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=account_id}</td>
<td style="width: 65%;">{osb f=autoselect module=account return=id field=payment_account_id default=$record.account_id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_payment}</td>
<td style="width: 65%;">{$list->calender_view('payment_date_payment',$record.date_payment,'form_field')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=checkout_plugin_id}</td>
<td style="width: 65%;">{$list->mmenu('no','payment_checkout_plugin_id','checkout','name',$record.checkout_plugin_id,'active=1','',true)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=total_amt}</td>
<td style="width: 65%;"><input type="text" name="payment_total_amt" value="{$record.total_amt}" {if $payment_total_amt == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=fees_amt}</td>
<td style="width: 65%;"><input type="text" name="payment_fees_amt" value="{$record.fees_amt}" {if $payment_fees_amt == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=notes}</td>
<td style="width: 65%;"><textarea name="payment_notes" cols="25" rows="2" {if $payment_notes == true}class="form_field_error"{/if}>{$record.notes}</textarea></td>
</tr>
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
<iframe name="iframe" id="iframe" style="border:0px; width:0px; height:0px;" scrolling="auto" allowtransparency="true" frameborder="0" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
<script type="text/javascript">
<!--
{literal}
function showUnpaidInvoices(payment,account) {
showIFrame('iframe',getPageWidth(650),350,'?_page=payment:allocate&payment_id='+payment);
}
showUnpaidInvoices({/literal}{$record.id}{literal});
{/literal}
//-->
</script>
{/if}

View File

@@ -107,5 +107,10 @@
<div>
<input type="hidden" name="product_active" value="1"/>
<input type="hidden" name="product_discount" value="0"/>
<input type="hidden" name="product_price_group" value=""/>
<input type="hidden" name="product_price_recurr_type" value=""/>
<input type="hidden" name="product_price_recurr_weekday" value=""/>
<input type="hidden" name="product_price_recurr_week" value=""/>
<input type="hidden" name="product_price_recurr_default" value=""/>
</div>
</form>

View File

@@ -7,12 +7,13 @@
{else}
<div style="text-align: center;">
<input type="submit" onclick="addCart('cart','{$product.host}')" name="cart" value="{t}Add to Cart{/t}" class="form_button"/><br/>
<input type="submit" onclick="addCart('cart','{$record.host}')" name="cart" value="{t}Add to Cart{/t}" class="form_button"/><br/>
<br/>
</div>
<form id="view" name="product_view" method="post" action="" enctype="multipart/form-data">
{if $list->translate('product_translate','name,description_full','product_id',$product.id,'translate_product')}{/if}
<form id="view" name="view" method="post" action="" enctype="multipart/form-data">
{if $list->translate('product_translate','name,description_full','product_id',$record.id,'translate_product')}{/if}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td><b>{$translate_product.name}</b></td>
@@ -27,8 +28,8 @@
<td style="width: 50%;">&nbsp;</td>
</tr>
<tr valign="top" class="row1">
<td style="width: 50%;">{$product.sku}</td>
<td style="width: 50%;" valign="middle">{if $product.cart_multiple} {t}Quantity{/t}: <input name="quantity" type="text" id="quantity" value="1" size="3" maxlength="3"/>{/if}</td>
<td style="width: 50%;">{$record.sku}</td>
<td style="width: 50%;" valign="middle">{if $record.cart_multiple} {t}Quantity{/t}: <input name="quantity" type="text" id="quantity" value="1" size="3" maxlength="3"/>{/if}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
@@ -37,190 +38,38 @@
<td style="width: 50%;"><b>{osb f=tf field=taxable}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_staticlist('pricetype','','',$product.price_type,'form_menu')}</td>
<td style="width: 50%;">{$list->bool('',$product.taxable,'form_field')}</td>
<td style="width: 50%;">{$list->menu_staticlist('pricetype','','',$record.price_type,'form_menu')}</td>
<td style="width: 50%;">{$list->bool('',$record.taxable,'form_field')}</td>
</tr>
</table>
{if $product.price_type == '1'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;"><b>{osb f=tf field=price_recurr_type}</b></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 50%;">
<select name="recurr_schedule">
{foreach from=$price item=price_recurr key=key}
<option value="{$key}" {if $product.price_recurr_default == $key} selected="selected"{/if}>
{$list->format_currency($price_recurr.base,$smarty.const.SESS_CURRENCY)}&nbsp;
{$list->menu_staticlist('recur_schedule','','',$key,'form_menu')}
{if $price_recurr.setup > 0}+&nbsp;{$list->format_currency($price_recurr.setup,$smarty.const.SESS_CURRENCY)} {t}Setup{/t}{/if}
</option>
{/foreach}
</select>
</td>
</tr>
</table>
{if $record.price_type == '1'}
{include file='file:ti_product-price_type-1.tpl'}
{elseif $record.price_type == '2'}
{include file='file:ti_product-price_type-2.tpl'}
{else}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;"><b>{osb f=tf field=price_base}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=price_setup}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->format_currency($price.base,$smarty.const.SESS_CURRENCY)}</td>
<td style="width: 50%;">{$list->format_currency($price.setup,$smarty.const.SESS_CURRENCY)}</td>
</tr>
</table>
{/if}
{if $product.price_type == '2'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="76%">
{translate module=product sku=$trial.sku}trial_desc{/translate}<br/>
{if $product.price_trial_length_type == '0'}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_days{/translate}{/if}
{if $product.price_trial_length_type == '1'}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_weeks{/translate}{/if}
{if $product.price_trial_length_type == '2'}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_months{/translate}{/if}
<br/>
{translate module=product sku2=$trial.sku}trial_bill_desc{/translate}
</td>
</tr>
</table>
{include file='file:ti_product-price_type-x.tpl'}
{/if}
{if $attr}
<br/>
{foreach from=$attr item=attr_arr key=key}
{assign var=attr_id value=$attr_arr.id}
{if $attr_arr.type == '0'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="middle" class="row2">
<td width="96%">&nbsp;
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
<td width="30%" valign="middle" align="right">
{if $attr_arr.price_base != 0}{$list->format_currency($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0} + {/if}
{$list->format_currency($attr_arr.price_setup,$smarty.const.SESS_CURRENCY)}
{translate module=product}setup{/translate}
{/if}
</td>
</tr>
</table>
</td>
</tr>
{if $attr_arr.description}
<tr valign="top">
<td width="96%">&nbsp;&nbsp;<input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked="checked"{/if}/>&nbsp;{$attr_arr.description}</td>
</tr>
{/if}
</table>
{include file='file:ti_product_attr-collect_type-0.tpl'}
{elseif $attr_arr.type == '1'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="middle" class="row2">
<td width="96%">&nbsp;
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
<td width="30%" valign="middle" align="right">
{if $attr_arr.price_base != 0}{$list->format_currency($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0} + {/if}
{$list->format_currency($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{translate module=product}setup{/translate}
{/if}
</td>
</tr>
</table>
</td>
</tr>
{if $attr_arr.description}
<tr valign="top">
<td width="96%">&nbsp;&nbsp;<input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20"/>&nbsp;{$attr_arr.description}</td>
</tr>
{/if}
</table>
{include file='file:ti_product_attr-collect_type-1.tpl'}
{elseif $attr_arr.type == '2'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="middle" class="row2">
<td width="96%">&nbsp;
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
<td width="30%" valign="middle" align="right">
{if $attr_arr.price_base != 0}{$list->format_currency($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0} + {/if}
{$list->format_currency($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{translate module=product}setup{/translate}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%">
<select id="attr_{$attr_id}" name="attr[{$attr_id}]" >
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
<option value="{$attr_menu.name}">
{$attr_menu.name}
{if $attr_menu.base > 0}: {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_menu.base > 0 && $attr_menu.setup > 0} + {elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}: {/if}
{if $attr_menu.setup > 0}
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
{translate module=product}setup{/translate}
{/if}
</option>
{/foreach}
</select>
&nbsp;{$attr_arr.description}
</td>
</tr>
</table>
{include file='file:ti_product_attr-collect_type-2.tpl'}
{/if}
{/foreach}
{/if}
{if $product.host}
{if $record.host}
<br/>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="middle" class="row2">
<td width="96%">&nbsp;
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="70%" valign="middle"><b>{translate module=product}domain_options{/translate}</b></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%">
{if $product.host_allow_domain}
<input type="radio" id="register" name="domain_type" value="register" onclick="domainUpdate('0','0','register'); showIFrame('iframeDomain',500,100,'?_page=host_tld:iframe_register&_escape=1');"/>
{translate module=product}domain_register{/translate}<br/>
<input type="radio" id="transfer" name="domain_type" value="transfer" onclick="domainUpdate('0','0','transfer'); showIFrame('iframeDomain',500,100,'?_page=host_tld:iframe_transfer&_escape=1');"/>
{translate module=product}domain_transfer{/translate}
{/if}
<br/>
<input type="radio" id="ns_transfer" name="domain_type" value="ns_transfer" onclick="domainUpdate('0','0','ns_transfer'); showIFrame('iframeDomain',500,70,'?_page=host_tld:iframe_ns_transfer&_escape=1');"/>
{translate module=product}domain_ns_transfer{/translate}
{if $product.host_allow_host_only}
<br/>
<input type="radio" id="ip" name="domain_type" value="ip" onclick="domainUpdate('0','0','ip'); hideIFrame('iframeDomain');"/>
{translate module=product}domain_ip{/translate}<br/>
{/if}
<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"/>
<iframe name="iframeDomain" id="iframeDomain" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" ALLOWTRANSPARENCY="false" frameborder="0" class="row1"><br></iframe>
</td>
</tr>
</table>
{include file='file:ti_product_host.tpl'}
{/if}
{if $product.prod_plugin}
{if $record.prod_plugin}
<table>
<tr valign="top">
<td align="left">{osb f=plugin type=product name=$product.prod_plugin_file name_prefix=order_ data=$product.prod_plugin_data admin=true}</td>
<td align="left">{osb f=plugin type=product name=$record.prod_plugin_file name_prefix=order_ data=$record.prod_plugin_data admin=true}</td>
</tr>
</table>
{/if}
@@ -228,38 +77,48 @@
<div>
<input type="hidden" id="page" name="_page" value=""/>
<input type="hidden" name="do[]" value="cart:admin_add"/>
<input type="hidden" name="product_id" value="{$product.id}"/>
<input type="hidden" name="product_id" value="{$record.id}"/>
<input type="hidden" name="account_id" value="{$VAR.account_id}"/>
</div>
</form>
<script type="text/javascript" src="themes/default/cart.js"></script>
<script type="text/javascript" src="themes/default/blocks/product/product.js"></script>
<script type="text/javascript">
<!--
{literal}
function attrValidate(addtype) {
var val_arr = new Array(2);
var i=0;
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
i++;
{/if}{/foreach} {literal}
for(ii=0; ii < i; ii++) {
if(!document.getElementById(val_arr[ii][0]).value) {
{/literal}
{foreach from=$attr item=attr_arr key=key}
{assign var=attr_id value=$attr_arr.id}
{if $attr_arr.required == '1'}
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
i++;
{/if}
{/foreach}
{literal}
for (ii=0; ii < i; ii++) {
if (! document.getElementById(val_arr[ii][0]).value) {
document.getElementById(val_arr[ii][0]).focus();
if(val_arr[ii][2] == "1") {
alert("You must select an option for \""+val_arr[ii][1]+"\"");
if(val_arr[ii][2] == '1') {
alert('You must select an option for "'+val_arr[ii][1]+'"');
} else {
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
alert('You must enter a value for the product option "'+val_arr[ii][1]+'"')
}
return false;
}
}
// product plugin validation:
var val_plugin=false;
try{ val_plugin = product_plugin_validate(); } catch(e) { val_plugin = true; }
if(val_plugin) doCart(addtype);
try{val_plugin = product_plugin_validate();} catch(e) {val_plugin = true;}
if (val_plugin)
doCart(addtype);
}
{/literal}
//-->

View File

@@ -2,13 +2,13 @@
<!-- {$meth.0}:{$meth.1} -->
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false) || ! $product}
{if ($method->result == false) || ! $record}
{$block->display('core:method_error')}
{else}
<form id="view" method="post" action="" enctype="multipart/form-data">
{if $list->translate('product_translate','name,description_full','product_id',$product.id,'translate_product')}{/if}
{if $list->translate('product_translate','name,description_full','product_id',$record.id,'translate_product')}{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
@@ -18,10 +18,10 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
<tr valign="top">
<td style="width: 75%;">
{if $list->translate('product_translate','name,description_short,description_full','product_id',$product.id,'prod_translate')}
{$prod_translate.name}
{if $translate_product.name}
{$translate_product.name}
{else}
{$product.sku}
{$record.sku}
{/if}
</td>
<td style="width: 25%;" valign="middle" align="right">&nbsp;</td>
@@ -36,14 +36,19 @@
<td align="left">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td style="width: 50%;">
{if $product.thumbnail != ''}<img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}" alt="" hspace="5" style="border: 0px"/>{/if}
<td>
{if $record.thumbnail != ''}<img src="{$URL}{$smarty.const.URL_IMAGES}{$record.thumbnail}" alt="" hspace="5" style="border: 0px"/>{/if}
{$translate_product.description_full}
</td>
</tr>
</table>
</td>
</tr>
{if $record.prod_plugin}
<tr valign="top">
<td align="left">{osb f=plugin type=product name=$record.prod_plugin_file name_prefix=order_ data=$record.prod_plugin_data}</td>
</tr>
{/if}
<tr valign="top">
<td align="left">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
@@ -52,7 +57,7 @@
<td style="width: 50%;"><b>{t}Currency{/t}</b></td>
</tr>
<tr valign="top" class="body">
<td style="width: 50%;">{$product.sku}</td>
<td style="width: 50%;">{$record.sku}</td>
<td style="width: 50%;" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
@@ -76,242 +81,49 @@
<td style="width: 50%;"><b>{osb f=tf field=taxable}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_staticlist('pricetype','','',$product.price_type,'form_menu')}</td>
<td style="width: 50%;">{$list->bool('',$product.taxable,'form_field')}</td>
<td style="width: 50%;">{$list->menu_staticlist('pricetype','','',$record.price_type,'form_menu')}</td>
<td style="width: 50%;">{$list->bool('',$record.taxable,'form_field')}</td>
</tr>
</table>
{if $product.price_type == '1'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td style="width: 50%;"><b>{osb f=tf field=price_recurr_type}</b></td>
</tr>
<tr valign="top" class="body">
<td style="width: 50%;">
<select name="recurr_schedule">
{foreach from=$price item=price_recurr key=key}
<option value="{$key}" {if $product.price_recurr_default == $key} selected="selected"{/if}>
{$list->format_currency($price_recurr.base,$smarty.const.SESS_CURRENCY)}&nbsp;
{$list->menu_staticlist('recur_schedule','','',$key,'form_menu')}
{if $price_recurr.setup > 0}+&nbsp;{$list->format_currency($price_recurr.setup,$smarty.const.SESS_CURRENCY)} {t}Setup{/t}{/if}
</option>
{/foreach}
</select>
</td>
</tr>
</table>
{else}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td style="width: 50%;"><b>{osb f=tf field=price_base}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=price_setup}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->format_currency($price.base,$smarty.const.SESS_CURRENCY)}</td>
<td style="width: 50%;">{$list->format_currency($price.setup,$smarty.const.SESS_CURRENCY)}</td>
</tr>
</table>
{/if}
{if $product.price_type == '2'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top">
<td width="76%">
{translate module=product sku=$trial.sku}trial_desc{/translate} <a href="?_page=product:details&id={$product.price_trial_prod}">{translate}view{/translate}</a><br/>
{if $product.price_trial_length_type == "0"}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_days{/translate}{/if}
{if $product.price_trial_length_type == "1"}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_weeks{/translate}{/if}
{if $product.price_trial_length_type == "2"}{translate module=product sku1=$trial.sku length=$product.price_trial_length}trial_length_months{/translate}{/if}<br/>
{translate module=product sku2=$trial.sku}trial_bill_desc{/translate}
This trial will last for %%length%% weeks before it expires and you are billed for the full cost of SKU %%sku1%%.
</td>
</tr>
</table>
{/if}
{if $attr}
<br/>
{foreach from=$attr item=attr_arr key=key}
{assign var=attr_id value=$attr_arr.id}
{if $attr_arr.type == '0'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
<td width="30%" valign="middle" align="right">
{if $attr_arr.price_base != 0}{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0} + {/if}
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{t}Setup{/t}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%"><input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked="checked"{/if}/>{$attr_arr.description}</td>
</tr>
</table>
{elseif $attr_arr.type == "1"}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
<td width="30%" valign="middle" align="right">
{if $attr_arr.price_base != 0}{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0} + {/if}
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{t}Setup{/t}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%"><input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20"/>{$attr_arr.description}</td>
</tr>
</table>
{elseif $attr_arr.type == "3"}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
<td width="30%" valign="middle" align="right">
{if $attr_arr.price_base != 0}{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0} + {/if}
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{t}Setup{/t}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%"><textarea id="attr_{$attr_id}" name="attr[{$attr_id}]2" cols="50" rows="3"></textarea>&nbsp;{$attr_arr.description}</td>
</tr>
</table>
{elseif $attr_arr.type == '2'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>{$attr_arr.name}</b></td>
<td width="30%" valign="middle" align="right">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%">
<select id="attr_{$attr_id}" name="attr[{$attr_id}]">
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
<option value="{$attr_menu.name}">
{$attr_menu.name}
{if $attr_menu.base > 0}: {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_menu.base > 0 && $attr_menu.setup > 0} + {elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}: {/if}
{if $attr_menu.setup > 0}
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
{t}Setup{/t}
{/if}
</option>
{/foreach}
</select>
&nbsp;
{$attr_arr.description}
</td>
</tr>
</table>
{/if}
{/foreach}
{/if}
{if $product.host}
<br/>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>{t}Domain Transfer / Registrations Options{/t}</b></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%">
{if $product.host_allow_domain}
<input type="radio" id="register" name="domain_type" value="register" onClick="domainUpdate('0','0','register'); showIFrame('iframeDomainDetails',480,95,'?_page=host_tld:iframe_register&_escape=1');"> {translate module=product}domain_register{/translate}<br/>
<input type="radio" id="transfer" name="domain_type" value="transfer" onClick="domainUpdate('0','0','transfer'); showIFrame('iframeDomainDetails',480,110,'?_page=host_tld:iframe_transfer&_escape=1');"> {translate module=product}domain_transfer{/translate}<br/>
{/if}
<input type="radio" id="ns_transfer" name="domain_type" value="ns_transfer" onClick="domainUpdate('0','0','ns_transfer'); showIFrame('iframeDomainDetails',480,70,'?_page=host_tld:iframe_ns_transfer&_escape=1');">{translate module=product}domain_ns_transfer{/translate}
{if $product.host_allow_host_only}
<br/>
<input type="radio" id="ip" name="domain_type" value="ip" onClick="domainUpdate('0','0','ip'); hideIFrame('iframeDomainDetails');">{t}All I need is an IP based hosting plan.{/t}<br/>
{/if}
<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">
<iframe name="iframeDomainDetails" id="iframeDomainDetails" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" allowtransparency="false" frameborder="0" class="body" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"><br></iframe>
</td>
</tr>
</table>
{/if}
<script type="text/javascript" src="themes/default/cart.js"></script>
<script type="text/javascript">
<!-- START
{literal}
function CurrencyChange(obj) { document.location='?_page=product:details&id={/literal}{$VAR.id}{literal}&cyid='+obj.value; }
function attrValidate(addtype) {
var val_arr = new Array(2);
var i=0;
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
i++;
{/if}{/foreach} {literal}
for(ii=0; ii < i; ii++)
{
if(!document.getElementById(val_arr[ii][0]).value) {
document.getElementById(val_arr[ii][0]).focus();
if(val_arr[ii][2] == "1") {
alert("You must select an option for \""+val_arr[ii][1]+"\"");
} else {
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
}
return false;
}
}
// product plugin validation:
var val_plugin=false;
try{ val_plugin = product_plugin_validate(); } catch(e) { val_plugin = true; }
if(val_plugin) doCart(addtype);
}
{/literal}
//-->
</script>
</td>
</tr>
<tr valign="top">
<td align="left">
{if $record.price_type == '1'}
{include file='file:ti_product-price_type-1.tpl'}
{elseif $record.price_type == '2'}
{include file='file:ti_product-price_type-2.tpl'}
{else}
{include file='file:ti_product-price_type-x.tpl'}
{/if}
{if $attr}
<br/>
{foreach from=$attr item=attr_arr key=key}
{assign var=attr_id value=$attr_arr.id}
{if $attr_arr.type == '0'}
{include file='file:ti_product_attr-collect_type-0.tpl'}
{elseif $attr_arr.type == '1'}
{include file='file:ti_product_attr-collect_type-1.tpl'}
{elseif $attr_arr.type == '2'}
{include file='file:ti_product_attr-collect_type-2.tpl'}
{elseif $attr_arr.type == '3'}
{include file='file:ti_product_attr-collect_type-3.tpl'}
{/if}
{/foreach}
{/if}
{if $record.host}
<br/>
{include file='file:ti_product-host.tpl'}
{/if}
{/if}
</td>
</tr>
{if $product.cart_multiple}
{if $record.cart_multiple}
<tr valign="top">
<td align="left"><strong>Quantity:</strong> <input name="quantity" type="text" id="quantity" value="1" size="3" maxlength="3"></td>
</tr>
{/if}
{if $product.prod_plugin}
<tr valign="top">
<td align="left">{osb f=plugin type=product name=$product.prod_plugin_file name_prefix=order_ data=$product.prod_plugin_data}</td>
</tr>
{/if}
</table>
</td>
</tr>
@@ -323,12 +135,61 @@
<div>
<input type="hidden" id="page" name="_page" value=""/>
<input type="hidden" name="do[]" value="cart:add"/>
<input type="hidden" name="product_id" value="{$product.id}"/>
<input type="hidden" name="product_id" value="{$record.id}"/>
<input type="hidden" name="s" value="{$SESS}"/>
</div>
</form>
<p style="text-align: center;">
<input type="submit" onclick="addCart('cart','{$product.host}')" name="cart2" value="{t}Add to Cart{/t}" class="form_button"/>
<input type="submit" onclick="addCart('checkout','{$product.host}')" name="checkout2" value="{t}Add to Cart & Checkout{/t}" class="form_button"/>
<input type="submit" onclick="addCart('cart','{$record.host}')" name="cart2" value="{t}Add to Cart{/t}" class="form_button"/>
<input type="submit" onclick="addCart('checkout','{$record.host}')" name="checkout2" value="{t}Add to Cart & Checkout{/t}" class="form_button"/>
</p>
<script type="text/javascript" src="themes/default/blocks/product/product.js"></script>
<script type="text/javascript">
<!-- START
{literal}
function CurrencyChange(obj) {
{/literal}
document.location='?_page=product:details&id={$VAR.id}&cyid='+obj.value;
{literal}
}
// @todo this function is mostly duplicated in admin_details.tpl & details_wizard.tpl
function attrValidate(addtype) {
var val_arr = new Array(2);
var i=0;
{/literal}
{foreach from=$attr item=attr_arr key=key}
{assign var=attr_id value=$attr_arr.id}
{if $attr_arr.required == '1'}
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
i++;
{/if}
{/foreach}
{literal}
for (ii=0; ii < i; ii++) {
if (! document.getElementById(val_arr[ii][0]).value) {
document.getElementById(val_arr[ii][0]).focus();
if(val_arr[ii][2] == '1') {
alert('You must select an option for "'+val_arr[ii][1]+'"');
} else {
alert('You must enter a value for the product option "'+val_arr[ii][1]+'"')
}
return false;
}
}
// product plugin validation:
var val_plugin=false;
try{val_plugin = product_plugin_validate(); } catch(e) {val_plugin = true;}
if (val_plugin)
doCart(addtype);
}
{/literal}
//-->
</script>

View File

@@ -1,549 +1,187 @@
{ $method->exe("product","details") } { if ($method->result == FALSE || !$product) } { $block->display("core:method_error") } {else}
{if $product}
<form id="product_view" name="product_view" method="post" action="">
<input type="hidden" id="page" name="_page" value="">
<input type="hidden" name="do[]" value="cart:add">
<input type="hidden" name="product_id" value="{$product.id}">
<input type="hidden" name="s" value="{$SESS}">
{if $list->translate("product_translate","name,description_full", "product_id", $product.id, "translate_product")}
{/if}
<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%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
<tr valign="top">
<td width="78%" >
<p>
{if $list->translate("product_translate","name,description_short,description_full","product_id", $product.id, "prod_translate") }
{$prod_translate.name},
{translate module=product} field_sku {/translate} "<u>{$product.sku}</u>"
{else}
{$product.sku}
{/if}
</p>
</td>
<td width="22%" valign="middle" align="right"> <b> </b> </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="body">
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body" bgcolor="#FFFFFF">
<tr valign="top">
<td width="92%" align="left">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td width="50%">
{if $product.thumbnail != ""}
<img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}" hspace="5" border="0">
{/if}
{$translate_product.description_full}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="92%" align="left">
{if $product.price_type == "1" }
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td width="50%"><b>
{translate module=product}
field_price_recurr_type
{/translate}
</b></td>
</tr>
<tr valign="top" class="body">
<td width="50%">
<select name="recurr_schedule" >
{foreach from=$price item=price_recurr key=key}
<option value="{$key}" {if $product.price_recurr_default == $key} selected{/if}>
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
&nbsp;
{if $key == "0" }
{translate module=product}
recurr_week
{/translate}
{/if}
{if $key == "1" }
{translate module=product}
recurr_month
{/translate}
{/if}
{if $key == "2" }
{translate module=product}
recurr_quarter
{/translate}
{/if}
{if $key == "3" }
{translate module=product}
recurr_semianual
{/translate}
{/if}
{if $key == "4" }
{translate module=product}
recurr_anual
{/translate}
{/if}
{if $key == "5" }
{translate module=product}
recurr_twoyear
{/translate}
{/if}
{if $key == "6" }
{translate module=product}
recurr_threeyear
{/translate}
{/if}
{if $price_recurr.setup > 0}
&nbsp; + &nbsp;
{$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)}
{translate module=product}
setup
{/translate}
{/if}
</option>
{/foreach}
</select>
</td>
</tr>
</table>
{else}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td width="50%"> <b>
{translate module=product}
field_price_base
{/translate}
</b> </td>
<td width="50%"> <b>
{translate module=product}
field_price_setup
{/translate}
</b> </td>
</tr>
<tr valign="top">
<td width="50%">
{$list->format_currency($price.base, $smarty.const.SESS_CURRENCY)}
</td>
<td width="50%">
{$list->format_currency($price.setup, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
</table>
{/if}
{if $product.price_type == "2"}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top">
<td width="76%">
{translate module=product sku=$trial.sku}
trial_desc
{/translate}
<a href="?_page=product:details&id={$product.price_trial_prod}">
{translate}
view
{/translate}
</a><br>
{if $product.price_trial_length_type == "0"}
{translate module=product sku1=$trial.sku length=$product.price_trial_length}
trial_length_days
{/translate}
{/if}
{if $product.price_trial_length_type == "1"}
{translate module=product sku1=$trial.sku length=$product.price_trial_length}
trial_length_weeks
{/translate}
{/if}
{if $product.price_trial_length_type == "2"}
{translate module=product sku1=$trial.sku length=$product.price_trial_length}
trial_length_months
{/translate}
{/if}
<br>
{translate module=product sku2=$trial.sku}
trial_bill_desc
{/translate}
</td>
</tr>
</table>
{/if}
{if $attr}
<br>
{foreach from=$attr item=attr_arr key=key}
{assign var=attr_id value=$attr_arr.id}
{if $attr_arr.type == "0"}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%"> <b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>
{$attr_arr.name}
</b></td>
<td width="30%" valign="middle" align="right">
{if $attr_arr.price_base != 0}
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0}
+
{/if}
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{translate module=product}
setup
{/translate}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%">
<input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked{/if} >
&nbsp;
{$attr_arr.description}
</td>
</tr>
</table>
{elseif $attr_arr.type == "1"}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%"> <b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>
{$attr_arr.name}
</b></td>
<td width="30%" valign="middle" align="right">
{if $attr_arr.price_base != 0}
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0}
+
{/if}
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{translate module=product}
setup
{/translate}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%">
<input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20" >
&nbsp;
{$attr_arr.description}
</td>
</tr>
</table>
{elseif $attr_arr.type == "3"}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%"> <b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>
{$attr_arr.name}
</b></td>
<td width="30%" valign="middle" align="right">
{if $attr_arr.price_base != 0}
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0}
+
{/if}
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{translate module=product}
setup
{/translate}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%">
<textarea id="attr_{$attr_id}" name="attr[{$attr_id}]2" cols="50" rows="3"></textarea>
&nbsp;
{$attr_arr.description}
</td>
</tr>
</table>
{elseif $attr_arr.type == "2"}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%"> <b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>
{$attr_arr.name}
</b></td>
<td width="30%" valign="middle" align="right"> </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%">
<select id="attr_{$attr_id}" name="attr[{$attr_id}]" >
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
<option value="{$attr_menu.name}">
{$attr_menu.name}
{if $attr_menu.base > 0}
:
{$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}
{/if}
{if $attr_menu.base > 0 && $attr_menu.setup > 0}
+
{elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}
:
{/if}
{if $attr_menu.setup > 0}
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
{translate module=product}
setup
{/translate}
{/if}
</option>
{/foreach}
</select>
&nbsp;
{$attr_arr.description}
</td>
</tr>
</table>
{/if}
{/foreach}
{/if}
{if $product.host}
<br>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td width="96%"> <b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="70%" valign="middle"><b>
{translate module=product}
domain_options
{/translate}
</b></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="96%">
{if $product.host_allow_domain}
<input type="radio" id="register" name="domain_type" value="register" onClick="domainUpdate('0','0','register'); showIFrame('iframeDomainDetails',480,95,'?_page=host_tld:iframe_register&_escape=1');">
{translate module=product}
domain_register
{/translate}
<br>
<input type="radio" id="transfer" name="domain_type" value="transfer" onClick="domainUpdate('0','0','transfer'); showIFrame('iframeDomainDetails',480,110,'?_page=host_tld:iframe_transfer&_escape=1');">
{translate module=product}
domain_transfer
{/translate}
{/if}
<br>
<input type="radio" id="ns_transfer" name="domain_type" value="ns_transfer" onClick="domainUpdate('0','0','ns_transfer'); showIFrame('iframeDomainDetails',480,70,'?_page=host_tld:iframe_ns_transfer&_escape=1');">
{translate module=product}
domain_ns_transfer
{/translate}
{if $product.host_allow_host_only}
<br>
<input type="radio" id="ip" name="domain_type" value="ip" onClick="domainUpdate('0','0','ip'); hideIFrame('iframeDomainDetails');">
{translate module=product}
domain_ip
{/translate}
<br>
{/if}
<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">
<iframe name="iframeDomainDetails" id="iframeDomainDetails" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" allowtransparency="true" frameborder="0" class="body" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"><br>
</iframe> </td>
</tr>
</table>
{/if}
{literal}
<!-- Define the update delete function -->
<script language="JavaScript">
<!-- START
function domainUpdate(domain,tld,type)
{
document.getElementById("domain_name").value = domain;
document.getElementById("domain_tld").value = tld;
document.getElementById("domain_option").value = type;
}
function addCart(addtype)
{
var hosting = '{/literal}{$product.host}{literal}';
if(addtype == 'register') {
document.getElementById('login').style.display='none';
document.getElementById('input_login').name = 'xxx';
} else if (addtype == 'login') {
document.getElementById('login').style.display='block';
document.getElementById('input_login').name = '_login';
} else {
document.getElementById('login').style.display='none';
document.getElementById('input_login').name = 'xxx';
}
if (hosting == "1")
{
var domain_option =document.getElementById("domain_option").value;
var domain_name =document.getElementById("domain_name").value;
var domain_tld =document.getElementById("domain_tld").value;
if(domain_option == "0")
{
alert("{/literal}{translate module=product}host_domain_opt{/translate}{literal}");
return;
}
if(domain_name == "0" || domain_tld == "0")
{
if(domain_option != "ip")
{
alert("{/literal}{translate module=product}host_domain_inv{/translate}{literal}");
return;
}
}
}
attrValidate(addtype);
}
function attrValidate(addtype)
{
var val_arr = new Array(2);
var i=0;
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
i++;
{/if}{/foreach} {literal}
for(ii=0; ii < i; ii++)
{
if(!document.getElementById(val_arr[ii][0]).value)
{
document.getElementById(val_arr[ii][0]).focus();
if(val_arr[ii][2] == "1") {
alert("You must select an option for \""+val_arr[ii][1]+"\"");
} else {
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
}
return false;
}
}
doCart(addtype);
}
function doCart(addtype)
{
if(addtype == 'checkout')
{
document.getElementById('page').value = 'checkout:checkout';
document.getElementById('product_view').action = '{/literal}{$SSL_URL}{literal}';
}
else if(addtype == 'login')
{
document.getElementById('page').value = 'checkout:checkout';
document.getElementById('product_view').action = '{/literal}{$SSL_URL}{literal}';
if(document.getElementById('wiz_username').value == '') return;
if(document.getElementById('wiz_password').value == '') return;
}
else if(addtype == 'register')
{
document.getElementById('page').value = 'checkout:checkout';
document.getElementById('product_view').action = '{/literal}{$SSL_URL}{literal}';
}
document.product_view.submit();
}
// END -->
</script>
{/literal}
{/if}
</td>
</tr>
<tr valign="top">
<td width="92%" align="left">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td width="50%"><b> {translate module=product}wizard_finalize_purchase{/translate}</b></td>
</tr>
<tr valign="top" class="body">
<td width="50%">
{if $smarty.const.SESS_LOGGED != 1}
<input type="radio" id="checkout1" name="checkout" value="login" onclick="addCart('login'); document.getElementById('checkout1').checked = false;">
<a href="javascript:addCart('login');;">
{translate module=product}
wizard_checkout_login
{/translate}
</a><br>
<input type="radio" id="checkout2" name="checkout" value="register" onclick="addCart('register'); document.getElementById('checkout2').checked = false;">
<a href="javascript:addCart('register');">
{translate module=product}
wizard_checkout_register
{/translate}
</a> <br>
{else}
<input type="radio" id="checkout" name="checkout" value="register" onclick="addCart('checkout'); document.getElementById('checkout').checked = false;">
<a href="javascript:addCart('checkout');">{translate
module=product}wizard_checkout{/translate}</a>
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="92%" align="left">
<div id="login" style="display:none">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td width="15%">
{translate}
username
{/translate}
</td>
<td width="85%">
<input type="text" id="wiz_username" name="_username" />
</td>
</tr>
<tr valign="top" class="body">
<td width="15%">
{translate}
password
{/translate}
</td>
<td width="85%">
<input type="password" id="wiz_password" name="_password" />
</td>
</tr>
<tr valign="top" class="body">
<td width="15%">
<input type="hidden" id="input_login" name="_login" value="1">
</td>
<td width="85%"><a href="javascript:addCart('login');"><b><u>{translate module=product}wizard_login{/translate}</u></b></a></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<iframe name="iframeCart" id="iframeCart" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" allowtransparency="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
</form>
{/if}
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe($meth.0,'details')}
{if ($method->result == false) || ! $record}
{$block->display('core:method_error')}
{else}
<form id="view" method="post" action="" enctype="multipart/form-data">
{if $list->translate('product_translate','name,description_full','product_id',$record.id,'translate_product')}{/if}
<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>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
<tr valign="top">
<td style="width: 75%;">
{if $translate_product.name}
{$translate_product.name}
{else}
{$record.sku}
{/if}
</td>
<td style="width: 25%;" valign="middle" align="right">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="body">
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td>
{if $record.thumbnail != ''}<img src="{$URL}{$smarty.const.URL_IMAGES}{$record.thumbnail}" alt="" hspace="5" style="border: 0px"/>{/if}
{$translate_product.description_full}
</td>
</tr>
</table>
</td>
</tr>
{if $record.prod_plugin}
<tr valign="top">
<td>{osb f=plugin type=product name=$record.prod_plugin_file name_prefix=order_ data=$record.prod_plugin_data}</td>
</tr>
{/if}
<tr valign="top">
<td>
{if $record.price_type == '1'}
{include file='file:ti_product-price_type-1.tpl'}
{elseif $record.price_type == '2'}
{include file='file:ti_product-price_type-2.tpl'}
{else}
{include file='file:ti_product-price_type-x.tpl'}
{/if}
{if $attr}
<br/>
{foreach from=$attr item=attr_arr key=key}
{assign var=attr_id value=$attr_arr.id}
{if $attr_arr.type == '0'}
{include file='file:ti_product_attr-collect_type-0.tpl'}
{elseif $attr_arr.type == '1'}
{include file='file:ti_product_attr-collect_type-1.tpl'}
{elseif $attr_arr.type == '2'}
{include file='file:ti_product_attr-collect_type-2.tpl'}
{elseif $attr_arr.type == '3'}
{include file='file:ti_product_attr-collect_type-3.tpl'}
{/if}
{/foreach}
{/if}
{if $record.host}
<br/>
{include file='file:ti_product-host.tpl'}
{/if}
<script type="text/javascript" src="themes/default/blocks/product/product.js"></script>
<script type="text/javascript">
<!--
{literal}
function attrValidate(addtype) {
var val_arr = new Array(2);
var i=0;
switch (addtype) {
case 'login':
document.getElementById('login').style.display='block';
document.getElementById('input_login').name = '_login';
break;
case 'register':
default:
document.getElementById('login').style.display='none';
document.getElementById('input_login').name = 'xxx';
}
{/literal}
{foreach from=$attr item=attr_arr key=key}
{assign var=attr_id value=$attr_arr.id}
{if $attr_arr.required == '1'}
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
i++;
{/if}
{/foreach}
{literal}
for (ii=0; ii < i; ii++) {
if (! document.getElementById(val_arr[ii][0]).value) {
document.getElementById(val_arr[ii][0]).focus();
if(val_arr[ii][2] == '1') {
alert('You must select an option for "'+val_arr[ii][1]+'"');
} else {
alert('You must enter a value for the product option "'+val_arr[ii][1]+'"')
}
return false;
}
}
doCart(addtype);
}
//-->
</script>
{/literal}
{/if}
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td><b>{t}Finalise Purchase{/t}</b></td>
</tr>
<tr valign="top" class="body">
<td>
{if $smarty.const.SESS_LOGGED != 1}
<input type="radio" id="checkout1" name="checkout" value="login" onclick="addCart('login','{$record.host}'); document.getElementById('checkout1').checked = false;"/> <a href="javascript:addCart('login','{$record.host}');">{t}Login to existing client account{/t}</a><br/>
<input type="radio" id="checkout2" name="checkout" value="register" onclick="addCart('register','{$record.host}'); document.getElementById('checkout2').checked = false;"/> <a href="javascript:addCart('register','{$record.host}');">{t}Register for new client account{/t}</a><br/>
{else}
<input type="radio" id="checkout" name="checkout" value="register" onclick="addCart('checkout','{$record.host}'); document.getElementById('checkout').checked = false;"> <a href="javascript:addCart('checkout','{$record.host}');">{t}Proceed to checkout{/t}</a>
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<div id="login" style="display:none">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td style="width: 15%;">{t}Username{/t}</td>
<td style="width: 85%;"><input type="text" id="wiz_username" name="_username"/></td>
</tr>
<tr valign="top" class="body">
<td style="width: 15%;">{t}Password{/t}</td>
<td style="width: 85%;"><input type="password" id="wiz_password" name="_password"/></td>
</tr>
<tr valign="top" class="body">
<td style="width: 15%;"><input type="hidden" id="input_login" name="_login" value="1"/></td>
<td style="width: 85%;"><a href="javascript:addCart('login','{$record.host}');" style="text-decoration: underline;"><b>{t}Login and review purchase{/t}</b></a></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<iframe name="iframeCart" id="iframeCart" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" allowtransparency="true" frameborder="0" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
<div>
<input type="hidden" id="page" name="_page" value=""/>
<input type="hidden" name="do[]" value="cart:add"/>
<input type="hidden" name="product_id" value="{$record.id}"/>
<input type="hidden" name="s" value="{$SESS}"/>
</div>
</form>

View File

@@ -1,148 +1,117 @@
{ $block->display("core:top_clean") }
{ $method->exe("product","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Loop through each record -->
{foreach from=$product item=product}
{if $product.prod_plugin == "1"}
Both hosting and product plugins cannot be configured for the same product.
{$method->exe($meth.0,'view')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
<form name="product_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="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td width="55%">
{translate module=product}
field_host
{/translate}
</td>
<td width="45%">
{ $list->bool("product_host", $product.host, "onchange=\"submit();\"") }
</td>
</tr>
<tr>
<td width="55%">
{translate module=product}
field_host_server_id
{/translate}
</td>
<td width="45%">
{ $list->menu("no", "product_host_server_id", "host_server", "name", $product.host_server_id, "\" onchange=\"document.product_view.submit();") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<b><table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td width="55%">
{translate module=product}
field_host_allow_domain
{/translate}
</td>
<td width="45%">
{if $product.host_allow_domain == ""}
{ $list->bool("product_host_allow_domain", "1", "form_menu") }
{else}
{ $list->bool("product_host_allow_domain", $product.host_allow_domain, "form_menu") }
{/if}
</td>
</tr>
<tr>
<td width="55%">
{translate module=product}
field_host_allow_host_only
{/translate}
</td>
<td width="45%">
{if $product.host_allow_host_only != ""}
{ $list->bool("product_host_allow_host_only", $product.host_allow_host_only, "form_menu") }
{else}
{ $list->bool("product_host_allow_host_only", "0", "form_menu") }
{/if}
</td>
</tr>
</table>
</b></td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td width="55%">
{translate module=product}
field_host_discount_tld
{/translate}
</td>
<td width="45%">
{translate module=product}
field_host_discount_tld_amount
{/translate}
</td>
</tr>
<tr>
<td width="55%"><b>
{ $list->menu_multi($product.host_discount_tld, "product_host_discount_tld", "host_tld", "name", "5", "5", "form_menu") }
</b></td>
<td width="45%">
<input type="text" name="product_host_discount_tld_amt" value="{$product.host_discount_tld_amt}" size="4">
(example: 0.10 = 10%)</td>
</tr>
</table>
</td>
</tr>
{ if ($list->smarty_array("host_server","provision_plugin", "", "plugin")) } {foreach from=$plugin item=arr} {if $product.host_server_id == $arr.id}
<tr valign="top">
<td width="65%" class="row1">
{assign var="afile" value=$arr.provision_plugin}
{assign var="ablock" value="host_provision_plugin:plugin_prod_"}
{assign var="blockfile" value="$ablock$afile"}
{ $block->display($blockfile) }
</td>
</tr>
{/if} {/foreach} {/if}
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
<tr>
<td valign="middle" align="right">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="do[]" value="product:update">
<input type="hidden" name="_page" value="product:iframe_hosting">
<input type="hidden" name="_page_current" value="product:iframe_hosting">
<input type="hidden" name="product_id" value="{$product.id}">
<input type="hidden" name="id" value="{$product.id}">
<input type="hidden" name="product_price_base" value="{$product.price_base}">
<input type="hidden" name="product_sku" value="{$product.sku}">
<input type="hidden" name="product_avail_category_id" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_assoc_req_prod" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_assoc_grant_prod" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_assoc_grant_group" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_price_group" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_prod_plugin_data" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_group_avail" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_modify_product_arr" value="IGNORE-ARRAY-VALUE">
</form>
{/if}
{/foreach}
{if $record.prod_plugin == '1'}
{t}Both hosting and product plugins cannot be configured for the same product.{/t}
{else}
<!-- 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>
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td style="width: 35%;">{osb f=tf field=host}</td>
<td style="width: 65%;">{$list->bool('product_host',$record.host,'" onchange="submit();')}</td>
</tr>
<tr>
<td style="width: 35%;">{osb f=tf field=host_server_id}</td>
<td style="width: 65%;">{$list->menu('no','product_host_server_id','host_server','name',$record.host_server_id,'" onchange="document.product_view.submit();')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td style="width: 35%;">{osb f=tf field=host_allow_domain}</td>
<td style="width: 65%;">
{if $record.host_allow_domain == ''}
{$list->bool('product_host_allow_domain','1','form_menu')}
{else}
{$list->bool('product_host_allow_domain',$record.host_allow_domain,'form_menu')}
{/if}
</td>
</tr>
<tr>
<td style="width: 35%;">{osb f=tf field=host_allow_host_only}</td>
<td style="width: 65%;">
{if $record.host_allow_host_only != ''}
{$list->bool('product_host_allow_host_only',$record.host_allow_host_only,'form_menu')}
{else}
{$list->bool('product_host_allow_host_only','0','form_menu')}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td style="width: 35%;">{osb f=tf field=host_discount_tld}</td>
<td style="width: 65%;">{osb f=tf field=host_discount_tld_amount}</td>
</tr>
<tr>
<td style="width: 35%;"><b>{$list->menu_multi($record.host_discount_tld,'product_host_discount_tld','host_tld','name','5','5','form_menu')}</b></td>
<td style="width: 65%; vertical-align: top;"><input type="text" name="product_host_discount_tld_amt" value="{$record.host_discount_tld_amt}" size="4"/> (example: 0.10 = 10%)</td>
</tr>
</table>
</td>
</tr>
{if ($list->smarty_array('host_server','provision_plugin','','plugin'))}
{foreach from=$plugin item=arr}
{if $record.host_server_id == $arr.id}
<tr valign="top">
<td>
{assign var="afile" value=$arr.provision_plugin}
{assign var="ablock" value="host_provision_plugin:plugin_prod_"}
{assign var="blockfile" value="$ablock$afile"}
{$block->display($blockfile)}
</td>
</tr>
{/if}
{/foreach}
{/if}
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
<tr>
{include file='file:../core/view_td_submit.tpl'}
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
<div>
<input type="hidden" name="product_price_base" value="{$record.price_base}"/>
<input type="hidden" name="product_sku" value="{$record.sku}"/>
<input type="hidden" name="product_avail_category_id" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_assoc_req_prod" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_assoc_grant_prod" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_assoc_grant_group" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_price_group" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_prod_plugin_data" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_group_avail" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_modify_product_arr" value="IGNORE-ARRAY-VALUE"/>
</div>
</form>
{/if}
{/if}

View File

@@ -1,83 +1,75 @@
{ $block->display("core:top_clean") }
{ $method->exe("product","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Loop through each record -->
{foreach from=$product item=product}
{if $product.host == "1"}
Both hosting and product plugins cannot be configured for the same product.
{$method->exe($meth.0,'view')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
<form name="product_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="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td width="55%"> Enable Product Plugins?</td>
<td width="45%">
{ $list->bool("product_prod_plugin", $product.prod_plugin, "onchange=\"submit();\"") }
</td>
</tr>
<tr>
<td width="55%"> Plugin to Enable</td>
<td width="45%">
{ $list->menu_files("", "product_prod_plugin_file", $product.prod_plugin_file, "product", "", ".php", "\" onchange=\"document.product_view.submit();") }
</td>
</tr>
</table>
</td>
</tr>
{ if $product.prod_plugin_file != ""}
<tr valign="top">
<td width="65%" class="row1">
{assign var="afile" value=$product.prod_plugin_file}
{assign var="ablock" value="product_plugin:plugin_prod_"}
{assign var="blockfile" value="$ablock$afile"}
{ $block->display($blockfile) }
</td>
</tr>
{/if}
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
<tr>
<td valign="middle" align="right">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="do[]" value="product:update">
<input type="hidden" name="_page" value="product:iframe_plugins">
<input type="hidden" name="_page_current" value="product:iframe_plugins">
<input type="hidden" name="product_id" value="{$product.id}">
<input type="hidden" name="id" value="{$product.id}">
<input type="hidden" name="product_price_base" value="{$product.price_base}">
<input type="hidden" name="product_sku" value="{$product.sku}">
<input type="hidden" name="product_avail_category_id" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_assoc_req_prod" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_assoc_grant_prod" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_assoc_grant_group" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_price_group" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_price_group" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_host_discount_tld" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_host_provision_plugin_data" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_group_avail" value="IGNORE-ARRAY-VALUE">
<input type="hidden" name="product_modify_product_arr" value="IGNORE-ARRAY-VALUE">
</form>
{if $record.host == '1'}
{t}Both hosting and product plugins cannot be configured for the same product.{/t}
{else}
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
{/if}
{/foreach}
<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="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td style="width: 50%;">{t}Enable Product Plugins?{/t}</td>
<td style="width: 50%;">{$list->bool('product_prod_plugin',$record.prod_plugin,'" onchange="submit();')}</td>
</tr>
<tr>
<td style="width: 50%;">{t}Plugin to Enable{/t}</td>
<td style="width: 50%;">{$list->menu_files('','product_prod_plugin_file',$record.prod_plugin_file,'product','','.php','" onchange="submit();')}</td>
</tr>
</table>
</td>
</tr>
{if $record.prod_plugin && $record.prod_plugin_file != ''}
<tr valign="top">
<td class="row1">
{assign var="afile" value=$record.prod_plugin_file}
{assign var="ablock" value="product_plugin:plugin_prod_"}
{assign var="blockfile" value="$ablock$afile"}
{$block->display($blockfile)}
</td>
</tr>
{/if}
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
<tr>
{include file='file:../core/view_td_submit.tpl'}
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
<div>
<input type="hidden" name="product_price_base" value="{$record.price_base}"/>
<input type="hidden" name="product_sku" value="{$record.sku}"/>
<input type="hidden" name="product_avail_category_id" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_assoc_req_prod" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_assoc_grant_prod" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_assoc_grant_group" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_price_group" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_price_group" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_host_discount_tld" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_host_provision_plugin_data" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_group_avail" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_modify_product_arr" value="IGNORE-ARRAY-VALUE"/>
</div>
</form>
{/if}
{/if}

View File

@@ -0,0 +1,49 @@
function addCart(addtype,hosting) {
if (hosting == '1') {
var domain_option = document.getElementById('domain_option').value;
var domain_name = document.getElementById('domain_name').value;
var domain_tld = document.getElementById('domain_tld').value;
if (domain_option == '0') {
//@todo To Translate
alert("You must choose a 'Domain Transfer / Registration Option' to continue.");
return;
}
if ((domain_name == '0' || domain_tld == '0') && (domain_option != 'ip')) {
//@todo To Translate
alert("You must select a valid domain name to continue.");
return;
}
}
attrValidate(addtype);
}
function doCart(addtype) {
form = document.getElementById('view');
switch(addtype) {
case 'cart':
//document.getElementById('page').value = 'cart:admin_view';
document.getElementById('page').value = 'cart:cart';
break;
case 'login':
if (document.getElementById('wiz_username').value == '')
return;
if (document.getElementById('wiz_password').value == '')
return;
case 'register':
case 'checkout':
document.getElementById('page').value = 'checkout:checkout';
break;
default:
alert('Unknown addtype: '+addtype);
}
form.action = '';
form.submit();
}

View File

@@ -0,0 +1,32 @@
<!-- START: ti_product-host.tpl -->
<script type="text/javascript" src="themes/default/blocks/host_tld/host_tld.js"></script>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td valign="middle"><b>{t}Domain Transfer / Registrations Options{/t}</b></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
{if $record.host_allow_domain}
<input type="radio" id="register" name="domain_type" value="register" onclick="domainUpdate('0','0','register'); showIFrame('iframe',480,95,'?_page=host_tld:iframe_register&amp;_escape=1');"/> {t}Register new domain name{/t}<br/>
<input type="radio" id="transfer" name="domain_type" value="transfer" onclick="domainUpdate('0','0','transfer'); showIFrame('iframe',480,110,'?_page=host_tld:iframe_transfer&amp;_escape=1');"/> {t}Transfer existing domain name{/t}<br/>
{/if}
<input type="radio" id="ns_transfer" name="domain_type" value="ns_transfer" onclick="domainUpdate('0','0','ns_transfer'); showIFrame('iframe',480,70,'?_page=host_tld:iframe_ns_transfer&amp;_escape=1');"/> {t}I will use an existing domain name and update my nameservers only.{/t}
{if $record.host_allow_host_only}
<br/>
<input type="radio" id="ip" name="domain_type" value="ip" onClick="domainUpdate('0','0','ip'); hideIFrame('iframe');"/>{t}All I need is an IP based hosting plan.{/t}<br/>
{/if}
<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"/>
<iframe name="iframe" id="iframe" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" allowtransparency="false" frameborder="0" class="body" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe><br/>
</td>
</tr>
</table>
<!-- END: ti_product-host.tpl -->

View File

@@ -0,0 +1,21 @@
<!-- START: ti_product-price_type-1.tpl -->
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td style="width: 50%;"><b>{osb f=tf field=price_recurr_type}</b></td>
</tr>
<tr valign="top" class="body">
<td>
<select name="recurr_schedule">
{foreach from=$price item=price_recurr key=key}
<option value="{$key}" {if $record.price_recurr_default == $key} selected="selected"{/if}>
{$list->format_currency($price_recurr.base,$smarty.const.SESS_CURRENCY)}
{$list->menu_staticlist('recur_schedule','','',$key,'form_menu')}
{if $price_recurr.setup > 0} + {$list->format_currency($price_recurr.setup,$smarty.const.SESS_CURRENCY)} {t}Setup{/t}{/if}
</option>
{/foreach}
</select>
</td>
</tr>
</table>
<!-- END: ti_product-price_type-1.tpl -->

View File

@@ -0,0 +1,17 @@
<!-- START: ti_product-price_type-2.tpl -->
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top">
<td>
{t 1=$trial.sku}This product is a trial for SKU %1, which can be viewed in detail here:{/t}
<a href="?_page=product:details&id={$record.price_trial_prod}">{$trial.sku}</a><br/>
{if $record.price_trial_length_type == '0'}{assign var=time value='days'}
{elseif $record.price_trial_length_type == '1'}{assign var=time value='weeks'}
{elseif $record.price_trial_length_type == '2'}{assign var=time value='months'}
{/if}
{t 1=$trial.sku 2=$record.price_trial_length 3=$time}This trial will last for %2 %3 before it expires and you are billed for the full cost of SKU %1.{/t}<br/>
{t 1=$trial.sku}If you wish to cancel prior to the trial expiring, you may do so and you will not be billed for SKU %1.{/t}
</td>
</tr>
</table>
<!-- END: ti_product-price_type-2.tpl -->

View File

@@ -0,0 +1,13 @@
<!-- START: ti_product-price_type-x.tpl -->
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td style="width: 50%;"><b>{osb f=tf field=price_base}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=price_setup}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->format_currency($record.price_base,$smarty.const.SESS_CURRENCY)}</td>
<td style="width: 50%;">{$list->format_currency($record.price_setup,$smarty.const.SESS_CURRENCY)}</td>
</tr>
</table>
<!-- END: ti_product-price_type-x.tpl -->

View File

@@ -0,0 +1,25 @@
<!-- START: ti_product_attr-collect_type-0.tpl -->
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td style="width: 70%;"><b>{$attr_arr.name}</b></td>
<td style="width: 30%; text-align: right;">
{if $attr_arr.price_base != 0}{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0} + {/if}
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{t}Setup{/t}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td><input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked="checked"{/if}/>{$attr_arr.description}</td>
</tr>
</table>
<!-- END: ti_product_attr-collect_type-0.tpl -->

View File

@@ -0,0 +1,25 @@
<!-- START: ti_product_attr-collect_type-1.tpl -->
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td style="width: 70%;"><b>{$attr_arr.name}</b></td>
<td style="width: 30%; text-align: right;">
{if $attr_arr.price_base != 0}{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0} + {/if}
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{t}Setup{/t}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td><input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20"/>{$attr_arr.description}</td>
</tr>
</table>
<!-- END: ti_product_attr-collect_type-1.tpl -->

View File

@@ -0,0 +1,33 @@
<!-- START: ti_product_attr-collect_type-2.tpl -->
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td style="width: 70%;"><b>{$attr_arr.name}</b></td>
<td style="width: 30%; text-align: right;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<select id="attr_{$attr_id}" name="attr[{$attr_id}]">
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
<option value="{$attr_menu.name}">
{$attr_menu.name}
{if $attr_menu.base > 0}: {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_menu.base > 0 && $attr_menu.setup > 0} + {elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}: {/if}
{if $attr_menu.setup > 0}
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
{t}Setup{/t}
{/if}
</option>
{/foreach}
</select>
{$attr_arr.description}
</td>
</tr>
</table>
<!-- END: ti_product_attr-collect_type-2.tpl -->

View File

@@ -0,0 +1,25 @@
<!-- START: ti_product_attr-collect_type-3.tpl -->
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="middle" class="body">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td style="width: 70%;"><b>{$attr_arr.name}</b></td>
<td style="width: 30%; text-align: right;">
{if $attr_arr.price_base != 0}{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}{/if}
{if $attr_arr.price_setup != 0}
{if $attr_arr.price_base != 0} + {/if}
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
{t}Setup{/t}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td><textarea id="attr_{$attr_id}" name="attr[{$attr_id}]2" cols="50" rows="3"></textarea>&nbsp;{$attr_arr.description}</td>
</tr>
</table>
<!-- END: ti_product_attr-collect_type-3.tpl -->

View File

@@ -26,143 +26,135 @@
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>{osb f=tf field=date_orig}</b></td>
<td width="50%"><b>{osb f=tf field=date_last}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=date_orig}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=date_last}</b></td>
</tr>
<tr valign="top">
<td width="50%">{$list->date($record.date_orig)}</td>
<td width="50%">{$list->date($record.date_last)}<input type="hidden" name="product_date_last" value="{$smarty.now}"/></td>
<td style="width: 50%;">{$list->date($record.date_orig)}</td>
<td style="width: 50%;">{$list->date($record.date_last)}<input type="hidden" name="product_date_last" value="{$smarty.now}"/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>{osb f=tf field=sku}</b></td>
<td width="50%"><b>{osb f=tf field=position}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=sku}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=position}</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%"><input type="text" name="product_sku" value="{$record.sku}" size="32"/></td>
<td width="50%"><input type="text" name="product_position" value="{$record.position}" size="3"/></td>
<td style="width: 50%;"><input type="text" name="product_sku" value="{$record.sku}" size="32"/></td>
<td style="width: 50%;"><input type="text" name="product_position" value="{$record.position}" size="3"/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>{osb f=tf field=active}</b></td>
<td width="50%"><b>{osb f=tf field=taxable}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=active}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=taxable}</b></td>
</tr>
<tr valign="top">
<td width="50%">{$list->bool('product_active',$record.active)}</td>
<td width="50%">{$list->bool('product_taxable',$record.taxable)}</td>
<td style="width: 50%;">{$list->bool('product_active',$record.active)}</td>
<td style="width: 50%;">{$list->bool('product_taxable',$record.taxable)}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>{osb f=tf field=price_base}</b></td>
<td width="50%"><b>{osb f=tf field=price_setup}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=price_base}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=price_setup}</b></td>
</tr>
<tr valign="top">
<td width="50%"><input type="text" name="product_price_base" value="{$record.price_base}" size="5"/>{$list->currency_iso('')}</td>
<td width="50%"><input type="text" name="product_price_setup" value="{$record.price_setup}" size="5"/>{$list->currency_iso('')}</td>
<td style="width: 50%;"><input type="text" name="product_price_base" value="{$record.price_base}" size="5"/>{$list->currency_iso('')}</td>
<td style="width: 50%;"><input type="text" name="product_price_setup" value="{$record.price_setup}" size="5"/>{$list->currency_iso('')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>{osb f=tf field=avail_category_id}</b><br/></td>
<td width="50%"><b>{osb f=tf field=group_avail}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=avail_category_id}</b><br/></td>
<td style="width: 50%;"><b>{osb f=tf field=group_avail}</b></td>
</tr>
<tr valign="top">
<td width="50%">{$method->exe_noauth('product_cat','tpl_admin_menu_product')}</td>
<td width="50%">{$list->menu_multi($record.group_avail,'product_group_avail','group','name','','5','form_menu')}</td>
<td style="width: 50%;">{$method->exe_noauth('product_cat','tpl_admin_menu_product')}</td>
<td style="width: 50%;">{$list->menu_multi($record.group_avail,'product_group_avail','group','name','','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
{if $record.price_type == '1'}
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>{osb f=tf field=price_recurr_default}</b></td>
<td style="width: 50%;">{$list->menu_staticlist('recur_schedule','product_price_recurr_default','product_price_recurr_default',$product.price_recurr_default,'form_menu',false)}</td>
</tr>
<tr valign="top" class="row2">
<td width="50%"><b>{osb f=tf field=price_recurr_type}</b></td>
<td width="50%"><b>{t}Options Available to Subscribers{/t}</b></td>
</tr>
<tr valign="top" class="row2">
<td style="width: 50%;">
<input type="radio" name="product_price_recurr_type" value="0" {if $record.price_recurr_type == "0"}checked="checked"{/if} />
{$list->menu_staticlist('recur_type','','product_price_recurr_type',0,'form_menu',false)}<br/>
<input type="radio" name="product_price_recurr_type" value="1" {if $record.price_recurr_type == "1"}checked="checked"{/if} />
{$list->menu_staticlist('recur_type','','product_price_recurr_type',1,'form_menu',false)}<br/>
<input type="text" name="product_price_recurr_weekday" value="{$record.price_recurr_weekday}" size="2" maxlength="2"/>
(1-28)
{osb f=tf field=price_recurr_weekday}
</td>
<td width="50%">
{$list->bool('product_price_recurr_schedule',$record.price_recurr_schedule)}
{osb f=tf field=price_recurr_schedule}
<br/>
{$list->bool('product_price_recurr_cancel',$record.price_recurr_cancel)}
{osb f=tf field=price_recurr_cancel}
<br/>
{$list->bool('product_cart_multiple',$record.cart_multiple)}
{osb f=tf field=cart_multiple}
</td>
</tr>
</table>
</td>
</tr>
{/if}
{if $record.price_type == '2'}
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>{osb f=tf field=price_trial_prod}</b></td>
<td width="50%"><b>{osb f=tf field=price_trial_length}</b></td>
</tr>
<tr valign="top">
<td width="50%">{$list->menu('','product_price_trial_prod','product','sku',$record.price_trial_prod,'form_menu')}</td>
<td width="50%">
<input type="text" name="product_price_trial_length" value="{$record.price_trial_length}" size="4"/>
<select name="product_price_trial_length_type" >
<option value="0" {if $record.price_trial_length_type == "0"} selected{/if}>{translate}day{/translate}</option>
<option value="1" {if $record.price_trial_length_type == "1"} selected{/if}>{translate}week{/translate}</option>
<option value="2" {if $record.price_trial_length_type == "2"} selected{/if}>{translate}month{/translate}</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;"><b>{osb f=tf field=price_recurr_default}</b></td>
<td style="width: 50%;">{$list->menu_staticlist('recur_schedule','product_price_recurr_default','product_price_recurr_default',$record.price_recurr_default,'form_menu',false)}</td>
</tr>
<tr valign="top" class="row2">
<td style="width: 50%;"><b>{osb f=tf field=price_recurr_type}</b></td>
<td style="width: 50%;"><b>{t}Options Available to Subscribers{/t}</b></td>
</tr>
<tr valign="top" class="row2">
<td style="width: 50%;">
<input type="radio" name="product_price_recurr_type" value="0" {if $record.price_recurr_type == "0"}checked="checked"{/if} />
{$list->menu_staticlist('recur_type','','product_price_recurr_type',0,'form_menu',false)}<br/>
<input type="radio" name="product_price_recurr_type" value="1" {if $record.price_recurr_type == "1"}checked="checked"{/if} />
{$list->menu_staticlist('recur_type','','product_price_recurr_type',1,'form_menu',false)}<br/>
<input type="text" name="product_price_recurr_weekday" value="{$record.price_recurr_weekday}" size="2" maxlength="2"/>
(1-28)
{osb f=tf field=price_recurr_weekday}
</td>
<td style="width: 50%;">
{$list->bool('product_price_recurr_schedule',$record.price_recurr_schedule)}
{osb f=tf field=price_recurr_schedule}
<br/>
{$list->bool('product_price_recurr_cancel',$record.price_recurr_cancel)}
{osb f=tf field=price_recurr_cancel}
<br/>
{$list->bool('product_cart_multiple',$record.cart_multiple)}
{osb f=tf field=cart_multiple}
</td>
</tr>
</table>
</td>
</tr>
{elseif $record.price_type == '2'}
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;"><b>{osb f=tf field=price_trial_prod}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=price_trial_length}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu('','product_price_trial_prod','product','sku',$record.price_trial_prod,'form_menu')}</td>
<td style="width: 50%;"><input type="text" name="product_price_trial_length" value="{$record.price_trial_length}" size="4"/> {$list->menu_staticlist('trial_length','product_price_trial_length_type','product_price_trial_length_type',$record.price_trial_length_type,'form_menu',false)}</td>
</tr>
</table>
</td>
</tr>
{/if}
<tr valign="top">
<td width="65%" class="row1">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="50%" valign="top">
<td style="width: 50%;" valign="top">
{if $record.thumbnail != ''}
<img src="{$URL}{$smarty.const.URL_IMAGES}{$record.thumbnail}"/>
{/if}
<b>{osb f=tf field=thumbnail}</b>
</td>
<td width="50%" align="left">
<td style="width: 50%;" align="left">
<b>
<input type="file" name="upload_file1" size="38"/>
{if $record.thumbnail != ''}
@@ -174,18 +166,12 @@
</table>
</td>
</tr>
<tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</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="35%" align="center">
<td style="text-align: center;">
<!-- feature inactive
<a href="javascript:showImages();">{translate module=product}manage_images{/translate}</a> | -->
<a href="javascript:viewTranslations()">{t}Name & Description{/t}</a> |
@@ -232,11 +218,13 @@
{literal}
function viewTranslations(product_id,language_id) {
document.getElementById("code").innerHTML = '';
var product_id = {/literal}{$record.id}{literal};
var language_id = {/literal}'{$smarty.const.DEFAULT_LANGUAGE}'{literal};
var url = '?_page=core:search_iframe&module=product_translate&product_translate_language_id='+language_id+'&product_translate_product_id='+product_id+'&_escape=1&_escape_next=1&_next_page_one=view&_next_page_none=add&name_id1=product_translate_product_id&val_id1='+product_id+'&name_id2=product_translate_language_id&val_id2='+language_id;
{/literal}
document.getElementById('code').innerHTML = '';
var product_id = {$record.id};
var language_id = '{$smarty.const.DEFAULT_LANGUAGE}';
var url = '?_page=core:search_iframe&module=product_translate&product_translate_language_id='+language_id+'&product_translate_product_id='+product_id+'&_next_page_one=view&_next_page_none=add&name_id1=product_translate_product_id&val_id1='+product_id+'&name_id2=product_translate_language_id&val_id2='+language_id;
showIFrame('iframe',getPageWidth(600),300,url);
{literal}
}
viewTranslations();
@@ -280,12 +268,12 @@
function showHosting() {
document.getElementById('code').innerHTML = '';
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_hosting&_escape=1&id='+product_id);
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_hosting&id='+product_id);
}
function showPlugins() {
document.getElementById('code').innerHTML = '';
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_plugins&_escape=1&id='+product_id);
showIFrame('iframe',getPageWidth(600),300,'?_page=product:iframe_plugins&id='+product_id);
}
function clone() {

View File

@@ -44,7 +44,7 @@
</tr>
<tr valign="top">
<td width="50%">
<input type="radio" name="product_attr_collect_type" value="0" {if $record.collect_type == "0" || recordproduct_attr.collect_type == "" }checked{/if} />
<input type="radio" name="product_attr_collect_type" value="0" {if $record.collect_type == "0" || $record.collect_type == "" }checked{/if} />
{translate module=product_attr}type_checkbox{/translate}<br/>
<input type="radio" name="product_attr_collect_type" value="1" {if $record.collect_type == "1"}checked{/if} />
{translate module=product_attr}type_text{/translate}<br/>

View File

@@ -81,10 +81,10 @@
{/if}
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">

View File

@@ -0,0 +1,122 @@
<!--
@TODO
* Include offpeak time, from supplier
* Include Static IP options
* Include Contract Term
* Include Shaped/Excess Charges
* Date Validation on Churn Date (4 to 10 days)
* Phone number Validation
* Address min length
* Disable Churn date if ADSL not connected
* Disable Submit if terms not accepted
* Change rate to show inc TAX
-->
{$list->unserial($record.prod_plugin_data,'plugin_data')}
<!-- ADSL SERVICE ATTRIBUTES TABLE -->
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1">
<tr>
<td colspan="5" style="font-size: 120%;"><b>ADSL Inclusions</b></td>
</tr>
<tr>
<td colspan="5"><b>ADSL Data</b></td>
</tr>
<tr>
<td style="width: 20%;">&nbsp;</td>
<td style="width: 20%;">Downloads</td>
<td style="width: 20%;">Excess/GB</td>
<td style="width: 20%;">Uploads</td>
<td style="width: 20%;">Excess/GB</td>
</tr>
<tr>
<td>Peak</td>
<td>{$plugin_data.base_down_peak}</td>
<td>{$list->format_currency_num($plugin_data.extra_down_peak,$smarty.const.SESS_CURRENCY)}</td>
<td>{$plugin_data.base_up_peak}</td>
<td>{$list->format_currency_num($plugin_data.extra_up_peak,$smarty.const.SESS_CURRENCY)}</td>
</tr>
{assign var='sid' value=$plugin_data.supplier_product}
{if $list->smarty_array('adsl','offpeak_start,offpeak_end'," AND id=$sid",'supplier') && $supplier.0.offpeak_start && $supplier.0.offpeak_end}
<tr>
<td>Off Peak</td>
<td>{$plugin_data.base_down_offpeak}</td>
<td>{$list->format_currency_num($plugin_data.extra_down_offpeak,$smarty.const.SESS_CURRENCY)}</td>
<td>{$plugin_data.base_up_offpeak}</td>
<td>{$list->format_currency_num($plugin_data.extra_up_offpeak,$smarty.const.SESS_CURRENCY)}</td>
</tr>
{/if}
<tr>
<td colspan="5">&nbsp;</td>
</tr>
<tr>
<td colspan="5"><b>ADSL Extra Information</b></td>
</tr>
<tr>
<td>{t}Static IP address{/t}</td>
<td><b>{if $plugin_data.staticip}{t}Included{/t}{else}{t}No{/t}{/if}</b></td>
</tr>
<tr>
<td>{t}Extra Traffic Charged{/t}</td>
{if $plugin_data.extra_charged}
<td colspan="4"><b>{t}Yes{/t}</b> ({t}See the table above{/t})</td>
{else}
<td colspan="4"><b>{t}No{/t}</b> {if $plugin_data.extra_shape}({t}Your service will be shapped to{/t} <b>{$plugin_data.extra_shape}</b>){/if}</td>
{/if}
</tr>
{if $supplier && $supplier.0.offpeak_start && $supplier.0.offpeak_end}
<tr>
<td>{t}Offpeak Period{/t}</td>
<td colspan="4"><b>{$list->time($supplier.0.offpeak_start)}</b> - <b>{$list->time($supplier.0.offpeak_end)}</b></td>
</tr>
{/if}
{if $plugin_data.contract_term}
<tr>
<td>{t}Contract Term{/t}</td>
<td colspan="4"><b>{$plugin_data.contract_term}</b> {t}Months{/t}</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
<br/>
<!-- ADSL SERVICE -->
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td><b>ADSL Service Number</b></td>
</tr>
<tr valign="top">
<td><input type="text" id="attr_phone" name="attr[phone]" size="20"/></td>
</tr>
<tr>
<td><b>ADSL Service Address</b></td>
</tr>
<tr valign="top">
<td><textarea id="attr_address" name="attr[address]" cols="50" rows="3"></textarea></td>
</tr>
<!-- CHURNS -->
<!-- @todo use javascript to show the churn date -->
<tr>
<td><b>Do you have an ADSL service connected, already?</b> <input type="checkbox" name="attr[churn]" value="Yes" /></td>
</tr>
<tr>
<td><b>Requested CHURN date</b></td>
</tr>
<tr valign="top">
<td><input type="text" id="attr_churndate" name="attr[churndate]" size="20" /></td>
</tr>
<!-- TERMS -->
<tr>
<td width="70%" valign="middle"><b>Have you viewed and accepted the terms and conditions?</b> <input type="checkbox" name="attr[tc]" value="Yes" /></td>
</tr>
</table>
</td>
</tr>
</table>

View File

@@ -0,0 +1,131 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$list->unserial($record.prod_plugin_data,'plugin_data')}
{$list->unserial($record.prod_attr,'prod_attr')}
{if $meth.0 == 'service'}
<table width="100%" border="0" cellspacing="1" cellpadding="4" class="table_background">
<tr valign="top" class="row2">
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td style="width: 20%;">{t}Service Number{/t}</td>
<td style="width: 30%;">{assign var=key value='Service Phone Number'}<input type="text" name="{$meth.0}_prod_attr[service_number]" value="{$prod_attr.service_number}{$plugin_data.$key}"/></td>
<td style="width: 20%;">{t}Service Account Name{/t}</td>
<td style="width: 30%;">{assign var=key value='Service Phone Name'}<input type="text" name="{$meth.0}_prod_attr[service_account_name]" value="{$prod_attr.service_account_name}{$plugin_data.$key}" size="50"/></td>
</tr>
<tr>
<td style="width: 20%; vertical-align:text-top;">{t}Contact End Date{/t}</td>
<td style="width: 30%; vertical-align:text-top;">{assign var=key value='Contract End Date'}<input type="text" name="{$meth.0}_prod_attr[contract_end_date]" value="{$prod_attr.contract_end_date}{$plugin_data.$key}"/></td>
<td style="width: 20%;">{t}Service Address{/t}</td>
<td style="width: 30%;">{assign var=key value='Service Address'}<textarea id="attr_address" name="{$meth.0}_prod_attr[service_address]" cols="50" rows="3">{$prod_attr.service_address}{$plugin_data.$key}</textarea></td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="4">
{if $meth.0 == 'service'}
<tr valign="top" class="row2">
<td style="width: 20%;">{t}Override Product Details{/t}</td>
<td style="width: 30%;"><input type="checkbox" id="override" name="product_prod_plugin_data[override]" value="1" {if $plugin_data.override}checked="checked"{/if} onchange="pdisable(this.checked)"/>{$plugin_data.override}</td>
</tr>
{/if}
<!-- PRODUCT -->
<tr valign="top" class="row2">
<td style="width: 20%;">{osb f=tf field=supplier_product}</td>
<td style="width: 30%;">{$list->menu('no','product_prod_plugin_data[supplier_product]','adsl','product_desc',$plugin_data.supplier_product,'')}</td>
<td style="width: 20%;">{osb f=tf field=contract_term}</td>
<td style="width: 30%;"><input type="text" id="contract_term" name="product_prod_plugin_data[contract_term]" value="{$plugin_data.contract_term}"/></td>
</tr>
<!-- CHURN AVAILABLE -->
<tr valign="top" class="row2">
<td>{osb f=tf field=churnable}</td>
<td><input type="checkbox" id="churnable" name="product_prod_plugin_data[churnable]" value="1" {if $plugin_data.churnable}checked="checked"{/if} /></td>
<td>{osb f=tf field=churnsetup_discount}</td>
<td><input type="text" id="churnsetup_discount" name="product_prod_plugin_data[churnsetup_discount]" value="{$plugin_data.churnsetup_discount}"/></td>
</tr>
<!-- STATIC IP AVAILABLE -->
<tr valign="top" class="row2">
<td>{osb f=tf field=staticip}</td>
<td colspan="3"><input id="staticip" type="checkbox" name="product_prod_plugin_data[staticip]" value="1" {if $plugin_data.staticip}checked="checked"{/if} /></td>
</tr>
<!-- INCLUDED TRAFFIC -->
<tr valign="top" class="row2">
<td>{osb f=tf field=product_base_down_peak}</td>
<td><input type="text" id="base_down_peak" name="product_prod_plugin_data[base_down_peak]" value="{$plugin_data.base_down_peak}"/></td>
<td>{osb f=tf field=product_base_up_peak}</td>
<td><input type="text" id="base_up_peak" name="product_prod_plugin_data[base_up_peak]" value="{$plugin_data.base_up_peak}"/></td>
</tr>
<tr valign="top" class="row2">
<td>{osb f=tf field=product_base_down_offpeak}</td>
<td><input type="text" id="base_down_offpeak" name="product_prod_plugin_data[base_down_offpeak]" value="{$plugin_data.base_down_offpeak}"/></td>
<td>{osb f=tf field=product_base_up_offpeak}</td>
<td><input type="text" id="base_up_offpeak" name="product_prod_plugin_data[base_up_offpeak]" value="{$plugin_data.base_up_offpeak}"/></td>
</tr>
<!-- EXCESS TRAFFIC -->
<tr valign="top" class="row2">
<td>{osb f=tf field=product_extra_charged}</td>
<td>{$list->bool('product_prod_plugin_data[extra_charged]',$plugin_data.extra_charged,'form_menu')}</td>
<td>{osb f=tf field=product_extra_shape}</td>
<td><input type="text" id="extra_shape" name="product_prod_plugin_data[extra_shape]" value="{$plugin_data.extra_shape}"/></td>
</tr>
<tr valign="top" class="row2">
<td>{osb f=tf field=product_extra_down_peak}</td>
<td><input type="text" id="extra_down_peak" name="product_prod_plugin_data[extra_down_peak]" value="{$plugin_data.extra_down_peak}"/></td>
<td>{osb f=tf field=product_extra_up_peak}</td>
<td><input type="text" id="extra_up_peak" name="product_prod_plugin_data[extra_up_peak]" value="{$plugin_data.extra_up_peak}"/></td>
</tr>
<tr valign="top" class="row2">
<td>{osb f=tf field=product_extra_down_offpeak}</td>
<td><input type="text" id="extra_down_offpeak" name="product_prod_plugin_data[extra_down_offpeak]" value="{$plugin_data.extra_down_offpeak}"/></td>
<td>{osb f=tf field=product_extra_up_offpeak}</td>
<td><input type="text" id="extra_up_offpeak" name="product_prod_plugin_data[extra_up_offpeak]" value="{$plugin_data.extra_up_offpeak}"/></td>
</tr>
</table>
<script type="text/javascript">
<!--
{literal}
// @todo need to improve these ids, when the form is rendered with $list
function pdisable(val) {
var x;
var ids = new Array();
ids[0] = 'contract_term';
ids[1] = 'churnable';
ids[2] = 'churnsetup_discount';
ids[3] = 'staticip';
ids[4] = 'base_down_peak';
ids[5] = 'base_up_peak';
ids[6] = 'base_down_offpeak';
ids[7] = 'base_up_offpeak';
ids[8] = 'product_prod_plugin_data_extra_charged_';
ids[9] = 'extra_shape';
ids[10] = 'extra_down_peak';
ids[11] = 'extra_up_peak';
ids[12] = 'extra_down_offpeak';
ids[13] = 'extra_up_offpeak';
ids[14] = 'adsl_product_desc_100';
for (x in ids)
if (typeof ids[x] != 'function') {
if (val) {
document.getElementById(ids[x]).disabled = false;
document.getElementById('override').value = 1;
} else {
document.getElementById(ids[x]).disabled = true;
}
}
}
{/literal}
{if is_null($plugin_data.override)}
document.getElementById('override').checked = false;
document.getElementById('override').value = 0;
pdisable(0);
{/if}
//-->
</script>

View File

@@ -1,4 +1,4 @@
{$list->unserial($product.prod_plugin_data, "plugin_data")}
{$list->unserial($record.prod_plugin_data,'plugin_data')}
<table width="100%" border="0" cellspacing="0" cellpadding="4">
{if $service.id}
<tr valign="top" class="row2">

View File

@@ -0,0 +1,78 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$list->unserial($record.prod_plugin_data,'plugin_data')}
{$list->unserial($record.prod_attr,'prod_attr')}
<table width="100%" border="0" cellspacing="1" cellpadding="4" class="table_background">
<tr valign="top" class="row2">
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td style="width: 20%;">{t}Service Number{/t}</td>
<td style="width: 30%;"><b>{$prod_attr.service_number}</b></td>
<td style="width: 20%;">{t}Service Account Name{/t}</td>
<td style="width: 30%;"><b>{$prod_attr.service_account_name}</b></td>
</tr>
<tr>
<td style="width: 20%; vertical-align:text-top;">{t}Contact End Date{/t}</td>
<td style="width: 30%; vertical-align:text-top;"><b>{$prod_attr.contract_end_date}</b></td>
<td style="width: 20%;">{t}Service Address{/t}</td>
<td style="width: 30%;"><b>{$prod_attr.service_address}</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<!-- PRODUCT -->
{assign var="pid" value=$record.product_id}
{if ($list->smarty_array('product_translate','description_short'," AND product_id=$pid ",'product'))}
<tr valign="top" class="row2">
<td style="width: 20%;">{osb f=tf field=product}</td>
<td colspan="3"><b>{$product.0.description_short}</b></td>
</tr>
{/if}
{if $meth.1 != 'user_view'}
<!-- STATIC IP AVAILABLE -->
<tr valign="top" class="row2">
<td style="width: 20%;">{osb f=tf field=contract_term}</td>
<td style="width: 30%;"><b>{$plugin_data.contract_term}</b></td>
<td style="width: 20%;">{osb f=tf field=staticip}</td>
<td style="width: 30%;"><b>{$list->bool('',$plugin_data.staticip,'')}</b></td>
</tr>
<!-- INCLUDED TRAFFIC -->
<tr valign="top" class="row2">
<td>{osb f=tf field=product_base_down_peak}</td>
<td><b>{$plugin_data.base_down_peak}</b></td>
<td>{osb f=tf field=product_base_up_peak}</td>
<td><b>{$plugin_data.base_up_peak}</b></td>
</tr>
<tr valign="top" class="row2">
<td>{osb f=tf field=product_base_down_offpeak}</td>
<td><b>{$plugin_data.base_down_offpeak}</b></td>
<td>{osb f=tf field=product_base_up_offpeak}</td>
<td><b>{$plugin_data.base_up_offpeak}</b></td>
</tr>
<!-- EXCESS TRAFFIC -->
<tr valign="top" class="row2">
<td>{osb f=tf field=product_extra_charged}</td>
<td><b>{$list->bool('',$plugin_data.extra_charged,'')}</b></td>
<td>{osb f=tf field=product_extra_shape}</td>
<td><b>{$plugin_data.extra_shape}</b></td>
</tr>
<tr valign="top" class="row2">
<td>{osb f=tf field=product_extra_down_peak}</td>
<td><b>{$plugin_data.extra_down_peak}</b></td>
<td>{osb f=tf field=product_extra_up_peak}</td>
<td><b>{$plugin_data.extra_up_peak}</b></td>
</tr>
<tr valign="top" class="row2">
<td>{osb f=tf field=product_extra_down_offpeak}</td>
<td><b>{$plugin_data.extra_down_offpeak}</b></td>
<td>{osb f=tf field=product_extra_up_offpeak}</td>
<td><b>{$plugin_data.extra_up_offpeak}</b></td>
</tr>
{/if}
</table>

View File

@@ -1,78 +1,70 @@
{ $block->display("core:top_clean") }
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{$block->display('core:alert_fields')}
{/if}
<!-- tinyMCE -->
<script type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="themes/{$THEME_NAME}/tinymce.js"></script>
<!-- Display the form to collect the input values -->
<form id="add" 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 width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=product_translate}
field_name
{/translate}
</td>
<td width="65%">
<input type="text" name="product_translate_name" value="{$VAR.product_translate_name}" {if $product_translate_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=product_translate}
field_description_short
{/translate}
</td>
<td width="65%">
<input type="text" name="product_translate_description_short" value="{$VAR.product_translate_description_short}" {if $product_translate_description_short == true}class="form_field_error"{/if} size="50">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=product_translate}
field_description_full
{/translate}
</td>
<td width="65%">
<textarea name="product_translate_description_full" cols="50" rows="3" {if $product_translate_description_full == true}class="form_field_error"{/if}>{$VAR.product_translate_description_full}</textarea>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=product_translate}
field_email_template
{/translate}
</td>
<td width="65%">
<textarea name="product_translate_email_template" cols="50" rows="3" {if $product_translate_email_template == true}class="form_field_error"{/if}>{$VAR.product_translate_email_template}</textarea>
</td>
</tr>
<tr valign="top">
<td width="35%"></td>
<td width="65%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="product_translate:view">
<input type="hidden" name="_page_current" value="product_translate:add">
<input type="hidden" name="do[]" value="product_translate:add">
<input type="hidden" name="product_translate_product_id" value="{$VAR.product_translate_product_id}">
<input type="hidden" name="product_translate_language_id" value="{$VAR.product_translate_language_id}">
<input type="hidden" name="_escape" value="1">
<input type="hidden" name="_escape_next" value="1">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 10%;">{osb f=tf field=name}</td>
<td><input type="text" name="product_translate_name" value="{$VAR.product_translate_name}" {if $product_translate_name == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 10%;">{osb f=tf field=description_short}</td>
<td><textarea name="product_translate_description_short" cols="50" rows="3" {if $product_translate_description_short == true}class="form_field_error"{/if}>{$VAR.product_translate_description_short|htmlspecialchars}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 10%;">{osb f=tf field=description_full}</td>
<td><textarea name="product_translate_description_full" cols="50" rows="3" {if $product_translate_description_full == true}class="form_field_error"{/if}>{$VAR.product_translate_description_full|htmlspecialchars}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 10%;">{osb f=tf field=email_template}</td>
<td><textarea name="product_translate_email_template" cols="50" rows="3" {if $product_translate_email_template == true}class="form_field_error"{/if}>{$VAR.product_translate_email_template}</textarea></td>
</tr>
<!-- @todo Unable to use include file='file:../core/add_tr_submit.tpl' the template dir is not set? -->
<tr valign="top">
<td>&nbsp;</td>
<td>
<input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/>
<input type="hidden" name="_page" value="{$meth.0}:view"/>
<input type="hidden" name="_page_current" value="{$VAR._page}"/>
<input type="hidden" name="do[]" value="{$meth.0}:{$meth.1}"/>
<script type="text/javascript">
<!--
if (document.getElementById('focus'))
document.getElementById('focus').focus();
//-->
</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="product_translate_product_id" value="{$VAR.product_translate_product_id}"/>
<input type="hidden" name="product_translate_language_id" value="{$VAR.product_translate_language_id}"/>
{if $VAR._escape}
<input type="hidden" name="_escape" value="1"/>
{/if}
</div>
</form>

View File

@@ -1,121 +1,89 @@
{ $block->display("core:top_clean") }
{$block->display('core:top_clean')}
{literal}<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "specific_textareas",
theme : "advanced",
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "iespell,media,advhr",
theme_advanced_toolbar_location : "bottom",
theme_advanced_toolbar_align : "center",
content_css : "themes/default/style.css",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
relative_urls: 'true',
width : "100%"
});
</script>
<!-- /tinyMCE -->{/literal}
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("product_translate","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{$method->exe($meth.0,'view')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
<!-- Loop through each record -->
{foreach from=$product_translate item=product_translate}
<a name="{$product_translate.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- tinyMCE -->
<script type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="themes/{$THEME_NAME}/tinymce.js"></script>
<!-- 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="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;"><b>{osb f=tf field=name}</b></td>
<td style="width: 65%;"><input type="text" name="product_translate_name" value="{$record.name}" size="32"/></td>
</tr>
<tr>
<td><b>{osb f=tf field=description_short}</b></td>
<td><input name="product_translate_description_short" rows="10" cols="80" value="{$record.description_short|htmlspecialchars}" size="50" /></td>
</tr>
</table>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><b>{osb f=tf field=description_full}</b></td>
</tr>
<tr>
<td><textarea name="product_translate_description_full" rows="13" cols="80" class="mce_editable">{$record.description_full|htmlspecialchars}</textarea></td>
</tr>
</table>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr valign="top">
<td style="width: 35%;"><b>{osb f=tf field=email_template}</b></td>
</tr>
<tr valign="top">
<td style="width: 65%;"><textarea name="product_translate_email_template" rows="3" cols="55" >{$record.email_template|htmlspecialchars}</textarea></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="6" cellpadding="1" class="row1">
<tr class="row1">
<!-- @todo Unable to use include file='file:../core/view_td_submit.tpl' the template dir is not set? -->
<td style="text-align: left;"><input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="_page" value="product_translate:edit"/>
<input type="hidden" name="product_translate_id" value="{$record.id}"/>
<input type="hidden" name="do[]" value="product_translate:update"/>
<input type="hidden" name="id" value="{$VAR.id}"/>
<input type="hidden" name="product_translate_product_id" value="{$record.product_id}"/>
<input type="hidden" name="product_translate_language_id" value="{$record.language_id}"/>
</div>
</form>
{/if}
<!-- Display each record -->
<form name="product_translate_view" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%"> <b>
{translate module=product_translate}
field_name
{/translate}
</b> </td>
<td width="65%">
<input type="text" name="product_translate_name" value="{$product_translate.name}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%"> <b>
{translate module=product_translate}
field_email_template
{/translate}
<br>
<br>
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
</b> </td>
<td width="65%">
<textarea name="product_translate_email_template" rows="3" cols="55" >{$product_translate.email_template}</textarea>
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td> <b>
{translate module=product_translate}
field_description_short
{/translate}
</b> </td>
</tr>
<tr>
<td>
<textarea name="product_translate_description_short" rows="10" cols="80" mce_editable="true">{$product_translate.description_short}</textarea>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td> <b>
{translate module=product_translate}
field_description_full
{/translate}
</b> </td>
</tr>
<tr>
<td>
<textarea name="product_translate_description_full" rows="13" cols="80" mce_editable="true">{$product_translate.description_full}</textarea>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="product_translate:edit">
<input type="hidden" name="product_translate_id" value="{$product_translate.id}">
<input type="hidden" name="do[]" value="product_translate:update">
<input type="hidden" name="id" value="{$VAR.id}">
<input type="hidden" name="product_translate_product_id" value="{$product_translate.product_id}">
<input type="hidden" name="product_translate_language_id" value="{$product_translate.language_id}">
</form>
{/foreach}
{/if}
{$block->display('core:bottom_clean')}

View File

@@ -1,81 +1,12 @@
{ $block->display("core:top_clean") }
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe("product_translate","search_show")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{literal}
<script language="JavaScript">
<!-- START
var module = 'product_translate';
var p = '&_escape=y';
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">
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$product_translate item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=product_translate:view&id={$record.id}&_escape=1,';" 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>&nbsp;
{$record.language_id}
</td>
<td>&nbsp;
{$record.product_id}
</td>
<td>&nbsp;{$record.name}</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>
<br>
<center>
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view&_escape=1', 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}&_escape=1', 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>
{include file='file:../core/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}
</div>

View File

@@ -1,28 +1,34 @@
{ $block->display("core:top_clean") }
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("product_translate","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
{literal}<script language=javascript>
function editTranslations(product_id)
{
var language_id = document.product_translate_view.language_id.value;
var url = '?_page=core:search_iframe&module=product_translate&product_translate_language_id='+
language_id+'&product_translate_product_id='+
product_id+'&_escape=1&_escape_next=1&_next_page_one=edit&_next_page_none=add&name_id1=product_translate_product_id&val_id1='
+product_id+'&name_id2=product_translate_language_id&val_id2='+language_id;
window.open(url,'ProductLanguage','scrollbars=yes,toolbar=no,status=no,width=700,height=650');
}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
function viewTranslations(product_id)
{
var language_id = document.getElementById('language_id_1').value;
var url = '?_page=core:search_iframe&module=product_translate&product_translate_language_id='+
language_id+'&product_translate_product_id='+
product_id+'&_escape=1&_escape_next=1&_next_page_one=view&_next_page_none=add&name_id1=product_translate_product_id&val_id1='
+product_id+'&name_id2=product_translate_language_id&val_id2='+language_id;
document.location = url;
}
</script>{/literal}
<script type="text/javascript">
<!--
{literal}
function editTranslations(product_id) {
var language_id = document.getElementById('language_id').value;
var url = '?_page=core:search_iframe&module=product_translate&product_translate_language_id='+language_id+'&product_translate_product_id='+product_id+'&_escape=1&_escape_next=1&_next_page_one=edit&_next_page_none=add&name_id1=product_translate_product_id&val_id1='+product_id+'&name_id2=product_translate_language_id&val_id2='+language_id;
window.open(url,'ProductLanguage','scrollbars=yes,toolbar=no,status=no,width=700,height=650');
}
function viewTranslations(product_id) {
var language_id = document.getElementById('language_id').value;
var url = '?_page=core:search_iframe&module=product_translate&product_translate_language_id='+language_id+'&product_translate_product_id='+product_id+'&_next_page_one=view&_next_page_none=add&name_id1=product_translate_product_id&val_id1='+product_id+'&name_id2=product_translate_language_id&val_id2='+language_id;
document.location = url;
}
{/literal}
// -->
</script>
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
@@ -37,98 +43,52 @@ function viewTranslations(product_id)
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr>
<td class="body"><b>
{ $list->menu_files("1", "language_id", $smarty.const.DEFAULT_LANGUAGE, "language", "", "_core.xml", "\" onChange=\"viewTranslations(`$product_translate.product_id`);") }
<a href="javascript:editTranslations({$product_translate.product_id});">Edit</a>
</b></td>
</tr>
</table>
<b> </b></td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td class="row2" align="center"><b> </b> </td>
</tr>
<td class="row2"><b>
{translate module=product_translate}
field_name
{/translate}
</b> </td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="5">&nbsp;</td>
<td width="98%">
{$product_translate.name}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td class="row2" align="center"><b> </b> </td>
</tr>
<tr>
<td class="row2"><b>
{translate module=product_translate}
field_description_short
{/translate}
</b></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="5">&nbsp;</td>
<td width="98%">
{$product_translate.description_short}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td class="row2"><b>
{translate module=product_translate}
field_description_full
{/translate}
</b></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td width="5">&nbsp;</td>
<td width="98%">
{$product_translate.description_full}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<tr>
<td class="body"><b>{$list->menu_files('','language_id',$record.language_id,'language','','_core.xml',"\" onchange=\"viewTranslations(`$record.product_id`);") } <a href="javascript:editTranslations({$record.product_id});">{t}Edit{/t}</a></b></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td class="row2"><b>{osb f=tf field=name}</b></td>
</tr>
<tr>
<td>{$record.name}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td class="row2"><b>{osb f=tf field=description_short}</b></td>
</tr>
<tr>
<td>{$record.description_short}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td class="row2"><b>{osb f=tf field=description_full}</b></td>
</tr>
<tr>
<td>{$record.description_full}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}

View File

@@ -21,7 +21,12 @@
{elseif ($record.type == 'host' || $record.type == 'host_group') && trim($record.server_name)}
<i>{$record.server_name|trim:25}</i>
{else}
{t}{$record.type}{/t}
{if $record.type == 'product' && $record.prod_plugin_name == 'ADSL'}
{$list->unserial($record.prod_attr,'prod_attr')}
{$prod_attr.service_number}
{else}
{t}{$record.type}{/t}
{/if}
{/if}
</td>
<td>

View File

@@ -49,10 +49,10 @@
{else}
{if $product_show}
{$method->exe('product','details')}
{if ($method->result == false || !$product)}
{if ($method->result == false || !$record)}
{$block->display('core:method_error')}
{else}
{if $product}
{if $record}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
@@ -62,10 +62,10 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
<tr valign="top">
<td>
{if $list->translate('product_translate','name,description_short,description_full','product_id',$product.id,'prod_translate')}
{if $list->translate('product_translate','name,description_short,description_full','product_id',$record.id,'prod_translate')}
{$prod_translate.name}
{else}
{$product.sku}
{$record.sku}
{/if}
</td>
</tr>
@@ -77,15 +77,15 @@
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
<tr valign="top" class="body">
<td>
{if $product.thumbnail != ''}
<img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}" alt="" style="border: 0px;"/>
{if $record.thumbnail != ''}
<img src="{$URL}{$smarty.const.URL_IMAGES}{$record.thumbnail}" alt="" style="border: 0px;"/>
{/if}
{$prod_translate.description_full}
</td>
</tr>
<tr valign="top">
<td align="left">
{if $product.price_type == '1'}
{if $record.price_type == '1'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td><b>{osb f=tf module=product field=price_recurr_type}</b></td>
@@ -94,7 +94,7 @@
<td>
<select name="recurr_schedule" >
{foreach from=$price item=price_recurr key=key}
<option value="{$key}" {if $product.price_recurr_default == $key} selected="selected"{/if}>
<option value="{$key}" {if $record.price_recurr_default == $key} selected="selected"{/if}>
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}&nbsp;
{$list->menu_staticlist('recur_schedule','','',$key,'form_menu')}
{if $waive_setup != 1}
@@ -172,7 +172,7 @@
<!--
{literal}
function addCart(addtype) {
var hosting = '{/literal}{$product.host}{literal}';
var hosting = '{/literal}{$record.host}{literal}';
if (hosting == '1') {}
attrValidate(addtype);
}
@@ -224,7 +224,7 @@
<input type="hidden" name="service_id" value="{$VAR.service_id}"/>
<input type="hidden" id="page" name="_page" value=""/>
<input type="hidden" name="do[]" value="cart:add"/>
<input type="hidden" name="product_id" value="{$product.id}"/>
<input type="hidden" name="product_id" value="{$record.id}"/>
<input type="hidden" name="s" value="{$SESS}"/>
</p>
{/if}

View File

@@ -69,6 +69,29 @@
</table>
{if $record.active == 1}
<div id="plugin">
{if $record.type == 'product' || $record.type == 'product_group'}
{assign var='plugin' value=$record.prod_plugin_name}
<br/>
<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">{t}Service Details{/t}</td>
</tr>
<tr valign="top">
<td class="row1">
{$block->display("product_plugin:plugin_view_$plugin")}
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
</div>
{if $record.recur_modify == 1 && $record.suspend_billing != 1}
<div><br/></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">

View File

@@ -333,7 +333,7 @@
<tr valign="top">
<td width="30%">{$record.domain_name|upper}.{$record.domain_tld|upper}<b>&nbsp;<a href="?_page=core:search&module=service&service_domain_name={$record.domain_name}&service_domain_tld={$record.domain_tld}"><img src="themes/{$THEME_NAME}/images/icons/zoomi_16.gif" alt="Resend Invoice" style="border: 0px; width: 16px; height: 16px;"/></a></b></td>
<td width="40%">{$record.domain_term} Year(s) <a href="?_page=service:view&id={$record.id}&do%5B%5D=invoice:generatedomaininvoice">{translate module=cart}renew{/translate}</a></td>
<td width="30%">{$list->calender_view('service_domain_date_expire',$record.domain_date_expire,'form_field',$record.id)}</td>
<td width="30%">{$list->calender_view('service_domain_date_expire',$record.domain_date_expire,'form_field')}</td>
</tr>
<tr valign="top" class="row1">
<td width="30%"><b>{osb f=tf field=domain_type}</b></td>
@@ -417,6 +417,7 @@
<div id="product" {osb f=style_hide}>
{if $record.type == 'product' || $record.type == 'product_group'}
{assign var='plugin' value=$record.prod_plugin_name}
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
@@ -429,19 +430,22 @@
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 50%;">{translate module=service}product_plugin{/translate}</td>
<td style="width: 50%;"><b>{$record.prod_plugin_name}</b></td>
<td style="width: 20%;">{t}Plugin Information{/t}</td>
<td><b>{$plugin}</b></td>
</tr>
{assign var="pid" value=$record.product_id}
{if ($list->smarty_array('product_translate','description_short'," AND product_id=$pid ",'product'))}
<tr valign="top" class="row2">
<td>{osb f=tf field=product}</td>
<td><b>{$product.0.description_short}</b></td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
{assign var='product' value=$service}
{assign var='afile' value=$record.prod_plugin_name}
{assign var='ablock' value='product_plugin:plugin_prod_'}
{assign var='blockfile' value="$ablock$afile"}
{$block->display($blockfile)}
{$block->display("product_plugin:plugin_prod_$plugin")}
</td>
</tr>
</table>

View File

@@ -36,7 +36,4 @@
</tr>
</table>
<div>
<input type="hidden" name="staff_department_avail" value="false"/>
</div>
</form>

View File

@@ -41,6 +41,10 @@
<td style="width: 35%;">{osb f=tf field=signature}</td>
<td style="width: 65%;">{html_textarea name=staff_signature default=$record.signature limit=50}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=department_avail}</td>
<td style="width: 65%;">{$list->check('staff_department_avail','staff_department_avail','staff_department','name',$record.department_avail,'')}</td>
</tr>
</table>
</td>
</tr>
@@ -51,8 +55,5 @@
</table>
{include file='file:../core/view_post.tpl'}
<div>
<input type="hidden" name="staff_department_avail" value="false"/>
</div>
</form>
{/if}

View File

@@ -1,36 +0,0 @@
{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}
{if $static_page_display == true}
{foreach from=$static_page_results item=record}
<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_cart"><a href="{$URL}?_page=static_page:page_show&amp;name={$record.name}">{$record.title}</a></td>
</tr>
<tr>
<td style="background-color: #FFFFFF;">
<table width="100%" border="0" cellpadding="4">
<tr>
<td class="body">{$record.intro}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
{/foreach}
{else}
{t}Sorry, no pages were found in this category, or your account is not authorized for this category.{/t}
{/if}
{/if}

View File

@@ -1,22 +0,0 @@
{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}
{if $static_page_display == true}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" style="font-family: Verdana, Arial, Helvetica, sans-serif; color: #000066; text-decoration: underline; font-size: 120%;"><b>{$static_page_results.title}</b></td>
</tr>
<tr>
<td style="font-family: Verdana, Arial, Helvetica, sans-serif;">{$static_page_results.body}</td>
</tr>
</table>
{else}
{t}Sorry, the requested page was not found, or you do not have the required level of authorisation to view it.{/t}
{/if}
{/if}

View File

@@ -1,28 +0,0 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe_noauth($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{if $static_page_category_display == true}
<table border="0" cellspacing="0" cellpadding="0" class="menu_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="menu_1" style="text-align: center; font-size: 90%; text-decoration: underline;"><b>{osb f=tt}</b></td>
</tr>
{foreach from=$static_page_category_results item=record key=key}
<tr>
<td class="menu_2"><a href="{$URL}?_page=static_page:page_list&amp;id={$record.id}">{$record.name}</a></td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
<br/>
{/if}
{/if}

View File

@@ -92,8 +92,8 @@
<td class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row1">
<tr>
<td style="width: 35%;"><a href="?_page=core:search&amp;module=task_log&amp;task_log_task_id={$record.id}&amp;_escape=1&amp;order_by=date_orig&amp;desc=">{osb f=tt module=task_log method=view}</a></td>
<td style="width: 65%; text-align: right;"> <a href="?_page=task:view&amp;id={$record.id}&amp;ids={$VAR.ids}&amp;do%5B%5D=task:run">{t}Run{/t}</a></td>
<td style="width: 35%;"><a href="?_page=core:search&amp;module=task_log&amp;task_log_task_id={$record.id}&amp;order_by=date_orig&amp;desc=">{osb f=tt module=task_log method=view}</a></td>
<td style="width: 65%; text-align: right;"> <a href="?_page=task:view&amp;id={$record.id}&amp;ids={$VAR.ids}&amp;_page_current={$meth.0}:{$meth.1}&amp;do%5B%5D=task:run">{t}Run{/t}</a></td>
</tr>
</table>
</td>

View File

@@ -0,0 +1,12 @@
{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/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}

View File

@@ -1,41 +0,0 @@
function domainUpdate(domain,tld,type) {
document.getElementById("domain_name").value = domain;
document.getElementById("domain_tld").value = tld;
document.getElementById("domain_option").value = type;
}
function addCart(addtype,hosting) {
if (hosting == "1") {
var domain_option = document.getElementById("domain_option").value;
var domain_name = document.getElementById("domain_name").value;
var domain_tld = document.getElementById("domain_tld").value;
if(domain_option == "0") {
//@todo To Translate
alert("You must choose a 'Domain Transfer / Registration Option' to continue.");
return;
}
if(domain_name == "0" || domain_tld == "0") {
if(domain_option != "ip") {
//@todo To Translate
alert("You must select a valid domain name to continue.");
return;
}
}
}
attrValidate(addtype);
}
function doCart(addtype) {
form = document.getElementById('view');
if(addtype == 'cart') {
//document.getElementById('page').value = 'cart:admin_view';
document.getElementById('page').value = 'cart:cart';
} else if(addtype == 'checkout') {
document.getElementById('page').value = 'checkout:checkout';
}
form.action = '';
form.submit();
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

@@ -40,8 +40,8 @@
<tr>
<td>
<div id="menu">
{if $smarty.const.SHOW_STATIC_BLOCK} | <a href="?_page=static_page_category:menu">{t}Site Index{/t}</a>{/if}
{if $smarty.const.SHOW_PRODUCT_LINK} | <a href="?_page=product_cat:menu">{t}Products{/t}</a>{/if}
{if $smarty.const.SHOW_STATIC_BLOCK} | <a href="staticpage_category">{t}Site Index{/t}</a>{/if}
{if $smarty.const.SHOW_PRODUCT_LINK} | <a href="product_category">{t}Products{/t}</a>{/if}
{if $smarty.const.SHOW_CART_LINK} | <a href="?_page=cart:cart">{t}Cart{/t}</a>{/if}
{if $smarty.const.SHOW_CONTACT_LINK} | <a href="?_page=staff:staff">{t}Contact{/t}</a>{/if}
{if $smarty.const.SHOW_AFFILIATE_LINK} | <a href="?_page=affiliate:affiliate">{t}Affiliates{/t}</a>{/if}

View File

@@ -20,7 +20,7 @@ function view_nav_top(array,id,ids) {
var ff = '';
var jmp= '';
var t=array.length-1;
var t=array.length;
var last = false;
var next = false;