📄 blogindex.ftl
字号:
<#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>
<body><!-- blogindex.ftl -->
<div id="wrap">
<#include "header.ftl"/>
<div id="content">
<#assign Blog_Top = _AdsUtil.getAds("Blog_Top",_tplStyle)>
<#if Blog_Top?? && Blog_Top!="">
<div class="bannerAD" style="margin-bottom:5px;">
${Blog_Top}
</div>
</#if>
<#if _EFUser.id = user_id>
<#include "blognav_inc.ftl"/>
</#if>
<#include "blogleft_inc.ftl"/>
<div id="blogRight">
<#if canVisitFavor?default(false)>
<#assign blogUserSpace = _EFUserUtil.getEFUserSpace(blogUser.id)/>
<#if blogUserSpace?? && blogUserSpace.pageItems.size()>0>
<div id="blogFavor" class="commonBox">
<table class="commonTable">
<tr class="hd1">
<td>
﹤${blogUser.nickName}﹥的收藏夹
</td>
<td align="right"><img src="${_resPath}/img/three_dot_yes.gif" alt="" style="cursor:pointer;" onclick="expandContent('blogFavorCon')"></td>
</tr>
</table>
<div class="clean"></div>
<div id="blogFavorCon" class="blogFavor">
<div class="clean"></div>
<#include "userindex.ftl"/>
<div class="clean"></div>
</div><#comment> end blogFavorCon </#comment>
<div class="clean"></div>
</div><#comment> end blogFavor </#comment>
<div class="clean"></div>
</#if>
</#if>
<div id="blogAttachs" class="commonBox">
<table class="commonTable">
<tr class="hd1">
<td>
﹤${blogUser.nickName}﹥的图库 <a href="javascript:submit('attachsearch');" title="查看更多">[更多]</a>
</td>
<td align="right"><img src="${_resPath}/img/three_dot_yes.gif" alt="" style="cursor:pointer;" onclick="expandContent('blogAttachsContent')"></td>
</tr>
<tbody id="blogAttachsContent">
<tr class="content">
<td colspan="2" class="td1">
<#comment>获取图片</#comment>
<div id="attachMarquee" class="attachMarquee" style="height:132px;">
<div class="container">
<#assign picAttachs = _EFUserUtil.getUserNewAttach(user_id,21)>
<#list picAttachs as attach>
<div class="resourcePic" style="z-Index: ${100-attach_index}">
<#comment>获取每个附件图片路径</#comment>
<#assign picLoc = _AttachUtil.getResourceFileName(attach)/>
<#assign postURL = _PostUtil.getTopicURL(attach.attach_rootpostid?default("-1"))>
<a href="${_UrlUtil.encodeURL("/"+postURL)}" target="_blank">
<img src="${_contextPath}/${picLoc}" class="resourcePic" title="《${attach.post_title?default("")?html}》<#if attach.attach_title??> - ${attach.attach_title}</#if>"/></a>
</div>
</#list>
</div>
<SCRIPT LANGUAGE="JavaScript">
<!--
var attachMarquee = new Marquee("attachMarquee");
attachMarquee.direct = "top";
attachMarquee.step = 2;
attachMarquee.interVal = 5;
attachMarquee.delayTime=3000;
attachMarquee.start();
//-->
</SCRIPT>
</div>
</td>
</tr>
</tbody>
</table>
</div><#comment> blogAttachs </#comment>
<form id="attachsearch" method="post" action="${_UrlUtil.encodeURL("/search.do?_fn=AttachmentSearch#_attachSearchList")}">
<input type="hidden" name="_pNo" id="_pNo" value="1">
<input type="hidden" name="searchFlag" id="searchFlag" value="0">
<input type="hidden" id="keyword" name="keyword" value="${blogUser.nickName}">
<input type="hidden" name="search_range" value="author">
<input type="hidden" name="attach_type" value="${_Constants.ATTACHMENT_TYPE_PIC}">
</form>
<#assign isIndex = true/>
<#include "userfavor_inc.ftl"/>
</div><#comment> end blogRight </#comment>
<#assign Blog_Bottom = _AdsUtil.getAds("Blog_Bottom",_tplStyle)>
<#if Blog_Bottom?? && Blog_Bottom!="">
<div class="bannerAD" style="margin-top:5px;">
${Blog_Bottom}
</div>
</#if>
</div><#comment>end content</#comment>
<#include "footer.ftl"/>
</div><#comment>end wrap</#comment>
</body>
<SCRIPT LANGUAGE="JavaScript">
<!--
var myFriends = new Marquee("myFriends");
myFriends.direct = "top";
myFriends.step = 1;
myFriends.interVal = 10;
myFriends.delayTime=5000;
myFriends.start();
//-->
</SCRIPT>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -