• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change layout for specified rows

#1
[eluser]Unknown[/eluser]
How can I change the layout of specified rows (not all rows) with the HTML Table Class in CodeIgniter? I tried it with the template array, but this effects the entire table respectively all rows.

Code:
$tmpl = array (
    'table_open'          => '<table border="0" cellpadding="4" cellspacing="0">',
    'heading_row_start'   => '<tr>',
    'heading_row_end'     => '</tr>',
    'heading_cell_start'  => '<th>',
    'heading_cell_end'    => '</th>',
    'row_start'           => '<tr>',
    'row_end'             => '</tr>',
    'cell_start'          => '<td>',
    'cell_end'            => '</td>',
    'row_alt_start'       => '<tr>',
    'row_alt_end'         => '</tr>',
    'cell_alt_start'      => '<td>',
    'cell_alt_end'        => '</td>',
    'table_close'         => '</table>'
);
$this->table->set_template($tmpl);



Messages In This Thread
Change layout for specified rows - by El Forum - 10-04-2012, 05:19 AM
Change layout for specified rows - by El Forum - 10-04-2012, 05:33 AM
Change layout for specified rows - by El Forum - 10-04-2012, 05:57 AM
Change layout for specified rows - by El Forum - 10-04-2012, 05:23 PM
Change layout for specified rows - by El Forum - 10-04-2012, 07:15 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.