Welcome Guest, Not a member yet? Register   Sign In
checkbox column
#1

How do I make an extra column with checkboxes in a generated table?


Code:
$template = array(
        'table_open'            => '<table border="1" cellpadding="4" cellspacing="0">',

        'thead_open'            => '<thead>',
        'thead_close'           => '</thead>',

        'heading_row_start'     => '<tr>',
        'heading_row_end'       => '</tr>',
        'heading_cell_start'    => '<th>',
        'heading_cell_end'      => '</th>',

        'tbody_open'            => '<tbody>',
        'tbody_close'           => '</tbody>',

        '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($template);
                return $this->table->generate($query);

Thanks in advance Smile
Reply


Messages In This Thread
checkbox column - by FARUKB13 - 12-06-2017, 07:25 AM
RE: checkbox column - by InsiteFX - 12-06-2017, 08:14 AM
RE: checkbox column - by FARUKB13 - 12-06-2017, 08:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB