phpcompta  Version-6
 All Data Structures Namespaces Files Functions Variables Pages
Public Member Functions | Static Public Member Functions
IConcerned Class Reference
Inheritance diagram for IConcerned:
HtmlInput

Public Member Functions

 __construct ($p_name='', $p_value='', $p_id="")
 
 display ()
 print in html the readonly value of the widget
 
 input ($p_name=null, $p_value=null)
 show the html input of the widget
 
- Public Member Functions inherited from HtmlInput
 __construct ($p_name="", $p_value="", $p_id="")
 
 debug ()
 
 get_js_attr ()
 you can add attribute to this in javascript this function is a wrapper and create a script (in js) to modify "this" (in javascript) with the value of obj->attribute from PHP
 
 make_object ($p_name=null)
 Make a JSON object, this method create a javascript object with the attribute set, it returns a javascript string with the object.
 
 set_attribute ($p_name, $p_value)
 set the extra javascript property for the INPUT field
 
 setReadOnly ($p_read)
 

Static Public Member Functions

static test_me ()
 
- Static Public Member Functions inherited from HtmlInput
static anchor ($p_text, $p_url="", $p_js="")
 *Return a simple anchor with a url or a javascript if $p_js is not null then p_url will be javascript:void(0) we don't add the event onclick.
 
static anchor_close ($div)
 Return a html string with an anchor which close the inside popup.
 
static anchor_hide ($action, $javascript)
 Return a html string with an anchor to hide a div, put it in the right corner.
 
static array_to_hidden ($array, $global_array)
 *transform request data to hidden
 
static array_to_string ($array, $global_array, $start="?")
 *transform request data to string
 
static button ($p_name, $p_value, $p_javascript="")
 
static button_action ($action, $javascript, $id="xx")
 button Html
 
static button_anchor ($p_label, $p_value, $p_name="", $p_javascript="")
 create a button with a ref
 
static button_close ($div_name)
 *close button for the HTML popup
 
static card_detail ($p_qcode, $pname='', $p_style="")
 *show the detail of a card
 
static default_value ($ind, $default, $array)
 return default if the value if the value doesn't exist in the array
 
static default_value_get ($ind, $default)
 return default if the value if the value doesn't exist in $_GET
 
static default_value_post ($ind, $default)
 return default if the value if the value doesn't exist in $_POST
 
static default_value_request ($ind, $default)
 return default if the value if the value doesn't exist in $_REQUEST
 
static detail_action ($ag_id, $p_mesg, $p_modify=1)
 return an anchor to view the detail of an action
 
static detail_modele_document ($p_id, $p_mesg)
 return a string containing the html code for calling the modifyModeleDocument
 
static detail_op ($p_jr_id, $p_mesg)
 return a string containing the html code for calling the modifyOperation
 
static display_periode ($p_id)
 
static extension ()
 
static generate_id ($p_prefix)
 generate an unique id for a widget,
 
static get_to_hidden ($array)
 *transform $_GET data to hidden
 
static get_to_string ($array, $start="?")
 *transform $_GET data to string
 
static hidden ($p_name, $p_value, $p_id="")
 
static history_account ($p_account, $p_mesg, $p_style="")
 display a div with the history of the account
 
static history_card ($f_id, $p_mesg, $p_style="")
 display a div with the history of the card
 
static history_card_button ($f_id, $p_mesg)
 display a div with the history of the card
 
static infobulle ($p_comment)
 
static post_to_hidden ($array)
 *transform $_POST data to hidden
 
static post_to_string ($array)
 *transform $_POST data to string
 
static print_window ()
 Javascript to print the current window.
 
static remove_stock ($p_id, $p_mesg)
 return a string containing the html code for calling the removeStock
 
static request_to_hidden ($array)
 *transform $_REQUEST data to hidden
 
static request_to_string ($array, $start="?")
 *transform $_REQUEST data to string
 
static reset ($p_value)
 
static select_cat ($array_cat)
 *create a hidden plus button to select the cat of ledger
 
static select_ledger ($p_array, $p_selected, $div='')
 return the html code to create an hidden div and a button to show this DIV.
 
static select_stock ($p_cn, $p_name, $p_mode)
 *Create an ISelect object containing the available repository for reading or writing $g_user
 
static submit ($p_name, $p_value, $p_javascript="")
 
static title_box ($name, $div, $mod="close")
 
static warnbulle ($p_comment)
 

Additional Inherited Members

- Data Fields inherited from HtmlInput
 $ctrl
 
 $disabled
 
 $extra
 
 $extra2
 
 $javascript
 
 $label
 
 $name
 
 $readOnly
 
 $selected
 
 $size
 
 $tabindex
 
 $table
 
 $type
 
 $value
 

Detailed Description

Definition at line 30 of file class_iconcerned.php.

Constructor & Destructor Documentation

IConcerned::__construct (   $p_name = '',
  $p_value = '',
  $p_id = "" 
)

Definition at line 33 of file class_iconcerned.php.

References amount_id, name, and value.

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

Member Function Documentation

IConcerned::display ( )

print in html the readonly value of the widget

Definition at line 68 of file class_iconcerned.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;
}
IConcerned::input (   $p_name = null,
  $p_value = null 
)

show the html input of the widget

Definition at line 42 of file class_iconcerned.php.

References $r, amount_id, 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_reconcile(".dossier::id().",'%s','%s','%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->name,
$this->amount_id,
$this->paid,
$this->name,
$this->id,
$this->value,
$this->id
);
return $r;
}
static IConcerned::test_me ( )
static

Definition at line 75 of file class_iconcerned.php.

{
}

The documentation for this class was generated from the following file: