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

Public Member Functions

 __construct ($p_name='', $p_value='')
 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 27 of file class_irelated_action.php.


Constructor & Destructor Documentation

IRelated_Action::__construct ( p_name = '',
p_value = '' 
)

Definition at line 30 of file class_irelated_action.php.

References amount_id, name, and value.

        {
                $this->name=$p_name;
                $this->value=$p_value;
                $this->amount_id=null;
                $this->paid='';
                $this->id=$p_name;
        }

Member Function Documentation

print in html the readonly value of the widget

Definition at line 63 of file class_irelated_action.php.

References $r, name, and value.

Referenced by input().

    {
        $r=sprintf("<span><b>%s</b></span>",$this->value);
        $r.=sprintf('<input type="hidden" name="%s" value="%s">', $this->name,$this->value);
        return $r;

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

show the html input of the widget

Definition at line 39 of file class_irelated_action.php.

References $r, display(), 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();

                $this->id=($this->id=="")?$this->name:$this->id;


        $r=sprintf("
                   <INPUT TYPE=\"button\" onClick=\"search_action(".dossier::id().",'%s')\" value=\"?\">
                   <INPUT TYPE=\"text\"  style=\"color:black;background:lightyellow;border:solid 1px grey;\"  NAME=\"%s\" ID=\"%s\" VALUE=\"%s\" SIZE=\"8\" readonly>
                                   <INPUT TYPE=\"button\" onClick=\"$('%s').value=''\" value=\"X\">

                   ",
                   $this->id,
                   $this->name,
                   $this->id,
                   $this->value,
                   $this->id
                  );
        return $r;
    }
static IRelated_Action::test_me ( ) [static]

Definition at line 70 of file class_irelated_action.php.

    {
    }

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