1.查看上传多图实例:需自己安装测试管理例子才有 php think crud -t test -u 1
例子:
<div class="form-group"> <label for="c-treatmentImage" class="control-label col-xs-12 col-sm-2">毕业待遇图片:</label> <div class="col-xs-12 col-sm-8"> <div class="input-group"> <input id="c-treatmentImage" data-rule="required" class="form-control" size="50" name="row[treatmentImage]" type="text" value=""> <div class="input-group-addon no-border no-padding"> <span><button type="button" id="plupload-treatmentImage" class="btn btn-danger plupload" data-input-id="c-treatmentImage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-treatmentImage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span> <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-treatmentImage" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span> </div> <span class="msg-box n-right" for="c-treatmentImage"></span> </div> <ul class="row list-inline plupload-preview" id="p-treatmentImage"></ul> </div> </div>
2.多图上传删除不行,解决方案:https://ask.fastadmin.net/question/849.html
3.语言对应包:application/admin/lang/zh-cn/, 如果没有英文要求,可以不用语言包
4.富文本编辑器:下载的包是没自带的,需要去安装插件,可以安装免费的,安装完使用class里面加editor:
<textarea class='editor' name="content"></textarea>
5.追加按钮,追加后下标不变解决(<%=index%>要用这个规则):
<dd class="form-inline"> <input type="text" name="<%=name%>[<%=index%>][key]" class="form-control" value="<%=row.key%>" size="10" /> <input type="text" name="<%=name%>[<%=index%>][value]" class="form-control" value="<%=row.value%>" size="30" /> <span class="btn btn-sm btn-danger btn-remove"> <i class="fa fa-times"></i> </span> <span class="btn btn-sm btn-primary btn-dragsort"> <i class="fa fa-arrows"></i></span></dd>
希望以上内容对你有所帮助!如果还有其他问题,请随时提问。 各类知识收集 拥有多年CMS企业建站经验,对 iCMS, Fastadmin, ClassCMS, LeCMS, PbootCMS, PHPCMS, 易优CMS, YzmCMS, 讯睿CMS, 极致CMS, Wordpress, HkCMS, YznCMS, WellCMS, ThinkCMF, 等各类cms的相互转化,程序开发,网站制作,bug修复,程序杀毒,插件定制都可以提供最佳解决方案。