<link rel="stylesheet" type="text/css" href="/js/zTree/zTreeStyle.css">
<div class="col-xs-24 zhiban-top" style="background:#f5f5f5;height:45px;">
   <div class="row">
      <span class="col-xs-5 text-center" style="line-height:45px;background:#e0e0e0;">事业部分组管理</span> 
   </div>
</div>

  <div class="row">
    <div class="col-xs-5" style="overflow:hidden; border-right: 1px solid #ddd;">
      <div class="col-xs-24 user_list_box pull-right">
            <ul id="treeDemo" data-expandAll="1" name="treeDemo" class="ztree user_position"></ul>
      </div>
      <div class="col-xs-24 btn-lg"></div>
    </div>

    <div class="col-xs-19">
      <?php foreach ($typelist as $key => $v) { ?>
      <form class="form-horizontal form_department_edit" id="form_department_edit" method="post" action="<?php echo site_url('apps/workflow/index/do_add_role_type'); ?>">
      <div class="col-xs-24 btn-lg"></div>
      <div class="col-xs-24 btn-lg"></div>
      <div class="col-xs-24 nopadding"> 
        <label class="col-sm-offset-4 col-xs-20">分组名称</label>
        <div class="col-sm-10 col-sm-offset-4">
          <input type="text" class="form-control" name="wt_name" value="<?php echo $v->wt_name; ?>" autocomplete="off">
        </div>
        <div class="btn-group col-xs-4 nopadding">
            <input type="hidden" name="wt_sn" value="<?php echo $v->wt_sn; ?>">
            <input type="hidden" name="wt_parentid" value="<?php echo $v->wt_parentid; ?>">
            <input type="hidden" name="wt_refuse" value="<?php echo $v->wt_refuse; ?>">
            <button form="form_advertise_edit" type="button" class="btn btn-danger btn_advertise_edit" onclick="ajaxSubmit('.form_department_edit');">保存</button>
            <button class="btn dropdown-toggle btn-danger col-xs-5" data-toggle="dropdown">
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a href="javascript:void(0);" onclick="deleteInfo();">删除信息</a></li>
            </ul>
        </div>
      </div>
      </form>
      <?php } ?>
    </div>

</div>

<script type="text/javascript">
$(".center-col").css({"min-height":(window.screen.height-180)});
$(".user_list_box").css({"height":(window.screen.height-200)});
</script>

<!-- 生成节点树结构 -->
<script type="text/javascript">
    zNodes =<?php echo json_encode($structure_list); ?>;
    var current_node = "<?php echo $is_id; ?>"
    var indexpage= "<?php echo site_url('apps/workflow/index/add_partment_type'); ?>"
    var addpage  = "<?php echo site_url('apps/workflow/index/add_partment_tree/1/new_department'); ?>"
    var movepage = "<?php echo site_url('apps/workflow/index/tree_move'); ?>"
    var deletepage="<?php echo site_url('apps/workflow/index/delete_partment_tree'); ?>"
    var form_id = "form_department_edit";
</script>
<script type="text/javascript" src="/js/zTree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="/js/init_ztree.js"></script>
