Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 require_once('class_html_input.php');
00026 class ITextarea extends HtmlInput
00027 {
00028
00029 public function input($p_name=null,$p_value=null)
00030 {
00031 $this->name=($p_name==null)?$this->name:$p_name;
00032 $this->value=($p_value==null)?$this->value:$p_value;
00033 if ( !isset ($this->style )) $this->style=' class="itextarea" ';
00034 $this->id=($this->id=="")?$this->name:$this->id;
00035
00036 if ( $this->readOnly==true) return $this->display();
00037
00038 $r="";
00039 $r.='<TEXTAREA '.$this->style.' name="'.$this->name.'" id="'.$this->id.'"';
00040 $r.='>';
00041 $r.=$this->value;
00042
00043 $r.="</TEXTAREA>";
00044 return $r;
00045 }
00046
00047
00048
00049 public function display()
00050 {
00051 $r='<p>';
00052 $r.=h($this->value);
00053 $r.=sprintf('<input type="hidden" name="%s" value="%s">',
00054 $this->name,h($this->value));
00055 $r.='</p>';
00056
00057 }
00058 static public function test_me()
00059 {
00060 }
00061 }