%%2D^2D0^2D0922A0%%catalogs_akcii.tpl.php
4.18 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
<?php /* Smarty version 2.6.16, created on 2013-05-23 14:28:28
compiled from catalogs_akcii.tpl */ ?>
<h3>Àêöèè</h3>
<?php if (count ( $this->_tpl_vars['productsData']['data'] )): ?>
<table cellpadding="2" cellspacing="2">
<form method="post" action="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=products&modAction=akcii" enctype="multipart/form-data">
<tr>
<?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']);
?>
<td valign="top" align="left">
<table cellpadding="2" cellspacing="0" width="200">
<tr><td align="center"><img src="<?php if ($this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['pic']): echo @URL; ?>
uploaded/pic/catalogs/products/<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['pic']; else: echo @URL; ?>
img/noproduct.jpg<?php endif; ?>"></td></tr>
<tr><td><font color="#01A03C"><b><?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['name']; ?>
</b></font></td></tr>
<tr><td><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=modifications&rubID=<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['rubric_id']; ?>
&productID=<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['id']; ?>
">Ìîäèôèêàöèè</a></td></tr>
<tr><td><b><font color="red">Öåíà: <?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['cine']; ?>
</font></b></td></tr>
<tr><td><b><font color="#000092">Àêöèÿ: <input type="hidden" name="product_id[]" value="<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['id']; ?>
"><input type="checkbox" name="hit_id[]" value="<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['hit'] == true): ?>checked<?php endif; ?>></font></b></td></tr>
<tr><td><b><font color="#000092">Ñîðò.: <input type="text" size="5" name="hit_sort[]" class="input_form" value="<?php echo $this->_tpl_vars['productsData']['data'][$this->_sections['i']['index']]['hit_sort']; ?>
"></font></b></td></tr>
</table>
</td>
<?php if (! ( $this->_sections['i']['rownum'] % 3 )): ?>
</TR><TR>
<?php endif; endfor; endif; ?>
<tr><td><input type="submit" value="Ñîõðàíèòü ÀÊÖÈÈ" class="submit_green"></td></tr>
</form>
</table>
<br>
<?php if ($this->_tpl_vars['productsData']['links']): ?><div class="pager">Ñòðàíèöû: <?php echo $this->_tpl_vars['productsData']['links']; ?>
</div><?php endif; endif; ?>