anavas

Untitled

Jun 13th, 2017
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.72 KB | None | 0 0
  1. <?php
  2.     include_once("../../config.inc.php");
  3. ?>
  4. <form method="post" name="myDXForm" id="myDXForm" action="">
  5. <div class="table-rep-plugin">
  6.         <div class="table-responsive" data-pattern="priority-columns">
  7.             <table id="dx1" class="table table-striped table-bordered table-condensed table-hover table-small-font" >
  8.                 <thead>
  9.                     <tr>
  10.                         <th></th>
  11.                         <th>Code</th>
  12.                         <th>Description</th>
  13.                     </tr>
  14.                 </thead>
  15.                 <tbody>
  16.                     <?php
  17.                    
  18.                     ?>
  19.                 </tbody>
  20.         </table>
  21.     </div>
  22. </div>
  23. </form>
  24. <script type="text/javascript">
  25.     var dx_Table;
  26. $(document).ready(function() {
  27.  
  28.      dx_Table = $('#dx1').DataTable( {
  29.         "processing": true,
  30.         "serverSide": true,
  31.         "ajax": "get_dx.php",
  32.         "aaSorting": [[ 1, "asc" ]],
  33.         'columnDefs': [
  34.         {
  35.             'targets': 0,
  36.             'checkboxes': {
  37.                'selectRow': true
  38.             }
  39.         },
  40.         {"bSortable": false , "aTargets": [0] },
  41.         ],
  42.         'select': {
  43.             'style': 'multi'
  44.         },
  45.         "iDisplayLength": 20,
  46.         "aLengthMenu": [[10, 20, 25, 50, 100,200,500], [10, 20, 25, 50, 100,200,500]],
  47.         "oLanguage": {
  48.             sProcessing: '<img src="<?php echo DOC_ROOT; ?>assets/images/preloader.gif">'
  49.         },
  50.         "drawCallback": function( settings ) {
  51.         },
  52.         "rowCallback": function( row, data, index ) {
  53.         },
  54.         "preDrawCallback": function( row, data, index ) {
  55.         },
  56.         "fnInitComplete": function(oSettings, json) {
  57.             $('dx1_filter input[type=search]').focus();
  58.         }
  59.     } );
  60.    
  61.     } );
  62.    
  63. </script>
Add Comment
Please, Sign In to add comment