Ejemplo n.º 1
0
 private function table_app_belong()
 {
     include_once BG_PATH_MODEL . "appBelong.class.php";
     //载入管理帐号模型
     $_mdl_appBelong = new MODEL_APP_BELONG();
     $_arr_belongCreate = $_mdl_appBelong->mdl_create_table();
     $_arr_belongAlert = $_mdl_appBelong->mdl_alert_table();
     $this->tplData["db_alert"]["app_belong_table_create"] = array("alert" => $_arr_belongCreate["alert"], "status" => substr($_arr_belongCreate["alert"], 0, 1));
     $this->tplData["db_alert"]["app_belong_table_alert"] = array("alert" => $_arr_belongAlert["alert"], "status" => substr($_arr_belongAlert["alert"], 0, 1));
 }
Ejemplo n.º 2
0
 private function table_app_belong()
 {
     include_once BG_PATH_MODEL . "appBelong.class.php";
     //载入管理帐号模型
     $_mdl_appBelong = new MODEL_APP_BELONG();
     $_arr_appBelongRow = $_mdl_appBelong->mdl_create_table();
     if ($_arr_appBelongRow["alert"] != "y070105") {
         $this->obj_ajax->halt_alert($_arr_appBelongRow["alert"]);
     }
     $_arr_col = $_mdl_appBelong->mdl_column();
     $_arr_alert = array();
     if (in_array("belong_app_id", $_arr_col)) {
         $_arr_alert["belong_app_id"] = array("CHANGE", "smallint NOT NULL COMMENT '应用 ID'", "belong_app_id");
     }
     if ($_arr_alert) {
         $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "app_belong", $_arr_alert);
         if (!$_reselt) {
             $this->obj_ajax->halt_alert("x070106");
         }
     }
 }
Ejemplo n.º 3
0
 private function table_app_belong()
 {
     include_once BG_PATH_MODEL . "appBelong.class.php";
     //载入管理帐号模型
     $_mdl_appBelong = new MODEL_APP_BELONG();
     $_arr_appBelongRow = $_mdl_appBelong->mdl_create_table();
     if ($_arr_appBelongRow["alert"] != "y070105") {
         $this->obj_ajax->halt_alert($_arr_appBelongRow["alert"]);
     }
 }