2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // | Ministerio de EconomÃa |
6 // +--------------------------------------------------------------------+
7 // | This file is part of Intranet. |
9 // | Intranet is free software; you can redistribute it and/or modify |
10 // | it under the terms of the GNU General Public License as published |
11 // | by the Free Software Foundation; either version 2 of the License, |
12 // | or (at your option) any later version. |
14 // | Intranet is distributed in the hope that it will be useful, but |
15 // | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 // | General Public License for more details. |
19 // | You should have received a copy of the GNU General Public License |
20 // | along with Hooks; if not, write to the Free Software Foundation, |
21 // | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 // +--------------------------------------------------------------------+
23 // | Creado: Tue Aug 12 14:52:37 2003
24 // | Autor: Martin Marrese <mmarre@mecon.gov.ar>
25 // +--------------------------------------------------------------------+
33 // +X2C Class 174 :Servicios_Agenda
35 * Clase para el manejo de la agenda en la cual se muestran la informacion de los internos de los diferentes edificios.
39 class Servicios_Agenda {
44 * @param DB $db Conexiona la base de datos
50 function getEdificios($db) // ~X2C
53 $consulta = 'select cod_edificio, desc_edificio from edificios where cod_edificio <> 13 order by desc_edificio';
54 $dbh = $db->prepare($consulta);
55 $res = $db->execute($dbh);
56 while ($re = $res->fetchrow(DB_FETCHMODE_ASSOC)) {
57 $rta[$re['cod_edificio']] = $re['desc_edificio'];
64 } // -X2C Class :Servicios_Agenda