<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/common/taglibs.jspf"%>
<script src="${ctx}/static/ueditor/ueditor.config.js"></script>
<script src="${ctx}/static/ueditor/ueditor.all.min.js"></script>
<script src="${ctx}/static/ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="${ctx}/static/resource/cms/eventEdit.js"></script>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal">
		<input type="hidden" id="eventId" value="${event.eventId}">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">活动名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkRole"
						placeholder="活动名称标题" id="name" value="${event.name}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">活动类型</label>
				<div class="col-sm-4">
					<select id="prop" class="form-control">
						<option value="1"
							<c:if test="${event.prop eq 1}"> selected="selected" </c:if>>商家推广</option>
						<option value="2"
							<c:if test="${event.prop eq 2}"> selected="selected" </c:if>>赛事</option>
					</select>
				</div>
				<label class="col-sm-3 control-label">流程状态</label>
				<div class="col-sm-3">
					<select id="status" class="form-control">
						<option value="1"
							<c:if test="${event.status eq 1}"> selected="selected" </c:if>>进行中</option>
						<option value="0"
							<c:if test="${event.status eq 0}"> selected="selected" </c:if>>未审核</option>
						<option value="2"
							<c:if test="${event.status eq 2}"> selected="selected" </c:if>>已结束</option>
					</select>
				</div>
			</div>

			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">报名状态</label>
				<div class="col-sm-4">
					<select id="signable" class="form-control">
						<option value="1"
							<c:if test="${event.signable eq 1}"> selected="selected" </c:if>>正常报名</option>
						<option value="0"
							<c:if test="${event.signable eq 0}"> selected="selected" </c:if>>停止报名</option>
					</select>
				</div>
			</div>

			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">活动介绍</label>
				<div class="col-sm-9">
					<script id="editor" type="text/plain"
						style="width:98%;height: 230px;">${event.content}</script>
				</div>
			</div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="button" class="btn btn-success btn-s-xs" id="submitBtn">提交</button>
		</footer> </section>
	</form>
</body>
</html>