<?php /* Smarty version 2.6.25, created on 2012-08-01 15:41:50
         compiled from category_select.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'math', 'category_select.tpl', 19, false),)), $this); ?>
<?php echo ''; ?><?php if (@CAT_SELECTION_METHOD == 1): ?><?php echo ''; ?><?php if (! empty ( $this->_tpl_vars['CategoryTitle'] )): ?><?php echo ''; ?><?php echo $this->_tpl_vars['CategoryTitle']; ?><?php echo ''; ?><?php else: ?><?php echo 'Please select a category!'; ?><?php endif; ?><?php echo '<input type="hidden" id="CATEGORY_ID" name="CATEGORY_ID" value="'; ?><?php echo $this->_tpl_vars['CATEGORY_ID']; ?><?php echo '" />'; ?><?php elseif (@CAT_SELECTION_METHOD == 2 && $this->_tpl_vars['link_type_details']['MULTIPLE_CATEGORIES'] <= 1): ?><?php echo '<div id="catTitle">'; ?><?php if (! empty ( $this->_tpl_vars['CategoryTitle'] )): ?><?php echo ''; ?><?php echo $this->_tpl_vars['CategoryTitle']; ?><?php echo ''; ?><?php else: ?><?php echo 'Please select a category!'; ?><?php endif; ?><?php echo '</div><span id="toggleCategTree">Change category</span><input type="hidden" id="CATEGORY_ID" name="CATEGORY_ID" value="'; ?><?php echo $this->_tpl_vars['CATEGORY_ID']; ?><?php echo '" /><div id="categtreebox"></div>'; ?><?php else: ?><?php echo ''; ?><?php echo ''; ?><?php if ($this->_tpl_vars['additional_categs']): ?><?php echo '<select name="ADD_CATEGORY_ID[]" id="ADD_CATEGORY_ID'; ?><?php echo smarty_function_math(array('equation' => 'rand(10,100)'), $this);?><?php echo '">'; ?><?php else: ?><?php echo '<select name="CATEGORY_ID" id="CATEGORY_ID">'; ?><?php endif; ?><?php echo ''; ?><?php $_from = $this->_tpl_vars['categs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?><?php echo ''; ?><?php if (! $this->_tpl_vars['additional_categs']): ?><?php echo '<option value="'; ?><?php echo $this->_tpl_vars['k']; ?><?php echo '" '; ?><?php if (( ( $this->_tpl_vars['CATEGORY_ID'] == $this->_tpl_vars['k'] ) && ( $this->_tpl_vars['CATEGORY_ID'] != 0 ) )): ?><?php echo ' selected="selected" '; ?><?php endif; ?><?php echo ' '; ?><?php if ($this->_tpl_vars['v']['closed'] == 1): ?><?php echo 'disabled = "disabled" '; ?><?php endif; ?><?php echo '>'; ?><?php echo $this->_tpl_vars['v']['val']; ?><?php echo '</option>'; ?><?php else: ?><?php echo '<option value="'; ?><?php echo $this->_tpl_vars['k']; ?><?php echo '" '; ?><?php if (( ( $this->_tpl_vars['selected'] == $this->_tpl_vars['k'] ) && ( $this->_tpl_vars['selected'] != 0 ) && $this->_tpl_vars['additional_categs'] )): ?><?php echo ' selected="selected" '; ?><?php endif; ?><?php echo ' '; ?><?php if ($this->_tpl_vars['v']['closed'] == 1): ?><?php echo 'disabled = "disabled" '; ?><?php endif; ?><?php echo '>'; ?><?php echo $this->_tpl_vars['v']['val']; ?><?php echo '</option>'; ?><?php endif; ?><?php echo ''; ?><?php endforeach; endif; unset($_from); ?><?php echo '</select>'; ?><?php endif; ?><?php echo ''; ?>