upload.vm
来自「一个简单的blog系统」· VM 代码 · 共 44 行
VM
44 行
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU Library General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
## diary's photo upload (xhtml)
##
###############################################################################
#parse("/wml/_sub/_xhtml_global.vm")
#set($page_title="上传图片")
#set($fromPage = $dlog.param("fromPage","/wml/diary/write.vm?sid=$g_site_id"))
<div>
图片上传总空间: <b>${g_site.capacity.diaryTotalFriendly}</b>
已用空间: <b>${g_site.capacity.diaryUsedFriendly}</b>
空间利用率: <b>${g_site.capacity.diarySpacePercent} %</b>
</div>
<!--
<div>
<li>凡上传包含不良内容(如色情、反动类等)的图片,系统将在不另行通知情况下对其行删除,严重情况将关闭站点。</li>
<li>凡上传任何非图片内容的文件(如软件、视频及数据文件),系统将在不另行通知情况下对其删除。</li>
</div>
-->
#if($messages.exist())
<div><b>$!messages.getAll()</b></div>
#else
<div>注意事项:只能上传".jpg"和".gif"和格式的图片。</div>
#end
<form action="$dlog.root()/servlet/fckeditor_upload" method="post" enctype="multipart/form-data">
<input type="hidden" name="sid" value="$g_site_id"/>
<input type="hidden" name="Type" value="Image"/>
<input type="hidden" name="toPage" value="$fromPage"/>
图片文件:<input type="file" name="NewFile"/>
<input type="submit" name="eventSubmit_Upload" value="上传图片" />
</form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?