Chinaunix首页 | 论坛 | 博客
  • 博客访问: 49606
  • 博文数量: 22
  • 博客积分: 941
  • 博客等级: 准尉
  • 技术积分: 242
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-27 13:20
文章分类
文章存档

2012年(3)

2011年(7)

2010年(12)

我的朋友

分类: 系统运维

2011-02-21 22:41:03

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" title="currentStyle">
    @import "APP_URL;?>global/css/demo_page.css";
    @import "APP_URL;?>global/css/demo_table.css";
</style>
<link rel="stylesheet" type="text/css" href="APP_URL;?>global/css/main.css"/>
<script type="text/javascript" src="APP_URL;?>global/js/jquery.js"></script>
<script type="text/javascript" src="APP_URL;?>global/js/jquery.dataTables.js"></script>
<script type="text/javascript">
var oTable;
var giRedraw = false;
$(document).ready(function(){
  $("#example tbody").click(function(event) {
    $(oTable.fnSettings().aoData).each(function (){
      $(this.nTr).removeClass('row_selected');
    });
    $(event.target.parentNode).addClass('row_selected');
  });
 
        oTable = $('#example').dataTable( {
          "bProcessing": true,
          "bServerSide": true,
          "aaSorting": [[ 0, "desc" ]],
          //"sAjaxSource": "",
          "sAjaxSource": "{{path}}index.php/get/viewHistoryNotifications",
          "bStateSave": false,
          "bAutoWidth": false,
            "sPaginationType": "full_numbers",
          "aoColumns": [null,null,null,null,null,null],
          "oLanguage": {"sUrl": "APP_URL;?>/global/language/zh.txt"}
        } );
});


在 "sAjaxSource": "{{path}}index.php/get/viewHistoryNotifications",中,输出json格式的数据,具体实现稍后给出哈。
阅读(876) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-05 13:33:02

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com