Minahito
minah****@users*****
2006年 3月 29日 (水) 18:43:47 JST
Index: xoops2jp/html/class/smarty/plugins/function.xoops_input.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.6 xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.7 --- xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.6 Wed Mar 15 19:19:49 2006 +++ xoops2jp/html/class/smarty/plugins/function.xoops_input.php Wed Mar 29 18:43:47 2006 @@ -34,6 +34,8 @@ $value = isset($params['value']) ? htmlspecialchars($params['value'],ENT_QUOTES) : null; $id = isset($params['id']) ? trim($params['id']) : null; $default = isset($params['default']) ? trim($params['default']) : null; + + $disabled = (isset($params['disabled']) && $params['disabled'] != false) ? true : false; if ($key != null) { @@ -56,7 +58,7 @@ $string.=" value=\"${value}\""; if($id) $string.=" id=\"${id}\""; - + if (isset($params['default'])) { $default = trim($params['default']); if ($value==$default) { @@ -65,6 +67,10 @@ } } } + + if ($disabled) { + $string .=" disabled"; + } $string.=" />";