{dede:field name=’id’ runphp="yes"}
global $cfg_basehost,$cfg_cmspath,$cfg_indexurl;
$dsql = new DedeSql(false);
$a="SELECT tp.reid FROM 2d30_arctype as tp where tp.id=@me";
$arcRow = $dsql->GetOne($a);
@me="$arcRow[reid]";
if(@me==0)@me=’<a href="/">首页</a>’;
else {$b="SELECT * FROM 2d30_arctype as tp where tp.id=@me";
$tpRow = $dsql->GetOne($b);
@me=’<a href="’.$tpRow[typedir].’/">’.$tpRow[typename].’</a>’.$tpRow[description].$tpRow[keywords];
$url=$cfg_basehost.$cfg_cmspath;
@me=str_replace(‘{cmspath}’,$url,@me);
}
$dsql->Close();
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!