📄 searchbar.jsp
字号:
<%@page contentType="text/html; charset=GBK"
import="netshop.util.*,java.util.*,java.text.*"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<TABLE cellSpacing=0 cellPadding=5 border=0>
<html:form action="/showItemsAction">
<TBODY>
<TR>
<TD width=120><%SimpleDateFormat sdf = new SimpleDateFormat(
"yyyy.MM.dd EEE",
session.getAttribute(Constants.CURRENT_LOCALE_KEY) != null ? (Locale) session
.getAttribute(Constants.CURRENT_LOCALE_KEY)
: request.getLocale());
%> <%=sdf.format(new Date())%></TD>
<TD align="center"><html:img border="0" page="/images/search1.gif" /></TD>
<%pageContext.setAttribute("categories", application
.getAttribute(Constants.CATEGORY_CONTAINER_KEY));
%>
<TD align="center"><html:select property="categoryId"
value="<%=session.getAttribute("categoryId")==null?new String("0"):((Long)session.getAttribute("categoryId")).toString()%>">
<html:option value="0" key="search.select.all.categories" />
<html:options collection="categories" property="id"
labelProperty="name" />
</html:select>
<TD align="center"><html:text styleClass="input" property="keyword"
size="25" /></TD>
<TD align="center"><html:image property="submit"
page="/images/search2.gif" /></TD>
<TD align="center"><html:link page="/main/search.jsp">
<bean:message key="search.super.search" />
</html:link></TD>
<TD align="center" width=10></TD>
<TD align="center" width=60> </TD>
<TD align="center" width=60> </TD>
<TD align="center" width=60> </TD>
<TD align="center" width=60> </TD>
</TR>
</html:form>
</TBODY>
</TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -