2009-08-03 04:10:16 +00:00
|
|
|
{assign var=meth value=':'|explode:$VAR._page}
|
|
|
|
<!-- {$meth.0}:{$meth.1} -->
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{$method->exe($meth.0,$meth.1)}
|
|
|
|
{if ($method->result == false)}
|
|
|
|
{$block->display('core:method_error')}
|
|
|
|
{else}
|
|
|
|
{include file='file:../core/view_pre.tpl'}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Display the field validation -->
|
|
|
|
{if $form_validation}
|
|
|
|
{$block->display('core:alert_fields')}
|
|
|
|
{/if}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Display each record -->
|
|
|
|
<form id="view" method="post" action="" enctype="multipart/form-data">
|
|
|
|
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
|
|
|
<tr valign="top">
|
|
|
|
<td class="table_heading">{osb f=tt}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=name}</td>
|
|
|
|
<td width="50%"><input type="text" name="checkout_name" value="{$record.name}" {if $record == true}class="form_field_error"{/if}></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=description}</td>
|
|
|
|
<td width="50%"><textarea name="checkout_description" cols="40" rows="2">{$record.description}</textarea></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=active}</td>
|
|
|
|
<td width="50%">{$list->bool('checkout_active',$record.active,'" onchange="submit()')}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=graphic_url}</td>
|
|
|
|
<td width="50%"><input type="text" name="checkout_graphic_url" value="{$record.graphic_url}" {if $checkout_grapic_url == true}class="form_field_error"{/if}></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=checkout_plugin}</td>
|
|
|
|
<td width="50%">{$record.checkout_plugin}<input type="hidden" name="checkout_checkout_plugin" value="{ $record.checkout_plugin }"/></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{assign var='ablock' value='checkout_plugin:plugin_cfg_'}
|
|
|
|
{assign var='afile' value=$record.checkout_plugin}
|
|
|
|
{assign var='blockfile' value="$ablock$afile"}
|
|
|
|
{$block->display($blockfile)}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
|
|
|
|
<tr valign="top" class="row2">
|
|
|
|
<td width="33%">{osb f=tf field=allow_new}</td>
|
|
|
|
<td width="33%">{osb f=tf field=allow_recurring}</td>
|
|
|
|
<td width="33%">{osb f=tf field=allow_trial}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="33%">{$list->bool('checkout_allow_new',$record.allow_new)}</td>
|
|
|
|
<td width="33%">{$list->bool('checkout_allow_recurring',$record.allow_recurring)}</td>
|
|
|
|
<td width="33%">{$list->bool('checkout_allow_trial',$record.allow_trial)}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
|
|
|
|
<tr valign="top" class="row2">
|
|
|
|
<td width="33%">{osb f=tf field=total_minimum}</td>
|
|
|
|
<td width="33%">{osb f=tf field=total_maximum}</td>
|
|
|
|
<td width="33%">{osb f=tf field=max_decline_attempts}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="33%">
|
|
|
|
<input type="text" name="checkout_total_minimum" value="{$record.total_minimum}" {if $checkout_total_minimum == true}class="form_field_error"{/if} size="5"/>
|
|
|
|
{$list->currency_iso('')}
|
|
|
|
</td>
|
|
|
|
<td width="33%">
|
|
|
|
<input type="text" name="checkout_total_maximum" value="{$record.total_maximum}" {if $checkout_total_maximum == true}class="form_field_error"{/if} size="5"/>
|
|
|
|
{$list->currency_iso('')}
|
|
|
|
</td>
|
|
|
|
<td width="33%">
|
|
|
|
<input type="text" name="checkout_max_decline_attempts" value="{$record.max_decline_attempts}" {if $checkout_max_decline_attempts == true}class="form_field_error"{/if} size="5"/>
|
|
|
|
{$list->currency_iso('')}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
|
|
|
|
<tr valign="top" class="row2">
|
|
|
|
<td width="33%">{osb f=tf field=required_groups}</td>
|
|
|
|
<td width="33%">{osb f=tf field=excluded_products}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="33%">{$list->menu_multi($record.required_groups,'checkout_required_groups','group','name','5','5','form_menu')}</td>
|
|
|
|
<td width="33%">{$list->menu_multi($record.excluded_products,'checkout_excluded_products','product','sku','5','5','form_menu')}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=manual_approval_all}</td>
|
|
|
|
<td width="50%">{osb f=tf field=manual_approval_recur}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{$list->bool('checkout_manual_approval_all',$record.manual_approval_all)}</td>
|
|
|
|
<td width="50%">{$list->bool('checkout_manual_approval_recur',$record.manual_approval_recur)}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<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%">{osb f=tf field=manual_approval_amount}</td>
|
|
|
|
<td width="50%">{osb f=tf field=manual_approval_currency}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">
|
|
|
|
<input type="text" name="checkout_manual_approval_amount" value="{$record.manual_approval_amount}" {if $checkout_manual_approval_amount == true}class="form_field_error"{/if} size="5"/>
|
|
|
|
{$list->currency_iso('')}
|
|
|
|
</td>
|
|
|
|
<td width="50%">{$list->menu_multi($record.manual_approval_currency,'checkout_manual_approval_currency','currency','three_digit','5','5','form_menu')}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<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%">{osb f=tf field=manual_approval_country}</td>
|
|
|
|
<td width="50%">{osb f=tf field=manual_approval_group}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{$list->menu_multi($record.manual_approval_country,'checkout_manual_approval_country','country','name','5','5','form_menu')}</td>
|
|
|
|
<td width="50%">{$list->menu_multi($record.manual_approval_group,'checkout_manual_approval_group','group','name','5','5','form_menu')}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<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%">{osb f=tf field=default_when_amount}</td>
|
|
|
|
<td width="50%">{osb f=tf field=default_when_currency}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">
|
|
|
|
<input type="text" name="checkout_default_when_amount" value="{$record.default_when_amount}" {if $checkout_default_when_amount == true}class="form_field_error"{/if} size="5"/>
|
|
|
|
{$list->currency_iso('')}
|
|
|
|
</td>
|
|
|
|
<td width="50%">{$list->menu_multi($record.default_when_currency,'checkout_default_when_currency','currency','three_digit','5','5','form_menu')}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<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%">{osb f=tf field=default_when_country}</td>
|
|
|
|
<td width="50%">{osb f=tf field=default_when_group}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{$list->menu_multi($record.default_when_country,'checkout_default_when_country','country','name','5','5','form_menu')}</td>
|
|
|
|
<td width="50%">{$list->menu_multi($record.default_when_group,'checkout_default_when_group','group','name','5','5','form_menu')}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=allowed_currencies}</td>
|
|
|
|
<td width="50%">{osb f=tf field=email_template}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{$list->menu_multi($record.allowed_currencies,'checkout_allowed_currencies','currency','three_digit','5','5','form_menu')}</td>
|
|
|
|
<td width="50%"><textarea name="checkout_email_template" cols="40" rows="4">{$record.email_template}</textarea></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0" cellspacing="6" cellpadding="1" class="row1">
|
|
|
|
<tr class="row1">
|
|
|
|
{include file='file:../core/view_td_submit.tpl'}
|
|
|
|
<td> </td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{include file='file:../core/view_post.tpl'}
|
|
|
|
</form>
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|