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

📄 search_normal.jsp

📁 基于MVC模式的文章采集检索系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=gbk" pageEncoding="gbk" %>
<%@ page  import="java.util.*" %>
<%@ page import="com.liubin.model.*"%>

<% String path=request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>企业竞争情报检索系统</title>
<link href="<%=path%>/styles/public.css" rel="stylesheet" type="text/css" />
</head>


<%
String key=(String)request.getAttribute("key");
System.out.println(key);
List<Article>list_article=null;

int pagenum=0;
int pagecount=0;

%>










<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="home_frame_head">
  <tr>
    <td><table height="50" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="<%=path%>/images/spaces.gif" width="30" height="1" /></td>
        <td valign="bottom"><span class="title_cn">企业竞争情报检索系统</span><br><span class="title_en">Enterprise Competitive Intelligence System</span></td>
      </tr>
    </table></td>
  </tr>
<table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="220" height="80" valign="top" class="home_frame_left">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr>
    <td height="41">&nbsp;</td>
    </tr>
  <tr>
    <td height="20" class="word_color2">&nbsp;&nbsp;设为首页</td>
  </tr>
</table></td>
    <td height="80" valign="top" class="home_frame_right"><table width="100%" border="0" cellspacing="1" cellpadding="0">
      <tr>
        <td height="41"><table border="0" cellspacing="8" cellpadding="0">
          <form id="form1" name="form1" method="post" action="<%=path%>/listArticleServlet">
            <tr>
              <td><img src="<%=path%>/images/images_04.gif" width="4" height="7" hspace="8" vspace="0" border="0" /><span class="word_color1">关键字:</span></td>
              <td><input name="key" type="text" class="form_input1"  <%if(key!=null){ %> value="<%=key %>" <%} %>       /></td>
              <td class="word_color1"></td>
              <td><input name="Submit" type="submit" class="form_button1" value="检&nbsp;索" /></td>
              <td class="word_color1"><u>高级检索</u></td>
            </tr>
        </table></td>
        <td align="right"><table border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td height="17"><img src="images/images_12.gif" width="13" height="13" hspace="0" vspace="0" border="0" /></td>
              <td valign="bottom" class="word_color3">帮助</td>
              <td><img src="<%=path%>/images/spaces.gif" width="13" height="13" hspace="0" vspace="0" border="0" /></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td height="20" colspan="2" align="right" class="word_color2"><%if (request.getAttribute("count")!=null){ %> 查出的文章总条数 <%=(Integer)(request.getAttribute("count"))%><%} %>条&nbsp;&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
</table>






<%
		list_article=(List<Article>)request.getAttribute("list_article");
		
		if(list_article!=null)
		{
		
		pagenum=(Integer)request.getAttribute("pagenum");
		pagecount=(Integer)request.getAttribute("pagecount");
		
		Article article=null;
		if(list_article.size()==0){
		out.print("未找到符合条件的文章");
		}
		
		
		for(int i=0;i<list_article.size();i++)
		{
		article=list_article.get(i);
%>




<TABLE border=0 cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD class="search_result_frame"><A href="<%=path%>/showArticleServlet?id=<%=article.getId() %>&subitem_id=<%=article.getSubitem_id()%>&pagenum=<%=pagenum %>&key=<%=key %>"><FONT 
      size=3> <%=article.getTitle() %></FONT></A><BR/>
      <%=article.getDigest()%><BR/>
      <FONT color=#008000>来源时间<%=article.getOrigin() %>/<%=article.getPub_date()%></FONT> <BR/>
    </TD></TR></TBODY></TABLE>
    
    <%} %>
    
    <table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
 <TR>
 <td><FONT size=1>
 <% if (list_article.size()>0)
 { %>
     第<%=pagenum%>页&nbsp; 
   <%if(pagenum>1){%><a href="<%=path %>/listArticleServlet?pagenum=1&key=<%=key%> "> 首页</a> <%} else {%>首页<%}%> &nbsp;
   <%if(pagenum>1){%><a href="<%=path %>/listArticleServlet?pagenum=<%=pagenum-1 %>&key=<%=key%> " > 上一页</a> <%} else {%>上一页<%}%> &nbsp;
   <%if(pagenum<pagecount){%><a href="<%=path %>/listArticleServlet?pagenum=<%=pagenum+1 %>&key=<%=key%> " > 下一页</a> <%} else {%>下一页<%}%> &nbsp;
   <%if(pagenum<pagecount){%><a href="<%=path %>/listArticleServlet?pagenum=<%=pagecount %>&key=<%=key%> " > 尾页</a> <%} else {%>尾页<%}%> &nbsp;
      </FONT></TD></TR>
</table>
<%}}%>





<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="20" class="word_copyright2" align="right">北京科瑞尔思科技有限公司&nbsp;版权所有<img src="images/spaces.gif" width="30" height="1" /></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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