%%87^87F^87F0CCD7%%catalogs_compare.tpl.php
9.82 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
<?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; ?>