Skip to content
Snippets Groups Projects
Commit 8ce3b950 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: include dclar 2 fois.

parent 33a91e6a
No related branches found
No related tags found
No related merge requests found
<?php
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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 utilise
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 Crer 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);
......
<?php
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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'adhrent");
$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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment