Exemplo n.º 1
0
 public function __construct()
 {
     $groupList = UsergroupModel::getList();
     $tmp = array();
     if ($groupList) {
         foreach ($groupList as $group) {
             $tmp[$group['id']] = $group;
         }
     }
     $groupList = $tmp;
     $departmentList = DepartmentModel::getList();
     $tmp = array();
     $this->mkTree($departmentList, $tmp);
     $this->assign('groupList', $groupList);
     $this->assign('departmentList', $tmp);
     parent::__construct();
 }
Exemplo n.º 2
0
 public function _default()
 {
     $groupList = UsergroupModel::getList();
     $this->assign('groupList', $groupList);
     $this->display();
 }