From a944ce1df278397f147392b193779867b07bd270 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 7 Jul 2003 16:29:46 +0000 Subject: [PATCH] nouveau fichier --- htdocs/comm/propal_model_pdf.class.php3 | 68 +++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 htdocs/comm/propal_model_pdf.class.php3 diff --git a/htdocs/comm/propal_model_pdf.class.php3 b/htdocs/comm/propal_model_pdf.class.php3 new file mode 100644 index 00000000000..678f738c048 --- /dev/null +++ b/htdocs/comm/propal_model_pdf.class.php3 @@ -0,0 +1,68 @@ + + * + * $Id$ + * $Source$ + * + * 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. + * + */ + +class Propal_Model_Pdf { + + var $nom; + + Function Propal_Model_Pdf($DB) + { + $this->db = $DB ; + } + /* + * + * + * + */ + + Function liste_array() + { + $projets = array(); + + $sql = "SELECT nom FROM llx_propal_model_pdf"; + + if ($this->db->query($sql) ) + { + $nump = $this->db->num_rows(); + + if ($nump) + { + $i = 0; + while ($i < $nump) + { + $obj = $this->db->fetch_object($i); + + $projets[$obj->nom] = $obj->nom; + $i++; + } + } + return $projets; + } + else + { + print $this->db->error(); + } + + } +} +?> +