catalogs_products.tpl
13.5 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{if count($products_top)>0}
<!--box-->
<div class="title mt"><div class="l"><div class="r">Ïîïóëÿðíûå òîâàðû</div></div></div>
<div class="box3">
<div id="SlideItMoo_outer">
<div id="SlideItMoo_inner">
<div id="SlideItMoo_items">
{section name=i loop=$products_top}
<div class="SlideItMoo_element">
<a href="{$smarty.const.URL}{$products_top[i].rubric_translit}-catalogs/{$products_top[i].translit}-{$products_top[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/{$products_top[i].pic}" alt="{$products_top[i].title|escape:'html'}" title="{$products_top[i].title|escape:'html'}" border="0" class="pic" /></a>
<p class="name1"><a href="{$smarty.const.URL}{$products_top[i].rubric_translit}-catalogs/{$products_top[i].translit}-{$products_top[i].id}/"><strong>{$products_top[i].name|stripslashes}</strong></a></p>
<p class="brend1">{$products_top[i].brend_name}</p>
<p class="cine2">{$products_top[i].cine} ãðí.</p>
</div>
{/section}
</div>
</div>
</div>
</div>
<!--end box-->
{/if}
{*
{if count($products_akcii)}
<div class="title3 mt"><div class="l"><div class="r">Àêöèè</div></div></div>
<div class="akciya mt">
{section name=i loop=$products_akcii}
<div class="row {if not ($smarty.section.i.rownum mod 4)}n{/if}" align="center">
<a href="{$smarty.const.URL}catalogs/{$products_akcii[i].rubric_id}/t{$products_akcii[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/{$products_akcii[i].pic}" alt="{$products_akcii[i].name|escape:'html'}" title="{$products_akcii[i].name|escape:'html'}" border="0" class="pic" /></a>
<div class="name1"><a href="{$smarty.const.URL}catalogs/{$products_hits[i].rubric_id}/t{$products_akcii[i].id}/"><strong>{$products_akcii[i].name|stripslashes}</strong></a></div>
<div class="cine"><div class="l"><div class="r"><div class="w">{$products_akcii[i].cine} ãðí.</div></div></div></div>
</div>{if not ($smarty.section.i.rownum mod 4)}<div class="both"></div>{/if}
{/section}<div class="both"></div>
</div>
{/if}
*}
{if count($products_akcii)}
<div class="box5 mt">
<div id="SlideItMoo_outer2">
<div id="SlideItMoo_inner2">
<div id="SlideItMoo_items2">
{section name=i loop=$products_akcii}
<div class="SlideItMoo_element2"><div class="row" align="center">
<a href="{$smarty.const.URL}catalogs/{$products_akcii[i].rubric_id}/t{$products_akcii[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/{if $rubric.parent_id==17}w{else}a{/if}_{$products_akcii[i].pic}" alt="{$products_akcii[i].title|escape:'html'}" title="{$products_akcii[i].title|escape:'html'}" border="0" class="pic" /></a>
<div class="name2"><a href="{$smarty.const.URL}catalogs/{$products_akcii[i].rubric_id}/t{$products_akcii[i].id}/"><strong>{$products_akcii[i].name|stripslashes}</strong></a></div>
{if $products_akcii[i].is_cost2 eq 1}
<div><strike>{$products_akcii[i].cine}</strike></div>
<div class="cine"><div class="l"><div class="r"><div class="w">{$products_akcii[i].cine2}</div></div></div></div>
{else}
<div class="cine"><div class="l"><div class="r"><div class="w">{$products_akcii[i].cine}</div></div></div></div>
{/if}
</div> </div>
{/section}
</div>
</div>
</div>
</div>
{/if}
<div class="title3 mt"><div class="l"><div class="r"><div class="w">
<div class="fl">{if $rubric.id>0}<h1>{$rubric.name}</h1>{elseif $brend_seo.id>0}<h1>{$brend_seo.name}</h1>{else}<span class="h1">{$rules_info_one.name}</span>{/if}</div>
<div class="fr" style="padding-top:5px;line-height:0px;"><a href="{$smarty.const.URL}{if $smarty.get.akcii}akcii/{else}{if $smarty.get.rubID>0}{$smarty.request.rubID}-{/if}catalogs/{/if}filter;sort=cine;order=asc{if $smarty.get.search_str};search_str={$smarty.get.search_str}{/if}{if $smarty.get.brend};brend={$smarty.get.brend}{/if}{if $smarty.get.sex};sex={$smarty.get.sex}{/if}{if $smarty.get.filter};filter={$smarty.request.filter}{/if}/" rel="nofollow"><img src="{$smarty.const.URL}img/sort_down.jpg" width="19" height="19" align="absmiddle" hspace="5" border="0" /></a>Öåíà<a href="{$smarty.const.URL}{if $smarty.get.akcii}akcii/{else}{if $smarty.get.rubID>0}{$smarty.request.rubID}-{/if}catalogs/{/if}filter;sort=cine;order=desc{if $smarty.get.search_str};search_str={$smarty.get.search_str}{/if}{if $smarty.get.brend};brend={$smarty.get.brend}{/if}{if $smarty.get.sex};sex={$smarty.get.sex}{/if}{if $smarty.get.filter};filter={$smarty.request.filter}{/if}/" rel="nofollow"><img src="{$smarty.const.URL}img/sort_up.jpg" width="19" height="19" align="absmiddle" hspace="5" border="0" /></a>
<a href="{$smarty.const.URL}{if $smarty.get.akcii}akcii/{else}{if $smarty.get.rubID>0}{$smarty.request.rubID}-{/if}catalogs/{/if}filter;sort=click;order=asc{if $smarty.get.search_str};search_str={$smarty.get.search_str}{/if}{if $smarty.get.brend};brend={$smarty.get.brend}{/if}{if $smarty.get.sex};sex={$smarty.get.sex}{/if}{if $smarty.get.filter};filter={$smarty.request.filter}{/if}/" rel="nofollow"><img src="{$smarty.const.URL}img/sort_down.jpg" width="19" height="19" align="absmiddle" hspace="5" border="0" /></a>Ïîïóëÿðíîñòü<a href="{$smarty.const.URL}{if $smarty.get.akcii}akcii/{else}{if $smarty.get.rubID>0}{$smarty.request.rubID}-{/if}catalogs/{/if}filter;sort=click;order=desc{if $smarty.get.search_str};search_str={$smarty.get.search_str}{/if}{if $smarty.get.brend};brend={$smarty.get.brend}{/if}{if $smarty.get.sex};sex={$smarty.get.sex}{/if}{if $smarty.get.filter};filter={$smarty.request.filter}{/if}/" rel="nofollow"><img src="{$smarty.const.URL}img/sort_up.jpg" width="19" height="19" align="absmiddle" hspace="5" border="0" /></a></div>
<div class="both"></div>
</div></div></div></div>
{$f_text|stripslashes}
{if $brend_seo.id>0 && (!$smarty.get.pageID && !$smarty.get.page) && $smarty.get.b}<div class="mt mb">{$brend_seo.seo|stripslashes}</div>{/if}
{if count($catalogs_rubrics_parent2)}
<div class="filter">
{section name=i loop=$catalogs_rubrics_parent2}
<a href="{$smarty.const.URL}{$catalogs_rubrics_parent2[i].translit}-catalogs/">{$catalogs_rubrics_parent2[i].name}</a> {if $smarty.section.i.index<count($catalogs_rubrics_parent2)-1} | {/if}
{/section}
</div>
{/if}
{*
<div class="filter">
<a href="{$smarty.const.URL}catalogs/{$rubric.id}/">Âñå</a> | <a href="{$smarty.const.URL}catalogs/{$rubric.id}/sex1/">Ìóæñêèå</a> | <a href="{$smarty.const.URL}catalogs/{$rubric.id}/sex2/">Æåíñêèå</a> | <a href="{$smarty.const.URL}catalogs/{$rubric.id}/sex3/">Äåòñêèå</a> | <a href="{$smarty.const.URL}catalogs/{$rubric.id}/sex4/">Óíèñåêñ</a>
</div>
*}
{if count($productsData.data)}
<div class="products">
{section name=i loop=$productsData.data}
<div itemscope itemtype="http://data-vocabulary.org/Product">
<div class="pr_t"><div class="l"><div class="r"><strong>{if $rubric.list_name}<span itemprop="category" content="{$rubric.list_name}"> {$rubric.list_name}</span> {else}<span itemprop="category" content="{$productsData.data[i].list_name}"> {$productsData.data[i].list_name}</span> {/if}<a href="{$smarty.const.URL}catalogs/brends/{$productsData.data[i].brend_name}/"><span itemprop="brand">{$productsData.data[i].brend_name}</span></a></strong></div></div></div>
<div class="row"><div class="wrp">
<a href="{$smarty.const.URL}{$productsData.data[i].translit2}-catalogs/{$productsData.data[i].translit}-{$productsData.data[i].id}/"><img src="{$smarty.const.URL}{if $productsData.data[i].pic}uploaded/pic/catalogs/products/{if $productsData.data[i].akcii_id>0}a_{/if}{$productsData.data[i].pic}{else}img/picno.jpg{/if}" alt="{$productsData.data[i].list_name} {$productsData.data[i].brend_name}" title="{$productsData.data[i].list_name} {$productsData.data[i].brend_name}" itemprop="image" border="0" class="pic" align="left" /></a>
<div class="infor" align="center">
<span class='onstock'>Íàëè÷èå è öåíû óòî÷íÿéòå íà<br/> ìîìåíò ïîêóïêè</span>
{if $productsData.data[i].cine eq 1}
<div class="jdom">Òîâàð îæèäàåòñÿ</div>
{if $productsData.data[i].active>1}<div class="cine"><div class="l"><div class="r"><div class="w">{$productsData.data[i].active}</div></div></div></div>{/if}
{elseif $productsData.data[i].is_cost2 eq 1}
<div><strike>{$productsData.data[i].cine}</strike></div>
<div class="cine"><div class="l"><div class="r"><div class="w">{$productsData.data[i].cine2}</div></div></div></div>
{else}
{if $productsData.data[i].cine_last>0}<div><strike>{$productsData.data[i].cine_last}</strike></div>{/if}
<div class="cine"><div class="l"><div class="r"><div class="w"><span itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer"><span itemprop="price">{$productsData.data[i].cine}</span><meta itemprop="currency" content="UAH" /></span></div></div></div></div>
{/if}<br />
{*
<div id='ratig-layer-{$productsData.data[i].id}' style="float: none;">
<div class="rating" style="">
<span itemprop="review" itemscope itemtype="http://data-vocabulary.org/Review-aggregate">
<span itemprop="rating" content="4.5">
<ul class="unit-rating">
<li class="current-rating" style="width:{$productsData.data[i].rating}px;">{$productsData.data[i].rating}</li>
<li><a href="#" title="Óæàñíî" class="r1-unit" onclick="doRate2('1', '{$productsData.data[i].id}'); return false;">1</a></li>
<li><a href="#" title="Ïëîõî" class="r2-unit" onclick="doRate2('2', '{$productsData.data[i].id}'); return false;">2</a></li>
<li><a href="#" title="Ñðåäíå" class="r3-unit" onclick="doRate2('3', '{$productsData.data[i].id}'); return false;">3</a></li>
<li><a href="#" title="Õîðîøî" class="r4-unit" onclick="doRate2('4', '{$productsData.data[i].id}'); return false;">4</a></li>
<li><a href="#" title="Îòëè÷íî" class="r5-unit" onclick="doRate2('5', '{$productsData.data[i].id}'); return false;">5</a></li>
</ul>
</span> <span itemprop="count" content="100"></span></span>
</div></div>
*}
<br/>
{if $productsData.data[i].cine ne 1}
<a href="{$smarty.const.URL}{$productsData.data[i].translit2}-catalogs/{$productsData.data[i].translit}-{$productsData.data[i].id}/" class="link_but1">Êóïèòü</a><br />
<a href="javascript:Basket.compare({$productsData.data[i].id});" class="link_but2">Äîáàâèòü ê ñðàâíåíèþ</a>
{/if}
</div>
<div class="infob">
<strong><a href="{$smarty.const.URL}{$productsData.data[i].translit2}-catalogs/{$productsData.data[i].translit}-{$productsData.data[i].id}/" style="text-transform:uppercase;"><span itemprop="name">{$productsData.data[i].name|stripslashes}</span></a></strong>
<p><span itemprop="description">{$productsData.data[i].about|stripslashes}</span></p>
{* <p class="rgh"><a href="{$smarty.const.URL}{$productsData.data[i].translit2}-catalogs/{$productsData.data[i].translit}-{$productsData.data[i].id}/">ïîäðîáíåå</a></p> *}
</div><div class="both"></div>
</div></div>
{if not ($smarty.section.i.rownum mod 5)}
{include file="box/banner.tpl" banner=$banner_10 sub_place=$smarty.section.i.rownum}
{/if}
</div>
{/section}
</div>
<br />
<div class="perPage">Òîâàðîâ íà ñòðàíèöó: <select class="input_form" onChange="document.location='{url var='perPage'}perPage='+this.value;"><option value="20" {if $smarty.get.perPage eq 20}selected{/if}>20</option><option value="40" {if $smarty.get.perPage eq 40}selected{/if}>40</option><option value="60" {if $smarty.get.perPage eq 60}selected{/if}>60</option><option value="80" {if $smarty.get.perPage eq 80}selected{/if}>80</option><option value="100" {if $smarty.get.perPage eq 100}selected{/if}>100</option></select>{* <a href="{url var='perPage'}perPage=20" rel="nofollow">20</a> <a href="{url var='perPage'}perPage=40" rel="nofollow">40</a> <a href="{url var='perPage'}perPage=60" rel="nofollow">60</a> <a href="{url var='perPage'}perPage=80" rel="nofollow">80</a> <a href="{url var='perPage'}perPage=100" rel="nofollow">100</a>*}</div>
{if $productsData.links}
<div class="pager">Ñòðàíèöû: {$productsData.links}</div>
{/if}
{/if}
{if !$smarty.get.pageID && !$smarty.get.filter}
{$banner_9.code|stripslashes}
{/if}
<br /><br />
<div id='ratig-layer' style="float: none;">
<div class="rating" style="">
<span itemprop="review" itemscope itemtype="http://data-vocabulary.org/Review-aggregate">
<span itemprop="rating" content="{$x}" style="display:inline;">
<ul class="unit-rating">
<li class="current-rating" style="width:{$rating2}px;">{$rating2}</li>
<li><a href="#" title="Óæàñíî" class="r1-unit" onclick="doRate3('1', '{$rubric.id}'); return false;">1</a></li>
<li><a href="#" title="Ïëîõî" class="r2-unit" onclick="doRate3('2', '{$rubric.id}'); return false;">2</a></li>
<li><a href="#" title="Ñðåäíå" class="r3-unit" onclick="doRate3('3', '{$rubric.id}'); return false;">3</a></li>
<li><a href="#" title="Õîðîøî" class="r4-unit" onclick="doRate3('4', '{$rubric.id}'); return false;">4</a></li>
<li><a href="#" title="Îòëè÷íî" class="r5-unit" onclick="doRate3('5', '{$rubric.id}'); return false;">5</a></li>
</ul>
</span> <span style="display:inline;" itemprop="review" itemscope itemtype="http://data-vocabulary.org/Review-aggregate">
Ðåéòèíã <span itemprop="rating" content="{$rating3}" style="display:inline;">{$rating3}</span> íà îñíîâå
<span itemprop="count" content="{$voices2}">{$voices2}</span> ãîëîñîâ
</span></span>
</div></div>