摘要: 1:在includes/cls_template.php里顶部插入分类函数代码: //通过参数判断是否存在二级分类 function get_subcate_byurl($url) { $rs = strpos($url,"category"); if($rs!==false) { preg_match("/d+/i",$url,$matches); $cid = $matches[0]; $cat_arr = array(); $sql = "select * from ".$GLOBALS['ecs']->t 阅读全文
posted @ 2013-06-19 15:40 暗夜独游Jevil 阅读(650) 评论(0) 推荐(0) 编辑