POST TIME:2018-10-30 21:43
{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();