Blame view

templates_c/admin/%%55^55E^55E20077%%banners.tpl.php 32.2 KB
42868d70   andryeyev   Создал GIT
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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
  <?php /* Smarty version 2.6.16, created on 2015-09-11 17:11:45
           compiled from banners.tpl */ ?>
  <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'banners.tpl', 42, false),array('modifier', 'default', 'banners.tpl', 141, false),array('modifier', 'escape', 'banners.tpl', 178, false),)), $this); ?>
  <?php if ($this->_tpl_vars['banner']['id'] > 0): ?>
   <?php $this->assign('width', $this->_tpl_vars['banner']['width']); ?>
   <?php $this->assign('height', $this->_tpl_vars['banner']['height']); ?>
  <div>
  <?php if ($this->_tpl_vars['banner']['type'] == 'flash'): ?>
          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="<?php echo $this->_tpl_vars['width']; ?>
  " height="<?php echo $this->_tpl_vars['height']; ?>
  " id="wanka" align="middle">
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="allowFullScreen" value="false" />
          <param name="movie" value="<?php echo @URL; ?>
  uploaded/pic/banners/<?php echo $this->_tpl_vars['banner']['file']; ?>
  " /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="<?php echo @URL; ?>
  uploaded/pic/banners/<?php echo $this->_tpl_vars['banner']['file']; ?>
  " quality="high" wmode="transparent" bgcolor="#ffffff" width="<?php echo $this->_tpl_vars['width']; ?>
  " height="<?php echo $this->_tpl_vars['height']; ?>
  " name="wanka" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
          <param name="wmode" value="transparent">
          </object>
  <?php elseif ($this->_tpl_vars['banner']['type'] == 'image'): ?>
          <a href="http://<?php echo $this->_tpl_vars['banner']['url']; ?>
  " target="_blank"><img src="<?php echo @URL; ?>
  uploaded/pic/banners/<?php echo $this->_tpl_vars['banner']['file']; ?>
  " width="<?php echo $this->_tpl_vars['width']; ?>
  " height="<?php echo $this->_tpl_vars['height']; ?>
  " border="0"></a>
  <?php elseif ($this->_tpl_vars['banner']['type'] == 'code'): ?>
          <?php echo ((is_array($_tmp=$this->_tpl_vars['banner']['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
  
  <?php endif; ?>
  </div>
  
  <div>
  <?php if ($this->_tpl_vars['banner']['type'] == 'flash'): ?>
          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="<?php echo $this->_tpl_vars['width']; ?>
  " height="<?php echo $this->_tpl_vars['height']; ?>
  " id="wanka" align="middle">
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="allowFullScreen" value="false" />
          <param name="movie" value="<?php echo @URL; ?>
  uploaded/pic/banners/<?php echo $this->_tpl_vars['banner']['file_ukr']; ?>
  " /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="<?php echo @URL; ?>
  uploaded/pic/banners/<?php echo $this->_tpl_vars['banner']['file']; ?>
  " quality="high" wmode="transparent" bgcolor="#ffffff" width="<?php echo $this->_tpl_vars['width']; ?>
  " height="<?php echo $this->_tpl_vars['height']; ?>
  " name="wanka" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
          <param name="wmode" value="transparent">
          </object>
  <?php elseif ($this->_tpl_vars['banner']['type'] == 'image'): ?>
          <a href="http://<?php echo $this->_tpl_vars['banner']['url_ukr']; ?>
  " target="_blank"><img src="<?php echo @URL; ?>
  uploaded/pic/banners/<?php echo $this->_tpl_vars['banner']['file_ukr']; ?>
  " width="<?php echo $this->_tpl_vars['width']; ?>
  " height="<?php echo $this->_tpl_vars['height']; ?>
  " border="0"></a>
  
  <?php endif; ?>
  </div>
  <div>
  <p><a href="<?php echo @URL; ?>
  admin.php?action=catalogs&modAction=banners&place=<?php echo $this->_tpl_vars['place']; ?>
  &n=<?php echo $this->_tpl_vars['n']; ?>
  &deleteID=<?php echo $this->_tpl_vars['banner']['id']; ?>
  " onClick="return del();" style="color:red;font-weight:bold;">Óäàëèòü áàííåð</a></p>
  </div>
  <?php endif; ?>
  
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
  $this->_smarty_include(array('smarty_include_tpl_file' => "error.tpl", 'smarty_include_vars' => array()));
  $this->_tpl_vars = $_smarty_tpl_vars;
  unset($_smarty_tpl_vars);
   ?>
  
  <form action="<?php echo @URL; ?>
  admin.php?action=catalogs&modAction=banners&place=<?php echo $this->_tpl_vars['place']; ?>
  &n=<?php echo $this->_tpl_vars['n']; ?>
  " method="post" enctype="multipart/form-data">
  <table cellpadding="4" cellspacing="0">
  <tr><td><b></u>Ðàçìåð:</u></b></td></tr>
  <tr><td>
  width: <input type="text" size="5" name="width" value="<?php echo $this->_tpl_vars['banner']['width']; ?>
  " />
  height: <input type="text" size="5" name="height" value="<?php echo $this->_tpl_vars['banner']['height']; ?>
  " />
  </td></tr>
  <tr><td><b></u>Ìåñòî:</u></b></td></tr>
  <tr><td>
  <select class="input_form" name="place" onChange="document.location='<?php echo @URL; ?>
  admin.php?action=catalogs&modAction=banners&place='+this.value;">
  <option value="">Âûáðàòü</option>
  <option value="13" <?php if ($this->_tpl_vars['place'] == 13): ?>selected<?php endif; ?>>Áàííåð ñëàéäåð íà ãëàâíîé</option>
  <option value="14" <?php if ($this->_tpl_vars['place'] == 14): ?>selected<?php endif; ?>>Áàííåð â òîâàðå (220/***)</option>
  <option value="15" <?php if ($this->_tpl_vars['place'] == 15): ?>selected<?php endif; ?>>Áàííåð â ðóáðèêå, ïîñëå ôèëüòðîâ (220/***)</option>
  </select>
  </td></tr>
  
  <?php if ($this->_tpl_vars['place'] == 10): ?>
  <tr>
          <td>
                  <b>Ïîñëå êîíêðåòíîãî ïðîäóêòà:</b>
          </td>
  </tr>
  <tr>
          <td>
                  <select class="input_form" name="sub_place">
                          <?php unset($this->_sections['i']);
  $this->_sections['i']['name'] = 'i';
  $this->_sections['i']['loop'] = is_array($_loop=21) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['i']['step'] = ((int)5) == 0 ? 1 : (int)5;
  $this->_sections['i']['start'] = (int)5;
  $this->_sections['i']['show'] = true;
  $this->_sections['i']['max'] = $this->_sections['i']['loop'];
  if ($this->_sections['i']['start'] < 0)
      $this->_sections['i']['start'] = max($this->_sections['i']['step'] > 0 ? 0 : -1, $this->_sections['i']['loop'] + $this->_sections['i']['start']);
  else
      $this->_sections['i']['start'] = min($this->_sections['i']['start'], $this->_sections['i']['step'] > 0 ? $this->_sections['i']['loop'] : $this->_sections['i']['loop']-1);
  if ($this->_sections['i']['show']) {
      $this->_sections['i']['total'] = min(ceil(($this->_sections['i']['step'] > 0 ? $this->_sections['i']['loop'] - $this->_sections['i']['start'] : $this->_sections['i']['start']+1)/abs($this->_sections['i']['step'])), $this->_sections['i']['max']);
      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']);
  ?>
                                  <option value="<?php echo $this->_sections['i']['index']; ?>
  " <?php if ($this->_sections['i']['index'] == $this->_tpl_vars['banner']['sub_place']): ?>selected=""<?php endif; ?>> <?php echo $this->_sections['i']['index']; ?>
   </option>
                          <?php endfor; endif; ?>
                  </select>
          </td>
  </tr>
  <?php endif; ?>
  
  <tr><td><b></u>Íîìåð:</u></b></td></tr>
  <tr><td>
  <select class="input_form" name="place" onChange="document.location='<?php echo @URL; ?>
  admin.php?action=catalogs&modAction=banners&place=<?php echo $_GET['place']; ?>
  &n='+this.value;">
  <option value="new">Íîâûé</option>
  <?php unset($this->_sections['i']);
  $this->_sections['i']['name'] = 'i';
  $this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['ns']) ? 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']);
  ?>
  <option value="<?php echo $this->_tpl_vars['ns'][$this->_sections['i']['index']]['n']; ?>
  " <?php if ($this->_tpl_vars['banner']['n'] == $this->_tpl_vars['ns'][$this->_sections['i']['index']]['n']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['ns'][$this->_sections['i']['index']]['n']; ?>
   - <?php echo $this->_tpl_vars['ns'][$this->_sections['i']['index']]['n_name_ru']; ?>
  </option>
  <?php endfor; endif; ?>
  </select>
  </td></tr>
  <tr><td><b></u>Ñîðò:</u></b></td></tr>
  <tr><td>
  <input type="text" size="5" name="sort" value="<?php echo $this->_tpl_vars['banner']['sort']; ?>
  " />
  </td></tr>
  <tr><td><b></u>Íàçâàíèå:</u></b></td></tr>
  <tr><td>
  <input type="text" size="55" name="n_name" value="<?php echo $this->_tpl_vars['banner']['n_name_ru']; ?>
  " />
  </td></tr>
  <tr><td><b></u>Íàçâàíèå ukr:</u></b></td></tr>
  <tr><td>
  <input type="text" size="55" name="n_name_ukr" value="<?php echo $this->_tpl_vars['banner']['n_name_ukr']; ?>
  " />
  </td></tr>
  <tr><td>
  <table cellpadding="2" cellspacing="0" width="100%">
  <tr><td><b><u>Òèï:</u></b></td></tr>
  <tr><td>
  <table cellpadding="0" cellspacing="0">
  <tr valign="top">
  <td><input id="ch1" name="type" value="flash" type="radio" <?php if (! $this->_tpl_vars['banner']['type'] || ((is_array($_tmp=@$_POST['type'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['banner']['type']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['banner']['type'])) == 'flash'): ?>checked<?php endif; ?>></td>
  <td style="padding-top: 3px;"><label for="ch1">Ôëýø</label></td>
  <td><input id="ch2" name="type" value="image" type="radio" <?php if (((is_array($_tmp=@$_POST['type'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['banner']['type']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['banner']['type'])) == 'image'): ?>checked<?php endif; ?>></td>
  <td style="padding-top: 3px;"><label for="ch2">Èçîáðàæåíèå</label></td>
  </tr>
  </table>
  </td></tr>
                <tr class="v14">
                  <td align="left"><b>Íîìåðà ðóáðèê:</b></td>
                </tr>
                <tr class="v14">
                  <td class="v10" nowrap="nowrap">
  <div style="overflow: scroll;width:220px;height:400px;">
     <div id="check_box"><table cellpadding="4" cellspacing="1" bgcolor="#94887A" width="200">
  <tr bgcolor="#F2FEFA"><td style="font-weight:bold;"><input type="checkbox" onClick="check('ch');" />Âñå</td></tr>
  
  <?php $this->assign('checkbox_akcii', ((is_array($_tmp=@$_POST['rubrics'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['banner']['rubrics_checked']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['banner']['rubrics_checked']))); ?>
  <tr bgcolor="#F2FEFA"><td style="font-weight:bold;"><input type="checkbox" name="rubrics[]" id="ch1_1" value="catalogs" <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )):  unset($this->_sections['r']);
  $this->_sections['r']['name'] = 'r';
  $this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['r']['show'] = true;
  $this->_sections['r']['max'] = $this->_sections['r']['loop'];
  $this->_sections['r']['step'] = 1;
  $this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
  if ($this->_sections['r']['show']) {
      $this->_sections['r']['total'] = $this->_sections['r']['loop'];
      if ($this->_sections['r']['total'] == 0)
          $this->_sections['r']['show'] = false;
  } else
      $this->_sections['r']['total'] = 0;
  if ($this->_sections['r']['show']):
  
              for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
                   $this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
                   $this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
  $this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
  $this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
  $this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
  $this->_sections['r']['first']      = ($this->_sections['r']['iteration'] == 1);
  $this->_sections['r']['last']       = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
   if ('catalogs' == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif;  endfor; endif;  else:  endif; ?> />Ãëàâíàÿ</td></tr>
  <tr bgcolor="#F2FEFA"><td style="font-weight:bold;"><input type="checkbox" name="rubrics[]" id="ch1_2" value="akcii" <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )):  unset($this->_sections['r']);
  $this->_sections['r']['name'] = 'r';
  $this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['r']['show'] = true;
  $this->_sections['r']['max'] = $this->_sections['r']['loop'];
  $this->_sections['r']['step'] = 1;
  $this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
  if ($this->_sections['r']['show']) {
      $this->_sections['r']['total'] = $this->_sections['r']['loop'];
      if ($this->_sections['r']['total'] == 0)
          $this->_sections['r']['show'] = false;
  } else
      $this->_sections['r']['total'] = 0;
  if ($this->_sections['r']['show']):
  
              for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
                   $this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
                   $this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
  $this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
  $this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
  $this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
  $this->_sections['r']['first']      = ($this->_sections['r']['iteration'] == 1);
  $this->_sections['r']['last']       = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
   if ('akcii' == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif;  endfor; endif;  else:  endif; ?> />Àêöèè</td></tr>
  <tr bgcolor="#F2FEFA"><td style="font-weight:bold;"><input type="checkbox" name="rubrics[]" id="ch1_3" value="akcya" <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )):  unset($this->_sections['r']);
  $this->_sections['r']['name'] = 'r';
  $this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['r']['show'] = true;
  $this->_sections['r']['max'] = $this->_sections['r']['loop'];
  $this->_sections['r']['step'] = 1;
  $this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
  if ($this->_sections['r']['show']) {
      $this->_sections['r']['total'] = $this->_sections['r']['loop'];
      if ($this->_sections['r']['total'] == 0)
          $this->_sections['r']['show'] = false;
  } else
      $this->_sections['r']['total'] = 0;
  if ($this->_sections['r']['show']):
  
              for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
                   $this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
                   $this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
  $this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
  $this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
  $this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
  $this->_sections['r']['first']      = ($this->_sections['r']['iteration'] == 1);
  $this->_sections['r']['last']       = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
   if ('akcya' == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif;  endfor; endif;  else:  endif; ?> />Àêöèè 2</td></tr>
  <tr bgcolor="#F2FEFA"><td style="font-weight:bold;"><input type="checkbox" name="rubrics[]" id="ch1_4" value="payment" <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )):  unset($this->_sections['r']);
  $this->_sections['r']['name'] = 'r';
  $this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['r']['show'] = true;
  $this->_sections['r']['max'] = $this->_sections['r']['loop'];
  $this->_sections['r']['step'] = 1;
  $this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
  if ($this->_sections['r']['show']) {
      $this->_sections['r']['total'] = $this->_sections['r']['loop'];
      if ($this->_sections['r']['total'] == 0)
          $this->_sections['r']['show'] = false;
  } else
      $this->_sections['r']['total'] = 0;
  if ($this->_sections['r']['show']):
  
              for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
                   $this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
                   $this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
  $this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
  $this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
  $this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
  $this->_sections['r']['first']      = ($this->_sections['r']['iteration'] == 1);
  $this->_sections['r']['last']       = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
   if ('payment' == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif;  endfor; endif;  else:  endif; ?> />Äîñòàâêà è îïëàòà</td></tr>
  <tr bgcolor="#F2FEFA"><td style="font-weight:bold;"><input type="checkbox" name="rubrics[]" id="ch1_5" value="shops" <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )):  unset($this->_sections['r']);
  $this->_sections['r']['name'] = 'r';
  $this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['r']['show'] = true;
  $this->_sections['r']['max'] = $this->_sections['r']['loop'];
  $this->_sections['r']['step'] = 1;
  $this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
  if ($this->_sections['r']['show']) {
      $this->_sections['r']['total'] = $this->_sections['r']['loop'];
      if ($this->_sections['r']['total'] == 0)
          $this->_sections['r']['show'] = false;
  } else
      $this->_sections['r']['total'] = 0;
  if ($this->_sections['r']['show']):
  
              for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
                   $this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
                   $this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
  $this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
  $this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
  $this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
  $this->_sections['r']['first']      = ($this->_sections['r']['iteration'] == 1);
  $this->_sections['r']['last']       = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
   if ('shops' == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif;  endfor; endif;  else:  endif; ?> />Ìàãàçèíû</td></tr>
  <tr bgcolor="#F2FEFA"><td style="font-weight:bold;"><input type="checkbox" name="rubrics[]" id="ch1_6" value="forum" <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )):  unset($this->_sections['r']);
  $this->_sections['r']['name'] = 'r';
  $this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['r']['show'] = true;
  $this->_sections['r']['max'] = $this->_sections['r']['loop'];
  $this->_sections['r']['step'] = 1;
  $this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
  if ($this->_sections['r']['show']) {
      $this->_sections['r']['total'] = $this->_sections['r']['loop'];
      if ($this->_sections['r']['total'] == 0)
          $this->_sections['r']['show'] = false;
  } else
      $this->_sections['r']['total'] = 0;
  if ($this->_sections['r']['show']):
  
              for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
                   $this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
                   $this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
  $this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
  $this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
  $this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
  $this->_sections['r']['first']      = ($this->_sections['r']['iteration'] == 1);
  $this->_sections['r']['last']       = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
   if ('forum' == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif;  endfor; endif;  else:  endif; ?> />Ôîðóì</td></tr>
  <tr bgcolor="#F2FEFA"><td style="font-weight:bold;"><input type="checkbox" name="rubrics[]" id="ch1_7" value="services" <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )):  unset($this->_sections['r']);
  $this->_sections['r']['name'] = 'r';
  $this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['r']['show'] = true;
  $this->_sections['r']['max'] = $this->_sections['r']['loop'];
  $this->_sections['r']['step'] = 1;
  $this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
  if ($this->_sections['r']['show']) {
      $this->_sections['r']['total'] = $this->_sections['r']['loop'];
      if ($this->_sections['r']['total'] == 0)
          $this->_sections['r']['show'] = false;
  } else
      $this->_sections['r']['total'] = 0;
  if ($this->_sections['r']['show']):
  
              for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
                   $this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
                   $this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
  $this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
  $this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
  $this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
  $this->_sections['r']['first']      = ($this->_sections['r']['iteration'] == 1);
  $this->_sections['r']['last']       = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
   if ('services' == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif;  endfor; endif;  else:  endif; ?> />Ñåðâèñ</td></tr>
  
  <?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="#F2FEFA"><td <?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id'] == 0): ?>style="font-weight:bold;"<?php endif; ?>><?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id'] > 0): ?>&nbsp;&nbsp;&nbsp;<?php endif; ?><input type="checkbox" name="rubrics[]" id="ch<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id']; ?>
  _<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
  " onClick="check('ch<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
  _');" value="<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
  " <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )):  unset($this->_sections['r']);
  $this->_sections['r']['name'] = 'r';
  $this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['r']['show'] = true;
  $this->_sections['r']['max'] = $this->_sections['r']['loop'];
  $this->_sections['r']['step'] = 1;
  $this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
  if ($this->_sections['r']['show']) {
      $this->_sections['r']['total'] = $this->_sections['r']['loop'];
      if ($this->_sections['r']['total'] == 0)
          $this->_sections['r']['show'] = false;
  } else
      $this->_sections['r']['total'] = 0;
  if ($this->_sections['r']['show']):
  
              for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
                   $this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
                   $this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
  $this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
  $this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
  $this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
  $this->_sections['r']['first']      = ($this->_sections['r']['iteration'] == 1);
  $this->_sections['r']['last']       = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
   if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id'] == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif;  endfor; endif;  else:  endif; ?> /><?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['name']; ?>
  </td></tr>
  <?php endfor; endif; ?>
  </table></div>
  </div>
                </td>
                </tr>
  <tr><td><b><u>Ôàéë:</u></b></td></tr>
  <tr><td><input type="file" name="upload" class="input_form"></td></tr>
  <tr><td><b><u>Ôàéë ukr:</u></b></td></tr>
  <tr><td><input type="file" name="upload_ukr" class="input_form"></td></tr>
  <tr><td><b><u>URL (áåç http://):</u></b></td></tr>
  <tr><td><input type="text" name="url" class="v12" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['url'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['banner']['url']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['banner']['url'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
  "></td></tr>
  <tr><td><b><u>URL ukr (áåç http://):</u></b></td></tr>
  <tr><td><input type="text" name="url_ukr" class="v12" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['url_ukr'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['banner']['url_ukr']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['banner']['url_ukr'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
  "></td></tr>
  <tr><td><b><u>Òåêñò:</u></b></td></tr>
  <tr><td><textarea name="code" cols="80" rows="4" class="v12"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['code'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['banner']['code']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['banner']['code'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
  </textarea></td></td></tr>
  <tr><td><b><u>Òåêñò ukr:</u></b></td></tr>
  <tr><td><textarea name="code_ukr" cols="80" rows="4" class="v12"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['code_ukr'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['banner']['code_ukr']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['banner']['code_ukr'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
  </textarea></td></td></tr>
  </table>
  </td></tr>
  <tr><td align="center"><input class="submit" value="Ñîõðàíèòü" type="submit"></td></tr>
  </table>
  <input type="hidden" name="place" value="<?php echo $this->_tpl_vars['place']; ?>
  "><input type="hidden" name="n" value="<?php echo $this->_tpl_vars['n']; ?>
  ">
  <input name="update_id" type="hidden" value="<?php echo ((is_array($_tmp=@$_POST['update_id'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['banner']['id']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['banner']['id'])); ?>
  ">
  <input type="hidden" name="save">
  </form>