<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="/public/static/assets1/css/layui.css">
    <link rel="stylesheet" href="/public/static/assets1/css/view.css"/>
    <title></title>
</head>
<style>
    .layui-form-label {
        width: 70px !important;
    }
    .layui-input-block {
        margin-left: 100px !important;

    }
</style>
<body class="layui-view-body">
<div class="layui-content">
    <div class="layui-row">
        <div class="layui-card">

            <form class="layui-form layui-card-body"  method="post" action="">
					<div class="layui-form-item">
					    <label class="layui-form-label">标题</label>
					    <div class="layui-input-block">
					      <input type="text" name="title" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
				    </div>
					<div class="layui-form-item layui-form-text">
					    <label class="layui-form-label">发送消息</label>
					    <div class="layui-input-block">
					      <textarea name="content" placeholder="请输入发送的内容" class="layui-textarea"></textarea>
					    </div>
					  </div>
				 	 <div class="layui-form-item">
				 	   <label class="layui-form-label">极光推送KEY</label>
					    <div class="layui-input-block">
					      <input type="text" name="key" required value="{$data['key']}" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
				   	 </div>
				   	 <div class="layui-form-item">
				 	   <label class="layui-form-label">极光推送SRC</label>
					    <div class="layui-input-block">
					      <input type="text" name="src" required  value="{$data['secret']}"   lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
				   	 </div>
				   	  <div class="layui-form-item">
					       <label class="layui-form-label">推送</label>
					    <div class="layui-input-block">
					      <input type="radio" name="send" value="0" title="关闭" checked  >
					      <input type="radio" name="send" value="1" title="推送"  >
					    </div>
				     </div>
					  <div class="layui-form-item">
		                    <div class="layui-input-block">
		                        <button class="layui-btn layui-btn-blue" lay-submit lay-filter="formDemo">立即提交</button>
		                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
		                    </div>
		                </div>
            </form>
        </div>
    </div>
</div>
<script src="/public/static/assets1/layui.all.js"></script>

<script> 
    var form = layui.form
        ,layer = layui.layer;
    <?php
        if(@$status=='1'){
            echo "layer.msg('操作成功', {icon: 6});";
        }elseif(@$status=='2'){
        echo "layer.msg('操作失败', {icon: 5});";
    }
 ?>

</script>
</body>
</html>