Advertisement
deprie2324

view

Sep 1st, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.90 KB | None | 0 0
  1.     table id="depomas" cellpadding="0" cellspacing="0" border="0" class="display" width="100%">
  2.           <thead>
  3.           <tr>
  4.             <th width="9%"><div align="center">Tanggal</div></th>
  5.             <th width="9%"><div align="center">Kode Deposit</div></th>
  6.             <th width="20%"><div align="center">Maskapai</div></th>
  7.             <th width="14%"><div align="center">Nilai</div></th>
  8.             <th width="18%"><div align="center">Account</div></th>
  9.             <th width="21%"><div align="center">Keterangan</div></th>
  10.             <th width="9%"><div align="center">Action</div></th>
  11.           </tr>
  12.           </thead>
  13.           <tbody>
  14.           </tbody>
  15.         </table>
  16.  
  17. java -----------
  18. /* ========================================================================= */
  19. /*  Datetable Deposit Maskapai
  20. /* ========================================================================= */
  21.  
  22. $('#depomas').DataTable( {
  23.           "order": [[ 0, "desc" ]],
  24.           "bProcessing": true,
  25.           "bServerSide": true,
  26.           "bJQueryUI": false,
  27.           "responsive": true,
  28.           "oLanguage": {
  29.           "sProcessing": "<img src='dist/img/loading2.gif'>"},
  30.           "sAjaxSource": "module/mod_deposit_maskapai/serverside.php", // Load Data
  31.           "sServerMethod": "POST",
  32.           "columnDefs": [
  33.           { "orderable": true, "targets": 0, "searchable": true },
  34.           { "orderable": true, "targets": 1, "searchable": true },
  35.           { "orderable": true, "targets": 2, "searchable": true },
  36.           { "orderable": true, "targets": 3, "searchable": true },
  37.           { "orderable": true, "targets": 4, "searchable": true },
  38.           { "orderable": true, "targets": 5, "searchable": true },
  39.           { "orderable": false, "targets": 6, "searchable": false },
  40.           ]
  41. });
  42. $('#depomas').removeClass( 'display' ).addClass('table table-striped table-bordered table-hover');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement