💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
注:这里的排序界面是参考 `友情链接` 里写的!因为排序的相关写到控制器里了!道理相同! 如图: ![mark](http://qiniu.newthink.cc/blog/20171019-160240721.png) ## 代码 只要 `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> ```