📄 default.jsp
字号:
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../common/security.jsp" %>
<%@ include file="../../common/loginAccount.jsp" %>
<logic:present name="loginAccount" >
<logic:equal name="loginAccount" property="username" value='<%=request.getParameter("userId") %>'>
<% request.setAttribute("isOwner", "true"); %>
</logic:equal>
</logic:present>
<% String constantsDomain = "jdon.com"; %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><bean:write name="accountProfileForm" property="account.username"/>的博客</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link href="<html:rewrite page="/account/cp/themes/default/style/blog.css"/>" rel=stylesheet type=text/css />
<%@ include file="../../common/headerBody.jsp" %>
</head>
<body >
<%@ include file="../loginAJAX.jsp" %>
<div class="topbar">
<div class="topbar_inner">
<div class="topbar_inner_left"><a href="<html:rewrite page="/"/>" target="_blank"><html:img page="/images/jdonsmall.gif" border="0" width="120" height="35" alt="jdon.com" /></a></div>
<div class="topbar_inner_right">
<logic:present name="principal" >
欢迎<bean:write name="principal" /> |
<a href="javascript:openPopUpWindow('注册资料修改','<%=request.getContextPath()%>/account/protected/editAccountForm.shtml?action=edit&username=xx')"> 注册资料修改 </a> |
<html:link page="/jasslogin?logout"> 退出 </html:link>
</logic:present>
<logic:notPresent name="principal" >
<a href="javascript:void(0);" onclick='loginW();'>登录</a> | <html:link page="/account/newAccountForm.shtml">注册</html:link>
</logic:notPresent>
</div>
</div>
</div>
<div class="headbar">
<div class="headbar_list1"><bean:write name="accountProfileForm" property="account.username"/></div>
<div class="headbar_list2">永久域名 <a href="http://<bean:write name="accountProfileForm" property="account.username"/>.<%=constantsDomain%>">http://<bean:write name="accountProfileForm" property="account.username"/>.<%=constantsDomain%></a></div>
</div>
<div class="menubar">
<div class="menubar_left">
<ul class="menuitem">
<li> </li>
<li>博客空间</li>
<li> </li>
</ul>
</div>
<html:form action="/query/searchAction.shtml" method="post" styleId="searchform" >
<div class="menubar_right">
<input name="count" type="hidden" value="1"/>
<input name="userId" type="hidden" value="<bean:write name="accountProfileForm" property="account.userId"/>"/>
<input name="query" value="请输入搜索关键字" type="text" style="width:140px;" class="inputstyle" onfocus="if (searchform.query.value=='请输入搜索关键字'){searchform.query.value=''}"/>
<img src="<html:rewrite page="/account/cp/themes/default/images/search.gif" />" align="absmiddle" style="cursor:pointer" onClick="if((searchform.query.value=='') || (searchform.query.value=='请输入搜索关键字')){alert('请输入搜索关键字!');searchform.query.focus();}else{searchform.submit();}"></div>
</html:form>
</div>
<div class="secondbar"></div>
<div class="mainarea">
<div class="mainarea_left">
<div class="box_mode_1">
<div class="title">
<div class="title_left">博主</div>
<div class="title_right"></div>
</div>
<div class="content">
<div class="b_photo"><img src="<html:rewrite page="/account/cp/themes/default/images/nouserface_1.gif"/>" width="85" height="85" border="0" ></div>
<div class="b_name"><span class='Users ajax_userId=<bean:write name="accountProfileForm" property="account.userId"/>' ><bean:write name="accountProfileForm" property="account.username"/></span></div>
<div class="b_op">
<logic:notPresent name="isOwner" >
<a href="javascript:void(0);" onclick="openShortmessageWindow('发消息','<html:rewrite page="/account/protected/shortmessageAction.shtml" paramId="messageTo" paramName="accountProfileForm" paramProperty="account.username" />');"
>发消息</a>
</logic:notPresent>
<logic:present name="isOwner" >
<a href="javascript:openPopUpWindow('写消息','<%=request.getContextPath()%>/account/protected/shortmessageAction.shtml')"
tabindex="1">写信息</a>
<a href="javascript:openPopUpWindow('收件箱','<%=request.getContextPath()%>/account/protected/receiveListAction.shtml?count=10')"
tabindex="2">收件箱</a>
<a href="javascript:openPopUpWindow('发信箱','<%=request.getContextPath()%>/account/protected/sendListAction.shtml?count=10')"
tabindex="3">发送箱</a>
<a href="javascript:openPopUpWindow('草稿箱','<%=request.getContextPath()%>/account/protected/draftListAction.shtml?count=10')"
tabindex="4">草稿箱</a>
</logic:present>
</div>
</div>
</div>
<div class="box_mode_1">
<div class="title">
<div class="title_left">个人资料</div>
<div class="title_right">
<logic:present name="isOwner" >
<a href="javascript:void(0);" onclick="openPopUpWindow('编辑个人公开资料','<html:rewrite page="/account/protected/accountProfileForm.shtml?action=edit" paramId="userId" paramName="accountProfileForm" paramProperty="account.userId" />')">[编辑]</a>
</logic:present>
</div>
</div>
<div class="content">
<div class="list_div">
<logic:iterate id="property" name="accountProfileForm" property="propertys" indexId="i">
<ul><li>
<bean:write name="property" property="name" />:
<bean:write name="property" property="value" />
</li></ul>
</logic:iterate>
</div>
</div>
</div>
<div class="box_mode_1">
<div class="title">
<div class="title_left">最新评论</div>
<div class="title_right"></div>
</div>
<div class="content">
</div>
</div>
<div class="box_mode_1">
<div class="title">
<div class="title_left">友情链接</div>
<div class="title_right"></div>
</div>
<div class="content">
</div>
</div>
</div>
<div class="mainarea_right">
<div class="box_mode_2">
<div class="title">
<div class="title_left">博文</div>
<div class="title_right"> <a href="<%=request.getContextPath()%>/forum/post.jsp">
<html:img page="/images/newtopic.gif" width="113" height="20" border="0" alt="发表新帖子"/></a></div>
</div>
<div class="content">
<div class="b_content_title2">
<div id=content>正在读取,请等待...</div>
</div>
<div class="b_content_line"></div>
</div>
</div>
<div class="box_mode_2">
<div class="title">
<div class="title_left">回复</div>
</div>
<div class="content">
<div class="b_content_title2">
<div id=content_reply>正在读取,请等待...</div>
</div>
<div class="b_content_line"></div>
</div>
</div>
</div>
</div>
<div class="foot">
<%@include file="../../common/IncludeBottomBody.jsp"%>
</div>
<logic:present name="principal" >
<%@include file="../../shortmessage/newmessageNotify.jsp"%>
</logic:present>
<script>
function openShortmessageWindow(name, url){
if (!isLogin){//login defined in .common/security.jsp
Dialog.alert("请先登陆",
{windowParameters: {className: "mac_os_x", width:250, height:200}, okLabel: " 确定 "});
return false;
}
openPopUpWindow(name, url);
}
TooltipManager.init('Users',
{url: '<html:rewrite page="/account/accountProfile.shtml?winwidth=250" />',
options: {method: 'get'}},
{className:"mac_os_x", width:260});
function loadContent(){
var pars = "noheaderfooter=1&userID=<bean:write name="accountProfileForm" property="account.userId"/>" ;
new Ajax.Updater('content', '<%=request.getContextPath()%>/query/blog/userThreadBlog.shtml', { method: 'get', parameters: pars });
}
function loadcontent_reply(){
var pars = "noheaderfooter=1&userID=<bean:write name="accountProfileForm" property="account.userId"/>" ;
new Ajax.Updater('content_reply', '<%=request.getContextPath()%>/query/blog/userMessageReplyBlog.shtml', { method: 'get', parameters: pars });
}
loadContent();
loadcontent_reply();
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -