This commit is contained in:
WispX
2019-01-01 19:48:32 +08:00
parent e27eefd7b2
commit 3c0582ef9b
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -8,10 +8,13 @@
namespace app\index\controller;
use app\common\model\Images;
class Index extends Base
{
public function index()
{
$this->assign('imageCount', Images::count());
return $this->fetch();
}
+1 -1
View File
@@ -14,7 +14,7 @@
<div class="upload-container">
<div class="title">
<h1>Image Upload</h1>
<p>最大可上传 {:round($config.upload_max_size / 1024 / 1024)} MB的图片,单次同时可选择 {$config.upload_single_num} 张。</p>
<p>最大可上传 {:round($config.upload_max_size / 1024 / 1024)} MB的图片,单次同时可选择 {$config.upload_single_num} 张。本站已托管 {$imageCount} 张图片。</p>
</div>
<form action="" method="post" enctype="multipart/form-data">
<input id="image" style="display: none;" type="file" multiple name="image" accept="image/*">