1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80 foldmethod=marker:
2 -------------------------------------------------------------------------------
5 -------------------------------------------------------------------------------
6 This file is part of YATTA!.
8 YATTA! 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 YATTA! 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: mar dic 2 18:11:32 ART 2003
22 Autor: Martin Marrese <mmarre@mecon.gov.ar>
23 -------------------------------------------------------------------------------
25 -----------------------------------------------------------------------------*/
29 require_once 'MECON/HTML/Tabla.php';
30 require_once 'MECON/HTML/Link.php';
31 require_once 'MECON/HTML/Image.php';
34 require_once 'YATTA/Controlador.php';
38 //Creo los objetos necesarios {{{
39 $TABLA=& new MECON_HTML_Tabla('width="400"');
40 $PROCESO =& new YATTA_Controlador;
43 //Obtengo la info que se pasa por get {{{
44 $id = (@$_REQUEST['id']) ? $_REQUEST['id'] : null;
47 //Obtengo la informacion del proceso {{{
48 $PROCESO = $PROCESO->obtenerProcesosUsuario($DB, $_SESSION['usuario'], $id);
51 //Creo las imagenes {{{
52 $imagen =& new MECON_HTML_Image('/sistemas/yatta/images/estado_'.
53 $PROCESO->status.'.gif');
54 $cerrar = new MECON_HTML_Image('/MECON/images/general_cerrar.gif');
55 $detener =& new MECON_HTML_Link('procesos_detener',
56 new MECON_HTML_Image ('/MECON/images/general_detener.gif'),
60 //DIBUJO LA PAGINA {{{
61 $TABLA->addRow(array ($imagen->toHtml().' '. $PROCESO->icono), 'titulo colspan=2');
62 $TABLA->addRow(array('Id', $id));
63 $TABLA->addRow(array('Fecha', $PROCESO->fecha));
64 $TABLA->addRow(array('Sistema', $PROCESO->nombre_sistema));
65 $TABLA->addRow(array('Descripcion', $PROCESO->descripcion));
66 $TABLA->addRow(array('Owner', $PROCESO->owner));
67 $TABLA->addRow(array('Destinos', @implode(', ', $PROCESO->destinos)));
68 $TABLA->addRow(array('Nota', $PROCESO->nota));
70 $TABLA->addLink('volver', new MECON_HTML_Link('procesos'));
72 $MARCO->addBody($TABLA);
73 $MARCO->addBody('<br>');
74 if ($PROCESO->status == 0 || $PROCESO->status == 1) {
75 $MARCO->addBody($detener->toHtml().' ');
77 $MARCO->addStyleSheet('css/yatta.css');