<div id="Cbranch" style="display:none">
    <div class="DG">
    <div dlg="mask" class="detail_mask" style="z-index: 1057; height: 1171px; ">
    </div>
    <div dlg="panel" class="opp_obj" style="width: 650px; height: 450px; z-index: 1058; top: 20%; left: 40%; ">
        <div un="dlg" class="o_body rounded5">
            <strong dlg="title" class="o_title" style="">
                所属部门
            </strong>
            <a dlg="close" href="javascript:;" class="ico_close">
            </a>
            <div dlg="content" class="o_con">
                <div style="">
                    <div un="dlg" class="">
                        <div validmsg="" valid="empty" class="mainColumn">
                          <div class="dialog_labels">
                                <span class="dialog_label_left">
                                    从下面选择要添加的部门：
                                </span>
                                 <span class="dialog_label_right">
                                    已经选择的部门：
                                </span>
                            </div>
                            <div class="structSelectList bd_gray" id="structList">
                            </div>
                            <div class="structPanel bd_gray">
                                <div id="structContent" class="aoto_tipon">
                                    <div class="lbb">
                                        <div un="tree">
                                            <ul class="treeview">
                                                <li class=" root closed" un="node" bid="1" appended="1">
                                                    <div un="line" class="line">
                                                        <ins class="icon">
                                                        </ins>
                                                        <span un="content">
                                                            <ins class="folder">
<input id="ckStruct_<?php echo $TOPBranch_1['bid'];?>" bid="<?php echo $TOPBranch_1['bid'];?>" bname=" <?php echo $TOPBranch_1['bname'];?>" icon="party" ck="select" type="checkbox">
                                                                <label for="ckStruct_<?php echo $item['bid'];?>">
                                                                     <?php echo $TOPBranch_1['bname'];?>
                                                                </label>
                                                            </ins>
                                                        </span>
                                                    </div>
                                                    <ul>
                                                            <?php if($topBranch[1]) { ?>
                                                             <?php foreach((array)$topBranch[1] as $key=>$item) {?>   
                                                             <?php if($item['isleaf']==closed) { ?>         
                                                        <li class="closed" un="node" bid="<?php echo $item['bid'];?>">
                                                            <div un="line" class="line">
                                                                <ins class="icon" bid="<?php echo $item['bid'];?>" ty="cbranch">
                                                                </ins>
                                                                <span un="content">
                                                                    <ins class="folder">
<input id="ckStruct_<?php echo $item['bid'];?>" bid="<?php echo $item['bid'];?>" bname="<?php echo $item['allbname'];?>" icon="party" ck="select" type="checkbox">
                                                                        <label for="ckStruct_<?php echo $item['bid'];?>">
                                                                          <?php echo $item['bname'];?>
                                                                        </label>
                                                                    </ins>
                                                                </span>
                                                            </div>
                                                        </li>
                                                        
                                              		 <?php } ?>
        <?php }?>
        
          <?php foreach((array)$topBranch[1] as $key=>$item) {?>   
     <?php if($item['isleaf']==leaf) { ?>     
     
     <li class="leaf <?php if($key+1>=$topBranch[0]) { ?>last<?php } ?>" un="node" bid="3411680">
                                                            <div un="line" class="line">
                                                                
                                                                <span un="content">
                                                                    <ins class="folder">
<input id="ckStruct_<?php echo $item['bid'];?>" bid="<?php echo $item['bid'];?>" bname="<?php echo $item['allbname'];?>" icon="party" ck="select" type="checkbox">
                                                                        <label for="ckStruct_3411680">
                                                                        <?php echo $item['bname'];?>
                                                                        </label>
                                                                    </ins>
                                                                </span>
                                                            </div>
                                                        </li>
                                                        
                                                             <?php } ?>
        <?php }?>
    	<?php } ?>     
                                                        
                                                    </ul>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="left ico_arrow_left">
                            </div>
                        </div>
                        <div class="submitColumn">
                            <a class="btn btnNormal btnCancel right" ck="cancel">
                                取消
                            </a>
                            <a class="btn btnComfirm right" ck="submit" ty="cb">
                                确定
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="t_mask">
            </div>
        </div>
    </div>
</div>
    
    </div>