29 require_once NOALYSS_INCLUDE.
'/lib/class_html_input.php';
42 $this->placeholder=
"dd.mm.yyyy";
44 $this->
style=
' class="input_text" ';
45 $this->autofocus=
false;
50 public function input($p_name=null, $p_value=null)
52 $this->
name=($p_name==null)?$this->
name:$p_name;
53 $this->
value=($p_value==null)?$this->
value:$p_value;
56 if ($this->
id==
"") $this->
id=self::generate_id($this->
name);
57 $t=
'title="'.$this->title.
'" ';
61 <input type="text" name="%s" id="%s"
63 size="10" style="width:6em"
68 pattern="[0-9]{1,2}.[0-9]{1,2}.[0-9]{4}"
70 <img src="image/x-office-calendar.png" id="%s_trigger"
71 style="cursor: pointer"
72 onmouseover="this.style.background=\'red\';" onmouseout="this.style.background=\'\'"/>
73 ',$this->
name,$this->
id,$this->
value,$this->placeholder,$this->title,$t,$this->
id
76 $r.=sprintf(
'<script type="text/javascript">
78 'inputField : "%s", // id of the input field
79 ifFormat : "%%d.%%m.%%Y", // format of the input field
80 button : "%s_trigger", // trigger for the calendar (button ID)
81 align : "Bl", // alignment (defaults to "Bl")
85 ,$this->
id,$this->
id);
93 $r=
"<span> : ".$this->value;
94 $r.=
'<input type="hidden" name="'.$this->name.
'"'.
95 'id="'.$this->name.
'"'.
96 ' value = "'.$this->value.
'"></span>';
for($e=0;$e< count($array);$e++) $desc readOnly
input($p_name=null, $p_value=null)
__construct($name='', $value='', $p_id="")
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...