一、帝国cms获取当前专题ID: 因为当前专题ID或当前专题子类ID变量是:$GLOBALS['avclassid'],当为专题子类页面时,则所属专题ID变量为&quo;$GLOBALS['avifo'][&#
<?php
$selfztid=$GLOBALS['navinfor']['ecmsbid']?$GLOBALS['navinfor']['ecmsbid']:$GLOBALS['navclassid'];
$uztcsql=$empire->query("select cid,cname,ttype from {$dbtbpre}enewszttype where ztid='$selfztid' order by myorder");
while($uztcr=$empire->fetch($uztcsql))
{
?>
<b>专题子类名称:<?=$uztcr['cname']?>,专题子类地址:type<?=$uztcr[cid].$uztcr[ttype]?></b><br><br>
<?php
}
?>
<?php
$selfztid=$GLOBALS['navinfor']['ecmsbid']?$GLOBALS['navinfor']['ecmsbid']:$GLOBALS['navclassid'];
$uztcsql=$empire->query("select cid,cname,ttype from {$dbtbpre}enewszttype where ztid='$selfztid' order by myorder");
while($uztcr=$empire->fetch($uztcsql))
{
?>
<a href="type<?=$uztcr[cid].$uztcr[ttype]?>"><b>专题子类名称:<?=$uztcr['cname']?></b></a><br>
<table border="0" cellspacing="1" cellpadding="3">
[e:indexloop={$uztcr[cid],10,4,'','',''}]
<tr><td>
<a href="<?=$bqsr[titleurl]?>" target="_blank"><?=$bqr[title]?></a>
(<?=date('Y-m-d',$bqr[newstime])?>)
</td></tr>
[/e:indexloop]
</table>
<br><br>
<?php
}
?>
<?php
$ztdiyfval=ReturnZtAddField(0,'savecids');
?>
<?php
$uztcsql=$empire->query("select cid,cname,ttype from {$dbtbpre}enewszttype where cid in (".$ztdiyfval.") order by myorder");
while($uztcr=$empire->fetch($uztcsql))
{
?>
<a href="type<?=$uztcr[cid].$uztcr[ttype]?>"><b>专题子类名称:<?=$uztcr['cname']?></b></a><br>
<table border="0" cellspacing="1" cellpadding="3">
[e:indexloop={$uztcr[cid],10,4,'','',''}]
<tr><td>
<a href="<?=$bqsr[titleurl]?>" target="_blank"><?=$bqr[title]?></a>
(<?=date('Y-m-d',$bqr[newstime])?>)
</td></tr>
[/e:indexloop]
</table>
<br><br>
<?php
}
?>
本网刊登的文章均仅代表作者个人观点,并不代表本网立场。文中的论述和观点,敬请读者注意判断。
2022-04-12
2022-05-29
2021-08-29
2022-05-30
2021-08-27
2021-03-20
2021-02-08
2022-10-26