Exemplo n.º 1
0
 private function table_spec()
 {
     include_once BG_PATH_MODEL . "spec.class.php";
     //载入管理帐号模型
     $_mdl_spec = new MODEL_SPEC();
     $_arr_specTable = $_mdl_spec->mdl_create_table();
     $this->tplData["db_alert"]["spec_table"] = array("alert" => $_arr_specTable["alert"], "status" => substr($_arr_specTable["alert"], 0, 1));
 }
Exemplo n.º 2
0
 private function table_spec()
 {
     include_once BG_PATH_MODEL . "spec.class.php";
     //载入管理帐号模型
     $_mdl_spec = new MODEL_SPEC();
     $_arr_specRow = $_mdl_spec->mdl_create_table();
     if ($_arr_specRow["alert"] != "y180105") {
         $this->obj_ajax->halt_alert($_arr_specRow["alert"]);
     }
 }
Exemplo n.º 3
0
 private function table_spec()
 {
     include_once BG_PATH_MODEL . "spec.class.php";
     $_mdl_spec = new MODEL_SPEC();
     $_arr_specRow = $_mdl_spec->mdl_create_table();
     if ($_arr_specRow["alert"] != "y180105") {
         $this->obj_ajax->halt_alert($_arr_specRow["alert"]);
     }
     $_arr_col = $_mdl_spec->mdl_column();
     $_arr_alert = array();
     if (in_array("spec_id", $_arr_col)) {
         $_arr_alert["spec_id"] = array("CHANGE", "mediumint NOT NULL AUTO_INCREMENT COMMENT 'ID'", "spec_id");
     }
     if (in_array("spec_status", $_arr_col)) {
         $_arr_alert["spec_status"] = array("CHANGE", "enum('show','hide') NOT NULL COMMENT '状态'", "spec_status");
     }
     if (in_array("spec_content", $_arr_col)) {
         $_arr_alert["spec_content"] = array("CHANGE", "text NOT NULL COMMENT '专题内容'", "spec_content");
     }
     if ($_arr_alert) {
         $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "spec", $_arr_alert);
         if (!$_reselt) {
             $this->obj_ajax->halt_alert("x180106");
         }
     }
 }