Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (2) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2016-04-14 (6 months ago) | Not enough user ratings | Total: 352 This week: 2 | All time: 6,591 This week: 591 |
Version | License | PHP version | Categories | |||
tabler 1.0.0 | MIT/X Consortium ... | 5.4 | HTML, PHP 5 |
Description | Author | |
This class can generate HTML5 table programatically. |
This class allows the ability to quickly create custom HTML5 Bootstrap 3.3.6 tables.
include_once( __DIR__ . '/Tabler.class.php' );
$title = 'My Table'; // table title; REQUIRED
$data = [ ['John','25','male'], ['Jane','32','female'] ]; // table cell data; REQUIRED
$headers = ['Name','Age','Gender']; // table headers; REQUIRED
$doReturn = false; // false = echo html; true = return html; OPTIONAL
$customcss = false; // Use custom css? OPTIONAL
$tabler = new Tabler( $title, $data, $headers ); // instantiate tabler;
$tabler::view(); // view table
Tabler::$_title = 'My Table'; // title of the table;
Tabler::$_headers = ['Name','Age','Gender']; // table headers <th>*</th>;
Tabler::$_data = [ ['John','25','male'], ['Jane','32','female'] ]; // table cells <td>*</td>;
Tabler::$_return = false; // false = echo html; true = return html;
Tabler::$_style = false; // Use custom style?
Tabler::view(); // view table;
$options = [];
$options['title'] = 'My Table';
$options['data'] = [ ['John','25','male'], ['Jane','32','female'] ];
$options['headers'] = ['Name','Age','Gender'];
$options['doReturn'] = false;
$options['customcss'] = false;
$table = Tabler::_singleton( $opt ); // returns html code;
echo $table; // echo table html code;
Files |
File | Role | Description |
---|---|---|
README.md | Doc. | Information and Example |
Tabler.class.php | Class | Main class source file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.