<%@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}/customer<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}/customer">客户信息表列表</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}/customer/${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}/customer" class="btn gray"><i class="icon-mail-reply"></i>&nbsp;返回</a>
                        </c:when>
                        <c:otherwise>
                            <a href="${ctx}/customer/${entity.id}?action=edit" class="btn blue"><i
                                    class="icon-edit"></i>&nbsp;编辑</a>
                            <a href="${ctx}/customer" 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">name:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.name"
                                               name="entity.name"
                                               value="${entity.name}" />
                                        <font color="red"><form:errors path="customerVo.entity.name" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.name}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">phone:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.phone"
                                               name="entity.phone"
                                               value="${entity.phone}" />
                                        <font color="red"><form:errors path="customerVo.entity.phone" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.phone}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">bakPhone1:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.bakPhone1"
                                               name="entity.bakPhone1"
                                               value="${entity.bakPhone1}" />
                                        <font color="red"><form:errors path="customerVo.entity.bakPhone1" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.bakPhone1}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">bakPhone2:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.bakPhone2"
                                               name="entity.bakPhone2"
                                               value="${entity.bakPhone2}" />
                                        <font color="red"><form:errors path="customerVo.entity.bakPhone2" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.bakPhone2}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">bakPhone3:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.bakPhone3"
                                               name="entity.bakPhone3"
                                               value="${entity.bakPhone3}" />
                                        <font color="red"><form:errors path="customerVo.entity.bakPhone3" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.bakPhone3}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">1 男 0 女 2 未知:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.sex"
                                               name="entity.sex"
                                               value="${entity.sex}" />
                                        <font color="red"><form:errors path="customerVo.entity.sex" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.sex}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">1 线上 2 线下:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.customerType"
                                               name="entity.customerType"
                                               value="${entity.customerType}" />
                                        <font color="red"><form:errors path="customerVo.entity.customerType" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.customerType}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">活动来源－CRM:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.actSource"
                                               name="entity.actSource"
                                               value="${entity.actSource}" />
                                        <font color="red"><form:errors path="customerVo.entity.actSource" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.actSource}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">初次来源-CRM:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.firstSource"
                                               name="entity.firstSource"
                                               value="${entity.firstSource}" />
                                        <font color="red"><form:errors path="customerVo.entity.firstSource" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.firstSource}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">最近来源-CRM:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.latestSource"
                                               name="entity.latestSource"
                                               value="${entity.latestSource}" />
                                        <font color="red"><form:errors path="customerVo.entity.latestSource" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.latestSource}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">最近回访纪录－CRM:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.crmLatestCall"
                                               name="entity.crmLatestCall"
                                               value="${entity.crmLatestCall}" />
                                        <font color="red"><form:errors path="customerVo.entity.crmLatestCall" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.crmLatestCall}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">最近回访结果－CRM:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.crmLatestCallResult"
                                               name="entity.crmLatestCallResult"
                                               value="${entity.crmLatestCallResult}" />
                                        <font color="red"><form:errors path="customerVo.entity.crmLatestCallResult" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.crmLatestCallResult}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">客户状态 0 未约看、1约看:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.status"
                                               name="entity.status"
                                               value="${entity.status}" />
                                        <font color="red"><form:errors path="customerVo.entity.status" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.status}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">创建来源 CRM SYSTEM:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.createSource"
                                               name="entity.createSource"
                                               value="${entity.createSource}" />
                                        <font color="red"><form:errors path="customerVo.entity.createSource" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.createSource}&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.createTimeStr"
                                               name="entity.createTimeStr"
                                               value="<fmt:formatDate value='${entity.createTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
                                        <font color="red"><form:errors path="customerVo.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">创建人:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.creater"
                                               name="entity.creater"
                                               value="${entity.creater}" />
                                        <font color="red"><form:errors path="customerVo.entity.creater" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.creater}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">购房意向－CRM:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.buyIntention"
                                               name="entity.buyIntention"
                                               value="${entity.buyIntention}" />
                                        <font color="red"><form:errors path="customerVo.entity.buyIntention" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.buyIntention}&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.lastVisitTimeStr"
                                               name="entity.lastVisitTimeStr"
                                               value="<fmt:formatDate value='${entity.lastVisitTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
                                        <font color="red"><form:errors path="customerVo.entity.lastVisitTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.lastVisitTime}&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.lastCallTimeStr"
                                               name="entity.lastCallTimeStr"
                                               value="<fmt:formatDate value='${entity.lastCallTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
                                        <font color="red"><form:errors path="customerVo.entity.lastCallTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.lastCallTime}&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.managerId"
                                               name="entity.managerId"
                                               value="${entity.managerId}" />
                                        <font color="red"><form:errors path="customerVo.entity.managerId" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.managerId}&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.managerName"
                                               name="entity.managerName"
                                               value="${entity.managerName}" />
                                        <font color="red"><form:errors path="customerVo.entity.managerName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.managerName}&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.updateTimeStr"
                                               name="entity.updateTimeStr"
                                               value="<fmt:formatDate value='${entity.updateTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
                                        <font color="red"><form:errors path="customerVo.entity.updateTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.updateTime}&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.updater"
                                               name="entity.updater"
                                               value="${entity.updater}" />
                                        <font color="red"><form:errors path="customerVo.entity.updater" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.updater}&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.city"
                                               name="entity.city"
                                               value="${entity.city}" />
                                        <font color="red"><form:errors path="customerVo.entity.city" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.city}&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.bizPort"
                                               name="entity.bizPort"
                                               value="${entity.bizPort}" />
                                        <font color="red"><form:errors path="customerVo.entity.bizPort" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.bizPort}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</form>
</body>

</html>
