Author: greg.ercolano
Date: 2012-02-23 09:13:28 -0800 (Thu, 23 Feb 2012)
New Revision: 655
Log:
Fix "100%" appearing in some tables on front page and elsewhere.
Apparently old code was calling html_start_table() with unused args
that were being ignored, but were now being used by new args I added
recently.
Modified the old code to not pass those ignored args in.
Also, changed the way optional args are initialized with the
new args I added to make the code a little shorter..
Modified:
trunk/applications/index.php
trunk/index.php
trunk/phplib/html.php
Modified: trunk/applications/index.php
===================================================================
--- trunk/applications/index.php 2012-02-22 21:36:37 UTC (rev 654)
+++ trunk/applications/index.php 2012-02-23 17:13:28 UTC (rev 655)
@@ -11,7 +11,7 @@
<?
-html_start_table(array("Quick Info"), "100%", "100%");
+html_start_table(array("Quick Info"));
html_start_row();
?>
Modified: trunk/index.php
===================================================================
--- trunk/index.php 2012-02-22 21:36:37 UTC (rev 654)
+++ trunk/index.php 2012-02-23 17:13:28 UTC (rev 655)
@@ -20,7 +20,7 @@
<?
-html_start_table(array("Quick Info"), "100%", "100%");
+html_start_table(array("Quick Info"));
html_start_row();
?>
@@ -85,7 +85,7 @@
html_end_row();
html_end_table();
-html_start_table(array("Release Schedule"), "100%", "100%");
+html_start_table(array("Release Schedule"));
html_start_row();
?>
Modified: trunk/phplib/html.php
===================================================================
--- trunk/phplib/html.php 2012-02-22 21:36:37 UTC (rev 654)
+++ trunk/phplib/html.php 2012-02-23 17:13:28 UTC (rev 655)
@@ -492,7 +492,7 @@
function
html_start_table($headings, // I - Array of heading strings
$title="", // I - Table title (if any)
- $class="") // I - CSS class to use for heading (if
any)
+ $class="header") // I - CSS class to use for heading (if
any)
{
global $html_row, $html_cols, $html_path, $html_show_all;
@@ -502,7 +502,6 @@
."width='4' height='4'";
$toprt_img = "<img src='${html_path}images/hdr-top-right.gif' "
."width='4' height='4'";
- if ( $class == "" ) { $class = "header"; }
if ($html_show_all)
{
@@ -563,11 +562,10 @@
//
function
-html_end_table($class="") // I - CSS class to use (if any)
+html_end_table($class="header") // 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='${class}'>\n"
." <th align='left' valign='bottom'>"
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit