%%2E^2EF^2EF1EEF1%%catalogs_modifications.tpl.php 7.95 KB
<?php /* Smarty version 2.6.16, created on 2015-07-12 15:11:50
         compiled from catalogs_modifications.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'catalogs_modifications.tpl', 14, false),array('modifier', 'stripslashes', 'catalogs_modifications.tpl', 14, false),)), $this); ?>
<h2>Ìîäèôèêàöèè äëÿ òîâàðà "<?php echo $this->_tpl_vars['product']['name']; ?>
"</h2>
<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['rubric']['id']; ?>
">Âåðíóòüñÿ â "<?php echo $this->_tpl_vars['rubric']['name']; ?>
"</a>
<br /><br />
<table cellpadding="4" cellspacing="0" border="1">
<tr bgcolor="#D4DEFE"><td width="10">ID</td><td width="144"><b>Ôîòî</b></td><td width="150"><b>Êîä</b></td><td width="150"><b>new Êîä</b></td><td width="150">ðàçìåð.</td><td width="150">ðîñò.</td><td width="150">Öâåò</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['modifications']) ? 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="#E6FDEF"><td width="10"><?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['id']; ?>
</td><td><?php if ($this->_tpl_vars['modifications'][$this->_sections['i']['index']]['pic']): ?><img src="<?php echo @URL; ?>
uploaded/pic/catalogs/modifications/<?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['pic']; ?>
" /><?php endif; ?>&nbsp;<td><b><?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['code']; ?>
</b>&nbsp;</td><td><b><?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['new_code']; ?>
</b>&nbsp;</td><td><?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['size']; ?>
&nbsp;</td><td><?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['rost']; ?>
&nbsp;</td><td><?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['color']; ?>
&nbsp;</td><td><?php if ($this->_tpl_vars['modifications'][$this->_sections['i']['index']]['active'] == 0): ?>Íåò<?php else: ?>Åñòü<?php endif; ?></td><td width="50"><p><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=modifications&rubID=<?php echo $_GET['rubID']; ?>
&productID=<?php echo $_GET['productID']; ?>
&updateID=<?php echo $this->_tpl_vars['modifications'][$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=modifications&rubID=<?php echo $_GET['rubID']; ?>
&productID=<?php echo $_GET['productID']; ?>
&deleteID=<?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['id']; ?>
&active=<?php echo $this->_tpl_vars['modifications'][$this->_sections['i']['index']]['active']; ?>
" onClick="return del();">Óäàëèòü</a></p></td></tr>
<?php endfor; endif; ?>
</table>

<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=modifications&rubID=<?php echo $_GET['rubID']; ?>
&productID=<?php echo $_GET['productID']; ?>
" enctype="multipart/form-data">
  <tr><td><b>Êîä:</b></td></td></tr>
  <tr><td><input type=text name="code" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['code'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['modification']['code']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['modification']['code'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
" class="input_form" size="120"></td></tr>
  <tr><td><b>ðàçìåð:</b></td></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['size'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['modification']['size']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['modification']['size'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
" name="size" size="120"></td></tr>
  <tr><td><b>ðîñò:</b></td></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['rost'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['modification']['rost']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['modification']['rost'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
" name="rost" size="120"></td></tr>
  <tr><td><b>Öâåò:</b></td></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['color'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['modification']['color']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['modification']['color'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
" name="color" size="120"></td></tr>
  <tr><td><b>Öâåò äëÿ âûãðóçêè:</b></td></td></tr>
  <tr><td><input type=text class="input_form" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['color2'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['modification']['color2']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['modification']['color2'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
" name="color2" size="120"></td></tr>

  <tr><td><b>Íàëè÷èå íà ñêëàäå:</b></td></td></tr>
  <tr><td>åñòü <input type="radio" name="active" value="1" <?php if ($this->_tpl_vars['modification']['active'] == 1): ?>checked<?php endif; ?> /> / íåò <input type="radio" name="active" value="0" <?php if ($this->_tpl_vars['modification']['active'] == 0): ?>checked<?php endif; ?> />
<tr><td><b>Ôîòî:</b></td></tr>
<tr><td><input type="file" class="input_form" name="pic" size="120"> Óäàëèòü <input type="checkbox" name="delete_pic" /></td></tr>

<tr><td align="center"><input type="hidden" name="save"><input type="hidden" name="last_active" value="<?php if ($this->_tpl_vars['modification']['active'] == 0): ?>0<?php else: ?>1<?php endif; ?>"><input type="hidden" name="product_id" value="<?php echo $this->_tpl_vars['product']['id']; ?>
"><input type="hidden" name="update_id" value="<?php echo $this->_tpl_vars['modification']['id']; ?>
">
<input type="submit" class="submit_blue" value="Ñîõðàíèòü"></td></tr>
</form>
</table>