1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 foldmethod=marker:
2 -------------------------------------------------------------------------------
3 Ministerio de EconomÃa
5 -------------------------------------------------------------------------------
6 This file is part of agenda.
8 agenda is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2 of the License, or (at your option)
13 agenda is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License; if not,
18 write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 Boston, MA 02111-1307 USA
20 -------------------------------------------------------------------------------
21 Creado: lun ago 11 14:10:35 ART 2003
22 Autor: Martin Marrese <mmarre@mecon.gov.ar>
23 -------------------------------------------------------------------------------
25 -----------------------------------------------------------------------------*/
28 require_once 'HTML/Table.php';
29 require_once '../../../local_lib/HTML_DietMarco.php';
30 require_once 'HTML/QuickForm.php';
31 require_once 'HTML/Image.php';
32 require_once 'HTML/Link.php';
34 //CREO LOS OBJETOS NECESARIOS {{{
35 $MARCO = new HTML_DietMarco('servicios');
36 $FORM = new HTML_QuickForm('agenda', 'post', 'agenda2.php');
37 $TABLA_EXT = new HTML_Table('width="760" border="0" cellspacing="0" cellpadding="0"');
38 $TABLA = new HTML_Table('width="500" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366"');
39 $IMG1 = new HTML_Image('../../images/servicios_agenda_lupa.gif');
40 $IMG2 = new HTML_Image('../../images/servicios_agenda_mail.gif');
41 $TELECO = new HTML_Image('../../images/servicios_agenda_teleco.gif');
42 $LINK_1 = new HTML_Link('mailto:teleco@mecon.gov.ar', $IMG2);
43 $LINK_2 = new HTML_Link('mailto:teleco@mecon.gov.ar', 'Consultas');
45 //OBTENER DATOS DE LAS BASES {{{
48 //AGREGO LOS ELEMENTOS AL FORM {{{
49 $interno =& $FORM->addElement('text' , 'Interno' , 'Interno' , array ("size" => '4'));
50 $usuario =& $FORM->addElement('text' , 'Usuario' , 'Usuario' , array ("size" => '40'));
51 $codep =& $FORM->addElement('text' , 'Codep' , 'Codep' , array ("size" => '40', "maxlength" => "10"));
52 $dependencia =& $FORM->addElement('text' , 'Dependencia', 'Dependencia', array ("size" => '40', "value" => "--Ingrese una palabra clave--"));
53 $edificio =& $FORM->addElement('select', 'Edificio' , 'Edificio' , $EDIFICIOS, array('size' => '1'));
54 $piso =& $FORM->addElement('text' , 'Piso' , 'Piso' , array ("size" => '10', "maxlength" => "5"));
55 $oficina =& $FORM->addElement('text' , 'Oficina' , 'Oficina' , array ("size" => '10', "maxlength" => "5"));
57 $grupo[] =& HTML_QuickForm::createElement('radio', 'op1', 'interno' , 'interno');
58 $grupo[] =& HTML_QuickForm::createElement('radio', 'op1', 'usuario' , 'usuario');
59 $grupo[] =& HTML_QuickForm::createElement('radio', 'op1', 'dependencia', 'dependencia');
60 $grupo[] =& HTML_QuickForm::createElement('radio', 'op1', 'edificio' , 'edificio');
61 $ordenar =& $FORM->addGroup($grupo, 'ordenar', 'Ordenado por', ' ', true);
64 $TABLA->addRow(array($interno->getName().':' , $interno));
65 $TABLA->addRow(array($usuario->getName().':' , $usuario));
66 $TABLA->addRow(array($codep->getName().':' , $codep));
67 $TABLA->addRow(array($dependencia->getName().':', $dependencia));
68 $TABLA->addRow(array($edificio->getName().':' , $edificio));
69 $TABLA->addRow(array($piso->getName().':' , $piso));
70 $TABLA->addRow(array($oficina->getName().':' , $oficina));
71 $TABLA->addRow(array($ordenar->getName().':' , $ordenar));
73 $TABLA_EXT->addRow(array($LINK_1,$LINK_2, $TELECO->toHtml()));
74 $TABLA_EXT->addRow(array($TABLA->toHtml()), 'colspan="3"');
77 $MARCO->addStyleSheet('../../css/servicios_agenda.css');
78 $MARCO->addTitle('Agenda Telefonica');
79 $MARCO->addBodyContent($TABLA_EXT);