noalyss Version-9
|
Common functions. More...
Go to the source code of this file.
Functions | |
check_parameter ($p_array, $p_needed) | |
Check that all the index are in the array, used by function to check if the array contains the needed variables before an extract. More... | |
clean_filename ($p_filename) | |
sanitize the filename remove character which could be a problem, More... | |
CleanUrl () | |
Clean the url, remove the $_GET offset,step, page and size. More... | |
isValid_deprecrated ($p_cn, $p_grpt_id) | |
test if a jrn op is valid More... | |
navigation_bar ($p_offset, $p_line, $p_size=0, $p_page=1, $p_javascript="") | |
Create a navigation_bar (pagesize) More... | |
redirect ($p_string, $p_time=0) | |
toNumber ($p_num) | |
remove the useless space, change comma by period and try to return a number More... | |
Common functions.
Definition in file user_common.php.
check_parameter | ( | $p_array, | |
$p_needed | |||
) |
Check that all the index are in the array, used by function to check if the array contains the needed variables before an extract.
type | $p_array | array to check |
type | $needed | string containing variable separated by comma |
Exception |
Definition at line 209 of file user_common.php.
Referenced by Acc_Ledger_Fin\verify_operation(), Acc_Ledger_Purchase\verify_operation(), and Acc_Ledger_Sale\verify_operation().
clean_filename | ( | $p_filename | ) |
sanitize the filename remove character which could be a problem,
string | $p_filename | the filename to clean |
Definition at line 223 of file user_common.php.
References $i, and noalyss_str_replace().
Referenced by Document_Export\export_receipt().
CleanUrl | ( | ) |
Clean the url, remove the $_GET offset,step, page and size.
none |
Definition at line 175 of file user_common.php.
isValid_deprecrated | ( | $p_cn, | |
$p_grpt_id | |||
) |
test if a jrn op is valid
$p_cn | db |
$p_grpt_id |
Definition at line 39 of file user_common.php.
References $a, $Res, echo_error(), DatabaseCore\fetch_array(), and DatabaseCore\num_row().
navigation_bar | ( | $p_offset, | |
$p_line, | |||
$p_size = 0 , |
|||
$p_page = 1 , |
|||
$p_javascript = "" |
|||
) |
Create a navigation_bar (pagesize)
$p_offset | first record number |
$p_line | total of returned row |
$p_size | current g_pagesize user's preference |
$p_page | number of the page where the user is |
$p_javascript | javascript code to add |
$step=$_SESSION[SESSION_KEY.'g_pagesize']; $page=(isset($_GET['offset']))?$_GET['page']:1; $offset=(isset($_GET['offset']))?$_GET['offset']:0; list ($max_ligne,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); $bar=navigation_bar($offset,$max_ligne,$step,$page);
Definition at line 76 of file user_common.php.
References $_GET, $e, $offset, $r, $sep, $step, $url, if, and noalyss_str_replace().
Referenced by Stock\history(), Anc_Operation\html_table(), Follow_Up\myList(), Fiche_Def\myList(), Acc_Ledger_Purchase\show_unpaid_deprecated(), Fiche\Summary(), and contact\Summary().
redirect | ( | $p_string, | |
$p_time = 0 |
|||
) |
Definition at line 181 of file user_common.php.
Referenced by Noalyss_User\connect_user().
toNumber | ( | $p_num | ) |
remove the useless space, change comma by period and try to return a number
$p_num | number to format |
Definition at line 194 of file user_common.php.
References noalyss_str_replace().
Referenced by Acc_Ledger_Search\build_search_sql().