%%28^28E^28EEE16B%%catalogs.tpl.php
16.9 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
<?php /* Smarty version 2.6.16, created on 2015-08-20 15:55:29
compiled from catalogs.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'str_repeat', 'catalogs.tpl', 36, false),array('modifier', 'default', 'catalogs.tpl', 108, false),array('modifier', 'stripslashes', 'catalogs.tpl', 111, false),)), $this); ?>
<?php if($_SESSION['admin']['group']!='4'){ ?>
<div style="margin-bottom:10px;"><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=banners">Áàííåðà</a>
<?php if ($_SESSION['admin']['group'] != 5): ?>
, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=brends">Áðåíäû</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=city">Ãîðîäà</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=import">Èìïîðò òîâàðîâ</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=import_cine">Èìïîðò öåí</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=akcii">Àêöèè</a>
<br /><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=export">Ýêñïîðòèðîâàòü òîâàðû</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=export2aktual">Ýêñïîðòèðîâàòü òîâàðû SEO òîëüêî àêòóàëüíûå</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=export_mod">Ýêñïîðòèðîâàòü ìîäèôèêàöèè</a>, <a href="<?php echo @URL; ?>
tmp/noDB_mod.csv?t=1">CSV íåò ìîäèôèêàöèè</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=export_seo">Ýêñïîðòèðîâàòü SEO</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=orders">Êëèåíòû</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=filters_h1">Ôèëüòðû H1</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=curs">Êóðñ</a>,
<a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=export_users">âûãðóçêà ïî ïîëüçîâàòåëÿì</a>, <a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=export_orders">âûãðóçêà ïî çàêàçàì</a>
<br /><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=updateCountModification" style="background:#F5F5F5;display:inline-block;padding:5px;border:1px dotted #9D9D9D;font-size:11px;color:#606060;margin-top:5px;" onClick="if(confirm('Âû óâåðåíû ÷òî õîòèòå ïåðåñ÷èòàòü êîëè÷åñòâî àêòèâíûõ ìîäèôèêàöèé â òîâàðàõ?'))return true;else return false;"><span style="font-size:10px;color:red;">Ïðè íåóäà÷íîì èìïîðòå!</span><br />Îáíîâèòü êîëè÷åñòâî ìîäèôèêàöèé â òîâàðå</a><br /><br />
<?php endif; ?>
<?php
}
?>
<?php if ($_SESSION['admin']['group'] != 5): ?>
<form method="post" action="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&save" enctype="multipart/form-data">
<table cellpadding="5" cellspacing="1" width="800" bgcolor="#808080">
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['rubrics']) ? 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="<?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['level'] < 1): ?>#D3F7DF<?php else: ?>#FCF3E4<?php endif; ?>"><td width="20"><?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['sort']; ?>
</td><td><?php echo smarty_function_str_repeat(array('value' => " ",'count' => $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['level']), $this);?>
<a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=products&rubID=<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
"><b><?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['name']; ?>
</b></a></td>
<?php
if($_SESSION['admin']['group']!='4'){
?>
<td width="10"><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=filters&rubID=<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
"><?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['filter']): echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['filter']; else: ?>Ôèëüòðû<?php endif; ?></a></td>
<td width="70" noWrap><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=filters2&rubID=<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
"><?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['filter2']): echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['filter2']; else: ?>Ôèëüòðû 2<?php endif; ?></a></td>
<td width="10"><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=years&rubID=<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
">Ãîäà</a></td>
<td width="10"><input type="radio" name="parent_id" value="<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['rubric']['parent_id'] == $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']): ?>checked<?php endif; ?> /></td>
<td width="50"><input type="button" class="submit_blue" value="Îáíóëèòü íîâèíêè" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&update_activeID=<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
'"></td>
<td width="50"><input type="button" class="submit_red" value="Óäàëèòü" onClick="del('<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&deleteID=<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
')"></td>
<td width="50"><input type="button" class="submit_orange" value="Ðåäàêòèðîâàòü" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&updateID=<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
'"></td>
<?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id'] > 0): ?>
<td><?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['top']): ?><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&topRub=<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
&top=0"><font color=red>Òîï</font></a><?php else: ?><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&topRub=<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
&top=1">Òîï</a><?php endif; ?></id>
<?php endif; ?>
<?php
}
?>
</tr>
<?php endfor; endif; ?>
</table>
<div> </div>
<table cellpadding="4" cellspacing="0">
<input type="hidden" name="update_id" value="<?php echo $this->_tpl_vars['rubric']['id']; ?>
">
<tr><td bgcolor="#E5F8FD"><b>Äîáàâëåíèå ðóáðèêè</b></td></tr>
<tr><td><b>Íàçâàíèå:</b><font color="red">*</font></td><td><b>Íàçâàíèå ukr:</b></td></tr>
<tr><td><input type="text" name="name" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['name']; ?>
"></td><td><input type="text" name="name_ukr" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['name_ukr']; ?>
"></td></tr>
<tr><td><b>Íàçâàíèå â H1:</b></td><td><b>Íàçâàíèå â H1 ukr:</b></td></tr>
<tr><td><input type="text" name="name_h1" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['name_h1']; ?>
"></td><td><input type="text" name="name_h1_ukr" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['name_h1_ukr']; ?>
"></td></tr>
<tr><td><b>Íàçâàíèå (Òðàíñëèò áåç ïðîáåëîâ):</b><font color="red">*</font></td></tr>
<tr><td><input type="text" name="translit" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['translit']; ?>
"></td></tr>
<tr><td><b>Íàçâàíèå â ñïèñêå:</b></td><td><b>Íàçâàíèå â ñïèñêå ukr:</b></td></tr>
<tr><td><input type="text" name="list_name" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['list_name']; ?>
"></td><td><input type="text" name="list_name_ukr" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['list_name_ukr']; ?>
"></td></tr>
<tr><td><b>Ôèëüòðû:</b></td><td><b>Ôèëüòðû ukr:</b></td></tr>
<tr><td><input type="text" name="filter" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['filter']; ?>
"></td><td><input type="text" name="filter_ukr" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['filter_ukr']; ?>
"></td></tr>
<tr><td><b>Ôèëüòðû2:</b></td><td><b>Ôèëüòðû2 ukr:</b></td></tr>
<tr><td><input type="text" name="filter2" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['filter2']; ?>
"></td><td><input type="text" name="filter2_ukr" class="input_form" size="60" value="<?php echo $this->_tpl_vars['rubric']['filter2_ukr']; ?>
"></td></tr>
<tr><td><b>ID ôèëüòðîâ äëÿ òîâàðîâ (÷åðåç çàïÿòóþ):</b></td></tr>
<tr><td><input type="text" name="filter_products" class="input_form" size="120" value="<?php echo $this->_tpl_vars['rubric']['filter_products']; ?>
"></td></tr>
<tr><td><b>Ñêðûòü ïîñëåäíèå òðè ñèìâîëà â íàçâàíèå òîâàðà:</b></td></tr>
<tr><td><input type="checkbox" name="literal" class="input_form" value="1" <?php if ($this->_tpl_vars['rubric']['literal'] == 1): ?>checked<?php endif; ?> /></td></tr>
<tr><td><b>Îòîáðàæàòü ðàçìåðû ìîäèôèêàöèé:</b></td></tr>
<tr><td><input type="checkbox" name="if_filter_mod" class="input_form" value="1" <?php if ($this->_tpl_vars['rubric']['if_filter_mod'] == 1): ?>checked<?php endif; ?> /></td></tr>
<tr><td><b>Âûâîäèòü öåíó â USD:</b></td></tr>
<tr><td><input type="checkbox" name="is_usd" class="input_form" value="1" <?php if ($this->_tpl_vars['rubric']['is_usd'] == 1): ?>checked<?php endif; ?> /></td></tr>
<tr><td><b>Íå âûâîäèòü â XML:</b></td></tr>
<tr><td><input type="checkbox" name="is_xml" class="input_form" value="1" <?php if ($this->_tpl_vars['rubric']['is_xml'] == 1): ?>checked<?php endif; ?> /></td></tr>
<tr><td><b>Âûâîäèòü â XML 2:</b></td></tr>
<tr><td><input type="checkbox" name="is_xml2" class="input_form" value="1" <?php if ($this->_tpl_vars['rubric']['is_xml2'] == 1): ?>checked<?php endif; ?> /></td></tr>
<tr><td><b>Ñîðò. öåíû:</b></td></tr>
<tr><td>
<select name="sort_cost">
<option value="asc" <?php if ($this->_tpl_vars['rubric']['sort_cost'] == 'asc'): ?>selected<?php endif; ?>>Óáûâàíèþ</option>
<option value="desc" <?php if ($this->_tpl_vars['rubric']['sort_cost'] == 'desc'): ?>selected<?php endif; ?>>Âîçðàñòàíèþ</option>
</select>
</td></tr>
<tr><td><b>Ôîòî:</b><font color="red">*</font></td></tr>
<tr><td><input type="file" name="pic" size="60" /></td></tr>
<tr><td><input type="checkbox" name="is_width" class="input_form" value="1" <?php if ($this->_tpl_vars['rubric']['is_width'] == 1): ?>checked<?php endif; ?> /> - ñæàòü ïî ãîðèçîíòàëè</td></tr>
<tr><td align="left" width="150"><b>Ñîðòèðîâêà:</b></td></tr>
<tr><td class="v10" nowrap="nowrap">
<input class="input_form" value="<?php echo ((is_array($_tmp=@$_POST['sort'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rubric']['sort']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rubric']['sort'])); ?>
" size="5" name="sort" type="text">
</td></tr>
<tr><td><b>Top òåêñò:</b></td><td><b>Top òåêñò ukr:</b></td></tr>
<tr><td><textarea name="top_text" cols="120" rows="10" class="input_form"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['top_text'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rubric']['top_text']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rubric']['top_text'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</textarea></td><td><textarea name="top_text_ukr" cols="120" rows="10" class="input_form"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['top_text_ukr'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rubric']['top_text_ukr']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rubric']['top_text_ukr'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</textarea></td></tr>
<tr><td><b>SEO òåêñò:</b></td><td><b>SEO òåêñò ukr:</b></td></tr>
<tr><td><textarea name="seo_text" cols="120" rows="20" class="input_form"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['seo_text'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rubric']['seo_text']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rubric']['seo_text'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</textarea></td><td><textarea name="seo_text_ukr" cols="120" rows="20" class="input_form"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['seo_text_ukr'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rubric']['seo_text_ukr']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rubric']['seo_text_ukr'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</textarea></td></tr>
<tr bgcolor="#959595"><td colspan="2"><font color="#ffffff"><b>META</b></font></td><td>
<tr><td><b>title:</b></td><td><b>title ukr:</b></td></tr>
<tr><td><input type=text name="meta_title" value="<?php echo $this->_tpl_vars['rubric']['meta_title']; ?>
" class="input_form" size="120"></td><td><input type=text name="meta_title_ukr" value="<?php echo $this->_tpl_vars['rubric']['meta_title_ukr']; ?>
" class="input_form" size="120"></td></tr>
<tr><td><b>description:</b></td><td><b>description ukr:</b></td></tr>
<tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['rubric']['meta_description']; ?>
" name="meta_description" size="120"></td><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['rubric']['meta_description_ukr']; ?>
" name="meta_description_ukr" size="120"></td></tr>
<tr><td><b>keywords:</b></td><td><b>keywords ukr:</b></td></tr>
<tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['rubric']['meta_keywords']; ?>
" name="meta_keywords" size="120"></td><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['rubric']['meta_keywords_ukr']; ?>
" name="meta_keywords_ukr" size="120"></td></tr>
<tr><td><b>about:</b></td><td><b>about ukr:</b></td></tr>
<tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['rubric']['meta_about']; ?>
" name="meta_about" size="120"></td><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['rubric']['meta_about_ukr']; ?>
" name="meta_about_ukr" size="120"></td></tr>
<tr><td align="center"><input type="hidden" name="save">
<input type="submit" class="submit_blue" value="Ñîõðàíèòü"></td></tr>
</table>
</form>
<?php endif; ?>