标签:
{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里面添加
像这样吗?
一周热门 更多>