Welcome Guest, Not a member yet? Register   Sign In
html class, template and links ...
#1

[eluser]raimon[/eluser]
Hi,

I think I read that we can store the preferences of the tables in some config.file, but reading again the docs, I don't find it ...

I mean I'd like to store those values, more or less, so all the tables will have the same look:
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 bgcolor="#f9f9f9">',
                            'row_alt_end'         => '</tr>',
                            'cell_alt_start'      => '<td>',
                            'cell_alt_end'        => '</td>',

                            'table_close'         => '</table>'
                      );

        $this->table->set_template($tmpl);

also, I don't see the option for adding some links to some elements, the <a href> element ...

I know those html classes are for quick views/results, and maybe at the end you have to create your own parses/library/class for your tables ...

thanks,

raimon




Theme © iAndrew 2016 - Forum software by © MyBB