Merge pull request #794 from norahmollo/master

CODE STYLE Formating gulliver/system/class.templatePower.php
This commit is contained in:
ferOnti
2012-10-17 12:57:11 -07:00
2 changed files with 756 additions and 778 deletions

View File

@@ -1,6 +1,8 @@
<?php <?php
/** /**
* class.htmlArea.php * class.htmlArea.php
*
* @package gulliver.system * @package gulliver.system
* *
* ProcessMaker Open Source Edition * ProcessMaker Open Source Edition
@@ -13,32 +15,34 @@
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details. * GNU Affero General Public License for more details.
* *
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* For more information, contact Colosa Inc, 2566 Le Jeune Rd., * For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com. * Coral Gables, FL, 33134, USA, or email info@colosa.com.
* *
*/ */
/** /**
*
* @package gulliver.system * @package gulliver.system
**/ *
*/
class XmlForm_Field_HTML extends XmlForm_Field_Textarea class XmlForm_Field_HTML extends XmlForm_Field_Textarea
{ {
/* //'default','office2003','silver' /* //'default','office2003','silver'
var $skin = 'default'; var $skin = 'default';
//'Default','Basic' //'Default','Basic'
var $toolbarSet = 'Default'; var $toolbarSet = 'Default';
var $width = '90%'; var $width = '90%';
var $height = '200' ; var $height = '200' ;
var $cols = 40; var $cols = 40;
var $rows = 6; var $rows = 6;
function render( $value , $owner=NULL ) { function render( $value , $owner=NULL ) {
if ($this->mode==='edit') { if ($this->mode==='edit') {
if ($this->readOnly) if ($this->readOnly)
$html='<textarea id="form['.$this->name.']" name="form['.$this->name.']" cols="'.$this->cols.'" rows="'.$this->rows.'" style="'.$this->style.'" wrap="'.htmlentities($this->wrap,ENT_QUOTES,'UTF-8').'" class="FormTextArea" readOnly>'.$this->htmlentities( $value ,ENT_COMPAT,'utf-8').'</textarea>'; $html='<textarea id="form['.$this->name.']" name="form['.$this->name.']" cols="'.$this->cols.'" rows="'.$this->rows.'" style="'.$this->style.'" wrap="'.htmlentities($this->wrap,ENT_QUOTES,'UTF-8').'" class="FormTextArea" readOnly>'.$this->htmlentities( $value ,ENT_COMPAT,'utf-8').'</textarea>';
@@ -50,18 +54,19 @@ class XmlForm_Field_HTML extends XmlForm_Field_Textarea
$html='<textarea id="form['.$this->name.']" name="form['.$this->name.']" cols="'.$this->cols.'" rows="'.$this->rows.'" style="'.$this->style.'" wrap="'.htmlentities($this->wrap,ENT_QUOTES,'UTF-8').'" class="FormTextArea" >'.$this->htmlentities( $value ,ENT_COMPAT,'utf-8').'</textarea>'; $html='<textarea id="form['.$this->name.']" name="form['.$this->name.']" cols="'.$this->cols.'" rows="'.$this->rows.'" style="'.$this->style.'" wrap="'.htmlentities($this->wrap,ENT_QUOTES,'UTF-8').'" class="FormTextArea" >'.$this->htmlentities( $value ,ENT_COMPAT,'utf-8').'</textarea>';
} }
return $html; return $html;
}*/ }*/
/**
/** * attachEvents function is putting its events
* attachEvents function is putting its events *
* * @access public
* @access public * @param string $element
* @param string $element * @return string
* @return string *
* */
*/ function attachEvents ($element)
function attachEvents($element) { {
$html='var _editor_url = "";editor_generate("form['.$this->name.']");'; $html = 'var _editor_url = "";editor_generate("form[' . $this->name . ']");';
return $html; return $html;
} }
} }

File diff suppressed because it is too large Load Diff