%%59^593^59396C76%%akcii.tpl.php
3.24 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
<?php /* Smarty version 2.6.16, created on 2015-10-29 10:09:32
compiled from akcii.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'akcii.tpl', 6, false),)), $this); ?>
<div class="title mt"><div class="l"><div class="r">Àêöèîííûå ïðåäëîæåíèÿ</div></div></div>
<div class="box2">
<?php if (count ( $this->_tpl_vars['newsAllData']['data'] )): ?>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['newsAllData']['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="block3<?php if (! ( $this->_sections['i']['rownum'] % 2 )): ?> bn3<?php endif; ?>">
<?php if ($this->_tpl_vars['newsAllData']['data'][$this->_sections['i']['index']]['pic']): ?><a href="<?php echo @URL; ?>
catalogs/?akciiID=<?php echo $this->_tpl_vars['newsAllData']['data'][$this->_sections['i']['index']]['id']; ?>
"><img src="<?php echo @URL; ?>
uploaded/pic/news/<?php echo $this->_tpl_vars['newsAllData']['data'][$this->_sections['i']['index']]['pic']; ?>
" border="0" align="center" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['newsAllData']['data'][$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['newsAllData']['data'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></a><?php endif; ?>
</div>
<?php if (! ( $this->_sections['i']['rownum'] % 2 )): ?><div class="both"></div><?php endif; ?>
<?php endfor; endif; ?><div class="both"></div>
<br />
<?php if ($this->_tpl_vars['newsAllData']['links']): ?><div class="pager">Ñòðàíèöû: <?php echo $this->_tpl_vars['newsAllData']['links']; ?>
</div><?php endif; endif; ?>
</div>