%%B2^B22^B228A4C3%%catalogs_product.tpl.php 26.1 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 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415
<?php /* Smarty version 2.6.16, created on 2012-01-27 10:03:26
         compiled from catalogs_product.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'rubric', 'catalogs_product.tpl', 4, false),array('modifier', 'stripslashes', 'catalogs_product.tpl', 6, false),array('modifier', 'escape', 'catalogs_product.tpl', 6, false),array('modifier', 'mod_city', 'catalogs_product.tpl', 94, false),array('modifier', 'default', 'catalogs_product.tpl', 137, false),)), $this); ?>


<div class="products mt">
<div class="pr_t"><div class="l"><div class="r"><?php echo ((is_array($_tmp=$this->_tpl_vars['product']['rubric_id'])) ? $this->_run_mod_handler('rubric', true, $_tmp) : smarty_modifier_rubric($_tmp)); ?>
 <a href="<?php echo @URL; ?>
catalogs/brends/<?php echo $this->_tpl_vars['product']['brend_name']; ?>
/"><?php echo $this->_tpl_vars['product']['brend_name']; ?>
</a></div></div></div>
 <div class="row"><div class="wrp">
      <a href="<?php echo @URL; ?>
uploaded/pic/catalogs/products/big/<?php echo $this->_tpl_vars['product']['pic_big']; ?>
" rel="milkbox[gall1]" title="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><img src="<?php echo @URL;  if ($this->_tpl_vars['product']['pic']): ?>uploaded/pic/catalogs/products/<?php echo $this->_tpl_vars['product']['pic'];  else: ?>img/picno.jpg<?php endif; ?>" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border="0" class="pic" align="left" width="144" /></a>
      <div class="infor" align="center">
       <?php if ($this->_tpl_vars['product']['cine'] == 1): ?>
       <div class="jdom">Òîâàð îæèäàåòñÿ</div>
       <?php if ($this->_tpl_vars['product']['active'] > 1): ?><div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['product']['active']; ?>
</div></div></div></div><?php endif; ?>
       <?php else: ?>
       <?php if ($this->_tpl_vars['product']['cine_last'] > 0): ?><div><strike><?php echo $this->_tpl_vars['product']['cine_last']; ?>
</strike></div><?php endif; ?>
       <?php if ($this->_tpl_vars['product']['is_cost2'] == 1): ?>
        <div><strike><?php echo $this->_tpl_vars['product']['cine']; ?>
</strike></div>
        <br /><div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['product']['cine2']; ?>
</div></div></div></div>
       <?php else: ?>
        <br /><div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['product']['cine']; ?>
</div></div></div></div>
       <?php endif; ?>
       <?php endif; ?>
       <br /><br />
      </div>
      <div class="infob">
      <h1><?php echo ((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</h1>
      <?php echo ((is_array($_tmp=$this->_tpl_vars['product']['text'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>

      <?php if ($this->_tpl_vars['product']['brend_pic_s']): ?>
       <br /><a href="<?php echo @URL; ?>
uploaded/pic/catalogs/brends/s/<?php echo $this->_tpl_vars['product']['brend_pic_s']; ?>
" rel="milkbox[gall1]" title="ðàçìåðíàÿ ñåòêà">ðàçìåðíàÿ ñåòêà</a>
      <?php elseif ($this->_tpl_vars['product']['brend_text']): ?>
       <br /><a href="#" id="v_slidein" style="display:inline-block;border-bottom:1px dashed black;text-decoration:none;">ðàçìåðíàÿ ñåòêà</a>
       <div id="vertical_slide">
        <?php echo ((is_array($_tmp=$this->_tpl_vars['product']['brend_text'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>

       </div>
      <?php endif; ?>
      <div class="both"></div>
      </div><div class="both"></div>
     </div>
</div></div>

<?php echo '<div class="addsoz">
    <table width="100%" border=0>
      <tr>
        <td width="50">
            <div id="fb-root"></div>
            <script>
                (function(d, s, id) {
                  var js, fjs = d.getElementsByTagName(s)[0];
                  if (d.getElementById(id)) {return;}
                  js = d.createElement(s); js.id = id;
                  js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1";
                  fjs.parentNode.insertBefore(js, fjs);
                }(document, \'script\', \'facebook-jssdk\'));
            </script>
            <div class="fb-like" data-href="extremstyle.ua" data-send="false" data-layout="button_count" data-width="50" data-show-faces="true"></div>
        </td>
        <td width="50">
            <link href="http://stg.odnoklassniki.ru/share/odkl_share.css" rel="stylesheet">
            <script src="http://stg.odnoklassniki.ru/share/odkl_share.js" type="text/javascript" ></script>
            <a class="odkl-klass-stat" href="';  echo $_SERVER['REQUEST_URI'];  echo '" onclick="ODKL.Share(this);return false;" ><span>0</span></a>
        </td>
        <td width="230">
            <div style="width:100px;">
                <!-- Put this script tag to the <head> of your page -->
                <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?34"></script>

                <script type="text/javascript">
                  VK.init({apiId: 2474832, onlyWidgets: true});
                </script>

                <!-- Put this div tag to the place, where the Like block will be -->
                <div id="vk_like"></div>
                <script type="text/javascript">
                VK.Widgets.Like("vk_like", {type: "10"});
                </script>
            </div>
        </td>
        <td width="30">
            <span class="txtb">Ïîäåëèòüñÿ:</span>
        </td>
        <td width="180">
            <script type="text/javascript" src="http://extremstyle.ua/js/share42/share42.js"></script>
            <script type="text/javascript">share42(\'http://extremstyle.ua/js/share42/\',\'\',\'\',150,20)</script>
        </td>
     </tr>
    </table>
</div>'; ?>


<div class="both"></div>
<?php if (count ( $this->_tpl_vars['modifications'] )): ?>
<table cellpadding="4" cellspacing="1" border="0" align="center" width="100%" bgcolor="#969696">
<tr align="center" bgcolor="#ffffff" class="txtb"><td width="144">Ôîòî</td><td width="150">Ðàçìåð</td><td width="150">Öâåò</td><td width="150">Êîä</td><td width="150">Ãäå êóïèòü</td><td width="150">Êóïèòü</td></tr>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['modifications']) ? 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 align="center" bgcolor="#ffffff"><td><?php if ($this->_tpl_vars['modifications'][$this->_sections['i']['index']]['pic']): ?><a href="<?php echo @URL; ?>
uploaded/pic/catalogs/modifications/big/<?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['pic_big']; ?>
" rel="milkbox[gall1]" title="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['modifications'][$this->_sections['i']['index']]['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><img src="<?php echo @URL; ?>
uploaded/pic/catalogs/modifications/<?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['pic']; ?>
" border="0" class="pic" alt="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['modifications'][$this->_sections['i']['index']]['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" /></a><?php else: ?><img src="<?php echo @URL; ?>
img/picno2.jpg" border="0" class="pic" alt="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['modifications'][$this->_sections['i']['index']]['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" /><?php endif; ?></td><td><?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['size']; ?>
&nbsp;</td><td><?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['color']; ?>
&nbsp;</td><td><?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['code']; ?>
&nbsp;</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['modifications'][$this->_sections['i']['index']]['code'])) ? $this->_run_mod_handler('mod_city', true, $_tmp) : smarty_modifier_mod_city($_tmp)); ?>
&nbsp;</td>
<td>
       <?php if ($this->_tpl_vars['product']['cine'] == 1): ?>
       <div class="jdom">Òîâàð îæèäàåòñÿ</div>
       <?php if ($this->_tpl_vars['product']['active'] > 1): ?><div class="cine"><div class="l"><div class="r"><div class="w"><?php echo $this->_tpl_vars['product']['active']; ?>
</div></div></div></div><?php endif; ?>
       <?php else: ?>
<a href="javascript:Basket.go_pruduct(<?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['id']; ?>
);" class="link_but1">â êîðçèíó</a>
<?php endif; ?>
</td></tr>
<?php endfor; endif; ?>
</table>
<?php endif; ?>

<?php if (count ( $this->_tpl_vars['params'] ) > 0): ?>
<div class="title3 mt tb1">Õàðàêòåðèñòèêè</div>
       <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['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['params'][$this->_sections['i']['index']]['name']; ?>
</td><td><?php if ($this->_tpl_vars['params'][$this->_sections['i']['index']]['size']):  echo $this->_tpl_vars['params'][$this->_sections['i']['index']]['size']; ?>
 <?php endif;  echo $this->_tpl_vars['params'][$this->_sections['i']['index']]['metka']; ?>
</td></tr>
        <?php endfor; endif; ?>
       </table>
<?php endif; ?>

<?php if (count ( $this->_tpl_vars['products_parent'] )): ?>
<div class="title3 mt tb1">Ñîïóòñòâóþùèå òîâàðû</div>

<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_parent']) ? 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">
     <div class="pic_row">
      <a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['products_parent'][$this->_sections['i']['index']]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['products_parent'][$this->_sections['i']['index']]['id']; ?>
/"><img src="<?php echo @URL; ?>
uploaded/pic/catalogs/products/<?php echo ((is_array($_tmp=@$this->_tpl_vars['products_parent'][$this->_sections['i']['index']]['pic'])) ? $this->_run_mod_handler('default', true, $_tmp, 'no_image.jpg') : smarty_modifier_default($_tmp, 'no_image.jpg')); ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['products_parent'][$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_parent'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" border="0" class="pic" /></a>
     </div>
      <div class="name2"><a href="<?php echo @URL; ?>
catalogs/<?php echo $this->_tpl_vars['products_parent'][$this->_sections['i']['index']]['rubric_id']; ?>
/t<?php echo $this->_tpl_vars['products_parent'][$this->_sections['i']['index']]['id']; ?>
/"><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['products_parent'][$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_parent'][$this->_sections['i']['index']]['is_cost2'] == 1): ?>
       <div><strike><?php echo $this->_tpl_vars['products_parent'][$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_parent'][$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_parent'][$this->_sections['i']['index']]['cine']; ?>
</div></div></div></div>
      <?php endif; ?>
               </div> </div>
                <?php endfor; endif; ?>

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




<?php if (count ( $this->_tpl_vars['gallery'] ) > 0 || count ( $this->_tpl_vars['video'] ) > 0): ?>
<div class="title3 mt tb1">Ôîòî-âèäåî</div>
       <div class="txtb">Ôîòî:</div>
       <?php if (count ( $this->_tpl_vars['gallery'] ) > 0): ?>
       <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['gallery']) ? 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="box_pic">
        <p><a href="<?php echo @URL; ?>
uploaded/pic/catalogs/gallery/big/<?php echo $this->_tpl_vars['gallery'][$this->_sections['i']['index']]['pic_big']; ?>
" rel="milkbox[galls2]" title="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['gallery'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><strong><?php echo $this->_tpl_vars['gallery'][$this->_sections['i']['index']]['name']; ?>
</strong></a></p>
        <a href="<?php echo @URL; ?>
uploaded/pic/catalogs/gallery/big/<?php echo $this->_tpl_vars['gallery'][$this->_sections['i']['index']]['pic_big']; ?>
" rel="milkbox[galls1]" title="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['gallery'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><img src="<?php echo @URL; ?>
uploaded/pic/catalogs/gallery/<?php echo $this->_tpl_vars['gallery'][$this->_sections['i']['index']]['pic']; ?>
" border="0" alt="<?php echo $this->_tpl_vars['gallery'][$this->_sections['i']['index']]['name']; ?>
" title="<?php echo $this->_tpl_vars['gallery'][$this->_sections['i']['index']]['name']; ?>
" class="pic" /></a>
        </div>
        <?php if (! ( $this->_sections['i']['rownum'] % 3 )): ?><div class="both"></div><?php endif; ?>
       <?php endfor; endif; ?><div class="both"></div>
       <?php else: ?>ïóñòî!<?php endif; ?>
       <div class="txtb">Âèäåî:</div>
       <?php if (count ( $this->_tpl_vars['video'] ) > 0): ?>
        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['video']) ? 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 id="video_<?php echo $this->_tpl_vars['video'][$this->_sections['i']['index']]['id']; ?>
" class="ct"><?php if ($this->_tpl_vars['video'][$this->_sections['i']['index']]['type'] == 'code'):  echo ((is_array($_tmp=$this->_tpl_vars['video'][$this->_sections['i']['index']]['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp));  endif; ?></div>
        <p class="ct"><?php echo $this->_tpl_vars['video'][$this->_sections['i']['index']]['name']; ?>
</p>
   <?php if ($this->_tpl_vars['video'][$this->_sections['i']['index']]['type'] == 'video'): ?>
   <script type="text/javascript"><?php echo '
   var obj = new Swiff(\'';  echo @URL;  echo 'js/player.swf\', {
    width:  500,
    height: 300,
    container: $(\'video_';  echo $this->_tpl_vars['video'][$this->_sections['i']['index']]['id'];  echo '\'),
params: {
        allowfullscreen: \'true\',
        allowscriptaccess: \'always\',
        wmode: \'transparent\',
        flashvars: \'file=';  echo @URL; ?>
uploaded/pic/catalogs/video/<?php echo $this->_tpl_vars['video'][$this->_sections['i']['index']]['video'];  echo '\'
    },
    events: {
        onLoad: function() {
            alert("Flash is loaded!")
        }
    }
});'; ?>
</script>
    <?php endif; ?>
        <?php endfor; endif; ?>
       <?php else: ?>ïóñòî!<?php endif;  endif; ?>

<?php if ($this->_tpl_vars['product']['video_code']): ?>
<div class="title3 mt tb1">Âèäåî</div>
<CENTER><?php echo ((is_array($_tmp=$this->_tpl_vars['product']['video_code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</CENTER>
<?php endif; ?>

<?php if (count ( $this->_tpl_vars['params'] ) > 0): ?>
<div class="title3 mt tb1">Îáçîðû</div>
      <?php if (count ( $this->_tpl_vars['articles'] ) > 0): ?>
      <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['articles']) ? 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']);
?>
       <p><a href="<?php echo @URL; ?>
articles/<?php echo $this->_tpl_vars['articles'][$this->_sections['i']['index']]['id']; ?>
/"><?php echo $this->_tpl_vars['articles'][$this->_sections['i']['index']]['title']; ?>
</a></p>
      <?php endfor; endif; ?>
      <?php else: ?>
       Çàêëàäêà ïóñòà!
      <?php endif;  endif; ?>


<?php if ($this->_tpl_vars['product']['doc']): ?>
<div class="title3 mt tb1">Äîêóìåíòàöèÿ</div>
<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['doc'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>

<?php endif; ?>