Files
Testing/templates/payment.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

167 lines
4.7 KiB
Smarty

{include file='header.tpl'}
{literal}
<style>
.shoptable TD {
padding-top: 5px;
padding: 5px;
font-size: 12px;
vertical-align:top;
}
.shoptable TH {
background-color: #000000;
padding: 5px;
font-weight: bold;
text-align: left;
color: #555;
}
.text {
text-align: center;
}
.checkout {
color: #555;
font-size: 14px;
padding: 2px;
height: 28px;
}
DIV.success, DIV.error {
border: 1px dashed #CCC;
padding:7px 8px 7px 7px;
font-weight: bold;
float: left;
}
DIV.cartitemshortdesc {
color: #999999;
padding-top: 5px;
}
</style>
{/literal}
<br>
<div style="padding-left: 20px;">
{* SHOW SUCCESS OR ERROR MESSAGE *}
{if $result != 0}
<div class='success'><img src='./images/success.gif' border='0' class='icon'> {lang_print id=$success_message}</div><br>
<div style="clear: both"></div>
{elseif $is_error != 0}
<div class="error"><img src='./images/error.gif' border='0' class='icon'> {lang_print id=$error_message}</div><br>
<div style="clear: both"></div>
<br>
{/if}
</div>
<br>
{if !$hide_cart}
<div style="padding: 20px; text-align: left">
<div style="width: 800px; margin-bottom: 10px">
<h2 style="font-size: 22px; font-weight: normal; padding-bottom: 2px; border-bottom: 1px solid #DDD; line-height: normal">{lang_print id=100015066}</h2>
</div>
<form action="payment.php" method="post">
<input type=hidden name="task" value="update">
<table cellpadding=0 cellspacing=0 width=800px class="shoptable">
<tr>
<th Xwidth="100%"> {lang_print id=100015067}</th>
<th width=80> {lang_print id=100015068} </th>
<th width=80> {lang_print id=100015069} </th>
<th width=80> {lang_print id=100015070} </th>
</tr>
{foreach from=$cart->cart_items item=cartitem}
<tr>
<td>
{$cartitem.cartitem_name}
{if $cartitem.cartitem_shortdesc} <br>
<div class="cartitemshortdesc">{$cartitem.cartitem_shortdesc}</div>
{/if}
</td>
<td> {if $cart->cart_info.cart_currency != 0}{$currency_code} {/if}{$cartitem.cartitem_price}{if $cart->cart_info.cart_currency == 0} {lang_print id=100015077}{/if} </td>
<td> {if $cartitem.cartitem_quantityfixed} {$cartitem.cartitem_quantity} {else} <input type=text class=text name="cartitems[{$cartitem.cartitem_number}]" value="{$cartitem.cartitem_quantity}" size=4> {/if} </td>
<td> {if $cart->cart_info.cart_currency != 0}{$currency_code} {/if}{$cartitem.cartitem_total}{if $cart->cart_info.cart_currency == 0} {lang_print id=100015077}{/if} </td>
</tr>
{/foreach}
<tr>
<td> &nbsp; </td>
<td> &nbsp; </td>
<td> &nbsp; </td>
<td> &nbsp; </td>
</tr>
<tr>
<td> {if $cart_updateable}<input type=submit class="button checkout" value="{lang_print id=100015135}"> {/if} </td>
<td> &nbsp; </td>
<td style="background-color: #000000"> <strong> {lang_print id=100015071} </strong> </td>
<td style="background-color: #000000"> {if $cart->cart_info.cart_currency != 0}{$currency_code} {/if}{$cart_total}{if $cart->cart_info.cart_currency == 0} {lang_print id=100015077}{/if} </td>
</tr>
</table>
</form>
<table cellpadding=0 cellspacing=0 width=800px>
<tr>
<td style="text-align: right">
<br>
</td>
</tr>
</table>
<br>
<div style="width: 800px; margin-bottom: 10px">
<h2 style="font-size: 16px; font-weight: normal; padding-bottom: 5px; border-bottom: 1px solid #DDD; line-height: normal">{lang_print id=100015076}</h2>
</div>
<div style="padding: 5px">
{* PAYMENT GATEWAYS *}
{* SPECIAL CASE - POINTS *}
{if $cart->cart_info.cart_currency == 0}
<form action="payment.php" method="post">
<input type="hidden" name="task" value="pay">
<input type="hidden" name="paymentgw_id" value="10">
<input type="submit" class='button' value="{lang_print id=100015078}">
</form>
{else}
{foreach from=$paymentgateways item=paymentgateway}
<div style="float: left; padding: 5px; padding-right: 10px">
{if $paymentgateway.gateway_checkout == 1}
<form action="payment.php" method="post">
<input type="hidden" name="task" value="checkout">
<input type="hidden" name="paymentgw_id" value="{$paymentgateway.gateway_id}">
{$paymentgateway.gateway_blob}
</form>
{else}
{$paymentgateway.gateway_blob}
{/if}
</div>
{/foreach}
{/if}
<div style="clear:both"></div>
</div>
<br><br><br>
</div>
{/if}
{include file='footer.tpl'}