dedecms当前栏目调用上一级栏目名字的方法

2015-09-02 来源:未知作者:admin

{dede:field.reid runphp='yes'}
global $dsql;
$reid = @me;
$query = "SELECT * FROM `jingdian_arctype` where id =$reid ";
$dsql->Execute('a', $query);
$arctype = $dsql->GetObject('a');
@me = $arctype->typename;
{/dede:field.reid}