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

📄 advancesearch.jsp

📁 shopping home JSP system
💻 JSP
字号:
<%@page contentType="text/html;charset=GBK" %>
<%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/html" prefix="html" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/keyshop" prefix="keyshop" %>
<%@include file="/jsp/pub/pub.jsp"%>
<jsp:useBean id="fgProductSearchForm" class="com.keyshop.shop.product.controller.ProductForm" scope="session"/>
	<%
		if(fgProductSearchForm != null) {
			fgProductSearchForm = new com.keyshop.shop.product.controller.ProductForm();
			session.setAttribute("fgProductSearchForm", fgProductSearchForm);
		}
	%>
<%@include file="/jsp/pub/top.jsp"%>
<table width="775" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
    	<jsp:include page="/jsp/pub/adContentView.jsp"> 
				<jsp:param name="channelId" value="<%=currentChannel.getId()%>"/> 	
				<jsp:param name="searchKey" value="<%=AD_CATEGORY_LONGBANNER%>"/> 	
				<jsp:param name="position" value="1"/> 	
			</jsp:include> 
    </td>
  </tr>
</table>
<table width="775" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          
    <td align="center" valign="top"> <table width="95%" border="1" cellspacing="0" cellpadding="0"  bordercolorlight="#BAC939"  bordercolordark="#EBFFB4" >
        <tr> 
          <td bgcolor="EBFFB4" class="gwIndex_txt01"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="35%" align="right"><img src="<%=CONTEXT%>/img/fa.gif" width="25" height="20"></td>
                <td width="65%"><strong> 高级搜索</strong></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td align="center" valign="top"><table width="600" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    
	<td>
	<table width="700" border="0" cellspacing="1" cellpadding="0">
    <tr>
      <td class="big14"><div align="left"></div></td>
    </tr>
  </table>
  <script>
    function Price_Change()
			{
				
				
				
				with(document.psForm)
				{
					if(price.value=='0')
					{
						startUnitPrice.value="";
						endUnitPrice.value="";
					}
										  	
					if(price.value=='1')
					{
						startUnitPrice.value="0";
						endUnitPrice.value="19.99";
					}
					if(price.value=='2')
					{
						startUnitPrice.value="20";
						endUnitPrice.value="79.99";
					}
					if(price.value=='3')
					{
						startUnitPrice.value="80";
						endUnitPrice.value="149.99";
					}
					if(price.value=='4')
					{
						startUnitPrice.value="150";
						endUnitPrice.value="999999999";
					}
				}
			}
			
			function clearForm(){
		document.all["bean.name"].value ="";
		document.all["categoryId"].value ="";
		document.all["startUnitPrice"].value ="";
		document.all["endUnitPrice"].value ="";
		document.all["startCreateTime"].value ="";
		document.all["endCreateTime"].value ="";
		document.all["startUpdateTime"].value ="";
		document.all["endUpdateTime"].value ="";
		document.all["bean.producingArea"].value ="";
		document.all["bean.unit"].value ="";
		document.all["bean.model"].value ="";
}
    </script>
  <table width="600" border="0" cellspacing="1" cellpadding="4">
 
<html:form  method="get" action="/fg/product/fgproductSearch">
		<input type="hidden" name="channelId" value="<%=currentChannel.getId()%>">
    <input type="hidden" name="actionType" value="qiantailist"/>
    <tr>
      <td><div align="right">书名/描述:</div></td>
      <td><div align="left">
      	<input type="text" name="bean.name"/>	
      </div></td>
    </tr>
     <tr>
      <td><div align="right">售价:</div></td>
      <td><div align="left">	
         <input type="text" name="startUnitPrice" styleClass="table"  onkeypress="floatOnly();"  size="5" maxlength="32"/>&nbsp;&nbsp;
         	- &nbsp;&nbsp;<input type="text" name="endUnitPrice" styleClass="table"  onkeypress="floatOnly();"  size="5" maxlength="32"/>
      </div></td>
    </tr> 	
     <tr>
      <td><div align="right">上架时间:</div></td>
      <td><div align="left">
        <input type="text" name="startCreateTime" value="" styleClass="table"  onclick="javascript:fPopUpCalendarDlg(document.all['startCreateTime']);"  size="10" maxlength="32"/>&nbsp;&nbsp;
        - &nbsp;&nbsp;<input type="text" name="endCreateTime"  value="" styleClass="table"  onclick="javascript:fPopUpCalendarDlg(document.all['endCreateTime']);"  size="10" maxlength="32"/>
      </div></td>
    </tr> 	
     <tr>
      <td><div align="right">作者:</div></td>
      <td><div align="left">
        <input type="text" name="bean.model" styleClass="table"  size="20" maxlength="32"/>
      </div></td>
    </tr>	
    <tr>
      <td><div align="right">出版社:</div></td>
      <td><div align="left">
        <input type="text" name="bean.producingArea" styleClass="table"  size="20" maxlength="32"/>
      </div></td>
    </tr>
    <tr>
      <td><div align="right">出版日期:</div></td>
      <td><div align="left">
        <input type="text" name="bean.unit" styleClass="table"  size="20" maxlength="32"/>
      </div></td>
    </tr>
    <tr> 
    		<td><div align="right">商品分类:</div></td>
        <td> 
        	<%
						ChannelProductCategory searchCategory = ChannelManager.getConfigPcContent(currentChannel.getId(), PC_CATEGORY_SEARCH, 1);
					%>    
        	<select name="categoryId">
               	<option value="">--选择分类--</option>
               <%
               		List rootCategorys = ProductHelper.getSubProductCategorys(searchCategory.getCategoryId());
        					
        					if(rootCategorys != null) {
        						for(int i=0; i<rootCategorys.size(); i++) {
        							ProductCategory rootCategory = (ProductCategory)rootCategorys.get(i);
        							List subs = ProductHelper.getSubProductCategorys(rootCategory.getId());
        							String rsel = rootCategory.getId().equals(fgProductSearchForm.getCategoryId()) ? "selected='true'":""; 
        				%>
        						<option value="<%=rootCategory.getId()%>" <%=rsel%>><%=rootCategory.getCategoryName()%></option>
        						
        						<%
        							for(int j=0; j<subs.size(); j++) {
        								ProductCategory subCategory = (ProductCategory)subs.get(j);
        								List subs2 = ProductHelper.getSubProductCategorys(subCategory.getId());
        								String ssel = subCategory.getId().equals(fgProductSearchForm.getParentCategoryId()) ? "selected='true'":""; 
        						%>
        						<option value="<%=subCategory.getId()%>" <%=ssel%>>&nbsp;&nbsp;|<%=subCategory.getCategoryName()%></option>
        						<%
        							if(subs2 != null) {
        							
        							for(int k=0; k<subs2.size(); k++) {
        								ProductCategory subCategory2 = (ProductCategory)subs2.get(k);
        								String ssel2 = subCategory2.getId().equals(fgProductSearchForm.getCategoryId()) ? "selected='true'":""; 
        						%>
        							
      						<%
      									}
      								}
      							}
      						%>
        				<%
        						}
        					}
        				%>
              </select>
        </td>
      </tr>
    <tr>
      <td width="40%"><div align="right">
      		<input type="submit" name="Submit" value="搜">
          </div></td>
      <td><div align="left">     
          <input type="reset" name="Submit" value="重新填写">
      </div></td>
    </tr>
  </table>
	</td>
  </tr>
</table>

                 </html:form></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
        </tr>
      </table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height=1></td>
  </tr>
</table>
<%@include file="/jsp/pub/bottom.jsp"%>

⌨️ 快捷键说明

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