多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#示例 ~~~ <include file="public/header" /> <div class="content"> <h1 class="page-header">文章修改</h1> <div class="panel panel-inverse"> <div class="panel-body"> <form action="{:url('edit')}" method="post" enctype="multipart/form-data" class="form-horizontal form-validate form-redirect"> <input type="hidden" value="{$row['id']}" name="id"> <fa:select title="所属分类" name="category_id"> {:selectOption(model('GoodsCategory','logic')->getAll(2),$row['category_id'])} </fa:select> <fa:input title="标题" name="title" value="{$row['title']}" /> <fa:image title="封面图" name="img" value="{$row['img']}" /> <fa:textarea title="简要描述" name="desc">{$row['desc']}</fa:textarea> <fa:textarea title="详细内容" name="text" id="text">{$row['text']}</fa:textarea> <fa:input title="排序" name="sort" value="{$row['sort']}" /> <fa:input title="点击率" name="hits" value="{$row['hits']}" /> <fa:input title="排序" name="sort" value="{$row['sort']}" /> <fa:datetime title="发布时间" name="create_time" value="{$row['create_time'] ? date('Y-m-d H:i:s',$row['create_time']) : ''}" /> <fa:input title="文章来源" name="source" value="{$row['source']}" /> <fa:input title="作者" name="author" value="{$row['author']}" /> <fa:select title="是否显示" name="status"> <option <eq name="row.status" value="1">selected</eq> value="1">是</option> <option <eq name="row.status" value="0">selected</eq> value="0">否</option> </fa:select> <fa:submit value="保存" /> </div> </form> </div> </div> <include file="public/footer" /> <include file="public/albumplugin" /> <link href="__PUBLIC__/common/kindeditor/themes/default/default.css" rel="stylesheet" type="text/css"> <script charset="utf-8" src="__PUBLIC__/common/kindeditor/kindeditor.js"></script> <link type="text/css" rel="stylesheet" href="__PUBLIC__/common/datetime/datetimepicker.css" /> <script src="__PUBLIC__/common/datetime/bootstrap-datetimepicker.min.js" type="text/javascript" charset="UTF-8"></script> <script src="__PUBLIC__/common/datetime/bootstrap-datetimepicker.zh-CN.js" type="text/javascript" charset="UTF-8"></script> <script type="text/javascript"> $(function() { KindEditor.ready(function(K) { K.create('textarea[name=text]', { themeType: "simple", resizeType: 1, syncType: "", items: ['source', 'undo', 'redo', 'clearhtml', 'selectall', 'forecolor', 'justifyleft', 'justifycenter', 'justifyright', 'album'], minWidth: 400, height: 600, afterCreate: function() { this.sync(); }, afterBlur: function() { this.sync(); } }); }); $('form input[name=create_time]').datetimepicker({ format: 'yyyy-mm-dd hh:ii:ss', language: "zh-CN", minView: 2, autoclose: true }); App.highlightLeftNav('/info/index'); }); </script> ~~~