SHARE
TWEET

Untitled

a guest Jul 17th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <body>
  2.     <c:if test="${not empty table}">
  3.   ${table}
  4. </c:if>
  5.  
  6. </body>
  7. <script>
  8.  
  9.     $(document).ready(function() {
  10.         $('#sheet_0').DataTable();
  11.  
  12.         var container = $('#sheet_0');
  13.         var rowSize = $('table#sheet_0 tr').length
  14.         alert(rowSize);
  15.  
  16.         for (var r = 0; r < rowSize; r++) {
  17.             $('<input />', {
  18.                 type : 'checkbox',
  19.                 id : 'cb' + id,
  20.                 value : name
  21.             }).appendTo('tr');
  22.         }
  23.  
  24.     });    
  25. </script>
  26.    
  27. <table border="1" cellpadding="2" cellspacing="0" id="sheet_0" style="border-collapse: collapse;">
  28.           <tr>
  29.             <td class="td_0_1">&nbsp;</td><td class="td_0_1">&nbsp;</td><td class="td_0_1">&nbsp;</td><td class="td_0_1">&nbsp;</td><td class="td_0_1" colspan="3">Seguros Generales</td><td class="td_0_1">&nbsp;</td><td class="td_0_1">&nbsp;</td><td class="td_0_1">&nbsp;</td><td class="td_0_1">&nbsp;</td><td class="td_0_1">&nbsp;</td><td class="td_0_1" colspan="3">Seguros de Personas</td><td class="td_0_1">&nbsp;</td><td class="td_0_1">&nbsp;</td><td class="td_0_1">&nbsp;</td><td class="td_0_1" rowspan="2">Total general</td>
  30.           </tr>
  31.           <tr>
  32.             <td class="td_0_2">Modalidad</td><td class="td_0_2">Ramo</td><td class="td_0_2">LBC-G</td><td class="td_0_2">CRI-G</td><td class="td_0_2">ILL-G</td><td class="td_0_2">ALI-G</td><td class="td_0_3">BIS-G</td><td class="td_0_3">FOR-G</td><td class="td_0_3">LAT-G</td><td class="td_0_2">TOT. SG</td><td class="td_0_3">BUP-P</td><td class="td_0_2">LVI-P</td><td class="td_0_2">LBC-P</td><td class="td_0_3">PRO-P</td><td class="td_0_3">NAL-P</td><td class="td_0_3">ALI-P</td><td class="td_0_3">CRDI-P</td><td class="td_0_2">TOT. SP</td>
  33.           </tr>
  34.           <tr>
  35.             <td class="td_0_2">&nbsp;</td><td class="td_0_2">&nbsp;</td><td class="td_0_2">&nbsp;</td><td class="td_0_2">&nbsp;</td><td class="td_0_2">&nbsp;</td><td class="td_0_2">&nbsp;</td><td class="td_0_3">&nbsp;</td><td class="td_0_3">&nbsp;</td><td class="td_0_3">&nbsp;</td><td class="td_0_2">&nbsp;</td><td class="td_0_3">&nbsp;</td><td class="td_0_2">&nbsp;</td><td class="td_0_2">&nbsp;</td><td class="td_0_3">&nbsp;</td><td class="td_0_3">&nbsp;</td><td class="td_0_3">&nbsp;</td><td class="td_0_3">&nbsp;</td><td class="td_0_2">&nbsp;</td><td class="td_0_2">&nbsp;</td>
  36.           </tr>
  37.           <tr>
  38.             <td class="td_0_2">Seguros Generales</td><td class="td_0_2">Incendio</td><td class="td_0_3">0.0</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">0.0</td><td class="td_0_3">-</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_2">-</td><td class="td_0_2">0.0</td>
  39.           </tr>
  40.           <tr>
  41.             <td class="td_0_2">&nbsp;</td><td class="td_0_2">Robo</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_2">-</td><td class="td_0_3">-</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_2">-</td><td class="td_0_2">-</td>
  42.           </tr>
  43.           <tr>
  44.             <td class="td_0_2">&nbsp;</td><td class="td_0_2">Transportes</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_2">-</td><td class="td_0_3">-</td><td class="td_0_4">-</td><td class="td_0_4">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_3">-</td><td class="td_0_2">-</td><td class="td_0_2">-</td>
  45.           </tr>
  46.           <tr>
  47. <table>
RAW Paste Data
Top