|
@@ -802,13 +802,6 @@ else
|
|
|
print '<tr><td><span class="fieldrequired">'.$langs->trans("Login").' / '.$langs->trans("Id").'</span></td><td><input type="text" name="member_login" size="40" value="'.(isset($_POST["member_login"])?$_POST["member_login"]:$object->login).'"></td></tr>';
|
|
|
}
|
|
|
|
|
|
- // Moral-Physique
|
|
|
- $morphys["phy"] = $langs->trans("Physical");
|
|
|
- $morphys["mor"] = $langs->trans("Moral");
|
|
|
- print '<tr><td class="fieldrequired">'.$langs->trans("Nature")."</td><td>\n";
|
|
|
- print $form->selectarray("morphy", $morphys, GETPOST('morphy','alpha')?GETPOST('morphy','alpha'):$object->morphy, 1);
|
|
|
- print "</td>\n";
|
|
|
-
|
|
|
// Type
|
|
|
print '<tr><td class="fieldrequired">'.$langs->trans("MemberType").'</td><td>';
|
|
|
$listetype=$adht->liste_array();
|
|
@@ -820,6 +813,13 @@ else
|
|
|
}
|
|
|
print "</td>\n";
|
|
|
|
|
|
+ // Morphy
|
|
|
+ $morphys["phy"] = $langs->trans("Physical");
|
|
|
+ $morphys["mor"] = $langs->trans("Moral");
|
|
|
+ print '<tr><td class="fieldrequired">'.$langs->trans("Nature")."</td><td>\n";
|
|
|
+ print $form->selectarray("morphy", $morphys, GETPOST('morphy','alpha')?GETPOST('morphy','alpha'):$object->morphy, 1);
|
|
|
+ print "</td>\n";
|
|
|
+
|
|
|
// Company
|
|
|
print '<tr><td id="tdcompany">'.$langs->trans("Company").'</td><td><input type="text" name="societe" size="40" value="'.(GETPOST('societe','alpha')?GETPOST('societe','alpha'):$object->societe).'"></td></tr>';
|
|
|
|
|
@@ -1050,7 +1050,7 @@ else
|
|
|
print '<tr><td><span class="fieldrequired">'.$langs->trans("Login").' / '.$langs->trans("Id").'</span></td><td colspan="2"><input type="text" name="login" size="30" value="'.(isset($_POST["login"])?$_POST["login"]:$object->login).'"></td></tr>';
|
|
|
}
|
|
|
|
|
|
- // Physique-Moral
|
|
|
+ // Morphy
|
|
|
$morphys["phy"] = $langs->trans("Physical");
|
|
|
$morphys["mor"] = $langs->trans("Morale");
|
|
|
print '<tr><td><span class="fieldrequired">'.$langs->trans("Nature").'</span></td><td>';
|
|
@@ -1402,37 +1402,29 @@ else
|
|
|
if (! empty($conf->societe->enabled)) $rowspan++;
|
|
|
if (! empty($conf->skype->enabled)) $rowspan++;
|
|
|
|
|
|
- print '<table class="border" width="100%">';
|
|
|
-
|
|
|
$linkback = '<a href="'.DOL_URL_ROOT.'/adherents/list.php">'.$langs->trans("BackToList").'</a>';
|
|
|
-
|
|
|
- // Ref
|
|
|
- print '<tr><td width="20%">'.$langs->trans("Ref").'</td>';
|
|
|
- print '<td class="valeur" colspan="2">';
|
|
|
- print $form->showrefnav($object, 'rowid', $linkback);
|
|
|
- print '</td></tr>';
|
|
|
-
|
|
|
- $showphoto='<td rowspan="'.$rowspan.'" align="center" class="hideonsmartphone" valign="middle" width="25%">';
|
|
|
- $showphoto.=$form->showphoto('memberphoto',$object);
|
|
|
- $showphoto.='</td>';
|
|
|
+
|
|
|
+ dol_banner_tab($object, 'rowid', $linkback);
|
|
|
+
|
|
|
+ print '<div class="fichecenter">';
|
|
|
+ print '<div class="fichehalfleft">';
|
|
|
+
|
|
|
+ print '<div class="underbanner clearboth"></div>';
|
|
|
+ print '<table class="border centpercent">';
|
|
|
|
|
|
// Login
|
|
|
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
|
|
|
{
|
|
|
- print '<tr><td>'.$langs->trans("Login").' / '.$langs->trans("Id").'</td><td class="valeur">'.$object->login.' </td>';
|
|
|
- // Photo
|
|
|
- print $showphoto; $showphoto='';
|
|
|
- print '</tr>';
|
|
|
+ print '<tr><td>'.$langs->trans("Login").' / '.$langs->trans("Id").'</td><td class="valeur">'.$object->login.' </td></tr>';
|
|
|
}
|
|
|
|
|
|
+ // Type
|
|
|
+ print '<tr><td>'.$langs->trans("Type").'</td><td class="valeur">'.$adht->getNomUrl(1)."</td></tr>\n";
|
|
|
+
|
|
|
// Morphy
|
|
|
print '<tr><td>'.$langs->trans("Nature").'</td><td class="valeur" >'.$object->getmorphylib().'</td>';
|
|
|
- print $showphoto; $showphoto='';
|
|
|
print '</tr>';
|
|
|
|
|
|
- // Type
|
|
|
- print '<tr><td>'.$langs->trans("Type").'</td><td class="valeur">'.$adht->getNomUrl(1)."</td></tr>\n";
|
|
|
-
|
|
|
// Company
|
|
|
print '<tr><td>'.$langs->trans("Company").'</td><td class="valeur">'.$object->societe.'</td></tr>';
|
|
|
|
|
@@ -1447,9 +1439,6 @@ else
|
|
|
// Firstname
|
|
|
print '<tr><td>'.$langs->trans("Firstname").'</td><td class="valeur">'.$object->firstname.' </td></tr>';
|
|
|
|
|
|
- // EMail
|
|
|
- print '<tr><td>'.$langs->trans("EMail").'</td><td class="valeur">'.dol_print_email($object->email,0,$object->fk_soc,1).'</td></tr>';
|
|
|
-
|
|
|
// Password
|
|
|
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
|
|
|
{
|
|
@@ -1463,48 +1452,26 @@ else
|
|
|
print '</td></tr>';
|
|
|
}
|
|
|
|
|
|
- // Address
|
|
|
- print '<tr><td>'.$langs->trans("Address").'</td><td class="valeur">';
|
|
|
- dol_print_address($object->address,'gmap','member',$object->id);
|
|
|
- print '</td></tr>';
|
|
|
-
|
|
|
- // Zip / Town
|
|
|
- print '<tr><td class="nowrap">'.$langs->trans("Zip").' / '.$langs->trans("Town").'</td><td class="valeur">'.$object->zip.(($object->zip && $object->town)?' / ':'').$object->town.'</td></tr>';
|
|
|
-
|
|
|
- // Country
|
|
|
- print '<tr><td>'.$langs->trans("Country").'</td><td class="valeur">';
|
|
|
- $img=picto_from_langcode($object->country_code);
|
|
|
- if ($img) print $img.' ';
|
|
|
- print getCountry($object->country_code);
|
|
|
- print '</td></tr>';
|
|
|
-
|
|
|
- // State
|
|
|
- print '<tr><td>'.$langs->trans('State').'</td><td class="valeur">'.$object->state.'</td>';
|
|
|
-
|
|
|
- // Tel pro.
|
|
|
- print '<tr><td>'.$langs->trans("PhonePro").'</td><td class="valeur">'.dol_print_phone($object->phone,$object->country_code,0,$object->fk_soc,1).'</td></tr>';
|
|
|
-
|
|
|
- // Tel perso
|
|
|
- print '<tr><td>'.$langs->trans("PhonePerso").'</td><td class="valeur">'.dol_print_phone($object->phone_perso,$object->country_code,0,$object->fk_soc,1).'</td></tr>';
|
|
|
-
|
|
|
- // Tel mobile
|
|
|
- print '<tr><td>'.$langs->trans("PhoneMobile").'</td><td class="valeur">'.dol_print_phone($object->phone_mobile,$object->country_code,0,$object->fk_soc,1).'</td></tr>';
|
|
|
-
|
|
|
// Skype
|
|
|
if (! empty($conf->skype->enabled))
|
|
|
{
|
|
|
print '<tr><td>'.$langs->trans("Skype").'</td><td class="valeur">'.dol_print_skype($object->skype,0,$object->fk_soc,1).'</td></tr>';
|
|
|
}
|
|
|
|
|
|
+ print '</table>';
|
|
|
+
|
|
|
+ print '</div>';
|
|
|
+ print '<div class="fichehalfright"><div class="ficheaddleft">';
|
|
|
+
|
|
|
+ print '<div class="underbanner clearboth"></div>';
|
|
|
+ print '<table class="border tableforfield" width="100%">';
|
|
|
+
|
|
|
// Birthday
|
|
|
print '<tr><td>'.$langs->trans("Birthday").'</td><td class="valeur">'.dol_print_date($object->birth,'day').'</td></tr>';
|
|
|
|
|
|
// Public
|
|
|
print '<tr><td>'.$langs->trans("Public").'</td><td class="valeur">'.yn($object->public).'</td></tr>';
|
|
|
|
|
|
- // Status
|
|
|
- print '<tr><td>'.$langs->trans("Status").'</td><td class="valeur">'.$object->getLibStatut(4).'</td></tr>';
|
|
|
-
|
|
|
// Categories
|
|
|
if (! empty($conf->categorie->enabled) && ! empty($user->rights->categorie->lire))
|
|
|
{
|
|
@@ -1594,12 +1561,16 @@ else
|
|
|
|
|
|
print "</table>\n";
|
|
|
|
|
|
- print "</div>\n";
|
|
|
-
|
|
|
+ print "</div></div></div>\n";
|
|
|
+ print '<div style="clear:both"></div>';
|
|
|
|
|
|
+ dol_fiche_end();
|
|
|
+
|
|
|
+
|
|
|
/*
|
|
|
* Hotbar
|
|
|
*/
|
|
|
+
|
|
|
print '<div class="tabsAction">';
|
|
|
$parameters = array();
|
|
|
$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been
|