%%91^91B^91B212F7%%catalogs_brends.tpl.php 12.4 KB
<?php /* Smarty version 2.6.16, created on 2015-07-14 10:28:23
         compiled from catalogs_brends.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'catalogs_brends.tpl', 11, false),array('modifier', 'stripslashes', 'catalogs_brends.tpl', 21, false),array('modifier', 'escape', 'catalogs_brends.tpl', 21, false),array('function', 'str_repeat', 'catalogs_brends.tpl', 36, false),)), $this); ?>
<h3>Áðåíäû</h3>

<table cellpadding="4" cellspacing="0" border="1" width="600">
<tr bgcolor="#D4DEFE"><td width="10">¹</td><td><b>Áðåíä</b></td><td width="100">Ðóáðèêà</td><td width="10">Ñîðò.</td><td width="50">Äåéñòâèÿ</td></tr>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['brends']) ? 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['brends'][$this->_sections['i']['index']]['active'] == 1): ?>#FBFD7A<?php else: ?>#E6FDEF<?php endif; ?>"><td width="10"><?php echo $this->_tpl_vars['brends'][$this->_sections['i']['index']]['id']; ?>
</td><td><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=products&brendID=<?php echo $this->_tpl_vars['brends'][$this->_sections['i']['index']]['id']; ?>
"><b><?php echo $this->_tpl_vars['brends'][$this->_sections['i']['index']]['name']; ?>
</b></a></td><td width="50"><?php echo $this->_tpl_vars['brends'][$this->_sections['i']['index']]['rubric']; ?>
</td><td width="10"><?php echo $this->_tpl_vars['brends'][$this->_sections['i']['index']]['sort']; ?>
</td><td width="50"><p><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=brends&editID=<?php echo $this->_tpl_vars['brends'][$this->_sections['i']['index']]['id']; ?>
">Ïðàâêà</a></p><p><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=brends&deleteID=<?php echo $this->_tpl_vars['brends'][$this->_sections['i']['index']]['id']; ?>
" onClick="return del();">Óäàëèòü</a></p></td></tr>
<?php endfor; endif; ?>
</table>

<form method="post" action="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=brends" enctype="multipart/form-data">
<input type="hidden" name="update_id" value="<?php echo ((is_array($_tmp=@$_POST['update_id'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['id']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['id'])); ?>
">
<table cellpadding="4" cellspacing="0">
<tr><td><b>Àêòèâíûé:</b></td></tr>
<tr><td>
<select name="active" class="input_form">
 <option value="1" <?php if ($this->_tpl_vars['brend']['active'] == 1): ?>selected<?php endif; ?>>äà</option>
 <option value="0" <?php if ($this->_tpl_vars['brend']['active'] == 0): ?>selected<?php endif; ?>>íåò</option>
</select>
</td></tr>
<tr><td><b>Email àäìèíèñòðàòîðà:</b></td></tr>
<tr><td><input type="text" name="email" class="input_form" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['email'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['email']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['email'])))) ? $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>Íàçâàíèå Áðåíäà:</b><font color="red">*</font></td></tr>
<tr><td><input type="text" name="brend" class="input_form" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['brends'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['name']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['name'])))) ? $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>Ëîãî:</b></td></tr>
<tr><td><input type="file" class="input_form" name="pic" size="60"> - Óäàëèòü <input type="checkbox" name="delete_pic" value="1" /></td></tr>

<tr><td><b>Ññûëêà:</b></td></tr>
<tr><td><input type="text" name="link" class="input_form" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['link'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['link']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['link'])))) ? $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>Ðóáðèêà:</b></td></tr>
<tr><td>
<select name="rubric_id" class="input_form">
<option value="0"></option>
<?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']);
?>
<option value="<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
" <?php if (((is_array($_tmp=@$_POST['rubric_id'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['rubric_id']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['rubric_id'])) == $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']): ?>selected<?php endif; ?>><?php echo smarty_function_str_repeat(array('value' => "&nbsp;&nbsp;&nbsp;",'count' => $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['level']), $this); echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['name']; ?>
</option>
<?php endfor; endif; ?>
</select>
</td></tr>
<tr><td><b>Êðàòêîå îïèñàíèå:</b></td></tr>
<tr><td>
<textarea name="about" cols="80" rows="15"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['about'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['about']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['about'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</textarea>
</td></tr>
<tr><td><b>Òåõíîëîãèè:</b></td></tr>
<tr><td>
<textarea name="teh" cols="80" rows="15"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['teh'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['teh']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['teh'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</textarea>
</td></tr>
<tr><td><b>Youtube code:</b></td></tr>
<tr><td>
<textarea class="input_form" name="youtube" cols="80" rows="15"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['youtube'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['youtube']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['youtube'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</textarea>
</td></tr>

<tr><td><b>Ðàçìåðíàÿ ñåòêà:</b></td></tr>
<tr><td>
<textarea name="text_setka" cols="80" rows="15"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['text_setka'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['text']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['text'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</textarea>
<br>
Èçîáðàæåíèå <input type="file" class="input_form" name="pic_s" size="60"> - Óäàëèòü <input type="checkbox" name="delete_pic_s" value="1" />
</td></tr>
<tr><td><b>SEO òåêñò:</b></td></tr>
<tr><td>
<textarea name="seo_text" cols="80" rows="15"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['seo_text'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['seo']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['seo'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</textarea>
</td></tr>
<tr><td><b>Ïîðÿäîê ñîðòèðîâêè:</b></td></tr>
<tr><td><input type="text" name="sort" class="input_form" size="5" value="<?php echo ((is_array($_tmp=@$_POST['sort'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['sort']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['sort'])); ?>
"></td></tr>
  <tr bgcolor="#959595"><td colspan="2"><font color="#ffffff"><b>META</b></font></td><td>
  <tr><td><b>title:</b></td></td></tr>
  <tr><td><input type=text name="meta_title" value="<?php echo ((is_array($_tmp=@$_POST['meta_title'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['meta_title']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['meta_title'])); ?>
" class="input_form" size="100"></td></tr>
  <tr><td><b>description:</b></td></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo ((is_array($_tmp=@$_POST['meta_description'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['meta_description']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['meta_description'])); ?>
" name="meta_description" size="100"></td></tr>
  <tr><td><b>keywords:</b></td></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo ((is_array($_tmp=@$_POST['meta_keywords'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['brend']['meta_keywords']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['brend']['meta_keywords'])); ?>
" name="meta_keywords" size="100"></td></tr>

<tr><td align="center">
<input type="hidden" name="save"><input type="submit" class="submit_blue" value="Ñîõðàíèòü"></td></tr>
</table>
</form>