This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/checkout_plugin/echeck.tpl

169 lines
9.1 KiB
Smarty
Raw Normal View History

<form id="checkout_form" name="checkout_form" method="post" action="" onSubmit="javascript:void(0)">
<input type="hidden" name="option" value="{$VAR.option}">
{if $VAR.invoice_id == ""}
{if $VAR.admin != '' && $VAR.account_id != '' }
<input type="hidden" name="admin" value="1">
<input type="hidden" name="do[]" value="checkout:admin_checkoutnow">
<input type="hidden" name="_page" value="checkout:admin_checkout">
<input type="hidden" name="account_id" value="{$VAR.account_id}">
{else}
<input type="hidden" name="do[]" value="checkout:checkoutnow">
<input type="hidden" name="_page" value="checkout:checkout">
{/if}
{else}
{if $VAR.admin != '' && $VAR.account_id != '' }
<input type="hidden" name="admin" value="1">
<input type="hidden" name="do[]" value="checkout:admin_checkoutnow">
<input type="hidden" name="_page" value="checkout:admin_checkout">
<input type="hidden" name="account_id" value="{$VAR.account_id}">
{else}
<input type="hidden" name="do[]" value="invoice:checkoutnow">
{if $VAR.invoice_id > 0}
<input type="hidden" name="_page" value="invoice:user_view">
{else}
<input type="hidden" name="_page" value="invoice:checkout_multiple">
{/if}
{/if}
<input type="hidden" name="invoice_id" value="{$VAR.invoice_id}">
{/if}
<!-- get cards on file -->
{$method->exe("account_billing","list_on_file")}
<input type="hidden" name="new_card" id="new_card" value="{if $VAR.new_card!=''}{$VAR.new_card}{elseif $onfile}2{else}1{/if}">
<!-- show old card on file -->
2009-08-03 04:10:16 +00:00
<div id="onfile" {if !$onfile || $VAR.new_card == 1}{osb f=style_hide}{/if}>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="row2">
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="table_heading">
<tr>
<td valign="top" align="center" class="body">
{if $VAR.msg != ""}
{$VAR.msg|upper}
{else}
{translate module=checkout}
enter_card_onfile
{/translate}
{/if} </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr>
<td width="35%">
<select name="account_billing_id" id="account_billing_id">{html_options options=$onfile selected=$VAR.account_billing_id}</select>
<a href="javascript:void(0);" onClick="editSavedCard('{$VAR.admin}')">{translate}edit{/translate}</a>
</td>
<td width="25%"><b>
<input type="submit" id="submitform" name="submitform" value="{translate module=checkout}process_ord{/translate}" onClick="javascript:checkoutNow(2)">
</b>
</td>
<td width="20%"><a href="javascript:void(0);" onClick="enter_new_card()"><U>{translate module=checkout} enter_new_card {/translate}</U></a></td>
</tr>
</table>
</tr>
</table>
</tr>
</td>
</table>
</div>
<!-- show new card form -->
2009-08-03 04:10:16 +00:00
<div id="newcard" {if $onfile && $VAR.new_card != 1 }{osb f=style_hide}{/if} >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="row2">
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="row1">
<tr>
<td valign="top" align="center" class="table_heading">
{if $VAR.msg != ""}
{$VAR.msg|upper}
{else}
{translate module=checkout}
enter_card
{/translate}
{/if} </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="body">
<tr>
<td width="17%">{translate module=checkout} eft_trn {/translate}{if $VAR.eft_trn_error}<font color="#FF0000">*</font>{/if} </td>
<td width="17%"><input type="text" name="checkout_plugin_data[eft_trn]" value="{$VAR.eft_trn}" size="12"> </td>
<td width="16%">{translate module=checkout} eft_check_acct {/translate}{if $VAR.eft_check_acct_error}<font color="#FF0000">*</font>{/if}</td>
<td width="16%"><input type="text" name="checkout_plugin_data[eft_check_acct]" value="{$VAR.eft_check_acct}" size="20"></td>
<td width="17%">
{translate module=checkout}eft_check_checkno{/translate}
{if $VAR.eft_check_checkno_error}<font color="#FF0000">*</font>{/if} </td>
<td width="17%">
<input type="text" name="checkout_plugin_data[eft_check_checkno]" value="{$VAR.eft_check_checkno}" size="12">
</td>
</tr>
<tr>
<td>{translate module=account} field_first_name {/translate}{if $VAR.first_name_error}<font color="#FF0000">*</font>{/if}</td>
<td><input type="text" name="checkout_plugin_data[first_name]" value="{$VAR.first_name}" size="12"></td>
<td>{translate module=account} field_last_name {/translate}{if $VAR.last_name_error}<font color="#FF0000">*</font>{/if}</td>
<td><input type="text" name="checkout_plugin_data[last_name]" value="{$VAR.last_name}" size="12"></td>
<td>{translate module=checkout} eft_check_acct_type {/translate} </td>
<td><select name="checkout_plugin_data[eft_check_acct_type]" >
<option value="p" {if $var.eft_check_acct_type == "p"}selected{/if}>{translate module=checkout}eft_type_p{/translate}</option>
<option value="b" {if $var.eft_check_acct_type == "b"}selected{/if}>{translate module=checkout}eft_type_b{/translate}</option>
</select></td>
</tr>
<tr>
<td width="17%">{translate module=account} field_address1 {/translate}{if $VAR.address1_error}<font color="#FF0000">*</font>{/if}
</td>
<td width="17%"><input type="text" name="checkout_plugin_data[address1]" value="{$VAR.address1}" size="12"> </td>
<td>{translate module=account} field_city {/translate}{if $VAR.city_error}<font color="#FF0000">*</font>{/if}</td>
<td><input type="text" name="checkout_plugin_data[city]" value="{$VAR.city}" size="20"></td>
<td width="17%">{translate module=account} field_state {/translate}{if $VAR.state_error}<font color="#FF0000">*</font>{/if} </td>
<td width="17%"><input type="text" name="checkout_plugin_data[state]" value="{$VAR.state}" size="12">
</td>
</tr>
<tr>
<td width="17%">{translate module=account} field_zip{/translate}{if $VAR.zip_error}<font color="#FF0000">*</font>{/if} </td>
<td width="17%"><input type="text" name="checkout_plugin_data[zip]" value="{$VAR.zip}" size="12"></td>
<td width="16%">{translate module=account} field_country_id{/translate}</td>
<td width="16%">{if $VAR.country_id != ""} { $list->menu("no", "checkout_plugin_data[country_id]", "country", "name", $VAR.country_id, "") } {else} { $list->menu("no", "checkout_plugin_data[country_id]", "country", "name", $smarty.const.DEFAULT_COUNTRY, "") } {/if} </td>
<td width="17%">{translate module=checkout} phone{/translate}{if $VAR.phone_error}<font color="#FF0000">*</font>{/if}</td>
<td width="17%"><input type="text" name="checkout_plugin_data[phone]" value="{$VAR.phone}" size="12"> </td>
</tr>
<tr>
<td width="17%">
<input type="button" id="submit_checkout_form" name="submit_checkout_form" value="{translate module=checkout}process_ord{/translate}" onClick="javascript:checkoutNow(1)">
</td>
<td width="17%"><input type="hidden" name="email" value="{$VAR.email}">
<input type="hidden" name="detailsnocopy" value="1">
<input type="hidden" name="checkout_plugin_data[card_type]" value="eft"></td>
<td width="16%">&nbsp;</td>
<td width="16%">&nbsp;</td>
<td width="17%">&nbsp;</td>
<td width="17%" align="right">&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
2009-08-03 04:10:16 +00:00
<br>