%%87^87F^87F0CCD7%%catalogs_compare.tpl.php 9.82 KB
<?php /* Smarty version 2.6.16, created on 2015-07-24 23:05:24
         compiled from catalogs_compare.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'catalogs_compare.tpl', 6, false),array('modifier', 'stripslashes', 'catalogs_compare.tpl', 7, false),)), $this); ?>
<div class="title3 mt mb"><div class="l"><div class="r"><div class="w">Ñðàâíèòü òîâàðû</div></div></div></div>
<?php if ($this->_tpl_vars['products'][0]['id'] > 0 || $this->_tpl_vars['products'][1]['id'] > 0): ?>
<table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="100%">
<tr bgcolor="#ffffff" valign="top">
      <td width="50%"><?php if ($this->_tpl_vars['products'][0]['id'] > 0): ?>
      <img src="<?php echo @URL;  if ($this->_tpl_vars['products'][0]['pic']): ?>uploaded/pic/catalogs/products/<?php echo $this->_tpl_vars['products'][0]['pic'];  else: ?>img/picno.jpg<?php endif; ?>" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['products'][0]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['products'][0]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border="0" class="pic right" align="left" />
      <strong><a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['products'][0]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['products'][0]['id']; ?>
/" style="text-transform:uppercase;"><?php echo ((is_array($_tmp=$this->_tpl_vars['products'][0]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</a></strong>
      <p><?php echo ((is_array($_tmp=$this->_tpl_vars['products'][0]['about'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</p>
      <?php endif; ?></td>
      <td width="50%"><?php if ($this->_tpl_vars['products'][1]['id'] > 0): ?>
      <img src="<?php echo @URL;  if ($this->_tpl_vars['products'][1]['pic']): ?>uploaded/pic/catalogs/products/<?php echo $this->_tpl_vars['products'][1]['pic'];  else: ?>img/picno.jpg<?php endif; ?>" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['products'][1]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['products'][1]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border="0" class="pic right" align="left" />
      <strong><a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['products'][1]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['products'][1]['id']; ?>
/" style="text-transform:uppercase;"><?php echo ((is_array($_tmp=$this->_tpl_vars['products'][1]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</a></strong>
      <p><?php echo ((is_array($_tmp=$this->_tpl_vars['products'][1]['about'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</p>
      <?php endif; ?></td>
</tr>
<tr bgcolor="#ffffff" valign="top">
      <td>
      <?php if (count ( $this->_tpl_vars['products'][0]['params'] ) > 0): ?>
       <table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="100%">
        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['products'][0]['params']) ? 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']);
?>
         <tr bgcolor="#ffffff"><td width="200"><?php echo $this->_tpl_vars['products'][0]['params'][$this->_sections['i']['index']]['name']; ?>
</td><td><?php if ($this->_tpl_vars['products'][0]['params'][$this->_sections['i']['index']]['size']):  echo $this->_tpl_vars['products'][0]['params'][$this->_sections['i']['index']]['size']; ?>
 <?php endif;  echo $this->_tpl_vars['products'][0]['params'][$this->_sections['i']['index']]['metka']; ?>
</td></tr>
        <?php endfor; endif; ?>
       </table>
      <?php endif; ?>
      </td>
      <td>
      <?php if (count ( $this->_tpl_vars['products'][1]['params'] ) > 0): ?>
       <table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="100%">
        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['products'][1]['params']) ? 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']);
?>
         <tr bgcolor="#ffffff"><td width="200"><?php echo $this->_tpl_vars['products'][1]['params'][$this->_sections['i']['index']]['name']; ?>
</td><td><?php if ($this->_tpl_vars['products'][1]['params'][$this->_sections['i']['index']]['size']):  echo $this->_tpl_vars['products'][1]['params'][$this->_sections['i']['index']]['size']; ?>
 <?php endif;  echo $this->_tpl_vars['products'][1]['params'][$this->_sections['i']['index']]['metka']; ?>
</td></tr>
        <?php endfor; endif; ?>
       </table>
      <?php endif; ?>
      </td>
      </tr>
<tr bgcolor="#ffffff" align="center" valign="top">
 <td><?php if ($this->_tpl_vars['products'][0]['id'] > 0): ?>
      <?php if ($this->_tpl_vars['products'][0]['is_cost2'] == 1): ?>
       <div><strike><?php echo $this->_tpl_vars['products'][0]['cine']; ?>
</strike></div>
       <div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['products'][0]['cine2']; ?>
</div></div></div></div>
      <?php else: ?>
       <?php if ($this->_tpl_vars['products'][0]['cine_last'] > 0): ?><div><strike><?php echo $this->_tpl_vars['products'][0]['cine_last']; ?>
</strike></div><?php endif; ?>
       <div class="cost"><?php echo $this->_tpl_vars['products'][0]['cine']; ?>
 ãðí.</div>
      <?php endif; ?><br />
       <a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['products'][0]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['products'][0]['id']; ?>
/" class="link_kupit">Êóïèòü</a><br />
       <a href="<?php echo @URL; ?>
catalogs/compare/?deleteID=<?php echo $this->_tpl_vars['products'][0]['id']; ?>
" onClick="return Basket.delete_c();">Óäàëèòü òîâàð</a>
 <?php endif; ?></td>
 <td><?php if ($this->_tpl_vars['products'][1]['id'] > 0): ?>
      <?php if ($this->_tpl_vars['products'][1]['is_cost2'] == 1): ?>
       <div><strike><?php echo $this->_tpl_vars['products'][1]['cine']; ?>
</strike></div>
       <div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['products'][1]['cine2']; ?>
</div></div></div></div>
      <?php else: ?>
       <?php if ($this->_tpl_vars['products'][1]['cine_last'] > 0): ?><div><strike><?php echo $this->_tpl_vars['products'][1]['cine_last']; ?>
</strike></div><?php endif; ?>
       <div class="cost"><?php echo $this->_tpl_vars['products'][1]['cine']; ?>
 ãðí.</div>
      <?php endif; ?><br />
       <a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['products'][1]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['products'][1]['id']; ?>
/" class="link_kupit">Êóïèòü</a><br />
       <a href="<?php echo @URL; ?>
catalogs/compare/?deleteID=<?php echo $this->_tpl_vars['products'][1]['id']; ?>
" onClick="return Basket.delete_c();">Óäàëèòü òîâàð</a>
 <?php endif; ?></td>
</tr>
</table>
<?php endif; ?>