<?php /* Smarty version 2.6.25, created on 2015-11-07 10:48:24
         compiled from category_select_article.tpl */ ?>
<?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 'Пожалуйста, выберите категорию!'; ?><?php endif; ?><?php echo '<input type="hidden" id="CATEGORY_ID" name="CATEGORY_ID" value="'; ?><?php echo $this->_tpl_vars['CATEGORY_ID']; ?><?php echo '" />'; ?><?php echo ''; ?><?php elseif (@CAT_SELECTION_METHOD == 2): ?><?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 'Пожалуйста, выберите категорию!'; ?><?php endif; ?><?php echo '</div><span id="toggleCategTree">Изменение категории</span><input type="hidden" id="CATEGORY_ID" name="CATEGORY_ID" value="'; ?><?php echo $this->_tpl_vars['CATEGORY_ID']; ?><?php echo '" />'; ?><?php echo '<div id="categtreebox"></div>'; ?><?php else: ?><?php echo ''; ?><?php echo '<select name="CATEGORY_ID">'; ?><?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 '<option value="'; ?><?php echo $this->_tpl_vars['k']; ?><?php echo '" '; ?><?php if ($this->_tpl_vars['CATEGORY_ID'] == $this->_tpl_vars['k']): ?><?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 endforeach; endif; unset($_from); ?><?php echo '</select>'; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?>