|
|
|
@ -180,6 +180,17 @@ eof;
@@ -180,6 +180,17 @@ eof;
|
|
|
|
|
//显示月份导航菜单 |
|
|
|
|
if (!empty($viewData['para_year']) && !empty($viewData['cacheData_keys'][$viewData['para_year']])) { |
|
|
|
|
echo '<ul class="nav nav-pills ml-1 mb-1">'; |
|
|
|
|
|
|
|
|
|
$activedClass = empty($viewData['para_month']) ? 'active' : ''; |
|
|
|
|
$monthLink = Html::getLinkByParams(FSC::$app['requestUrl'], array( |
|
|
|
|
'show' => $viewData['showType'], |
|
|
|
|
'page' => 1, |
|
|
|
|
'month' => '' |
|
|
|
|
)); |
|
|
|
|
echo <<<eof |
|
|
|
|
<li role="presentation" class="{$activedClass}"><a href="{$monthLink}">所有</a></li> |
|
|
|
|
eof; |
|
|
|
|
|
|
|
|
|
$months = $viewData['cacheData_keys'][$viewData['para_year']]; |
|
|
|
|
asort($months); //排序 |
|
|
|
|
foreach ($months as $month) { |
|
|
|
@ -194,6 +205,7 @@ eof;
@@ -194,6 +205,7 @@ eof;
|
|
|
|
|
<li role="presentation" class="{$activedClass}"><a href="{$monthLink}">{$intMonth}月</a></li> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo '</ul>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|