<%@include file="/WEB-INF/common/layouts/common.jsp" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>兑换查询</title>
    <style type="text/css">
    	 
    </style>
</head>
<body>
<%-- <div class="row${fluid}">
    <div class="span6">
        <h2 class="page-title">CmOrder列表</h2>
    </div>
    <div class="span6 header_buttons">
        <a href="${ctx}/cmorder?action=create" class="btn blue pull-right"><i class="icon-plus"></i></a>
    </div>
</div> --%>

<!-- 面包屑 begin -->
<div class="row-fluid">
	<div class="span12">
		<ul class="breadcrumb">
			<!-- <li><a href="/house365-hmc-web/">首页</a> <span class="divider"></span></li> -->
			<li class="active" ><span class="divider" style="color:#26a0da;font-weight:bold;">/</span>兑换查询</li>
		</ul>
	</div>
</div>
<!-- 面包屑 begin -->

<div class="page-container">
    <div class="row${fluid}">
        <div class="span12">
            <form id="filterForm" class="form-inline filterForm" action="${ctx}/cmorder/totalQueryList" method="get">
				<input type="text" name="search_LIKE_goodsName" value="${param['search_LIKE_goodsName']}" 
					class="m-wrap small" style="height:20px;width:150px;" placeholder="商品名称" title="商品名称">
				<select name="search_EQ_goodsType" id="search_good_type_select" value="${param['search_EQ_goodsType']}"  title="商品类型">
					<option value="">全部商品类型</option>
					<option value="1">虚拟商品</option>
					<option value="0">实物商品</option>
				</select>
			<!-- 	<select name="search_EQ_city" id="search_good_city_select" value="" title="城市">
					<option value="">全部</option>
					<option value="1">南京</option>
					<option value="2">北京</option>
				</select> -->
				<input type="text" name="search_LIKE_goodsId" value="${param['search_LIKE_goodsId']}" 
					class="m-wrap small" style="height:20px;width:150px;" placeholder="商品编号" title="商品编号">
				 
                <div class="buttons pull-right" style="margin:3px 30px 0 0;">
                    <i class="icon-search icon-2x pointer" onclick="$('#filterForm').submit();" title="搜索"></i>
                </div>
	            </form>
        </div>
    </div>
    <table class="table table-striped table-advance table-hover">
        <thead>
        	<tr>
				<th width="100">商品编号</th>
				<th width="100">商品名称</th>
				<th width="100">商品类型</th>
				<th width="100">兑换数量</th>
			</tr>
        </thead>
        <c:forEach items="${cmOrders}" var="cmOrder">
            <tr>
				<td nowrap="nowrap">
				  	 <c:out value="${cmOrder.goodsId}" />
				</td>
				<td nowrap="nowrap">
						<c:if test="${null ne cmOrder.goodsName && '' ne cmOrder.goodsName}">
							<c:out value="${cmOrder.goodsName}" />
						</c:if>
						<c:if test="${null eq cmOrder.goodsName || '' eq cmOrder.goodsName}">
							&nbsp;
						</c:if>
				</td>
				<td nowrap="nowrap">
					<c:if test="${cmOrder.goodsType eq 1}">
                    	 虚拟
					</c:if>
					<c:if test="${cmOrder.goodsType eq 0}">
                    	实物
					</c:if>
				</td>
				<td nowrap="nowrap">
						<c:if test="${null ne cmOrder.totolSendedGoods && '' ne cmOrder.totolSendedGoods}">
							<c:out value="${cmOrder.totolSendedGoods}" />
						</c:if>
						<c:if test="${null eq cmOrder.totolSendedGoods || '' eq cmOrder.totolSendedGoods}">
							&nbsp;
						</c:if>
				</td>
				 
			</tr>
        </c:forEach>
    </table>
    <div class="row${fluid}">
        <house365:pagination page="${page}"/>
    </div>
</div>
<script type="text/javascript">
$(function(){
	
	//默认选择城市
	$("#search_good_type_select").val("${param['search_EQ_goodsType']}");
	$('#search_good_type_select').trigger("chosen:updated");
	
	
});

	 
    
</script>
</body>
</html>
