CONTROL_PM::ctl_bulk PHP Method

ctl_bulk() public method

*============群发界面============ 返回提示
public ctl_bulk ( )
    function ctl_bulk()
    {
        if (!isset($this->adminLogged["admin_allow"]["pm"]["bulk"]) && !$this->is_super) {
            return array("alert" => "x110302");
        }
        $this->tplData["begin_time"] = time() - 86400;
        $this->tplData["end_time"] = time();
        $this->obj_tpl->tplDisplay("pm_bulk.tpl", $this->tplData);
        return array("alert" => "y110102");
    }

Usage Example

Example #1
0
        //发送
        if ($arr_pmRow["alert"] != "y110303") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_pmRow["alert"]);
            exit;
        }
        break;
    case "show":
        $arr_pmRow = $ctl_pm->ctl_show();
        //显示
        if ($arr_pmRow["alert"] != "y110102") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_pmRow["alert"]);
            exit;
        }
        break;
    case "bulk":
        $arr_pmRow = $ctl_pm->ctl_bulk();
        //群发
        if ($arr_pmRow["alert"] != "y110102") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_pmRow["alert"]);
            exit;
        }
        break;
    default:
        $arr_pmRow = $ctl_pm->ctl_list();
        //列出
        if ($arr_pmRow["alert"] != "y110302") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_pmRow["alert"]);
            exit;
        }
        break;
}