Since the lists a bit quiet and I was working on this, here's a simplified
version of "box" that I came up with. Not much but I thought it may be
useful since "box" is part of the default FreeTrade system.
The current version (including the FreeTrade version 2 one) doesn't work
across all browsers (particularly Macintosh ones) this is just a simple box
within cellpadded box which works and even simplifies the code. Please let
me know of any errors...
Nick
$included_flag = 'INCLUDE_' . basename(__FILE__);
if(defined($included_flag))
//if this module has been included already, then the
//constant will be defined. Note the unusual use of
//the return statement here. Control will return to
//the file that included it.
return;
define($included_flag, TRUE);
function startBox($BoxTitle=FALSE, $BoxOptions=FALSE)
{
global $SiteColor;
print("<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\""
.$SiteColor['Border']. "\">\n");
if($BoxTitle)
{
print("<TR>\n");
print("<TD>");
print("<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"5\">\n");
print("<TR>\n");
print("<TD>");
print("$BoxTitle");
if($BoxOptions)
{
print(" | $BoxOptions\n");
}
print("</TD>\n");
print("</TR>\n");
print("</TABLE>\n");
print("</TD>\n");
print("</TR>\n");
}
print("<TR>\n");
print("<TD>");
print("<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\"
cellpadding=\"5\" bgcolor=\"#FFFFFF\">\n");
print("<TR>\n");
print("<TD>");
}
function endBox()
{
print("</TD>\n");
print("</TR>\n");
print("</TABLE>\n");
print("</TD>\n");
print("</TR>\n");
print("</TABLE>\n");
}
----------------------
Lab2 Design-Unit
URL: http://www.lab2.com.au
e-mail: [EMAIL PROTECTED]
----------------------
_______________________________________________
FreeTrade-dev mailing list
[EMAIL PROTECTED]
http://share.whichever.com/mailman/listinfo/freetrade-dev