diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index 4363da14c35..d18218b9960 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -160,68 +160,68 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') print ''; // ProfID1 - $var=!$var; - print ''.$langs->transcountry("ProfId1",$code_pays).''; - if ($conf->global->MAIN_INFO_SOCIETE_PAYS) + if ($langs->transcountry("ProfId1",$code_pays) != '-') { - if ($langs->transcountry("ProfId1",$code_pays) != '-') + $var=!$var; + print ''.$langs->transcountry("ProfId1",$code_pays).''; + if ($conf->global->MAIN_INFO_SOCIETE_PAYS) { print ''; } + else + { + print $countrynotdefined; + } + print ''; } - else - { - print $countrynotdefined; - } - print ''; // ProfId2 - $var=!$var; - print ''.$langs->transcountry("ProfId2",$code_pays).''; - if ($conf->global->MAIN_INFO_SOCIETE_PAYS) + if ($langs->transcountry("ProfId2",$code_pays) != '-') { - if ($langs->transcountry("ProfId2",$code_pays) != '-') + $var=!$var; + print ''.$langs->transcountry("ProfId2",$code_pays).''; + if ($conf->global->MAIN_INFO_SOCIETE_PAYS) { print ''; } + else + { + print $countrynotdefined; + } + print ''; } - else - { - print $countrynotdefined; - } - print ''; // ProfId3 - $var=!$var; - print ''.$langs->transcountry("ProfId3",$code_pays).''; - if ($conf->global->MAIN_INFO_SOCIETE_PAYS) + if ($langs->transcountry("ProfId3",$code_pays) != '-') { - if ($langs->transcountry("ProfId3",$code_pays) != '-') + $var=!$var; + print ''.$langs->transcountry("ProfId3",$code_pays).''; + if ($conf->global->MAIN_INFO_SOCIETE_PAYS) { print ''; } + else + { + print $countrynotdefined; + } + print ''; } - else - { - print $countrynotdefined; - } - print ''; // ProfId4 - $var=!$var; - print ''.$langs->transcountry("ProfId4",$code_pays).''; - if ($conf->global->MAIN_INFO_SOCIETE_PAYS) + if ($langs->transcountry("ProfId4",$code_pays) != '-') { - if ($langs->transcountry("ProfId4",$code_pays) != '-') + $var=!$var; + print ''.$langs->transcountry("ProfId4",$code_pays).''; + if ($conf->global->MAIN_INFO_SOCIETE_PAYS) { print ''; } + else + { + print $countrynotdefined; + } + print ''; } - else - { - print $countrynotdefined; - } - print ''; // TVA Intra $var=!$var;