//获取上级栏目名称
if ( ! function_exists('GetParentTypename'))
{
function GetParentTypename($id){
global $dsql ;
$reid = $dsql->GetOne("SELECT reid FROM wz_arctype where id=@me");
$reid = $reid['reid'];
$row1 = $dsql->GetOne("SELECT typename FROM wz_arctype where id=$reid");
return $row1['typename'];
}
}
列表或频道页调用方法
{dede:field.typeid function="GetParentTypename(@me)"/}
本文由主机测评网发布,不代表主机测评网立场,转载联系作者并注明出处:https://zhuji.jb51.net/dedecms/3440.html