⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 latestpostlist.jsp

📁 LyBBS基于Struts1.3/Ajax的架构
💻 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; COLOR: #282828
}
.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
}
</style>
<SCRIPT language="JavaScript">
function doDeletePost(id){
  if(confirm('确定要删除此文章吗?'))	{
    document.myform.postID.value=id;
    document.myform.action="blog_deleteLatestPost.do";
    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=3 cellspacing=1 border=0 align=center>
 <tr>
  <td height="30"><b><a href="blog_index.do"><lybbs:blog key="blogName"/></a> -- 博客文章列表</b></td>
   <td>&nbsp;</td>
 </tr>
 <tr>
  <td height="1" valign="bottom" background="lyblog/images/line_01.gif" colspan=2></td>
 </tr>
 <tr>
  <td height="6" colspan=2></td>
 </tr>
</table>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center >
    <tr>
     <td class=catStyle valign=middle align=center colspan=4><b>博客文章列表</b></td>
    </tr>
    <tr>
     <td bgcolor="#F5F5FA" width="20%">发表人</td>
     <td bgcolor="#F5F5FA">标题</td>
     <td bgcolor="#F5F5FA" width="20%" align=center>发表时间</td>
     <td bgcolor="#F5F5FA" width=5%><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>&nbsp;</td>
    </tr>
    </logic:iterate>
    <tr>
     <td bgcolor="#F5F5FA" colspan=4><bean:write name="pageUtils" property="pageInfo" filter="false" scope="request"/></td>
    </tr>
</table>
<lybbs:web key="foot"/>
<div style="display:none">
<form name="myform" method="post">
<input type="hidden" name="postID" value="">
<input type=hidden name="sessionToken" value="<%=StringUtils.getSessionToken(request)%>">
</form>
</div>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -