%%11^119^1194686D%%catalogs_products.tpl.php 16.9 KB
<?php /* Smarty version 2.6.16, created on 2012-01-27 10:03:26
         compiled from catalogs_products.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'catalogs_products.tpl', 23, false),array('modifier', 'stripslashes', 'catalogs_products.tpl', 24, false),array('function', 'url', 'catalogs_products.tpl', 101, false),)), $this); ?>
<?php if (count ( $this->_tpl_vars['products_akcii'] )): ?>

<div class="box5 mt">
<div id="SlideItMoo_outer2">
                <div id="SlideItMoo_inner2">
                        <div id="SlideItMoo_items2">
                                <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['products_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                                <div class="SlideItMoo_element2"><div class="row" align="center">
     <a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['id']; ?>
/"><img src="<?php echo @URL; ?>
uploaded/pic/catalogs/products/<?php if ($this->_tpl_vars['rubric']['parent_id'] == 17): ?>w<?php else: ?>a<?php endif; ?>_<?php echo $this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['pic']; ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border="0" class="pic" /></a>
      <div class="name2"><a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['id']; ?>
/"><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</strong></a></div>
      <?php if ($this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['is_cost2'] == 1): ?>
       <div><strike><?php echo $this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['cine']; ?>
</strike></div>
       <div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['cine2']; ?>
</div></div></div></div>
      <?php else: ?>
       <div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['products_akcii'][$this->_sections['i']['index']]['cine']; ?>
</div></div></div></div>
      <?php endif; ?>
               </div> </div>
                <?php endfor; endif; ?>

                        </div>
                </div>
        </div>
</div>
<?php endif; ?>


<div class="title3 mt"><div class="l"><div class="r"><div class="w">
<div class="fl"><?php if ($this->_tpl_vars['rubric']['id'] > 0): ?><h1><?php echo $this->_tpl_vars['rubric']['name']; ?>
</h1><?php elseif ($this->_tpl_vars['brend_seo']['id'] > 0): ?><h1><?php echo $this->_tpl_vars['brend_seo']['name']; ?>
</h1><?php else: ?><span class="h1"><?php echo $this->_tpl_vars['rules_info_one']['name']; ?>
</span><?php endif; ?></div>
<div class="fr" style="padding-top:5px;line-height:0px;"><a href="<?php echo @URL;  if ($_GET['akcii']): ?>akcii/<?php else: ?>catalogs/<?php if ($_GET['rubID'] > 0):  echo $_GET['rubID']; ?>
/<?php endif;  endif; ?>?sort=cine&order=asc&search_str=<?php echo $_GET['search_str']; ?>
&brend=<?php echo $_GET['brend']; ?>
&sex=<?php echo $_GET['sex']; ?>
&filter=<?php echo $_GET['filter']; ?>
" rel="nofollow"><img src="<?php echo @URL; ?>
img/sort_down.jpg" width="19" height="19" align="absmiddle" hspace="5" border="0" /></a>Öåíà<a href="<?php echo @URL;  if ($_GET['akcii']): ?>akcii/<?php else: ?>catalogs/<?php if ($_GET['rubID'] > 0):  echo $_GET['rubID']; ?>
/<?php endif;  endif; ?>?sort=cine&order=desc&search_str=<?php echo $_GET['search_str']; ?>
&brend=<?php echo $_GET['brend']; ?>
&sex=<?php echo $_GET['sex']; ?>
&filter=<?php echo $_GET['filter']; ?>
" rel="nofollow"><img src="<?php echo @URL; ?>
img/sort_up.jpg" width="19" height="19" align="absmiddle" hspace="5" border="0" /></a>&nbsp;
<a href="<?php echo @URL;  if ($_GET['akcii']): ?>akcii/<?php else: ?>catalogs/<?php if ($_GET['rubID'] > 0):  echo $_GET['rubID']; ?>
/<?php endif;  endif; ?>?sort=click&order=asc&search_str=<?php echo $_GET['search_str']; ?>
&brend=<?php echo $_GET['brend']; ?>
&sex=<?php echo $_GET['sex']; ?>
&filter=<?php echo $_GET['filter']; ?>
" rel="nofollow"><img src="<?php echo @URL; ?>
img/sort_down.jpg" width="19" height="19" align="absmiddle" hspace="5" border="0" /></a>Ïîïóëÿðíîñòü<a href="<?php echo @URL;  if ($_GET['akcii']): ?>akcii/<?php else: ?>catalogs/<?php if ($_GET['rubID'] > 0):  echo $_GET['rubID']; ?>
/<?php endif;  endif; ?>?sort=click&order=desc&search_str=<?php echo $_GET['search_str']; ?>
&brend=<?php echo $_GET['brend']; ?>
&sex=<?php echo $_GET['sex']; ?>
&filter=<?php echo $_GET['filter']; ?>
" rel="nofollow"><img src="<?php echo @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>

<?php echo ((is_array($_tmp=$this->_tpl_vars['f_text'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>


<?php if ($this->_tpl_vars['brend_seo']['id'] > 0 && ( ! $_GET['pageID'] && ! $_GET['page'] ) && $_GET['b']): ?><div class="mt mb"><?php echo ((is_array($_tmp=$this->_tpl_vars['brend_seo']['seo'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</div><?php endif; ?>


<?php if (count ( $this->_tpl_vars['catalogs_rubrics_parent2'] )): ?>
<div class="filter">
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['catalogs_rubrics_parent2']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
 <a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['catalogs_rubrics_parent2'][$this->_sections['i']['index']]['id']; ?>
/"><?php echo $this->_tpl_vars['catalogs_rubrics_parent2'][$this->_sections['i']['index']]['name']; ?>
</a> <?php if ($this->_sections['i']['index'] < count ( $this->_tpl_vars['catalogs_rubrics_parent2'] ) -1): ?> | <?php endif;  endfor; endif; ?>
</div>
<?php endif;  if (count ( $this->_tpl_vars['productsData']['data'] )): ?>
   <div class="products">
 <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['productsData']['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
     <div class="pr_t"><div class="l"><div class="r"><strong><?php if ($this->_tpl_vars['rubric']['list_name']):  echo $this->_tpl_vars['rubric']['list_name']; ?>
 <?php else:  echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['list_name']; ?>
 <?php endif; ?><a href="<?php echo @URL; ?>
catalogs/brends/<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['brend_name']; ?>
/"><?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['brend_name']; ?>
</a></strong></div></div></div>
     <div class="row"><div class="wrp">
      <a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['id']; ?>
/"><img src="<?php echo @URL;  if ($this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['pic']): ?>uploaded/pic/catalogs/products/<?php if ($this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['akcii_id'] > 0): ?>a_<?php endif;  echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['pic'];  else: ?>img/picno.jpg<?php endif; ?>" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border="0" class="pic" align="left" /></a>
      <div class="infor" align="center">
      <span class='onstock'>Íàëè÷èå è öåíû óòî÷íÿéòå íà<br/> ìîìåíò ïîêóïêè</span>
      <?php if ($this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['cine'] == 1): ?>
       <div class="jdom">Òîâàð îæèäàåòñÿ</div>
       <?php if ($this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['active'] > 1): ?><div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['active']; ?>
</div></div></div></div><?php endif; ?>
      <?php elseif ($this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['is_cost2'] == 1): ?>
       <div><strike><?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['cine']; ?>
</strike></div>
       <div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['cine2']; ?>
</div></div></div></div>
      <?php else: ?>
       <?php if ($this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['cine_last'] > 0): ?><div><strike><?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['cine_last']; ?>
</strike></div><?php endif; ?>
       <div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['cine']; ?>
</div></div></div></div>
      <?php endif; ?><br />
      <?php if ($this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['cine'] != 1): ?>
       <a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['id']; ?>
/" class="link_but1">Êóïèòü</a><br />
       <a href="javascript:Basket.compare(<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['id']; ?>
);" class="link_but2">Äîáàâèòü ê ñðàâíåíèþ</a>
      <?php endif; ?>
      </div>
      <div class="infob">
      <strong><a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['id']; ?>
/" style="text-transform:uppercase;"><?php echo ((is_array($_tmp=$this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</a></strong>
      <p><?php echo ((is_array($_tmp=$this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['about'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</p>
          </div><div class="both"></div>
     </div></div>
     <?php if (! ( $this->_sections['i']['rownum'] % 5 )): ?>
                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "box/banner.tpl", 'smarty_include_vars' => array('banner' => $this->_tpl_vars['banner_10'],'sub_place' => $this->_sections['i']['rownum'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
     <?php endif; ?>
 <?php endfor; endif; ?>
   </div>

<br />
<div class="perPage">Òîâàðîâ íà ñòðàíèöó: <select class="input_form" onChange="document.location='<?php echo smarty_function_url(array('var' => 'perPage'), $this);?>
perPage='+this.value;"><option value="20" <?php if ($_GET['perPage'] == 20): ?>selected<?php endif; ?>>20</option><option value="40" <?php if ($_GET['perPage'] == 40): ?>selected<?php endif; ?>>40</option><option value="60" <?php if ($_GET['perPage'] == 60): ?>selected<?php endif; ?>>60</option><option value="80" <?php if ($_GET['perPage'] == 80): ?>selected<?php endif; ?>>80</option><option value="100" <?php if ($_GET['perPage'] == 100): ?>selected<?php endif; ?>>100</option></select></div>
<?php if ($this->_tpl_vars['productsData']['links']): ?>
<div class="pager">Ñòðàíèöû: <?php echo $this->_tpl_vars['productsData']['links']; ?>
</div>
<?php endif;  endif; ?>
    <?php if (! $_GET['pageID'] && ! $_GET['filter']):  echo ((is_array($_tmp=$this->_tpl_vars['banner_9']['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp));  endif; ?>