noalyss Version-9
|
Input HTML for the card show buttons, in the file, you have to add card.js How to use : More...
Public Member Functions | |
__construct ($name="", $value="", $p_id="") | |
display () | |
print in html the readonly value of the widget More... | |
get_accvis () | |
get_amount_from_type () | |
amount_from_type : accountancy , sell or purchase price More... | |
get_autocomplete () | |
1 autocomplete enable ; 0 autocomplete disable More... | |
get_autocomplete_file () | |
php file to call to complete info from the card More... | |
get_choice () | |
id_of_div_to_populate with the output of the autocomplete_file, it is the autocomplete div presenting a list of possible choices. More... | |
get_choice_create () | |
1 if you want to create automatically the autocomplete DIV to fill with the the output of "autocomplete_file" or 0 if this DIV is created explicitly More... | |
get_fct () | |
Function javascript by default it is update_value called BEFORE the querystring is send in ajax. More... | |
get_indicator () | |
Id of the element to show that it is seaching. More... | |
get_limit () | |
get_style () | |
CSS Style of the INPUT TEXT element. More... | |
get_typecard () | |
hide_accounting () | |
in the search box, the accounting will be hidden More... | |
input ($p_name=null, $p_value=null) | |
show the html input of the widget More... | |
search () | |
return a string containing the button for displaying a search form. More... | |
set_accvis ($accvis) | |
set_amount_from_type ($amount_from_type) | |
amount_from_type : accountancy , sell or purchase price @parameter $amount_from_type ACH VEN or GL More... | |
set_autocomplete ($autocomplete) | |
1 autocomplet enable ; 0 autocomplete disable More... | |
set_autocomplete_file ($autocomplete_file) | |
php file to call to complete info from the card More... | |
set_callback ($p_name) | |
set the javascript callback function by default it is update_value called BEFORE the querystring is send More... | |
set_choice ($choice) | |
id_of_div_to_populate with the output of the autocomplete_file, it is the autocomplete div presenting a list of possible choices. More... | |
set_choice_create ($choice_create) | |
1 if you want to create automatically the autocomplete DIV to fill with the the output of "autocomplete_file" or 0 if this DIV is created explicitly More... | |
set_dblclick ($p_action) | |
set the extra javascript property for a double click on INPUT field More... | |
set_fct ($fct) | |
set_function ($p_name) | |
set the javascript callback function by default it is update_value called AFTER an item has been selected More... | |
set_indicator ($indicator) | |
Id of the element to show that it is seaching. More... | |
set_limit ($limit) | |
set_style ($style) | |
CSS Style of the INPUT TEXT element. More... | |
set_typecard ($typecard) | |
argument "e" passed to autocomplete_file , More... | |
show_accounting () | |
in the search box, the accounting will be shown it is the default More... | |
Public Member Functions inherited from HtmlInput | |
__construct ($p_name="", $p_value="", $p_id="") | |
__toString () | |
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. More... | |
get_node_attribute () | |
Insert attribute inside a INPUT TYPE, these attribute can be retrieved in javascript with element.getAttribute or changed with element.setAttribute example insert my_attribute into a checkbox <input type="checkbox" "my_attribute"="XX"> More... | |
get_value () | |
Return the value of input (IText, INum,...) More... | |
make_object_deprecated ($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. More... | |
set_attribute ($p_name, $p_value) | |
set the extra javascript property for the INPUT field More... | |
set_value ($p_string) | |
Set the value of input (IText, INum,...) More... | |
setReadOnly ($p_read) | |
Static Public Member Functions | |
static | ipopup ($p_name) |
return the html string for creating the ipopup, this ipopup can be used for adding, modifying or display a card More... | |
static | test_me () |
Static Public Member Functions inherited from HtmlInput | |
static | anchor ($p_text, $p_url="", $p_js="", $p_style=' class="line" ', $p_title="click", array $p_attribute=[]) |
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. More... | |
static | anchor_action ($action, $javascript, $id=NULL, $p_class="button", $p_symbole="") |
Anchor Html with javascript. More... | |
static | anchor_close ($div, $p_js="") |
Return a html string with an anchor which close the inside popup. More... | |
static | anchor_empty ($p_text, $p_id, $p_title="") |
let you create only a link and set an id on it. More... | |
static | anchor_hide ($action, $javascript) |
Return a html string with an anchor to hide a div, put it in the right corner. More... | |
static | array_to_hidden ($array, $global_array) |
transform request data to hidden More... | |
static | array_to_string ($array, $global_array, $start="?") |
transform request data to string More... | |
static | button ($p_name, $p_value, $p_javascript="", $p_class="smallbutton") |
static | button_action ($action, $javascript, $id=NULL, $p_class="button", $p_symbole="") |
button Html with javascript More... | |
static | button_action_add () |
static | button_action_remove_operation ($p_operation) |
static | button_anchor ($p_label, $p_value, $p_name="", $p_javascript="", $p_class="smallbutton") |
create a button with a ref More... | |
static | button_choice_ledger ($p_array) |
static | button_close ($div_name, $class='smallbutton') |
close button for the HTML popup More... | |
static | button_hide ($div_name) |
Hide the HTML popup. More... | |
static | button_image ($javascript, $id="xx", $p_class='class="button"', $p_image="") |
button Html image More... | |
static | calendar_zoom ($obj) |
Zoom the calendar. More... | |
static | card_detail ($p_qcode, $pname='', $p_style="", $p_nohistory=false, $nofollowup=false) |
show the detail of a card More... | |
static | default_value ($ind, $default, $array) |
return default if the value if the value doesn't exist in the array More... | |
static | default_value_get ($ind, $default) |
return default if the value if the value doesn't exist in $_GET use HttpInput instead More... | |
static | default_value_post ($ind, $default) |
return default if the value if the value doesn't exist in $_POST use HttpInput instead More... | |
static | default_value_request ($ind, $default) |
return default if the value if the value doesn't exist in $_REQUEST use HttpInput instead More... | |
static | detail_action ($ag_id, $p_mesg, $p_modify=1) |
return an anchor to view the detail of an action More... | |
static | detail_modele_document ($p_id, $p_mesg) |
return a string containing the html code for calling the modifyModeleDocument More... | |
static | detail_op ($p_jr_id, $p_mesg) |
return a string containing the html code for calling the modifyOperation More... | |
static | display_periode ($p_id) |
static | errorbulle ($p_comment) |
static | extension () |
static | filter_list ($p_list_id) |
Display a field for searching an element in a list, the searchable text must be in an element with the className search-content. More... | |
static | filter_table ($p_table_id, $p_col, $start_row) |
filter the rows in a table and keep the colored row in alternance More... | |
static | filter_table_form ($p_table_id, $p_col, $start_row, $p_name, $p_old_value) |
static | followup_card_button ($f_id, $p_mesg) |
display a div with the history of the card More... | |
static | generate_id ($p_prefix) |
generate an unique id for a widget, More... | |
static | get_to_hidden ($array) |
transform $_GET data to hidden More... | |
static | get_to_string ($array, $start="?") |
transform $_GET data to string More... | |
static | hidden ($p_name, $p_value, $p_id="") |
static | history_account ($p_account, $p_mesg, $p_style="", $p_exercice="") |
display a div with the history of the account More... | |
static | history_anc_account ($p_account, $p_mesg, $p_style="", $p_exercice="") |
display a div with the history of the analytic account More... | |
static | history_card ($f_id, $p_mesg, $p_style="", $p_exercice="") |
display a div with the history of the card More... | |
static | history_card_button ($f_id, $p_mesg, $p_exercice="") |
display a div with the history of the card More... | |
static | image_click ($p_image, $p_js, $p_message, $p_class="") |
Image to click ,. More... | |
static | json_to_hidden ($p_json) |
transform a json to hidden More... | |
static | post_to_hidden ($array) |
transform $_POST data to hidden More... | |
static | post_to_string ($array) |
transform $_POST data to string More... | |
static | print_window () |
Javascript to print the current window. More... | |
static | remove_stock ($p_id, $p_mesg) |
return a string containing the html code for calling the removeStock More... | |
static | request_to_hidden (array $array) |
transform $_REQUEST data to hidden More... | |
static | request_to_string ($array, $start="?") |
transform $_REQUEST data to string More... | |
static | reset ($p_value) |
static | select_cat ($array_cat) |
create a hidden plus button to select the cat of ledger More... | |
static | select_stock ($p_cn, $p_name, $p_mode) |
Create an ISelect object containing the available repository for reading or writing. More... | |
static | show_receipt_document ($p_jr_id, $p_name="") |
Returns HTML code for displaying a icon with a link to a receipt document from the ledger. More... | |
static | show_reconcile ($p_div, $let, $span="") |
static | simple_array_to_hidden ($array) |
Transform a double array as a HTML string with hidden html value array has the formarray ["name"]="x",array['value']="y") the key name will be the hidden input name;. More... | |
static | submit ($p_name, $p_value, $p_javascript="", $p_class="smallbutton") |
static | title_box ($p_name, $p_div, $p_mod="close", $p_js="", $p_draggable="n", $p_enlarge='n') |
Title for boxes, you can customize the symbol thanks symbol with the mode "custom". More... | |
static | warnbulle ($p_comment) |
Data Fields | |
$accvis | |
$limit Max of row show More... | |
$amount_from_type | |
$typecard : type of card More... | |
$autocomplete | |
$style supplemental CSS More... | |
$callback | |
$choice More... | |
$choice | |
$indicator, text displaid when searching More... | |
$choice_create | |
$autocomplete : 1 enable - 0 disable More... | |
$dblclick | |
$callback , More... | |
$fct | |
< $fct ,by default it is update_value called BEFORE the querystring is send More... | |
$indicator | |
$choice_create 1 , display a (+) button , default 1 More... | |
$limit | |
$amount_from_type : accountancy , sell or purchase price More... | |
$style =' ' | |
$accvis account_visible =1 otherwise 0, default 1 More... | |
$typecard | |
$autocomplete_file , ajax file used for autocompletion (see Ajax.Autocompleter) More... | |
Data Fields inherited from HtmlInput | |
$attribute | |
$css_size | |
$ctrl | |
$disabled | |
$extra | |
$extra2 | |
$heigh | |
$id | |
$javascript | |
$label | |
$name | |
$readOnly | |
$require | |
$selected | |
$size | |
$style | |
$tabindex | |
$table | |
$type | |
$value | |
$width | |
Private Attributes | |
$autocomplete_file | |
Input HTML for the card show buttons, in the file, you have to add card.js How to use :
Definition at line 120 of file icard.class.php.
ICard::__construct | ( | $name = "" , |
|
$value = "" , |
|||
$p_id = "" |
|||
) |
< account_visible =1 otherwise 0
< Max of row show
< in the follow up ,when a card is selected you take Prix Vente or Prix Achat
Reimplemented from HtmlInput.
Definition at line 161 of file icard.class.php.
References HtmlInput\$name, $p_id, HtmlInput\$value, amount_from_type, javascript, and style.
ICard::display | ( | ) |
print in html the readonly value of the widget
Definition at line 525 of file icard.class.php.
References $r, name, and value.
Referenced by input().
ICard::get_accvis | ( | ) |
ICard::get_amount_from_type | ( | ) |
amount_from_type : accountancy , sell or purchase price
Definition at line 251 of file icard.class.php.
References $amount_from_type.
ICard::get_autocomplete | ( | ) |
1 autocomplete enable ; 0 autocomplete disable
Definition at line 223 of file icard.class.php.
References $autocomplete.
ICard::get_autocomplete_file | ( | ) |
php file to call to complete info from the card
string | $autocomplete_file |
Definition at line 266 of file icard.class.php.
References $autocomplete_file.
ICard::get_choice | ( | ) |
id_of_div_to_populate with the output of the autocomplete_file, it is the autocomplete div presenting a list of possible choices.
Default {this->id}_choices
Definition at line 194 of file icard.class.php.
References $choice.
ICard::get_choice_create | ( | ) |
1 if you want to create automatically the autocomplete DIV to fill with the the output of "autocomplete_file" or 0 if this DIV is created explicitly
Definition at line 215 of file icard.class.php.
References $choice_create.
ICard::get_fct | ( | ) |
Function javascript by default it is update_value called BEFORE the querystring is send in ajax.
Definition at line 184 of file icard.class.php.
References $fct.
ICard::get_indicator | ( | ) |
Id of the element to show that it is seaching.
Definition at line 205 of file icard.class.php.
References $indicator.
ICard::get_limit | ( | ) |
Definition at line 243 of file icard.class.php.
References $limit.
ICard::get_style | ( | ) |
CSS Style of the INPUT TEXT element.
Definition at line 231 of file icard.class.php.
References $style.
ICard::get_typecard | ( | ) |
Definition at line 256 of file icard.class.php.
References $typecard.
ICard::hide_accounting | ( | ) |
in the search box, the accounting will be hidden
Definition at line 387 of file icard.class.php.
ICard::input | ( | $p_name = null , |
|
$p_value = null |
|||
) |
show the html input of the widget
Definition at line 458 of file icard.class.php.
References $attr, $choice, $div, $e, $ind, $indicator, $input, HtmlInput\$javascript, HtmlInput\$label, $query, $r, Icon_Action\clean_zone(), create_script(), display(), HtmlInput\get_js_attr(), Dossier\id(), javascript, name, readOnly, style, table, td(), and value.
|
static |
return the html string for creating the ipopup, this ipopup can be used for adding, modifying or display a card
$p_name | name of the ipopup, must be set after with set_attribute $f_add_button->label='Créer une nouvelle fiche';
$f_add_button->set_attribute('ipopup','ipop_newcard');
$f_add_button->set_attribute('filter',$this->get_all_fiche_def ());
$f_add_button->javascript=" select_card_type(this);";
$str_add_button=$f_add_button->input();
|
Definition at line 434 of file icard.class.php.
ICard::search | ( | ) |
return a string containing the button for displaying a search form.
When clicking on the result, update the input text file the common used attribute as
Definition at line 561 of file icard.class.php.
References $a, HtmlInput\$javascript, HtmlInput\$name, Icon_Action\button_magnifier(), and readOnly.
ICard::set_accvis | ( | $accvis | ) |
Definition at line 330 of file icard.class.php.
References $accvis.
ICard::set_amount_from_type | ( | $amount_from_type | ) |
amount_from_type : accountancy , sell or purchase price @parameter $amount_from_type ACH VEN or GL
Definition at line 346 of file icard.class.php.
References $amount_from_type, and amount_from_type.
ICard::set_autocomplete | ( | $autocomplete | ) |
1 autocomplet enable ; 0 autocomplete disable
Definition at line 313 of file icard.class.php.
References $autocomplete.
ICard::set_autocomplete_file | ( | $autocomplete_file | ) |
php file to call to complete info from the card
string | $autocomplete_file |
Definition at line 371 of file icard.class.php.
References $autocomplete_file.
ICard::set_callback | ( | $p_name | ) |
set the javascript callback function by default it is update_value called BEFORE the querystring is send
$p_name | callback function name |
Definition at line 400 of file icard.class.php.
ICard::set_choice | ( | $choice | ) |
id_of_div_to_populate with the output of the autocomplete_file, it is the autocomplete div presenting a list of possible choices.
Default {this->id}_choices
Definition at line 285 of file icard.class.php.
References $choice.
ICard::set_choice_create | ( | $choice_create | ) |
1 if you want to create automatically the autocomplete DIV to fill with the the output of "autocomplete_file" or 0 if this DIV is created explicitly
Definition at line 304 of file icard.class.php.
References $choice_create.
ICard::set_dblclick | ( | $p_action | ) |
set the extra javascript property for a double click on INPUT field
$p_action | action when a double click happens |
Definition at line 451 of file icard.class.php.
References $p_action.
ICard::set_fct | ( | $fct | ) |
Definition at line 274 of file icard.class.php.
References $fct.
ICard::set_function | ( | $p_name | ) |
set the javascript callback function by default it is update_value called AFTER an item has been selected
$p_name | callback function name |
Definition at line 410 of file icard.class.php.
ICard::set_indicator | ( | $indicator | ) |
Id of the element to show that it is seaching.
Definition at line 293 of file icard.class.php.
References $indicator.
ICard::set_limit | ( | $limit | ) |
Definition at line 336 of file icard.class.php.
References $limit.
ICard::set_style | ( | $style | ) |
ICard::set_typecard | ( | $typecard | ) |
argument "e" passed to autocomplete_file ,
type | $typecard |
Definition at line 360 of file icard.class.php.
References $typecard.
ICard::show_accounting | ( | ) |
in the search box, the accounting will be shown it is the default
Definition at line 380 of file icard.class.php.
|
static |
Definition at line 586 of file icard.class.php.
References $_REQUEST, $a, $b, $l, $p, alert(), HtmlInput\hidden(), style, HtmlInput\submit(), and type.
ICard::$accvis |
$limit Max of row show
Definition at line 147 of file icard.class.php.
Referenced by get_accvis(), and set_accvis().
ICard::$amount_from_type |
$typecard : type of card
Definition at line 153 of file icard.class.php.
Referenced by get_amount_from_type(), and set_amount_from_type().
ICard::$autocomplete |
$style supplemental CSS
Definition at line 141 of file icard.class.php.
Referenced by get_autocomplete(), and set_autocomplete().
|
private |
Definition at line 159 of file icard.class.php.
Referenced by get_autocomplete_file(), and set_autocomplete_file().
ICard::$callback |
$choice
Definition at line 129 of file icard.class.php.
ICard::$choice |
$indicator, text displaid when searching
Definition at line 132 of file icard.class.php.
Referenced by get_choice(), input(), and set_choice().
ICard::$choice_create |
$autocomplete : 1 enable - 0 disable
Definition at line 138 of file icard.class.php.
Referenced by get_choice_create(), and set_choice_create().
ICard::$dblclick |
$callback ,
Definition at line 126 of file icard.class.php.
ICard::$fct |
< $fct ,by default it is update_value called BEFORE the querystring is send
$dblclick action if double click
Definition at line 123 of file icard.class.php.
ICard::$indicator |
$choice_create 1 , display a (+) button , default 1
Definition at line 135 of file icard.class.php.
Referenced by get_indicator(), input(), and set_indicator().
ICard::$limit |
$amount_from_type : accountancy , sell or purchase price
Definition at line 150 of file icard.class.php.
Referenced by get_limit(), and set_limit().
ICard::$style =' ' |
$accvis account_visible =1 otherwise 0, default 1
Definition at line 144 of file icard.class.php.
Referenced by get_style(), and set_style().
ICard::$typecard |
$autocomplete_file , ajax file used for autocompletion (see Ajax.Autocompleter)
Definition at line 156 of file icard.class.php.
Referenced by get_typecard(), and set_typecard().