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

📄 homepage.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"/>--<bean:write name="blogBean" property="title"/></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 copy(){
  window.clipboardData.setData("Text", '<bean:write name="blogBean" property="url" scope="request"/>');
  alert("地址已经保存到剪贴板");
}
function addFavorite(userID,userName,url,title,content) {
  if(url.length>0) {
    buffalo.remoteCall("commonService.addFavorite",[userID,userName,url,title,content], function(reply) {
      if(reply.getResult()) {
        alert("已经成功加入收藏!");
      }
    });
  }
}
function addFriend(friendName){
  document.friendform.action="bbs_friend.do?action=add";
  document.friendform.friendName.value=friendName;
  document.friendform.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="<bean:write name="blogBean" property="bgpic" scope="request"/>">
   <TABLE width=100% cellSpacing=0 cellPadding=0 border=0>
    <TBODY>
    <TR>
     <TD height=94>
      <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
        <TBODY>
        <TR>
          <TD align=right width=170>&nbsp;</TD>
          <TD>
            <table class="titletable" height=35 cellSpacing=1 cellPadding=5 bgColor=#000000 border=0>
            <tr>
            <td class="titletd"><bean:write name="blogBean" property="title" scope="request"/></td>
            </tr>
            </table>
          </TD>
        </TR>
        </TBODY>
      </TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
        <TBODY>
        <TR>
          <TD vAlign=bottom align=right width=520 height=31>
            <table class="titletable" height=18 cellSpacing=1 cellPadding=5 bgColor=#000000 border=0>
            <tr>
            <td>
              <A href="<bean:write name="blogBean" property="url" scope="request"/>" target=_blank><bean:write name="blogBean" property="url" scope="request"/></A>
            </td>
            </tr>
            </table>
          </TD>
          <TD vAlign=bottom width=20>&nbsp;</TD>
          <TD vAlign=bottom class="blogtitle">
            <table class="titletable" height=18 cellSpacing=1 cellPadding=5 bgColor=#000000 border=0>
            <tr>
            <td>
              <LABEL style="CURSOR: hand" onclick=copy()>复制</LABEL> 
            </td>
            </tr>
            </table>
          </TD>
        </TR>
        </TBODY>
      </TABLE>
     </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=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center >
  <tr>
   <td class=catStyle valign=middle style="FONT-WEIGHT: bold; FONT-SIZE: 13px; height: 25px;" width=200><a href="blog_index.do">博客频道首页</a></td>
   <td class=catStyle align=right valign=middle style="FONT-WEIGHT: bold; FONT-SIZE: 12px; height: 25px;" ><logic:notEqual name="userBean" property="blogID" value="0"><a href="blog_admin.do">管理博客</a> | <a href="blog_postList.do">我的文章</a> | <a href="blog_post.do">发表文章</a></logic:notEqual>&nbsp;&nbsp;</td>
  </tr>
  <tr>
   <td valign=top class=forumColorTwo>
     <lybbs:blog key="userInfo"/><br><br>
     <table width=100% cellpadding=4 cellspacing=0 border=0>
      <tr>
       <td class="catStyle">&nbsp;<img src="lyblog/images/dot2.gif" border="0" align="absmiddle">&nbsp;<b>我的分类</b></td>
      </tr>
      <tr>
       <td bgcolor=#FFFFFF>
         &nbsp;<img src="lyblog/images/dot1.gif" border="0" align="absmiddle">&nbsp;<a href=blog_index.do?domain=<bean:write name="blogBean" property="domain"/>>所有分类</a><br>
         <logic:iterate id="element" name="catalogListBean" scope="request">
         &nbsp;<img src="lyblog/images/dot1.gif" border="0" align="absmiddle">&nbsp;<a href=blog_index.do?domain=<bean:write name="blogBean" property="domain"/>&catalogID=<bean:write name="element" property="catalogID"/>><bean:write name="element" property="title"/></a><br>
         </logic:iterate>
       </td>
      </tr>
     </table><br><br>
     <logic:present name="albumListBean" scope="request">
     <table width=100% cellpadding=4 cellspacing=0 border=0>
      <tr>
       <td class="catStyle">&nbsp;<img src="lyblog/images/dot2.gif" border="0" align="absmiddle">&nbsp;<b>我的相册</b></td>
      </tr>
      <tr>
       <td bgcolor=#FFFFFF>
         <logic:iterate id="element" indexId="index" name="albumListBean" scope="request">
         <%if(index.intValue()>4) break;%>
         &nbsp;<img src="lyblog/images/dot1.gif" border="0" align="absmiddle">&nbsp;<a href="blog_album.do?dirID=<bean:write name="element" property="albumDirID"/>"><bean:write name="element" property="dirName"/></a><br>
         </logic:iterate>
       </td>
      </tr>
     </table><br><br>
     </logic:present>
     <table width=100% cellpadding=4 cellspacing=0 border=0>
      <tr>
       <td class="catStyle">&nbsp;<img src="lyblog/images/dot2.gif" border="0" align="absmiddle">&nbsp;<b>最新评论</b></td>
      </tr>
      <tr>
       <td bgcolor=#FFFFFF>
         <logic:iterate id="element" name="commentListBean" scope="request">
         &nbsp;<img src="lyblog/images/dot1.gif" border="0" align="absmiddle">&nbsp;<a href="blog_read.do?postID=<bean:write name="element" property="postID"/>#listComment"><lybbs:blog key="commentSummary2" name="element" property="content" scope="page"/></a><br>
         </logic:iterate>
       </td>
      </tr>
     </table><br><br>
     <table width=100% cellpadding=4 cellspacing=0 border=0>
      <tr>
       <td class="catStyle">&nbsp;<img src="lyblog/images/dot2.gif" border="0" align="absmiddle">&nbsp;<b>我的订阅</b></td>
      </tr>
      <tr>
       <td bgcolor=#FFFFFF align=center>
        <a href="servlet/lybbs_rss?type=rss_1.0&blogID=<bean:write name="blogBean" property="blogID"/>" target="_blank"><img src="lybbs/images/rss1.gif" border="0" align="absmiddle"></a>
        &nbsp;&nbsp;
        <a href="servlet/lybbs_rss?blogID=<bean:write name="blogBean" property="blogID"/>" target="_blank"><img src="lybbs/images/rss2.gif" border="0" align="absmiddle"></a>
       </td>
      </tr>
     </table>
   </td>
   <td class=forumColorTwo valign=top>
 
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
       <tr>
	    <td height="30"><b>博客文章列表</b></td>
	    <td align="right">&nbsp;</td>
       </tr>
       <tr>
	    <td height="1" valign="bottom" background="lyblog/images/line_01.gif" colspan=2></td>
       </tr>
      </table>
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
       <tr>
        <td height="5"></td>
       </tr>
      </table>
      <logic:iterate id="element" name="postListBean" indexId="index" scope="request">
      <table width="98%" border="1" align="center" cellpadding="0" cellspacing="1" borderColorLight=#C8C8DD borderColorDark=#FFFFFF>
       <tr>
        <td bgcolor="#F5F5FA" height=30 style="FONT-SIZE: 15px"><img src="lyblog/images/icon_title.gif" border=0> <a href="blog_read.do?postID=<bean:write name="element" property="postID"/>"><bean:write name="element" property="title"/></a></td>
        <td align="right" bgcolor="#F5F5FA" valign=middle><bean:write name="element" property="postAt"/>&nbsp;&nbsp;</td>
       </tr>
       <tr>
        <td bgcolor="#FFFFFF" colspan=2 class=topicContent height=50>
         <lybbs:blog key="content" name="element" property="summary" scope="page"/>
        </td>
       </tr>
       <tr>
        <td bgcolor="#FFFFFF">
          <img src="lyblog/images/icon_read.gif" border=0><a href="blog_read.do?postID=<bean:write name="element" property="postID"/>">查看全文</a> | <img src="lyblog/images/icon_favorite.gif" border=0> <a href="javascript:addFavorite(<bean:write name="element" property="userID"/>,'<bean:write name="element" property="userName"/>','blog_read.do?postID=<bean:write name="element" property="postID"/>','<bean:write name="element" property="title"/>','<bean:write name="element" property="title"/>');">收藏到收藏夹</a><logic:equal name="userBean" property="userMode" value="7" scope="session"> | <img src=lybbs/images/ip.gif border="0" align=absmiddle>&nbsp;<bean:write name="element" property="postIp"/></logic:equal>
        </td>
        <td bgcolor="#FFFFFF" align="right">
          人气(<bean:write name="element" property="clickNum"/>)&nbsp;评论(<bean:write name="element" property="commentNum"/>) | <img src="lyblog/images/icon_comment.gif" border="0"> <a href="blog_read.do?postID=<bean:write name="element" property="postID"/>#postComment">我要评论</a>&nbsp;&nbsp;
        </td>
       </tr>
      </table>
      <br>
      </logic:iterate>
      <table width="98%" border="1" align="center" cellpadding="0" cellspacing="1" borderColorLight=#C8C8DD borderColorDark=#FFFFFF>
       <tr>
        <td bgcolor="#F5F5FA" colspan=2><bean:write name="pageUtils" property="pageInfo" filter="false"/></td>
       </tr>
      </table>
   </td>
  </tr>
</table>
<lybbs:web key="foot"/>
<span style="display:none">
<form name="friendform" method="post" target=_blank>
<input type=hidden name="friendName" value="">
</form>
</span>
</body>
</html:html>

⌨️ 快捷键说明

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