<%@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}/klfaccount">列表</a>
					</li>
					<li class="active" >
						<span class="divider" style="color:#26a0da;font-weight:bold;">/</span>
						<c:choose>
                             <c:when test="${action=='create'}">
								<span class="inline">新增</span>
                             </c:when>
                             <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">
                    <c:choose>
                        <c:when test="${action=='edit'}">
                            <button class="btn blue" type="submit"><i
                                    class="icon-save"></i>&nbsp;保存
                            </button>
                            <a href="${ctx}/cmorder/${entity.id}" class="btn gray"><i
                                    class="icon-mail-reply"></i>&nbsp;取消</a>
                        </c:when>
                        <c:when test="${action=='create'}">
                            <button class="btn blue"><i class="icon-save"></i>&nbsp;保存</button>
                            <a href="${ctx}/cmorder" class="btn gray"><i class="icon-mail-reply"></i>&nbsp;返回</a>
                        </c:when>
                        <c:otherwise>
                            <a href="${ctx}/cmorder/${entity.id}?action=edit" class="btn blue"><i
                                    class="icon-edit"></i>&nbsp;编辑</a>
                            <a href="${ctx}/cmorder" class="btn gray"><i class="icon-mail-reply"></i>&nbsp;返回</a>
                        </c:otherwise>
                    </c:choose>
                </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>
                    <input name="entity.id" type="hidden" value="${entity.id}"/>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">下单时间:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.createTimeStr"
											name="entity.createTimeStr"
											value="<fmt:formatDate value='${entity.createTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="cmOrderVo.entity.createTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.createTime}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">会员ID:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.userId"
											name="entity.userId"
											value="${entity.userId}" />
										<font color="red"><form:errors path="cmOrderVo.entity.userId" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.userId}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">会员名称:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.userName"
											name="entity.userName"
											value="${entity.userName}" />
										<font color="red"><form:errors path="cmOrderVo.entity.userName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.userName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">会员手机:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.userPhone"
											name="entity.userPhone"
											value="${entity.userPhone}" />
										<font color="red"><form:errors path="cmOrderVo.entity.userPhone" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.userPhone}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">配送方式:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.deliverType"
											name="entity.deliverType"
											value="${entity.deliverType}" />
										<font color="red"><form:errors path="cmOrderVo.entity.deliverType" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.deliverType}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">收货人姓名:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.receiverName"
											name="entity.receiverName"
											value="${entity.receiverName}" />
										<font color="red"><form:errors path="cmOrderVo.entity.receiverName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.receiverName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">收货人手机:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.receiverPhone"
											name="entity.receiverPhone"
											value="${entity.receiverPhone}" />
										<font color="red"><form:errors path="cmOrderVo.entity.receiverPhone" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.receiverPhone}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">收货人区域:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.receiverArea"
											name="entity.receiverArea"
											value="${entity.receiverArea}" />
										<font color="red"><form:errors path="cmOrderVo.entity.receiverArea" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.receiverArea}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">收货人详细地址:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.receiverDetailAddress"
											name="entity.receiverDetailAddress"
											value="${entity.receiverDetailAddress}" />
										<font color="red"><form:errors path="cmOrderVo.entity.receiverDetailAddress" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.receiverDetailAddress}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">收货邮编:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.receiverZipCode"
											name="entity.receiverZipCode"
											value="${entity.receiverZipCode}" />
										<font color="red"><form:errors path="cmOrderVo.entity.receiverZipCode" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.receiverZipCode}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">消耗淘房币:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.credits"
											name="entity.credits"
											value="${entity.credits}" />
										<font color="red"><form:errors path="cmOrderVo.entity.credits" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.credits}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">订单状态:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.orderStatus"
											name="entity.orderStatus"
											value="${entity.orderStatus}" />
										<font color="red"><form:errors path="cmOrderVo.entity.orderStatus" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.orderStatus}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">快递公司:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.expressCompany"
											name="entity.expressCompany"
											value="${entity.expressCompany}" />
										<font color="red"><form:errors path="cmOrderVo.entity.expressCompany" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.expressCompany}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">运单号:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.oerderNumber"
											name="entity.oerderNumber"
											value="${entity.oerderNumber}" />
										<font color="red"><form:errors path="cmOrderVo.entity.oerderNumber" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.oerderNumber}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">城市编号:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.cityId"
											name="entity.cityId"
											value="${entity.cityId}" />
										<font color="red"><form:errors path="cmOrderVo.entity.cityId" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.cityId}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">城市名称:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.cityName"
											name="entity.cityName"
											value="${entity.cityName}" />
										<font color="red"><form:errors path="cmOrderVo.entity.cityName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.cityName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">是否删除0:未删除:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.isDeleted"
											name="entity.isDeleted"
											value="${entity.isDeleted}" />
										<font color="red"><form:errors path="cmOrderVo.entity.isDeleted" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.isDeleted}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">商品id:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.goodsId"
											name="entity.goodsId"
											value="${entity.goodsId}" />
										<font color="red"><form:errors path="cmOrderVo.entity.goodsId" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.goodsId}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">商品名称:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.goodsName"
											name="entity.goodsName"
											value="${entity.goodsName}" />
										<font color="red"><form:errors path="cmOrderVo.entity.goodsName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.goodsName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">商品数量:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.goodsAmount"
											name="entity.goodsAmount"
											value="${entity.goodsAmount}" />
										<font color="red"><form:errors path="cmOrderVo.entity.goodsAmount" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.goodsAmount}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">商品图片:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.goodsPicture"
											name="entity.goodsPicture"
											value="${entity.goodsPicture}" />
										<font color="red"><form:errors path="cmOrderVo.entity.goodsPicture" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.goodsPicture}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">商品淘房币数量:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.goodsCreditAmount"
											name="entity.goodsCreditAmount"
											value="${entity.goodsCreditAmount}" />
										<font color="red"><form:errors path="cmOrderVo.entity.goodsCreditAmount" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.goodsCreditAmount}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">商品总淘房币数量:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.goodsTotalCreditAmount"
											name="entity.goodsTotalCreditAmount"
											value="${entity.goodsTotalCreditAmount}" />
										<font color="red"><form:errors path="cmOrderVo.entity.goodsTotalCreditAmount" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.goodsTotalCreditAmount}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">发货时间:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.deliverTimeStr"
											name="entity.deliverTimeStr"
											value="<fmt:formatDate value='${entity.deliverTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="cmOrderVo.entity.deliverTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.deliverTime}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">收货时间:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.receiveTimeStr"
											name="entity.receiveTimeStr"
											value="<fmt:formatDate value='${entity.receiveTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="cmOrderVo.entity.receiveTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.receiveTime}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
				</div>
			</div>               
        </div>
    </div>   

</form>
</body>

</html>