jquery表格排序(3)
来源:未知 责任编辑:责任编辑 发表时间:2015-09-16 20:03 点击:次
<title>数据维护信息查询</title>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/page_table.css">
<script type="text/javascript" src="../js/jquery_easyui/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../js/dateDialog.js"></script>
<script type="text/javascript" src="../js/tablesort/jquery-latest.js"></script>
<link rel="stylesheet" href="../js/tablesort/flora/flora.tablesorter.css" type="text/css"></link>
<script type="text/javascript" src="../js/tablesort/jquery.tablesorter.js"></script>
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//$("#datapatchinf").tablesorter({sortList:[[0,0]], widgets: ['zebra']});//0为升序 1降。
if("${v_order_type}"=="DESC"){
$("#${v_order_field}").css("background-image", "url(<%=path%>/images/asc.gif)");
}else{
$("#${v_order_field}").css("background-image", "url(<%=path%>/images/desc.gif)");
}
//添加根据不同的列排序
$("thead > tr >th").eq(0).click(function(){
var ordertype="DESC";
if("${v_order_type}"=="DESC"){
ordertype="ASC";
}else{
ordertype="DESC";
}
$("#datapatchForm").attr("action","<%=path%>/datapatch/initDatapatchInf.do?ordertype="+ordertype+"&order_field=SERIAL_NUMBER");
$("#datapatchForm").submit();
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>