name=$p_name; $this->value=$p_value; $this->amount_id=null; $this->paid=''; $this->id=$p_name; } /*!\brief show the html input of the widget*/ 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; if ( $this->readOnly==true) return $this->display(); $this->id=($this->id=="")?$this->name:$this->id; $r=sprintf(" ", $this->id, $this->name, $this->id, $this->value, $this->id ); return $r; } /*!\brief print in html the readonly value of the widget*/ public function display() { $r=sprintf("%s",$this->value); $r.=sprintf('', $this->name,$this->value); return $r; } static public function test_me() { } }