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/cart/cart_table_assoc.tpl
2011-05-03 09:49:01 +10:00

49 lines
2.0 KiB
Smarty

{foreach from=$cart.assoc item=cart_assoc}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td style="width: 70%;" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td class="row2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td style="text-decoration: underline;"><b>{$cart_assoc.domain_name|upper}.{$cart_assoc.domain_tld|upper}</b></td>
<td style="width: 20px; text-align: right;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;{$list->menu_staticlist('domaintype','','',$cart_assoc.host_type,'form_menu')} {$cart.product.sku}</td>
</tr>
</table>
</td>
<td style="width: 30%;" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td style="width: 70%;">{translate module=cart}base_price{/translate}</td>
<td style="width: 30%;" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">{$list->format_currency_num($cart_assoc.price, $smarty.const.SESS_CURRENCY)}</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart_assoc.host_type == 'register'}
<select id="quantity_{$cart_assoc.id}" onchange="changeDomainTerm('{$cart_assoc.id}',this.value);">
{foreach from=$cart_assoc.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart_assoc.domain_term}selected="selected"{/if}>{$tld_term} Year {$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
{/foreach}