Вход Регистрация
Файл: core/tpl/user/default/blocks/category_center.tpl.html
Строк: 57
<?php
{* шаблон блока обзора категорий *}

{if 
$big_categories_tree && $big_categories_tree_count>0}
<
table cellspacing="0" cellpadding="0" width="100%">
{
counter name='s1' start=-1 skip=print=false assign='select_counter_var'}

{
section name=h1 loop=$big_categories_tree}
{if 
$big_categories_tree[h1].categoryID != && $big_categories_tree[h1].parent == 1}

{
assign var="tmp" value=0}
{
counter name='s1'}
{if (
$select_counter_varis div by 2}<tr>{/if}

<
td width="50%" valign="top" align="left">
  <
table cellspacing="0" cellpadding="0">
    <
tr>
      {if 
$big_categories_tree[h1].picture != ""}
      <
td valign="top" align="left"><a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}category_{$big_categories_tree[h1].categoryID}.html{else}index.php?categoryID={$big_categories_tree[h1].categoryID}{/if}"><img src="data/category/{$big_categories_tree[h1].picture}style="margin-right: 5px;" alt=""></a></td>
      {/if}
      <
td valign="top" align="left"><a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}category_{$big_categories_tree[h1].categoryID}.html{else}index.php?categoryID={$big_categories_tree[h1].categoryID}{/if}" class="arc cl18">{$big_categories_tree[h1].name}</a>{if $smarty.const.CONF_SHOW_COUNTPROD eq 1}&nbsp;<span class="cl18">({$big_categories_tree[h1].products_count})</span>{/if}
      <
div align="left" style="padding-top: 4px; padding-bottom: 14px;">
      {
section name=h2 loop=$big_categories_tree}
        {if 
$big_categories_tree[h2].parent == $big_categories_tree[h1].categoryID && $big_categories_tree[h1].parent == 1}
          {if 
$tmp == 1} | {else}{assign var="tmp" value=1}{/if}
          <
a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}category_{$big_categories_tree[h2].categoryID}.html{else}index.php?categoryID={$big_categories_tree[h2].categoryID}{/if}">{$big_categories_tree[h2].name}</a>{if $smarty.const.CONF_SHOW_COUNTPROD eq 1}&nbsp;({$big_categories_tree[h2].products_count}){/if}
        {/if}
      {/
section}
      </
div>
      </
td>
    </
tr>
  </
table>
</
td>

{if (
$select_counter_var+1is div by 2}</tr>{else}
<
td><img src="data/{$smarty.const.TPL}/pixel.gif" class="delim" alt=""></td><td><img src="data/{$smarty.const.TPL}/pixel.gif" class="delim" alt=""></td>
{/if}

{/if}
{/
section}
</
table>
{else}<
div align="center">{$smarty.const.STRING_NO_CATEGORIES}</div>{/if}
?>
Онлайн: 1
Реклама