×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 6, 2018 9:18 AM
Views: 2876
  1. $template = array(
  2.         'table_open'            => '<table border="0" cellpadding="4" cellspacing="0">',
  3.  
  4.         'thead_open'            => '<thead>',
  5.         'thead_close'           => '</thead>',
  6.  
  7.         'heading_row_start'     => '<tr>',
  8.         'heading_row_end'       => '</tr>',
  9.         'heading_cell_start'    => '<th>',
  10.         'heading_cell_end'      => '</th>',
  11.  
  12.         'tbody_open'            => '<tbody>',
  13.         'tbody_close'           => '</tbody>',
  14.  
  15.         'row_start'             => '<tr>',
  16.         'row_end'               => '</tr>',
  17.         'cell_start'            => '<td>',
  18.         'cell_end'              => '</td>',
  19.  
  20.         'row_alt_start'         => '<tr>',
  21.         'row_alt_end'           => '</tr>',
  22.         'cell_alt_start'        => '<td>',
  23.         'cell_alt_end'          => '</td>',
  24.  
  25.         'table_close'           => '</table>'
  26. );
  27.  
  28. $this->table->set_template($template);