From 2b3b8cbe163f416cf9ac7869c64444651b44fdf5 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Fri, 19 Oct 2018 18:23:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/ChannelController.class.php | 114 ------------------ .../Home/View/Default/Channel/Index.html | 101 ---------------- 2 files changed, 215 deletions(-) delete mode 100755 service/Application/Home/Controller/ChannelController.class.php delete mode 100755 service/Application/Home/View/Default/Channel/Index.html diff --git a/service/Application/Home/Controller/ChannelController.class.php b/service/Application/Home/Controller/ChannelController.class.php deleted file mode 100755 index a665eb74e..000000000 --- a/service/Application/Home/Controller/ChannelController.class.php +++ /dev/null @@ -1,114 +0,0 @@ -GetIndexWhere(); - - // 分页 - $number = 10; - $page_param = array( - 'number' => $number, - 'total' => $m->where($where)->count(), - 'where' => $_GET, - 'url' => U('Home/Channel/Index'), - ); - $page = new \My\Page($page_param); - - // 获取列表 - $list = LayoutArticleDataHandle($m->where($where)->limit($page->GetPageStarNumber(), $number)->order('id desc')->select()); - - // 分页 - $this->assign('page_html', $page->GetPageHtml()); - - // 数据列表 - $this->assign('list', $list); - - // 布局+模块列表 - $this->assign('data', $this->GetLayoutList('channel')); - - // 友情链接 - $this->assign('link', LayoutLink('channel', 1)); - - // 频道数据 - $channel = $this->GetChannelData(); - - // 浏览器标题 - $title = isset($channel[I('id')]) ? $channel[I('id')] : ''; - $this->assign('home_seo_site_title', $this->GetBrowserSeoTitle($title, MyC('home_seo_channel_browser'))); - - $this->display('Index'); - } - - /** - * [GetChannelData 获取频道数据] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-02-25T14:38:33+0800 - */ - private function GetChannelData() - { - $data = S(C('cache_home_channel_key')); - if(empty($data)) - { - $data = M('ArticleClass')->getField('id,name'); - } - return $data; - } - - /** - * [GetIndexWhere 文章列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T22:16:29+0800 - */ - private function GetIndexWhere() - { - $where = array(); - - // 文章分类id - if(!empty($_REQUEST['id'])) - { - $where['article_class_id'] = intval(I('id')); - } - - return $where; - } -} -?> \ No newline at end of file diff --git a/service/Application/Home/View/Default/Channel/Index.html b/service/Application/Home/View/Default/Channel/Index.html deleted file mode 100755 index 10a0f50ff..000000000 --- a/service/Application/Home/View/Default/Channel/Index.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - -
style="{{$max_width_style}}"> - -
- - -
-
- -
-
- {{$page_html}} - - -
- -
- - -
- - - - - - -
{{$v['item'][0]}}
-
-
- - list($t1, $t2, $t3) = str_split($v['value']); - - - - $t_all = str_split($v['value']); -
- - -
{{$vs}}
-
-
-
-
-
-
-
- -
- -
- - - - - - - - - \ No newline at end of file