diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php
index 94904d877e7..a3fe601ae6e 100644
--- a/htdocs/adherents/card.php
+++ b/htdocs/adherents/card.php
@@ -1490,10 +1490,14 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
// Password
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
print '
| '.$langs->trans("Password").' | '.preg_replace('/./i', '*', $object->pass);
- if ($object->pass) print preg_replace('/./i', '*', $object->pass);
- else {
- if ($user->admin) print $langs->trans("Crypted").': '.$object->pass_indatabase_crypted;
- else print $langs->trans("Hidden");
+ if ($object->pass) {
+ print preg_replace('/./i', '*', $object->pass);
+ } else {
+ if ($user->admin) {
+ print $langs->trans("Crypted").': '.$object->pass_indatabase_crypted;
+ } else {
+ print $langs->trans("Hidden");
+ }
}
if ((!empty($object->pass) || !empty($object->pass_crypted)) && empty($object->user_id)) {
$langs->load("errors");
@@ -1523,6 +1527,32 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
}
print ' |
';
+ print '';
+
+ print '';
+
+ print '';
+ print '
';
+
+ print '
';
+
+ // Birth Date
+ print '| '.$langs->trans("DateOfBirth").' | '.dol_print_date($object->birth, 'day').' |
';
+
+ // Public
+ print '| '.$langs->trans("Public").' | '.yn($object->public).' |
';
+
+ // Categories
+ if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) {
+ print '| '.$langs->trans("Categories").' | ';
+ print '';
+ print $form->showCategories($object->id, Categorie::TYPE_MEMBER, 1);
+ print ' |
';
+ }
+
+ // Other attributes
+ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
+
// Third party Dolibarr
if (!empty($conf->societe->enabled)) {
print '| ';
@@ -1571,29 +1601,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
}
print ' |
';
- print '
';
-
- print '
';
-
- print '
';
- print '
';
-
- print '
';
-
- // Birth Date
- print '| '.$langs->trans("DateOfBirth").' | '.dol_print_date($object->birth, 'day').' |
';
-
- // Public
- print '| '.$langs->trans("Public").' | '.yn($object->public).' |
';
-
- // Categories
- if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) {
- print '| '.$langs->trans("Categories").' | ';
- print '';
- print $form->showCategories($object->id, Categorie::TYPE_MEMBER, 1);
- print ' |
';
- }
-
//VCard
print '| ';
print $langs->trans("VCard").' | ';
@@ -1603,9 +1610,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '';
print ' |
';
- // Other attributes
- include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
-
print "
\n";
print "
\n";
diff --git a/htdocs/adherents/subscription.php b/htdocs/adherents/subscription.php
index a00c52b88e5..799f043c4df 100644
--- a/htdocs/adherents/subscription.php
+++ b/htdocs/adherents/subscription.php
@@ -450,6 +450,12 @@ if ($rowid > 0) {
print '| '.$langs->trans("MemberNature").' | '.$object->getmorphylib().' | ';
print '
';
+ // Gender
+ print '| '.$langs->trans("Gender").' | ';
+ print '';
+ if ($object->gender) print $langs->trans("Gender".$object->gender);
+ print ' |
';
+
// Company
print '| '.$langs->trans("Company").' | '.$object->company.' |
';
@@ -460,6 +466,15 @@ if ($rowid > 0) {
// Password
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
print '| '.$langs->trans("Password").' | '.preg_replace('/./i', '*', $object->pass);
+ if ($object->pass) {
+ print preg_replace('/./i', '*', $object->pass);
+ } else {
+ if ($user->admin) {
+ print $langs->trans("Crypted").': '.$object->pass_indatabase_crypted;
+ } else {
+ print $langs->trans("Hidden");
+ }
+ }
if ((!empty($object->pass) || !empty($object->pass_crypted)) && empty($object->user_id)) {
$langs->load("errors");
$htmltext = $langs->trans("WarningPasswordSetWithNoAccount");
@@ -468,32 +483,6 @@ if ($rowid > 0) {
print ' |
';
}
- print '';
-
- print '';
- print '';
-
- print '
';
- print '
';
-
- // Birthday
- print '| '.$langs->trans("Birthday").' | '.dol_print_date($object->birth, 'day').' |
';
-
- // Public
- print '| '.$langs->trans("Public").' | '.yn($object->public).' |
';
-
- // Categories
- if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) {
- print '| '.$langs->trans("Categories").' | ';
- print '';
- print $form->showCategories($object->id, Categorie::TYPE_MEMBER, 1);
- print ' |
';
- }
-
- // Other attributes
- $cols = 2;
- include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
-
// Date end subscription
print '| '.$langs->trans("SubscriptionEndDate").' | ';
if ($object->datefin) {
@@ -512,6 +501,32 @@ if ($rowid > 0) {
}
print ' |
';
+ print '
';
+
+ print '
';
+ print '
';
+
+ print '
';
+ print '
';
+
+ // Birthday
+ print '| '.$langs->trans("DateOfBirth").' | '.dol_print_date($object->birth, 'day').' |
';
+
+ // Public
+ print '| '.$langs->trans("Public").' | '.yn($object->public).' |
';
+
+ // Categories
+ if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) {
+ print '| '.$langs->trans("Categories").' | ';
+ print '';
+ print $form->showCategories($object->id, Categorie::TYPE_MEMBER, 1);
+ print ' |
';
+ }
+
+ // Other attributes
+ $cols = 2;
+ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
+
// Third party Dolibarr
if (!empty($conf->societe->enabled)) {
print '| ';
|