X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fhtml.php;h=b82dc5eefd9ad3ddebfaea305037f383cb5bbed3;hp=0aac1864f83ccc4f027eae9d6ac3d50ec09d821d;hb=d5bb4a01e881b29bea9fefc1dd900c599c36bfc5;hpb=d68323ff96429e9d788a5144aaf8aa1afffc494c diff --git a/functions/html.php b/functions/html.php index 0aac1864..b82dc5ee 100644 --- a/functions/html.php +++ b/functions/html.php @@ -3,7 +3,7 @@ /** * html.php * - * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Copyright (c) 1999-2003 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * The idea is to inlcude here some functions to make easier @@ -11,9 +11,20 @@ * html outputs. * * $Id$ + * @package squirrelmail */ - function html_tag( $tag, // Tag to output +/** + * Generate html tags + * + * @param string $tag Tag to output + * @param string $val Value between tags + * @param string $align Alignment (left, center, etc) + * @param string $bgcolor Back color in hexadecimal + * @param string $xtra Extra options + * @return string HTML ready for output + */ +function html_tag( $tag, // Tag to output $val = '', // Value between tags $align = '', // Alignment $bgcolor = '', // Back color @@ -72,7 +83,7 @@ if ( $val <> '' ) { $ret .= ">$val"; } else { - $ret .= ' />'; + $ret .= '>'; } return( $ret );