diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php index cfb2b89f033..57a0855e03e 100644 --- a/htdocs/adherents/cotisations.php +++ b/htdocs/adherents/cotisations.php @@ -1,7 +1,7 @@ * Copyright (C) 2003 Jean-Louis Bergamo - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 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 @@ -22,17 +22,21 @@ * */ -/*! \file htdocs/adherents/cotisations.php +/** \file htdocs/adherents/cotisations.php \ingroup adherent \brief Page de consultation et insertion d'une cotisation \version $Revision$ */ require("./pre.inc.php"); -require(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php"); + +require_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php"); + llxHeader(); + +// \todo Cette partie de code semble non utilisée if ($action == 'add') { $datepaye = $db->idate(mktime(12, 0 , 0, $pmonth, $pday, $pyear)); @@ -51,9 +55,15 @@ if ($action == 'add') { $action = ''; } + + // Insertion de la cotisation dans le compte banquaire if ($_POST["action"] == '2bank' && $_POST["rowid"] !=''){ if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE !=0){ + + // \todo Créer une facture et enregistrer son paiement + + $dateop=strftime("%Y%m%d",time()); $sql="SELECT cotisation FROM ".MAIN_DB_PREFIX."cotisation WHERE rowid=".$_POST["rowid"]." "; $result = $db->query($sql); diff --git a/htdocs/adherents/pre.inc.php b/htdocs/adherents/pre.inc.php index 8458489a672..25bf6dcc213 100644 --- a/htdocs/adherents/pre.inc.php +++ b/htdocs/adherents/pre.inc.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 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 @@ -21,8 +21,8 @@ * */ -/*! \file htdocs/adherents/pre.inc.php - \ingroup adherent +/** \file htdocs/adherents/pre.inc.php + \ingroup adherent \brief Fichier de gestion du menu gauche du module adherent \version $Revision$ */ @@ -60,10 +60,6 @@ function llxHeader($head = "") { $menu->add_submenu("type.php","Type d'adhérent"); $menu->add_submenu("options.php","Champs optionnels"); - if ($user->admin) { - $menu->add_submenu(DOL_URL_ROOT."/admin/adherent.php",$langs->trans("Module")); - } - left_menu($menu->liste); }