Diff for /loncom/interface/loncommon.pm between versions 1.1074 and 1.1075

version 1.1074, 2012/05/06 22:09:14 version 1.1075, 2012/05/09 20:17:47
Line 7655  sub validate_page { Line 7655  sub validate_page {
   
   
 sub start_scrollbox {  sub start_scrollbox {
     my ($outerwidth,$width,$height,$id)=@_;      my ($outerwidth,$width,$height,$id,$bgcolor)=@_;
     unless ($outerwidth) { $outerwidth='520px'; }      unless ($outerwidth) { $outerwidth='520px'; }
     unless ($width) { $width='500px'; }      unless ($width) { $width='500px'; }
     unless ($height) { $height='200px'; }      unless ($height) { $height='200px'; }
     my ($table_id,$div_id);      my ($table_id,$div_id,$tdcol);
     if ($id ne '') {      if ($id ne '') {
         $table_id = " id='table_$id'";          $table_id = " id='table_$id'";
         $div_id = " id='div_$id'";          $div_id = " id='div_$id'";
     }      }
     return "<table style='width: $outerwidth; border: 1px solid none;'$table_id><tr><td style='width: $width;' bgcolor='#FFFFFF'><div style='overflow:auto; width:$width; height: $height;'$div_id>";      if ($bgcolor ne '') {
           $tdcol = "background-color: $bgcolor;";
       }
       return <<"END";
   <table style="width: $outerwidth; border: 1px solid none;"$table_id><tr><td style="width: $width;$tdcol"><div style="overflow:auto; width:$width; height: $height;"$div_id>
   END
 }  }
   
 sub end_scrollbox {  sub end_scrollbox {

Removed from v.1.1074  
changed lines
  Added in v.1.1075


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>