|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
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. | |
| clean_filename ($p_filename) | |
| sanitize the filename remove character which could be a problem, | |
| CleanUrl () | |
| Clean the url, remove the $_GET offset,step, page and size. | |
| isValid_deprecrated ($p_cn, $p_grpt_id) | |
| test if a jrn op is valid | |
| navigation_bar ($p_offset, $p_line, $p_size=0, $p_page=1, $p_javascript="") | |
| Create a navigation_bar (pagesize) | |
| redirect ($p_string, $p_time=0) | |
| toNumber ($p_num) | |
| remove the useless space, change comma by period and try to return a number | |
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.
References $e, $p_array, and _.
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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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, and noalyss_str_replace().
Referenced by Stock\history(), Anc_Operation\html_table(), Fiche_Def\myList(), Follow_Up\myList(), contact\Summary(), and Fiche\Summary().
Here is the call graph for this function:| redirect | ( | $p_string, | |
| $p_time = 0 ) |
Definition at line 181 of file user_common.php.
| 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().
Here is the call graph for this function: