> > That's one reason I started using a function to generate image tags.
>
> Is this function in v2 of Freetrade. I'm interested in how you handled
> different paths.
Yeah, it's in FT2:
/*
** Function getImage
** Input: STRING image, INTEGER width, INTEGER height
** Output: STRING
** Description: returns an image tag
*/
function getImage($src, $width=0, $height=0, $alt="", $hspace=FALSE,
$align=FALSE)
{
$tag = "<img src=\"" . EXTERNAL_PATH ."images/$src\"";
if($width > 0)
{
$tag .= " width=\"$width\"";
}
if($height > 0)
{
$tag .= " height=\"$height\"";
}
if($hspace)
{
$tag .= " hspace=\"$hspace\"";
}
if($align)
{
$tag .= " align=\"$align\"";
}
//always add an alt property and a border of zero
$tag .= " alt=\"$alt\" border=\"0\">";
return($tag);
}
Nothing special, just slap the EXTERNAL_PATH in front of an images
directory.
Leon
_______________________________________________
FreeTrade-dev mailing list
[EMAIL PROTECTED]
http://share.whichever.com/mailman/listinfo/freetrade-dev