version 1.420, 2010/08/11 10:57:36
|
version 1.423, 2010/09/14 03:48:36
|
Line 2056 sub start_table {
|
Line 2056 sub start_table {
|
|
|
my $table = new Apache::lontable(); |
my $table = new Apache::lontable(); |
if ((defined $border) && ($border > 0)) { |
if ((defined $border) && ($border > 0)) { |
&Apache::lonnet::logthis("Turning on table borderes: $border"); |
# &Apache::lonnet::logthis("Turning on table borders: $border"); |
$table->table_border(1); |
$table->table_border(1); |
if ($cell_border ne 'none') { |
if ($cell_border ne 'none') { |
$table->cell_border(1); # html specs that border turns on both...unless rules='none'. |
$table->cell_border(1); # html specs that border turns on both...unless rules='none'. |
Line 2065 sub start_table {
|
Line 2065 sub start_table {
|
# Only all or nothing for cell borders for now: |
# Only all or nothing for cell borders for now: |
|
|
if ((defined $cell_border) && ($cell_border ne 'none')) { |
if ((defined $cell_border) && ($cell_border ne 'none')) { |
&Apache::lonnet::logthis("Turning on cell borders: $cell_border"); |
# &Apache::lonnet::logthis("Turning on cell borders: $cell_border"); |
$table->cell_border(1); |
$table->cell_border(1); |
} |
} |
if (defined $theme) { |
if (defined $theme) { |
Line 2193 sub end_table {
|
Line 2193 sub end_table {
|
|
|
my $table = pop(@Apache::londefdef::table); |
my $table = pop(@Apache::londefdef::table); |
my $t = $table->generate(); |
my $t = $table->generate(); |
|
# &Apache::lonnet::logthis("Generating string"); |
$currentstring = $t->generate_string(); |
$currentstring = $t->generate_string(); |
|
# &Apache::lonnet::logthis("Generated: $currentstring"); |
&enable_para(); |
&enable_para(); |
#-------------------------------------------------------------- |
#-------------------------------------------------------------- |
# Old table code: |
# Old table code: |