以下代码,可以放在会员中心任意模板页面,可输出所有可投稿的系统模型。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ?php //输出可管理的模型 $tmodsql = $empire -query( select mid,qmname from {$dbtbpre}ene

以下代码,可以放在会员中心任意模板页面,可输出所有可投稿的系统模型。

帝国CMS会员中心输出循环模型代码(帝国cms会员中心模板)  帝国CMS 会员中心 循环模型代码 第1张

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <?php             //输出可管理的模型             $tmodsql=$empire->query("select mid,qmname from {$dbtbpre}enewsmod where usemod=0 and showmod=0 and qenter<>'' order by myorder,mid");             while($tmodr=$empire->fetch($tmodsql))             {                 $fontb="";                 $fontb1="";                 if($tmodr['mid']==$tgetmid)                 {                     $fontb="<b>";                     $fontb1="</b>";                 }             ?> <li class="z"><span><a href="<?=$public_r['newsurl']?>e/DoInfo/ChangeClass.php?mid=<?=$tmodr['mid']?>"><?=$fontb?>发布<?=$fontb1?></a></span><a href="<?=$public_r['newsurl']?>e/DoInfo/ListInfo.php?mid=<?=$tmodr['mid']?>"><?=$fontb?>管理<?=$tmodr[qmname]?><?=$fontb1?></a></li> <?php             }             ?>  

转载请说明出处
知优网 » 帝国CMS会员中心输出循环模型代码(帝国cms会员中心模板)

发表评论

您需要后才能发表评论