Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 262 → Rev 263

/trunk/bibliotheque/bazarTemplate.class.php
20,7 → 20,7
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
 
// CVS : $Id: bazarTemplate.class.php,v 1.2 2007-03-28 09:20:29 florian Exp $
// CVS : $Id: bazarTemplate.class.php,v 1.3 2007-06-25 12:15:06 alexandre_tb Exp $
 
/**
* Application projet
33,7 → 33,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.2 $
*@version $Revision: 1.3 $
// +------------------------------------------------------------------------------------------------------+
*/
 
55,7 → 55,10
function getTemplate ($id_template, $lang='fr-FR', $categorie_nature = 0) {
$requete = 'select bt_template from bazar_template where bt_id_template='.$id_template.
' and bt_id_i18n like "'.$lang.'%"' ;
$requete .= ' and bt_categorie_nature='.$categorie_nature ;
if($categorie_nature != 0)
$requete .= ' and bt_categorie_nature='.$categorie_nature ;
$resultat = $this->_db->query($requete) ;
if (DB::isError($resultat)) return $this->raiseError ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
if ($resultat->numRows() == 0) return $this->raiseError ('Aucun template avec l\'identifiant: '.$id_template.