Fix: include déclaré 2 fois.
This commit is contained in:
parent
33a91e6a04
commit
8ce3b950be
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.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
|
* 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
|
* 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
|
\ingroup adherent
|
||||||
\brief Page de consultation et insertion d'une cotisation
|
\brief Page de consultation et insertion d'une cotisation
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php");
|
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php");
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
|
|
||||||
|
// \todo Cette partie de code semble non utilisée
|
||||||
if ($action == 'add') {
|
if ($action == 'add') {
|
||||||
$datepaye = $db->idate(mktime(12, 0 , 0, $pmonth, $pday, $pyear));
|
$datepaye = $db->idate(mktime(12, 0 , 0, $pmonth, $pday, $pyear));
|
||||||
|
|
||||||
@ -51,9 +55,15 @@ if ($action == 'add') {
|
|||||||
$action = '';
|
$action = '';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Insertion de la cotisation dans le compte banquaire
|
// Insertion de la cotisation dans le compte banquaire
|
||||||
if ($_POST["action"] == '2bank' && $_POST["rowid"] !=''){
|
if ($_POST["action"] == '2bank' && $_POST["rowid"] !=''){
|
||||||
if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE !=0){
|
if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE !=0){
|
||||||
|
|
||||||
|
// \todo Créer une facture et enregistrer son paiement
|
||||||
|
|
||||||
|
|
||||||
$dateop=strftime("%Y%m%d",time());
|
$dateop=strftime("%Y%m%d",time());
|
||||||
$sql="SELECT cotisation FROM ".MAIN_DB_PREFIX."cotisation WHERE rowid=".$_POST["rowid"]." ";
|
$sql="SELECT cotisation FROM ".MAIN_DB_PREFIX."cotisation WHERE rowid=".$_POST["rowid"]." ";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* 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
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -21,7 +21,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file htdocs/adherents/pre.inc.php
|
/** \file htdocs/adherents/pre.inc.php
|
||||||
\ingroup adherent
|
\ingroup adherent
|
||||||
\brief Fichier de gestion du menu gauche du module adherent
|
\brief Fichier de gestion du menu gauche du module adherent
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
@ -60,10 +60,6 @@ function llxHeader($head = "") {
|
|||||||
$menu->add_submenu("type.php","Type d'adhérent");
|
$menu->add_submenu("type.php","Type d'adhérent");
|
||||||
$menu->add_submenu("options.php","Champs optionnels");
|
$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);
|
left_menu($menu->liste);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user