NobuNobu
nobun****@users*****
2006年 9月 23日 (土) 15:57:46 JST
Index: xoops2jp/html/class/xoopsform/themeform.php diff -u xoops2jp/html/class/xoopsform/themeform.php:1.2.8.2 xoops2jp/html/class/xoopsform/themeform.php:1.2.8.3 --- xoops2jp/html/class/xoopsform/themeform.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/themeform.php Sat Sep 23 15:57:46 2006 @@ -1,5 +1,5 @@ <?php -// $Id: themeform.php,v 1.2.8.2 2006/09/22 15:47:21 minahito Exp $ +// $Id: themeform.php,v 1.2.8.3 2006/09/23 06:57:46 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -64,14 +64,8 @@ function insertBreak($extra = '', $class= '') { $class = ($class != '') ? " class='$class'" : ''; - //Fix for $extra tag not showing - if ($extra) { - $extra = "<tr><td colspan='2' $class>$extra</td></tr>"; - $this->addElement($extra); - } else { - $extra = "<tr><td colspan='2' $class> </td></tr>"; - $this->addElement($extra); - } + $extra = ($extra != '') ? $extra : ' '; + $this->addElement(new XoopsFormBreak($extra, $class)) ; } /** Index: xoops2jp/html/class/xoopsform/formbreak.php diff -u /dev/null xoops2jp/html/class/xoopsform/formbreak.php:1.1.2.1 --- /dev/null Sat Sep 23 15:57:46 2006 +++ xoops2jp/html/class/xoopsform/formbreak.php Sat Sep 23 15:57:46 2006 @@ -0,0 +1,12 @@ +<? +class XoopsFormBreak extends XoopsFormElement { + function XoopsFormBreak($extra = '', $class= '') { + $this->setExtra($extra); + $this->setClass($class); + } + + function isBreak() { + return true; + } +} +?>