<title>{dede:field name=’typeid’ runphp=’yes’}
$id=@me;
global $dsql;
$sql=”select * from dede_arctype where id=$id”;
$row=$dsql->getOne($sql);
$seotitle=$row["seotitle"];
$typename=$row["typename"];
$topid=$row["topid"];
if($seotitle!==”){
@me=$seotitle;
}else{
$sql2=”select * from dede_arctype where id=$topid”;
$row2=$dsql->getOne($sql2);
$typename2=$row2["typename"];
@me=$typename2.”-”.$typename;
}
{/dede:field}- {dede:global name=’cfg_webname’/}</title>
|