在article.php加入
$meta = $db->getRow("SELECT keywords,cat_name,cat_desc FROM " . $ecs->table('article_cat') . " WHERE cat_id = '{$article['cat_id']}'");$smarty->assign('cat_name', htmlspecialchars($meta['cat_name']));
调用标签为{$cat_name}
$meta = $db->getRow("SELECT keywords,cat_name,cat_desc FROM " . $ecs->table('article_cat') . " WHERE cat_id = '{$article['cat_id']}'");$smarty->assign('cat_name', htmlspecialchars($meta['cat_name']));