<%@page contentType="text/html;charset=GBK" %>
	<%
		String startUnitPrice = request.getParameter("startUnitPrice");
		String endUnitPrice = request.getParameter("endUnitPrice");
		
		if(startUnitPrice == null) {
			startUnitPrice = "";
		}
		
		if(endUnitPrice == null) {
			endUnitPrice = "";
		}
	%>
<table width="620" border="0"  cellspacing="0" cellpadding="0">
  <tr>
    <td align="left"><%=categoryTitle%> </td>
  </tr>
</table><br>
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i01.gif" width="10" height="10"></td>
    <td  background="<%=CONTEXT%>/img/QQ/i03.gif"></td>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i02.gif" width="10" height="10"></td>
  </tr>
  <tr>
    <td  background="<%=CONTEXT%>/img/QQ/i04.gif">&nbsp;</td>
    <td>
    	<!--内容填写处-->

			<html:form  method="post" action="/fg/product/fgproductSearch">
			<html:hidden property="maxRecNoPerPage" value="<%=contentPager.getRowsPerPage()%>"/>
			<html:hidden property="recordNumber" value="<%=contentPager.getTotalRow()%>"/>
			<html:hidden property="actionType" value="qiantailist"/>
			<html:hidden property="categoryId"/>
			<html:hidden property="orderbyType"/>
			<html:hidden property="channelId" value="<%=currentChannel.getId()%>"/>

			<html:hidden property="startUnitPrice" value="<%=startUnitPrice%>"/>
			<html:hidden property="endUnitPrice" value="<%=endUnitPrice%>"/>
			<html:hidden property="key"/>
			<html:hidden property="currentPageNo"/>

				<table width="620" border="0" cellpadding="0" cellspacing="0" >
			    <tr>
			      <td> </td>
			    </tr>
			  </table>	            	  
			  <table width="620" border="0" cellpadding="0" cellspacing="0" >
			        <%
			    		if(contentList != null && contentList.size() > 0) {
			    	%>	
			    <tr> 
			      <td>
			      	<table width="620" height="27" border="0" align="center" cellpadding="0" cellspacing="0" class="listIndex_table01">
			          <tr>
			            <td> 
			            	<table width="100%" border="0" cellspacing="0" cellpadding="0">
			                <tr> 
			                  <td align="center">
			                	共<%=contentPager.getTotalRow()%>条&nbsp;&nbsp;分<%=contentPager.getTotalPage()%>页显示&nbsp;&nbsp;
			                	<a  class="flIndex_Title02" href="javascript:jump('1')">首页</a>&nbsp;<% if(contentPager.getCurrentPage()>1){%>
			                	<a  class="flIndex_Title02" href="javascript:select('prev')">上 一 页</a><%} else {%> 下一页<%} %>&nbsp;<% if(contentPager.getTotalPage()>contentPager.getCurrentPage()){%>
			                	<a  class="flIndex_Title02" href="javascript:select('next')">下 一 页</a><%} else {%> 下一页<%} %>&nbsp;
			                	<a  class="flIndex_Title02" href="javascript:jump('<%=contentPager.getTotalPage()%>')">末页</a>&nbsp;&nbsp;
			                	<input name="toPage" type="text" size="2" value="<%=fgProductSearchForm.getCurrentPageNo()%>" maxlength="5"/> 
			                	<input type="button" onclick="javascript:jump(document.all['toPage'].value)"  value="GO"> 
			                  </td>
			                </tr>
			              </table>
			            </td>
			          </tr>
			        </table>
			        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			        	<%
			        		if(contentList != null && contentList.size() > 0) {
			        	
			        			for(int i=0; i<contentList.size(); i++) {
			        				Content content = (Content)contentList.get(i);
			          %>
			          <tr> 
			            <td width="3%" class="board_table04" >&nbsp;</td>
			            <td width="97%" class="board_table04" align="left"> ·<a href="<%=CONTENTVIEW%>&viewModel=null&bean.id=<%=content.getId()%>" class="ggIndex_Title02"><%=content.getName()%></a> 
			            </td>
			          </tr>
			          <%
			          		}
			        		}
			        	%>
			        </table>
			        <table align="center" width="620" height="27" border="0" cellpadding="0" cellspacing="0" class="listIndex_table01">
			          <tr>
			            <td > 
			            	<table width="100%" border="0" cellspacing="0" cellpadding="0">
			                <tr> 
			                  <td align="center">
			                  	共<%=contentPager.getTotalRow()%>条&nbsp;&nbsp;分<%=contentPager.getTotalPage()%>页显示&nbsp;&nbsp;
													<a   href="javascript:jump('1')" class="flIndex_Title02">首页</a>&nbsp;
													<% if(contentPager.getCurrentPage()>1){%>
													<a href="javascript:select('prev')" class="flIndex_Title02">
													上 一 页</a><%} else {%>上 一 页<%} %>&nbsp;<% if(contentPager.getTotalPage()>contentPager.getCurrentPage()){%>
													<a href="javascript:select('next')" class="flIndex_Title02">下 一 页</a><%} else {%>下 一 页<%} %> &nbsp;
													<a href="javascript:jump('<%=contentPager.getTotalPage()%>')"   class="flIndex_Title02" >末页</a>&nbsp;&nbsp;
													<input name="toPage" type="text" size="2" value="<%=fgProductSearchForm.getCurrentPageNo()%>" maxlength="5"/> 
													<input type="button" onclick="javascript:jump(document.all['toPage'].value)"  value="GO"> 
			                  </td>
			                </tr>
			              </table>
			            </td>
			          </tr>
			        </table>
			      </td>
			    </tr>
			    <%
			    	}
			    %>
			  </table>
			  <table width="620" border="0" cellpadding="0" cellspacing="0" class="listIndex_bottom">
			    <tr> 
			      <td>&nbsp;</td>
			    </tr>
			  </table>
			</html:form>		
    </td>
    <td background="<%=CONTEXT%>/img/QQ/i05.gif"></td>
  </tr>
  <tr>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i06.gif" width="10" height="10"></td>
    <td background="<%=CONTEXT%>/img/QQ/i08.gif"></td>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i07.gif" width="10" height="10"></td>
  </tr>
</table>

<script>
  function select(act) {
    currentPage = parseInt(document.all['currentPageNo'].value);
    var toPage;
    if(act == "jump") {
      toPage= parseInt(document.all.toPage.value);
    }else if(act == "prev") {
	    toPage = currentPage - 1;
    }else if(act == "next"){
	    toPage = currentPage + 1 ;
    }
    document.all.currentPageNo.value = toPage;
    document.all.actionType.value = "qiantailist";
    document.fgProductSearchForm.submit();
  }
  
  function jump(page) {
  	document.all.toPage.value=page;
  	document.all.currentPageNo.value=page;
  	document.fgProductSearchForm.submit();
  }
  
  function orderby(orderbyType) {
  	document.all.orderbyType.value=orderbyType;
  	document.fgProductSearchForm.submit();
  }
  
</script>
