$_block_repeat = false;
    echo smarty_block_tabpage($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
}
array_pop($this->_tag_stack);
?>

<?php 
$this->_tag_stack[] = array('tabpage', array('id' => 'items'));
$_block_repeat = true;
smarty_block_tabpage($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>
<div class="actionbox">
<form><?php 
    echo smarty_function_treeselect(array('id' => 'shopidcat', 'name' => 'idcat', 'items' => $this->_tpl_vars['categories'], 'selected' => $_GET['idcat'], 'emptytxt' => "Все категории", 'title' => "Выбор категории", 'onchange' => "runselectcat(this.form)", 'width' => '320px'), $this);
    ?>
</form>
</div>

<div id="itemssgridbox">
<?php 
    if ($this->_tpl_vars['items']) {
        ?>
<form name="itemsform" method="post">
<table width="100%" class="gridfix">
<tr>
<th width="25">&nbsp;</th>
<?php 
        if ($this->_tpl_vars['options']['useimages']) {
            ?>
</tr>
<tr>
<td width="70%">
<p><?php 
echo smarty_function_treeselect(array('name' => 'idcat', 'items' => $this->_tpl_vars['form']['categories'], 'selected' => $this->_tpl_vars['form']['idcat'], 'title' => "Выбор категории", 'width' => "70%"), $this);
?>
</p>
<?php 
if ($this->_tpl_vars['options']['usecats']) {
    ?>
<p><?php 
    echo smarty_function_treeselect(array('id' => 'treecat1', 'name' => 'idcat1', 'items' => $this->_tpl_vars['form']['categories'], 'title' => "Выбор категории", 'width' => "70%"), $this);
    ?>
</p>
<p><?php 
    echo smarty_function_treeselect(array('id' => 'treecat2', 'name' => 'idcat2', 'items' => $this->_tpl_vars['form']['categories'], 'title' => "Выбор категории", 'width' => "70%"), $this);
    ?>
</p>
<?php 
}
?>
</td>
<td width="30%" valign="top">&nbsp;&nbsp;<?php 
echo smarty_function_editbox(array('name' => 'art', 'max' => 30, 'width' => "90%"), $this);
?>
</td>
</tr>
</table>
<p>Текст:</p>
<?php 
if ($this->_tpl_vars['options']['fckeditor']) {
smarty_core_load_plugins(array('plugins' => array(array('function', 'treeselect', 'objcomp_categoriestree_move.tpl', 4, false), array('function', 'hidden', 'objcomp_categoriestree_move.tpl', 10, false), array('function', 'submit', 'objcomp_categoriestree_move.tpl', 15, false), array('function', 'button', 'objcomp_categoriestree_move.tpl', 16, false))), $this);
?>
<form name="movecatform" method="post" onsubmit="return movecat(this)">
<p>Куда:</p>
<?php 
if ($this->_tpl_vars['form']['idker'] > 0) {
    ?>
<p><?php 
    echo smarty_function_treeselect(array('name' => 'idto', 'selected' => -1, 'items' => $this->_tpl_vars['form']['categories'], 'emptytxt' => "Корень", 'title' => "Выбор категории"), $this);
    ?>
</p>
<?php 
} else {
    ?>
<p><?php 
    echo smarty_function_treeselect(array('name' => 'idto', 'selected' => -1, 'items' => $this->_tpl_vars['form']['categories'], 'emptytxt' => "", 'title' => "Выбор категории"), $this);
    ?>
</p>
<?php 
}
?>
<input type="hidden" name="id" value="<?php 
echo $this->_tpl_vars['form']['id'];
?>
">
<input type="hidden" name="tab" value="cat">
<?php 
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>

<?php