1. 程式人生 > >ThinkPHP中ajax實現批量刪除,,以…

ThinkPHP中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" onchange="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></a></case> <case value="2"><a style="text-decoration:none" href="{:U('Local/local_view',array('id'=>$vo['id']))}" title='稽核未通過'><span class="label label-danger radius">稽核未通過</span></a> <a style="text-decoration:none" onclick="replay_msg('回覆訊息','__CONTROLLER__/replay/id/{$vo.id}',500,380)" href="javascript:;" title='稽核未通過'><span class="label label-danger radius">回覆訊息</span></a></case> <case value="3"><a style="text-decoration:none" href="{:U('Local/local_view',array('id'=>$vo['id']))}" title='稽核未通過'><span class="label label-danger radius">稽核未通過</span></a></case> </switch> </th> <td>{$vo.local_name}</td> <td>{:date('Y-m-d',$vo['add_time'])}</td> <td>{$vo.author}</td> <td class="f-14 td-manage"> <a style="text-decoration:none" class="ml-5" href="{:U('Local/local_edit',array('id'=>$vo['id']))}" title="編輯"> <i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="local_del(this,'__CONTROLLER__/local_del','{$vo.id}')"title="刪除"> <i class="Hui-iconfont">&#xe6e2;</i> </a> </td> </tr> </foreach> </tbody> <tfoot> <!--分頁顯示?--> <tr><td textalign="center" cl nowrap="true" colspan="9" height="20"><div class="pages"><?php echo $page; ?></div></td></tr> </tfoot> </table>