noalyss  Version-6.7.2
Public Member Functions | Static Public Member Functions
ISelect Class Reference
Inheritance diagram for ISelect:
HtmlInput

Public Member Functions

 display ()
 print in html the readonly value of the widget
 input ($p_name=null, $p_value=null)
 show the html input of the widget

Static Public Member Functions

static test_me ()

Detailed Description

Definition at line 26 of file class_iselect.php.


Member Function Documentation

print in html the readonly value of the widget

Definition at line 56 of file class_iselect.php.

References $a, $r, h(), selected, table, and value.

Referenced by input().

    {
        $r="";
        for ( $i=0;$i<sizeof($this->value);$i++)
        {
            if ($this->selected==$this->value[$i]['value'] )
            {
                $r=h($this->value[$i]['label']);

            }
        }
                if ( $this->table == 1 )                  $a='<td>'.$r.'</td>';
        return $r;
    }
ISelect::input ( p_name = null,
p_value = null 
)

show the html input of the widget

Definition at line 29 of file class_iselect.php.

References $a, HtmlInput\$disabled, $r, $style, disabled, display(), if, name, readOnly, selected, style, table, and value.

    {
        $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();
        $style=(isset($this->style))?$this->style:"";
                $this->id=($this->id=="")?$this->name:$this->id;

        $disabled=($this->disabled==true)?"disabled":"";
        $rowsize = (isset ($this->rowsize)) ? ' size = "'.$this->rowsize.'"':"";
        $r="";

        $a="<SELECT  id=\"$this->id\" NAME=\"$this->name\" $style $this->javascript $disabled $rowsize>";

        if (empty($this->value)) return '';
        for ( $i=0;$i<sizeof($this->value);$i++)
        {
            $checked=($this->selected==$this->value[$i]['value'])?"SELECTED":"";
            $a.='<OPTION VALUE="'.$this->value[$i]['value'].'" '.$checked.'>';
            $a.=$this->value[$i]['label'];
        }
        $a.="</SELECT>";
        if ( $this->table == 1 )                  $a='<td>'.$a.'</td>';

        return $r.$a;
    }
static ISelect::test_me ( ) [static]

Definition at line 72 of file class_iselect.php.

    {
    }

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations