query('SELECT * FROM `' . $db_mymps . 'group_category` WHERE cate_view = \'1\' ORDER BY cate_order ASC'); while ($row = $db->fetchRow($query)) { $res[$row['cate_id']]['cate_id'] = $row['cate_id']; $res[$row['cate_id']]['cate_name'] = $row['cate_name']; $res[$row['cate_id']]['cate_uri'] = plugin_url('group', array('cate_id' => $row['cate_id'])); } write_static_cache('group_class', $res); } else { $res = $data; } return $res; } function get_groupclass_select($formname = 'cate_id', $cate_id = '', $ifselect = 'yes') { global $db; global $db_mymps; $data = get_group_class(); $mymps .= $ifselect == 'yes' ? '' : ''; unset($data); return $mymps; } ?>