From afc02bc1c3db9ffe8c9bf660c8aa08666752edfb Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 8 May 2011 15:26:22 +0000 Subject: h-source:added new EasyGiant SVN version --- h-source/Library/Form/Radio.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'h-source/Library/Form/Radio.php') diff --git a/h-source/Library/Form/Radio.php b/h-source/Library/Form/Radio.php index 49137c0..a10726a 100755 --- a/h-source/Library/Form/Radio.php +++ b/h-source/Library/Form/Radio.php @@ -31,14 +31,16 @@ class Form_Radio extends Form_Entry public function render($value = null) { - $wrap = $this->getWrapElements(); - $returnString = "
\n\t"; - $returnString .= $wrap[0]; - $returnString .= $this->getLabelTag(); + $wrap = $this->getWrapElements($value); + $returnString = $wrap[0]; + $returnString .= "
\n\t"; $returnString .= $wrap[1]; - $returnString .= Html_Form::radio($this->entryName,$value,$this->options,$this->className, 'after', $this->idName); + $returnString .= $this->getLabelTag(); $returnString .= $wrap[2]; + $returnString .= Html_Form::radio($this->entryName,$value,$this->options,$this->className, 'after', $this->idName); + $returnString .= $wrap[3]; $returnString .="
\n"; + $returnString .= $wrap[4]; return $returnString; } -- cgit v1.2.3