~~~
{include file="public/header"/}
<!--彈出框主體start-->
<div class="layui-tab-content">
<div class="layui-tab-item layui-show" style="margin-top: 20px;">
<form class="layui-form form-container" >
<div class="layui-form-item">
<label class="layui-form-label">分組名稱</label>
<div class="layui-input-inline">
<select name="tag_id">
{volist name="file_tag" id="vo"}
<option value="{$vo.id}" {eq name="vo['id']" value="1"} selected="selected" {/eq}>{$vo.title}</option>
{/volist}
</select>
</div>
</div>
<!--隱藏域-->
<input type="hidden" name="ids" value="{$Request.param.ids}">
<div class="layui-form-item">
<div class="layui-input-block">
<a class="layui-btn" id="save">保存</a>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
<script src="/public/admin/js/jquery.min.js"></script>
<script src="/public/admin/js/layui/layui.all.js"></script>
<script src="/public/admin/js/admin.js"></script>
<script>
//編輯分組
/*******start*******/
$(".layui-tab-content").on("click","#save",function(){
$.ajax({
url:"{:url('imgfile/updatetag')}",
data:$('.layui-form').serialize(),
dataType: "json",
type:'post',
async: false,
success:function(res) {
console.log(res);
if(res.status == 1) {
layer.msg(res.message,function () {
window.parent.location.reload();
// 獲得frame索引
var index = parent.layer.getFrameIndex(window.name);
//關閉當前frame
parent.layer.close(index);
});
}else {
layer.msg(res.message);
}
}
})
return false;
})
/*******end*******/
</script>
<!--彈出框主體end-->
{include file="public/footer"/}
~~~
- 心靈筆記
- tp5在編輯器一行一個添加信息
- 出庫入庫處理
- 出庫
- 入庫
- 后臺控制器
- tp5加載更多-流加載
- 配件列表
- Parts.php
- add.html
- edit.html
- 圖片管理
- controller
- 1.imgfile.php
- 2.imgfiletag.php
- view
- imgfile
- 1.index.html
- 2.show.html
- 3.simple.html
- 4.more.html
- 5.edit.html
- 6.deittag.html
- imgfiletag
- add.htm
- edit.htm
- model
- imgfile.php
- imgfiletag.php
- api
- upload.php
- js
- admin.js
- tp5整合百度編輯器多圖上傳
- 1.html代碼
- 2.js代碼
- 3.api代碼
- 4.extend中的拓展代碼
- tp5刪除圖片同時刪除服務器圖片
- 實用字段的的添加更新
- 根據時間戳獲取未來幾天星期幾
- curl
- 城市按字母排版
- 聚合查詢及渲染,處理產品首頁
- 過濾字段
- 風控
- 查詢id是否在數組里
- 判斷更新還是新增操作
- tp5使用引入php文件