📄 usertagtopics.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} 发表的与 '${tag_name}' 相关的主题 - ">
<#include "/common/title.ftl">
<#include "/common/meta.ftl">
<link href="${_resPath}/lib/base.css" rel="stylesheet" type="text/css" />
<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/eforumad.js"></script>
<script type="text/javascript">
function gotoPage(pNo,pSize){
var _pSize= "&_pSize=";
if(pSize){
_pSize = _pSize + pSize;
}else{
_pSize = _pSize + ${_pSize?default(_EFUserUtil.getUserPageSize(_EFUser))};
}
window.location="${_UrlUtil.encodeURL("/blog.do?_fn=TagTopicList&tag_id=${tag_id}&tag_name=${tag_name?url}&user_id=${user_id}&_pNo=\" + pNo + _pSize")};
}
function changePageSize(_pSize){
gotoPage(1,_pSize);
}
</script>
</head>
<body><!-- usertagtopics.ftl -->
<div id="wrap">
<#include "header.ftl"/>
<form method="post" id="tagSearch" action="${_UrlUtil.encodeURL("/blog.do?_fn=TagSearch&user_id=" + user_id?default(""))}">
<input type="hidden" name="_pNo" id="_pNo" value="1">
<div id="content">
<div class="commonNavLine">
<#assign onlyForumMenu = false/>
<#assign nextForumNavStr="标签 '"+tag_name?default("")+"' 关联的主题" />
<#include "forumuser_nav.ftl"/>
</div><#comment>end count</#comment>
<div id="commonLeft">
<div id="userTagSearch" class="commonNavBox">
<table class="outline">
<tr class="hd">
<td class="td1">
搜索
</td>
<td class="td2">
<img src="${_resPath}/img/side_view_yes.gif" style="cursor:pointer;" onclick="expandContent('userTagSearchTable');">
</td>
</tr>
<tbody id="userTagSearchTable" class="content">
<tr class="infoLine">
<td class="option" colspan="2">
<input type="text" id="tag_name" name="tag_name" value="${tag_name?default("")}" size="18" class="input1">
</td>
</tr>
<tr class="infoLine">
<td class="option" colspan="2">
<select name="order_name">
<option value="${_Constants.TAG_ORDER_VIEWNUM}" <#if order_name?default(_Constants.TAG_ORDER_VIEWNUM)?number == _Constants.TAG_ORDER_VIEWNUM> selected </#if>>点击数</option>
<option value="${_Constants.TAG_ORDER_TOPICNUM}" <#if order_name?default(_Constants.TAG_ORDER_TOPICNUM)?number == _Constants.TAG_ORDER_TOPICNUM> selected </#if>>主题数</option>
</select>
<select name="order_type">
<option value="${_Constants.ORDER_TYPE_DESC}" <#if order_type?default(_Constants.ORDER_TYPE_DESC)?number == _Constants.ORDER_TYPE_DESC> selected </#if>>降序</option>
<option value="${_Constants.ORDER_TYPE_ASC}" <#if order_type?default(_Constants.ORDER_TYPE_ASC)?number == _Constants.ORDER_TYPE_ASC> selected </#if>>升序</option>
</select>
</td>
</tr>
<tr class="actionLine">
<td class="option" colspan="2">
<input type="button" class="middleButton" value="标签搜索" onclick="formSubmit('tagSearch',this)">
</td>
</tr>
</tbody>
</table>
</div><#comment> end tagSearch </#comment>
<#if tag_name ? exists && tag_name != "">
<div id="userTagSearchPopTag" class="commonNavBox">
<table class="outline">
<tr class="hd"><#assign blogUser = _EFUserUtil.getEFUser(user_id)/>
<td class="td1"><div id="userDetail">
<#if _EFUser.id == blogUser.id>我的标签<#else><a href="${_UrlUtil.encodeURL("/blog-"+blogUser.id+".fhtml")}" title="﹤${blogUser.nickName}﹥的标签">﹤${blogUser.nickName}﹥</a>的标签</#if></div>
</td>
</tr>
<tbody id="userTagSearchPopTagTable" class="content">
<tr class="areaLine">
<td class="area">
<div class="tagCloud">
<#assign tags = _EFUserUtil.getUserTag(user_id,40) />
<#list tags as tag>
<span><a href="${_UrlUtil.encodeURL("/blog.do?_fn=TagTopicList&tag_id="+tag.tag_id+"&tag_name="+tag.tag_name?url+"&user_id="+user_id)}" style="${tag.tagAttribute}" target="_blank">${tag.tag_name}</a></span>
</#list>
</div>
</td>
</tr>
</tbody>
</table>
</div><#comment> end tagSearchPopTag </#comment>
</#if>
</div><#comment> end commonLeft </#comment>
<div id="commonRight">
<div id="tagTopics" class="commonBox">
<table class="tagTopics commonTable">
<tr class="hd1">
<td colspan="2">
<span class="forumName">﹤${blogUser.nickName}﹥</span> 发表的与 <span class="tagName">${tag_name?default("")}</span> 相关的主题
</td>
</tr>
<#if userTagTopics.size() > 0>
<#list userTagTopics as topic>
<tr class="content">
<#if topic_index == (userTagTopics.size() - 1)>
<td class="td00" rowspan="2">
<#else>
<td class="td0" rowspan="2">
</#if>
<#comment> 主题类型 </#comment>
<#comment> 首先判断此主题的最新回复或者创建时间是否在24小时之内 </#comment>
<#comment> 然后判断在cookie中是否记录此主题已经被访问 </#comment>
<#if (topic.post_lasttime?default(topic.post_createtime)?number > _DateUtil.adjustDays(_DateUtil.getCurDateTimeLong(), -1)) && visitedTopics.contains(topic.post_id) == false>
<#if topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_TOPIC>
<img src="${_resPath}/img/posttype_0_new.gif" alt="普通贴" title="普通贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_VOTE>
<img src="${_resPath}/img/posttype_2_new.gif" alt="投票贴" title="投票贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_REWARD>
<img src="${_resPath}/img/posttype_3_new.gif" alt="悬赏贴" title="悬赏贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_ARGUE>
<img src="${_resPath}/img/posttype_4_new.gif" alt="辩论贴" title="辩论贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_ACTIVITY>
<img src="${_resPath}/img/posttype_5_new.gif" alt="活动贴" title="活动贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_BULKPURCHASE>
<img src="${_resPath}/img/posttype_6_new.gif" alt="团购贴" title="团购贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_TRADE>
<img src="${_resPath}/img/posttype_7_new.gif" alt="交易贴" title="交易贴">
</#if>
<#else>
<#if topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_TOPIC>
<img src="${_resPath}/img/posttype_0.gif" alt="普通贴" title="普通贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_VOTE>
<img src="${_resPath}/img/posttype_2.gif" alt="投票贴" title="投票贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_REWARD>
<img src="${_resPath}/img/posttype_3.gif" alt="悬赏贴" title="悬赏贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_ARGUE>
<img src="${_resPath}/img/posttype_4.gif" alt="辩论贴" title="辩论贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_ACTIVITY>
<img src="${_resPath}/img/posttype_5.gif" alt="活动贴" title="活动贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_BULKPURCHASE>
<img src="${_resPath}/img/posttype_6.gif" alt="团购贴" title="团购贴">
<#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_TRADE>
<img src="${_resPath}/img/posttype_7.gif" alt="交易贴" title="交易贴">
</#if>
</#if>
</td>
<td class="td1">
<div class="status">
<#comment> 关闭状态</#comment>
<#if topic.post_closed?default(_Constants.POST_ISCLOSED_NO)?number == _Constants.POST_ISCLOSED_YES>
<img src="${_resPath}/img/locktopic.png" alt="锁定" title="锁定">
</#if>
<#comment> 精华</#comment>
<#if topic.post_isbest?default(_Constants.STATUS_NO)?number == _Constants.STATUS_YES>
<img src="${_resPath}/img/besttopic.png" alt="精华" title="精华">
</#if>
<#comment> 置顶 </#comment>
<#if topic.post_istop?default(_Constants.TOPIC_TOP_NO)?number == _Constants.TOPIC_TOP_ALL>
<img src="${_resPath}/img/toptopic_1.png" alt="全局置顶" title="全局置顶">
<#elseif topic.post_istop?default(_Constants.TOPIC_TOP_NO)?number == _Constants.TOPIC_TOP_CLASS>
<img src="${_resPath}/img/toptopic_2.png" alt="分类置顶" title="分类置顶">
<#elseif topic.post_istop?default(_Constants.TOPIC_TOP_NO)?number == _Constants.TOPIC_TOP_FORUM>
<img src="${_resPath}/img/toptopic_3.png" alt="版面置顶" title="版面置顶">
</#if>
</div>
<div class="topicTitle">
<a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topic.post_id))}" title="${topic.post_title?html}" <#if topic.post_highlight?default("")!="">style="${topic.post_highlight}"</#if> target="_blank">${topic.post_title?html}</a>
<#comment> 是否是金钱贴 </#comment>
<#if (topic.post_money?default(0)?number) > 0>
[售价:<span class="font_hilite number">${topic.post_money?default(0)}</span>]
</#if>
<#comment> 是否悬赏贴 </#comment>
<#if topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_REWARD>
<#comment> 获取悬赏贴的悬赏信息 </#comment>
<#assign topicReward = _TopicUtil.getRewardTopic(topic.post_id)/>
<#if topicReward ? exists>
<#if topicReward.reward_postid ? exists>
[已解决]
<#else>
[悬赏金额:<span class="font_hilite number">${topicReward.reward_amount?default(0)}</span>]
</#if>
</#if>
</#if>
<#comment> 是否需要权限 </#comment>
<#if topic.post_prestige?default(0)?number != 0>
[权限:<span class="font_hilite number">${topic.post_prestige?default(0)}</span>]
</#if>
<#comment> 当前心情 </#comment>
<#if topic.post_face ? exists && topic.post_face?default("") != "">
<img src="${topic.post_face?default("")}" style="vertical-align:middle;" alt="当前心情" title="当前心情">
</#if>
<#comment> 附件类型 </#comment>
<#if topic.post_attachtype?default(_Constants.POST_ATTACHMENT_TYPE_NO)?number == _Constants.POST_ATTACHMENT_TYPE_OTHER>
<img src="${_resPath}/img/attach.gif" alt="附件" title="附件">
<#elseif topic.post_attachtype?default(_Constants.POST_ATTACHMENT_TYPE_NO)?number == _Constants.POST_ATTACHMENT_TYPE_PIC>
<img src="${_resPath}/img/attach_pic.gif" alt="图片附件" title="图片附件">
</#if>
<#comment> 热门 </#comment>
<#if topic.post_replynum?default(0)?number >= _ConfigUtil.getConfigInfo("POST_HOT_FLOOR")?default(0)?number>
<img src="${_resPath}/img/hottopic.gif" alt="热门" title="热门">
</#if>
<span class="number" title="回复数/浏览数">(${topic.post_replynum?default("0")}/${topic.post_viewnum?default("0")})</span>
<#include "topiclist_pagination.ftl">
</div>
</td>
</tr>
<tr class="content">
<#if topic_index == (userTagTopics.size() - 1)>
<td class="td4">
<#else>
<td class="td2">
</#if>
<div class="authorInfo">
<span class="time">${_DateUtil.miniHappenedTime(_EFUser,topic.post_createtime?number)}</span>
<span class="number">at</span>
<#comment> 获取论坛信息 </#comment>
<#assign forumInfo = _ForumUtil.getForumInfo(topic.forum_id)/>
<a href="${_UrlUtil.encodeURL("/"+_TopicUtil.getTopicURL(forumInfo.forum_id))}" target="_blank">${forumInfo.forum_name?default("")}</a>
</div>
标签:
<#list topic.post_tags as tag>
<#if !tag.isEmpty()>
<#if tag.tag_id == tag_id>
<a href="${_UrlUtil.encodeURL("/blog.do?_fn=TagTopicList&tag_id="+tag.tag_id+"&tag_name="+tag.tag_name?url+"&user_id="+blogUser.id)}" class="lightColor" target="_blank">${tag.tag_name?html}</a>
<#else>
<a href="${_UrlUtil.encodeURL("/blog.do?_fn=TagTopicList&tag_id="+tag.tag_id+"&tag_name="+tag.tag_name?url+"&user_id="+blogUser.id)}" class="commonColor" target="_blank">${tag.tag_name?html}</a>
</#if>
</#if>
</#list>
</td>
</tr>
</#list>
<#else>
<#assign noDataInfo = "没有符合条件的关联主题"/>
<#assign isTable = true/>
<#assign colspanNum = 1/>
<#include "nodatainfo_inc.ftl"/>
</#if>
</table>
</div><#comment> end userTags </#comment>
<div id="pageNavigationDiv">
<#assign pagination=Context["PAGE_USER_TAG_TOPIC_LIST"]?default(_EmptyObject.pagination()) />
<@html.doPagination pagination=pagination pageSizeConfig="topPageSizeMenu,20,40,80"/>
</div>
</div><#comment> end commonRight </#comment>
</div><#comment> end content </#comment>
</form>
<#include "footer.ftl"/>
</div><#comment>end wrap </#comment>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -