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 'HTML/Page.php';
30 require_once 'HTML/Table.php';
31 require_once 'MECON/HTML/Link.php';
32 require_once 'MECON/HTML/Image.php';
35 require_once 'YATTA/Controlador.php';
39 //Creo los objetos necesarios {{{
40 $PAGE =& new HTML_Page(array ('doctype' => 'HTML 4.01 Transitional',
41 'charset' => 'iso-8859-1',
46 $PAGE->addStyleSheet('/sistemas/yatta/css/yatta.css');
47 $PAGE->addStyleSheet('/MECON/css/marco.css');
48 $TABLA=& new HTML_Table('width="370"');
49 $PROCESO =& new YATTA_Controlador;
52 //Obtengo la info que se pasa por get {{{
53 $id = (@$_REQUEST['id']) ? $_REQUEST['id'] : null;
55 //Obtengo la informacion del proceso {{{
56 $PROCESO = $PROCESO->obtenerProcesosUsuario($DB, $_SESSION['usuario'], $id);
59 //Creo las imagenes {{{
60 $imagen =& new MECON_HTML_Image('/sistemas/yatta/images/estado_'.
61 $PROCESO->status.'.gif');
62 $cerrar = new MECON_HTML_Image('/MECON/images/general_cerrar.gif');
63 $detener =& new MECON_HTML_Link('proceso_detener',
64 new MECON_HTML_Image ('/MECON/images/general_detener.gif'),
68 //DIBUJO LA PAGINA {{{
69 $PAGE->addBodyContent('<b>'. $imagen->toHtml().' '. $PROCESO->icono
73 '<b>Id: '. $id .'</b><br>'.
74 '<b>Fecha: '. $PROCESO->fecha .'</b><br>'.
75 '<b>Sistema: '. $PROCESO->nombre_sistema .'</b><br>'.
76 '<b>Descripcion: '. $PROCESO->descripcion .'</b><br>'.
77 '<b>Owner: '. $PROCESO->owner .'</b><br>'.
78 '<b>Destinos: '. @implode(', ', $PROCESO->destinos) .'</b><br>'.
79 '<b>Nota: '. $PROCESO->nota .'</b><br>'
81 $PAGE->addBodyContent($TABLA->toHtml());
82 $PAGE->addBodyContent('<br>');
83 if ($PROCESO->status == 0 || $PROCESO->status == 1) {
84 $PAGE->addBodyContent($detener->toHtml());
86 $PAGE->addBodyContent('<a href="" onClick=\'self.close();return'.
87 ' false;\'>'.$cerrar->toHtml().'</a>');
88 $PAGE->setTitle('Datos del Proceso');