<?
$row=db()->get_table(MOD,$_GET['id']);
?>

<div class="layuimini-main">

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

         <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
               <?=html_radio1(array(1=>"正常",2=>"禁用"),$row['status']?$row['status']:1,"status")?>
              
            </div>
        </div>
         
         <?
         $title="图片";
         $field="img";
         $name="img";
         $fvalue=$row['img'];
        include(ADMINROOT.'/template/tpl/inputimg.tpl.php'); //
       ?>


         <div class="layui-form-item">
            <label class="layui-form-label">排序</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" lay-submit lay-filter="saveBtn">确认保存</button>
            </div>
        </div>

    </div>
</div>
<script>
    layui.use(['form', 'table'], function () {
        var form = layui.form,
            layer = layui.layer,
            table = layui.table,
            $ = layui.jquery;
    
        /**
         * 初始化表单，要加上，不然刷新部分组件可能会不加载
         */
        form.render();
      
        // 当前弹出层，防止ID被覆盖
        var parentIndex = layer.index;
     


    });
</script>