📄 leavewords.ftl
字号:
<#include "lib/report.tpl"/>
<#import "lib/html.tpl" as html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=${_encoding?default("GBK")}" />
<#assign navtitle = "${_EFUserUtil.getEFUser(user_id).nickName} 的留言板 - ">
<#include "/common/title.ftl">
<#include "/common/meta.ftl">
<link href="${_resPath}/lib/base.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="${_contextPath}/ef/js/prototype.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/base.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/blog.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/eforumad.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function gotoPage(pNo){
window.location="${_UrlUtil.encodeURL("/blog/leaveword.do?_fn=ListLeaveword&user_id=${user_id}&_pNo=\" + pNo")};
}
//-->
</SCRIPT>
<body><!-- leavewords.ftl -->
<div id="wrap">
<#include "header.ftl"/>
<div id="content">
<#if _EFUser.id == user_id>
<#include "blognav_inc.ftl"/>
</#if>
<#include "blogleft_inc.ftl"/>
<div id="blogRight">
<div id="leavewords" class="commonBox">
<table class="leavewords commonTable">
<tr class="hd1">
<td colspan="3">
﹤${blogUser.nickName}﹥的留言板
</td>
</tr>
<#if leavewords.size() > 0>
<#list leavewords as leaveword>
<tr class="content">
<td class="td1" rowspan="2">
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(leaveword.from_user))}" target="_blank"><img src="${_contextPath}/${_EFUserUtil.getUserHead(leaveword.from_user)}" class="middleHeadPic" alt="${_EFUserUtil.getNickName(leaveword.from_user)}"></a>
</td>
<td class="td2">
<#assign leaveTime = _DateUtil.miniHappenedTime(_EFUser,leaveword.leaveword_createtime?number)/>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(leaveword.from_user))}" target="_blank">${_EFUserUtil.getNickName(leaveword.from_user)}</a>
<span class="time">${leaveTime}</span><span><#if leaveword.leaveword_isprivate?default(0)?number == _Constants.STATUS_YES>悄悄的说</#if></span>
</td>
<td class="td3" rowspan="2">
<#if _EFUser.id == leaveword.user_id>
<a href="${_UrlUtil.encodeURL("/blog/leaveword.do?_fn=DeleteLeaveword&leaveword_id="+leaveword.leaveword_id)}" title="删除此留言" class="color">删除</a>
</#if>
</td>
</tr>
<tr class="content">
<td class="td4">
<div>
<#if leaveword.leaveword_isprivate?default(_Constants.STATUS_YES)?number == _Constants.STATUS_YES
&& leaveword.user_id?string != _EFUser.id
&& leaveword.from_user?string != _EFUser.id>
*** 内容被隐藏 ***
<#else>
${leaveword.leaveword_content?replace("\r\n", "<br>")}
</#if></div>
</td>
</tr>
</#list>
<#else>
<#assign noDataInfo = "目前没有任何留言"/>
<#assign isTable = true/>
<#assign colspanNum = 1/>
<#include "nodatainfo_inc.ftl"/>
</#if>
</table>
</div><#comment> end leavewords </#comment>
<div id="pageNavigationDiv">
<#assign pagination=Context["LEAVEWORD_PAGINATION_NO"]?default(_EmptyObject.pagination()) />
<@html.doPagination pagination=pagination/>
</div>
<#if _logged && _EFUser.id != user_id>
<#comment> 留言 </#comment>
<#comment> 热链 </#comment>
<@_report/>
<a name="leaveword_link"></a>
<form method="post" id="leaveword_form" name="leaveword_form" action="${_UrlUtil.encodeURL("/blog/leaveword.do")}">
<input type="hidden" name="_fn" value="Leaveword">
<div id="leaveword" class="commonBox">
<table class="leaveword commonTable">
<tr class="hd1">
<td colspan="3">
给${blogUser.nickName}留言
</td>
</tr>
<tr>
<td class="td1" colspan="3">
<textarea id="leaveword_content" name="leaveword_content" class="textarea1" cols="80" rows="6"></textarea>
</td>
</tr>
<tr>
<td class="td2">
<#if _ConfigUtil.haveCheckCodeLeaveword() >
验证码:<input name="__chkcode" value="" type="text" size="6" maxlength="4"/><img id="_checkNumImage" src="${_contextPath}/checkNum" title="校验码" style="vertical-align:top"/><a href="javascript:newVerifyPic('${_contextPath}','_checkNumImage')" title="看不清左边的字符" class="color">看不清?</a>
</#if>
</td>
<td class="td3">
<input type="checkbox" name="leaveword_isprivate" value="0">悄悄话</td>
<td class="td4">
<input type="button" class="middleButton" value="提交" onclick="submitLeaveword(this)">
<input type="reset" class="middleButton" value="清除" >
</td>
</tr>
</table>
<input type="hidden" name="user_id" value="${user_id?default("")}">
<div class="clean"></div>
</div><#comment> leaveword </#comment>
</form>
<#elseif _EFUser.id != user_id>
<#assign isTable = false/>
<#assign noDataInfo = "登陆后方可留言"/>
<#include "nodatainfo_inc.ftl"/>
</#if>
</div><#comment> end blogRight </#comment>
</div><#comment>end content</#comment>
<#include "footer.ftl"/>
</div><#comment>end wrap</#comment>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -