<%@ 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/articleEdit.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="articleId" value="${article.articleId}">
		<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="title" value="${article.title}" />
					</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="province"  class="form-control">
							<option value="">请选择</option>
						</select>
					</div>
					<div class="col-sm-3">
						<select id="city"  class="form-control">
							<option value="">请选择</option>
						</select>
					</div>
					<div class="col-sm-3">
						<select id="open"  class="form-control">
							<option value="0">是否开放</option>
							<option value="0" <c:if test="${article.open eq 0}"> selected="selected" </c:if> >否</option>
							<option value="1" <c:if test="${article.open eq 1}"> 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-3">
						<select id="mainBoard" class="form-control">
							<option value="">主板块</option>
						</select>
					</div>
					<div class="col-sm-3">
						<select id="boardId" class="form-control">
							<option value='0'>--请选择--</option>
						</select>
					</div>
					<div class="col-sm-2">
						<select id="origin" class="form-control input-medium">
							<option value="1">是否原创</option>
							<option value="1" <c:if test="${article.origin eq 1}"> selected="selected" </c:if> >原创</option>
							<option value="2" <c:if test="${article.origin eq 2}"> selected="selected" </c:if> >转载</option>
						</select>
					</div>
					<div class="col-sm-2">
						<select id="status" class="form-control input-medium">
							<option value="0">发布状态</option>
							<option value="1" <c:if test="${article.status eq 1}"> selected="selected" </c:if> >发布</option>
							<option value="0" <c:if test="${article.status eq 0}"> selected="selected" </c:if>>草稿</option>
							<option value="2" <c:if test="${article.status eq 2}"> selected="selected" </c:if>>关闭</option>
						</select>
					</div>
					<div class="col-sm-2">
						<select id="top" class="form-control input-medium">
							<option value="2">是否置顶</option>
							<option value="2" <c:if test="${article.top eq 2}"> selected="selected" </c:if>>不置顶</option>
							<option value="1" <c:if test="${article.top eq 1}"> 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">
						<input type="text" class="form-control checkRole"
							placeholder="文章转载地址" id="reprint" value="${article.reprint}" />
					</div>
					<label class="col-sm-3 control-label">封面图</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" placeholder="文章封面"
							id="pic" value="${article.pic}">
					</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">
						<input type="text" class="form-control" placeholder="音视频文件路径"
							id="fpath" value="${article.fpath}">
					</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">
						<input type="text" class="form-control" placeholder="编辑作者"
							id="author" value="${article.author}">
					</div>
					<label class="col-sm-3 control-label">原作者</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" placeholder="文章原作者"
							id="fauth" value="${article.fauth}">
					</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-3">
						<select id="prop" class="form-control input-medium">
							<option value="1">新闻资讯</option>
							<option value="2">商家推广</option>
							<option value="3">赛事活动</option>
						</select>
					</div>
					<!-- <label class="col-sm-3 control-label">是否付费</label> -->
					<div class="col-sm-3">
						<select id="pay" class="form-control input-medium">
							<option value="0">是否付费</option>
							<option value="1">是</option>
							<option value="0">否</option>
						</select>
					</div>
					<!-- <label class="col-sm-3 control-label">头条</label> -->
					<div class="col-sm-3">
						<select id="today" class="form-control input-medium">
							<option value="0">是否头条</option>
							<option value="1">是</option>
							<option value="0">否</option>
						</select>
					</div>
					<label class="col-sm-3 control-label">关联活动</label>
					<div class="col-sm-3">
						<input type="text" class="form-control" placeholder="活动编号"
							id="eventId" value="">
						<!--${article.eventId}  -->
					</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">
						<input type="text" class="form-control" placeholder="文章摘要300字以内"
							id="digest" value="${article.digest}">
					</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: 100px;">${article.content}</script>
					</div>
				</div>
				<footer class="panel-footer text-center bg-light lter">
					<button type="button" class="btn btn-success btn-s-xs"
						id="submitBtn">提交</button>
					<button type="button" class="btn btn-info btn-s-xs" id="resetBtn">重置</button>
				</footer>
			</div>
		</section>
	</form>
</body>
</html>