<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage="" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>搜索结果</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link href="css/tao.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="box">
<div>
<jsp:include page="top.jsp"/>
</div>
<div id="manu">
<div id="search">
<form action="queryByLike.action" method="post">
<img src="image/search.jpg"/>商品搜索
<input name="keyWord" type="text" />
<select name="school">
<option value="">---请选择学校---</option>
<s:iterator value="li">
<option><s:property value="name"/></option>
</s:iterator>
</select>
<input type="submit" value="开始搜索" />
</form>
</div>
<div id="more">
<div id="release" align="center"><a href="AddWare.action">发布信息 </a> <a href="help.jsp">帮助说明</a></div>
<table width="90%" border="0" align="center">
<tr>
<td width="99" >主题</td>
<td width="99" >所属校区</td>
<td width="99" >时间</td>
</tr>
</table>
<table width="90%" border="0" align="center">
<s:iterator id="per" value="all">
<s:if test="all==null">
无记录!
</s:if>
<s:set name="num" value="id"/>
<s:set name="cou" value="cou"/>
<s:set name="releasetime" value="releasetime"/>
<tr>
<td width="99"><a href="SelectById.action?ware.id=<%=pageContext.getAttribute("num")%>&ware.cou=<%=pageContext.getAttribute("cou") %>"><s:property value="name"/></a></td>
<td width="99"><s:property value="school"/></td>
<td width="99">
<%
java.util.Date d=(java.util.Date)pageContext.getAttribute("releasetime");
String a=d.toLocaleString();
a=a.substring(0,10);
%><%=a%></td>
</tr>
</s:iterator>
</table>
<s:else>
<jsp:include page="spage.jsp">
<jsp:param name="url" value="${url}"/>
<jsp:param name="pageCount" value="${pageCount}"/>
<jsp:param name="currentPage" value="${currentPage}"/>
<jsp:param name="currentPage" value="${keyWord}"/>
<jsp:param name="currentPage" value="${school}"/>
</jsp:include>
</s:else>
</div>
</div>
</div>
</body>
</html>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>搜索结果</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link href="css/tao.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="box">
<div>
<jsp:include page="top.jsp"/>
</div>
<div id="manu">
<div id="search">
<form action="queryByLike.action" method="post">
<img src="image/search.jpg"/>商品搜索
<input name="keyWord" type="text" />
<select name="school">
<option value="">---请选择学校---</option>
<s:iterator value="li">
<option><s:property value="name"/></option>
</s:iterator>
</select>
<input type="submit" value="开始搜索" />
</form>
</div>
<div id="more">
<div id="release" align="center"><a href="AddWare.action">发布信息 </a> <a href="help.jsp">帮助说明</a></div>
<table width="90%" border="0" align="center">
<tr>
<td width="99" >主题</td>
<td width="99" >所属校区</td>
<td width="99" >时间</td>
</tr>
</table>
<table width="90%" border="0" align="center">
<s:iterator id="per" value="all">
<s:if test="all==null">
无记录!
</s:if>
<s:set name="num" value="id"/>
<s:set name="cou" value="cou"/>
<s:set name="releasetime" value="releasetime"/>
<tr>
<td width="99"><a href="SelectById.action?ware.id=<%=pageContext.getAttribute("num")%>&ware.cou=<%=pageContext.getAttribute("cou") %>"><s:property value="name"/></a></td>
<td width="99"><s:property value="school"/></td>
<td width="99">
<%
java.util.Date d=(java.util.Date)pageContext.getAttribute("releasetime");
String a=d.toLocaleString();
a=a.substring(0,10);
%><%=a%></td>
</tr>
</s:iterator>
</table>
<s:else>
<jsp:include page="spage.jsp">
<jsp:param name="url" value="${url}"/>
<jsp:param name="pageCount" value="${pageCount}"/>
<jsp:param name="currentPage" value="${currentPage}"/>
<jsp:param name="currentPage" value="${keyWord}"/>
<jsp:param name="currentPage" value="${school}"/>
</jsp:include>
</s:else>
</div>
</div>
</div>
</body>
</html>