35 lines
1.5 KiB
Smarty
35 lines
1.5 KiB
Smarty
<form id="checkout_form" name="checkout_form" method="post" action="">
|
|
<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}
|
|
|
|
<div>
|
|
<p style="text-align: center;">If you are not redirected shortly, please <a href="#" onClick="checkoutNow();">click here to redirect</a>.</p>
|
|
<input type="hidden" id="doredirect" value="true"/>
|
|
</div>
|
|
</form>
|