<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
  window.UMEDITOR_HOME_URL = ctx + "/page/umeditor/";
  var URL = window.UEDITOR_HOME_URL;
</script>
<form class="layui-form whitebg pb10 pt10" action="" id="data_form">  
	<div class="tab-pane active">     
		<div class="panel-body">
			<div class="wrapper wrapper-content">
				<div class="panel-form animated fadeInRight wp60 fc">
					<div class="layui-form-item dn	has-error" >   
						<label class="layui-form-label">id</label>  
						<div class="layui-input-block">
							<input type="text" id="id"  lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${agreement.id }" >
						</div>  
					</div>
					
					<%-- <div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">名称</label>  
						<div class="layui-input-block">
							<input type="text" id="name" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${agreement.name }" >
						</div>  
					</div> --%>
					
					<div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">内容</label>  
                    <div class="layui-input-block">         
                        <textarea id="content"  placeholder="请输入内容" class="layui-textarea">${agreement.content }</textarea>
                        <span><font color="red">请勿轻易修改此内容！</font></span>
                    </div>
                </div>
                
                <div class="form-group">
                            <div class="layui-form-item">          
                                <label class="layui-form-label">协议</label>
                                <div class="layui-input-block">
                                    <select  id="discern">
                                        <option value="">请选择</option>
                                        <option value="0" <c:if test="${agreement.discern == 0}">selected</c:if>>注册协议</option>         
                                        <option value="1" <c:if test="${agreement.discern == 1}">selected</c:if>>银行卡协议</option>
                                        <option value="2" <c:if test="${agreement.discern == 2}">selected</c:if>>提现规则</option>
                                        <option value="3" <c:if test="${agreement.discern == 3}">selected</c:if>>隐私协议</option>
                                        <option value="5" <c:if test="${agreement.discern == 5}">selected</c:if>>应用权限说明</option>
                                        <option value="6" <c:if test="${agreement.discern == 6}">selected</c:if>>第三方SDK说明</option>
                                    </select>              
                                </div>
                            </div>
                        </div>
                        
                      <div class="layui-form-item dn  has-error" >   
                        <label class="layui-form-label"></label>  
                        <div class="layui-input-block">
                            <input type="text" id="oldDiscern"  lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${agreement.discern}" >
                        </div>  
                    </div>
                        
					
					<%-- <div class="layui-form-item 	has-error" >   
						<label class="layui-form-label">内容</label>  
						<div class="layui-input-block">
						  <textarea rows="" cols=""></textarea>
							<input type="text" name="content" id="" lay-verify="title" autocomplete="off" placeholder="请输入内容" class="layui-input" value="${agreement.content }" >
						</div>  
					</div> --%>
	
				</div>
			</div>
		</div>  
	</div>
</form>
<script type="text/javascript">
    //form表单样式
    layui.use(['layer', 'form'], function() {    
        var layer = layui.layer,
            form = layui.form;
        form.render();
    });
    $(function(){
        UM.getEditor('content');
    })
    
</script>

