Qual: Suppression fichier obsolete
This commit is contained in:
parent
0e0234e14b
commit
7ae24af6b9
@ -28,7 +28,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/projetdon.class.php");
|
|
||||||
|
|
||||||
$langs->load("donations");
|
$langs->load("donations");
|
||||||
$langs->load("propal");
|
$langs->load("propal");
|
||||||
|
|||||||
@ -15,31 +15,27 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
* $Source$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/dons/html_cerfafr.modules.php
|
\file htdocs/includes/modules/dons/html_cerfafr.modules.php
|
||||||
\ingroup don
|
\ingroup don
|
||||||
\brief Formulaire de don
|
\brief Formulaire de don
|
||||||
\version $Revision$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
require_once(DOL_DOCUMENT_ROOT."/includes/modules/dons/modules_don.php");
|
require_once(DOL_DOCUMENT_ROOT."/includes/modules/dons/modules_don.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/projetdon.class.php");
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/don.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/don.class.php");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\class html_cerfafr
|
\class html_cerfafr
|
||||||
\brief Classe permettant de générer les propales au modèle Azur
|
\brief Classe permettant de g<EFBFBD>n<EFBFBD>rer les propales au mod<EFBFBD>le Azur
|
||||||
*/
|
*/
|
||||||
class html_cerfafr extends ModeleDon
|
class html_cerfafr extends ModeleDon
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
\brief Constructeur
|
\brief Constructeur
|
||||||
\param db Handler accès base de donnée
|
\param db Handler acc<EFBFBD>s base de donn<EFBFBD>e
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function html_cerfafr($db)
|
function html_cerfafr($db)
|
||||||
@ -48,7 +44,7 @@ class html_cerfafr extends ModeleDon
|
|||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "cerfafr";
|
$this->name = "cerfafr";
|
||||||
$this->description = "Modèle de reçu de dons";
|
$this->description = "Modele de recu de dons";
|
||||||
|
|
||||||
// Dimension page pour format A4
|
// Dimension page pour format A4
|
||||||
$this->type = 'html';
|
$this->type = 'html';
|
||||||
@ -56,8 +52,8 @@ class html_cerfafr extends ModeleDon
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Renvoi dernière erreur
|
\brief Renvoi derni<EFBFBD>re erreur
|
||||||
\return string Dernière erreur
|
\return string Derni<EFBFBD>re erreur
|
||||||
*/
|
*/
|
||||||
function pdferror()
|
function pdferror()
|
||||||
{
|
{
|
||||||
@ -66,8 +62,8 @@ class html_cerfafr extends ModeleDon
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Fonction générant le recu sur le disque
|
\brief Fonction g<EFBFBD>n<EFBFBD>rant le recu sur le disque
|
||||||
\param id Id du recu à générer
|
\param id Id du recu <EFBFBD> g<EFBFBD>n<EFBFBD>rer
|
||||||
\return int >0 si ok, <0 si ko
|
\return int >0 si ok, <0 si ko
|
||||||
*/
|
*/
|
||||||
function write_file($don)
|
function write_file($don)
|
||||||
@ -77,7 +73,7 @@ class html_cerfafr extends ModeleDon
|
|||||||
|
|
||||||
if ($conf->don->dir_output)
|
if ($conf->don->dir_output)
|
||||||
{
|
{
|
||||||
// Définition de l'objet $don (pour compatibilite ascendante)
|
// D<EFBFBD>finition de l'objet $don (pour compatibilite ascendante)
|
||||||
if (! is_object($don))
|
if (! is_object($don))
|
||||||
{
|
{
|
||||||
$id = $don;
|
$id = $don;
|
||||||
@ -85,7 +81,7 @@ class html_cerfafr extends ModeleDon
|
|||||||
$ret=$don->fetch($id);
|
$ret=$don->fetch($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Définition de $dir et $file
|
// D<EFBFBD>finition de $dir et $file
|
||||||
if ($don->specimen)
|
if ($don->specimen)
|
||||||
{
|
{
|
||||||
$dir = $conf->don->dir_output;
|
$dir = $conf->don->dir_output;
|
||||||
|
|||||||
@ -1,72 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
*
|
|
||||||
* 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
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
* $Source$
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
class ProjetDon {
|
|
||||||
var $id;
|
|
||||||
var $db;
|
|
||||||
var $ref;
|
|
||||||
var $title;
|
|
||||||
var $socid;
|
|
||||||
|
|
||||||
function ProjetDon($DB) {
|
|
||||||
$this->db = $DB;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
function liste_array($id_societe='')
|
|
||||||
{
|
|
||||||
$projets = array();
|
|
||||||
|
|
||||||
$sql = "SELECT rowid, libelle FROM ".MAIN_DB_PREFIX."don_projet";
|
|
||||||
|
|
||||||
if ($this->db->query($sql) )
|
|
||||||
{
|
|
||||||
$nump = $this->db->num_rows();
|
|
||||||
|
|
||||||
if ($nump)
|
|
||||||
{
|
|
||||||
$i = 0;
|
|
||||||
while ($i < $nump)
|
|
||||||
{
|
|
||||||
$obj = $this->db->fetch_object();
|
|
||||||
|
|
||||||
$projets[$obj->rowid] = $obj->libelle;
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $projets;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print $this->db->error();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
Loading…
Reference in New Issue
Block a user