<address id="ousso"></address>
<form id="ousso"><track id="ousso"><big id="ousso"></big></track></form>
  1. phpcms頻道首頁調用所有一級二級欄目

    時間:2025-12-18 02:58:41 php語言

    phpcms頻道首頁調用所有一級二級欄目

      學習是要持之以恒的一件事,堅持就是勝利!以下百分網小編整理的關于phpcms頻道首頁調用所有一級二級欄目的方法,希望對大家有所幫助,更多信息請關注應屆畢業生網!
      打開phpcms頻道首頁模板index.html
      你會看到:
      CODE: [Copy to clipboard] <!--自定義欄目開始-->
      <table width="100%" cellspacing="0" cellpadding="0">
      {loop $childcats $i $cat}
      {if $i%2==0}<tr>{/if}
      <td valign="top" style="padding:0 5px;">
      <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
      <td class="titlebar" width="100">{$cat[catname]}</td>
      <td width="10" height="25"><img src="{$skindir}/images/tit3_r.jpg"></td>
      <td width="225" align="right" class="bg_titlebar"><a href="{$cat[caturl]}" class="more">更多</a>&nbsp;</td>
      <td width="36"><img src="{$skindir}/images/tit2_r.jpg"></td>
      </tr>
      </table>
      {$articlelist(0,$channelid,$cat[catid],1,0,0,10,30,0,0,0,$cat[ordertype],2,1,0,0,$cat[target],1)}
      </td>
      {if $i%2==1}</tr>{/if}
      {/loop}
      </table>
      <!--自定義欄目結束--> 把他換成
      CODE: [Copy to clipboard] <!--自定義欄目開始-->
      <table width="100%" cellspacing="0" cellpadding="0">
      {loop $childcats $i $cat}
      {if $i%2==0}<tr>{/if}
      <td valign="top" style="padding:0 5px;">
      <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
      <td class="titlebar" width="100">{$cat[catname]}</td>
      <td width="10" height="25"><img src="{$skindir}/images/tit3_r.jpg"></td>
      <td width="225" align="right" class="bg_titlebar"><a href="{$cat[caturl]}" class="more">更多</a>&nbsp;</td>
      <td width="36"><img src="{$skindir}/images/tit2_r.jpg"></td>
      </tr>
      </table>
      {loop get_childcat($channelid,$cat[catid]) $childid}
      &nbsp;&nbsp;<a href="{$childid[caturl]}">{$childid[catname]}</a>
      {$articlelist(0,$channelid,$childid[catid],1,0,0,10,36,0,0,0,$childcat[itemordertype],2,0,0,0,1,1)}
      {/loop}
      </td>
      {if $i%2==1}</tr>{/if}
      {/loop}
      </table>
      <!--自定義欄目結束--> 具體怎么做的美觀點大家自由發揮了~~

    【phpcms頻道首頁調用所有一級二級欄目】相關文章:

    phpcms圖片頻道模板制作03-01

    phpcms下載頻道的模板制作12-15

    PHPCMS系統安全設置步驟11-15

    java調用的方法10-31

    PHP學習:修改phpcms中的評論樣式01-26

    PHP學習:修改phpcms中的評論樣式10-22

    PHPCms內容頁支持JavaScript的修改方法02-07

    系統調用的概念簡介12-14

    java調用的幾個方法11-04

    <address id="ousso"></address>
    <form id="ousso"><track id="ousso"><big id="ousso"></big></track></form>
    1. 日日做夜狠狠爱欧美黑人