00001 <?PHP
00017 include_once("InputElement.php");
00018
00027 class RichText extends InputElement
00028 {
00029
00035 public function render()
00036 {
00037 BizSystem::clientProxy()->includeRTEScripts();
00038
00039 $elementName = $this->m_Name;
00040 $elementNameAndContainer = $elementName."_container";
00041 $value = $this->getValue();
00042 $style = $this->getStyle();
00043 $width = $this->m_Width ? $this->m_Width : 600;
00044 $height = $this->m_Height ? $this->m_Height : 300;
00045
00046 if(!strlen($value)>0)
00047 $value=" ";
00048 $sHTML = "<DIV id='$elementNameAndContainer' $style $func>".$value."</DIV>\n";
00049 $sHTML .= "<input type='hidden' id='hdn$elementName' name='$elementName' value=\"".$value."\" />"."\n";
00050
00051 $sHTML .= "<script>editRichText('$elementName', $width, $height);</script>";
00052 return $sHTML;
00053 }
00054
00055 }
00056
00057 ?>