65 |
// echo __FILE__."p_value $p_value"; |
// echo __FILE__."p_value $p_value"; |
66 |
if ( $p_name != null) |
if ( $p_name != null) |
67 |
$this->name=$p_name; |
$this->name=$p_name; |
68 |
$this->value=($p_value===null)?"":$p_value; |
$this->value=($p_value===null)?$this->value:$p_value; |
69 |
$this->label=($p_label == "")?$this->label:$p_label; |
$this->label=($p_label == "")?$this->label:$p_label; |
70 |
//echo "this->value =".$this->value; |
//echo "this->value =".$this->value; |
71 |
// Input text type |
// Input text type |
72 |
$disabled = $this->disabled ? "DISABLED" : ""; |
$disabled = $this->disabled ? "DISABLED" : ""; |
73 |
if (strtoupper($this->type)=="TEXT") { |
if (strtoupper($this->type)=="TEXT") { |
74 |
if ( $this->readonly==false) { |
if ( $this->readonly==false) { |
75 |
$r="<INPUT TYPE=\"TEXT\" NAME=\"$p_name\" VALUE=\"$p_value\" SIZE=\"$this->size\" ".$disabled.">";} else { |
$r="<INPUT TYPE=\"TEXT\" NAME=\"$p_name\" VALUE=\"$this->value\" SIZE=\"$this->size\" ".$disabled.">";} else { |
76 |
$r=$this->value; |
$r=$this->value; |
77 |
} |
} |
78 |
if ($this->table==1) { |
if ($this->table==1) { |