name=($p_name==null)?$this->name:$p_name; $this->value=($p_value==null)?$this->value:$p_value; if ( $this->readOnly==true) return $this->display(); $l_sessid=$_REQUEST['PHPSESSID']; if ( !isset($this->javascript) || $this->javascript=="") { /* if javascript is empty or not set then we add a default behaviour */ $this->javascript=sprintf('onBlur="ajaxFid(\'%s\',\'%s\',\'%s\',\'%s\',\'%s\')"', $this->name, $this->extra, //deb or cred $l_sessid, "searchcardControl", $this->ctrl ); } if ( $this->extra2 == "" ) $this->extra2="QuickCode"; $r=sprintf('
%s
', $l_sessid, $this->extra, $this->name, $this->ctrl, $this->extra2, $this->label, $this->name, $this->name, $this->value, $this->javascript ); return $r; } /*!\brief print in html the readonly value of the widget*/ public function display() { $r=sprintf(' ', $this->name, $this->value ); return $r; } static public function test_me() { } }