diff --git a/htdocs/adherents/adherent_options.class.php b/htdocs/adherents/adherent_options.class.php index fa95c874f49..f40a64e3ed6 100644 --- a/htdocs/adherents/adherent_options.class.php +++ b/htdocs/adherents/adherent_options.class.php @@ -33,6 +33,11 @@ class AdherentOptions * ces champs */ var $attribute_name; + /* + * Tableau contenant le nom des champs en clef et le label de ces + * champs en value + */ + var $attribute_label; var $errorstr; /* @@ -45,6 +50,7 @@ class AdherentOptions $this->id = $id; $this->errorstr = array(); $this->attribute_name = array(); + $this->attribute_label = array(); } /* * Print error_list @@ -110,19 +116,45 @@ class AdherentOptions /* * Insertion dans la base */ - $sql = "ALTER TABLE llx_adherent_options "; - $sql .= " ADD $attrname $type($length)"; + if (isset($attrname) && $attrname != '' && preg_match("/^\w[a-zA-Z0-9-]*$/",$attrname)){ + $sql = "ALTER TABLE llx_adherent_options "; + $sql .= " ADD $attrname $type($length)"; - if ($this->db->query($sql)) - { - return 1; - } - else - { - print $this->db->error(); - print "


$sql

"; - return 0; - } + if ($this->db->query($sql)) + { + return 1; + } + else + { + print $this->db->error(); + print "


$sql

"; + return 0; + } + }else{ + return 0; + } + } + + Function create_label($attrname,$label='') { + /* + * Insertion dans la base + */ + if (isset($attrname) && $attrname != '' && preg_match("/^\w[a-zA-Z0-9-]*$/",$attrname)){ + $sql = "INSERT INTO llx_adherent_options_label SET "; + $escaped_label=mysql_escape_string($label); + $sql .= " name='$attrname',label='$escaped_label' "; + + if ($this->db->query($sql)) + { + return 1; + } + else + { + print $this->db->error(); + print "


$sql

"; + return 0; + } + } } /* @@ -130,20 +162,48 @@ class AdherentOptions * */ Function delete($attrname) - { - $sql = "ALTER TABLE llx_adherent_options DROP COLUMN $attrname"; + if (isset($attrname) && $attrname != '' && preg_match("/^\w[a-zA-Z0-9-]*$/",$attrname)){ + $sql = "ALTER TABLE llx_adherent_options DROP COLUMN $attrname"; + + if ( $this->db->query( $sql) ) + { + return $this->delete_label($attrname); + } + else + { + print "Err : ".$this->db->error(); + print "


$sql

"; + return 0; + } + }else{ + return 0; + } - if ( $this->db->query( $sql) ) - { - return 1; - } - else - { - print "Err : ".$this->db->error(); - print "


$sql

"; - return 0; - } + } + + /* + * Suppression d'un label + * + */ + Function delete_label($attrname) + { + if (isset($attrname) && $attrname != '' && preg_match("/^\w[a-zA-Z0-9-]*$/",$attrname)){ + $sql = "DELETE FROM llx_adherent_options_label WHERE name='$attrname'"; + + if ( $this->db->query( $sql) ) + { + return 1; + } + else + { + print "Err : ".$this->db->error(); + print "


$sql

"; + return 0; + } + }else{ + return 0; + } } @@ -152,23 +212,61 @@ class AdherentOptions * */ Function update($attrname,$type='varchar',$length=255) - { - $sql = "ALTER TABLE llx_adherent_options MODIFY COLUMN $attrname $type($length)"; + if (isset($attrname) && $attrname != '' && preg_match("/^\w[a-zA-Z0-9-]*$/",$attrname)){ + $sql = "ALTER TABLE llx_adherent_options MODIFY COLUMN $attrname $type($length)"; + + if ( $this->db->query( $sql) ) + { + return 1; + } + else + { + print "Err : ".$this->db->error(); + print "


$sql

"; + return 0; + } + }else{ + return 0; + } - if ( $this->db->query( $sql) ) - { - return 1; - } - else - { - print "Err : ".$this->db->error(); - print "


$sql

"; - return 0; - } + } + + /* + * Modification d'un label + * + */ + Function update_label($attrname,$label='') + { + if (isset($attrname) && $attrname != '' && preg_match("/^\w[a-zA-Z0-9-]*$/",$attrname)){ + $escaped_label=mysql_escape_string($label); + $sql = "REPLACE INTO llx_adherent_options_label SET name='$attrname',label='$escaped_label'"; + + if ( $this->db->query( $sql) ) + { + return 1; + } + else + { + print "Err : ".$this->db->error(); + print "


$sql

"; + return 0; + } + }else{ + return 0; + } } + /* + * fetch optional attribute name and optional attribute label + */ + Function fetch_optionals() + { + $this->fetch_name_optionals(); + $this->fetch_name_optionals_label(); + } + /* * fetch optional attribute name */ @@ -200,5 +298,34 @@ class AdherentOptions } } + + /* + * fetch optional attribute name and its label + */ + Function fetch_name_optionals_label() + { + $array_name_label=array(); + $sql = "SELECT name,label FROM llx_adherent_options_label"; + + if ( $this->db->query( $sql) ) + { + if ($this->db->num_rows()) + { + while ($tab = $this->db->fetch_object()) + { + // we can add this attribute to adherent object + $array_name_label[$tab->name]=stripslashes($tab->label); + $this->attribute_label[$tab->name]=stripslashes($tab->label); + } + return $array_name_label; + }else{ + return array(); + } + }else{ + print $this->db->error(); + return array() ; + } + + } } ?> diff --git a/htdocs/adherents/edit.php b/htdocs/adherents/edit.php index 4e416e922b2..5a1cc04651a 100644 --- a/htdocs/adherents/edit.php +++ b/htdocs/adherents/edit.php @@ -19,12 +19,13 @@ * $Source$ * */ -require("./pre.inc.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherents/pre.inc.php"); require("../adherent.class.php"); require("../adherent_type.class.php"); require($GLOBALS["DOCUMENT_ROOT"]."/adherents/adherent_options.class.php"); $db = new Db(); +$adho = new AdherentOptions($db); /* * Enregistrer les modifs @@ -92,7 +93,10 @@ if ($rowid) $adh = new Adherent($db); $adh->id = $rowid; $adh->fetch($rowid); + // fetch optionals value $adh->fetch_optionals($rowid); + // fetch optionals attributes and labels + $adho->fetch_optionals(); $sql = "SELECT s.nom,s.idp, f.amount, f.total, f.facnumber"; $sql .= " FROM societe as s, llx_facture as f WHERE f.fk_soc = s.idp"; @@ -135,9 +139,9 @@ if ($rowid) print 'Password'.$adh->pass.' '; print 'Date de naissance
Format AAAA-MM-JJ'.$adh->naiss.' '; print 'URL Photo'.$adh->photo.' '; - $myattr=$adh->fetch_name_optionals(); - foreach($myattr as $key){ - print "$key".$adh->array_options["options_$key"]." \n"; + // $adho->fetch_optionals(); + foreach($adho->attribute_label as $key=>$value){ + print "$value".$adh->array_options["options_$key"]." \n"; } print "\n"; @@ -186,8 +190,10 @@ if ($rowid) print 'Password'; print 'Date de naissance
Format AAAA-MM-JJ'; print 'URL photo'; - foreach($myattr as $key){ - print "$keyarray_options["options_$key"]."\">\n"; + // $myattr=$adho->fetch_name_optionals(); + foreach($adho->attribute_label as $key=>$value){ + // foreach($myattr as $key){ + print "$valuearray_options["options_$key"]."\">\n"; } print ''; print ' '; diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 451689f5fec..edcbb0afb59 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -20,15 +20,16 @@ * $Source$ * */ -require("./pre.inc.php"); -require("../adherent.class.php"); -require("../adherent_type.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherents/pre.inc.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherent.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherent_type.class.php"); require($GLOBALS["DOCUMENT_ROOT"]."/adherents/adherent_options.class.php"); -require("../cotisation.class.php"); -require("../paiement.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/cotisation.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/paiement.class.php"); $db = new Db(); +$adho = new AdherentOptions($db); if ($HTTP_POST_VARS["action"] == 'cotisation') { @@ -91,7 +92,7 @@ if ($HTTP_POST_VARS["action"] == 'confirm_valid' && $HTTP_POST_VARS["confirm"] = $adh = new Adherent($db, $rowid); $adh->validate($user->id); $adh->fetch($rowid); - $mesg=preg_replace("/%INFO%/","Prenom : $adh->prenom\nNom : $adh->nom\nSociete = $adh->societe\nAdresse = $adh->adresse\nCode Postal : $adh->cp\nVille : $adh->ville\nPays : $adh->pays\nEmail : $adh->email\nLogin : $adh->login\nPassword : $adh->pass\nNote : $adh->note",$conf->adherent->email_valid); + $mesg=preg_replace("/%INFO%/","Prenom : $adh->prenom\nNom : $adh->nom\nSociete = $adh->societe\nAdresse = $adh->adresse\nCode Postal : $adh->cp\nVille : $adh->ville\nPays : $adh->pays\nEmail : $adh->email\nLogin : $adh->login\nPassword : $adh->pass\nNote : $adh->note\n\nServeur : http://$SERVER_NAME/public/adherents/",$conf->adherent->email_valid); mail($adh->email,"Vos coordonnees sur http://$SERVER_NAME/",$mesg); } @@ -100,7 +101,7 @@ if ($HTTP_POST_VARS["action"] == 'confirm_resign' && $HTTP_POST_VARS["confirm"] $adh = new Adherent($db, $rowid); $adh->resiliate($user->id); $adh->fetch($rowid); - $mesg=preg_replace("/%INFO%/","Prenom : $adh->prenom\nNom : $adh->nom\nSociete = $adh->societe\nAdresse = $adh->adresse\nCode Postal : $adh->cp\nVille : $adh->ville\nPays : $adh->pays\nEmail : $adh->email\nLogin : $adh->login\nPassword : $adh->pass\nNote : $adh->note",$conf->adherent->email_resil); + $mesg=preg_replace("/%INFO%/","Prenom : $adh->prenom\nNom : $adh->nom\nSociete = $adh->societe\nAdresse = $adh->adresse\nCode Postal : $adh->cp\nVille : $adh->ville\nPays : $adh->pays\nEmail : $adh->email\nLogin : $adh->login\nPassword : $adh->pass\nNote : $adh->note\n\nServeur : http://$SERVER_NAME/public/adherents/",$conf->adherent->email_resil); mail($adh->email,"Vos coordonnees sur http://$SERVER_NAME/",$mesg); } @@ -113,7 +114,8 @@ llxHeader(); /* */ /* ************************************************************************** */ - +// fetch optionals attributes and labels +$adho->fetch_optionals(); if ($action == 'create') { $sql = "SELECT s.nom,s.idp, f.amount, f.total, f.facnumber"; @@ -129,8 +131,9 @@ if ($action == 'create') { $total = $obj->total; } } - $adho = new AdherentOptions($db); - $myattr=$adho->fetch_name_optionals(); + // $adho = new AdherentOptions($db); + + //$myattr=$adho->fetch_name_optionals(); print_titre("Nouvel adhérent"); print "
\n"; @@ -173,8 +176,8 @@ if ($action == 'create') { print 'Password'; print 'Date de Naissance
Format AAAA-MM-JJ'; print 'Url photo'; - foreach($myattr as $key){ - print "$key\n"; + foreach($adho->attribute_label as $key=>$value){ + print "$value\n"; } print "Date de cotisation\n"; @@ -208,7 +211,7 @@ if ($rowid > 0) $adh->id = $rowid; $adh->fetch($rowid); $adh->fetch_optionals($rowid); - $myattr=$adh->fetch_name_optionals(); + //$myattr=$adh->fetch_name_optionals(); print_titre("Edition de la fiche adhérent"); @@ -327,8 +330,8 @@ if ($rowid > 0) // print ''; // print ''; - foreach($myattr as $key){ - print "\n"; + foreach($adho->attribute_label as $key=>$value){ + print "\n"; } print "
Champs optionnels
$key".$adh->array_options["options_$key"]." 
$value".$adh->array_options["options_$key"]." 
\n"; diff --git a/htdocs/adherents/options.php b/htdocs/adherents/options.php index 09bbeedcc52..10faa5afc63 100644 --- a/htdocs/adherents/options.php +++ b/htdocs/adherents/options.php @@ -20,7 +20,7 @@ * $Source$ * */ -require("./pre.inc.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherents/pre.inc.php"); //require("../adherent.class.php"); //require("../adherent_type.class.php"); require($GLOBALS["DOCUMENT_ROOT"]."/adherents/adherent_options.class.php"); @@ -33,49 +33,39 @@ $adho = new AdherentOptions($db); if ($HTTP_POST_VARS["action"] == 'add' && $user->admin) { - - //$adho->libelle = $HTTP_POST_VARS["attrname"]; - //$adho->cotisation = $HTTP_POST_VARS["cotisation"]; - //$adho->commentaire = $HTTP_POST_VARS["comment"]; - if (preg_match("/^\w[a-zA-Z0-9-]*$/",$_POST['attrname'])){ + // type et taille non encore pris en compte => varchar(255) + if (isset($_POST["attrname"]) && preg_match("/^\w[a-zA-Z0-9-]*$/",$_POST['attrname'])){ $adho->create($_POST['attrname']); } + if (isset($_POST['label'])){ + $adho->create_label($_POST['attrname'],$_POST['label']); + } Header("Location: $PHP_SELF"); } if ($HTTP_POST_VARS["action"] == 'update' && $user->admin) { - - // $adho->libelle = $HTTP_POST_VARS["libelle"]; - // $adho->cotisation = $HTTP_POST_VARS["cotisation"]; - // $adho->commentaire = $HTTP_POST_VARS["comment"]; - - // if ($adho->update($user->id) ) + //if ($adho->update($user->id) ) // { // } + if (isset($_POST['label'])){ + $adho->update_label($_POST['attrname'],$_POST['label']); + } Header("Location: $PHP_SELF"); } -if ($_POST["action"] == 'delete' && $user->admin) +if ($action == 'delete' && $user->admin) { - if(isset($_POST["attrname"])){ - $adho->delete($_POST["attrname"]); + if(isset($attrname) && preg_match("/^\w[a-zA-Z0-9-]*$/",$attrname)){ + $adho->delete($attrname); } Header("Location: $PHP_SELF"); } -if ($action == 'commentaire') -{ - $don = new Don($db); - $don->set_commentaire($rowid,$HTTP_POST_VARS["commentaire"]); - $action = "edit"; -} - - llxHeader(); -print_titre("Champs optionnels"); +print_titre("Configuration des champs optionnels"); /* ************************************************************************** */ /* */ @@ -84,7 +74,7 @@ print_titre("Champs optionnels"); /* ************************************************************************** */ $array_options=$adho->fetch_name_optionals(); - +$array_label=$adho->fetch_name_optionals_label(); if (sizeof($array_options)>0) { print ""; @@ -92,7 +82,7 @@ if (sizeof($array_options)>0) print ''; print ""; print ""; - print ""; + print ""; print "\n"; $var=True; @@ -100,10 +90,11 @@ if (sizeof($array_options)>0) { $var=!$var; print ""; - print "\n"; + print "\n"; print "\n"; print "\n"; print "\n"; + print "\n"; print ""; // $i++; } @@ -140,7 +131,7 @@ print "
LibelleNom de l'attributtype type  
 ".$adho->attribute_label[$key]." $key$valueEditerSupprimer

"; /* ************************************************************************** */ /* */ -/* Création d'une fiche don */ +/* Création d'un champ optionnel */ /* */ /* ************************************************************************** */ @@ -153,10 +144,10 @@ if ($action == 'create') { print ''; - print 'Libellé'; + print 'Libellé'; print 'Nom de l\'attribut (pas d\'espace et uniquement des carateres alphanumeriques)'; - print 'Type'; + print 'Type (non pris en compte)'; print ''; print ''; print ''; - print ''; + print ''; print ''; - print ''; + print ''; print ''; print '
Libellé
Libellé
Nom de l\'attribut'.$attrname.' 
Type
Type (non pris en compte)
'; print ""; diff --git a/htdocs/public/adherents/new.php b/htdocs/public/adherents/new.php index b6ef7dcfa4b..57f6d3e1e8f 100644 --- a/htdocs/public/adherents/new.php +++ b/htdocs/public/adherents/new.php @@ -20,13 +20,15 @@ * */ require("./pre.inc.php"); -require("../../adherent.class.php"); -require("../../adherent_type.class.php"); -require("../../cotisation.class.php"); -require("../../paiement.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherent.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherent_type.class.php"); +//require($GLOBALS["DOCUMENT_ROOT"]."/cotisation.class.php"); +//require($GLOBALS["DOCUMENT_ROOT"]."/paiement.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherents/adherent_options.class.php"); $db = new Db(); +$adho = new AdherentOptions($db); $errmsg=''; $num=0; $error=0; @@ -88,6 +90,11 @@ if ($HTTP_POST_VARS["action"] == 'add') $adh->commentaire = $HTTP_POST_VARS["comment"]; $adh->morphy = $HTTP_POST_VARS["morphy"]; + foreach($_POST as $key => $value){ + if (ereg("^options_",$key)){ + $adh->array_options[$key]=$_POST[$key]; + } + } if ($adh->create($user->id) ) { if ($cotisation > 0) @@ -95,7 +102,7 @@ if ($HTTP_POST_VARS["action"] == 'add') $adh->cotisation(mktime(12, 0 , 0, $remonth, $reday, $reyear), $cotisation); } // Envoi d'un Email de confirmation au nouvel adherent - $mesg=preg_replace("/%INFO%/","Prenom : $prenom\nNom : $nom\nSociete = $societe\nAdresse = $adresse\nCode Postal : $cp\nVille : $ville\nPays : $pays\nEmail : $email\nLogin : $login\nPassword : $pass\nNote : $note",$conf->adherent->email_new); + $mesg=preg_replace("/%INFO%/","Prenom : $prenom\nNom : $nom\nSociete = $societe\nAdresse = $adresse\nCode Postal : $cp\nVille : $ville\nPays : $pays\nEmail : $email\nLogin : $login\nPassword : $pass1\nNote : $note\n\nServeur : http://$SERVER_NAME/public/adherents/",$conf->adherent->email_new); //$mesg="Merci de votre inscription. Votre adhesion devrait etre rapidement validee.\nVoici le rappel des coordonnees que vous avez rentrees (toute information erronee entrainera la non validation de votre inscription) :\n\nPrenom : $prenom\nNom : $nom\nSociete = $societe\nAdresse = $adresse\nCode Postal : $cp\nVille : $ville\nPays : $pays\nEmail : $email\nLogin : $login\nPassword : $pass\nNote : $note\n\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l'adresse suivante :\nhttp://$SERVER_NAME/adherents/private/edit.php\n\n"; mail($email,"Votre adhesion sur http://$SERVER_NAME/",$mesg); Header("Location: new.php?action=added"); @@ -112,6 +119,8 @@ llxHeader(); /* */ /* ************************************************************************** */ +// fetch optionals attributes and labels +$adho->fetch_optionals(); if (isset($action) && $action== 'added'){ print ''; @@ -170,7 +179,9 @@ print ''; print ''; print ''; - +foreach($adho->attribute_label as $key=>$value){ + print "\n"; +} print ''; print "\n"; print "
* Password (a entrer 2 fois)Date de naissance
Format AAAA-MM-JJ
* URL Photo
Profil public ?
$value
\n"; diff --git a/htdocs/public/adherents/priv_edit.php b/htdocs/public/adherents/priv_edit.php index dea319fed17..feadab5c0cc 100644 --- a/htdocs/public/adherents/priv_edit.php +++ b/htdocs/public/adherents/priv_edit.php @@ -20,10 +20,13 @@ * */ require("./pre.inc.php"); -require("../../adherent.class.php"); -require("../../adherent_type.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherent.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherent_type.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherents/adherent_options.class.php"); $db = new Db(); +$adho = new AdherentOptions($db); + $errmsg=''; $num=0; $error=0; @@ -99,10 +102,14 @@ if ($action == 'update') $public=0; } $adh->public = $public; - + foreach($_POST as $key => $value){ + if (ereg("^options_",$key)){ + $adh->array_options[$key]=$_POST[$key]; + } + } if ($adh->update($user->id) ) { - $mesg=preg_replace("/%INFO%/","Prenom : $prenom\nNom : $nom\nSociete = $societe\nAdresse = $adresse\nCode Postal : $cp\nVille : $ville\nPays : $pays\nEmail : $email\nLogin : $login\nPassword : $pass\nNote : $note",$conf->adherent->email_edit); + $mesg=preg_replace("/%INFO%/","Prenom : $prenom\nNom : $nom\nSociete = $societe\nAdresse = $adresse\nCode Postal : $cp\nVille : $ville\nPays : $pays\nEmail : $email\nLogin : $login\nPassword : $pass\nNote : $note\n\nServeur : http://$SERVER_NAME/public/adherents/",$conf->adherent->email_edit); mail($email,"Vos coordonnees sur http://$SERVER_NAME/",$mesg); //Header("Location: fiche.php?rowid=$adh->id&action=edit"); @@ -129,6 +136,9 @@ if (isset($_SERVER["REMOTE_USER"])){ $adh = new Adherent($db); $adh->login = $_SERVER["REMOTE_USER"]; $adh->fetch_login($_SERVER["REMOTE_USER"]); + $adh->fetch_optionals($adh->id); + // fetch optionals attibutes + $adho->fetch_optionals(); $sql = "SELECT s.nom,s.idp, f.amount, f.total, f.facnumber"; $sql .= " FROM societe as s, llx_facture as f WHERE f.fk_soc = s.idp"; @@ -184,6 +194,10 @@ if (isset($_SERVER["REMOTE_USER"])){ }else{ print 'Profil public ? Non '; } + foreach($adho->attribute_label as $key=>$value){ + print "$value".$adh->array_options["options_$key"]." \n"; + } + print "\n"; print "


"; @@ -235,6 +249,9 @@ if (isset($_SERVER["REMOTE_USER"])){ }else{ print 'Profil public ?'; } + foreach($adho->attribute_label as $key=>$value){ + print "$valuearray_options["options_$key"]."\">\n"; + } print ''; print ' '; print ''; diff --git a/htdocs/public/adherents/priv_fiche.php b/htdocs/public/adherents/priv_fiche.php index 559e9acc905..6ea908061cc 100644 --- a/htdocs/public/adherents/priv_fiche.php +++ b/htdocs/public/adherents/priv_fiche.php @@ -21,14 +21,15 @@ * */ require("./pre.inc.php"); -require("../../adherent.class.php"); -require("../../adherent_type.class.php"); -require("../../cotisation.class.php"); -require("../../paiement.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherent.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherent_type.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/cotisation.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/paiement.class.php"); +require($GLOBALS["DOCUMENT_ROOT"]."/adherents/adherent_options.class.php"); $db = new Db(); - +$adho = new AdherentOptions($db); llxHeader(); @@ -36,13 +37,16 @@ llxHeader(); /* */ /* Edition de la fiche */ /* */ -/* ************************************************************************** */ +/*************************************************************************** */ +// fetch optionals attributes and labels +$adho->fetch_optionals(); if ($rowid > 0) { $adh = new Adherent($db); $adh->id = $rowid; $adh->fetch($rowid); + $adh->fetch_optionals($rowid); print_titre("Fiche adhérent de $adh->prenom $adh->nom"); @@ -70,6 +74,9 @@ if ($rowid > 0) if (isset($adh->photo) && $adh->photo !=''){ print 'URL Photo'."photo\">photo\">".' '; } + // foreach($adho->attribute_label as $key=>$value){ + // print "$value".$adh->array_options["options_$key"]." \n"; + // } print '';