function ctl_form()
{
$_num_appId = fn_getSafe(fn_get("app_id"), "int", 0);
if ($_num_appId > 0) {
if (!isset($this->adminLogged["admin_allow"]["app"]["edit"]) && !$this->is_super) {
return array("alert" => "x050303");
}
$_arr_appRow = $this->mdl_app->mdl_read($_num_appId);
if ($_arr_appRow["alert"] != "y050102") {
return $_arr_appRow;
}
} else {
if (!isset($this->adminLogged["admin_allow"]["app"]["add"]) && !$this->is_super) {
return array("alert" => "x050302");
}
$_arr_appRow = array("app_id" => 0, "app_name" => "", "app_url_notify" => "", "app_url_sync" => "", "app_ip_allow" => "", "app_ip_bad" => "", "app_note" => "", "app_status" => "enable", "app_sync" => "off");
}
$this->tplData["appRow"] = $_arr_appRow;
//管理员信息
$this->obj_tpl->tplDisplay("app_form.tpl", $this->tplData);
return array("alert" => "y050102");
}