Update works
This commit is contained in:
parent
b4b3c45dbc
commit
9264482e25
@ -24,7 +24,7 @@
|
|||||||
* \ingroup don
|
* \ingroup don
|
||||||
* \brief Form of donation
|
* \brief Form of donation
|
||||||
*/
|
*/
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/core/modules/dons/modules_don.php';
|
require_once DOL_DOCUMENT_ROOT.'/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';
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/donations/core/modules/dons/modules_don.php
|
* \file htdocs/core/modules/dons/modules_don.php
|
||||||
* \ingroup donations
|
* \ingroup donations
|
||||||
* \brief File of class to manage donation document generation
|
* \brief File of class to manage donation document generation
|
||||||
*/
|
*/
|
||||||
@ -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."donations/core/modules/dons/".$file,0);
|
$file=dol_buildpath($reldir."core/modules/dons/".$file,0);
|
||||||
if (file_exists($file))
|
if (file_exists($file))
|
||||||
{
|
{
|
||||||
$filefound=1;
|
$filefound=1;
|
||||||
@ -25,7 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
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/core/lib/donation.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/donation.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';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
||||||
|
|
||||||
@ -54,7 +54,8 @@ if ($action == 'specimen')
|
|||||||
$don->initAsSpecimen();
|
$don->initAsSpecimen();
|
||||||
|
|
||||||
// Search template files
|
// Search template files
|
||||||
$dir = DOL_DOCUMENT_ROOT . "/donations/core/modules/dons/";
|
$dir = DOL_DOCUMENT_ROOT . "/core/modules/dons/";
|
||||||
|
$dir = DOL_DOCUMENT_ROOT . "/core/modules/dons/";
|
||||||
$file = $modele.".modules.php";
|
$file = $modele.".modules.php";
|
||||||
if (file_exists($dir.$file))
|
if (file_exists($dir.$file))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -20,14 +20,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/donations/card.php
|
* \file htdocs/donations/card.php
|
||||||
* \ingroup don
|
* \ingroup donations
|
||||||
* \brief Page of donation card
|
* \brief Page of donation card
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/core/modules/dons/modules_don.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/modules/dons/modules_don.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/core/lib/donation.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/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';
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/donations/document.php
|
* \file htdocs/donations/document.php
|
||||||
* \ingroup Donation
|
* \ingroup donations
|
||||||
* \brief Page of linked files into donations
|
* \brief Page of linked files into donations
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ 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.'/donations/core/lib/donation.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/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");
|
||||||
|
|||||||
@ -18,9 +18,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/donations/index.php
|
* \file htdocs/donations/index.php
|
||||||
* \ingroup don
|
* \ingroup donations
|
||||||
* \brief Home page of donation module
|
* \brief Home page of donation module
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/donations/core/lib/donation.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/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';
|
||||||
|
|
||||||
|
|||||||
@ -121,7 +121,7 @@ $form = new Form($db);
|
|||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/donations/payment/card.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/donations/payment/card.php?id='.$id;
|
||||||
$head[$h][1] = $langs->trans("Card");
|
$head[$h][1] = $langs->trans("Card");
|
||||||
$hselected = $h;
|
$hselected = $h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user