type=$t; $this->name=$n; $this->label=$l; } public function __construct4($t,$n,$l,$v) { $this->type=$t; $this->name=$n; $this->label=$l; $this->value=$v; } public function __construct5($t,$n,$l,$v,$s) { $this->type=$t; $this->name=$n; $this->label=$l; $this->value=$v; $this->size=$s; } public function out_html() { echo '
'; if($this->label) echo '
'; echo 'size>0) echo ' size="'.$this->size.'"'; if($this->value) echo ' value="'.$this->value.'"'; if($this->place_holder) echo ' placeholder="'.$this->place_holder.'"'; echo '>'; if($this->hint) echo ''.$this->hint.''; if($this->label) echo '
'; echo '
'; } };//class UIEditBox function CreateInputGroup() { $edit=new UIEditBox(); $edit->type =func_get_arg(0); $edit->name =func_get_arg(1); $edit->label =func_get_arg(2); if(func_num_args()>3) $edit->size =func_get_arg(3); if(func_num_args()>4) $edit->place_holder=func_get_arg(4); else $edit->place_holder=null; if(func_num_args()>5) $edit->right_label=func_get_arg(5); else $edit->right_label=null; $edit->out_html(); } ?>