Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
8ce3b950
Commit
8ce3b950
authored
20 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: include dclar 2 fois.
parent
33a91e6a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/adherents/cotisations.php
+13
-3
13 additions, 3 deletions
htdocs/adherents/cotisations.php
htdocs/adherents/pre.inc.php
+3
-7
3 additions, 7 deletions
htdocs/adherents/pre.inc.php
with
16 additions
and
10 deletions
htdocs/adherents/cotisations.php
+
13
−
3
View file @
8ce3b950
<?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
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/adherents/pre.inc.php
+
3
−
7
View file @
8ce3b950
<?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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment