/** * table_tag function. * * @access private * @return void */ private function table_tag() { include_once BG_PATH_MODEL . "tag.class.php"; //载入管理帐号模型 $_mdl_tag = new MODEL_TAG(); $_arr_tagTable = $_mdl_tag->mdl_create_table(); $_arr_tagIndex = $_mdl_tag->mdl_create_index(); $this->tplData["db_alert"]["tag_table"] = array("alert" => $_arr_tagTable["alert"], "status" => substr($_arr_tagTable["alert"], 0, 1)); $this->tplData["db_alert"]["tag_index"] = array("alert" => $_arr_tagIndex["alert"], "status" => substr($_arr_tagIndex["alert"], 0, 1)); }
/** * table_tag function. * * @access private * @return void */ private function table_tag() { include_once BG_PATH_MODEL . "tag.class.php"; //载入管理帐号模型 $_mdl_tag = new MODEL_TAG(); $_arr_tagRow = $_mdl_tag->mdl_create_table(); if ($_arr_tagRow["alert"] != "y130105") { $this->obj_ajax->halt_alert($_arr_tagRow["alert"]); } }
/** * table_tag function. * * @access private * @return void */ private function table_tag() { include_once BG_PATH_MODEL . "tag.class.php"; //载入管理帐号模型 $_mdl_tag = new MODEL_TAG(); $_arr_tagRow = $_mdl_tag->mdl_create_index(); if ($_arr_tagRow["alert"] != "y130109") { $this->obj_ajax->halt_alert($_arr_tagRow["alert"]); } $_arr_col = $_mdl_tag->mdl_column(); $_arr_alert = array(); if (in_array("tag_status", $_arr_col)) { $_arr_alert["tag_status"] = array("CHANGE", "enum('show','hide') NOT NULL COMMENT '状态'", "tag_status"); } if (in_array("tag_article_count", $_arr_col)) { $_arr_alert["tag_article_count"] = array("CHANGE", "smallint NOT NULL COMMENT '文章数'", "tag_article_count"); } if ($_arr_alert) { $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "tag", $_arr_alert); if (!$_reselt) { $this->obj_ajax->halt_alert("x190106"); } } }