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的字段内容进行排序。
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的字段内容进行排序。
相关文章推荐
- jQuery 中.parent() .parents() .parentsUntil()的区别,一看就懂。
- Android studio创建模拟器报错
- Unity3D中uGUI事件系统简述及使用方法总结
- Java学习笔记【数组知识要点】
- UITableViewCell unable to dequeue a cell with identifier Cell - must register a nib or a class for t
- CentOS 7 启动VNC失败问题
- thinkphp框架使用支付宝
- Zabbix 集成 OneAlert 实现全方位告警
- executing preg_match_all() function with this Regular Expression causes a PHP Segmentation Fault.
- nasm : 屏幕打印语句的实现
- Java EE : 一、图解Http协议
- systemd系统服务管理详解
- mesos和Elasticsearch设计(一)
- 微信和百度地图都不支持iOS6了
- 【Qt】窗体间传递数据(跨控件跨类),三种情况与处理方法
- Linux-CentOS 安装oh-my-zsh
- 常见函数的导数
- cocos2d-x3.6获取csb文件里的按钮控件
- org.apache.jasper.JasperException: /WEB-INF/jsp/add.jsp(40,24) quote symbol expected
- Spring中的DI(依赖注入)--给对象的属性赋值