<!DOCTYPE html>
<html class="x-admin-sm">
    
    <head>
        <meta charset="UTF-8">
        <title>编辑文章</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
        <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="./js/xadmin.js"></script>
        <script type="text/javascript" charset="utf-8" src="./editor/ueditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="./editor/ueditor.all.js"> </script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
            <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
            <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
            <script type="text/javascript" charset="utf-8" src="./editor/lang/zh-cn/zh-cn.js"></script>

        <![endif]--></head>
    
    <body>
        <div class="layui-fluid">
            <div class="layui-row">
                <form class="layui-form" method="post" action="houtai.php?act=artedit">
                    <input value="<?php echo $aid; ?>" name="aid" type="hidden">
                    <div class="layui-form-item">
                        <label for="username" class="layui-form-label">
                            <span class="x-red">*</span>分卷选择</label>
                        <div class="layui-input-inline">
                            <select name="fjid">
                                <?php
                                while ($r=$rs->fetch_array()){
                                ?>
                                <option value="<?php echo $r['id']; ?>"><?php echo $r['name']; ?></option>
                                <?php
                                }
                                ?>

                            </select>

                           </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="username" class="layui-form-label">
                            <span class="x-red">*</span>章节标题</label>
                        <div class="layui-input-inline">
                            <input value="<?php echo $row[title]; ?>" type="text"  name="title"  class="layui-input" ></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="phone" class="layui-form-label">
                            <span class="x-red">*</span>发表时间</label>
                        <div class="layui-input-inline">
                            <input type="date" id="phone" name="time" required="" class="layui-input" value="<?php echo $row['time']; ?>"></div>
                    </div>

        <div class="layui-form-item layui-form-text">
            <label for="desc" class="layui-form-label">文章内容</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" id="input_content" name="content" ><?php echo $row[content]; ?></textarea>
                <script id="editor" type="text/plain" style="width:1024px;height:500px;"></script>

            </div>
        </div>
        <div class="layui-form-item">
            <label for="L_repass" class="layui-form-label"></label>
            <button class="layui-btn" lay-filter="add" lay-submit="">发布文章</button></div>
        </form>
        </div>
        </div>
        <script type="text/javascript">
            var ue = UE.getEditor('input_content', {

                initialFrameWidth: "90%",
                initialFrameHeight: "400",
            });
        </script>
        <script>layui.use(['form', 'layer'],
            function() {
                $ = layui.jquery;
                var form = layui.form,
                layer = layui.layer;

                //自定义验证规则




            });</script>

    </body>

</html>