From c3f8b8e4714d8b07c15d45026a6fa3619730c0dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=B8=80=E5=B3=B0?= <1feng.0595@gmail.com> Date: Sun, 18 Jun 2017 19:39:18 +0800 Subject: [PATCH] get_cat_path --- app/Common/function.php | 4 ++-- resources/views/admin/searchword/add.blade.php | 2 +- resources/views/admin/userrole/index.blade.php | 4 ++-- resources/views/home/index/category.blade.php | 5 ++--- resources/views/home/index/productcat.blade.php | 4 +--- 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/Common/function.php b/app/Common/function.php index 26e2afe..3cda974 100644 --- a/app/Common/function.php +++ b/app/Common/function.php @@ -92,7 +92,7 @@ function get_front_url($param='') } else if($param['type'] == 'search') { - //tags页面 + //搜索关键词页面 $url .= '/s'.$param['searchid']; } else if($param['type'] == 'productlist') @@ -707,7 +707,7 @@ function get_cat_path($cat,$table='arctype',$type='list') if($row->pid<>0) { - get_cat_path($row->pid); + get_cat_path($row->pid, $table, $type); } return $temp; diff --git a/resources/views/admin/searchword/add.blade.php b/resources/views/admin/searchword/add.blade.php index 73fdcd8..e1b28d6 100644 --- a/resources/views/admin/searchword/add.blade.php +++ b/resources/views/admin/searchword/add.blade.php @@ -21,7 +21,7 @@ 模板名称: - + 缩略图: diff --git a/resources/views/admin/userrole/index.blade.php b/resources/views/admin/userrole/index.blade.php index 84a9b12..feb6d51 100644 --- a/resources/views/admin/userrole/index.blade.php +++ b/resources/views/admin/userrole/index.blade.php @@ -13,13 +13,13 @@ 管理 - + id; ?> name; ?> des; ?> status==0){echo '启用';}else{echo '禁用';} ?> id<>1){ ?>权限设置 | 修改id<>1){ ?> | 删除 - + diff --git a/resources/views/home/index/category.blade.php b/resources/views/home/index/category.blade.php index accbca8..03700f2 100644 --- a/resources/views/home/index/category.blade.php +++ b/resources/views/home/index/category.blade.php @@ -18,9 +18,8 @@ -