diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index ac933260b2e..3971a66b4d1 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -577,16 +577,18 @@ if ($action == 'edit') // Url photo print 'URL photo'; - foreach($adho->attribute_label as $key=>$value) - { - print "$valuearray_options["options_$key"]."\">\n"; - } // Profil public print "".$langs->trans("Public")."\n"; $htmls->select_YesNo($adh->public,"public"); print "\n"; + // Attributs supplémentaires + foreach($adho->attribute_label as $key=>$value) + { + print "$valuearray_options["options_$key"]."\">\n"; + } + print ''; print ''; print '       '; diff --git a/htdocs/adherents/options.php b/htdocs/adherents/options.php index 8a38dd1d1c0..6236bffd383 100644 --- a/htdocs/adherents/options.php +++ b/htdocs/adherents/options.php @@ -120,9 +120,12 @@ print ""; * Barre d'actions * */ -print '
'; -print "".$langs->trans("NewAttribute").""; -print "
"; +if ($_GET["action"] != 'create') +{ + print '
'; + print "".$langs->trans("NewAttribute").""; + print "
"; +} /* ************************************************************************** */ @@ -131,33 +134,34 @@ print ""; /* */ /* ************************************************************************** */ -if ($_GET["action"] == 'create') { +if ($_GET["action"] == 'create') +{ + print "
"; + + print_titre("Nouvel attribut"); - print_titre("Nouvel attribut"); - - print "
"; - print ''; - - print ''; + print ""; + print '
'; - print ''; - print ''; - print ''; - print ''; - - print ''; - print "\n"; - print "
'.$langs->trans("Label").'
'.$langs->trans("AttributeCode").' (pas d\'espace et uniquement des carateres alphanumeriques)
'.$langs->trans("Type").''; - $form->select_array('type',array('varchar'=>'chaine', - 'text'=>'texte', - 'int'=>'entier', - 'date'=>'date', - 'datetime'=>'date et heure')); - print '
Taille
  '; - print '
\n"; - - + print ''; + + print ''.$langs->trans("Label").''; + print ''.$langs->trans("AttributeCode").' (pas d\'espace et uniquement des carateres alphanumeriques)'; + print ''.$langs->trans("Type").''; + $form->select_array('type',array('varchar'=>'chaine', + 'text'=>'texte', + 'int'=>'entier', + 'date'=>'date', + 'datetime'=>'date et heure')); + print ''; + print 'Taille'; + + print '   '; + print ''; + print "\n"; + print "\n"; } + /* ************************************************************************** */ /* */ /* Edition d'un champ optionnel */