/** * table_group function. * * @access private * @return void */ private function table_group() { include_once BG_PATH_MODEL . "group.class.php"; //载入管理帐号模型 $_mdl_group = new MODEL_GROUP(); $_arr_col = $_mdl_group->mdl_column(); $_arr_alert = array(); if (!in_array("group_status", $_arr_col)) { $_arr_alert["group_status"] = array("ADD", "enum('enable','disable') NOT NULL COMMENT '状态'"); } if (in_array("group_status", $_arr_col)) { $_arr_alert["group_status"] = array("CHANGE", "enum('enable','disable') NOT NULL COMMENT '状态'", "group_status"); } if (in_array("group_id", $_arr_col)) { $_arr_alert["group_id"] = array("CHANGE", "smallint NOT NULL AUTO_INCREMENT COMMENT 'ID'", "group_id"); } if (in_array("group_type", $_arr_col)) { $_arr_alert["group_type"] = array("CHANGE", "enum('admin','admin') NOT NULL COMMENT '类型'", "group_type"); } if ($_arr_alert) { $_reselt = $this->obj_db->alert_table(BG_DB_TABLE . "group", $_arr_alert); if (!$_reselt) { $this->obj_ajax->halt_alert("x040106"); } } }