<%@include file="/WEB-INF/common/layouts/common.jsp" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>${entity.id}</title>
</head>
<style>

    .span12 .control-label {
        padding-top: 0px;
    }
</style>
<body>
<form id="input_form" class="form-horizontal valid"
      action="${ctx}/project<c:if test="${action=='edit'}">/${entity.id}</c:if><c:if test="${fromMyProjectsFlag}">?fromMyProjectsFlag=true</c:if>"
      method="post">

    <!-- 面包屑 begin -->
    <div class="row-fluid">
        <div class="span12">
            <ul class="breadcrumb">
                <li><a href="/house365-hgs-web/">首页</a>
                    <span class="divider" style="color:#26a0da;font-weight:bold;"> > </span>
                    <a href="${ctx}/customer/myCustomer">我的客户 </a>
                    <%--<a href="${ctx}/customer/myCustomer">${entity.projectName}</a>--%>
                </li>
                <li class="active">
                    <span class="divider" style="color:#26a0da;font-weight:bold;">/</span>
                    <span class="inline"> 项目详情</span>
                </li>
            </ul>
        </div>
    </div>
    <!-- 面包屑 end -->
    <house365:flushMessage/>
    <div class="row${fluid}">
        <div class="span12">
            <div class="form-horizontal house365Page">
                <div class="house365Border">
                    <!-- 片段头 begin -->
                    <%--  <input name="entity.id" type="hidden" value="${entity.id}"/> --%>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">合同号<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.contractCode"
                                               name="entity.contractCode" class="required"
                                               value="${entity.contractCode}"/>
                                        <span color="red"><form:errors path="projectVo.entity.contractCode"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.contractCode}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">项目名称<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.projectName"
                                               name="entity.projectName" class="required"
                                               value="${entity.projectName}"/>
                                        <span color="red"><form:errors path="projectVo.entity.projectName"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.projectName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">项目状态<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create'}">
                                        <select class="chosen required" id="entity.status" name="entity.status"
                                                data-placeholder="项目状态">
                                            <option value="1">默认</option>
                                            <option value="2">执行中</option>
                                            <option value="3">办结</option>
                                            <option value="4">合同周期结束</option>
                                            <option value="5">终止</option>
                                            <option value="6">立项审核中</option>
                                            <option value="7">删除</option>
                                        </select>
                                        <span color="red"><form:errors path="userVo.entity.status"/></span>
                                    </c:when>
                                    <c:when test="${action=='edit'}">
                                        <select class="chosen required" id="entity.status" name="entity.status"
                                                data-placeholder="项目状态">
                                            <option value="1"
                                                    <c:if test="${entity.status eq 1}">selected="selected"</c:if>>默认
                                            </option>
                                            <option value="2"
                                                    <c:if test="${entity.status eq 2}">selected="selected"</c:if>>执行中
                                            </option>
                                            <option value="3"
                                                    <c:if test="${entity.status eq 3}">selected="selected"</c:if>>办结
                                            </option>
                                            <option value="4"
                                                    <c:if test="${entity.status eq 4}">selected="selected"</c:if>>合同周期结束
                                            </option>
                                            <option value="5"
                                                    <c:if test="${entity.status eq 5}">selected="selected"</c:if>>终止
                                            </option>
                                            <option value="6"
                                                    <c:if test="${entity.status eq 6}">selected="selected"</c:if>>立项审核中
                                            </option>
                                            <option value="7"
                                                    <c:if test="${entity.status eq 7}">selected="selected"</c:if>>删除
                                            </option>
                                        </select>
                                        <span color="red"><form:errors path="userVo.entity.status"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">
                                        		<c:if test="${entity.status eq 1}">默认</c:if>
                                        		<c:if test="${entity.status eq 2}">执行中</c:if>
                                        		<c:if test="${entity.status eq 3}">办结</c:if>
                                        		<c:if test="${entity.status eq 4}">合同周期结束</c:if>
                                        		<c:if test="${entity.status eq 5}">终止</c:if>
                                        		<c:if test="${entity.status eq 6}">立项审核中</c:if>
                                        		<c:if test="${entity.status eq 7}">删除</c:if>
                                                &nbsp;
                                        </span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <%--  <div class="span6 control-group">
                          <label class="control-label">项目状态<font style="color: red;">*</font>:</label>
                          <div class="controls">
                              <c:choose>
                                  <c:when test="${action=='create' || action=='edit'}">
                                      <input type="text" id="entity.status"
                                          name="entity.status" class="required"
                                          value="${entity.status}" />
                                      <font color="red"><form:errors path="projectVo.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">项目编号<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.projectCode"
                                               name="entity.projectCode" class="required"
                                               value="${entity.projectCode}"/>
                                        <span color="red"><form:errors path="projectVo.entity.projectCode"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.projectCode}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">关联楼盘ID<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.buildingId"
                                               name="entity.buildingId" class="required"
                                               value="${entity.buildingId}"/>
                                        <span color="red"><form:errors path="projectVo.entity.buildingId"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.buildingId}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">关联楼盘名称<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.buildingName"
                                               name="entity.buildingName" class="required"
                                               value="${entity.buildingName}"/>
                                        <span color="red"><form:errors path="projectVo.entity.buildingName"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.buildingName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>

                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">项目经理<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.manager"
                                               name="entity.manager" class="required"
                                               value="${entity.manager}"/>
                                        <span color="red"><form:errors path="projectVo.entity.manager"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.manager}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

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

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">开发企业<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.kfs"
                                               name="entity.kfs" class="required"
                                               value="${entity.kfs}"/>
                                        <span color="red"><form:errors path="projectVo.entity.kfs"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.kfs}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">业务类型<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.business"
                                               name="entity.business" class="required"
                                               value="${entity.business}"/>
                                        <span color="red"><form:errors path="projectVo.entity.business"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.business}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">项目地址<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.address"
                                               name="entity.address" class="required"
                                               value="${entity.address}"/>
                                        <span color="red"><form:errors path="projectVo.entity.address"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.address}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">开盘时间<span style="color: red;">*</span>:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <input type="text" id="entity.startTimeStr" class="datetime-picker required"
                                               name="entity.startTimeStr" date-language="zh-CN"
                                               value="<fmt:formatDate value='${entity.startTime}' pattern='yyyy-MM-dd' />"/>
                                        <span color="red"><form:errors path="projectVo.entity.startTime"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline"><fmt:formatDate type='both' value='${entity.startTime}'
                                                                             pattern='yyyy-MM-dd HH:mm:ss'/>&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <c:choose>
                            <c:when test="${action!='create' && action!='edit'}">
                                <div class="span6 control-group">
                                    <label class="control-label">创建人用户名:</label>
                                    <div class="controls">
                                        <span class="inline">${entity.createUsername}&nbsp;</span>
                                    </div>
                                </div>
                            </c:when>
                        </c:choose>
                        <c:choose>
                            <c:when test="${action!='create' && action!='edit'}">
                                <div class="span6 control-group">
                                    <label class="control-label">创建时间:</label>
                                    <div class="controls">
                                        <span class="inline"><fmt:formatDate type='both' value='${entity.createTime}'
                                                                             pattern='yyyy-MM-dd HH:mm:ss'/>&nbsp;</span>
                                    </div>
                                </div>
                            </c:when>
                        </c:choose>
                    </div>
                    <div class="row-fluid">
                        <c:choose>
                            <c:when test="${action!='create' && action!='edit'}">
                                <div class="span6 control-group">
                                    <label class="control-label">最后一次修改人:</label>
                                    <div class="controls">
                                        <span class="inline">${entity.updateUsername}&nbsp;</span>
                                    </div>
                                </div>
                            </c:when>
                        </c:choose>
                        <c:choose>
                            <c:when test="${action!='create' && action!='edit'}">
                                <div class="span6 control-group">
                                    <label class="control-label">最后一次修改时间:</label>
                                    <div class="controls">
                                        <span class="inline"><fmt:formatDate type='both' value='${entity.updateTime }'
                                                                             pattern='yyyy-MM-dd HH:mm:ss'/>&nbsp;</span>

                                    </div>
                                </div>
                            </c:when>
                        </c:choose>
                    </div>
                </div>
            </div>

            <div class="form-horizontal house365Page">
                <div class="house365Border">
                    <!-- 片段头 begin -->
                    <div class="sectionTitle">
                        <h5>其他信息</h5>
                    </div>
                    <div class="row-fluid">
                        <div class="span12 control-group">
                            <label class="control-label">房源状况:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <%-- <input type="text" id="entity.source"
                                            name="entity.source"
                                            value="${entity.source}" /> --%>
                                        <textarea class="span9" id="entity.source" name="entity.source" rows="6"
                                                  placeholder="房源状况">${entity.source}</textarea>
                                        <span color="red"><form:errors path="projectVo.entity.source"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.source}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12 control-group">
                            <label class="control-label">即时销售信息:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <%-- <input type="text" id="entity.jitInfo"
                                            name="entity.jitInfo"
                                            value="${entity.jitInfo}" /> --%>
                                        <textarea class="span9" id="entity.jitInfo" name="entity.jitInfo" rows="6"
                                                  placeholder="即时销售信息">${entity.jitInfo}</textarea>
                                        <span color="red"><form:errors path="projectVo.entity.jitInfo"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.jitInfo}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12 control-group">
                            <label class="control-label">佣金标准:</label>
                            <div class="controls">
                                <c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
                                        <%-- <input type="text" id="entity.hireMoney"
                                            name="entity.hireMoney"
                                            value="${entity.hireMoney}" /> --%>
                                        <textarea class="span9" id="entity.hireMoney" name="entity.hireMoney" rows="6"
                                                  placeholder="佣金标准">${entity.hireMoney}</textarea>
                                        <span color="red"><form:errors path="projectVo.entity.hireMoney"/></span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.hireMoney}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <c:choose>
                            <c:when test="${action=='edit'}">
                                <div class="span12 control-group">
                                    <label class="control-label">项目图片:</label>
                                    <div class="controls">
                                        <tags:imageSection resourceId="${entity.id}"
                                                           resourceType="hgs" bizType="5" editAble="true" title="楼盘图片"
                                                           maxSize="12"/>
                                    </div>
                                </div>
                            </c:when>
                            <c:when test="${action!='edit'&&action!='create'}">
                                <div class="span12 control-group">
                                    <label class="control-label">项目图片:</label>
                                    <div class="controls">
                                        <tags:imageSection resourceId="${entity.id}"
                                                           resourceType="hgs" bizType="5" editAble="false" title="楼盘图片"
                                                           maxSize="12"/>
                                    </div>
                                </div>
                            </c:when>
                        </c:choose>
                    </div>
                    <%-- 	<div class="row-fluid">
                            <div class="span12 control-group">
                                <label class="control-label">项目图片:</label>
                                <div class="controls">
                                    <c:choose>
                                        <c:when test="${action=='edit'}">
                                            <tags:imageSection resourceId="${entity.id}"
                                                resourceType="hgs" bizType="5"  editAble="true" title="楼盘图片" maxSize="10"/>
                                        </c:when>
                                        <c:otherwise>
                                            <tags:imageSection resourceId="${entity.id}"
                                                resourceType="hgs" bizType="5"   editAble="false" title="楼盘图片" maxSize="10"/>
                                        </c:otherwise>
                                    </c:choose>
                                </div>
                            </div>
                        </div>	     --%>
                </div>
            </div>
        </div>
    </div>

</form>
</body>

</html>
