* Copyright (C) 2002-2003 Jean-Louis Bergamo * Copyright (C) 2004-2006 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ * $Source$ */ /** \file htdocs/adherents/fiche.php \ingroup adherent \brief Page d'ajout, edition, suppression d'une fiche adhérent \version $Revision$ */ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php"); require_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/xmlrpc.php"); $langs->load("companies"); $langs->load("bills"); $langs->load("members"); $langs->load("users"); $adho = new AdherentOptions($db); $errmsg=''; $action=isset($_GET["action"])?$_GET["action"]:$_POST["action"]; $rowid=isset($_GET["rowid"])?$_GET["rowid"]:$_POST["rowid"]; $typeid=isset($_GET["typeid"])?$_GET["typeid"]:$_POST["typeid"]; /* * Actions */ if ($_POST["action"] == 'sendinfo') { $adh = new Adherent($db); $adh->id = $rowid; $adh->fetch($rowid); $adh->send_an_email($adh->email,"Voici le contenu de votre fiche\n\n%INFOS%\n\n","Contenu de votre fiche adherent"); } if ($_POST["action"] == 'cotisation') { $adh = new Adherent($db); $adh->id = $rowid; $adh->fetch($rowid); $reday=$_POST["reday"]; $remonth=$_POST["remonth"]; $reyear=$_POST["reyear"]; $datecotisation=@mktime(12, 0 , 0, $remonth, $reday, $reyear); $cotisation=$_POST["cotisation"]; $accountid=$_POST["accountid"]; $operation=$_POST["operation"]; $label=$_POST["label"]; $num_chq=$_POST["num_chq"]; if (! $datecotisation) { $errmsg=$langs->trans("BadDateFormat"); $action=''; } if (! $cotisation > 0) { $errmsg=$langs->trans("ErrorFieldRequired",$langs->trans("Amount")); $action=''; } if ($action) { $db->begin(); $crowid=$adh->cotisation($datecotisation, $cotisation, $accountid, $operation, $label, $num_chq); if ($crowid > 0) { $db->commit(); // Envoi mail if ($conf->global->ADHERENT_MAIL_COTIS) { $adh->send_an_email($adh->email,$conf->global->ADHERENT_MAIL_COTIS,$conf->global->ADHERENT_MAIL_COTIS_SUBJECT); } } else { $db->rollback(); dolibarr_print_error($db,$adh->error); } } } if ($action == 'update') { if ($_POST["bouton"] == $langs->trans("Save")) { $datenaiss=mktime(12, 0 , 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]); $adh = new Adherent($db); $adh->id = $_POST["rowid"]; $adh->prenom = $_POST["prenom"]; $adh->nom = $_POST["nom"]; $adh->societe = $_POST["societe"]; $adh->adresse = $_POST["adresse"]; $adh->amount = $_POST["amount"]; $adh->cp = $_POST["cp"]; $adh->ville = $_POST["ville"]; $adh->email = $_POST["email"]; $adh->login = $_POST["login"]; $adh->pass = $_POST["pass"]; $adh->naiss = $_POST["naiss"]; $adh->photo = $_POST["photo"]; $adh->date = $datenaiss; $adh->note = $_POST["note"]; $adh->pays = $_POST["pays"]; $adh->typeid = $_POST["type"]; $adh->commentaire = $_POST["comment"]; $adh->morphy = $_POST["morphy"]; // recuperation du statut et public $adh->statut = $_POST["statut"]; $adh->public = $_POST["public"]; foreach($_POST as $key => $value) { if (ereg("^options_",$key)) { $adh->array_options[$key]=$_POST[$key]; } } if ($adh->update(0) >= 0) { Header("Location: fiche.php?rowid=".$adh->id); exit; } else { $errmsg=$adh->error; $action=''; } } else { Header("Location: fiche.php?rowid=".$rowid); exit; } } if ($_POST["action"] == 'add') { $datenaiss=''; if (isset($_POST["naissday"]) && $_POST["naissday"] && isset($_POST["naissmonth"]) && isset($_POST["naissyear"]) && $_POST["naissyear"]) { $datenaiss=mktime(12, 0 , 0, $_POST["naissmonth"], $_POST["naissday"], $_POST["naissyear"]); } $datecotisation=''; if (isset($_POST["naissday"]) && isset($_POST["naissmonth"]) && isset($_POST["naissyear"])) { $datecotisation=mktime(12, 0 , 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]); } $type=$_POST["type"]; $nom=$_POST["nom"]; $prenom=$_POST["prenom"]; $societe=$_POST["societe"]; $adresse=$_POST["adresse"]; $cp=$_POST["cp"]; $ville=$_POST["ville"]; $pays_code=$_POST["pays_code"]; $email=$_POST["member_email"]; $login=$_POST["member_login"]; $pass=$_POST["member_pass"]; $photo=$_POST["photo"]; $note=$_POST["note"]; $comment=$_POST["comment"]; $morphy=$_POST["morphy"]; $cotisation=$_POST["cotisation"]; $adh = new Adherent($db); $adh->prenom = $prenom; $adh->nom = $nom; $adh->societe = $societe; $adh->adresse = $adresse; $adh->cp = $cp; $adh->ville = $ville; $adh->pays_code = $pays_code; $adh->email = $email; $adh->login = $login; $adh->pass = $pass; $adh->naiss = $datenaiss; $adh->photo = $photo; $adh->note = $note; $adh->typeid = $type; $adh->commentaire = $comment; $adh->morphy = $morphy; foreach($_POST as $key => $value){ if (ereg("^options_",$key)){ $adh->array_options[$key]=$_POST[$key]; } } // Test validite des paramètres if(!isset($type) || $type==''){ $error++; $errmsg .= $langs->trans("ErrorMemberTypeNotDefined")."
\n"; } // Test si le login existe deja if(!isset($login) || $login==''){ $error++; $errmsg .= $langs->trans("ErrorFieldRequired",$langs->trans("Login"))."
\n"; } else { $sql = "SELECT login FROM ".MAIN_DB_PREFIX."adherent WHERE login='$login';"; $result = $db->query($sql); if ($result) { $num = $db->num_rows($result); } if ($num) { $error++; $errmsg .= $langs->trans("ErrorLoginAlreadyExists",$login)."
\n"; } } if (!isset($nom) || $nom=='') { $error++; $errmsg .= $langs->trans("ErrorFieldRequired",$langs->trans("Lastname"))."
\n"; } if (!isset($prenom) || $prenom=='') { $error++; $errmsg .= $langs->trans("ErrorFieldRequired",$langs->trans("Firstname"))."
\n"; } if ($conf->global->ADHERENT_MAIL_REQUIRED && ! ValidEMail($email)) { $error++; $errmsg .= $langs->trans("ErrorBadEMail",$email)."
\n"; } if (!isset($pass) || $pass == '' ) { $error++; $errmsg .= $langs->trans("ErrorFieldRequired",$langs->trans("Password"))."
\n"; } $public=0; if (isset($public)) $public=1; if (!$error) { // Email a peu pres correct et le login n'existe pas if ($adh->create($user->id)) { if ($cotisation > 0) { $crowid=$adh->cotisation($datecotisation, $cotisation); // insertion dans la gestion banquaire si configure pour if ($global->conf->ADHERENT_BANK_USE) { $dateop=strftime("%Y%m%d",time()); $amount=$cotisation; $acct=new Account($db,$_POST["accountid"]); $insertid=$acct->addline($dateop, $_POST["operation"], $_POST["label"], $amount, $_POST["num_chq"], '', $user); if ($insertid == '') { dolibarr_print_error($db); } else { // met a jour la table cotisation $sql ="UPDATE ".MAIN_DB_PREFIX."cotisation"; $sql.=" SET fk_bank=$insertid WHERE rowid=$crowid "; $result = $db->query($sql); if ($result) { //Header("Location: fiche.php"); } else { dolibarr_print_error($db); } } } } Header("Location: liste.php?statut=-1"); exit; } else { dolibarr_print_error($db); } } else { $action = 'create'; } } if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes') { $adh = new Adherent($db); $adh->delete($rowid); Header("Location: liste.php"); exit; } if ($_POST["action"] == 'confirm_valid' && $_POST["confirm"] == 'yes') { $adh = new Adherent($db, $rowid); $adh->validate($user->id); $adh->fetch($rowid); $adht = new AdherentType($db); $adht->fetch($adh->typeid); if (isset($adht->mail_valid) && $adht->mail_valid != '') { $result=$adh->send_an_email($adh->email,$adht->mail_valid,$conf->adherent->email_valid_subject); } else { $result=$adh->send_an_email($adh->email,$conf->adherent->email_valid,$conf->adherent->email_valid_subject); } // rajoute l'utilisateur dans les divers abonnements .. if (!$adh->add_to_abo($adht)) { // error $errmsg.="echec du rajout de l'utilisateur aux abonnements: ".$adh->errostr."
\n"; } } if ($_POST["action"] == 'confirm_resign' && $_POST["confirm"] == 'yes') { $adh = new Adherent($db, $rowid); $adh->resiliate($user->id); $adh->fetch($rowid); $adht = new AdherentType($db); $adht->fetch($adh->typeid); $adh->send_an_email($adh->email,$conf->adherent->email_resil,$conf->adherent->email_resil_subject); // supprime l'utilisateur des divers abonnements .. if (!$adh->del_to_abo($adht)) { // error $errmsg.="echec de la suppression de l'utilisateur aux abonnements: ".$adh->errostr."
\n"; } } if ($_POST["action"] == 'confirm_add_glasnost' && $_POST["confirm"] == 'yes') { $adh = new Adherent($db, $rowid); $adh->fetch($rowid); $adht = new AdherentType($db); $adht->fetch($adh->typeid); if ($adht->vote == 'yes'){ define("XMLRPC_DEBUG", 1); if (!$adh->add_to_glasnost()){ $errmsg.="Echec du rajout de l'utilisateur dans glasnost: ".$adh->errostr."
\n"; } XMLRPC_debug_print(); } } if ($_POST["action"] == 'confirm_del_glasnost' && $_POST["confirm"] == 'yes') { $adh = new Adherent($db, $rowid); $adh->fetch($rowid); $adht = new AdherentType($db); $adht->fetch($adh->typeid); if ($adht->vote == 'yes'){ define("XMLRPC_DEBUG", 1); if(!$adh->del_to_glasnost()){ $errmsg.="Echec de la suppression de l'utilisateur dans glasnost: ".$adh->errostr."
\n"; } XMLRPC_debug_print(); } } if ($_POST["action"] == 'confirm_del_spip' && $_POST["confirm"] == 'yes') { $adh = new Adherent($db, $rowid); $adh->fetch($rowid); if(!$adh->del_to_spip()){ $errmsg.="Echec de la suppression de l'utilisateur dans spip: ".$adh->errostr."
\n"; } } if ($_POST["action"] == 'confirm_add_spip' && $_POST["confirm"] == 'yes') { $adh = new Adherent($db, $rowid); $adh->fetch($rowid); if (!$adh->add_to_spip()){ $errmsg.="Echec du rajout de l'utilisateur dans spip: ".$adh->errostr."
\n"; } } /* * */ llxHeader(); if ($errmsg) { print '
'.$errmsg.'
'; print "\n"; } // fetch optionals attributes and labels $adho->fetch_optionals(); if ($action == 'edit') { /******************************************** * * Fiche en mode edition * ********************************************/ $adho = new AdherentOptions($db); $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(); $adht = new AdherentType($db); /* * Affichage onglets */ $h = 0; $head[$h][0] = DOL_URL_ROOT.'/adherents/fiche.php?rowid='.$rowid; $head[$h][1] = $langs->trans("Card"); $hselected=$h; $h++; dolibarr_fiche_head($head, $hselected, $langs->trans("MemberCard")); print '
'; print ''; print ""; print ""; print "statut."\">"; print "public."\">"; $htmls = new Form($db); // Nom print ''; print ''; // Prenom print ''; $rowspan=13; print ''; // Type print '"; // Physique-Moral $morphys["phy"] = $langs->trans("Physical"); $morphys["mor"] = $langs->trans("Morale"); print ""; // Société print ''; // Adresse print ''; print ''; print ''; print ''; print ''; print ''; // Date naissance print "\n"; // Url photo print ''; foreach($adho->attribute_label as $key=>$value) { print "\n"; } print ''; print '
'.$langs->trans("Name").''.$langs->trans("Comments").'
'.$langs->trans("Firstname").''; print '
'.$langs->trans("Type").''; $htmls->select_array("type", $adht->liste_array(), $adh->typeid); print "
".$langs->trans("Person").""; $htmls->select_array("morphy", $morphys, $adh->morphy); print "
'.$langs->trans("Company").'
'.$langs->trans("Address").''; print '
'.$langs->trans("Zip").'/'.$langs->trans("Town").'
'.$langs->trans("Country").''; $htmls->select_pays($adh->pays_code?$adh->pays_code:$mysoc->pays_code,'pays'); print '
'.$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'*':'').'
'.$langs->trans("Login").'
'.$langs->trans("Password").'
".$langs->trans("Birthday")."\n"; $htmls->select_date(-1,'naiss','','',1,'update'); print "
URL photo
$valuearray_options["options_$key"]."\">
'; print ' '; print ''; print '
'; print '
'; print ''; } if ($action == 'create') { /* ************************************************************************** */ /* */ /* Fiche création */ /* */ /* ************************************************************************** */ $htmls = new Form($db); $adht = new AdherentType($db); print_titre($langs->trans("NewMember")); print "
\n"; print ''; print ''; print ''; print ''; print ''; $rowspan=12; print ''; // Type print '\n"; // Moral-Physique $morphys["phy"] = "Physique"; $morphys["mor"] = "Morale"; print "\n"; print ''; print ''; print ''; print ''; print ''; print ''; print ''; // Date naissance print "\n"; // Url photo print ''; foreach($adho->attribute_label as $key=>$value){ print "\n"; } print "
'.$langs->trans("Lastname").'*'.$langs->trans("Comments").' :
'.$langs->trans("Firstname").'*
'.$langs->trans("MemberType").'*'; $listetype=$adht->liste_array(); if (sizeof($listetype)) { $htmls->select_array("type", $listetype, $typeid); } else { print ''.$langs->trans("NoTypeDefinedGoToSetup").''; } print "
".$langs->trans("Person")."*\n"; $htmls->select_array("morphy", $morphys); print "
'.$langs->trans("Company").'
'.$langs->trans("Address").''; print '
'.$langs->trans("Zip").' / '.$langs->trans("Town").'
'.$langs->trans("Country").''; $htmls->select_pays($adh->pays_code?$adh->pays_code:$mysoc->pays_code,'pays_code'); print '
'.$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'*':'').'
'.$langs->trans("Login").'*
'.$langs->trans("Password").'*
".$langs->trans("Birthday")."\n"; $htmls->select_date(-1,'naiss','','',1,'add'); print "
Url photo
$value
\n"; print '
'; // Boite cotisations print ''; print "\n"; if ($conf->global->ADHERENT_BANK_USE) { print '\n"; print '\n"; print '\n"; print ''; } print ''; print "
".$langs->trans("DateSubscription")."\n"; $htmls->select_date('','','','','','add'); print "
'.$langs->trans("PaymentMode").''; $htmls->select_types_paiements('','operation'); print "
'.$langs->trans("FinancialAccount").''; $htmls->select_comptes('','accountid'); print "
'.$langs->trans("Numero").''; print ''; print "
'.$langs->trans("Label").'
'.$langs->trans("Subscription").' '.$langs->trans("Currency".$conf->monnaie).'
\n"; print '
'; print '
'; print "
\n"; } if ($rowid && $action != 'edit') { /* ************************************************************************** */ /* */ /* Mode affichage */ /* */ /* ************************************************************************** */ $adh = new Adherent($db); $adh->id = $rowid; $adh->fetch($rowid); $adh->fetch_optionals($rowid); $adht = new AdherentType($db); $adht->fetch($adh->typeid); $html = new Form($db); /* * Affichage onglets */ $h = 0; $head[$h][0] = DOL_URL_ROOT.'/adherents/fiche.php?rowid='.$rowid; $head[$h][1] = $langs->trans("Card"); $hselected=$h; $h++; dolibarr_fiche_head($head, $hselected, $langs->trans("MemberCard")); // Confirmation de la suppression de l'adhérent if ($action == 'delete') { $html->form_confirm("fiche.php?rowid=$rowid",$langs->trans("ResiliateMember"),$langs->trans("ConfirmResiliateMember"),"confirm_delete"); print '
'; } // Confirmation de la validation if ($action == 'valid') { $html->form_confirm("fiche.php?rowid=$rowid",$langs->trans("ValidateMember"),$langs->trans("ConfirmValidateMember"),"confirm_valid"); print '
'; } // Confirmation de la Résiliation if ($action == 'resign') { $html->form_confirm("fiche.php?rowid=$rowid",$langs->trans("ResiliateMember"),$langs->trans("ConfirmResiliateMember"),"confirm_resign"); print '
'; } /* * Confirmation de l'ajout dans glasnost */ if ($action == 'add_glasnost') { $html->form_confirm("fiche.php?rowid=$rowid","Ajouter dans glasnost","Etes-vous sur de vouloir ajouter cet adhérent dans glasnost ? (serveur : ".ADHERENT_GLASNOST_SERVEUR.")","confirm_add_glasnost"); print '
'; } /* * Confirmation de la suppression dans glasnost */ if ($action == 'del_glasnost') { $html->form_confirm("fiche.php?rowid=$rowid","Supprimer dans glasnost","Etes-vous sur de vouloir effacer cet adhérent dans glasnost ? (serveur : ".ADHERENT_GLASNOST_SERVEUR.")","confirm_del_glasnost"); print '
'; } /* * Confirmation de l'ajout dans spip */ if ($action == 'add_spip') { $html->form_confirm("fiche.php?rowid=$rowid","Ajouter dans spip","Etes-vous sur de vouloir ajouter cet adhérent dans spip ? (serveur : ".ADHERENT_SPIP_SERVEUR.")","confirm_add_spip"); print '
'; } /* * Confirmation de la suppression dans spip */ if ($action == 'del_spip') { $html->form_confirm("fiche.php?rowid=$rowid","Supprimer dans spip","Etes-vous sur de vouloir effacer cet adhérent dans spip ? (serveur : ".ADHERENT_SPIP_SERVEUR.")","confirm_del_spip"); $html->form_confirm("fiche.php?rowid=$rowid","Ajouter dans glasnost","Etes-vous sur de vouloir ajouter cet adhérent dans glasnost ? (serveur : ".ADHERENT_GLASNOST_SERVEUR.")","confirm_del_spip"); print '
'; } print ''; print ''; print ''; print ''; print ''; print ''; print ''; print '\n"; print ''; print ''; print ''; print ''; print ''; print ''; print ''; // print ''; print ''; print ''; print ''; print ''; foreach($adho->attribute_label as $key=>$value){ print "\n"; } print ''; print "
'.$langs->trans("Ref").''.$adh->id.' 
'.$langs->trans("Lastname").'*'.$adh->nom.' '.$langs->trans("Comments").'
'.$langs->trans("Firstname").'*'.$adh->prenom.' '; print nl2br($adh->commentaire).' 
'.$langs->trans("Type").'*'.$adh->type."
'.$langs->trans("Person").''.$adh->getmorphylib().'
'.$langs->trans("Company").''.$adh->societe.' 
'.$langs->trans("Address").''.nl2br($adh->adresse).' 
'.$langs->trans("Zip").' / '.$langs->trans("Town").''.$adh->cp.' '.$adh->ville.' 
'.$langs->trans("Country").''.$adh->pays.'
'.$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'*':'').''.$adh->email.' 
'.$langs->trans("Login").'*'.$adh->login.' 
Pass'.$adh->pass.' 
'.$langs->trans("Birthday").''.$adh->naiss.' 
URL Photo'.$adh->photo.' 
'.$langs->trans("Public").''; if ($adh->public==1) print $langs->trans("Yes"); else print $langs->trans("No"); print '
'.$langs->trans("Status").''.$adh->getLibStatut(4).'
$value".$adh->array_options["options_$key"]." 
\n"; print "\n"; /* * Barre d'actions * */ print '
'; print "".$langs->trans("Edit").""; // Valider if ($adh->statut < 1) { print "".$langs->trans("Validate")."\n"; } // Envoi fiche par mail print "id&action=sendinfo\">".$langs->trans("SendCardByMail")."\n"; // Résilier if ($adh->statut == 1) { print "".$langs->trans("Resiliate")."\n"; } // Supprimer if ($user->admin) { print "id&action=delete\">".$langs->trans("Delete")."\n"; } // Action Glasnost if ($adht->vote == 'yes' && $conf->global->ADHERENT_USE_GLASNOST) { define("XMLRPC_DEBUG", 1); $isinglasnost=$adh->is_in_glasnost(); if ($isinglasnost == 1) { print "id&action=del_glasnost\">Suppression dans Glasnost\n"; } if ($isinglasnost == 0) { print "id&action=add_glasnost\">Ajout dans Glasnost\n"; } if ($isinglasnost == -1) { print '
Failed to connect to SPIP: '.$adh->errorstr.''; } } // Action SPIP if ($conf->global->ADHERENT_USE_SPIP) { $isinspip=$adh->is_in_spip(); if ($isinspip == 1) { print "id&action=del_spip\">Suppression dans Spip\n"; } if ($isinspip == 0) { print "id&action=add_spip\">Ajout dans Spip\n"; } if ($isinspip == -1) { print '
Failed to connect to SPIP: '.$adh->errorstr.''; } } print '
'; print "
\n"; /* * Bandeau des cotisations * */ print ''; print ''; print ''; print '
'; /* * Liste des cotisations * */ $sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, c.cotisation, ".$db->pdate("c.dateadh")." as dateadh"; $sql .= " FROM ".MAIN_DB_PREFIX."adherent as d, ".MAIN_DB_PREFIX."cotisation as c"; $sql .= " WHERE d.rowid = c.fk_adherent AND d.rowid=$rowid"; $result = $db->query($sql); if ($result) { $num = $db->num_rows(); $i = 0; print "\n"; print ''; print ''; print "\n"; print "\n"; $var=True; while ($i < $num) { $objp = $db->fetch_object($result); $var=!$var; print ""; print "\n"; print ''; print ""; $i++; } print "
'.$langs->trans("DateSubscription").'".$langs->trans("Amount")."
".dolibarr_print_date($objp->dateadh)."'.price($objp->cotisation).'
"; } else { dolibarr_print_error($db); } print '
'; /* * Ajout d'une nouvelle cotisation */ if ($user->rights->adherent->cotisation->creer) { print "\n"; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print '"; print ''; if ($conf->global->ADHERENT_BANK_USE) { print '\n"; print '\n"; print '\n"; print ''; print ''; } print ''; print ''; print '
'.$langs->trans("SubscriptionEndDate").''; if ($adh->datefin) { if ($adh->datefin < time()) { print dolibarr_print_date($adh->datefin)." ".img_warning($langs->trans("Late")); } else { print dolibarr_print_date($adh->datefin); } } else { print $langs->trans("SubscriptionNotReceived")." ".img_warning($langs->trans("Late")); } print '
'.$langs->trans("NewCotisation").'
'.$langs->trans("DateSubscription").''; if ($adh->datefin > 0) { $html->select_date($adh->datefin + (3600*24),'','','','',"cotisation"); } else { $html->select_date('','','','','',"cotisation"); } print "
'.$langs->trans("Amount").' '.$langs->trans("Currency".$conf->monnaie).'
'.$langs->trans("PaymentMode").''; $html->select_types_paiements('','operation'); print "
'.$langs->trans("FinancialAccount").''; $html->select_comptes('','accountid'); print "
'.$langs->trans("Numero").''; print ''; print "
'.$langs->trans("Label").'datefin?$adh->datefin:time())).'" >
'; } print '
'; } $db->close(); llxFooter('$Date$ - $Revision$'); ?>