<?php /* Smarty version 2.6.25, created on 2012-07-15 10:34:44
         compiled from DefaultAdmin/admin_category_select.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'DefaultAdmin/admin_category_select.tpl', 26, false),array('modifier', 'rand', 'DefaultAdmin/admin_category_select.tpl', 29, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "messages.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if ($this->_tpl_vars['selected']): ?>
	<?php $this->assign('selected_cat', $this->_tpl_vars['selected']); ?>
	<?php $this->assign('selected_parent', $this->_tpl_vars['selected_parent']); ?>
<?php else: ?>
	<?php $this->assign('selected_cat', $this->_tpl_vars['CATEGORY_ID']); ?>
	<?php $this->assign('selected_parent', $this->_tpl_vars['PARENT_ID']); ?>
<?php endif; ?>
<?php echo ''; ?><?php if (@ADMIN_CAT_SELECTION_METHOD == 1 && ! $this->_tpl_vars['additional_categs'] && $this->_tpl_vars['link_type_details']['MULTIPLE_CATEGORIES'] <= 1 && $this->_tpl_vars['symbolic'] != 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>'; ?><?php if (isset ( $this->_tpl_vars['parent'] ) && $this->_tpl_vars['parent'] == 1): ?><?php echo '<input type="hidden" id="PARENT_ID" name="PARENT_ID" value="'; ?><?php echo $this->_tpl_vars['selected_parent']; ?><?php echo '" class="hidden" />'; ?><?php else: ?><?php echo '<input type="hidden" id="CATEGORY_ID" name="CATEGORY_ID" value="'; ?><?php echo $this->_tpl_vars['selected_cat']; ?><?php echo '" class="hidden" />'; ?><?php endif; ?><?php echo '<div id="categtreebox"></div>'; ?><?php else: ?><?php echo ''; ?><?php if (isset ( $this->_tpl_vars['parent'] ) && $this->_tpl_vars['parent'] == 1): ?><?php echo ''; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['categs'],'selected' => $this->_tpl_vars['PARENT_ID'],'name' => 'PARENT_ID','id' => 'PARENT_ID'), $this);?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php if ($this->_tpl_vars['additional_categs']): ?><?php echo ''; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['categs'],'selected' => $this->_tpl_vars['categ_id'],'name' => "ADD_CATEGORY_ID[]",'id' => ((is_array($_tmp='0')) ? $this->_run_mod_handler('rand', true, $_tmp, '100') : rand($_tmp, '100'))), $this);?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['categs'],'selected' => $this->_tpl_vars['selected_cat'],'name' => 'CATEGORY_ID','id' => 'CATEGORY_ID'), $this);?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?>