正文 711字数 143,057阅读

幻灯片

<GZ:list sql="select * from gz_slide_data where fid = '1' and lang='1' and status='1' order by listorder,id desc limit 10" key='i'> <a href="{$r.link}"><img src="{$r['pic']}" /></a> </GZ:list>
Run code
Cut to clipboard


    获取一级栏目

    <?php //dump($Categorys);exit; foreach($Categorys as $k=>$v){ if(($v['parentid']==0) && ($v['ismenu']==1)) echo '<li class="actionddh'.$v['id'].'"><a href="'.$v['url'].'">'.$v['catname'].'</a></li>'; } ?>
    Run code
    Cut to clipboard