function GetTotalArc($tid){global $dsql;$sql = GetSonIds($tid);$row = $dsql->GetOne("Select count(id) as dd From dede_archives where typeid in({$sql})");return $row['dd'];} |
{dede:channel type='top' row='10' current}<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]([field:ID function='GetTotalArc(@me)'/])</span></a></li>{/dede:channel}{dede:channel type='top' row='10' current}<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]([field:ID runphp='yes'] @me = GetTotalArc(@me);[/field:ID])</span></a></li>{/dede:channel} |
{dede:channel type ='son' typeid ='1' row='10' current}<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]([field:ID function='GetTotalArc(@me)'/])</span></a></li>{/dede:channel}{dede:channel type ='son' typeid ='1' row='10' current}<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]([field:ID runphp='yes'] @me = GetTotalArc(@me);[/field:ID])</span></a></li>{/dede:channel} |
{dede:type}[field:typename/]([field:ID function='GetTotalArc(@me)'/]){/dede:type}{dede:type}[field:typename/]([field:ID runphp='yes'] @me = GetTotalArc(@me);[/field:ID]){/dede:type} |
新闻热点
疑难解答