2
0
forked from Wavyzz/dolibarr

New: early development of multi-company module

This commit is contained in:
Regis Houssin
2009-05-02 14:26:54 +00:00
parent edafd9f333
commit d24d0f0e00
15 changed files with 172 additions and 117 deletions

View File

@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
*
* 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
@@ -59,11 +60,14 @@ class ModelePDFFicheinter extends FPDF
*/
function liste_modeles($db)
{
global $conf;
$type='ficheinter';
$liste=array();
$sql ="SELECT nom as id, nom as lib";
$sql.=" FROM ".MAIN_DB_PREFIX."document_model";
$sql.=" WHERE type = '".$type."'";
$sql = "SELECT nom as id, nom as lib";
$sql.= " FROM ".MAIN_DB_PREFIX."document_model";
$sql.= " WHERE type = '".$type."'";
$sql.= " AND entity = ".$conf->entity;
$resql = $db->query($sql);
if ($resql)