Verdana,1.打开根目录的article_cat.php的文件,在大概80行左右,找到 Verdana,
$meta = $db->getRow("SELECT keywords, cat_desc FROM " . $ecs->table('article_cat') . " WHERE cat_id = '$cat_id'"); Verdana, Verdana,在其中加入一个字段,改为: Verdana,
$meta = $db->getRow("SELECT keywords,[color=#ED1C24,cat_name, cat_desc FROM " . $ecs->table('article_cat') . " WHERE cat_id = '$cat_id'"); Verdana, Verdana,2.然后在 $smarty->assign('description', htmlspecialchars($meta['cat_desc',)); Verdana,的下面加入
[color=#ED1C24, $smarty->assign('cat_name', htmlspecialchars($meta['cat_name',)); Verdana, Verdana,3.在模板页面调用文章分类 Verdana,格式:{$cat_name}------(文章分类名)
|