|
|
|
@ -23,6 +23,7 @@ if (!empty($viewData['para_month'])) {
@@ -23,6 +23,7 @@ if (!empty($viewData['para_month'])) {
|
|
|
|
|
$selectedId = $viewData['para_month']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$cacheData = !empty($viewData['cacheData']) ? $viewData['cacheData'] : []; |
|
|
|
|
?><!-- 顶部导航栏模块 --> |
|
|
|
|
<nav class="navbar navbar-default navbar-fixed-top navbarJS"> |
|
|
|
|
<div class="container-fluid"> |
|
|
|
@ -69,8 +70,18 @@ if (!empty($viewData['para_month'])) {
@@ -69,8 +70,18 @@ if (!empty($viewData['para_month'])) {
|
|
|
|
|
foreach($arrYears as $year) { |
|
|
|
|
$intYear = str_replace('y', '', $year); |
|
|
|
|
$selected = $year == $viewData['para_year'] ? 'active' : ''; |
|
|
|
|
$htmlFileTotal = ''; |
|
|
|
|
if (!empty($viewData['cacheData_keys'][$year]['total'])) { |
|
|
|
|
$htmlFileTotal = <<<eof |
|
|
|
|
<small class="badge">{$viewData['cacheData_keys'][$year]['total']}</small> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
echo <<<eof |
|
|
|
|
<li class="{$selected}"><a href="/list/bydate?year={$year}"><img src="/img/beauty/calendar.svg?gray" alt="calendar" width="14" class="menu-icon"> {$intYear}年</a></li> |
|
|
|
|
<li class="{$selected}"><a href="/list/bydate?year={$year}"> |
|
|
|
|
<img src="/img/beauty/calendar.svg?gray" alt="calendar" width="14" class="menu-icon"> |
|
|
|
|
{$intYear}年 |
|
|
|
|
{$htmlFileTotal} |
|
|
|
|
</a></li> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
}else { |
|
|
|
@ -86,16 +97,19 @@ eof;
@@ -86,16 +97,19 @@ eof;
|
|
|
|
|
<?php |
|
|
|
|
if (!empty($viewData['menus'])) { //只显示第一级目录 |
|
|
|
|
foreach ($viewData['menus'] as $index => $item) { |
|
|
|
|
$fileTotal = 0; |
|
|
|
|
$htmlFileTotal = ''; |
|
|
|
|
if ( !empty($viewData['dirCounters']) && !empty($viewData['dirCounters'][$item['id']]) ) { |
|
|
|
|
$dirTotal = $viewData['dirCounters'][$item['id']]; |
|
|
|
|
$fileTotal = $dirTotal['image_total'] + $dirTotal['video_total'] + $dirTotal['audio_total']; |
|
|
|
|
$htmlFileTotal = <<<eof |
|
|
|
|
<small class="badge">{$fileTotal}</small> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
echo <<<eof |
|
|
|
|
<li><a href="{$item['path']}"> |
|
|
|
|
<img src="/img/beauty/folder.svg" alt="directories" width="17" class="menu-icon"> |
|
|
|
|
{$item['directory']} |
|
|
|
|
<small class="badge">{$fileTotal}</small> |
|
|
|
|
{$htmlFileTotal} |
|
|
|
|
</a></li> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
@ -110,7 +124,6 @@ eof;
@@ -110,7 +124,6 @@ eof;
|
|
|
|
|
<!-- 内容主题 --> |
|
|
|
|
<div class="img_main <?=$main_view_cls?>"> |
|
|
|
|
<?php |
|
|
|
|
$cacheData = !empty($viewData['cacheData']) ? $viewData['cacheData'] : []; |
|
|
|
|
$btnSetSnap = ''; |
|
|
|
|
|
|
|
|
|
$total = 0; |
|
|
|
@ -208,6 +221,7 @@ eof;
@@ -208,6 +221,7 @@ eof;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
foreach ($months as $month) { |
|
|
|
|
if (strpos($month, 'm') === false) {continue;} |
|
|
|
|
$intMonth = str_replace('m', '', $month); |
|
|
|
|
$activedClass = $month == $viewData['para_month'] ? 'active' : ''; |
|
|
|
|
$monthLink = Html::getLinkByParams(FSC::$app['requestUrl'], array( |
|
|
|
|