<?php /* Smarty version 2.6.26, created on 2017-03-20 01:41:38
         compiled from blocks/category_level.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'in_array', 'blocks/category_level.tpl', 22, false),)), $this); ?>
<?php echo '<!-- category level -->'; ?><?php if ($this->_tpl_vars['category']['Type']): ?><?php echo ''; ?><?php $this->assign('cat_type', $this->_tpl_vars['category']['Type']); ?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php $this->assign('cat_type', $this->_tpl_vars['section']['Type']); ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php $this->assign('replace', ('{')."category".('}')); ?><?php echo '<div><select size="10" '; ?><?php if ($this->_tpl_vars['section']['Key']): ?><?php echo 'class="section_'; ?><?php echo $this->_tpl_vars['section']['Key']; ?><?php echo '"'; ?><?php endif; ?><?php echo ' id="tree_area_'; ?><?php if ($this->_tpl_vars['category']['ID']): ?><?php echo ''; ?><?php echo $this->_tpl_vars['category']['ID']; ?><?php echo ''; ?><?php else: ?><?php echo '0'; ?><?php endif; ?><?php echo '"><option value="" class="disabled">'; ?><?php echo $this->_tpl_vars['lang']['select']; ?><?php echo '</option>'; ?><?php $_from = $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['catF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['catF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['cat']):
        $this->_foreach['catF']['iteration']++;
?><?php echo ''; ?><?php if (! empty ( $this->_tpl_vars['cat']['Sub_cat'] ) || ( $this->_tpl_vars['cat']['Add'] == '1' && $this->_tpl_vars['listing_types'][$this->_tpl_vars['cat_type']]['Cat_custom_adding'] )): ?><?php echo ''; ?><?php $this->assign('sub_leval', true); ?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php $this->assign('sub_leval', false); ?><?php echo ''; ?><?php endif; ?><?php echo '<option '; ?><?php if (((is_array($_tmp=$this->_tpl_vars['cat']['ID'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['deny_tree_categories']) : in_array($_tmp, $this->_tpl_vars['deny_tree_categories']))): ?><?php echo 'disabled="disabled"'; ?><?php endif; ?><?php echo ' title="'; ?><?php echo $this->_tpl_vars['cat']['name']; ?><?php echo '" '; ?><?php echo ' class="'; ?><?php if (! $this->_tpl_vars['sub_leval']): ?><?php echo 'no_child'; ?><?php endif; ?><?php echo '" id="tree_cat_'; ?><?php echo $this->_tpl_vars['cat']['ID']; ?><?php echo '" value="'; ?><?php if ($this->_tpl_vars['mode'] == 'link'): ?><?php echo ''; ?><?php echo $this->_tpl_vars['rlBase']; ?><?php echo 'index.php?controller='; ?><?php echo $_GET['controller']; ?><?php echo '&action=add&category='; ?><?php echo $this->_tpl_vars['cat']['ID']; ?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php echo $this->_tpl_vars['cat']['ID']; ?><?php echo ''; ?><?php endif; ?><?php echo '">'; ?><?php echo $this->_tpl_vars['cat']['name']; ?><?php echo ''; ?><?php if ($this->_tpl_vars['cat']['Lock']): ?><?php echo ' - '; ?><?php echo $this->_tpl_vars['lang']['locked']; ?><?php echo ''; ?><?php endif; ?><?php echo '</option>'; ?><?php endforeach; endif; unset($_from); ?><?php echo '</select></div><!-- category level end -->'; ?>