/[phpcompta]/phpcompta/include/class_widget.php
ViewVC logotype

Diff of /phpcompta/include/class_widget.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by sparkyx, Mon Jul 4 20:14:28 2005 UTC revision 1.5 by sparkyx, Mon Jul 4 21:41:02 2005 UTC
# Line 65  class widget { Line 65  class widget {
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) {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26