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

📄 showsearchresult.jsp

📁 应用struts建立的文章管理系统
💻 JSP
字号:
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page isELIgnored="false" %>
<%@ page import="com.tiandinet.StrutsArticle.FormBeans.*" %>
<%@ taglib uri="/struts-html" prefix="html" %>
<%@ taglib uri="/struts-bean" prefix="bean" %>
<%@ taglib uri="/struts-logic" prefix="logic" %>

<%-- Begin Set the Language --%>
<jsp:include page="/languageAction.do"/>
<%-- End Set the Language --%>


<jsp:useBean id="articleClasses" class="com.tiandinet.StrutsArticle.FunctionBeans.GetArticleClasses"/>

<!-- Struts 文章系统                                    -->
<!--                            2004年7月19日 发布     -->
<!--        天地网络(www.tiandinet.com) 版权所有     -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><bean:message key="SA.title"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<html:base/>
<script language="JavaScript" type="text/javascript">
<!--
  function confirmDelete()
	{
	    return con = confirm("<bean:message key="SA.deleteArticle.confirm"/>");
	}
//-->
</script>

</head>

<body>
<table width="100%" height="60"  border="0" cellpadding="0" cellspacing="0" bgcolor="#EFEEEE">
  <tr>
    <td align="left" valign="middle"><img src="ima/<bean:message key="SA.titleImage"/>" border="0"></td>
  </tr>
</table>
<table width="100%" height="25"  border="0" cellpadding="0" cellspacing="0" bgcolor="#DFDFDF" class="table_border1">
  <tr>
    <td>
	 <div style="DISPLAY: inline">
	 <html:form action="searchAction.do" method="post" style="margin:0px">
      <table width="150"  border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
          <td width="160"><html:text property="key" styleClass="input_search" /></td>
          <td><html:image property="doSearch" src="ima/search.gif" /></td>
        </tr>
      </table>
    </html:form>
	</div>
   </td>
   <td align="right"><table width="200" height="100%" border="0" cellpadding="0" cellspacing="0">
     <tr>
       <td width="2" background="ima/bg_vertical.gif"></td>
       <td width="93" align="center" onMouseOver="this.bgColor='#FF9900'" onMouseOut="this.bgColor=''"><html:link page="/articlePostAction.do"><bean:message key="SA.postArticle"/></html:link></td>
       <td width="2" background="ima/bg_vertical.gif"></td>
       <td width="93" align="center" onMouseOver="this.bgColor='#FF9900'" onMouseOut="this.bgColor=''"><html:link page="/articleClassManageAction.do"><bean:message key="SA.admClasses"/></html:link></td>
       <td width="2" background="ima/bg_vertical.gif"></td>
       <td width="8">&nbsp;</td>
     </tr>
   </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
 <tbody>
  <tr>
    <td width="150" align="center" valign="top" bgcolor="#EFEEEE" class="table_border1"><table width="100%"  border="0" cellspacing="2" cellpadding="0">
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td height="20"><strong><bean:message key="SA.doClass"/></strong></td>
      </tr>
      <tr>
        <td height="2" background="ima/bg_2px.gif"></td>
      </tr>
		<%-- Begin iterate the Article Classes --%>
    <logic:iterate id="aClasses" name="articleClasses" property="coll">
        <td onMouseOver="this.bgColor='#FFFFFF'" onMouseOut="this.bgColor=''">&nbsp;&nbsp;&nbsp;&nbsp;<html:link page="/articleListAction.do" paramId="classId" paramName="aClasses" paramProperty="classId"><bean:write name="aClasses" property="className" /></html:link></td>
      </tr>
    </logic:iterate>
		<%-- End iterate the Article Classes --%>
    </table></td>
    <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="bottom">&nbsp;&nbsp;<html:link page="/index.jsp"><bean:message key="SA.title"/></html:link>&nbsp;&gt;&nbsp;<bean:message key="SA.search.searchResultTitle"/></td>
        </tr>
      <tr>
        <td valign="top"><hr></td>
        </tr>
      <tr>
        <td align="center" valign="top">
		 <table width="90%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#AAAAAA">
          <tr>
            <td><table width="100%"  border="0" cellspacing="1" cellpadding="2">
              <tr align="center" valign="middle" bgcolor="#DEDFDE">
                <td width="47%" height="25"><strong><bean:message key="SA.article.title"/></strong></td>
                <td width="10%" height="25"><strong><bean:message key="SA.article.author"/></strong></td>
                <td width="18%" height="25"><strong><bean:message key="SA.article.time"/></strong></td>
                <td width="7%" height="25"><strong><bean:message key="SA.article.read"/></strong></td>
                <td width="10%" height="25"><strong><bean:message key="SA.article.className"/></strong></td>
								<td width="8%" height="25"><strong><bean:message key="SA.article.delete"/></strong></td>
              </tr>
		
		          <%-- Begin iterate the Article Classes --%>
							<logic:iterate id="aList" collection="${requestScope.coll}">
              <tr bgcolor="#FFFFFF">
                <td width="47%" align="left" bgcolor="#FFFFFF" onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor=''">&nbsp;<html:link page="/articleShowAction.do" paramId="id" paramName="aList" paramProperty="id" target="_blank"><bean:write name="aList" property="title"/></html:link></td>
                <td width="10%" align="right" bgcolor="#EEEEEE"><bean:write name="aList" property="author"/></td>
                <td width="18%" align="right" bgcolor="#FFFFFF"><bean:write name="aList" property="time"/></td>
                <td width="7%" align="right" bgcolor="#EEEEEE"><bean:write name="aList" property="read"/>&nbsp;</td>
								<td width="10%" align="right" bgcolor="#FFFFFF"><html:link page="/articleListAction.do" paramId="classId" paramName="aList" paramProperty="classId" target="_blank"><bean:write name="aList" property="className"/></html:link></td>
								<td width="8%" align="center" bgcolor="#EEEEEE"><html:link page="/articleDeleteAction.do" paramId="id" paramName="aList" paramProperty="id" onclick="return confirmDelete()"><font color="#FF0000"><bean:message key="SA.article.delete"/></font></html:link></td>
              </tr>
							</logic:iterate>
							<%-- End iterate the Article Classes --%>
							
              <tr bgcolor="#FFFFFF">
                <td bgcolor="#DEDFDE" height="20" colspan="6" align="right"><strong><bean:message key="SA.index.totalDesBegin"/>${requestScope.articleTotal}<bean:message key="SA.index.totalDesEnd"/></strong></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        </tr>
    </table></td>
  </tr>
 </tbody>
</table>
<hr>
<table width="100%" height="30"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle"><bean:message key="SA.copyright"/></td>
    <td width="200" align="center" valign="middle">
		  <html:form action="/languageAction.do" method="get" style="margin:0px">
			  <html:hidden property="action" value="change"/>
        <html:select property="language" styleClass="input_search" onchange="this.form.submit()">
          <html:option value="zh">中文</html:option>
          <html:option value="en">English</html:option>
        </html:select>
      </html:form>
		</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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