diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php
index 187fee22dfe..ac09e1864b6 100644
--- a/htdocs/adherents/card.php
+++ b/htdocs/adherents/card.php
@@ -1485,6 +1485,30 @@ else
print $object->showOptionals($extrafields, 'view', $parameters);
}
+ // Date end subscription
+ print '
| '.$langs->trans("SubscriptionEndDate").' | ';
+ if ($object->datefin)
+ {
+ print dol_print_date($object->datefin,'day');
+ if ($object->hasDelay()) {
+ print " ".img_warning($langs->trans("Late"));
+ }
+ }
+ else
+ {
+ if (! $adht->cotisation)
+ {
+ print $langs->trans("SubscriptionNotRecorded");
+ if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // displays delay Pictogram only if not a draft and not terminated
+ }
+ else
+ {
+ print $langs->trans("SubscriptionNotReceived");
+ if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // displays delay Pictogram only if not a draft and not terminated
+ }
+ }
+ print ' |
';
+
// Third party Dolibarr
if (! empty($conf->societe->enabled))
{
@@ -1555,30 +1579,6 @@ else
}
print '';
- // Date end subscription
- print '| '.$langs->trans("SubscriptionEndDate").' | ';
- if ($object->datefin)
- {
- print dol_print_date($object->datefin,'day');
- if ($object->hasDelay()) {
- print " ".img_warning($langs->trans("Late"));
- }
- }
- else
- {
- if (! $adht->cotisation)
- {
- print $langs->trans("SubscriptionNotRecorded");
- if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // displays delay Pictogram only if not a draft and not terminated
- }
- else
- {
- print $langs->trans("SubscriptionNotReceived");
- if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // displays delay Pictogram only if not a draft and not terminated
- }
- }
- print ' |
';
-
print "\n";
print "\n";
diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php
index dcc8b671259..1299f2400dc 100644
--- a/htdocs/adherents/card_subscriptions.php
+++ b/htdocs/adherents/card_subscriptions.php
@@ -652,6 +652,30 @@ if ($rowid > 0)
print $object->showOptionals($extrafields, 'view', $parameters);
}
+ // Date end subscription
+ print '| '.$langs->trans("SubscriptionEndDate").' | ';
+ if ($object->datefin)
+ {
+ print dol_print_date($object->datefin,'day');
+ if ($object->hasDelay()) {
+ print " ".img_warning($langs->trans("Late"));
+ }
+ }
+ else
+ {
+ if (! $adht->cotisation)
+ {
+ print $langs->trans("SubscriptionNotRecorded");
+ if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // Affiche picto retard uniquement si non brouillon et non resilie
+ }
+ else
+ {
+ print $langs->trans("SubscriptionNotReceived");
+ if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // Affiche picto retard uniquement si non brouillon et non resilie
+ }
+ }
+ print ' |
';
+
// Third party Dolibarr
if (! empty($conf->societe->enabled))
{
@@ -722,30 +746,6 @@ if ($rowid > 0)
}
print '';
- // Date end subscription
- print '| '.$langs->trans("SubscriptionEndDate").' | ';
- if ($object->datefin)
- {
- print dol_print_date($object->datefin,'day');
- if ($object->hasDelay()) {
- print " ".img_warning($langs->trans("Late"));
- }
- }
- else
- {
- if (! $adht->cotisation)
- {
- print $langs->trans("SubscriptionNotRecorded");
- if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // Affiche picto retard uniquement si non brouillon et non resilie
- }
- else
- {
- print $langs->trans("SubscriptionNotReceived");
- if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // Affiche picto retard uniquement si non brouillon et non resilie
- }
- }
- print ' |
';
-
print "\n";
print "\n";
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index b035358716e..032628e4e67 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -1442,6 +1442,49 @@ else
print '';
}
+ // Multicompany
+ // TODO This should be done with hook formObjectOption
+ if (is_object($mc))
+ {
+ if (! empty($conf->multicompany->enabled) && empty($conf->multicompany->transverse_mode) && $conf->entity == 1 && $user->admin && ! $user->entity)
+ {
+ print '| '.$langs->trans("Entity").' | ';
+ if (empty($object->entity))
+ {
+ print $langs->trans("AllEntities");
+ }
+ else
+ {
+ $mc->getInfo($object->entity);
+ print $mc->label;
+ }
+ print " |
\n";
+ }
+ }
+
+ if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file->main_authentication) && ! empty($conf->global->MAIN_OPENIDURL_PERUSER))
+ {
+ print '| '.$langs->trans("OpenIDURL").' | ';
+ print ''.$object->openid.' | ';
+ print "
\n";
+ }
+
+ print '| '.$langs->trans("LastConnexion").' | ';
+ print ''.dol_print_date($object->datelastlogin,"dayhour").' | ';
+ print "
\n";
+
+ print '| '.$langs->trans("PreviousConnexion").' | ';
+ print ''.dol_print_date($object->datepreviouslogin,"dayhour").' | ';
+ print "
\n";
+
+ // Other attributes
+ $parameters=array();
+ $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
+ if (empty($reshook) && ! empty($extrafields->attribute_label))
+ {
+ print $object->showOptionals($extrafields);
+ }
+
// Company / Contact
if (! empty($conf->societe->enabled))
{
@@ -1490,49 +1533,6 @@ else
print ''."\n";
}
- // Multicompany
- // TODO This should be done with hook formObjectOption
- if (is_object($mc))
- {
- if (! empty($conf->multicompany->enabled) && empty($conf->multicompany->transverse_mode) && $conf->entity == 1 && $user->admin && ! $user->entity)
- {
- print '| '.$langs->trans("Entity").' | ';
- if (empty($object->entity))
- {
- print $langs->trans("AllEntities");
- }
- else
- {
- $mc->getInfo($object->entity);
- print $mc->label;
- }
- print " |
\n";
- }
- }
-
- if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file->main_authentication) && ! empty($conf->global->MAIN_OPENIDURL_PERUSER))
- {
- print '| '.$langs->trans("OpenIDURL").' | ';
- print ''.$object->openid.' | ';
- print "
\n";
- }
-
- print '| '.$langs->trans("LastConnexion").' | ';
- print ''.dol_print_date($object->datelastlogin,"dayhour").' | ';
- print "
\n";
-
- print '| '.$langs->trans("PreviousConnexion").' | ';
- print ''.dol_print_date($object->datepreviouslogin,"dayhour").' | ';
- print "
\n";
-
- // Other attributes
- $parameters=array();
- $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
- if (empty($reshook) && ! empty($extrafields->attribute_label))
- {
- print $object->showOptionals($extrafields);
- }
-
print "\n";
print '';