noalyss  Version-6.7.2
Public Member Functions | Static Public Member Functions
IDate Class Reference
Inheritance diagram for IDate:
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_idate.php.


Member Function Documentation

print in html the readonly value of the widget

Definition at line 59 of file class_idate.php.

References $r.

Referenced by input().

    {
        $r="<span>  : ".$this->value;
        $r.='<input type="hidden" name="'.$this->name.'"'.
            'id="'.$this->name.'"'.
            ' value = "'.$this->value.'"></span>';
        return $r;

    }
IDate::input ( p_name = null,
p_value = null 
)

show the html input of the widget

Definition at line 29 of file class_idate.php.

References $r, display(), HtmlInput\generate_id(), name, readOnly, 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();
        if( $this->id=="")
          $this->id=self::generate_id($this->name);
        $r='<input type="text" name="'.$this->name.'" id="'.$this->id.'" '.
           ' class="input_text" '.
           'size="8" '.
           ' value ="'.$this->value.'" '.
           '/>'.
           '<img src="image/x-office-calendar.png" id="'.$this->id.'_trigger"'.
           ' style="cursor: pointer" '.
           'onmouseover="this.style.background=\'red\';" onmouseout="this.style.background=\'\'" />';
        $r.='<script type="text/javascript">'.
            'Calendar.setup({'.
            //  'date : "'.$this->value.'",
            'inputField     :    "'.$this->id.'",     // id of the input field
            ifFormat       :    "%d.%m.%Y",      // format of the input field
            button         :    "'.$this->id.'_trigger",  // trigger for the calendar (button ID)
            align          :    "Bl",           // alignment (defaults to "Bl")
            singleClick    :    true
        });
            </script>
            ';
        return $r;

    }
static IDate::test_me ( ) [static]

Definition at line 68 of file class_idate.php.

    {
    }

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