Adding last two functions from i18n.php
[squirrelmail.git] / functions / html.php
index 0aac1864f83ccc4f027eae9d6ac3d50ec09d821d..b82dc5eefd9ad3ddebfaea305037f383cb5bbed3 100644 (file)
@@ -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
  * 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</$tag>";
         } else {
-            $ret .= ' />';
+            $ret .= '>';
         } 
 
         return( $ret );