赞
踩
<form class="layui-form" action=""> <div class="mainBox"> <div class="main-container"> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">所属分类</label> <div class="layui-input-block"> <select name="cate_id" lay-verify="required" lay-search=""> <option value="">请选择分类</option> {if !empty($cate)} {foreach name="cate" item="vo"} <option value="{$vo.id}">{$vo.cate_name}</option> {/foreach} {/if} </select> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">文章标题</label> <div class="layui-input-block"> <input type="text" class="layui-input " name="title" lay-verify="required" placeholder="文章标题"> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">关键字</label> <div class="layui-input-block"> <input type="text" class="layui-input " name="keywords" placeholder="文章关键字"> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">描述</label> <div class="layui-input-block"> <textarea name="description" class="layui-textarea" placeholder="文章描述"></textarea> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">缩略图</label> <div class="layui-input-block"> <a id="btn-thumb"> <img src="/static/admin/images/head_default.gif" id="thumb-preview" width="60" height="60" style="cursor:pointer"/> </a> <span class="x-red layui-word-aux">尺寸为750X400px</span> <div id="tips-thumb"></div> <input type="hidden" name="picture" id="input-thumb" value=""> <!--<a id="delete" data-method="delete" class="layui-btn layui-btn-xs" onclick="deletePicture();">删除图片</a>--> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">百度富文本:</label> <div class="layui-input-block" > <textarea name="content" id="content" placeholder="文章描述"></textarea> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">文章来源名称</label> <div class="layui-input-block"> <input type="text" class="layui-input" name="source" placeholder="文章来源站点名称"> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">文章来源网址</label> <div class="layui-input-block"> <input type="text" class="layui-input" name="source_url" placeholder="文章原文地址"> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">浏览量</label> <div class="layui-input-block"> <input type="text" class="layui-input" value="1" name="views" lay-verify="required" placeholder="文章浏览量" onkeyup="value=value.replace(/[^\d]/g,'')"> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">作者</label> <div class="layui-input-block"> <input type="text" class="layui-input " name="author" lay-verify="required" placeholder="文章作者" value="{$nickname}"> </div> </div> <div class="layui-form-item layui-col-md-offset1 layui-col-md8"> <label class="layui-form-label">是否置顶</label> <div class="layui-input-block"> <input type="radio" name="is_top" value="1" title="是"> <input type="radio" name="is_top" value="0" title="否" checked> </div> </div> </div> </div> <div class="bottom"> <div class="button-container"> <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="" lay-filter="save"> <i class="layui-icon layui-icon-ok"></i> 提交 </button> <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm"> <i class="layui-icon layui-icon-refresh"></i> 重置 </button> </div> </div></form>
需要加上<form></form>才可以,不然获取内容的