📄 index.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="../../lybbs/jsp/common/include/taglibs.jsp" %>
<html:html>
<head>
<title><lybbs:blog key="blogName"/> -- 博客频道首页</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="../../lybbs/jsp/common/include/header.jsp" %>
<style type="text/css">
.titletd {
FONT-WEIGHT: bold; FONT-SIZE: 16px;
}
.titletable {
BORDER-RIGHT: #333333 1px dashed; BORDER-TOP: #333333 1px dashed; FILTER: Alpha(Opacity=65); BORDER-LEFT: #333333 1px dashed; BORDER-BOTTOM: #333333 1px dashed; BACKGROUND-COLOR: #ffffff
}
.borderStyle {
BACKGROUND-COLOR: #cccccc
}
</style>
<SCRIPT language="JavaScript">
function doDeleteBlog(id){
if(confirm('确定要删除此博客吗?')) {
document.myform.action="blog_deleteLatestBlog.do?blogID="+id;
document.myform.submit();
}
}
function doDeletePost(id){
if(confirm('确定要删除此文章吗?')) {
document.myform.action="blog_deleteLatestPost.do?postID="+id;
document.myform.submit();
}
}
function doDeleteComment(id){
if(confirm('确定要删除此评论吗?')) {
document.myform.action="blog_deleteLatestComment.do?commentID="+id;
document.myform.submit();
}
}
function doDeleteAlbumDirectory(id){
if(confirm('确定要删除此文件夹吗?')) {
document.myform.action="blog_albumDirectory.do?action=delete&albumDirID="+id;
document.myform.submit();
}
}
</SCRIPT>
</head>
<body topmargin=0 leftmargin=0>
<TABLE class=tableCommonStyle cellSpacing=1 cellPadding=3 border=0 align=center>
<TR>
<TD class=noBgStyle id=blogTitleBg background="lyblog/images/title_bg.jpg">
<TABLE width=100% cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD height=94>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<tr>
<td class=menuStyle height=22>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=left>
<lybbs:typeUserHeaderTag forumID="0"/>
</td>
<td align=right>
<lybbs:web key="returnHomeLink"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table class=tableNoBgStyle cellpadding=0 cellspacing=0 border=0 align=center>
<tr>
<td width=200 align=center valign=top>
<table cellpadding=3 cellspacing=1 border=0 width=100% class="borderStyle">
<tr>
<td class=catStyle colspan=2 style="FONT-WEIGHT: bold; FONT-SIZE: 13px; height: 25px;"> <img src="lyblog/images/dot2.gif" border="0" align="absmiddle"> 用户信息</td>
</tr>
<logic:equal name="userBean" property="userMode" value="0" scope="session">
<FORM name=login method=post action=bbs_loginSubmit.do>
<input type=hidden name="forward" value="blog_index.do">
<!--login start-->
<tr>
<td class=forumColorTwo valign=middle colspan=2> <img src="lyblog/images/dot1.gif" border="0" align="absmiddle"> <b>请登录</b></td>
</tr>
<tr>
<td class=forumColorTwo valign=middle><bean:message key="common.lybbs.username"/>:</td>
<td class=forumColorTwo valign=middle><input type=text name='userName' size=12 maxlength=16></td>
</tr>
<tr>
<td class=forumColorTwo valign=middle><bean:message key="common.lybbs.password"/>:</td>
<td class=forumColorTwo valign=middle><input type=password name='password' size=12 maxlength=20></td>
</tr>
<%
if(net.lybbs.util.PropertiesCache.getInstance().isValidateCodeEnabled()) {
%>
<tr>
<td class=forumColorTwo valign=middle><bean:message key="common.lybbs.validatecode"/>:</td>
<td class=forumColorTwo valign=middle><input type=text name='validateCode' size=4 maxlength=4><lybbs:web key="validateCode"/></td>
</tr>
<%
}
%>
<tr>
<td class=forumColorTwo valign=middle><bean:message key="common.lybbs.savedate"/>:</td>
<td class=forumColorTwo valign=middle>
<select name=cookieDate tabindex=4>
<option value=0 selected><bean:message key="common.lybbs.savedate.dontsave"/></option>
<option value=1><bean:message key="common.lybbs.savedate.oneday"/></option>
<option value=2><bean:message key="common.lybbs.savedate.onemonth"/></option>
<option value=3><bean:message key="common.lybbs.savedate.forever"/></option>
</select>
</td>
</tr>
<tr>
<td class=forumColorTwo align=center valign=middle colspan=2><input type=submit name='submit' value='<bean:message key="common.lybbs.login"/>'></td>
</tr>
<!--login end-->
</form>
</logic:equal>
<logic:notEqual name="userBean" property="userMode" value="0" scope="session">
<lybbs:blog key="userInfoOfBlog"/>
<logic:equal name="userBean" property="blogID" value="0" scope="session">
<tr>
<td class=forumColorTwo colspan=2><li><b><a href="blog_open.do">开通我的博客</a></li></b></td>
</tr>
</logic:equal>
<logic:notEqual name="userBean" property="blogID" value="0" scope="session">
<tr>
<td class=forumColorTwo colspan=2><a href="blog_index.do?blogID=<bean:write name="userBean" property="blogID" scope="session"/>">[个人博客]</a> <%if(net.lyblog.blog.cache.BlogConfigCache.getInstance().isAlbumEnabled()){%><a href="blog_album.do">[个人相册]</a> <%}%><a href="blog_admin.do">[博客管理]</a></td>
</tr>
</logic:notEqual>
</logic:notEqual>
</table>
</td>
<td width=5></td>
<td valign=top>
<table width=100% cellpadding=0 cellspacing=1 border=0 class="borderStyle">
<tr>
<td class=catStyle valign=middle style="FONT-WEIGHT: bold; FONT-SIZE: 13px; height: 25px;"> <img src="lyblog/images/dot2.gif" border="0" align="absmiddle"> 最新博客用户</td>
</tr>
<tr>
<td>
<table width=100% cellpadding=3 cellspacing=0 border=0>
<tr>
<td bgcolor="#F5F5FA" width="116"> </td>
<td bgcolor="#F5F5FA" width="13%">用户名</td>
<td bgcolor="#F5F5FA" width="24%">标题</td>
<td bgcolor="#F5F5FA">地址</td>
<td bgcolor="#F5F5FA" width="7%"><a href="blog_index.do?action=blog&pages=1">更多...</a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="lyblog/images/blog2_03.gif" border="0"></td>
<td colspan="4" valign="top" bgcolor="#FFFFFF">
<table width=100% height=100% cellpadding=3 cellspacing=0 border=0>
<logic:iterate id="element" indexId="index" name="latestUserListBean" scope="request">
<%if(index.intValue()>6) break;%>
<tr>
<td bgcolor="#FFFFFF" width="14%"><a href="bbs_userShow.do?userID=<bean:write name="element" property="userID"/>"><bean:write name="element" property="domain"/></a></td>
<td bgcolor="#FFFFFF" width="30%">【<bean:write name="element" property="title"/>】</td>
<td bgcolor="#FFFFFF"><a href="<bean:write name="element" property="url"/>"><bean:write name="element" property="url"/></a></td>
<td bgcolor="#FFFFFF" width="7%"><logic:equal name="userBean" property="userMode" value="7" scope="session"><a href="javascript:doDeleteBlog('<bean:write name="element" property="blogID"/>')">删除</a></logic:equal> </td>
</tr>
</logic:iterate>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table class=tableNoBgStyle cellpadding=0 cellspacing=0 border=0 align=center>
<tr>
<td align=center valign=top>
<table width=100% cellpadding=3 cellspacing=1 border=0 class="borderStyle">
<tr>
<td class=catStyle valign=middle colspan=4 style="FONT-WEIGHT: bold; FONT-SIZE: 13px; height: 25px;"> <img src="lyblog/images/dot2.gif" border="0" align="absmiddle"> 最新博客文章</td>
</tr>
<tr>
<td bgcolor="#F5F5FA" width="16%">发表人</td>
<td bgcolor="#F5F5FA">标题</td>
<td bgcolor="#F5F5FA" width="22%" align=center>发表时间</td>
<td bgcolor="#F5F5FA" width=10%><a href="blog_index.do?action=post&pages=1">更多...</a></td>
</tr>
<logic:iterate id="element" name="latestPostListBean" scope="request">
<tr>
<td bgcolor="#FFFFFF"><a href="bbs_userShow.do?userID=<bean:write name="element" property="userID"/>"><bean:write name="element" property="userName"/></a></td>
<td bgcolor="#FFFFFF"><a href="blog_read.do?postID=<bean:write name="element" property="postID"/>"><bean:write name="element" property="title"/></a></td>
<td bgcolor="#FFFFFF" align=center><bean:write name="element" property="postAt"/></td>
<td bgcolor="#FFFFFF"><logic:equal name="userBean" property="userMode" value="7" scope="session"><a href="javascript:doDeletePost('<bean:write name="element" property="postID"/>')">删除</a></logic:equal> </td>
</tr>
</logic:iterate>
</table>
</td>
<td width=5></td>
<td valign=top width=400>
<table cellpadding=3 cellspacing=1 border=0 width=100% class="borderStyle">
<tr>
<td class=catStyle colspan=2 style="FONT-WEIGHT: bold; FONT-SIZE: 13px; height: 25px;"> <img src="lyblog/images/dot2.gif" border="0" align="absmiddle"> 热点文章</td>
</tr>
<tr>
<td bgcolor="#F5F5FA">标题</td>
<td bgcolor="#F5F5FA" width=80>发表人</td>
</tr>
<logic:iterate id="element" name="hotPostListBean" scope="request">
<tr>
<td bgcolor="#FFFFFF"><a href="blog_read.do?postID=<bean:write name="element" property="postID"/>"><bean:write name="element" property="title"/></a></td>
<td bgcolor="#FFFFFF"><a href="bbs_userShow.do?userID=<bean:write name="element" property="userID"/>"><bean:write name="element" property="userName"/></a></td>
</tr>
</logic:iterate>
</table>
</td>
</tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center >
<tr>
<td class=catStyle valign=middle colspan=5 style="FONT-WEIGHT: bold; FONT-SIZE: 13px; height: 25px;"> <img src="lyblog/images/dot2.gif" border="0" align="absmiddle"> 最新文章评论</td>
</tr>
<tr>
<td bgcolor="#F5F5FA" width="10%">发表人</td>
<td bgcolor="#F5F5FA" width="22%">文章标题</td>
<td bgcolor="#F5F5FA">评论内容</td>
<td bgcolor="#F5F5FA" width="13%" align=center>发表时间</td>
<td bgcolor="#F5F5FA" width=5%><a href="blog_index.do?action=comment&pages=1">更多...</a></td>
</tr>
<logic:iterate id="element" name="latestCommentListBean" scope="request">
<tr>
<td bgcolor="#FFFFFF"><logic:equal name="element" property="userID" value="0"><bean:write name="element" property="userName"/></logic:equal><logic:notEqual name="element" property="userID" value="0"><a href="bbs_userShow.do?userID=<bean:write name="element" property="userID"/>"><bean:write name="element" property="userName"/></a></logic:notEqual></td>
<td bgcolor="#FFFFFF"><a href="blog_read.do?postID=<bean:write name="element" property="postID"/>"><bean:write name="element" property="title"/></a></td>
<td bgcolor="#FFFFFF"><a href="blog_read.do?postID=<bean:write name="element" property="postID"/>#listComment"><lybbs:blog key="commentSummary" name="element" property="content" scope="page"/></a></td>
<td bgcolor="#FFFFFF" align=center><bean:write name="element" property="postAt"/></td>
<td bgcolor="#FFFFFF"><logic:equal name="userBean" property="userMode" value="7" scope="session"><a href="javascript:doDeleteComment('<bean:write name="element" property="commentID"/>')">删除</a></logic:equal> </td>
</tr>
</logic:iterate>
</table>
<br>
<logic:present name="latestAlbumDirectoryListBean" scope="request">
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center >
<tr>
<td class=catStyle valign=middle style="FONT-WEIGHT: bold; FONT-SIZE: 13px; height: 25px;"> <img src="lyblog/images/dot2.gif" border="0" align="absmiddle"> 最新博客相册</td>
<td class=catStyle align=right valign=middle style="FONT-WEIGHT: bold; FONT-SIZE: 12px; height: 25px;"><a href="blog_index.do?action=albumDirectory&pages=1">更多...</a></td>
</tr>
<tr>
<td bgcolor="#F5F5FA" width="100%" colspan=2>
<marquee scrollamount=5 scrolldelay=100 behavior="scroll" width=100% height=110 onmouseover='this.stop()' onmouseout='this.start()'>
<TABLE cellSpacing=0 cellPadding=0 border=0 bgcolor=#F5F5FA style='CURSOR: hand'>
<TR>
<logic:iterate id="element" name="latestAlbumDirectoryListBean" scope="request">
<TD width=142 align=center valign=middle>
<table cellSpacing=0 cellPadding=0 border=1 width=140 height=108 bgcolor=#FFFFFF style='table-layout:fixed'>
<tr>
<td align=center valign=middle>
<a href="blog_album.do?dirID=<bean:write name="element" property="albumDirID"/>"><IMG src="<bean:write name="element" property="dirImg"/>" border=0 onload='javascript:if(this.height>98)this.height=98;'></a>
</td>
</tr>
</table>
<bean:write name="element" property="dirName"/>
</TD>
</logic:iterate>
</TR>
</TABLE>
</marquee>
</td>
</tr>
<%--
<tr>
<td bgcolor="#F5F5FA" width="20%">建立人</td>
<td bgcolor="#F5F5FA" width="20%">目录名称</td>
<td bgcolor="#F5F5FA">描述</td>
<td bgcolor="#F5F5FA" width="5%" align=center>照片数</td>
<td bgcolor="#F5F5FA" width="15%" align=center>建立时间</td>
<td bgcolor="#F5F5FA" width=5%><a href="blog_index.do?action=albumDirectory&pages=1">更多...</a></td>
</tr>
<logic:iterate id="element" name="latestAlbumDirectoryListBean" scope="request">
<tr>
<td bgcolor="#FFFFFF"><a href="bbs_userShow.do?userID=<bean:write name="element" property="userID"/>"><bean:write name="element" property="userName"/></a></td>
<td bgcolor="#FFFFFF"><a href="blog_album.do?dirID=<bean:write name="element" property="albumDirID"/>"><bean:write name="element" property="dirName"/></a></td>
<td bgcolor="#FFFFFF"><bean:write name="element" property="dirDescription"/></td>
<td bgcolor="#FFFFFF" align=center><bean:write name="element" property="dirCount"/></td>
<td bgcolor="#FFFFFF" align=center><bean:write name="element" property="createAt"/></td>
<td bgcolor="#FFFFFF"><logic:equal name="userBean" property="userMode" value="7" scope="session"><a href="javascript:doDeleteAlbumDirectory('<bean:write name="element" property="albumDirID"/>')">删除</a></logic:equal> </td>
</tr>
</logic:iterate>
--%>
</table>
</logic:present>
<lybbs:web key="foot"/>
<div style="display:none">
<form name="myform" method="post">
<input type=hidden name="sessionToken" value="<%=StringUtils.getSessionToken(request)%>">
</form>
</div>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -