diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php
index f136c1200cf..c69f269f301 100644
--- a/htdocs/admin/company.php
+++ b/htdocs/admin/company.php
@@ -300,74 +300,74 @@ if ($action == 'edit' || $action == 'updateedit')
print '
'.$langs->trans("CompanyInfo").' '.$langs->trans("Value").' '."\n";
$var=!$var;
- print ''.$langs->trans("CompanyName").' ';
- print ' '."\n";
+ print ''.$langs->trans("CompanyName").' ';
+ print ' '."\n";
$var=!$var;
- print ''.$langs->trans("CompanyAddress").' ';
- print ' '."\n";
+ print ''.$langs->trans("CompanyAddress").' ';
+ print ' '."\n";
$var=!$var;
- print ''.$langs->trans("CompanyZip").' ';
- print ' '."\n";
+ print ''.$langs->trans("CompanyZip").' ';
+ print ' '."\n";
$var=!$var;
- print ''.$langs->trans("CompanyTown").' ';
- print ' '."\n";
+ print ''.$langs->trans("CompanyTown").' ';
+ print ' '."\n";
// Country
$var=!$var;
- print ''.$langs->trans("Country").' ';
+ print ' '.$langs->trans("Country").' ';
//if (empty($country_selected)) $country_selected=substr($langs->defaultlang,-2); // Par defaut, pays de la localisation
print $form->select_country($mysoc->country_id,'country_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print ' '."\n";
$var=!$var;
- print ''.$langs->trans("State").' ';
+ print ' '.$langs->trans("State").' ';
$formcompany->select_departement($conf->global->MAIN_INFO_SOCIETE_STATE,$mysoc->country_code,'state_id');
print ' '."\n";
$var=!$var;
- print ''.$langs->trans("CompanyCurrency").' ';
+ print ' '.$langs->trans("CompanyCurrency").' ';
print $form->selectCurrency($conf->currency,"currency");
print ' '."\n";
$var=!$var;
- print ''.$langs->trans("Phone").' ';
- print ' ';
+ print ''.$langs->trans("Phone").' ';
+ print ' ';
print ''."\n";
$var=!$var;
- print ''.$langs->trans("Fax").' ';
- print ' ';
+ print ''.$langs->trans("Fax").' ';
+ print ' ';
print ''."\n";
$var=!$var;
- print ''.$langs->trans("EMail").' ';
- print ' ';
+ print ''.$langs->trans("EMail").' ';
+ print ' ';
print ''."\n";
// Web
$var=!$var;
- print ''.$langs->trans("Web").' ';
- print ' ';
+ print ''.$langs->trans("Web").' ';
+ print ' ';
print ''."\n";
// Barcode
if (! empty($conf->barcode->enabled))
{
$var=!$var;
- print ''.$langs->trans("Gencod").' ';
- print ' ';
+ print ''.$langs->trans("Gencod").' ';
+ print ' ';
print '';
}
// Logo
$var=!$var;
- print ''.$langs->trans("Logo").' (png,jpg) ';
+ print ' '.$langs->trans("Logo").' (png,jpg) ';
print '';
@@ -404,17 +404,17 @@ if ($action == 'edit' || $action == 'updateedit')
// Managing Director(s)
$var=!$var;
- print ' '.$langs->trans("ManagingDirectors").' ';
- print ' ';
+ print ''.$langs->trans("ManagingDirectors").' ';
+ print ' ';
// Capital
$var=!$var;
- print ''.$langs->trans("Capital").' ';
- print ' ';
+ print ''.$langs->trans("Capital").' ';
+ print ' ';
// Forme juridique
$var=!$var;
- print ''.$langs->trans("JuridicalStatus").' ';
+ print ' '.$langs->trans("JuridicalStatus").' ';
if ($mysoc->country_code)
{
print $formcompany->select_juridicalstatus($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE,$mysoc->country_code);
@@ -429,10 +429,10 @@ if ($action == 'edit' || $action == 'updateedit')
if ($langs->transcountry("ProfId1",$mysoc->country_code) != '-')
{
$var=!$var;
- print ' '.$langs->transcountry("ProfId1",$mysoc->country_code).' ';
+ print ' '.$langs->transcountry("ProfId1",$mysoc->country_code).' ';
if (! empty($mysoc->country_code))
{
- print ' ';
+ print ' ';
}
else
{
@@ -445,10 +445,10 @@ if ($action == 'edit' || $action == 'updateedit')
if ($langs->transcountry("ProfId2",$mysoc->country_code) != '-')
{
$var=!$var;
- print ' '.$langs->transcountry("ProfId2",$mysoc->country_code).' ';
+ print ' '.$langs->transcountry("ProfId2",$mysoc->country_code).' ';
if (! empty($mysoc->country_code))
{
- print ' ';
+ print ' ';
}
else
{
@@ -461,10 +461,10 @@ if ($action == 'edit' || $action == 'updateedit')
if ($langs->transcountry("ProfId3",$mysoc->country_code) != '-')
{
$var=!$var;
- print ' '.$langs->transcountry("ProfId3",$mysoc->country_code).' ';
+ print ' '.$langs->transcountry("ProfId3",$mysoc->country_code).' ';
if (! empty($mysoc->country_code))
{
- print ' ';
+ print ' ';
}
else
{
@@ -477,10 +477,10 @@ if ($action == 'edit' || $action == 'updateedit')
if ($langs->transcountry("ProfId4",$mysoc->country_code) != '-')
{
$var=!$var;
- print ' '.$langs->transcountry("ProfId4",$mysoc->country_code).' ';
+ print ' '.$langs->transcountry("ProfId4",$mysoc->country_code).' ';
if (! empty($mysoc->country_code))
{
- print ' ';
+ print ' ';
}
else
{
@@ -493,10 +493,10 @@ if ($action == 'edit' || $action == 'updateedit')
if ($langs->transcountry("ProfId5",$mysoc->country_code) != '-')
{
$var=!$var;
- print ' '.$langs->transcountry("ProfId5",$mysoc->country_code).' ';
+ print ' '.$langs->transcountry("ProfId5",$mysoc->country_code).' ';
if (! empty($mysoc->country_code))
{
- print ' ';
+ print ' ';
}
else
{
@@ -509,10 +509,10 @@ if ($action == 'edit' || $action == 'updateedit')
if ($langs->transcountry("ProfId6",$mysoc->country_code) != '-')
{
$var=!$var;
- print ' '.$langs->transcountry("ProfId6",$mysoc->country_code).' ';
+ print ' '.$langs->transcountry("ProfId6",$mysoc->country_code).' ';
if (! empty($mysoc->country_code))
{
- print ' ';
+ print ' ';
}
else
{
@@ -523,8 +523,8 @@ if ($action == 'edit' || $action == 'updateedit')
// TVA Intra
$var=!$var;
- print ' '.$langs->trans("VATIntra").' ';
- print ' ';
+ print ' '.$langs->trans("VATIntra").' ';
+ print ' ';
print ' ';
print '';
@@ -539,7 +539,7 @@ if ($action == 'edit' || $action == 'updateedit')
$var=true;
$var=!$var;
- print ''.$langs->trans("FiscalMonthStart").' ';
+ print ' '.$langs->trans("FiscalMonthStart").' ';
print $formother->select_month($conf->global->SOCIETE_FISCAL_MONTH_START,'fiscalmonthstart',1) . ' ';
print "";
@@ -555,19 +555,19 @@ if ($action == 'edit' || $action == 'updateedit')
$var=true;
$var=!$var;
- print " global->FACTURE_TVAOPTION)?"":" checked")."> ".$langs->trans("VATIsUsed")." ";
+ print " global->FACTURE_TVAOPTION)?"":" checked")."> ".$langs->trans("VATIsUsed")." ";
print '';
print "";
- print "".$langs->trans("VATIsUsedDesc")." ";
+ print "".$langs->trans("VATIsUsedDesc")." ";
print "".$langs->trans("Example").': '.$langs->trans("VATIsUsedExampleFR")." \n";
print "
";
print " \n";
$var=!$var;
- print " global->FACTURE_TVAOPTION)?" checked":"")."> ".$langs->trans("VATIsNotUsed")." ";
+ print " global->FACTURE_TVAOPTION)?" checked":"")."> ".$langs->trans("VATIsNotUsed")." ";
print '';
print "";
- print "".$langs->trans("VATIsNotUsedDesc")." ";
+ print "".$langs->trans("VATIsNotUsedDesc")." ";
print "".$langs->trans("Example").': '.$langs->trans("VATIsNotUsedExampleFR")." \n";
print "
";
print " \n";
@@ -589,20 +589,20 @@ if ($action == 'edit' || $action == 'updateedit')
$var=true;
$var=!$var;
// Note: When option is not set, it must not appears as set on on, because there is no default value for this option
- print " global->FACTURE_LOCAL_TAX1_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX1_OPTION == "localtax1on")?" checked":"")."> ".$langs->transcountry("LocalTax1IsUsed",$mysoc->country_code)." ";
+ print " global->FACTURE_LOCAL_TAX1_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX1_OPTION == "localtax1on")?" checked":"")."> ".$langs->transcountry("LocalTax1IsUsed",$mysoc->country_code)." ";
print '';
print "";
- print "".$langs->transcountry("LocalTax1IsUsedDesc",$mysoc->country_code)." ";
+ print "".$langs->transcountry("LocalTax1IsUsedDesc",$mysoc->country_code)." ";
$example=$langs->transcountry("LocalTax1IsUsedExample",$mysoc->country_code);
print ($example!="LocalTax1IsUsedExample"?"".$langs->trans("Example").': '.$langs->transcountry("LocalTax1IsUsedExample",$mysoc->country_code)." \n":"");
if(! isOnlyOneLocalTax(1))
{
- print ''.$langs->trans("LTRate").': ';
+ print ' '.$langs->trans("LTRate").' : ';
$formcompany->select_localtax(1,$conf->global->MAIN_INFO_VALUE_LOCALTAX1, "lt1");
}
print ' ';
- print ''.$langs->trans("CalcLocaltax").': ';
+ print ' '.$langs->trans("CalcLocaltax").': ';
$opcions=array($langs->transcountry("CalcLocaltax1",$mysoc->country_code),$langs->transcountry("CalcLocaltax2",$mysoc->country_code),$langs->transcountry("CalcLocaltax3",$mysoc->country_code));
print $form->selectarray("clt1", $opcions, $conf->global->MAIN_INFO_LOCALTAX_CALC1);
print ' ';
@@ -610,10 +610,10 @@ if ($action == 'edit' || $action == 'updateedit')
print "\n";
$var=!$var;
- print " global->FACTURE_LOCAL_TAX1_OPTION == "localtax1off"?" checked":"")."> ".$langs->transcountry("LocalTax1IsNotUsed",$mysoc->country_code)." ";
+ print " global->FACTURE_LOCAL_TAX1_OPTION == "localtax1off"?" checked":"")."> ".$langs->transcountry("LocalTax1IsNotUsed",$mysoc->country_code)." ";
print '';
print "";
- print "".$langs->transcountry("LocalTax1IsNotUsedDesc",$mysoc->country_code)." ";
+ print "".$langs->transcountry("LocalTax1IsNotUsedDesc",$mysoc->country_code)." ";
$example=$langs->transcountry("LocalTax1IsNotUsedExample",$mysoc->country_code);
print ($example!="LocalTax1IsNotUsedExample"?"".$langs->trans("Example").': '.$langs->transcountry("LocalTax1IsNotUsedExample",$mysoc->country_code)." \n":"");
print "
";
@@ -633,19 +633,19 @@ if ($action == 'edit' || $action == 'updateedit')
$var=!$var;
// Note: When option is not set, it must not appears as set on on, because there is no default value for this option
- print " global->FACTURE_LOCAL_TAX2_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX2_OPTION == "localtax2on")?" checked":"")."> ".$langs->transcountry("LocalTax2IsUsed",$mysoc->country_code)." ";
+ print " global->FACTURE_LOCAL_TAX2_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX2_OPTION == "localtax2on")?" checked":"")."> ".$langs->transcountry("LocalTax2IsUsed",$mysoc->country_code)." ";
print '';
print "";
- print "".$langs->transcountry("LocalTax2IsUsedDesc",$mysoc->country_code)." ";
+ print "".$langs->transcountry("LocalTax2IsUsedDesc",$mysoc->country_code)." ";
$example=$langs->transcountry("LocalTax2IsUsedExample",$mysoc->country_code);
print ($example!="LocalTax2IsUsedExample"?"".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsUsedExample",$mysoc->country_code)." \n":"");
- print ''.$langs->transcountry("LTRate").': ';
+ print ' '.$langs->trans("LTRate").' : ';
if(! isOnlyOneLocalTax(2))
{
$formcompany->select_localtax(2,$conf->global->MAIN_INFO_VALUE_LOCALTAX2, "lt2");
print ' ';
}
- print ''.$langs->trans("CalcLocaltax").': ';
+ print ' '.$langs->trans("CalcLocaltax").' : ';
$opcions=array($langs->transcountry("CalcLocaltax1",$mysoc->country_code),$langs->transcountry("CalcLocaltax2",$mysoc->country_code),$langs->transcountry("CalcLocaltax3",$mysoc->country_code));
print $form->selectarray("clt2", $opcions, $conf->global->MAIN_INFO_LOCALTAX_CALC2);
print ' ';
@@ -653,10 +653,10 @@ if ($action == 'edit' || $action == 'updateedit')
print "\n";
$var=!$var;
- print " global->FACTURE_LOCAL_TAX2_OPTION == "localtax2off"?" checked":"")."> ".$langs->transcountry("LocalTax2IsNotUsed",$mysoc->country_code)." ";
+ print " global->FACTURE_LOCAL_TAX2_OPTION == "localtax2off"?" checked":"")."> ".$langs->transcountry("LocalTax2IsNotUsed",$mysoc->country_code)." ";
print '';
print "";
- print "".$langs->transcountry("LocalTax2IsNotUsedDesc",$mysoc->country_code)." ";
+ print "".$langs->transcountry("LocalTax2IsNotUsedDesc",$mysoc->country_code)." ";
$example=$langs->transcountry("LocalTax2IsNotUsedExample",$mysoc->country_code);
print ($example!="LocalTax2IsNotUsedExample"?"".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsNotUsedExample",$mysoc->country_code)." \n":"");
print "
";
@@ -959,19 +959,19 @@ else
$var=true;
$var=!$var;
- print " global->FACTURE_TVAOPTION)?"":" checked")."> ".$langs->trans("VATIsUsed")." ";
+ print " global->FACTURE_TVAOPTION)?"":" checked")."> ".$langs->trans("VATIsUsed")." ";
print '';
print "";
- print "".$langs->trans("VATIsUsedDesc")." ";
+ print "".$langs->trans("VATIsUsedDesc")." ";
print "".$langs->trans("Example").': '.$langs->trans("VATIsUsedExampleFR")." \n";
print "
";
print " \n";
$var=!$var;
- print " global->FACTURE_TVAOPTION)?" checked":"")."> ".$langs->trans("VATIsNotUsed")." ";
+ print " global->FACTURE_TVAOPTION)?" checked":"")."> ".$langs->trans("VATIsNotUsed")." ";
print '';
print "";
- print "".$langs->trans("VATIsNotUsedDesc")." ";
+ print "".$langs->trans("VATIsNotUsedDesc")." ";
print "".$langs->trans("Example").': '.$langs->trans("VATIsNotUsedExampleFR")." \n";
print "
";
print " \n";
@@ -994,10 +994,10 @@ else
$var=true;
$var=!$var;
- print " global->FACTURE_LOCAL_TAX1_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX1_OPTION == "localtax1on")?" checked":"")."> ".$langs->transcountry("LocalTax1IsUsed",$mysoc->country_code)." ";
+ print " global->FACTURE_LOCAL_TAX1_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX1_OPTION == "localtax1on")?" checked":"")."> ".$langs->transcountry("LocalTax1IsUsed",$mysoc->country_code)." ";
print '';
print "";
- print "".$langs->transcountry("LocalTax1IsUsedDesc",$mysoc->country_code)." ";
+ print "".$langs->transcountry("LocalTax1IsUsedDesc",$mysoc->country_code)." ";
$example=$langs->transcountry("LocalTax1IsUsedExample",$mysoc->country_code);
print ($example!="LocalTax1IsUsedExample"?"".$langs->trans("Example").': '.$langs->transcountry("LocalTax1IsUsedExample",$mysoc->country_code)." \n":"");
if($conf->global->MAIN_INFO_VALUE_LOCALTAX1!=0)
@@ -1022,10 +1022,10 @@ else
print "\n";
$var=!$var;
- print " global->FACTURE_LOCAL_TAX1_OPTION == "localtax1off"?" checked":"")."> ".$langs->transcountry("LocalTax1IsNotUsed",$mysoc->country_code)." ";
+ print " global->FACTURE_LOCAL_TAX1_OPTION == "localtax1off"?" checked":"")."> ".$langs->transcountry("LocalTax1IsNotUsed",$mysoc->country_code)." ";
print '';
print "";
- print "".$langs->transcountry("LocalTax1IsNotUsedDesc",$mysoc->country_code)." ";
+ print "".$langs->transcountry("LocalTax1IsNotUsedDesc",$mysoc->country_code)." ";
$example=$langs->transcountry("LocalTax1IsNotUsedExample",$mysoc->country_code);
print ($example!="LocalTax1IsNotUsedExample"?"".$langs->trans("Example").': '.$langs->transcountry("LocalTax1IsNotUsedExample",$mysoc->country_code)." \n":"");
print "
";
@@ -1045,10 +1045,10 @@ else
$var=true;
$var=!$var;
- print " global->FACTURE_LOCAL_TAX2_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX2_OPTION == "localtax2on")?" checked":"")."> ".$langs->transcountry("LocalTax2IsUsed",$mysoc->country_code)." ";
+ print " global->FACTURE_LOCAL_TAX2_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX2_OPTION == "localtax2on")?" checked":"")."> ".$langs->transcountry("LocalTax2IsUsed",$mysoc->country_code)." ";
print '';
print "";
- print "".$langs->transcountry("LocalTax2IsUsedDesc",$mysoc->country_code)." ";
+ print "".$langs->transcountry("LocalTax2IsUsedDesc",$mysoc->country_code)." ";
$example=$langs->transcountry("LocalTax2IsUsedExample",$mysoc->country_code);
print ($example!="LocalTax2IsUsedExample"?"".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsUsedExample",$mysoc->country_code)." \n":"");
if($conf->global->MAIN_INFO_VALUE_LOCALTAX2!=0)
@@ -1074,10 +1074,10 @@ else
print "\n";
$var=!$var;
- print " global->FACTURE_LOCAL_TAX2_OPTION == "localtax2off"?" checked":"")."> ".$langs->transcountry("LocalTax2IsNotUsed",$mysoc->country_code)." ";
+ print " global->FACTURE_LOCAL_TAX2_OPTION == "localtax2off"?" checked":"")."> ".$langs->transcountry("LocalTax2IsNotUsed",$mysoc->country_code)." ";
print '';
print "";
- print "".$langs->transcountry("LocalTax2IsNotUsedDesc",$mysoc->country_code)." ";
+ print "".$langs->transcountry("LocalTax2IsNotUsedDesc",$mysoc->country_code)." ";
$example=$langs->transcountry("LocalTax2IsNotUsedExample",$mysoc->country_code);
print ($example!="LocalTax2IsNotUsedExample"?"".$langs->trans("Example").': '.$langs->transcountry("LocalTax2IsNotUsedExample",$mysoc->country_code)." \n":"");
print "
";
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index d1b338176a4..8dfe80368e9 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -3306,7 +3306,7 @@ class Form
if ($selected=='euro' || $selected=='euros') $selected='EUR'; // Pour compatibilite
- $out.= '';
+ $out.= '';
foreach ($langs->cache_currencies as $code_iso => $currency)
{
if ($selected && $selected == $code_iso)
diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php
index 183f713aa96..fd7db5fa94f 100644
--- a/htdocs/core/class/html.formcompany.class.php
+++ b/htdocs/core/class/html.formcompany.class.php
@@ -782,7 +782,7 @@ class FormCompany
*
* @param int $local LocalTax
* @param int $selected Preselected value
- * @param varchar $htmlname HTML select name
+ * @param string $htmlname HTML select name
* @return void
*/
function select_localtax($local, $selected, $htmlname)
@@ -798,7 +798,7 @@ class FormCompany
if (count($valors) > 1)
{
//montar select
- print '';
+ print '';
while ($i <= (count($valors))-1)
{
if ($selected == $valors[$i])
diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index f51cf060af8..ab924d482a7 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -760,7 +760,7 @@ class FormOther
$montharray = monthArray($langs); // Get array
- $select_month = '';
+ $select_month = '';
if ($useempty)
{
$select_month .= ' ';