CONTROL_ADMIN::ctl_show PHP Method

ctl_show() public method

public ctl_show ( )
    function ctl_show()
    {
        $_num_adminId = fn_getSafe(fn_get("admin_id"), "int", 0);
        //get 获取 admin_id
        if (!isset($this->adminLogged["admin_allow"]["admin"]["browse"]) && !$this->is_super) {
            //判断权限
            return array("alert" => "x020303");
        }
        $_arr_adminRow = $this->mdl_admin->mdl_read($_num_adminId);
        //读取
        if ($_arr_adminRow["alert"] != "y020102") {
            return $_arr_adminRow;
        }
        $this->tplData["adminRow"] = $_arr_adminRow;
        //管理员信息
        $this->obj_tpl->tplDisplay("admin_show.tpl", $this->tplData);
        //显示
        return array("alert" => "y020102");
    }

Usage Example

示例#1
0
}
include_once BG_PATH_FUNC . "init.func.php";
//管理员通用
fn_init(true, true, "Content-Type: text/html; charset=utf-8", true, "ctl", true);
include_once BG_PATH_INC . "is_install.inc.php";
//验证是否已登录
include_once BG_PATH_INC . "is_admin.inc.php";
//验证是否已登录
include_once BG_PATH_CONTROL . "admin/ctl/admin.class.php";
//载入管理员控制器
$ctl_admin = new CONTROL_ADMIN();
//初始化管理员对象
switch ($GLOBALS["act_get"]) {
    case "show":
        //显示
        $arr_adminRow = $ctl_admin->ctl_show();
        if ($arr_adminRow["alert"] != "y020102") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_adminRow["alert"]);
            exit;
        }
        break;
    case "form":
        //创建、编辑表单
        $arr_adminRow = $ctl_admin->ctl_form();
        if ($arr_adminRow["alert"] != "y020102") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_adminRow["alert"]);
            exit;
        }
        break;
    default:
        //列出
All Usage Examples Of CONTROL_ADMIN::ctl_show