您的位置:首页 > 其它

DWZ实现排序

2015-09-23 16:30 323 查看
在页面上设置orderField字段,提交到后台,根据提交的orderField的内容进行排序。

JSP页面

<form id="pagerForm" method="post" action="">
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="${numPerPage}" />
<input type="hidden" name="orderField" value="${orderField}" />
<input type="hidden" name="orderDirection" value="${orderDirection}" />
</form>
<table class="table" width="1200" layoutH="138">
<thead>
<tr>
<th width="24"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
<th align="center" orderField="showFlag" class="desc">首页显示</th>
<!-- <th align="center" class="asc">类别</th>-->
<th align="center" orderField="kindText" class="desc">类别名称</th>
<th align="center" orderField="updateDate" class="desc">发布时间</th>
<th align="center">标题名称</th>
<th align="center">作者</th>
</tr>
</thead>

后台排序
取orderField的字段内容进行排序。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: