<%@include file="/WEB-INF/common/layouts/common.jsp" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>${entity.id}</title>
</head>
<body>
<form id="input_form" class="form-horizontal valid"
      action="${ctx}/cmorder<c:if test="${action=='edit'}">/${entity.id}</c:if>"
      method="post">
        
    <!-- 面包屑 begin -->
	<div class="row-fluid">
		<div class="span12">
				<ul class="breadcrumb">
					<li>
						<span class="divider" style="color:#26a0da;font-weight:bold;">/</span>
						<a href="${ctx}/cmorder">订单列表</a>
					</li>
					<li class="active" >
						<span class="divider" style="color:#26a0da;font-weight:bold;">/</span>
						<c:choose>
                             <c:when test="${action=='edit'}">
								<span class="inline"> ${entity.id} </span>
                             </c:when>
                             <c:otherwise>
                             	<span class="inline"> ${entity.id}</span>
                             </c:otherwise>
                         </c:choose>
					</li>
			</ul>
		</div>
	</div>     
	<!-- 面包屑 end -->      
	<house365:flushMessage/>
	 <div class="row${fluid}">
		<div class="span12">
        	<div class="portlet-header">
                <div class="operation-btn pull-right">
                   <a href="${ctx}/cmorder" class="btn gray"><i class="icon-mail-reply"></i>&nbsp;返回</a>
                </div>
            </div>   
			<div class="form-horizontal house365Page">
				<div class="house365Border">
               		<!-- 片段头 begin -->
					<div class="sectionTitle">
						<c:choose>
                             <c:when test="${action=='create'}">
								<h5>新增</h5>
                             </c:when>
                             <c:when test="${action=='edit'}">
								<h5>编辑</h5>
                             </c:when>
                             <c:otherwise>
                             	<h5>详情</h5>
                             </c:otherwise>
                         </c:choose>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">订单号:</label>
                            <div class="controls">
                                <span class="inline">${entity.id}&nbsp;</span>
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">下单时间:</label>
                            <div class="controls">
                            	<span class="inline"><fmt:formatDate value='${entity.createTime}' pattern='yyyy-MM-dd HH:mm:ss' />&nbsp;</span>
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">商品名称:</label>
                            <div class="controls">
                               <span class="inline">${entity.goodsName}&nbsp;</span>
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">兑换码:</label>
                            <div class="controls">
                                <span class="inline">${entity.oerderNumber}&nbsp;</span>
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">商品类型:</label>
                            <div class="controls">
                               <span class="inline">
								<c:if test="${entity.goodsType eq '1'}">
			                    	 虚拟商品
								</c:if>
								<c:if test="${entity.goodsType eq '0'}">
			                    	实物商品
								</c:if>
								<c:if test="${entity.goodsType eq '2'}">
                                    第三方商品
                                </c:if>
						&nbsp;</span>
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">会员电话:</label>
                            <div class="controls">
                                <span class="inline">${entity.userPhone}&nbsp;</span>
                            </div>
                        </div>
					</div>
					<%-- <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">配送方式:</label>
                            <div class="controls">
                               <span class="inline">${entity.deliverType}&nbsp;</span>
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">收货人名称:</label>
                            <div class="controls">
                                <span class="inline">${entity.receiverName}&nbsp;</span>
                            </div>
                        </div>
					</div> --%>
					 
					<%-- <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">邮编:</label>
                            <div class="controls">
                               <span class="inline">${entity.receiverZipCode}&nbsp;</span>
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">状态:</label>
                            <div class="controls">
                                <span class="inline"> 
									  <c:choose>
		                                  <c:when test="${entity.orderStatus eq 0}">
		                                  	未配送
		                                  </c:when>
		                                  <c:when test="${entity.orderStatus eq 1}">
		                                  	已配送
		                                  </c:when>
		                                  <c:otherwise>
		                                      ---
		                                  </c:otherwise>
		                              </c:choose>
								</span>
                            </div>
                        </div>
					</div>
					 --%>
					<%-- <c:if test="${orderStatus eq 0}">
						<div class="row-fluid">
	                        <div class="span12 control-group" style="text-align:center;">
	                            <div class="controls" >
	                               <!--  <button class="btn btn-primary btn-large" type="button" id="deliverBtn">配送</button>
	                                <button class="btn btn-primary btn-large" type="button" id="firstSaveBtn">保存</button> -->
	                            </div>
	                        </div>
						</div>
					</c:if> --%>
					
			</div>               
        </div>
    </div>   

</form>
<script type="text/javascript">

	 

</script>
</body>

</html>
