%%EE^EE0^EE0F79FB%%catalogs_cities.tpl.php 3.97 KB
<?php /* Smarty version 2.6.16, created on 2013-04-30 15:10:28
         compiled from catalogs_cities.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'catalogs_cities.tpl', 11, false),array('modifier', 'stripslashes', 'catalogs_cities.tpl', 14, false),array('modifier', 'escape', 'catalogs_cities.tpl', 14, 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="50">Äåéñòâèÿ</td></tr>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['cities']) ? 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['cities'][$this->_sections['i']['index']]['id']; ?>
</td><td><b><?php echo $this->_tpl_vars['cities'][$this->_sections['i']['index']]['name']; ?>
</b></td><td width="50"><p><a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=city&editID=<?php echo $this->_tpl_vars['cities'][$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=city&deleteID=<?php echo $this->_tpl_vars['cities'][$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=city">
<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['city']['id']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['city']['id'])); ?>
">
<table cellpadding="4" cellspacing="0">
<tr><td><b>Íàçâàíèå Ãîðîäà:</b><font color="red">*</font></td></tr>
<tr><td><input type="text" name="name" class="input_form" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['name'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['city']['name']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['city']['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 align="center">
<input type="hidden" name="save"><input type="submit" class="submit_blue" value="Ñîõðàíèòü"></td></tr>
</table>
</form>