<%@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}/marketingactivity<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}/marketingactivity">营销活动列表</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}/marketingactivity/${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}/marketingactivity" class="btn gray"><i class="icon-mail-reply"></i>&nbsp;返回</a>
                        </c:when>
                        <c:otherwise>
                            <a href="${ctx}/marketingactivity/${entity.id}?action=edit" class="btn blue"><i
                                    class="icon-edit"></i>&nbsp;编辑</a>
                            <a href="${ctx}/marketingactivity" 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.name"
											name="entity.name"
											value="${entity.name}" />
										<font color="red"><form:errors path="marketingActivityVo.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">活动类型:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.type"
											name="entity.type"
											value="${entity.type}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.type" /></font>
                                    </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">周期（天）:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.cycle"
											name="entity.cycle"
											value="${entity.cycle}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.cycle" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.cycle}&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.expectExtractCount"
											name="entity.expectExtractCount"
											value="${entity.expectExtractCount}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.expectExtractCount" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.expectExtractCount}&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.projectName"
											name="entity.projectName"
											value="${entity.projectName}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.projectName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.projectName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <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.mobileType"
											name="entity.mobileType"
											value="${entity.mobileType}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.mobileType" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.mobileType}&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.applyStartTimeStr"
											name="entity.applyStartTimeStr"
											value="<fmt:formatDate value='${entity.applyStartTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="marketingActivityVo.entity.applyStartTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.applyStartTime}&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.applyEndTimeStr"
											name="entity.applyEndTimeStr"
											value="<fmt:formatDate value='${entity.applyEndTime}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="marketingActivityVo.entity.applyEndTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.applyEndTime}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <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.applySource"
											name="entity.applySource"
											value="${entity.applySource}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.applySource" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.applySource}&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.activeType"
											name="entity.activeType"
											value="${entity.activeType}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.activeType" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.activeType}&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.totalPriceLower"
											name="entity.totalPriceLower"
											value="${entity.totalPriceLower}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.totalPriceLower" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.totalPriceLower}&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.totalPriceHigher"
											name="entity.totalPriceHigher"
											value="${entity.totalPriceHigher}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.totalPriceHigher" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.totalPriceHigher}&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.areaLower"
											name="entity.areaLower"
											value="${entity.areaLower}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.areaLower" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.areaLower}&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.areaHigher"
											name="entity.areaHigher"
											value="${entity.areaHigher}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.areaHigher" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.areaHigher}&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.returnVisitTimeStartStr"
											name="entity.returnVisitTimeStartStr"
											value="<fmt:formatDate value='${entity.returnVisitTimeStart}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="marketingActivityVo.entity.returnVisitTimeStart" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.returnVisitTimeStart}&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.returnVisitTimeEndStr"
											name="entity.returnVisitTimeEndStr"
											value="<fmt:formatDate value='${entity.returnVisitTimeEnd}' pattern='yyyy-MM-dd HH:mm:ss' />" />
										<font color="red"><form:errors path="marketingActivityVo.entity.returnVisitTimeEnd" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.returnVisitTimeEnd}&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.returnVisitStatus"
											name="entity.returnVisitStatus"
											value="${entity.returnVisitStatus}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.returnVisitStatus" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.returnVisitStatus}&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.returnVisitResult"
											name="entity.returnVisitResult"
											value="${entity.returnVisitResult}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.returnVisitResult" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.returnVisitResult}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">createBy:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.createBy"
											name="entity.createBy"
											value="${entity.createBy}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.createBy" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.createBy}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">createTime:</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="marketingActivityVo.entity.createTime" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.createTime}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
					<div class="row-fluid">
                        <div class="span6 control-group">
                            <label class="control-label">updateBy:</label>
                            <div class="controls">
                            	<c:choose>
                                    <c:when test="${action=='create' || action=='edit'}">
										<input type="text" id="entity.updateBy"
											name="entity.updateBy"
											value="${entity.updateBy}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.updateBy" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.updateBy}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
                        <div class="span6 control-group">
                            <label class="control-label">updateTime:</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="marketingActivityVo.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.gainCount"
											name="entity.gainCount"
											value="${entity.gainCount}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.gainCount" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.gainCount}&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.overTimeCount"
											name="entity.overTimeCount"
											value="${entity.overTimeCount}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.overTimeCount" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.overTimeCount}&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.visitBackCount"
											name="entity.visitBackCount"
											value="${entity.visitBackCount}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.visitBackCount" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.visitBackCount}&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.waitVisitCount"
											name="entity.waitVisitCount"
											value="${entity.waitVisitCount}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.waitVisitCount" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.waitVisitCount}&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.boughtCount"
											name="entity.boughtCount"
											value="${entity.boughtCount}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.boughtCount" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.boughtCount}&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.applySourceName"
											name="entity.applySourceName"
											value="${entity.applySourceName}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.applySourceName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.applySourceName}&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.activeTypeName"
											name="entity.activeTypeName"
											value="${entity.activeTypeName}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.activeTypeName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.activeTypeName}&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.returnVisitStatusName"
											name="entity.returnVisitStatusName"
											value="${entity.returnVisitStatusName}" />
										<font color="red"><form:errors path="marketingActivityVo.entity.returnVisitStatusName" /></font>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="inline">${entity.returnVisitStatusName}&nbsp;</span>
                                    </c:otherwise>
                                </c:choose>
                            
                            </div>
                        </div>
					</div>
				</div>
			</div>               
        </div>
    </div>   

</form>
</body>

</html>