-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproducts.tpl
91 lines (87 loc) · 3.89 KB
/
products.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{if !$loggedin && $currencies}
<div class="pull-right">
<form method="post" action="cart.php?gid={$smarty.get.gid}" class="form-inline">
<fieldset class="alert alert-info">
<label for="choosecurrency">{$LANG.choosecurrency}</label>:
<select id="choosecurrency" name="currency" onchange="submit()">
{foreach from=$currencies item=curr}
<option value="{$curr.id}"{if $curr.id eq $currency.id} selected{/if}>{$curr.code}</option>
{/foreach}
</select>
</fieldset>
</form>
</div>
{/if}
<div class="page-header">
<h1>{$LANG.navservicesorder}</h1>
</div>
<div class="row">
<div class="span3">
<div class="page-header">
<h3>{$LANG.ordertitle} {$LANG.ordercategories}</h3>
</div>
<div>
<ul class="nav nav-pills nav-stacked">
{foreach key=num item=productgroup from=$productgroups}
{if $gid eq $productgroup.gid}
<li class="active"><a href="{$smarty.server.PHP_SELF}?gid={$productgroup.gid}" title="{$productgroup.name}">{$productgroup.name}</a></li>
{else}
<li><a href="{$smarty.server.PHP_SELF}?gid={$productgroup.gid}" title="{$productgroup.name}">{$productgroup.name}</a></li>
{/if}
{/foreach}
{if $loggedin}
<li><a href="{$smarty.server.PHP_SELF}?gid=addons" title="{$LANG.cartproductaddons}">{$LANG.cartproductaddons}</a></li>
{if $renewalsenabled}<li><a href="{$smarty.server.PHP_SELF}?gid=renewals" title="{$LANG.domainrenewals}">{$LANG.domainrenewals}</a></li>{/if}
{/if}
{if $registerdomainenabled}<li><a href="{$smarty.server.PHP_SELF}?a=add&domain=register" title="{$LANG.registerdomain}">{$LANG.registerdomain}</a></li>{/if}
{if $transferdomainenabled}<li><a href="{$smarty.server.PHP_SELF}?a=add&domain=transfer" title="{$LANG.transferdomain}">{$LANG.transferdomain}</a></li>{/if}
</ul>
</div>
</div>
<div class="span9">
<div class="page-header">
<h3>{$LANG.cartbrowse}</h3>
</div>
<ul class="thumbnails">
{foreach key=num item=product from=$products}
<li class="thumbnail span9">
<div class="row-fluid" style="padding: 0px 10px 10px 10px;">
<div class="span8">
<h3 class="text-info">{$product.name}{if $product.qty!=""} <small>({$product.qty} {$LANG.orderavailable})</small>{/if}</h3>
<p>{$product.description}</p>
</div>
<div class="span4 textcenter">
<div>
{if $product.bid}
<strong>{$LANG.bundledeal}</strong><br>
{if $product.displayprice}<div class="lead">{$product.displayprice}</div>{/if}
{elseif $product.paytype eq "free"}
<div class="lead" style="margin:10px 0px">{$LANG.orderfree|strtolower|ucfirst}</div>
{else}
<strong>{$LANG.startingfrom}</strong><br>
<div class="lead">
{$product.pricing.minprice.price}
{if $product.pricing.minprice.cycle eq "monthly"}{$LANG.orderpaymenttermmonthly}
{elseif $product.pricing.minprice.cycle eq "quarterly"}{$LANG.orderpaymenttermquarterly}
{elseif $product.pricing.minprice.cycle eq "semiannually"}{$LANG.orderpaymenttermsemiannually}
{elseif $product.pricing.minprice.cycle eq "annually"}{$LANG.orderpaymenttermannually}
{elseif $product.pricing.minprice.cycle eq "biennially"}{$LANG.orderpaymenttermbiennially}
{elseif $product.pricing.minprice.cycle eq "triennially"}{$LANG.orderpaymenttermtriennially}
{/if}
</div>
{/if}
</div>
{if $product.qty eq "0"}
<a href="javascript:void(0)" class="btn btn-inverse btn-large disabled">{$LANG.ordernowbutton}</a>
{else}
<a href="{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" class="btn btn-primary btn-large"><i class="icon icon-shopping-cart icon-white"></i> {$LANG.ordernowbutton}</a>
{/if}
</div>
</div>
</li>
{/foreach}
<div class="textcenter" style="margin-bottom:30px;">
<a href="cart.php?a=view" title="{$LANG.viewcart}" class="btn">{$LANG.viewcart}</a>
</div>
</div>
</div>