Tom Hayakawa
tom_g3x****@users*****
2007年 2月 28日 (水) 01:04:43 JST
Index: xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php:1.1.2.5.2.3 xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php:1.1.2.5.2.3.2.1 --- xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php:1.1.2.5.2.3 Thu Jan 18 19:20:41 2007 +++ xoops2jp/html/class/smarty/plugins/function.xoops_textarea.php Wed Feb 28 01:04:43 2007 @@ -2,7 +2,7 @@ /** * * @package Legacy - * @version $Id: function.xoops_textarea.php,v 1.1.2.5.2.3 2007/01/18 10:20:41 nobunobu Exp $ + * @version $Id: function.xoops_textarea.php,v 1.1.2.5.2.3.2.1 2007/02/27 16:04:43 tom_g3x Exp $ * @copyright Copyright 2005, 2006 XOOPSCube.org <http://xoopscube.org/> * @license http://www.gnu.org/licenses/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2 * @@ -51,6 +51,7 @@ // $name = trim($params['name']); $class = isset($params['class']) ? trim($params['class']) : null; + $style = isset($params['style']) ? trim($params['style']) : null; $cols = isset($params['cols']) ? intval($params['cols']) : XOOPS_TEXTAREA_DEFAULT_COLS; $rows = isset($params['rows']) ? intval($params['rows']) : XOOPS_TEXTAREA_DEFAULT_ROWS; $value = isset($params['value']) ? $textFilter->toEdit($params['value']) : null; @@ -66,6 +67,10 @@ $string .= " class=\"${class}\""; } + if ($style) { + $string .= " style=\"${style}\""; + } + $string .= " id=\"$id\""; if($readonly == 1) { Index: xoops2jp/html/class/smarty/plugins/function.xoops_input.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.9.2.4 xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.9.2.4.2.1 --- xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.9.2.4 Thu Jan 18 19:20:41 2007 +++ xoops2jp/html/class/smarty/plugins/function.xoops_input.php Wed Feb 28 01:04:43 2007 @@ -2,7 +2,7 @@ /** * * @package Legacy - * @version $Id: function.xoops_input.php,v 1.1.2.9.2.4 2007/01/18 10:20:41 nobunobu Exp $ + * @version $Id: function.xoops_input.php,v 1.1.2.9.2.4.2.1 2007/02/27 16:04:43 tom_g3x Exp $ * @copyright Copyright 2005, 2006 XOOPSCube.org <http://xoopscube.org/> * @license http://www.gnu.org/licenses/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2 * @@ -56,6 +56,7 @@ $type = isset($params['type']) ? strtolower(trim($params['type'])) : "text"; $value = isset($params['value']) ? $textFilter->toEdit($params['value']) : null; $class = isset($params['class']) ? trim($params['class']) : null; + $style = isset($params['style']) ? trim($params['style']) : null; $id = isset($params['id']) ? trim($params['id']) : XOOPS_INPUT_DEFID_PREFIX . $name; $size = isset($params['size']) ? intval($params['size']) : null; $maxlength = isset($params['maxlength']) ? intval($params['maxlength']) : null; @@ -77,6 +78,10 @@ $string .= " class=\"${class}\""; } + if ($style) { + $string .= " style=\"${style}\""; + } + if ($type == "checkbox" || $type == "radio") { $string .= " id=\"{$id}_{$value}\""; }else {