diff --git a/gulliver/js/maborak/core/stylesheet/default.css b/gulliver/js/maborak/core/stylesheet/default.css index 1034ee8d2..a32d29af6 100755 --- a/gulliver/js/maborak/core/stylesheet/default.css +++ b/gulliver/js/maborak/core/stylesheet/default.css @@ -1150,6 +1150,16 @@ INPUT { color :#333333; font :normal 8pt sans-serif; } +.module_app_input___gray_readOnly +{ + padding:1px; + border:1px solid #AAA; + padding-left:3px; + background: #EBEBE4;/*#FFFFFF url(../images/input_back.gif) repeat-x;*/ + background-position:0px 0px; + color :#333333; + font :normal 8pt sans-serif; +} .module_app_inputHover___gray { border:1px solid #AAA; diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 2dd42167e..bcf4558ce 100644 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -1010,7 +1010,10 @@ class XmlForm_Field_Text extends XmlForm_Field_SimpleText $html .= 'type="hidden" value="'.$this->htmlentities($value, ENT_QUOTES, 'utf-8').'" />'; } - $html .= $this->renderHint(); + $html .= $this->renderHint(); + if (($this->readOnly == 1)&&($this->renderMode == 'edit')) + $html = str_replace("class=\"module_app_input___gray\"","class=\"module_app_input___gray_readOnly\"",$html); + return $html; }