- 利用ajax批量删除信息删除
-
<table class="table table-border table-bordered table-bg table-hover table-responsive" > <thead> <tr class="text-c"> <th width="25"><input type="checkbox" name="" value=""></th> <th width="40">排序</th> <th>ID</th> <th width="200">标题</th> <th>文章预览审核</th> <th >所属地区</th> <th >添加时间</th> <th >添加者</th> <th >操作</th> </tr> </thead> <tbody> <foreach name="newlist" item="vo"> <tr class="text-c va-m check-tr"> <td><input type="checkbox" value="{$vo.id}" name=""></td> <td> <input type="text" class="input-text" οnchange="changeOrder(this,'{$vo.id}')" value="{$vo.sort_id}"></td> <td>{$vo.id}</td> <td>{$vo.title|mb_substr=0,15,'utf-8'}...</td> <th class="td-status"> <switch name="vo['status']" > <case value="0"><a style="text-decoration:none" href="{:U('Local/local_view',array('id'=>$vo['id']))}" title='文章预览审核'>审核并查看详情</a></case> <case value="1"><a style="text-decoration:none" href="{:U('Local/local_view',array('id'=>$vo['id']))}" title='已经审核通过'><span class="label label-success radius">审核通过</span
ThinkPHP中ajax实现批量删除,,以…
最新推荐文章于 2024-07-25 09:19:33 发布
本文介绍了在ThinkPHP中使用Ajax实现批量删除信息的方法。通过HTML表格展示数据,包括ID、标题、状态等字段,使用全选功能和单个选择配合Ajax发送请求,后台PHP接收并处理删除操作。在控制器中通过循环删除选中的记录,并返回相应的提示信息。
摘要由CSDN通过智能技术生成