|
|
|
@ -54,9 +54,19 @@ eof;
@@ -54,9 +54,19 @@ eof;
|
|
|
|
|
<div class="img_main"> |
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
$imgExts = !empty(FSC::$app['config']['supportedImageExts']) ? FSC::$app['config']['supportedImageExts'] : array('jpg', 'jpeg', 'png', 'webp', 'gif'); |
|
|
|
|
$category = !empty($viewData['scanResults'][$selectedId]) ? $viewData['scanResults'][$selectedId] : []; |
|
|
|
|
$total = 0; //翻页支持 |
|
|
|
|
|
|
|
|
|
if (!empty($category['files'])) { |
|
|
|
|
$total = Html::getDataTotal($category['files'], $imgExts); //翻页支持 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($breadcrumbs)) { |
|
|
|
|
echo <<<eof |
|
|
|
|
<div class="breadcrumbs text_dark"> |
|
|
|
|
<span class="pull-right total">总数 <strong>{$total}</strong></span> |
|
|
|
|
<small>当前位置:</small> |
|
|
|
|
<a href="/">首页</a> / |
|
|
|
|
eof; |
|
|
|
@ -81,11 +91,6 @@ eof;
@@ -81,11 +91,6 @@ eof;
|
|
|
|
|
|
|
|
|
|
<div class="im_mainl row"> |
|
|
|
|
<?php |
|
|
|
|
$imgExts = !empty(FSC::$app['config']['supportedImageExts']) ? FSC::$app['config']['supportedImageExts'] : array('jpg', 'jpeg', 'png', 'webp', 'gif'); |
|
|
|
|
$category = !empty($viewData['scanResults'][$selectedId]) ? $viewData['scanResults'][$selectedId] : []; |
|
|
|
|
$total = 0; //翻页支持 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//如果没有选中任何目录,则把所有目录显示出来 |
|
|
|
|
if (empty($selectedId) && !empty($viewData['menus'])) { |
|
|
|
|
$category = array( |
|
|
|
@ -182,7 +187,6 @@ eof;
@@ -182,7 +187,6 @@ eof;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!empty($category['files'])) { //一级目录支持 |
|
|
|
|
$total = Html::getDataTotal($category['files'], $imgExts); //翻页支持 |
|
|
|
|
$pageStartIndex = ($viewData['page']-1) * $viewData['pageSize']; |
|
|
|
|
$index = 0; |
|
|
|
|
foreach ($category['files'] as $file) { |
|
|
|
|