📄 frontleft.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<%@ page import="java.util.List" %>
<%@page import="com.yxq.valuebean.MasterBean"%><%@page import="com.yxq.valuebean.WordBean"%>
<%@page import="com.yxq.valuebean.ArticleBean"%>
<%@page import="com.yxq.valuebean.FriendBean"%>
<html> <head> <title>博客-侧栏</title> </head><body>
<center> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="29"><td background="images/left_T.jpg" style="text-indent:45;padding-top:8"><b><font color="white">博主信息</font></b></td></tr>
<tr height="40">
<td background="images/left_M.jpg" style="text-indent:30">
博主姓名:<%=((MasterBean)session.getAttribute("master")).getMasterName() %>
</td>
</tr>
<tr height="40">
<td background="images/left_M.jpg" style="text-indent:30">博主性别:<%=((MasterBean)session.getAttribute("master")).getMasterSex()%></td>
</tr>
<tr height="40">
<td background="images/left_M.jpg" style="text-indent:30">QQ号码:<%=((MasterBean)session.getAttribute("master")).getMasterOicq()%></td>
</tr>
<tr height="16"><td background="images/left_E.jpg" bgcolror="";></td></tr>
</table>
</td>
</tr>
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="29"><td background="images/left_T.jpg" style="text-indent:45;padding-top:8"><b><font color="white">最新留言</font></b></td></tr>
<%
List wordlist=(List)session.getAttribute("wordList");
if(wordlist==null||wordlist.size()==0)
out.print("<tr height='100'><td align='center' background='images/left_M.jpg'>没有留言可显示!</td></tr>");
else{
int i=0;
while(i<wordlist.size()){
WordBean wordSingle=(WordBean)wordlist.get(i);
%>
<tr height="25" valign="bottom">
<td style="text-indent:25" background="images/left_M.jpg">
<a href="WordServlet?action=select"><%=wordSingle.getWordTitle(15)%></a>
</td>
</tr>
<%
i++;
}
}
%>
<tr height="16"><td background="images/left_E.jpg"></td></tr>
</table>
</td>
</tr>
<tr>
<td valign="top">
<table width="100%" height="60" border="0" cellspacing="0" cellpadding="0">
<tr height="29"><td background="images/left_T.jpg" style="text-indent:45;padding-top:8"><b><font color="white">博主推荐</font></b></td></tr>
<%
List artTJlist=(List)session.getAttribute("artTJList");
if(artTJlist==null||artTJlist.size()==0)
out.print("<tr height='100'><td align='center' background='images/left_M.jpg'>没有推荐文章可显示!</td></tr>");
else{
int i=0;
while(i<artTJlist.size()){
ArticleBean articleSingle=(ArticleBean)artTJlist.get(i);
%>
<tr height="25" valign="bottom">
<td style="text-indent:25" background="images/left_M.jpg">
<a href="ArticleServlet?action=read&id=<%=articleSingle.getId()%>"><%=articleSingle.getTitle(15) %></a>
</td>
</tr>
<%
i++;
}
}
%>
<tr height="16"><td background="images/left_E.jpg"></td></tr>
</table>
</td>
</tr>
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="29"><td background="images/left_T.jpg" style="text-indent:45;padding-top:8"><b><font color="white">好友博客</font></b></td></tr>
<%
List friendlist=(List)session.getAttribute("friendList");
if(artTJlist==null||friendlist.size()==0)
out.print("<tr height='100'><td align='center' background='images/left_M.jpg'>博主目前还未添加任何好友!</td></tr>");
else{
int i=0;
while(i<friendlist.size()){
FriendBean friendSingle=(FriendBean)friendlist.get(i);
%>
<tr height="25" valign="bottom">
<td style="text-indent:25" background="images/left_M.jpg">
<a href="<%=friendSingle.getBlog() %>"><%=friendSingle.getName() %></a>
</td>
</tr>
<%
i++;
}
}
%>
<tr height="16"><td background="images/left_E.jpg"></td></tr>
</table>
</td>
</tr>
<tr><td></td></tr>
</table>
</center> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -