<?php /* Smarty version 2.6.25, created on 2012-07-17 21:37:08
         compiled from category_tree.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'category_tree.tpl', 4, false),array('modifier', 'trim', 'category_tree.tpl', 4, false),array('function', 'cycle', 'category_tree.tpl', 10, false),)), $this); ?>
<?php echo ''; ?><?php if ($this->_tpl_vars['action'] == 'titleupdate'): ?><?php echo ''; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['CategoryTitle'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo ''; ?><?php else: ?><?php echo '<div id="categtree"><h2>Select category <span id="close_tree" onclick="'; ?><?php echo 'catTreeClose(); return false;'; ?><?php echo '" title="Close category tree"><img src="'; ?><?php echo @FULL_TEMPLATE_PATH; ?><?php echo '/images/arrow-up.png" alt="Close category tree" width="12" height="12" border="0" /></span></h2>'; ?><?php if ($this->_tpl_vars['categID'] > 0): ?><?php echo '<div class="categ-item '; ?><?php echo smarty_function_cycle(array('values' => "odd,even"), $this);?><?php echo '" title="Reload category list from top." onclick="reload_categ_tree(0); return false;"><img src="'; ?><?php echo @FULL_TEMPLATE_PATH; ?><?php echo '/images/refresh.png" align="top" alt="Reload category tree from top" border="0" height="12" width="12" />Reload</div><div class="categ-item '; ?><?php echo smarty_function_cycle(array('values' => "odd,even"), $this);?><?php echo '" title="Go one step back" onclick="update_categ_selection('; ?><?php echo $this->_tpl_vars['parentID']; ?><?php echo ', 0, 1); return false;"><img src="'; ?><?php echo @FULL_TEMPLATE_PATH; ?><?php echo '/images/arrow-diag.png" align="top" alt="Go one step back" border="0" height="12" width="12" />..</div>'; ?><?php endif; ?><?php echo ''; ?><?php if (! $this->_tpl_vars['error_cat_tree']): ?><?php echo ''; ?><?php $_from = $this->_tpl_vars['categoryList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['categs'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['categs']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['cat']):
        $this->_foreach['categs']['iteration']++;
?><?php echo '<div class="categ-item '; ?><?php echo smarty_function_cycle(array('values' => "odd,even"), $this);?><?php echo '" title="'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['cat']['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '" onclick="update_categ_selection('; ?><?php echo $this->_tpl_vars['cat']['ID']; ?><?php echo ', '; ?><?php echo $this->_tpl_vars['parentID']; ?><?php echo ', '; ?><?php echo $this->_tpl_vars['cat']['SUBCATEGS']; ?><?php echo '); return false;">'; ?><?php if ($this->_tpl_vars['cat']['SUBCATEGS'] == 1): ?><?php echo '<img src="'; ?><?php echo @FULL_TEMPLATE_PATH; ?><?php echo '/images/folderopen.png" align="top" alt="Select subcategories" border="0" height="12" width="12" />'; ?><?php else: ?><?php echo '<img src="'; ?><?php echo @FULL_TEMPLATE_PATH; ?><?php echo '/images/folderclose.png" align="top" alt="No subcategories available" border="0" height="12" width="12" />'; ?><?php endif; ?><?php echo ''; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['cat']['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</div>'; ?><?php endforeach; endif; unset($_from); ?><?php echo ''; ?><?php endif; ?><?php echo '</div>'; ?><?php endif; ?><?php echo ''; ?>