<?php include pTemplate("header");?>
     
     <div id="main" class="mainPanel wd txt_left" listshowalias="off"><div class="paste_body">
     
    <?php include pTemplate("partytree");?> 
     
<div id="rightMain" class="accountListPanel">
<div class="con_box">

<div class="con_head">
    <div class="left">
        <h2 class="title" id="structPath" nodeid="<?php echo $thisBranch['bid'];?>">
           <?php echo $thisBranch['bname'];?>
        </h2>
        <div class="t_tool" un="node" id="structNode" bid="<?php echo $thisBranch['bid'];?>" bname=" <?php echo $thisBranch['bname'];?>">
            <h1>
            </h1>
            <a class="left btn menu" ck="editOrgStruct" style="padding:2px 8px 0px 3px;*height:18px;">
                <span class="ico_edit" style="display:none;">
                    <b>
                        ico编辑
                    </b>
                </span>
                <span class="arrow">
                </span>
            </a>
        </div>
    </div>
    <div class="tool_box">
        <div class="searchcon" un="mbrSearch">
           <input type="text" class="txt bold t_search" name="dy_content" ku="mbrSearchKU"  c="<?php echo $c;?>" bid="<?php echo $bid;?>"  value="<?php if($keyword) { ?><?php echo $keyword;?><?php } else { ?>搜索成员<?php } ?>" un="query" _exautocomplete_="1" autocomplete="off">
            <a class="btnSearch" value="" ck="mbrSearch" c="<?php echo $c;?>" bid="<?php echo $bid;?>">
            </a>
        </div>
        <a id="btnAddMbr" href="<?php echo SITEURL;?>?mod=school&do=member&c=<?php echo $c;?>&d=member_add&bid=<?php echo $bid;?>&authcode=<?php echo $authcode;?>" class="btn btn_add ">
            <span class="ico_add">
            	<b>ico+</b>
            </span>
            新增成员
        </a>
        <a id="btnImportMbr" href="<?php echo SITEURL;?>?mod=school&do=member&c=<?php echo $c;?>&d=member_import&bid=<?php echo $bid;?>&authcode=<?php echo $authcode;?>" class="btn btn_add ">
            批量导入
        </a>
    </div>
    <!--end tool_box-->
    <p class="t_info " style="clear:both;">
        <?php echo $arrMembers[0];?>个成员
    </p>
</div>



<!--end con_head-->
 <?php if($arrMembers[1]) { ?>
<div class="con_body">
<div style="text-align:right; margin-top:-20px;" class="caption"><div class="pagination"></div></div>
<a href="#mbr/account/detail/chenchen@15385593717.foxmail.com,m=3411284"></a>
<a href="#mbr/account/detail/wangwu@15385593717.foxmail.com,m=3411686"></a>
<a href="#mbr/account/detail/lisi@15385593717.foxmail.com,m=3411681"></a>
<a href="#mbr/account/detail/zhangsan@15385593717.foxmail.com,m=3411745"></a>
<table class="listTable blockall with_move" cellspacing="0" style="width:100%;table-layout:fixed;zoom:1;">
<colgroup class="caption f_size"><col class="col_name"><col class="col_email"><col class="col_structure"></colgroup>
     <thead>
    <tr>
        <th colspan="4" style="width:100%;">
            <input type="checkbox" id="checkAll" title="选中/取消选中" style="margin:5px 10px 0 19px;*margin:5px 10px 0 22px;"
            class="left">
            <div class="t_obj" style="_margin-left:15px; display:none">
                <a class=" btn btn_first menu btn_disabled" sh="dis" ck="setDepartment">
                    移动到部门
                    <span class="arrow">
                    </span>
                </a>
            </div>
          
            
             <div class="t_obj">
                <a class=" btn  btn_disabled" sh="dis" ck="sendmsg">
                    发站内信
                </a>
            </div>
            
             <div class="t_obj">
                <a class=" btn  btn_disabled" sh="dis" ck="sendsms">
                    发手机短信
                </a>
            </div>
            
            <div class="t_obj">
                <a class=" btn  btn_disabled" sh="dis" ck="isbaned" isbaned ="0">
                    禁用
                </a>
            </div>
            <div class="t_obj">
                <a class=" btn  btn_disabled" sh="dis" ck="isbaned" isbaned ="1">
                    启用
                </a>
            </div>
            <div class="t_obj">
                <a class=" btn  btn_disabled" sh="dis" ck="mbrDel">
                    删除
                </a>
            </div>
            <div class="t_obj">
                <div class="m_select" style="float:left;">
                    <a class=" btn menu" ck="selCondition" status="hide" partyid="3411284"
                    recursive="on">
                        显示
                        <span class="arrow">
                        </span>
                    </a>
                </div>
            </div>
            
            <div class="t_obj" id="t_checked" style="line-height:26px; color:#F60;">
              每页显示 <input type="text" id="listNum" value="<?php echo $listNum;?>" style="width:20px" /> 个<a class="btn menu" ck="sellistNum" status="hide" recursive="on">&nbsp;显示
                    </a>
            </div>
        </th>
    </tr>
</thead>
     
     <tbody>

	<?php foreach((array)$arrMembers[1] as $key=>$item) {?>
     
	<tr un="userline" drag="1" name="<?php echo $item['username'];?>" partyid="3411284"<?php if($item['isbaned']==0 ) { ?> class="disable" title="此成员已被管理员禁用"<?php } ?>>
    
		<td width="34%" class="name">
			<span class="ico_move"></span>
            <input type="checkbox" name='users[]' value='<?php echo $item['uid'];?>' ck="checkThis" un="mbrCheck" title="选中/取消选中" alias="<?php echo $item['uid'];?>" authcode="<?php echo $item['uidauthcode'];?>">
            <span>
            <?php if($item['sex']==0 ) { ?>
                <img class="icon_diff icon_girl" src="<?php echo PUBURL;?>images/spacer087795.gif" title="女">
            <?php } else { ?>
             <img class="icon_diff icon_man" src="<?php echo PUBURL;?>images/spacer087795.gif" title="男">
            <?php } ?>
                <a un="name" class="" href="<?php echo SITEURL;?>?mod=school&do=member&c=<?php echo $c;?>&d=member_show&uid=<?php echo $item['uid'];?>&authcode=<?php echo $item['uidauthcode'];?>">
                    <span><?php echo $item['realname'];?></span>
                </a>
            </span>
        </td>
        <td width="34%" class="email">
            
                <?php if($item['phonenum']==0) { ?>
                <a href="<?php echo SITEURL;?>?mod=school&do=member&c=<?php echo $c;?>&d=member_show&uid=<?php echo $item['uid'];?>&authcode=<?php echo $item['uidauthcode'];?>" ><span <?php if($item['isbaned']==1 ) { ?>style="color:#F00"<?php } ?>>未设置手机号码 </span> </a>
                <?php } else { ?> 
                <a href="<?php echo SITEURL;?>?mod=school&do=member&c=<?php echo $c;?>&d=member_show&uid=<?php echo $item['uid'];?>&authcode=<?php echo $item['uidauthcode'];?>"><span><?php echo $item['phonenum'];?></span></a>
                <?php } ?>
           
        </td>
        <td partyid="3411284" title="<?php echo $item['usergroup'][groupname];?>" style="color:<?php echo $item['usergroup'][color];?>">
          <?php echo $item['usergroup'][groupname];?>
        </td>
        <td partyid="3411284" title="<?php echo $item['branch'][bname];?>" > <a href="<?php echo SITEURL;?>?mod=school&do=member&c=<?php echo $c;?>&bid=<?php echo $item['bid'];?>&authcode=<?php echo $item['bidauthcode'];?>"><span><?php echo $item['branch'][bname];?></span></a></td>
        
        </tr>
    <?php }?>


</tbody>
</table>
	<div class="right page_tool">
		<div class="pagination">
			<?php echo $pageinfo;?>
		</div>
	</div>

</div>
	<?php } else { ?>
    
   <?php if($keyword) { ?>
    <div class=" no_item" style="padding:30px 10px;">
    <p>未找到和"<span class="red"><?php echo $keyword;?></span>"相关的人员，请重新搜索。</p>
    <div style="color:#707070">
    <p>建议您：</p><br />
    <p>使用人员的真实姓名进行查找</p>
    <p>简化字词继续查询</p>
    <p>检查输入的文字是否有误</p>
    </div>
   	</div>
    <?php } else { ?>
     <div class=" no_item">该部门下没有成员，您可以 <a id="btnAddMbr" href="<?php echo SITEURL;?>?mod=system&do=member&c=sch&d=member_add&bid=<?php echo $bid;?>&authcode=<?php echo $authcode;?>">新增成员</a> 或者 <a id="btnImportMbr" href="<?php echo SITEURL;?>?mod=system&do=member&c=sch&d=member_import&bid=<?php echo $bid;?>&authcode=<?php echo $authcode;?>">批量导入成员</a>或者 <a id="btnImportMbr" href="javascript:history.go(-1);">返回</a></div>
    <?php } ?>
	<?php } ?>
<div id='M_show' style="display:none"><div class="m_list m_sel"><ul>
<li un="showalias" <?php if($gid ==$$sysgroupid ||  $gid =='') { ?>class="on"<?php } ?>><a  href="<?php echo SITEURL;?>?mod=school&do=member&c=<?php echo $c;?>&bid=<?php echo $bid;?>">显示全部人员</a></li>
<?php echo $usergroupshow_html;?>
<li un="showsub"  <?php if($gid =='isbaned') { ?>class="on"<?php } ?>><a href="<?php echo SITEURL;?>?mod=school&do=member&c=<?php echo $c;?>&bid=<?php echo $bid;?>&gid=isbaned">只显示被禁用成员</a>
<li un="showsub"  <?php if($gid =='') { ?>class="on"<?php } ?>><a>显示子部门成员</a></li></ul><div></div></div></div>
<!--end con_body-->

</div>
<div id="dragHelper" class="move_block" style="display:none;"></div>


</div></div></div>

 <?php include pTemplate("footer");?>    
     
</body>
</html>