themeroller with php dynamic table
themeroller with php dynamic table
Hi Allan, thanks for the great work.
I'm using php to open a csv file and create my table. It works great with your default styling, but I can't seem to get themeroller to load. I followed your very helpful examples, but I seem to be missing something. Thanks in advance.
My code:
[code]
table
@import "../media/css/demo_page.css";
@import "../media/css/demo_table_jui.css";
@import "../media/themes/smoothness/jquery-ui-1.8.4.custom.css";
$(document).ready(function() {
oTable = $('#example').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
} );
Live example
Part Number
Brand
Finish
Size
ET
PCD
Hub
QTY
Price
<?php
$first = true;
//gets csv file
if ($f = fopen("overstock_current.csv", "r")){
while($l=fgetcsv($f)){
//ignore first line of csv
if ($first) {
$first = false;
continue;
}
echo "\n";
}
fclose($f);
}
?>
[/code]
I'm using php to open a csv file and create my table. It works great with your default styling, but I can't seem to get themeroller to load. I followed your very helpful examples, but I seem to be missing something. Thanks in advance.
My code:
[code]
table
@import "../media/css/demo_page.css";
@import "../media/css/demo_table_jui.css";
@import "../media/themes/smoothness/jquery-ui-1.8.4.custom.css";
$(document).ready(function() {
oTable = $('#example').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
} );
Live example
Part Number
Brand
Finish
Size
ET
PCD
Hub
QTY
Price
<?php
$first = true;
//gets csv file
if ($f = fopen("overstock_current.csv", "r")){
while($l=fgetcsv($f)){
//ignore first line of csv
if ($first) {
$first = false;
continue;
}
echo "\n";
}
fclose($f);
}
?>
[/code]
This discussion has been closed.
Replies
Allan