ctl_list() public method

ctl_list function.
public ctl_list ( ) : void
return void
Exemplo n.º 1
0
//验证是否已登录
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:
        //列出
        $arr_adminRow = $ctl_admin->ctl_list();
        if ($arr_adminRow["alert"] != "y020302") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_adminRow["alert"]);
            exit;
        }
        break;
}