prefix . "websimon_tables"; $result = $wpdb->get_results("SELECT * FROM $table_name"); foreach ($result as $results) { $id = 't' . $results->id; $style = $results->style; $table = $results->tablename; $design = $results->design; $numcol = $results->cols; $adv = $results->advanced; $advanced = explode(';', $adv); //skin design $design_elements = explode(';', $design); $text_align = $design_elements[0]; $h_borders = $design_elements[2]; $v_borders = $design_elements[3]; $shadow_effect = $design_elements[4]; $hover_effect = $design_elements[5]; $font_size_h = $design_elements[6]; $font_size_b = $design_elements[7]; $colwidths = explode(':' , $design_elements[8]); $fixed_width = $design_elements[9]; $cell_padding = $design_elements[10]; $line_height_b = $design_elements[11]; $line_height_h = $design_elements[12]; $table_text_align_h = $design_elements[13]; $v_text_align = $design_elements[14]; /* Custom style */ if ($style == 'custom') { $startcol = $advanced[3]; $endcol = $advanced[4]; $startcolf = $advanced[5]; $endcolf = $advanced[6]; $row_color = $advanced[7]; $alt_row_color = $advanced[8]; $h_font_color = $advanced[9]; $f_font_color = $advanced[10]; $c_font_color = $advanced[11]; $v_border_color = $advanced[12]; $h_border_color = $advanced[13]; echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #' . $h_border_color . ';'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #' . $v_border_color . ';'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 0px 5px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #' . $h_font_color . '; background: -moz-linear-gradient(center top , #' . $startcol . ', #' . $endcol . ') repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#' . $startcol . '", endColorstr="#' . $endcol . '"); background: -webkit-gradient(linear, left top, left bottom, from(#' . $startcol . '), to(#' . $endcol . ')); font-size: ' . $font_size_h . 'em; letter-spacing: 0; line-height: ' . $line_height_h . '; padding: 4px; text-transform: none; text-align: ' . $table_text_align_h . ';'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #' . $h_border_color . ';'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #' . $v_border_color . ';'; } echo ' } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #' . $row_color . '; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #' . $alt_row_color . '; } table#' . $id . ' tbody tr td { color: #' . $c_font_color . '; padding: 5px; border-width: 0px; line-height: ' . $line_height_b . '; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #' . $h_border_color . ';'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #' . $v_border_color . ';'; } echo ' text-align: ' . $text_align . '; vertical-align: ' . $v_text_align . ';' . ' } table#' . $id . ' tbody tr:hover td {'; if ($hover_effect != '' ) { echo 'background: none repeat scroll 0 0 #EEEEEE;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { color: #' . $f_font_color . '; background: -moz-linear-gradient(center top , #' . $startcolf . ', #' . $endcolf . ') repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#' . $startcolf . '", endColorstr="#' . $endcolf . '"); background: -webkit-gradient(linear, left top, left bottom, from(#' . $startcolf . '), to(#' . $endcolf . ')); padding: 4px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #' . $v_border_color . ';'; } echo ' } '; } /* Minimalist White skin */ if ($style == 'minimalistwhite') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; margin: 20px 0; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #EEEEEE;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #EEEEEE;'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #EEEEEE;'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #333333; background: none repeat scroll 0 0 #FFFFFF; font-size: ' . $font_size_h . 'em; letter-spacing: 0; line-height: ' . $line_height_h . '; padding: 4px; text-transform: none; text-align: ' . $table_text_align_h . ';'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #EEEEEE;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #EEEEEE;'; } echo ' } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #FFFFFF; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #FDFDFD; } table#' . $id . ' tbody tr td { padding: 5px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #EEEEEE;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #EEEEEE;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' }'; if ($hover_effect != '' ) { echo ' table#' . $id . ' tbody tr:hover td { background: none repeat scroll 0 0 #F2F2F2; color: #000000;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { background: none repeat scroll 0 0 #FCFCFC; padding: 4px; border-width: 0px; color: #7a7a7a; font-size: ' . $font_size_b . 'em; border-top: medium none; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #EEEEEE;'; } echo ' } '; } /* Black and white skin */ if ($style == 'blackwhite') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; margin: 20px 0; line-height: 1.2em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #AFAFAF;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #AFAFAF;'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #AFAFAF;'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #EEEEEE; background: -moz-linear-gradient(center top , #1D1D1D, #303030) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1D1D1D", endColorstr="#303030"); background: -webkit-gradient(linear, left top, left bottom, from(#1D1D1D), to(#303030)); font-size: ' . $font_size_h . 'em; letter-spacing: 0; line-height: ' . $line_height_h . '; text-align: ' . $table_text_align_h . '; padding: 4px; text-transform: none;'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #AFAFAF;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #AFAFAF;'; } echo ' }'; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #FFFFFF; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #FDFDFD; } table#' . $id . ' tbody tr td { padding: 5px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #AFAFAF;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #AFAFAF;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' }'; if ($hover_effect != '' ) { echo ' table#' . $id . ' tbody tr:hover td { background: none repeat scroll 0 0 #F2F2F2; color: #000000;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { background: -moz-linear-gradient(center top , #1D1D1D, #303030) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1D1D1D", endColorstr="#303030"); background: -webkit-gradient(linear, left top, left bottom, from(#1D1D1D), to(#303030)); padding: 4px; border-width: 0px; font-size: ' . $font_size_b . 'em; color: #CCCCCC; border-top: medium none; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #AFAFAF;'; } echo ' } '; } /* Lightblue skin */ if ($style == 'lightblue') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; margin: 20px 0; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #94DBFF;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #94DBFF;'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #94DBFF;'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #333333; background: none repeat scroll 0 0 #D1F0FF; font-size: 1em; letter-spacing: 0; line-height: ' . $line_height_h . '; font-size: ' . $font_size_h . 'em; padding: 4px; text-transform: none; text-align: ' . $table_text_align_h . ';'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #94DBFF;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #94DBFF;'; } echo ' } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #F0FAFF; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #FCFEFF; } table#' . $id . ' tbody tr td { padding: 5px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #94DBFF;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #94DBFF;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' } table#' . $id . ' tbody tr:hover td {'; if ($hover_effect != '' ) { echo 'background: none repeat scroll 0 0 #D1F0FF;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { background: none repeat scroll 0 0 #D1F0FF; padding: 4px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #94DBFF;'; } echo ' } '; } /* Kind of blue */ if ($style == 'blue') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; margin: 20px 0; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #1D5791;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #1D5791;'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #1D5791;'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #FFFFFF; background: none repeat scroll 0 0 #297CCF; font-size: ' . $font_size_h . 'em; letter-spacing: 0; line-height: ' . $line_height_h . '; padding: 4px; text-transform: none; text-align: ' . $table_text_align_h . ';'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #1D5791;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #1D5791;'; } echo ' } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #DFECF8; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #BFD8F1; } table#' . $id . ' tbody tr td { padding: 5px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #1D5791;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #1D5791;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' }'; if ($hover_effect != '' ) { echo ' table#' . $id . ' tbody tr:hover td { background: none repeat scroll 0 0 #2163A6; color: #FFFFFF;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { background: none repeat scroll 0 0 #297CCF; padding: 4px; border-width: 0px; color: #FFFFFF; border-top: medium none; font-size: ' . $font_size_b . 'em; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #1D5791;'; } echo ' } '; } /* Dark blue skin */ if ($style == 'darkblue') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; margin: 20px 0; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #24476B;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #24476B;'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #24476B;'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #EEF0F3; background: -moz-linear-gradient(center top , #24476B, #506C89) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#24476B", endColorstr="#506C89"); background: -webkit-gradient(linear, left top, left bottom, from(#24476B), to(#506C89)); font-size: ' . $font_size_h . 'em; letter-spacing: 0; line-height: ' . $line_height_h . '; padding: 4px; text-transform: none; text-align: ' . $table_text_align_h . ';'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #24476B;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #24476B;'; } echo ' } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #3A597A; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #627B95; } table#' . $id . ' tbody tr td { color: #EEF0F3; padding: 5px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #24476B;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #24476B;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' }'; if ($hover_effect != '' ) { echo ' table#' . $id . ' tbody tr:hover td { background: none repeat scroll 0 0 #48627C; color: #EEF0F3;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { color: #EEF0F3; background: -moz-linear-gradient(center top , #506C89, #24476B) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#506C89", endColorstr="#24476B"); background: -webkit-gradient(linear, left top, left bottom, from(#506C89), to(#24476B)); padding: 4px; font-size: ' . $font_size_b . 'em; border-width: 0px; border-top: medium none; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #24476B;'; } echo ' } '; } /* Lightred skin */ if ($style == 'lightred') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; margin: 20px 0; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #FFE6E6;'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #FFE6E6;'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #333333; background: -moz-linear-gradient(center top , #FFCCCC, #FFB2B2) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFCCCC", endColorstr="#FFB2B2"); background: -webkit-gradient(linear, left top, left bottom, from(#FFCCCC), to(#FFB2B2)); font-size: ' . $font_size_h . 'em; letter-spacing: 0; line-height: ' . $line_height_h . '; padding: 4px; text-transform: none; text-align: ' . $table_text_align_h . ';'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #FFE6E6;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #FFE6E6;'; } echo ' } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #FFFFFF; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #FFF0F0; } table#' . $id . ' tbody tr td { padding: 5px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #FFE6E6;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #FFE6E6;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' } table#' . $id . ' tbody tr:hover td {'; if ($hover_effect != '' ) { echo 'background: none repeat scroll 0 0 #FFDCDC;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { background: none repeat scroll 0 0 #FFCCCC; padding: 4px; border-width: 0px; border-top: medium none; font-size: ' . $font_size_b . 'em; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #FFE6E6;'; } echo ' } '; } /* Darkred skin */ if ($style == 'darkred') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; margin: 20px 0; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #CCCCCC;'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #CCCCCC;'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #EEEEEE; background: -moz-linear-gradient(center top , #660000, #8F0000) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#660000", endColorstr="#8F0000"); background: -webkit-gradient(linear, left top, left bottom, from(#660000), to(#8F0000)); font-size: ' . $font_size_h . 'em; letter-spacing: 0; line-height: ' . $line_height_h . '; padding: 4px; text-transform: none; text-align: ' . $table_text_align_h . ';'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #CCCCCC;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #CCCCCC;'; } echo ' } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #FFFFFF; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #FDFDFD; } table#' . $id . ' tbody tr td { padding: 5px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #CCCCCC;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #CCCCCC;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' } table#' . $id . ' tbody tr:hover td {'; if ($hover_effect != '' ) { echo 'background: none repeat scroll 0 0 #EEEEEE;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { color: #EEEEEE; background: -moz-linear-gradient(center top , #660000, #8F0000) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#660000", endColorstr="#8F0000"); background: -webkit-gradient(linear, left top, left bottom, from(#660000), to(#8F0000)); padding: 4px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #CCCCCC;'; } echo ' } '; } /* Coffee skin */ if ($style == 'coffee') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; margin: 20px 0; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #CCCCCC;'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #CCCCCC;'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #EEEEEE; background: -moz-linear-gradient(center top , #472400, #5C2E00) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#472400", endColorstr="#5C2E00"); background: -webkit-gradient(linear, left top, left bottom, from(#472400), to(#5C2E00)); font-size: ' . $font_size_h . 'em; letter-spacing: 0; line-height: ' . $line_height_h . '; padding: 4px; text-transform: none; text-align: ' . $table_text_align_h . ';'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #CCCCCC;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #CCCCCC;'; } echo ' } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #FFFFFF; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #F0EBE6; } table#' . $id . ' tbody tr td { padding: 5px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #CCCCCC;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #CCCCCC;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' } table#' . $id . ' tbody tr:hover td {'; if ($hover_effect != '' ) { echo 'background: none repeat scroll 0 0 #C2AD99;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { color: #EEEEEE; background: -moz-linear-gradient(center top , #472400, #5C2E00) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#472400", endColorstr="#5C2E00"); background: -webkit-gradient(linear, left top, left bottom, from(#472400), to(#5C2E00)); padding: 4px; font-size: ' . $font_size_b . 'em; border-width: 0px; border-top: medium none; text-align: ' . $text_align . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #CCCCCC;'; } echo ' } '; } /* Green skin */ if ($style == 'green') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; margin: 20px 0; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($h_borders != '' ) { echo 'border-top: 1px solid #CCEBCC;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #CCEBCC;'; } if ($v_borders != '' ) { echo 'border-right: 1px solid #CCEBCC;'; } if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #EEF0F3; background: -moz-linear-gradient(center top , #006B00, #008A00) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#006B00", endColorstr="#008A00"); background: -webkit-gradient(linear, left top, left bottom, from(#006B00), to(#008A00)); font-size: ' . $font_size_h . 'em; letter-spacing: 0; line-height: ' . $line_height_h . '; padding: 4px; text-transform: none; text-align: ' . $table_text_align_h . ';'; if ($h_borders != '' ) { echo 'border-bottom: 1px solid #CCEBCC;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #006B00;'; } echo ' } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #FFFFFF; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #F0F5E6; } table#' . $id . ' tbody tr td { color: #003D00; padding: 5px; border-width: 0px; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #CCEBCC;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #CCEBCC;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' }'; if ($hover_effect != '' ) { echo ' table#' . $id . ' tbody tr:hover td { background: none repeat scroll 0 0 #D8DCCF; color: #003D00;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { color: #EEF0F3; background: -moz-linear-gradient(center top , #006B00, #008A00) repeat scroll 0 0 transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#006B00", endColorstr="#008A00"); background: -webkit-gradient(linear, left top, left bottom, from(#006B00), to(#008A00)); padding: 4px; font-size: ' . $font_size_b . 'em; border-width: 0px; border-top: medium none; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #006B00;'; } echo ' } '; } /* Blue newpaper e.g. financial */ if ($style == 'bluenewspaper') { echo ' table#' . $id . ' { border-collapse: collapse; border-width: 0px; border-style: outset; margin: 20px 0; border: 1px solid #6699CC; line-height: 2.0em; text-align: ' . $text_align . '; vertical-align: top;'; if ($fixed_width != '' ) { echo 'width: ' . $fixed_width . 'px;'; } else { echo 'width: 100%;';} if ($shadow_effect != '' ) { echo 'box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);'; } echo ' } table#' . $id . ' thead tr { } table#' . $id . ' thead tr th.' . $id . ' { color: #6699CC; letter-spacing: 0; line-height: ' . $line_height_h . '; font-size: ' . $font_size_h . 'em; padding: 4px; text-transform: none; border-bottom: 1px dashed #6699CC; text-align: ' . $table_text_align_h . '; } '; $i = 1; while ($i <= $numcol) { echo 'table#' . $id . ' thead tr th.' . $id . '#n' . $i . ' { width: ' . $colwidths[$i-1] . '; }'; $i++; } echo ' table#' . $id . ' thead tr th#' . $id . '.start { } table#' . $id . ' thead tr th#' . $id . '.end { } table#' . $id . ' tbody tr { background: none repeat scroll 0 0 #FFFFFF; } table#' . $id . ' tbody tr.table-alternate { background: none repeat scroll 0 0 #FFFFFF; } table#' . $id . ' tbody tr td { padding: 5px; border-width: 0px; color: #666699; font-size: ' . $font_size_b . 'em; border-top: medium none;'; if ($cell_padding != '' ) { echo 'padding: ' . $cell_padding . 'px;'; } if ($h_borders != '' ) { echo 'border-bottom: 1px solid #C2D6EB;'; } if ($v_borders != '' ) { echo 'border-left: 1px solid #C2D6EB;'; } echo ' text-align: ' . $text_align . '; line-height: ' . $line_height_b . '; vertical-align: ' . $v_text_align . ';' . ' } table#' . $id . ' tbody tr td.start { border-left: medium none; } table#' . $id . ' tbody tr:hover td {'; if ($hover_effect != '' ) { echo 'background: none repeat scroll 0 0 #EDF3F9;'; } echo ' } table#' . $id . ' tfoot tr { } table#' . $id . ' tfoot tr td { color: #6699CC; padding: 4px; border-width: 0px; border-top: medium none; font-size: ' . $font_size_b . 'em; text-align: ' . $table_text_align_h . ';'; if ($v_borders != '' ) { echo 'border-left: 1px solid #C2D6EB;'; } echo ' } table#' . $id . ' tfoot tr td.start { border-left: medium none; } '; } } ?>