New : Follow Up , the description modifiable is using NicEdit

This commit is contained in:
sparkyx 2022-12-27 14:55:49 +01:00
parent 3e6ccd25ec
commit 27de754a8b
4 changed files with 96 additions and 61 deletions

View file

@ -65,18 +65,16 @@ class ITextarea extends HtmlInput
*/
public function input($p_name=null,$p_value=null)
{
$this->name=($p_name==null)?$this->name:$p_name;
$this->value=($p_value==null)?$this->value:$p_value;
$this->id=($this->id=="")?$this->name:$this->id;
if ( $this->readOnly==true) return $this->display();
if ( $this->enrichText == "plain" ) {
$this->name=($p_name==null)?$this->name:$p_name;
$this->value=($p_value==null)?$this->value:$p_value;
$this->id=($this->id=="")?$this->name:$this->id;
if ( $this->readOnly==true) return $this->display();
$r="";
$r.='<TEXTAREA '.$this->style.' name="'.$this->name.'" id="'.$this->id.'"';
$r.='>';
$r.=$this->value;
$r.="</TEXTAREA>";
} elseif ($this->enrichText=='enrich') {
if ( empty($this->id)) $this->id=$this->name;
@ -95,7 +93,6 @@ class ITextarea extends HtmlInput
</script>
EOF;
}
return $r;
}
@ -110,13 +107,10 @@ EOF;
$r.=sprintf('<input type="hidden" name="%s" value="%s">',
$this->name,h($this->value));
$r.='</p>';
} elseif ($this->enrichText=='enrich') {
} elseif ($this->enrichText=='enrich' ) {
$r=$this->value;
}
return $r;
}
static public function test_me()
{
}
}