<?


$row=$duoduo->select(MOD,"*","id=".$_GET['id']);
?>
<br>
<div class="layui-form layuimini-main">

      

        <div class="layui-form-item">
            <label class="layui-form-label required">标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" lay-verify="required" lay-reqtext="" placeholder="请输入名称" value="<?=$row['title']?>" class="layui-input">
              
            </div>
        </div>

        
   

    
       
    
       <div class="layui-form-item">
            <label class="layui-form-label required">url</label>
            <div class="layui-input-block">
                <input type="text" name="url"  lay-reqtext="" placeholder="" value="<?=$row['url']?>" class="layui-input">
              
            </div>
        </div>
    
     


    

      
        <div class="layui-form-item">
            <label class="layui-form-label required">排序</label>
            <div class="layui-input-block">
                <input type="text" name="sort" lay-verify="required|number" lay-reqtext="" placeholder="" value="<?=$row['sort']?$row['sort']:0?>" class="layui-input">
              
            </div>
         </div>


         <div class="layui-form-item">
            <div class="layui-input-block">
           
                <input type="hidden" value="<?=$row['id']?>" name="id">
                <button class="layui-btn layui-btn-normal jian_save" lay-submit lay-filter="saveBtn" >确认保存</button>
            </div>
        </div>
   


</div>
<script>
    layui.use(['form', 'table','miniAdmin','layedit'], function () {
        var form = layui.form,
            layer = layui.layer,
            miniAdmin = layui.miniAdmin,
            layedit = layui.layedit;
            table = layui.table,
            $ = layui.jquery;   
        /**
         * 初始化表单，要加上，不然刷新部分组件可能会不加载
         */
        form.render();

         form.on('select(node_id)', function(data){
     
               $('#nodevalue').val(data.value);
         })




    });
</script>
