• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List

E:/E/GEAMP/www/openbiz/openbiz/bin/easy/element/RichText.php

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         //$func = "onclick=\"editRichText('$elementName', $width, $height);\"";
00046         if(!strlen($value)>0) // fix suggested by smarques
00047             $value="&nbsp;";
00048         $sHTML = "<DIV id='$elementNameAndContainer' $style $func>".$value."</DIV>\n";
00049         $sHTML .= "<input type='hidden' id='hdn$elementName' name='$elementName' value=\"".$value."\" />"."\n";
00050         //$sHTML .= "<textarea rows=2 cols=20 id='hdn$elementName' name='$elementName'>".$value."</textarea>\n";
00051         $sHTML .= "<script>editRichText('$elementName', $width, $height);</script>";
00052         return $sHTML;
00053     }
00054 
00055 }
00056 
00057 ?>

Generated on Thu Apr 19 2012 17:09:13 for openbiz by  doxygen 1.7.2