<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$CONFIG['charset']?>" />
<title><?=$head['title']?></title>
<link rel="stylesheet" type="text/css" href="css/admin.css"/>
<script type="text/javascript" src="<?php echo IMG_URL?>js/lib/jquery.js"></script>
<script type="text/javascript" src="<?php echo IMG_URL?>js/config.js"></script>
<script type="text/javascript" src="<?php echo IMG_URL?>js/cmstop.js"></script>

<!--ajax form-->
<script type="text/javascript" src="<?php echo IMG_URL?>js/lib/jquery.cookie.js"></script>

<!--dialog-->
<link rel="stylesheet" type="text/css" href="<?=IMG_URL?>js/lib/jquery-ui/dialog.css" />
<script type="text/javascript" src="<?php echo IMG_URL?>js/lib/jquery.ui.js"></script>
<script type="text/javascript" src="<?php echo IMG_URL?>js/lib/cmstop.dialog.js"></script>

<!--validator-->
<link rel="stylesheet" type="text/css" href="<?php echo IMG_URL?>js/lib/validator/style.css"/>
<script type="text/javascript" src="<?php echo IMG_URL?>js/lib/cmstop.validator.js"></script>

<!--contextmenu-->
<link rel="stylesheet" type="text/css" href="<?php echo IMG_URL?>js/lib/contextMenu/style.css" />
<script type="text/javascript" src="<?php echo IMG_URL?>js/lib/cmstop.contextMenu.js"></script>

<link href="<?=IMG_URL?>js/lib/tree/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo IMG_URL?>js/lib/cmstop.tree.js"></script>

<!--WdatePicker-->
<script type="text/javascript" src="<?=IMG_URL?>js/datepicker/WdatePicker.js"></script>

<script type="text/javascript">
$.validate.setConfigs({
    xmlPath:'<?=ADMIN_URL?>apps/<?=$app?>/validators/<?=$controller?>/'
});
$(ct.listenAjax);
</script>

<script type="text/javascript" src="apps/system/js/psn.js"></script>
<script type="text/javascript" src="apps/system/js/category.js"></script>
<script type="text/javascript" src="apps/system/js/category_priv.js"></script>
</head>
<body>
<div style="margin:10px">
  <input type="button" value="新建频道" class="button_style_1" onclick="category.add(null)"/>
  <input type="button" value="修复栏目" class="button_style_1" onclick="category.repair()"/>
</div>
<div class="box_11"></div>
<div class="bg_1" id="tree_in">
  <div class="w_160 box_6 mar_r_8 f_l" style="position:relative;width:155px;height:740px;background: #F9FCFD;">
    <h3>
<?php
if ($_roleid == 1 || $_roleid == 2)
{
?>
    <a href="javascript: category.add(null);" class="new f_r dis_b mar_5"><img src="images/space.gif" alt="新建频道" title="新建频道" height="16" width="16" /></a>
<?php
}
?>
    <span class="dis_b b">栏目列表</span>
    </h3>
    <div class="filetree treeview" id="category_tree" style="position:absolute;z-index:3;"></div>
    

  </div>
  <div class="f_l">
    <div class="bk_10"></div>
    <div id="topcategory" style="display: none;">
    <table class="table_form" width="650">
      <caption>新建频道</caption>
    </table>
    </div>
    
    <div id="subcategory" class="tag_1" style="width:670px;">
      <ul class="tag_list">
        <li><a href="javascript: category.edit(current_catid);" id="edit" class="s_3">修改</a></li>
        <li><a href="javascript: category.add(current_catid);" id="add">新建子栏目</a></li>
      </ul>
      <div>
        <input type="button" value="移动内容" class="button_style_1" onclick="category.content_move(current_catid)"/>
        <input type="button" value="清空内容" class="button_style_1" onclick="category.content_clear(current_catid)"/>
        <input type="button" value="移动栏目" class="button_style_1" onclick="category.move(current_catid)"/>
        <input type="button" value="删除栏目" class="button_style_1" onclick="category.del(current_catid)"/>
        <input type="button" value="栏目权限" class="button_style_1" onclick="categorypriv.set(current_catid)"/>
        <input type="button" value="栏目面板" class="button_style_1" onclick="ct.assoc.open('?app=system&controller=content&action=index&catid='+current_catid,'newtab')"/>
      </div>
    </div>
    
    <div id="category_edit_box" class="clear"></div>
  </div>
  <div class="clear"></div>
</div>
<script type="text/javascript">
var current_catid = <?=$current_catid?>;

category.reload(current_catid);
</script>
<?php $this->display('footer', 'system');
