@@ -556,7 +556,7 @@ foreach ($fieldsforcontent as $tmpfieldlist)
print '';
}
else if ($tmpfieldlist == 'joinfiles') {
- print '';
+ print '';
}
else
{
@@ -989,7 +989,7 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
print '';
if (! empty($conf->global->MAIN_MULTILANGS))
{
- $selectedlang = $langs->defaultlang;
+ $selectedlang = GETPOSTISSET('langcode','aZ09')?GETPOST('langcode','aZ09'):$langs->defaultlang;
if ($context == 'edit') $selectedlang = $obj->{$fieldlist[$field]};
print $formadmin->select_language($selectedlang, 'langcode', 0, null, 1, 0, 0, 'maxwidth150');
}
diff --git a/htdocs/admin/modulehelp.php b/htdocs/admin/modulehelp.php
index cf4596ccda2..6281376dc2e 100644
--- a/htdocs/admin/modulehelp.php
+++ b/htdocs/admin/modulehelp.php
@@ -313,7 +313,9 @@ if ($mode == 'desc')
{
$textexternal.=' '.$langs->trans("Origin").': '.$langs->trans("ExternalModule",$dirofmodule);
if ($objMod->editor_name != 'dolibarr') $textexternal.=' '.$langs->trans("Publisher").': '.(empty($objMod->editor_name)?$langs->trans("Unknown"):$objMod->editor_name);
- if (! empty($objMod->editor_url) && ! preg_match('/dolibarr\.org/i',$objMod->editor_url)) $textexternal.=' '.$langs->trans("Url").': '.$objMod->editor_url.'';
+ $editor_url = $objMod->editor_url;
+ if (! preg_match('/^http/', $editor_url)) $editor_url = 'http://'.$editor_url;
+ if (! empty($objMod->editor_url) && ! preg_match('/dolibarr\.org/i',$objMod->editor_url)) $textexternal.=' '.$langs->trans("Url").': '.$objMod->editor_url.'';
$text.=$textexternal;
$text.=' ';
}
diff --git a/htdocs/admin/multicurrency.php b/htdocs/admin/multicurrency.php
index d4a031a6148..b301a2c7a03 100644
--- a/htdocs/admin/multicurrency.php
+++ b/htdocs/admin/multicurrency.php
@@ -19,14 +19,11 @@
/**
* \file admin/multicurrency.php
* \ingroup multicurrency
- * \brief This file is an example module setup page
- * Put some comments here
+ * \brief Page to setup multicurrency module
*/
+
// Dolibarr environment
-
require '../main.inc.php';
-
-// Libraries
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/multicurrency.lib.php';
require_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
@@ -42,6 +39,8 @@ if (! $user->admin) {
// Parameters
$action = GETPOST('action', 'alpha');
+
+
/*
* Actions
*/
@@ -164,6 +163,8 @@ if ($resql)
* View
*/
+$form=new Form($db);
+
$page_name = "MultiCurrencySetup";
llxHeader('', $langs->trans($page_name));
@@ -176,21 +177,16 @@ print_fiche_titre($langs->trans($page_name), $linkback);
$head = multicurrencyAdminPrepareHead();
dol_fiche_head($head, 'settings', $langs->trans("ModuleSetup"), -1, "multicurrency");
-// Setup page goes here
-$form=new Form($db);
-$var=false;
print '';
print '';
print '| '.$langs->trans("Parameters").' | '."\n";
-print ' | ';
-print ''.$langs->trans("Value").' | '."\n";
-
+print ''.$langs->trans("Value").' | '."\n";
+print ' ';
print '';
print '| '.$langs->transnoentitiesnoconv("MULTICURRENCY_USE_RATE_ON_DOCUMENT_DATE").' | ';
-print ' | ';
-print '';
+print ' | ';
print '';
print ' | ';
-
print '';
print '| '.$langs->transnoentitiesnoconv("multicurrency_useOriginTx").' | ';
-print ' | ';
-print '';
+print ' | ';
print ' | ';
print '';
print '| '.$langs->transnoentitiesnoconv("multicurrency_buyPriceInCurrency").' | ';
-print ' | ';
-print '';
+print ' | ';
print ' | ';
print '';
print '| '.$langs->transnoentitiesnoconv("multicurrency_modifyRateApplication").' | ';
-print ' | ';
-print '';
+print ' | ';
print ' | ';
*/
print ' ';
+
print ' ';
if (!empty($conf->global->MAIN_MULTICURRENCY_ALLOW_SYNCHRONIZATION))
{
- $var=false;
+ print '';
print ' ';
+
print '';
print '| '.$form->textwithpicto($langs->trans("CurrencyLayerAccount"), $langs->trans("CurrencyLayerAccount_help_to_synchronize")).' | '."\n";
- print ' | ';
- print '';
+ print ' | ';
print ' | ';
-
print '';
print '| '.$langs->transnoentitiesnoconv("multicurrency_appId").' | ';
- print ' | ';
- print '';
+ print ' | ';
print ' | ';
+ print ' ';
print ' ';
}
+print '';
print ' ';
-
-
+print ' ';
print '
|