From 76eb8cd4df7039e5b5e7e4f3336ea2ea89362422 Mon Sep 17 00:00:00 2001 From: Lee <342694918@qq.com> Date: Thu, 15 Dec 2022 07:20:05 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'view/page/history.html'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/page/history.html | 206 ++++++++++++++++++++--------------------- 1 file changed, 103 insertions(+), 103 deletions(-) diff --git a/view/page/history.html b/view/page/history.html index 81da8d9..0680c2f 100755 --- a/view/page/history.html +++ b/view/page/history.html @@ -1,104 +1,104 @@ -{layout name="layout"/} -{php} -use app\model\Article; -use app\model\Category; -$childrenMenu = Category::getChildrenByParentId(Category::CATEGORY_COMPANY); -$items = Article::getList(Category::CATEGORY_COMPANY_EVENT, 1000); -$items = $items->toArray(); -$items = $items['data']; -$years = array_unique(array_column($items, 'title')); -rsort($years); - -$yearList = []; -foreach ($items as $item) { - foreach($years as $year) { - if (!isset($yearList[$item['title']])) { - $yearList[$item['title']] = []; - } - - if (!isset($yearList[$item['title']][$item['sub_title']])) { - $yearList[$item['title']][$item['sub_title']] = []; - } - - $yearList[$item['title']][$item['sub_title']] = $item; - } -} - -//dd($yearList[2022]);exit; -{/php} - -{include file="public/about_second" /} - -
-
-

{$blocks['company_event']['value']}

- {$blocks['company_event']['title']} - - {$blocks['company_event_desc']['value']|raw} - -
-
-
-
- -
- 向前 -
-
-
- {foreach $yearList as $year => $months} -
-
-

{$year ?? ''}

- -
-
- {foreach $months as $month => $info} -

- {$month ?? ''}月 - - {php} - $eventList = json_decode($info['imgs'], true); - {/php} - {foreach $eventList as $event} - - {$event.title ??''} -
- {/foreach} -
-

- {/foreach} -
-
- {/foreach} -
-
- -
- 向后 -
-
-
-
- {foreach $yearList as $year => $months} - {foreach $months as $month => $info} - {php} - $eventList = json_decode($info['imgs'], true); - {/php} - {foreach $eventList as $k => $event} - {if ($k == 0) } - {$event.title ?? ''} - {php}break;{/php} - {/if} - {/foreach} - {/foreach} - {/foreach} -
-
-
- \ No newline at end of file