diff --git a/include/lib/class_idate.php b/include/lib/class_idate.php index a0bf95b9c..14c302c79 100644 --- a/include/lib/class_idate.php +++ b/include/lib/class_idate.php @@ -1,4 +1,5 @@ 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); - $r=''. - ''; - $r.=' - '; + ' + ,$this->id,$this->id); return $r; - } - /*!\brief print in html the readonly value of the widget*/ + + /* !\brief print in html the readonly value of the widget */ + public function display() { $r=" : ".$this->value; $r.=''; + 'id="'.$this->name.'"'. + ' value = "'.$this->value.'">'; return $r; - } + static public function test_me() { + } + }