<%@page contentType="text/html;charset=GBK" %>

<jsp:useBean id="pager" class="com.keyshop.pub.util.Pager" scope="request"/>
<table width="660" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="100%" align="center" valign="top">
			<table width="640"  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>
			    	<table width="100%"  border="0" cellspacing="0" cellpadding="2">
				      <tr>
				        <td height="30" align="left">您的位置：首页 &gt; 订单查询</td>
				      </tr>
				    </table>
				    <html:form  method="post" action="/fg/order/fgorderSearch">
					  <html:hidden property="channelId" value="<%=currentChannel.getId()%>"/>
						<input type="hidden"  name="actionType" value="fglist"/>
						<input type="hidden" name="pageType"/>
				      <table width="96%"  border="0" cellspacing="0" cellpadding="0">
				      <tr>
				        <td height="30" align="left" valign="bottom">
				        	<font color="#484848" size=2><b>
				        	<img src="<%=CONTEXT%>/img/pic0516.gif" width="36" height="21" align="absmiddle">您订单编号
				          <input type="text"   name="serialNo"  size="20" maxlength="60"/>
				          <input type="submit" name="Submit3223" value="查询" >
				          </b>
				          </font>
				        </td>
				      </tr>
				    </table>
				    <!--与分页有关的参数-->
			     <%if(pager!=null){%>
						<input type="hidden" name="maxRecNoPerPage" value="<%=pager.getRowsPerPage()%>"/>
						<input type="hidden" name="recordNumber" value="<%=pager.getTotalRow()%>"/>
						<input name="toPage" type="hidden"/>
						<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 = "fgadd";
						    document.fgorderSearchForm.submit();
						  }
						  
						  function jump(page) {
						  	document.all.toPage.value=page;
						  	document.fgorderSearchForm.submit();
						  }
						  
						  function orderby(orderbyType) {
						  	document.all.orderbyType.value=orderbyType;
						  	document.fgorderSearchForm.submit();
						  }
						  
						</script>	
						<%if(pager!=null){%>
				    <table width="96%"  border="0" cellspacing="0" cellpadding="4">
				      <tr>
				        <td align="right">
				         共<%=pager.getTotalRow()%>
				         条&nbsp分<%=pager.getCurrentPage()%>/<%=pager.getTotalPage()%>页显示
						    &nbsp<a href="javascript:jump('1')" class="Process12_product_pname">
						    	首页</a>&nbsp;<% if(pager.getCurrentPage()>1){%><a href="javascript:select('prev')" class="Process12_product_pname">
						    	上一页</a><%} else {%>
						    	上一页<%} %>&nbsp;<% if(pager.getTotalPage()>pager.getCurrentPage()){%><a href="javascript:select('next')" class="Process12_product_pname">
						    	下一页</a><%} else {%> 
						    	下一页<%} %> &nbsp;<a href="javascript:jump('<%=pager.getTotalPage()%>')" class="Process12_product_pname">
						    	末页</a></td>
				      </tr>
				    </table>
				    <table width="96%" border="0" align="center" cellpadding="2" cellspacing="1">
				      <tr align="center">
				        <td colspan="3" class="GWIndex_txt01"></td>
				      </tr>
				      <tr align="center" class="Process12_product_bgcolor01" >
				        <td width="29%" class="Process12_product_navtext03">订单号</td>
				        <td width="32%" class="Process12_product_navtext03">日期</td>
				        <td width="39%" class="Process12_product_navtext03">订单状态</td>
				      </tr>
				      <logic:iterate id="result" name="searchresult" type="Order" scope="request">
				   
				      <tr align="center">
			          <td height="23">
			          	<a href="<%=CONTEXT%>/fg/order/order.do?actionType=fgview&bean.id=<%=result.getId()%>" target="_blank" class="Process12_product_pname">
			          	<%=result.getSerialNo()%></a>
			          </td>
				        <td><%=result.getOrderDate()%></td>
				        <td><%=OrderHelper.statusNames.get(result.getStatus())%></td>
				      </tr>
				      <tr align="center">
				        <td colspan="3" class="Process12_product_navimg02" ></td>
				      </tr>
				      </logic:iterate>
			      
				    </table>
				    <table width="96%"  border="0" cellspacing="0" cellpadding="0">
				      <tr>
				        <td height="40" align="right">
				        	共<%=pager.getTotalRow()%>条&nbsp分<%=pager.getCurrentPage()%>/<%=pager.getTotalPage()%>页显示
						    	&nbsp<a href="javascript:jump('1')" class="Process12_product_pname">首页</a>&nbsp;
						    	<% if(pager.getCurrentPage()>1){%><a href="javascript:select('prev')" class="Process12_product_pname">
						    		上一页</a>
						    		<%} 
						    		else {%>
						    		上一页<%} %>&nbsp;
						      <% if(pager.getTotalPage()>pager.getCurrentPage()){%>
						      <a href="javascript:select('next')" class="Process12_product_pname">
						      	下一页</a>
						      	<%} 
						      else {%> 
						      	下一页
						      	<%} %> &nbsp;
						      	<a href="javascript:jump('<%=pager.getTotalPage()%>')" class="Process12_product_pname">
						      		末页</a>
						     </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>
    </td>
  </tr>
</table>