title="";
$this->placeholder="dd.mm.yyyy";
$this->extra="";
$this->style=' class="input_text" ';
$this->autofocus=false;
}
/* !\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();
if ($this->id=="") $this->id=self::generate_id($this->name);
$t= 'title="'.$this->title.'" ';
$autofocus=($this->autofocus)?" autofocus ":"";
$r=sprintf('
',$this->name,$this->id,$this->value,$this->placeholder,$this->title,$t,$this->id
);
$r.=sprintf(''
,$this->id,$this->id);
return $r;
}
/* !\brief print in html the readonly value of the widget */
public function display()
{
$r=" ".$this->value;
$r.='id.'"'.
' value = "'.$this->value.'">';
return $r;
}
static public function test_me()
{
}
}