<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>领淘报表系统</title>
<link href="../static/layui/css/layui.css" rel="stylesheet">
<script src="../static/js/jquery.min.js"></script>
<script src="../static/layui/layui.js"></script>
<style>
  .layui-input-block{
  	   margin-left: 10px;
  }
  .btn_groups{
  		width:200px;
  		margin:auto
  }
</style>
</head>

<body>
	<div class="layui-input-block layui-form">
		<form class="layui-form" action="" method="post">
			<div class="layui-form-item">
				<input id="id" type="hidden"name="id" />
				<label class="layui-form-label">文章标题</label>
				<div class="layui-input-inline">
					<input type="text" name="title" class="layui-input" id="titleUp">
				</div>
			</div>
			<div class="layui-form-item">
				<input id="id" type="hidden"name="id" />
				<label class="layui-form-label">文章类型</label>
				<div class="layui-input-inline">
					<input type="text" name="type" class="layui-input" id="typeUp">
				</div>
			</div>
			<div class="layui-form-item layui-form-text">
				<textarea id="contentUp" name="content" style="display: none;"></textarea>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block btn_groups">
				<button class="layui-btn" lay-submit="" lay-filter="formSub">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript">
		layui.use([ 'form', 'laydate','layedit' ], function() {
			var form = layui.form;
			var laydate = layui.laydate;
			var layedit = layui.layedit;
			var $ = layui.$;
			
			layedit.set({
				uploadImage: {
					url: '', //接口url
					type: '' //默认post
				}
			});
			//建立编辑器
			layedit.build('contentUp', {
				height: 600, //设置编辑器高度
				hideTool:['strong' //加粗
						  ,'italic' //斜体
						  ,'underline' //下划线
						  ,'del' //删除线
						  ,'|' //分割线
						  ,'left' //左对齐
						  ,'center' //居中对齐
						  ,'right' //右对齐
						  ,'link' //超链接
						  ,'unlink' //清除链接
						  ,'face' //表情
						  ,'image' //插入图片
						  ,'help'  //帮助
					  	]
			});
				  
		});
	</script>
</body>
</html>