38require
'../main.inc.php';
39require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formother.class.php';
40require_once DOL_DOCUMENT_ROOT.
'/core/lib/multicurrency.lib.php';
44$langs->loadLangs(array(
'admin',
'multicurrency'));
47$action =
GETPOST(
'action',
'alpha');
48$massaction =
GETPOST(
'massaction',
'alpha');
50$confirm =
GETPOST(
'confirm',
'alpha');
51$toselect =
GETPOST(
'toselect',
'array');
53$sall = trim((
GETPOST(
'search_all',
'alphanohtml') !=
'') ?
GETPOST(
'search_all',
'alphanohtml') :
GETPOST(
'sall',
'alphanohtml'));
56$search_rate =
GETPOST(
'search_rate',
'alpha');
57$search_rate_indirect =
GETPOST(
'search_rate_indirect',
'alpha');
58$search_code =
GETPOST(
'search_code',
'alpha');
59$multicurrency_code =
GETPOST(
'multicurrency_code',
'alpha');
62$rateindirectinput = (float)
price2num(
GETPOST(
'rateinidirectinput',
'alpha'));
63$optioncss =
GETPOST(
'optioncss',
'alpha');
66if (empty($page) || $page == -1) {
69$offset = $limit * $page;
72$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
73$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
75 $sortfield =
"cr.date_sync";
91$hookmanager->initHooks(array(
'EditorRatelist',
'globallist'));
98$fieldstosearchall = array(
99 'cr.date_sync' =>
"date_sync",
101 'cr.rate_indirect' =>
"rate_indirect",
107 'cr.date_sync' => array(
'label' =>
'Date',
'checked' => 1),
108 'cr.rate' => array(
'label' =>
'Rate',
'checked' => 1),
109 'cr.rate_indirect' => array(
'label' =>
'RateIndirect',
'checked' => 0,
'enabled' => (!
getDolGlobalString(
'MULTICURRENCY_USE_RATE_INDIRECT') ? 0 : 1)),
110 'm.code' => array(
'label' =>
'Code',
'checked' => 1),
116'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields';
121if (!$user->admin || !isModEnabled(
"multicurrency")) {
132if ($action ==
"create") {
133 if (empty($multicurrency_code) || $multicurrency_code ==
'-1') {
134 setEventMessages($langs->trans(
'ErrorFieldRequired', $langs->transnoentitiesnoconv(
"Currency")),
null,
"errors");
137 if ($rateinput ===
'0') {
140 } elseif (empty($rateinput)) {
141 setEventMessages($langs->trans(
'ErrorFieldRequired', $langs->transnoentitiesnoconv(
"Rate")),
null,
"errors");
148 $fk_currency = $currency_static->getIdFromCode($db, $multicurrency_code);
150 $currencyRate_static->fk_multicurrency = $fk_currency;
151 $currencyRate_static->entity = $conf->entity;
152 $currencyRate_static->date_sync = $dateinput;
153 $currencyRate_static->rate = $rateinput;
154 $currencyRate_static->rate_indirect = $rateindirectinput;
156 $result = $currencyRate_static->create($user, intval($fk_currency));
158 setEventMessages($langs->trans(
'successRateCreate', $multicurrency_code),
null);
160 dol_syslog(
"currencyRate:createRate", LOG_WARNING);
161 setEventMessages($currencyRate_static->error, $currencyRate_static->errors,
'errors');
166if ($action ==
'update') {
168 $result = $currencyRate->fetch($id_rate_selected);
171 $fk_currency = $currency_static->getIdFromCode($db, $multicurrency_code);
172 $currencyRate->date_sync = $dateinput;
173 $currencyRate->fk_multicurrency = $fk_currency;
174 $currencyRate->rate = $rateinput;
175 $res = $currencyRate->update($user);
186if ($action ==
"deleteRate") {
188 $current_rate->fetch((
int) $id_rate_selected);
192 $current_currency->fetch($current_rate->fk_multicurrency);
193 if ($current_currency) {
194 $delayedhtmlcontent = $form->formconfirm(
195 $_SERVER[
"PHP_SELF"].
'?id_rate='.$id_rate_selected,
196 $langs->trans(
'DeleteLineRate'),
197 $langs->trans(
'ConfirmDeleteLineRate', $current_rate->rate, $current_currency->name, $current_rate->date_sync),
204 dol_syslog(
"Multicurrency::fetch", LOG_WARNING);
211if ($action ==
"confirm_delete") {
213 $current_rate->fetch((
int) $id_rate_selected);
215 $result = $current_rate->delete($user);
222 setEventMessages($langs->trans(
'NoCurrencyRateSelected'),
null,
"warnings");
223 dol_syslog($langs->trans(
'NoCurrencyRateSelected'), LOG_WARNING);
228if (
GETPOST(
'cancel',
'alpha')) {
232if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
236$parameters = array();
237$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
241if (empty($reshook)) {
243 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
246 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
248 $search_date_sync =
"";
249 $search_date_sync_end =
"";
252 $search_array_options = array();
256 $objectclass =
"CurrencyRate";
257 $uploaddir = $conf->multicurrency->multidir_output;
258 $permissiontoread = $user->admin;
259 $permissiontodelete = $user->admin;
260 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
268$form =
new Form($db);
270$title = $langs->trans(
"CurrencyRate");
271$page_name =
"MultiCurrencySetup";
276$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
281print
dol_get_fiche_head($head,
'ratelist', $langs->trans(
"ModuleSetup"), -1,
"multicurrency");
285if (!in_array($action, array(
"updateRate",
"deleteRate"))) {
286 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post" name="formulaire">';
287 print
'<input type="hidden" name="token" value="'.newToken().
'">';
289 print
'<div class="div-table-responsive-no-min">';
290 print
'<table class="noborder centpercent"><tr>';
292 print
' <td>'.$langs->trans(
'Date').
'</td>';
294 print $form->selectDate($dateinput,
'dateinput', 0, 0, 1,
'', 1, 1);
297 print
'<td> '.$langs->trans(
'Currency').
'</td>';
298 print
'<td>'.$form->selectMultiCurrency((GETPOSTISSET(
'multicurrency_code') ?
GETPOST(
'multicurrency_code',
'alpha') : $multicurrency_code),
'multicurrency_code', 1,
" code != '".$db->escape($conf->currency).
"'", true).
'</td>';
300 print
' <td>'.$langs->trans(
'Rate').
' / '.$langs->getCurrencySymbol($conf->currency).
'</td>';
301 print
' <td><input type="text" min="0" step="any" class="maxwidth75" id="rateinput" name="rateinput" value="'.dol_escape_htmltag($rateinput).
'"></td>';
304 print
' <td>'.$langs->trans(
'RateIndirect').
' / '.$langs->getCurrencySymbol($conf->currency).
'</td>';
305 print
' <td><input type="text" min="0" step="any" class="maxwidth75" id="rateindirectinput" name="rateindirectinput" value="'.dol_escape_htmltag($rateindirectinput).
'"></td>';
307 print
'<script type="text/javascript">';
308 print
'jQuery(document).ready(function () {
310 jQuery("#rateindirectinput").keyup(function () {
311 var valindirect = jQuery(this).val();
312 valdirect = 1 / parseFloat(valindirect);
313 jQuery("#rateinput").val(valdirect);
314 console.log("Rate Direct:"+valdirect)
321 print
'<input type="hidden" name="action" value="create">';
322 print
'<input type="submit" class="button button-add small" name="btnCreateCurrencyRate" value="'.$langs->trans(
'CreateRate').
'">';
325 print
'</tr></table>';
336$sql =
'SELECT cr.rowid, cr.date_sync, cr.rate, cr.rate_indirect, cr.entity, m.code, m.name';
338$parameters = array();
339$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters);
340$sql .= $hookmanager->resPrint;
341$sql .=
' FROM '.MAIN_DB_PREFIX.
'multicurrency_rate as cr ';
342$sql .=
" INNER JOIN ".MAIN_DB_PREFIX.
"multicurrency AS m ON cr.fk_multicurrency = m.rowid";
346if ($search_date_sync && $search_date_sync_end) {
347 $sql .=
" AND (cr.date_sync BETWEEN '".$db->idate($search_date_sync).
"' AND '".$db->idate($search_date_sync_end).
"')";
348} elseif ($search_date_sync && !$search_date_sync_end) {
349 $sql .=
natural_search(
'cr.date_sync', $db->idate($search_date_sync));
357$sql .=
" WHERE m.code <> '".$db->escape($conf->currency).
"'";
360$parameters = array();
361$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters);
362$sql .= $hookmanager->resPrint;
363$sql .=
" GROUP BY cr.rowid, cr.date_sync, cr.rate, cr.rate_indirect, m.code, cr.entity, m.code, m.name";
366$parameters = array();
367$reshook = $hookmanager->executeHooks(
'printFieldSelect', $parameters);
368$sql .= $hookmanager->resPrint;
370$sql .= $db->order($sortfield, $sortorder);
373$nbtotalofrecords =
'';
375 $result = $db->query($sql);
378 $nbtotalofrecords = $db->num_rows($result);
379 if (($page * $limit) > $nbtotalofrecords) {
384 setEventMessage($langs->trans(
'No_record_on_multicurrency_rate'),
'warnings');
388$sql .= $db->plimit($limit + 1, $offset);
390$resql = $db->query($sql);
392 $num = $db->num_rows($resql);
393 $arrayofselected = is_array($toselect) ? $toselect : array();
396 if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
397 $param .=
'&contextpage='.urlencode($contextpage);
399 if ($limit > 0 && $limit != $conf->liste_limit) {
400 $param .=
'&limit='.((int) $limit);
403 $param .=
"&sall=".urlencode($sall);
406 if ($search_date_sync) {
407 $param =
"&search_date_sync=".$search_date_sync;
409 if ($search_date_sync_end) {
410 $param =
"&search_date_sync_end=".$search_date_sync_end;
413 $param =
"&search_rate=".urlencode($search_rate);
415 if ($search_code !=
'') {
416 $param .=
"&search_code=".urlencode($search_code);
420 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
423 $arrayofmassactions[
'predelete'] = $langs->trans(
"Delete");
425 if (in_array($massaction, array(
'presend',
'predelete'))) {
426 $arrayofmassactions = array();
428 $massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
430 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST" name="formulaire">';
431 if ($optioncss !=
'') {
432 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
434 print
'<input type="hidden" name="token" value="'.newToken().
'">';
435 print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
436 print
'<input type="hidden" name="action" value="list">';
437 print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
438 print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
439 print
'<input type="hidden" name="page" value="'.$page.
'">';
440 print
'<input type="hidden" name="type" value="'.$type.
'">';
442 print_barre_liste($texte, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'title_currency.png', 0, $newcardbutton,
'', $limit);
444 include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
447 foreach ($fieldstosearchall as $key => $val) {
448 $fieldstosearchall[$key] = $langs->trans($val);
450 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $sall).implode(
', ', $fieldstosearchall).
'</div>';
457 $parameters = array();
458 $reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object, $action);
459 if (empty($reshook)) {
460 $moreforfilter .= $hookmanager->resPrint;
462 $moreforfilter = $hookmanager->resPrint;
465 if ($moreforfilter) {
466 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
467 print $moreforfilter;
471 $varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
472 $selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage);
473 if ($massactionbutton) {
474 $selectedfields .= $form->showCheckAddButtons(
'checkforselect', 1);
477 print
'<div class="div-table-responsive">';
478 print
'<table class="tagtable centpercent nomarginbottom liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
481 print
'<tr class="liste_titre_filter">';
485 print
'<td class="liste_titre center">';
486 $searchpicto = $form->showFilterButtons();
491 if (!empty($arrayfields[
'cr.date_sync'][
'checked'])) {
492 print
'<td class="liste_titre" align="left">';
493 print $form->selectDate(
dol_print_date($search_date_sync,
"%Y-%m-%d"),
'search_date_sync', 0, 0, 1);
494 print $form->selectDate(
dol_print_date($search_date_sync_end,
"%Y-%m-%d"),
'search_date_sync_end', 0, 0, 1);
498 if (!empty($arrayfields[
'm.code'][
'checked'])) {
499 print
'<td class="liste_titre" align="left">';
500 print $form->selectMultiCurrency($multicurrency_code,
'search_code', 1,
" code != '".$conf->currency.
"'",
true);
504 if (!empty($arrayfields[
'cr.rate'][
'checked'])) {
505 print
'<td class="liste_titre" align="left">';
506 print
'<input class="flat maxwidth75" type="text" name="search_rate" value="'.dol_escape_htmltag($search_rate).
'">';
511 $parameters = array(
'arrayfields' => $arrayfields);
512 $reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters);
513 print $hookmanager->resPrint;
517 print
'<td class="liste_titre center">';
518 $searchpicto = $form->showFilterButtons();
524 print
'<tr class="liste_titre">';
527 print_liste_field_titre($selectedfields, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'', $sortfield, $sortorder,
'maxwidthsearch center ');
529 if (!empty($arrayfields[
'cr.date_sync'][
'checked'])) {
530 print_liste_field_titre($arrayfields[
'cr.date_sync'][
'label'], $_SERVER[
"PHP_SELF"],
"cr.date_sync",
"", $param,
"", $sortfield, $sortorder);
532 if (!empty($arrayfields[
'm.code'][
'checked'])) {
533 print_liste_field_titre($arrayfields[
'm.code'][
'label'], $_SERVER[
"PHP_SELF"],
"m.code",
"", $param,
"", $sortfield, $sortorder);
535 if (!empty($arrayfields[
'cr.rate'][
'checked'])) {
536 print_liste_field_titre($arrayfields[
'cr.rate'][
'label'], $_SERVER[
"PHP_SELF"],
"cr.rate",
"", $param,
"", $sortfield, $sortorder);
540 $parameters = array(
'arrayfields' => $arrayfields,
'param' => $param,
'sortfield' => $sortfield,
'sortorder' => $sortorder);
541 $reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters);
542 print $hookmanager->resPrint;
545 print_liste_field_titre($selectedfields, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'align="center"', $sortfield, $sortorder,
'maxwidthsearch center ');
550 $totalarray = array();
551 $totalarray[
'nbfield'] = 0;
552 while ($i < min($num, $limit)) {
553 $obj = $db->fetch_object($resql);
555 print
'<tr class="oddeven">';
558 if ($action ==
"updateRate" && $obj->rowid == $id_rate_selected) {
560 print
'<td class="center">';
563 print
'<td><input class="minwidth200" name="dateinput" value="'. date(
'Y-m-d',
dol_stringtotime($obj->date_sync)) .
'" type="date"></td>';
564 print
'<td>' . $form->selectMultiCurrency($obj->code,
'multicurrency_code', 1,
" code != '".$conf->currency.
"'",
true) .
'</td>';
565 print
'<td><input type="text" min="0" step="any" class="maxwidth100" name="rateinput" value="' .
dol_escape_htmltag($obj->rate) .
'">';
566 print
'<input type="hidden" name="page" value="'.dol_escape_htmltag($page).
'">';
567 print
'<input type="hidden" name="id_rate" value="'.dol_escape_htmltag($obj->rowid).
'">';
568 print
'<button type="submit" class="button small reposition" name="action" value="update">'.$langs->trans(
"Modify").
'</button>';
569 print
'<button type="submit" class="button small reposition" name="action" value="cancel">'.$langs->trans(
"Cancel").
'</button>';
572 print
'<td class="center">';
578 print
'<td class="nowrap center">';
579 if ($massactionbutton || $massaction) {
581 if (in_array($obj->rowid, $arrayofselected)) {
584 print
'<a class="editfielda marginleftonly marginrightonly reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=updateRate&token='.
newToken().
'&id_rate='.$obj->rowid.
'">'.
img_picto(
'edit',
'edit').
'</a>';
585 print
'<a class="marginleftonly marginrightonly reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=deleteRate&token='.
newToken().
'&id_rate='.$obj->rowid.
'">'.
img_picto(
'delete',
'delete').
'</a>';
586 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect marginleftonly" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
590 $totalarray[
'nbfield']++;
595 if (!empty($arrayfields[
'cr.date_sync'][
'checked'])) {
596 print
'<td class="tdoverflowmax200">';
597 print $obj->date_sync;
600 $totalarray[
'nbfield']++;
605 if (!empty($arrayfields[
'm.code'][
'checked'])) {
606 print
'<td class="tdoverflowmax200">';
608 print
' - <span class="opacitymedium">'.$obj->name.
'</span>';
612 $totalarray[
'nbfield']++;
617 if (!empty($arrayfields[
'cr.rate'][
'checked'])) {
618 print
'<td class="tdoverflowmax200">';
622 $totalarray[
'nbfield']++;
627 if (!empty($arrayfields[
'cr.rate_indirect'][
'checked'])) {
628 print
'<td class="tdoverflowmax200">';
629 print $obj->rate_indirect;
632 $totalarray[
'nbfield']++;
638 $parameters = array(
'arrayfields' => $arrayfields,
'obj' => $obj);
639 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters);
640 print $hookmanager->resPrint;
644 print
'<td class="nowrap center">';
645 if ($massactionbutton || $massaction) {
647 if (in_array($obj->rowid, $arrayofselected)) {
650 print
'<a class="editfielda marginleftonly marginrightonly" href="'.$_SERVER[
"PHP_SELF"].
'?action=updateRate&token='.
newToken().
'&id_rate='.$obj->rowid.
'">'.
img_picto(
'edit',
'edit').
'</a>';
651 print
'<a class="marginleftonly marginrightonly" href="'.$_SERVER[
"PHP_SELF"].
'?action=deleteRate&token='.
newToken().
'&id_rate='.$obj->rowid.
'">'.
img_picto(
'delete',
'delete').
'</a>';
652 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect marginleftonly" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
656 $totalarray[
'nbfield']++;
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
dol_stringtotime($string, $gm=1)
Convert a string date into a GM Timestamps date Warning: YYYY-MM-DDTHH:MM:SS+02:00 (RFC3339) is not s...
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed information (by default a local PHP server timestamp) Rep...
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
setEventMessage($mesgs, $style='mesgs', $noduplicate=0)
Set event message in dol_events session object.
natural_search($fields, $value, $mode=0, $nofirstand=0)
Generate natural SQL search string for a criteria (this criteria can be tested on one or several fiel...
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by the value of a given key, which produces ascending (default) or descending out...
newToken()
Return the value of token currently saved into session with name 'newtoken'.
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="", $forcenowrapcolumntitle=0)
Show title line of an array.
print_barre_liste($title, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $hideselectlimit=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
multicurrencyAdminPrepareHead()
Prepare array with list of tabs.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.