Author: greg.ercolano
Date: 2012-02-22 12:24:16 -0800 (Wed, 22 Feb 2012)
New Revision: 651
Log:
Small mods to fix bottom table row in software.php.


Modified:
   trunk/phplib/html.php
   trunk/software.php

Modified: trunk/phplib/html.php
===================================================================
--- trunk/phplib/html.php       2012-02-22 20:01:47 UTC (rev 650)
+++ trunk/phplib/html.php       2012-02-22 20:24:16 UTC (rev 651)
@@ -552,12 +552,13 @@
 //
 
 function
-html_end_table()
+html_end_table($class="")              // I - CSS class to use (if any)
 {
   global $html_cols, $html_path, $html_show_all;
 
+  if ( $class == "" ) { $class = "header"; }
   if ($html_show_all)
-    print("<tr class='header'><th align='left' valign='bottom'>"
+    print("<tr class='${class}'><th align='left' valign='bottom'>"
         ."<img src='${html_path}images/hdr-bottom-left.gif' width='4' 
height='4' "
         ."alt=''></th>"
         ."<th colspan='$html_cols'>&nbsp;</th>"

Modified: trunk/software.php
===================================================================
--- trunk/software.php  2012-02-22 20:01:47 UTC (rev 650)
+++ trunk/software.php  2012-02-22 20:24:16 UTC (rev 651)
@@ -124,6 +124,8 @@
   $headings = array("Version", "Filename", "Size", "MD5 Sum");
   $curversion = "";
   $dev = 0;
+  $headerclass = "";           // (uses site defaults)
+  $dataclass = "";             // (uses site defaults)
 
   html_start_table($headings, "- - Public Releases - -");
 
@@ -137,20 +139,20 @@
     $basename = basename($filename);
 
     // dev version?
-    $class = "";
     if ( strncmp($fversion, "1.", 2) != 0 )
     {
-      $class = "data0-red";
       // Start dev section of table?
       if ( $dev == 0 )
       {
-         html_end_table();
-         html_start_table($headings, "- - Development Only - -", "header-red");
+         html_end_table($headerclass);
+         $dataclass = "data0-red";
+         $headerclass = "header-red";
+         html_start_table($headings, "- - Development Only - -", $headerclass);
          $dev = 1;
       }
     }
 
-    html_start_row($class);
+    html_start_row($dataclass);
 
     if ($fversion == $version)
     {
@@ -169,7 +171,7 @@
       {
        print("<td colspan='4'></td>");
        html_end_row();
-       html_start_row($class);
+       html_start_row($dataclass);
       }
 
       $curversion = $fversion;
@@ -188,7 +190,7 @@
     html_end_row();
   }
 
-  html_end_table();
+  html_end_table($headerclass);
 
 ?>
 

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to