From d52aa80f901101e26ac66cdf6433acfff08d7fd6 Mon Sep 17 00:00:00 2001 From: Carlos Pacha Date: Fri, 25 Mar 2011 11:24:29 -0400 Subject: [PATCH] BUGS 6575 and 6573 have been fixed, the field values weren't setup, I have made some modifications and now the field values are setup even in the view mode. now it's working fine. --- gulliver/system/class.xmlform.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index a0725a371..8a1bfe09a 100644 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -1267,9 +1267,11 @@ class XmlForm_Field_Password extends XmlForm_Field { return $html; } } elseif ($this->mode === 'view') { - return $this->htmlentities ( str_repeat ( '*', 10 ), ENT_COMPAT, 'utf-8' ); + $html= 'htmlentities ( $value, ENT_COMPAT, 'utf-8' ) . '\' readOnly="readOnly"/>'; + $html.= $this->htmlentities ( str_repeat ( '*', 10 ), ENT_COMPAT, 'utf-8' ); + return $html; } else { - return $this->htmlentities ( str_repeat ( '*', 10 ), ENT_COMPAT, 'utf-8' ); + return $this->htmlentities ( str_repeat ( '*', 10 ), ENT_COMPAT, 'utf-8' ); } } } @@ -2473,6 +2475,12 @@ class XmlForm_Field_Listbox extends XmlForm_Field $html .= ''; } $html .= ''; + foreach ( $this->option as $optionName => $option ) { + $html .= ''; + } + foreach ( $this->sqlOption as $optionName => $option ) { + $html .= ''; + } return $html; } else { return $this->htmlentities ( $value, ENT_COMPAT, 'utf-8' ); @@ -2558,7 +2566,10 @@ class XmlForm_Field_RadioGroup extends XmlForm_Field { $html = ''; foreach ( $this->options as $optionName => $option ) { $html .= '' . $option . '
'; + if($optionName == $value) + $html .= ''; } + return $html; } else { return $this->htmlentities ( $value, ENT_COMPAT, 'utf-8' ); @@ -2651,6 +2662,7 @@ class XmlForm_Field_CheckGroup extends XmlForm_Field $html = ''; foreach ( $this->options as $optionName => $option ) { $html .= '' . $option . '
'; + $html .= ''; } return $html; } else { @@ -3255,6 +3267,7 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText ///-- $html = 'maxLength ) ? ' maxlength="' . $this->maxLength . '"' : '') . ' value=\'' . htmlentities ( $value, ENT_COMPAT, 'utf-8' ) . '\' style="display:none;' . htmlentities ( $this->style, ENT_COMPAT, 'utf-8' ) . '" />' . htmlentities ( $value, ENT_COMPAT, 'utf-8' ); $html = "$valueaux"; + $html .= ''; } //