帝国cms建站方法和知识点 (4)

                                                                     <?php

                                                                     }       

                                                                     ?>

                       <?php

             if($sonclass_r[\'bclassid\'] > 0  && $sonclass_r[\'islast\'] ==0   ){

$sqlsonclass_son = "select classid,classname,sonclass from {$dbtbpre}enewsclass where bclassid=$sonclass_r[classid] order by myorder";

          $son_sonclas-s-result=$empire->query($sqlsonclass_son); //查询当前栏目的子栏目

             if(      $son_sonclas-s-result){

                       echo \'<div>\';

             }                                                                                   while($sonclass_son=$empire->fetch($son_sonclas-s-result)){                                                   //var_dump($sonclass_son);                                                                                          $sonclassson_url=sys_ReturnBqClassname($sonclass_son,9);//取得栏目地址

echo "<a href=http://www.likecs.com/\'{$sonclassson_url}\'>{$sonclass_son[\'classname\']}</a>";

                                                                                                 }

if ($son_sonclas-s-result) {

    echo \'</div>\';

}

                        }

                       ?>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zgjysw.html