diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php
index e3f46b2d78a..c62ee03cf73 100644
--- a/htdocs/adherents/fiche.php
+++ b/htdocs/adherents/fiche.php
@@ -176,7 +176,7 @@ if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"])
if (is_dir($conf->adherent->dir_output))
{
$newfile=$conf->adherent->dir_output . "/" . $adh->id . ".jpg";
- if (! dol_move_uploaded_file($_FILES['photo']['tmp_name'],$newfile,1))
+ if (! dol_move_uploaded_file($_FILES['photo']['tmp_name'],$newfile,1) > 0)
{
$message .= '
'.$langs->trans("ErrorFailedToSaveFile").'
';
}
@@ -960,7 +960,8 @@ if ($rowid && $action != 'edit')
// Autres attributs
- foreach($adho->attribute_label as $key=>$value){
+ foreach($adho->attribute_label as $key=>$value)
+ {
print "| $value | ".$adh->array_options["options_$key"]." |
\n";
}
diff --git a/htdocs/langs/en_US/members.lang b/htdocs/langs/en_US/members.lang
index df1bcb3e27f..78f2d502087 100644
--- a/htdocs/langs/en_US/members.lang
+++ b/htdocs/langs/en_US/members.lang
@@ -13,6 +13,9 @@ FundationMembers=Fundation members
Attributs=Attributes
Person=Person
ErrorMemberTypeNotDefined=Member type not defined
+ListOfPublicMembers=List of public members
+ListOfValidatedPublicMembers=List of validated public members
+ErrorThisMemberIsNotPublic=This member is not public
MembersCards=Members print cards
MembersList=List of members
MembersListToValid=List of draft members (to be validated)
@@ -96,7 +99,7 @@ ConfirmDeleteSubscription=Are you sure you want to delete this subscription ?
Filehtpasswd=htpasswd file
ValidateMember=Validate a member
ConfirmValidateMember=Are you sure you want to validate this member ?
-FollowingLinksArePublic=The following links are open pages not protected by any Dolibarr permission.
+FollowingLinksArePublic=The following links are open pages not protected by any Dolibarr permission. They are not formated pages, provided as example to show how to list members database.
PublicMemberList=Public member list
BlankSubscriptionForm=Subscription form
MemberPublicLinks=Public links/pages
@@ -111,6 +114,7 @@ Text=Text
Int=Int
Date=Date
DateAndTime=Date and time
+PublicMemberCard=Member public card
MemberNotOrNoMoreExpectedToSubscribe=Member not or no more expected to subscribe
AddSubscription=Add subscription
ShowSubscription=Show subscription
diff --git a/htdocs/langs/fr_FR/members.lang b/htdocs/langs/fr_FR/members.lang
index 130f45cb4ef..a2026950f26 100644
--- a/htdocs/langs/fr_FR/members.lang
+++ b/htdocs/langs/fr_FR/members.lang
@@ -13,6 +13,9 @@ FundationMembers=Membres de l'association
Attributs=Attributs
Person=Personne
ErrorMemberTypeNotDefined=Le type d'adhérent n'est pas choisi
+ListOfPublicMembers=Liste des adhérents publiques
+ListOfValidatedPublicMembers=Liste des adhérents publiques validés
+ErrorThisMemberIsNotPublic=Cet adhérent n'est pas publique
MembersCards=Cartes des adhérents
MembersList=Liste des adhérents
MembersListToValid=Liste des adhérents brouillons (à valider)
@@ -96,7 +99,7 @@ ConfirmDeleteSubscription=Etes-vous s
Filehtpasswd=Fichier htpasswd
ValidateMember=Valider un adhérent
ConfirmValidateMember=Etes-vous sûr de vouloir valider cet adhérent ?
-FollowingLinksArePublic=Les liens suivants sont des pages accessibles à tous et non protégées par aucune habilitation Dolibarr.
+FollowingLinksArePublic=Les liens suivants sont des pages accessibles à tous et non protégées par aucune habilitation Dolibarr. Ces pages n'ont aucun formatage et sont fournies à titre d'exemple pour les associations qui veulent des scripts de consultation publiques.
PublicMemberList=Liste des membres publiques
BlankSubscriptionForm=Formulaire inscription
MemberPublicLinks=Liens/pages publiques
@@ -111,6 +114,7 @@ Text=Texte long
Int=Numérique
Date=Date
DateAndTime=Date et heure
+PublicMemberCard=Fiche publique adhérent
MemberNotOrNoMoreExpectedToSubscribe=Non soumis ou plus soumis à cotisation
AddSubscription=Ajout adhésion
ShowSubscription=Afficher adhésion
diff --git a/htdocs/public/adherents/priv_fiche.php b/htdocs/public/adherents/priv_fiche.php
index e9c1d142302..3108c641cd8 100644
--- a/htdocs/public/adherents/priv_fiche.php
+++ b/htdocs/public/adherents/priv_fiche.php
@@ -1,7 +1,7 @@
* Copyright (C) 2002-2003 Jean-Louis Bergamo
- * Copyright (C) 2007 Laurent Destailleur
+ * Copyright (C) 2007-2008 Laurent Destailleur
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,10 +19,10 @@
*/
/**
- \file htdocs/lib/datepicker.php
- \brief Fichier de gestion de la popup de selection de date eldy
- \version $Id$
-*/
+ \file htdocs/public/adherents/priv_fiche.php
+ \brief Fichier de gestion de la popup de selection de date eldy
+ \version $Id$
+ */
require("../../master.inc.php");
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
@@ -31,22 +31,27 @@ require_once(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php");
require_once(DOL_DOCUMENT_ROOT."/paiement.class.php");
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
+$langs->load("main");
+$langs->load("members");
+$langs->load("companies");
+
+
function llxHeaderVierge($title, $head = "")
{
global $user, $conf, $langs;
- print "\n";
- print "\n";
- print "".$title."\n";
- if ($head) print $head."\n";
- print "\n";
+ print "\n";
+ print "\n";
+ print "".$title."\n";
+ if ($head) print $head."\n";
+ print "\n";
print "\n";
}
function llxFooter()
{
- print "\n";
- print "\n";
+ print "\n";
+ print "