00001 <? 00002 /* 00003 * This file is part of PhpCompta. 00004 * 00005 * PhpCompta is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * PhpCompta is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with PhpCompta; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 /* $Revision: 1.1 $ */ 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00029 class Document_type 00030 { 00035 function document_type($p_cn) 00036 { 00037 $this->db=$p_cn; 00038 $this->dt_id=-1; 00039 } 00043 function get() 00044 { 00045 $sql="select * from document_type where dt_id=".$this->dt_id; 00046 $R=ExecSql($this->db,$sql); 00047 $r=pg_fetch_array($R,0); 00048 $this->dt_id=$r['dt_id']; 00049 $this->dt_value=$r['dt_value']; 00050 } 00051 00052 }