noalyss Version-9
|
class widget This class is used to create all the HTML INPUT TYPE and some specials which works with javascript like js_search. More...
Public Member Functions | |
__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 | 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 | |
$attribute | |
$css_size | |
$ctrl | |
$disabled | |
$extra | |
$extra2 | |
$heigh | |
$id | |
$javascript | |
$label | |
$name | |
$readOnly | |
$require | |
$selected | |
$size | |
$style | |
$tabindex | |
$table | |
$type | |
$value | |
$width | |
class widget This class is used to create all the HTML INPUT TYPE and some specials which works with javascript like js_search.
special value js_search and js_search_only :you need to add a span widget the name of the js_* widget + '_label' , the member extra contains cred,deb to filter the search of cred of deb of a jrn or contains a string with a list of frd_id. Possible type $type
Definition at line 54 of file html_input.class.php.
HtmlInput::__construct | ( | $p_name = "" , |
|
$p_value = "" , |
|||
$p_id = "" |
|||
) |
Reimplemented in IAncCard, ICard, INum, IDate, InputCheckBox, InputSwitch, IText, IPeriod, ICheckBox, IColor, IFile, IPoste, ISelect, ITextarea, IConcerned, and ITva_Popup.
Definition at line 80 of file html_input.class.php.
References $p_id, disabled, extra, heigh, javascript, name, readOnly, selected, size, table, value, and width.
HtmlInput::__toString | ( | ) |
Definition at line 201 of file html_input.class.php.
|
static |
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.
You must give p_url OR p_js default CSS class=line
string | $p_text | text of the anchor |
string | $p_url | url |
string | $p_js | javascript |
string | $p_style | is the visuable effect (class, style...) |
string | $p_title | Title |
array | $p_attribute | javascript attribute to add to the anchor, CAUTION special chars will be translated(see htmlspecialchars function) |
Definition at line 953 of file html_input.class.php.
References $p_url, $str, and build_javascript_attribute().
Referenced by Acc_Bilan\display_form(), Follow_Up_Other_Concerned\display_row(), Acc_Plan_MTable\display_row(), Noalyss\Mobile\execute_menu(), and Tva_Rate_MTable\input().
|
static |
Anchor Html with javascript.
$action | action action to perform (message) without onclick |
$javascript | javascript to execute |
$id | is the DOM element id |
$p_class | CSS class of the button |
$p_symbole | raw symbole to add to the action message |
Definition at line 509 of file html_input.class.php.
References $action, $id, $javascript, and $r.
Referenced by Follow_Up_Other_Concerned\display_linked_count(), and Acc_Ledger_Search\select_ledger().
|
static |
Return a html string with an anchor which close the inside popup.
(top-right corner)
name | of the DIV to close |
Definition at line 496 of file html_input.class.php.
|
static |
let you create only a link and set an id on it.
After create a javascript for getting the event onclick = function() {...}
type | $p_text | Text to display |
type | $p_id | id of the link |
type | $type | title of the link <script>$("go_id").onclick=function (e) { ...}</script>
static anchor_empty($p_text, $p_id, $p_title="") let you create only a link and set an id on it. Definition: html_input.class.php:932 |
Definition at line 932 of file html_input.class.php.
|
static |
Return a html string with an anchor to hide a div, put it in the right corner.
$action | action action to perform (message) |
$javascript | javascript |
Definition at line 582 of file html_input.class.php.
|
static |
transform request data to hidden
$array | is an of indices |
$request | name of the superglobal $_POST $_GET $_REQUEST(default) |
Definition at line 618 of file html_input.class.php.
References $a, $array, $r, $value, and hidden().
Referenced by Follow_Up\display_search(), get_to_hidden(), Fiche\HtmlTableHeader(), post_to_hidden(), and request_to_hidden().
|
static |
transform request data to string
$array | is an of indices |
$request | name of the superglobal $_POST $_GET $_REQUEST(default) |
Definition at line 715 of file html_input.class.php.
References $a, $array, $i, $r, and $start.
Referenced by get_to_string(), post_to_string(), and request_to_string().
|
static |
Definition at line 218 of file html_input.class.php.
Referenced by ITva_Popup\__construct(), Tag_Action\add_clear_button(), Tag_Operation\add_clear_button(), Anc_GrandLivre\button_export_pdf(), Tag_Operation\button_search(), followup_card_button(), Periode\form_periode_add(), history_card_button(), ITva_Popup\input(), Tag_Group_MTable\input_tag(), Html_Input_Noalyss\ledger_add_item(), print_window(), Stock\search_box_button(), Tag_Action\select_tag_search(), Follow_Up\tag_cell(), Acc_Ledger\test_me(), and ITva_Popup\with_button().
|
static |
button Html with javascript
$action | action action to perform (message) without onclick |
$javascript | javascript to execute |
$id | is the DOM element id |
$p_class | CSS class of the button |
$p_symbole | raw symbole to add to the action message |
Definition at line 529 of file html_input.class.php.
References $action, $id, $javascript, and $r.
Referenced by Manage_Table_SQL\ajax_input(), Follow_Up_Other_Concerned\button_action_add_concerned_card(), Acc_Ledger_Search\button_propose_filter(), Manage_Table_SQL\display_table(), Pre_operation\form_get(), html_page_start(), Acc_Plan_MTable\input(), Acc_Report_MTable\input_custom(), and Noalyss\Mobile\page_start().
|
static |
Definition at line 1192 of file html_input.class.php.
|
static |
type | $p_operation_jr_id | action_gestion_operation.ago_id |
Definition at line 1182 of file html_input.class.php.
|
static |
create a button with a ref
$p_label | the text |
$p_value | the location of the window, |
$p_name | the id of the span |
$p_javascript | javascript for this button |
Definition at line 256 of file html_input.class.php.
Referenced by Acc_Ledger\button_new_operation(), and Anticipation\input_form().
|
static |
type | $p_array | indice
|
Definition at line 1105 of file html_input.class.php.
|
static |
close button for the HTML popup
$div_name | is the name of the div to remove |
Definition at line 464 of file html_input.class.php.
References $a, $class, and $html.
Referenced by Acc_Operation\form_clone_operation(), and Acc_Ledger_Search\select_ledger().
|
static |
Hide the HTML popup.
type | $div_name |
Definition at line 480 of file html_input.class.php.
Referenced by Noalyss\Dbg\display_global(), Noalyss\Dbg\display_request(), Acc_Ledger_Search\display_search_form(), Document_modele\form(), Pre_operation\form_get(), and Noalyss\Dbg\hidden_info().
|
static |
button Html image
$javascript | javascript to execute |
$id | id of the button |
$class | class of the button |
$p_image | image |
Definition at line 561 of file html_input.class.php.
References $id, $javascript, and $r.
|
static |
Zoom the calendar.
type | $obj | objet json for the javascript |
Definition at line 1090 of file html_input.class.php.
|
static |
show the detail of a card
Definition at line 600 of file html_input.class.php.
Referenced by Acc_Plan_MTable\display_row(), Acc_Account_Ledger\HtmlTable(), and Acc_Ledger_Search\list_operation().
|
static |
return default if the value if the value doesn't exist in the array
$ind | string the index to check |
$default | string the value to return |
$array | array the array |
Definition at line 800 of file html_input.class.php.
Referenced by Stock\search_box(), and Stock_Goods\take_last_inventory().
|
static |
return default if the value if the value doesn't exist in $_GET use HttpInput instead
$ind | name of the variable | |
type | $default |
Definition at line 818 of file html_input.class.php.
|
static |
return default if the value if the value doesn't exist in $_POST use HttpInput instead
$ind | name of the variable | |
type | $default |
Definition at line 836 of file html_input.class.php.
|
static |
return default if the value if the value doesn't exist in $_REQUEST use HttpInput instead
$ind | name of the variable | |
type | $default |
Definition at line 854 of file html_input.class.php.
|
static |
return an anchor to view the detail of an action
$ag_id | |
$p_mesg | |
$p_modify | let you modify an operation |
Definition at line 302 of file html_input.class.php.
|
static |
return a string containing the html code for calling the modifyModeleDocument
Definition at line 311 of file html_input.class.php.
References $p_id, $p_mesg, and id.
Referenced by Document_modele\myList().
|
static |
return a string containing the html code for calling the modifyOperation
Definition at line 289 of file html_input.class.php.
Referenced by Acc_Ledger_Purchase\confirm(), Anc_GrandLivre\display_html(), Anc_Listing\display_html(), Print_Operation_Currency\export_html(), and Acc_Ledger_Fin\insert().
|
static |
Definition at line 452 of file html_input.class.php.
|
static |
Definition at line 277 of file html_input.class.php.
Referenced by Template_Card_Category\input(), Tva_Rate_MTable\input(), Manage_Table_SQL\input(), and Manage_Table_SQL\show_error().
|
static |
Definition at line 243 of file html_input.class.php.
References $_REQUEST, and hidden().
|
static |
Display a field for searching an element in a list, the searchable text must be in an element with the className search-content.
string | $p_list_id | DOM ID of the list (ul or ol) <ul id="xx">
<li><span class="search-content"> Content used for searching</span> Content not used for search </li>
<li><span class="search-content"> Content used for searching</span> <a href="">Content not used for search</a> </li>
<li><span class="search-content"> Content used for searching</span> Content not used for search </li>
<ul>
|
Definition at line 1067 of file html_input.class.php.
References $r.
Referenced by Select_Box\input(), and Select_Dialog\input().
|
static |
filter the rows in a table and keep the colored row in alternance
dom_id | $p_table_id | table |
string | $p_col,column | to search example 0,1,2 |
int | $start_row | row to always keep (header) |
Definition at line 1039 of file html_input.class.php.
References $r.
Referenced by Pre_operation\display_list_operation(), Manage_Table_SQL\display_table(), Print_Operation_Currency\export_html(), Acc_Account_Ledger\filter_history(), Fiche\filter_history(), Anc_Operation\html_table(), Acc_Ledger\listing(), Follow_Up\myList(), and Document_modele\myList().
|
static |
dom_id | $p_table_id | table |
string | $p_col,column | to search example 0,1,2 |
int | $start_row | row to always keep (header) |
string | $p_name | name of the input field |
string | $p_old_value | search value sent by $_GET (or $_REQUEST) |
Definition at line 1019 of file html_input.class.php.
References $r.
|
static |
display a div with the history of the card
int | $f_id | fiche.f_id |
string | $p_mesg | string to display |
int | $p_exercice | exercice of the history |
Definition at line 365 of file html_input.class.php.
References $f_id, $g_user, $js, $p_mesg, button(), and id.
|
static |
generate an unique id for a widget,
$p_prefix | prefix |
Definition at line 788 of file html_input.class.php.
References $r.
Referenced by IDate\input().
HtmlInput::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.
Reimplemented in IPoste.
Definition at line 140 of file html_input.class.php.
References $attr, $i, $name, $value, and create_script().
Referenced by IAncCard\input(), and ICard\input().
HtmlInput::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">
Definition at line 1207 of file html_input.class.php.
Referenced by INum\input(), IText\input(), ITva_Popup\input(), and ICheckBox\input().
|
static |
transform $_GET data to hidden
$array | is an of indices |
Definition at line 679 of file html_input.class.php.
References $_GET, $array, $r, and array_to_hidden().
Referenced by Stock\export_stock_histo_form(), Stock\export_stock_summary_list_form(), and Template_Card_Category\input().
|
static |
transform $_GET data to string
$array | is an of indices |
Definition at line 752 of file html_input.class.php.
References $_GET, $array, $r, $start, and array_to_string().
Referenced by Fiche_Def\display(), Stock\history(), Follow_Up\myList(), and Html_Table\test_me().
HtmlInput::get_value | ( | ) |
|
static |
Definition at line 230 of file html_input.class.php.
References $p_id.
Referenced by Manage_Table_SQL\ajax_input(), array_to_hidden(), Acc_Ledger\button_copy_operation(), Anc_GrandLivre\button_export_csv(), Anc_GrandLivre\button_export_pdf(), Acc_Ledger_Fin\confirm(), Acc_Ledger\confirm(), Acc_Ledger_Purchase\confirm(), Acc_Ledger_Sale\confirm(), confirm_with_string(), Pre_op_ach\display(), Pre_Op_Advanced\display(), Pre_op_ven\display(), Acc_Ledger\display_ledger(), Follow_Up\display_search(), Acc_Ledger_Search\display_search_form(), Stock\export_stock_histo_form(), Stock\export_stock_summary_list_form(), extension(), Anc_Group_Operation\form(), Document_modele\form(), Acc_Operation\form_clone_operation(), Tax_Summary\form_export_csv(), Tax_Summary\form_export_pdf(), Periode\form_periode_add(), Anc_Plan\hidden(), Single_Record\hidden(), Acc_Account_Ledger\HtmlTableHeader(), Fiche\HtmlTableHeader(), Acc_Ledger_Fin\input(), Acc_Ledger\input(), Acc_Ledger_Purchase\input(), Acc_Ledger_Sale\input(), InputCheckBox\input(), InputSwitch\input(), Template_Card_Category\input(), Tva_Rate_MTable\input(), Manage_Table_SQL\input(), Acc_Report_MTable\input_custom(), Fiche_Def\input_detail(), Anticipation\input_form(), Acc_Ledger\input_new(), Fiche_Def\input_new(), json_to_hidden(), Html_Input_Noalyss\ledger_add_item(), Acc_Ledger_Search\list_operation_to_reconcile(), Fiche_Def\myList(), Acc_Ledger_Search\search_form(), Acc_Payment\select(), Acc_Ledger_Search\select_ledger(), Anc_Table\show_button(), Anc_Acc_List\show_button(), Anc_Group\show_button(), Anc_Balance_Double\show_button(), Anc_Balance_Simple\show_button(), Anc_Listing\show_button(), Lettering\show_letter(), simple_array_to_hidden(), Acc_Bilan\test_me(), Anc_Operation\test_me(), Fiche\test_me(), and ICard\test_me().
|
static |
display a div with the history of the account
string | $p_account | accounting |
string | $p_mesg | string to display |
string | $p_style | extra code for HTML |
int | $p_exercice | exercice of the history |
Definition at line 383 of file html_input.class.php.
References $g_user, $p_exercice, $p_mesg, and id.
Referenced by Anc_GrandLivre\display_html(), Anc_Listing\display_html(), Anc_Table\display_html(), and Acc_Plan_MTable\display_row().
|
static |
display a div with the history of the analytic account
int | $p_account | po_id |
string | $p_mesg | string to display |
string | $p_style | extra code for HTML |
int | $p_exercice | exercice of the history |
Definition at line 400 of file html_input.class.php.
References $g_user, $p_exercice, $p_mesg, and id.
|
static |
display a div with the history of the card
Definition at line 329 of file html_input.class.php.
References $f_id, $g_user, $p_exercice, $p_mesg, and id.
Referenced by Anc_GrandLivre\display_html(), Anc_Listing\display_html(), and Anc_Table\display_html().
|
static |
display a div with the history of the card
int | $f_id | fiche.f_id |
string | $p_mesg | string to display |
int | $p_exercice | exercice of the history |
Definition at line 346 of file html_input.class.php.
References $e, $f_id, $g_user, $js, $p_exercice, $p_mesg, button(), and id.
|
static |
Image to click ,.
string | $p_image | filename of the image under image/ |
string | $p_js | javascript when the image is clicked |
string | $p_message | Message |
Definition at line 547 of file html_input.class.php.
References $ret.
|
static |
transform a json to hidden
json | $p_json |
Definition at line 664 of file html_input.class.php.
References $value, and hidden().
Referenced by Manage_Table_SQL\ajax_input().
HtmlInput::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.
$p_name | : name of the object, can be null. If the name is not null, return $p_name={} otherwise only the object {} |
Definition at line 178 of file html_input.class.php.
|
static |
transform $_POST data to hidden
$array | is an of indices |
Definition at line 691 of file html_input.class.php.
References $_POST, $array, $r, and array_to_hidden().
Referenced by Acc_Ledger\button_copy_operation(), Acc_Ledger_Purchase\confirm(), and Acc_Ledger_Sale\confirm().
|
static |
transform $_POST data to string
$array | is an of indices |
Definition at line 764 of file html_input.class.php.
References $_POST, $array, $r, and array_to_string().
|
static |
Javascript to print the current window.
Definition at line 590 of file html_input.class.php.
Referenced by Stock\history(), Fiche\HtmlTableHeader(), and Stock\summary().
|
static |
return a string containing the html code for calling the removeStock
Definition at line 320 of file html_input.class.php.
|
static |
transform $_REQUEST data to hidden
$array | is an of indices |
Definition at line 703 of file html_input.class.php.
References $_REQUEST, $array, $r, and array_to_hidden().
Referenced by Follow_Up\display(), Anc_Print\display_form(), Anc_Acc_List\display_form(), Anc_Table\display_form(), Anc_Balance_Double\display_form(), and Follow_Up\show_action_list().
|
static |
transform $_REQUEST data to string
$array | is an of indices |
Definition at line 776 of file html_input.class.php.
References $_REQUEST, $array, $r, $start, and array_to_string().
Referenced by Follow_Up\display_children(), and Follow_Up\display_parent().
|
static |
Definition at line 225 of file html_input.class.php.
|
static |
create a hidden plus button to select the cat of ledger
Definition at line 415 of file html_input.class.php.
References $_GET, $array_cat, $e, $ledger, $r, $row, and $selected.
|
static |
Create an ISelect object containing the available repository for reading or writing.
$p_cn | db object |
$p_name | name of the select |
$p_mode | is 'R' for reading, 'W' for writinh |
Exception | if p_mode is wrong |
Definition at line 978 of file html_input.class.php.
References $g_user, $profile, $sel, and sql_string().
Referenced by Stock_Goods\input(), Stock\search_box(), and Acc_Ledger\select_depot().
HtmlInput::set_attribute | ( | $p_name, | |
$p_value | |||
) |
set the extra javascript property for the INPUT field
$p_name | name of the parameter |
$p_value | default value of this parameter |
Reimplemented in IPopup.
Definition at line 110 of file html_input.class.php.
Referenced by IAncCard\input(), and ITva_Popup\input().
HtmlInput::set_value | ( | $p_string | ) |
HtmlInput::setReadOnly | ( | $p_read | ) |
Definition at line 99 of file html_input.class.php.
References readOnly.
Referenced by Acc_Ledger_Fin\input().
|
static |
Returns HTML code for displaying a icon with a link to a receipt document from the ledger.
$p_jr_id | jrn.jr_id |
$p_name | name in the link , if the name is empty then we show the icon |
Definition at line 1149 of file html_input.class.php.
Referenced by Anc_GrandLivre\display_html(), Acc_Ledger_Purchase\insert(), and Acc_Ledger_Sale\insert().
|
static |
Definition at line 1079 of file html_input.class.php.
References $r.
Referenced by Acc_Account_Ledger\HtmlTable(), and Fiche\HtmlTable().
|
static |
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;.
double | $array |
Definition at line 651 of file html_input.class.php.
References $array, $r, $value, and hidden().
Referenced by Acc_Operation\form_clone_operation().
|
static |
Definition at line 211 of file html_input.class.php.
Referenced by Manage_Table_SQL\ajax_input(), Acc_Ledger\button_copy_operation(), Anc_GrandLivre\button_export_csv(), Anc_GrandLivre\button_export_pdf(), Follow_Up\display(), Anc_Balance_Simple\display_form(), Anc_Listing\display_form(), Anc_Balance_Double\display_form(), Acc_Ledger_Search\display_search_form(), Stock\export_stock_histo_form(), Stock\export_stock_summary_list_form(), Document_modele\form(), Acc_Operation\form_clone_operation(), Tax_Summary\form_export_csv(), Tax_Summary\form_export_pdf(), Periode\form_periode_add(), Acc_Account_Ledger\HtmlTableHeader(), Fiche\HtmlTableHeader(), Fiche_Def\input_detail(), Anticipation\input_form(), Fiche_Def\input_new(), Document_modele\myList(), Fiche_Def\myList(), Acc_Ledger_Search\select_ledger(), Anc_Table\show_button(), Anc_Acc_List\show_button(), Anc_Group\show_button(), Anc_Balance_Double\show_button(), Anc_Balance_Simple\show_button(), Anc_Listing\show_button(), Acc_Ledger_Purchase\show_unpaid_deprecated(), Acc_Ledger\test_me(), Acc_Bilan\test_me(), Fiche\test_me(), and ICard\test_me().
|
static |
Title for boxes, you can customize the symbol thanks symbol with the mode "custom".
string | $p_name | Title |
string | $div | element id, except for mode none or custom |
string | $p_mod | hide , close , zoom , custom or none, with custom , the $name contains all the code |
string | $p_js | contains the javascript if mod = "custom" or "zoom" contains button + code |
char | $p_draggable,y | = yes n = no ,if set to yes the box will be draggable |
Definition at line 874 of file html_input.class.php.
References $r, Icon_Action\close(), Icon_Action\draggable(), elseif, Icon_Action\full_size(), h2(), Icon_Action\hide(), and Icon_Action\zoom().
Referenced by Manage_Table_SQL\ajax_input(), Noalyss\Dbg\display_global(), Noalyss\Dbg\display_request(), Acc_Ledger_Search\display_search_form(), Pre_operation\form_get(), Periode\form_periode_add(), Noalyss\Dbg\hidden_info(), html_page_start(), Select_Dialog\input(), Noalyss\Mobile\page_start(), and Acc_Ledger_Search\select_ledger().
|
static |
type | $p_comment |
Definition at line 272 of file html_input.class.php.
HtmlInput::$attribute |
Definition at line 75 of file html_input.class.php.
HtmlInput::$css_size |
Definition at line 78 of file html_input.class.php.
Referenced by IPoste\input().
HtmlInput::$ctrl |
$ctrl is the control to update (see js_search_card_control)
Definition at line 70 of file html_input.class.php.
HtmlInput::$disabled |
$disabled poss. value == true or nothing, to disable INPUT
Definition at line 65 of file html_input.class.php.
Referenced by ISelect\input().
HtmlInput::$extra |
$extra different usage, it depends of the $type
Definition at line 66 of file html_input.class.php.
Referenced by IText\display(), INum\input(), IPoste\input(), IButton\input(), and ISmallButton\input().
HtmlInput::$extra2 |
$extra2 different usage, it depends of the $type
Definition at line 67 of file html_input.class.php.
HtmlInput::$heigh |
Definition at line 74 of file html_input.class.php.
HtmlInput::$id |
Definition at line 76 of file html_input.class.php.
Referenced by INum\__construct(), anchor_action(), button_action(), button_image(), and Html_Input_Noalyss\ledger_add_item().
HtmlInput::$javascript |
$javascript is the javascript to add to the widget
Definition at line 69 of file html_input.class.php.
Referenced by anchor_action(), button_action(), button_image(), IPoste\dsp_button(), IAncCard\input(), ICard\input(), IConcerned\input(), IPoste\input(), IPopup\input(), and ICard\search().
HtmlInput::$label |
$label the question before the input
Definition at line 64 of file html_input.class.php.
Referenced by IAncCard\input(), and ICard\input().
HtmlInput::$name |
$name field NAME of the INPUT
Definition at line 58 of file html_input.class.php.
Referenced by IAncCard\__construct(), ICard\__construct(), INum\__construct(), IDate\__construct(), InputCheckBox\__construct(), InputSwitch\__construct(), IText\__construct(), get_js_attr(), IPoste\get_js_attr(), ITextarea\input(), make_object_deprecated(), and ICard\search().
HtmlInput::$readOnly |
$readonly true : we cannot change value
Definition at line 60 of file html_input.class.php.
HtmlInput::$require |
Definition at line 72 of file html_input.class.php.
Referenced by IText\input().
HtmlInput::$selected |
$selected for SELECT RADIO and CHECKBOX the selected value
Definition at line 62 of file html_input.class.php.
Referenced by select_cat().
HtmlInput::$size |
$size size of the input
Definition at line 61 of file html_input.class.php.
Referenced by IPoste\input().
HtmlInput::$style |
Definition at line 77 of file html_input.class.php.
Referenced by INum\display(), and ISelect\input().
HtmlInput::$tabindex |
Definition at line 71 of file html_input.class.php.
HtmlInput::$table |
$table =1 add the table tag
Definition at line 63 of file html_input.class.php.
Referenced by ITva_Popup\input().
HtmlInput::$type |
$type type of the widget
Definition at line 57 of file html_input.class.php.
HtmlInput::$value |
$value what the INPUT contains
Definition at line 59 of file html_input.class.php.
Referenced by IAncCard\__construct(), ICard\__construct(), INum\__construct(), IDate\__construct(), IText\__construct(), array_to_hidden(), ISelect\display(), ITextarea\display(), get_js_attr(), IPoste\get_js_attr(), get_value(), ISelect\get_value(), ISelect\input(), ITextarea\input(), IPopup\input(), json_to_hidden(), make_object_deprecated(), simple_array_to_hidden(), and ISelect\transform().
HtmlInput::$width |
Definition at line 73 of file html_input.class.php.