ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 视图 注:这里的排序界面是参考 `友情链接` 里写的!因为排序的相关写到控制器里了!道理相同! 如图: ![mark](https://box.kancloud.cn/dd81386c98d3868dc25af8edf0ccd43c_737x242.) ## 代码 只要 `action="{:url('Link/listOrder')}"` 写上 `listOrder` 就可以了! ``` <!doctype html> <html> <head> <meta charset="utf-8"> <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <!--中间内容/start--> <form method="post" class="js-ajax-form margin-top-20" action="{:url('Link/listOrder')}"> <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">排序</button> <table class="table table-hover table-bordered table-list"> <thead> <tr> <td><input name='list_orders[{$vo.id}]' class="input input-order mr5" type='text' size='3' value='{$vo.list_order}'></td> </tr> </thead> <tbody> <foreach name="links" item="vo"> <tr> <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td> </tr> </foreach> </tbody> </table> </form> <!--中间内容/end--> </body> </html> ```