<script type="text/javascript" src="includes/jscript/jqueryui.js"></script>
<script type="text/javascript" src="templates/orderforms/{$carttpl}/js/main.js"></script>
<link rel="stylesheet" type="text/css" href="templates/orderforms/{$carttpl}/style.css" />
<link rel="stylesheet" type="text/css" href="templates/orderforms/{$carttpl}/uistyle.css" />
<div class="wrapper purple-content">
    	<div class="container">
        	<div class="content-heading white whmcsportal">
    			<h2>{$pagetitle}</h2>
                <small>{$LANG.cartbrowse}</small>
            </div>
            <div class="view-cart">
            	<a href="{$smarty.server.PHP_SELF}?a=view"><i class="fa fa-shopping-cart"></i></a>
            </div>
		</div>
    </div>
    <div class="wrapper purple optionbar small">
    	<div class="container">
        <ul>
{foreach key=num item=productgroup from=$productgroups}
{if $gid eq $productgroup.gid}
<li class="active"><a href="{$smarty.server.PHP_SELF}?gid={$productgroup.gid}">{$productgroup.name}</a><span></span></li>{else}<li><a href="{$smarty.server.PHP_SELF}?gid={$productgroup.gid}">{$productgroup.name}</a><span></span></li>{/if}{/foreach}{if $loggedin}<li><a href="{$smarty.server.PHP_SELF}?gid=addons">{$LANG.cartproductaddons}</a><span></span></li>{if $renewalsenabled}<li><a href="{$smarty.server.PHP_SELF}?gid=renewals">{$LANG.domainrenewals}</a><span></span></li>{/if}{/if}{if $registerdomainenabled}<li><a href="{$smarty.server.PHP_SELF}?a=add&domain=register">{$LANG.registerdomain}</a><span></span></li>{/if}{if $transferdomainenabled}<li><a href="{$smarty.server.PHP_SELF}?a=add&domain=transfer">{$LANG.transferdomain}</a><span></span></li>{/if}</ul>
</div>
</div>
    <div class="wrapper" id="maincontent">
	<div class="container">
			
            <div class="whmcssection homeclient" id="knowledgebase">

<div class="hostingcompare compareplans whmcscompare">


{if !$loggedin && $currencies}
<div class="currencychooser">
{foreach from=$currencies item=curr}
<a href="cart.php?gid={$gid}&currency={$curr.id}"><img src="images/flags/{if $curr.code eq "AUD"}au{elseif $curr.code eq "CAD"}ca{elseif $curr.code eq "EUR"}eu{elseif $curr.code eq "GBP"}gb{elseif $curr.code eq "INR"}in{elseif $curr.code eq "JPY"}jp{elseif $curr.code eq "USD"}us{elseif $curr.code eq "ZAR"}za{else}na{/if}.png" border="0" alt="" /> {$curr.code}</a>
{/foreach}
</div>
<div class="clear"></div>
{/if}
{assign var="prodcount" value=$products|@count}
{if $prodcount eq 5}{assign var="featurecount" value=2}{assign var="labelcount" value=2}{/if}
{if $prodcount eq 4}{assign var="featurecount" value=2}{assign var="labelcount" value=2}{/if}
{if $prodcount eq 3}{assign var="featurecount" value=3}{assign var="labelcount" value=2}{/if}
{if $prodcount eq 2}{assign var="featurecount" value=4}{assign var="labelcount" value=2}{/if}
{if $prodcount eq 1}{assign var="featurecount" value=4}{assign var="labelcount" value=2}{/if}
{if count($products.0.features)}
    <div class="col-sm-{$labelcount}">
        <div class="featureheader"></div>
        <div class="price"></div>
        {foreach from=$products.0.features key=feature item=value}
        	{if $feature != "ID"}
            <div class="feature">{$feature}</div>
            {/if}
        {/foreach}
        <div class="featurefooter"></div>
    </div>
{/if}

{foreach key=num item=product from=$products}
    {**
     * This line will assign a language variable dynamically.
     * This will result in a line like orderpaymenttermmonthly which can be used
     * in further output like {$LANG.$pricingTerm}
     *}
    {assign var="pricingTerm" value='orderpaymentterm'|cat:$product.pricing.minprice.cycle}
<div class="col-sm-{$featurecount}">
<div class="{if $num % 2 == 0}a{else}b{/if}header{if !count($products.0.features)}expandable{/if}">

<span class="title">{$product.name}</span>
</div>
<div class="price">{$product.pricing.minprice.price}</div>
{foreach from=$product.features key=feature item=value}
{if !$value|strstr:"!@"} 

<div class="{if $num % 2 == 0}a{else}b{/if}feature{cycle name=$product.pid values="1,2"}">{$value}</div>
{else}
{assign var="planid" value=$value}
{php}
global $smarty;
$planidnow = $smarty->get_template_vars('planid');
$planidnow = str_replace("!@", "" , $planidnow);
{/php}
{/if}
{foreachelse}
<div class="{if $num % 2 == 0}a{else}b{/if}featuredesc{cycle name=$product.pid values="1,2"}">{$product.description}</div>
{/foreach}
<div class="{if $num % 2 == 0}a{else}b{/if}feature{if count($products.0.features)}desc{/if}{cycle name=$product.pid values="1,2"}">
<br />
<input type="button" value="{$LANG.ordernowbutton}"{if $product.qty eq "0"} disabled{/if} onclick="window.location='{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}'" class="btn btn-lg btn-blue" {if $planid}
{php}
echo 'style="background:'.get_field("color", $planidnow).'"';
{/php}{/if}/>
</div>
</div>
{if !count($products.0.features) && ($num+1) % 5 == 0}<div class="clear"></div>
{/if}

{/foreach}

<div class="clear"></div>
</div>
</div>
</div>
</div>