|
|
|
@ -168,7 +168,11 @@ eof;
@@ -168,7 +168,11 @@ eof;
|
|
|
|
|
|
|
|
|
|
echo '<ul class="nav nav-tabs ml-1 mb-1">'; |
|
|
|
|
foreach ($arrShowTypes as $key => $title) { |
|
|
|
|
$showLink = Html::getLinkByParams(FSC::$app['requestUrl'], array('show' => $key, 'page' => 1)); |
|
|
|
|
$showLink = Html::getLinkByParams(FSC::$app['requestUrl'], array( |
|
|
|
|
'show' => $key, |
|
|
|
|
'page' => 1, |
|
|
|
|
'month' => '', |
|
|
|
|
)); |
|
|
|
|
$activedClass = $key == $viewData['showType'] ? 'active' : ''; |
|
|
|
|
echo <<<eof |
|
|
|
|
<li role="presentation" class="{$activedClass}"><a href="{$showLink}">{$title}</a></li> |
|
|
|
@ -191,8 +195,12 @@ eof;
@@ -191,8 +195,12 @@ eof;
|
|
|
|
|
<li role="presentation" class="{$activedClass}"><a href="{$monthLink}">所有</a></li> |
|
|
|
|
eof; |
|
|
|
|
|
|
|
|
|
$months = $viewData['cacheData_keys'][$viewData['para_year']]; |
|
|
|
|
asort($months); //排序 |
|
|
|
|
$months = $viewData['monthsByType']; |
|
|
|
|
if ($viewData['showType'] == 'all') { |
|
|
|
|
$months = $viewData['cacheData_keys'][$viewData['para_year']]; |
|
|
|
|
sort($months); //排序 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
foreach ($months as $month) { |
|
|
|
|
$intMonth = str_replace('m', '', $month); |
|
|
|
|
$activedClass = $month == $viewData['para_month'] ? 'active' : ''; |
|
|
|
|