dolibarr
16.0.5
Main Page
Related Pages
Modules
Classes
Files
Examples
File List
File Members
dolibarr_16.0
htdocs
core
lib
multicurrency.lib.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) 2015 ATM Consulting <support@atm-consulting.fr>
3
* Copyright (C) 2018 Regis Houssin <regis.houssin@inodbox.com>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17
*/
18
31
function
multicurrencyAdminPrepareHead
()
32
{
33
global $langs, $conf;
34
35
$h = 0;
36
$head = array();
37
38
$head[$h][0] =
dol_buildpath
(
"/admin/multicurrency.php"
, 1);
39
$head[$h][1] = $langs->trans(
"Parameters"
);
40
$head[$h][2] =
'settings'
;
41
$h++;
42
43
$head[$h][0] =
dol_buildpath
(
"/multicurrency/multicurrency_rate.php"
, 1);
44
$head[$h][1] = $langs->trans(
"TabTitleMulticurrencyRate"
);
45
$head[$h][2] =
'ratelist'
;
46
$h++;
47
48
complete_head_from_modules
($conf, $langs,
null
, $head, $h,
'multicurrency'
);
49
50
complete_head_from_modules
($conf, $langs,
null
, $head, $h,
'multicurrency'
,
'remove'
);
51
52
return
$head;
53
}
54
61
function
multicurrencyLimitPrepareHead
($aCurrencies)
62
{
63
global $langs;
64
65
$i = 0;
66
$head = array();
67
68
foreach
($aCurrencies as $currency) {
69
$head[$i][0] = $_SERVER[
'PHP_SELF'
].
'?currencycode='
.$currency;
70
$head[$i][1] = $langs->trans(
"Currency"
.$currency).
' ('
.$langs->getCurrencySymbol($currency).
')'
;
71
$head[$i][2] = $currency;
72
73
$i++;
74
}
75
76
return
$head;
77
}
dol_buildpath
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
Definition:
functions.lib.php:1062
complete_head_from_modules
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add')
Complete or removed entries into a head array (used to build tabs).
Definition:
functions.lib.php:9038
multicurrencyLimitPrepareHead
multicurrencyLimitPrepareHead($aCurrencies)
Prepare array with list of currency tabs.
Definition:
multicurrency.lib.php:61
multicurrencyAdminPrepareHead
multicurrencyAdminPrepareHead()
Prepare array with list of tabs.
Definition:
multicurrency.lib.php:31
Generated on Mon Dec 4 2023 01:01:15 for
dolibarr
by Doxygen 1.8.17