Warning: date(): Invalid date.timezone value 'HKT', we selected the timezone 'UTC' for now. in /home/mrgcom/public_html/catalog/controller/common/footer.php on line 48 phpmvc廣告位的調用

The One 专一

phpmvc廣告位的調用

後台:模塊,廣告,添加版位.這裡認真看你會得到一個廣告版位的spaceid.

前台:

{pc:get sql="SELECT setting FROM v9_poster WHERE spaceid = 11 AND type='images' AND disabled=0 ORDER BY listorder ASC" num="5"} 
    {loop $data $r} 
    <?php eval("$narry =$r[setting];");?>
    <a href="{$narry[1][linkurl]}" target="_blank"><img src="{$narry[1][imageurl]}" alt="{$narry[1][alt]}"/></a>
    {/loop} 
    {/pc}

直接從數據庫讀取數據,然後使用.

Powered By 爱你若晴天
身体健康 © 2017 粤ICP备14081548号-1

Article

Shopping

Search

Me