Debug v21

This commit is contained in:
Laurent Destailleur 2025-01-07 11:24:01 +01:00
parent fd97cee0ef
commit 1db2897531
4 changed files with 11 additions and 5 deletions

View File

@ -240,7 +240,11 @@ if ($mode && !count($data)) {
print '<br>';
} else {
if ($mode == 'memberbycountry') {
print '<span class="opacitymedium">'.$langs->trans("MembersByCountryDesc").'</span><br>';
print '<span class="opacitymedium">'.$langs->trans("MembersByCountryDesc");
if (getDolGlobalString("GOOGLE_SHOW_COUNTRY_GRAPH")) {
print $langs->trans("MembersByCountryDesc2");
}
print '</span><br>';
} elseif ($mode == 'memberbystate') {
print '<span class="opacitymedium">'.$langs->trans("MembersByStateDesc").'</span><br>';
} elseif ($mode == 'memberbytown') {
@ -263,7 +267,7 @@ if ($mode && !count($data)) {
// Show graphics
if (count($arrayjs) && $mode == 'memberbycountry') {
if (getDolGlobalString("GOOGLE_SHOW_COUNTRY_GRAPH") && $mode == 'memberbycountry') {
global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet;
$color_file = DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php';
if (is_readable($color_file)) {

View File

@ -191,7 +191,8 @@ MembersStatisticsByRegion=Members statistics by region
NbOfMembers=Total number of members
NbOfActiveMembers=Total number of current active members
NoValidatedMemberYet=No validated members found
MembersByCountryDesc=This screen shows you the statistics of members by countries. Graphs and charts depend on the availability of the Google online graph service as well as on the availability of a working internet connection.
MembersByCountryDesc=This screen shows you the statistics of members by countries.
MembersByCountryDesc2=Graphs and charts depend on the availability of the Google online graph service as well as on the availability of a working internet connection.
MembersByStateDesc=This screen show you statistics of members by state/provinces/canton.
MembersByTownDesc=This screen show you statistics of members by town.
MembersByNature=This screen show you statistics of members by nature.

View File

@ -191,7 +191,8 @@ MembersStatisticsByRegion=Statistiques des membres par région
NbOfMembers=Nombre total d'adhérents
NbOfActiveMembers=Nombre total d'adhérents actifs actuellement
NoValidatedMemberYet=Aucun membre validé trouvé
MembersByCountryDesc=Cet écran vous présente une vue statistique du nombre d'adhérents par pays. Le graphique utilise toutefois le service en ligne de graphique de Google et n'est opérationnel uniquement que si une connexion internet est disponible.
MembersByCountryDesc=Cet écran vous présente une vue statistique du nombre d'adhérents par pays.
MembersByCountryDesc2=Le graphique utilise toutefois le service en ligne de graphique de Google et n'est opérationnel uniquement que si une connexion internet est disponible.
MembersByStateDesc=Cet écran vous présente une vue statistique du nombre d'adhérents par département/province/canton.
MembersByTownDesc=Cet écran vous présente une vue statistique du nombre d'adhérents par ville.
MembersByNature=Cet écran vous montre les statistiques sur les adhérents par nature.

View File

@ -1092,7 +1092,7 @@ if ($num == 0) {
$colspan++;
}
}
if ($managedfor != 'member') {
if ($managedfor == 'member') {
$colspan++; // End of subscription date
}
print '<tr><td colspan="'.$colspan.'"><span class="opacitymedium">'.$langs->trans("NoRecordFound").'</span></td></tr>';