Files
OMS/app/ome/lib/finder/groups.php
2025-12-28 23:13:25 +08:00

37 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class ome_finder_groups{
var $detail_basic = "管理员组详情";
function detail_basic($group_id){
$render = app::get('ome')->render();
$oOperators = app::get('desktop')->model("users");
$oGroups = app::get('ome')->model("groups");
$oGroup_ops = app::get('ome')->model("group_ops");
$Operators = $oOperators->getList('user_id,name');
$admin_name='';
foreach($Operators as $k=>$v){
$O_exist = array('group_id'=>$group_id,'op_id'=>$v['user_id']);
if($oGroup_ops->dump($O_exist)){
$admin_name.=$v['name'].',';
}
}
$render->pagedata['admin_name'] = $admin_name;
$render->pagedata['Oper_detail'] = $oGroups->dump($group_id);
return $render->fetch('admin/system/groups_detail.html');
}
var $addon_cols = "group_id";
var $column_groups = "管理员组编辑";
var $column_groups_width = "100";
function column_groups($row){
$finder_id = $_GET['_finder']['finder_id'];
return '<a href="index.php?app=ome&ctl=admin_group&act=editgroups&p[0]='.$row[$this->col_prefix.'group_id'].'&finder_id='.$finder_id.'" target="dialog::{width:500,height:300,title:\'添加管理员组\'}">编辑</a>';
}
}
?>