Update work
This commit is contained in:
parent
c4a580723d
commit
0e01dbd44e
@ -2,7 +2,7 @@
|
|||||||
/* Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2012-2013 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012-2013 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2013 Philippe Grand <philippe.grand@atoo-net.com>
|
* Copyright (C) 2013 Philippe Grand <philippe.grand@atoo-net.com>
|
||||||
* Copyright (C) 2014 Alexandre Spangaro <alexandre.spangaro@gmail.com>
|
* Copyright (C) 2015 Alexandre Spangaro <alexandre.spangaro@gmail.com>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -19,13 +19,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/admin/dons.php
|
* \file htdocs/donations/admin/dons.php
|
||||||
* \ingroup dons
|
* \ingroup donations
|
||||||
* \brief Page d'administration/configuration du module Dons
|
* \brief Page to setup the donation module
|
||||||
*/
|
*/
|
||||||
require '../main.inc.php';
|
require '../../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
||||||
|
|
||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("donations");
|
$langs->load("donations");
|
||||||
@ -52,7 +53,7 @@ if ($action == 'specimen')
|
|||||||
$don->initAsSpecimen();
|
$don->initAsSpecimen();
|
||||||
|
|
||||||
// Search template files
|
// Search template files
|
||||||
$dir = DOL_DOCUMENT_ROOT . "/core/modules/dons/";
|
$dir = DOL_DOCUMENT_ROOT . "/donations/core/modules/dons/";
|
||||||
$file = $modele.".modules.php";
|
$file = $modele.".modules.php";
|
||||||
if (file_exists($dir.$file))
|
if (file_exists($dir.$file))
|
||||||
{
|
{
|
||||||
@ -173,7 +174,7 @@ else if ($action == 'setart885') {
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$dir = "../core/modules/dons/";
|
$dir = DOL_DOCUMENT_ROOT.'/donations/core/modules/dons/';
|
||||||
$form=new Form($db);
|
$form=new Form($db);
|
||||||
|
|
||||||
llxHeader('',$langs->trans("DonationsSetup"),'DonConfiguration');
|
llxHeader('',$langs->trans("DonationsSetup"),'DonConfiguration');
|
||||||
@ -191,7 +192,7 @@ print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'" />';
|
|||||||
print '<input type="hidden" name="action" value="set_DONATION_MESSAGE" />';
|
print '<input type="hidden" name="action" value="set_DONATION_MESSAGE" />';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Parameter").'</td>';
|
print '<td>'.$langs->trans("Parameters").'</td>';
|
||||||
print '<td width="80"> </td>';
|
print '<td width="80"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$var=true;
|
$var=true;
|
||||||
@ -210,7 +211,7 @@ print '</form>';
|
|||||||
/*
|
/*
|
||||||
* French params
|
* French params
|
||||||
*/
|
*/
|
||||||
if ($conf->global->MAIN_LANG_DEFAULT == "fr_FR")
|
if (preg_match('/fr/i',$outputlangs->defaultlang))
|
||||||
{
|
{
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print_titre($langs->trans("FrenchOptions"));
|
print_titre($langs->trans("FrenchOptions"));
|
||||||
|
|||||||
@ -25,9 +25,9 @@
|
|||||||
* \brief Page of donation card
|
* \brief Page of donation card
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/modules/dons/modules_don.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/core/modules/dons/modules_don.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/donation.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/core/lib/donation.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
||||||
|
|||||||
@ -20,11 +20,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/core/modules/dons/html_cerfafr.modules.php
|
* \file htdocs/donations/core/modules/dons/html_cerfafr.modules.php
|
||||||
* \ingroup don
|
* \ingroup don
|
||||||
* \brief Form of donation
|
* \brief Form of donation
|
||||||
*/
|
*/
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/modules/dons/modules_don.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/core/modules/dons/modules_don.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ class html_cerfafr extends ModeleDon
|
|||||||
else $paymentmode = '';
|
else $paymentmode = '';
|
||||||
|
|
||||||
// Define contents
|
// Define contents
|
||||||
$donmodel=DOL_DOCUMENT_ROOT ."/core/modules/dons/html_cerfafr.html";
|
$donmodel=DOL_DOCUMENT_ROOT ."/donations/core/modules/dons/html_cerfafr.html";
|
||||||
$form = implode('', file($donmodel));
|
$form = implode('', file($donmodel));
|
||||||
$form = str_replace('__REF__',$don->id,$form);
|
$form = str_replace('__REF__',$don->id,$form);
|
||||||
$form = str_replace('__DATE__',dol_print_date($don->date,'day',false,$outputlangs),$form);
|
$form = str_replace('__DATE__',dol_print_date($don->date,'day',false,$outputlangs),$form);
|
||||||
|
|||||||
@ -20,8 +20,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/core/modules/dons/modules_don.php
|
* \file htdocs/donations/core/modules/dons/modules_don.php
|
||||||
* \ingroup don
|
* \ingroup donations
|
||||||
* \brief File of class to manage donation document generation
|
* \brief File of class to manage donation document generation
|
||||||
*/
|
*/
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
|
||||||
@ -201,7 +201,7 @@ function don_create($db, $id, $message, $modele, $outputlangs, $hidedetails=0, $
|
|||||||
$file = $prefix."_".preg_replace('/^html_/','',$modele).".modules.php";
|
$file = $prefix."_".preg_replace('/^html_/','',$modele).".modules.php";
|
||||||
|
|
||||||
// On verifie l'emplacement du modele
|
// On verifie l'emplacement du modele
|
||||||
$file=dol_buildpath($reldir."core/modules/dons/".$file,0);
|
$file=dol_buildpath($reldir."donations/core/modules/dons/".$file,0);
|
||||||
if (file_exists($file))
|
if (file_exists($file))
|
||||||
{
|
{
|
||||||
$filefound=1;
|
$filefound=1;
|
||||||
|
|||||||
@ -19,10 +19,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \defgroup don Module donation
|
* \defgroup don Module donations
|
||||||
* \brief Module to manage the follow-up of the donations
|
* \brief Module to manage the follow-up of the donations
|
||||||
* \file htdocs/core/modules/modDon.class.php
|
* \file htdocs/donations/core/modules/modDon.class.php
|
||||||
* \ingroup don
|
* \ingroup donations
|
||||||
* \brief Description and activation file for module Donation
|
* \brief Description and activation file for module Donation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,11 @@
|
|||||||
* \brief Page of linked files into donations
|
* \brief Page of linked files into donations
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/donation.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/core/lib/donation.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
||||||
|
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
* \brief Home page of donation module
|
* \brief Home page of donation module
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
||||||
|
|
||||||
$langs->load("donations");
|
$langs->load("donations");
|
||||||
|
|||||||
@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/donations/info.php
|
* \file htdocs/donations/info.php
|
||||||
* \ingroup Donation
|
* \ingroup donations
|
||||||
* \brief Page to show a donation information
|
* \brief Page to show a donation information
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/donation.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/core/lib/donation.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
||||||
|
|
||||||
|
|||||||
@ -20,11 +20,11 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/donations/list.php
|
* \file htdocs/donations/list.php
|
||||||
* \ingroup don
|
* \ingroup donations
|
||||||
* \brief Page de liste des dons
|
* \brief List of donations
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
||||||
if (! empty($conf->projet->enabled)) require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
if (! empty($conf->projet->enabled)) require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
||||||
|
|
||||||
|
|||||||
@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/donations/payment.php
|
* \file htdocs/donations/payment.php
|
||||||
* \ingroup Donation
|
* \ingroup donations
|
||||||
* \brief Page to add payment of a donation
|
* \brief Page to add payment of a donation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/class/don.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/class/paymentdonation.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/donations/class/paymentdonation.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
* \brief Page des statistiques de dons
|
* \brief Page des statistiques de dons
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../main.inc.php';
|
||||||
|
|
||||||
$langs->load("donations");
|
$langs->load("donations");
|
||||||
|
|
||||||
|
|||||||
@ -21,6 +21,8 @@ DonationStatusPaid=Donation received
|
|||||||
DonationStatusPromiseNotValidatedShort=Draft
|
DonationStatusPromiseNotValidatedShort=Draft
|
||||||
DonationStatusPromiseValidatedShort=Validated
|
DonationStatusPromiseValidatedShort=Validated
|
||||||
DonationStatusPaidShort=Received
|
DonationStatusPaidShort=Received
|
||||||
|
DonationTitle=Donation receipt
|
||||||
|
DonationDatePayment=Payment date
|
||||||
ValidPromess=Validate promise
|
ValidPromess=Validate promise
|
||||||
DonationReceipt=Donation receipt
|
DonationReceipt=Donation receipt
|
||||||
BuildDonationReceipt=Build receipt
|
BuildDonationReceipt=Build receipt
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user