trash.vm
来自「一个简单的blog系统」· VM 代码 · 共 71 行
VM
71 行
##
## 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.
##
## trash view
##
###############################################################################
#parse("/html/_sub/_global.vm")
#select_layout("p_diary.vm")
#set($page_title="垃圾箱")
###############################################################################
#set($logs = $DIARY_tool.list_trash($g_site, $g_user))
#set($catalog_id=-1)
<div class="page_top">
<div class="pagecontent">
<div class="pagecontent_left fleft">
<b>垃圾箱中共有日记 $!{logs.size()} 篇.</b>
#if(${logs.size()}>0) | <a href="$link.setAction("html/diary")?sid=$g_site_id&eventSubmit_CleanupTrash" onclick="return confirm('真的要清空垃圾箱吗,该操作无法恢复!');">清空垃圾箱</a>#end
</div>
<div class="pagecontent_right fright"></div>
</div>
<div class="spacer_1"></div>
</div>
#if($logs && $logs.size()>0)
<div class="page_content">
<hr size="1" noshade color="#CCCCCC">
#set($no_bookmark_link = true) ##不显示存为书签的链接
#foreach($log in $logs)
#set($show_log_url = "$dlog.root()/html/diary/showlog.vm?sid=$g_site_id&cat_id=$catalog_id&log_id=${log.id}")
<div class="diary">
<div class="diary_title">
#invoke("_log_title_bar.vm")
</div>
<div class="diary_content">
#set($preview_content = ${log.previewContent})
<div class="diary_preview_content">
<p>$preview_content</p>
</div>
#if($preview_content.length() < $log.content.length())
<div><a href="$show_log_url" class="more">阅读全文...</a></div>
#end
#if($dlog.not_empty($log.keyword))
<div>
<b>关键字: </b>
#foreach($tag in $log.keywords)
<a href="$dlog.root()/html/showtag.vm?sid=$g_site_id&type=1&tag=$link.encodeURL($tag)"><b>${tag}</b></a>
#end
</div>
#end
</div>
<div class="diary_foot">
#invoke("_trash_log_bottom_bar.vm")
</div>
</div>
<div class="spacer_10"></div>
<div class="line_dashed"></div>
#end
</div>
<div class="page_footer"></div>
#end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?