标签:
{if isset($cid)&&$cid!='all'}
{else}
{/if}
全部
{if isset($pid)&&$pid!=0}
{eval $_cid1=intval($pid); $subcatlist=$this->getlistbysql("select id,name,displayorder,grade from ".$this->db->dbprefix."category where iscourse=0 and isuseask=1 and grade=2 and pid=$_cid1 order by displayorder desc ");}
{else}
{if isset($cid)&&$cid!='all'}
{eval $_cid1=intval($cid); $subcatlist=$this->getlistbysql("select id,name,displayorder,grade from ".$this->db->dbprefix."category where iscourse=0 and isuseask=1 and grade=2 and pid=$_cid1 order by displayorder desc ");}
{else}
{eval $subcatlist=$this->getlistbysql("select id,name,displayorder,grade from ".$this->db->dbprefix."category where iscourse=0 and isuseask=1 and grade=2 order by displayorder desc ");}
{/if}
{/if}
{if $subcatlist}
{if $sindex<20>
{$subcat['name']}
{/if}
{if $sindex>=20}
{$subcat['name']}
{/if}
{if count($subcatlist)>=20}
查看更多
{/if}
{/if}
这段代码复制后 该怎么修改 往new里面添加
付费偷看金额在0.1-10元之间
你贴代码还不如发图片,这看起来挺糟糕,如果是三级分类,先获取到二级分类,然后在遍历当前二级分类下三级分类,循环输出
像这样吗?
一周热门 更多>