dzzoffice/misc/seluser.php
2018-03-23 14:20:16 +08:00

38 lines
907 B
PHP

<?php
/*
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
* @license http://www.dzzoffice.com/licenses/license.txt
* @package DzzOffice
* @link http://www.dzzoffice.com
* @author zyx(zyx@dzz.cc)
*/
if(!defined('IN_DZZ')) {
exit('Access Denied');
}
if(!$_G['uid']) exit();
require libfile('function/organization');
$toporgid=0;
$orgid=intval($_GET['orgid']);
if($org=C::t('organization')->fetch($orgid)){
if($org['forgid']==0){
$toporgid=$orgid;
}else{
//获取此部门的顶级机构
$orguptree= C::t('organization')->fetch_parent_by_orgid($orgid,true);
$toporgid=$orguptree[0];
}
}
//机构列表
$orgtree=getDepartmentOption($toporgid,'',true);
//获取部门的用户列表;
$userlist=C::t('organization_user')->fetch_user_by_orgid($orgid);
//获取机构部门树
//$departmenttree=getDepartmentOption($orgid);
include template('misc_seluser');
?>