现在位置 >首页 > PHPCMS
0℃
2010年04月13日 PHPCMS ⁄ 被围观 阅读(1,890)+
<div class="h2">产品分类</div> </div> <div class="text"> {php $C = subcat('yp',0);} {php $j=1;} {loop $C $cid $cat} {php if($j>13) continue;} <div class="list_cat"> <!--一级分类用$cat调--> <span><a href="{url('/yp/product.php')}?catid={$cat['catid']}">{$cat['catname']}</a>:</span> {php $data = subcat('yp', $cid);} {php $m=1;} {loop $data $n $r} {php if($m>6) continue;} {if $r[ismenu]} <!--二级分类用$r调-...
阅读全文
0℃
在文件\yp\company.php中找到以下代码: if($CATEGORY[$catid])  {   $where .= "r.catid IN ({$r['arrchildid']})";  } 并在此上面增加 if($catid) {   if($child == 1) $arrchildid = subcat('yp', $catid); }
阅读全文