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;
56 //Obtengo la informacion del proceso {{{
57 $PROCESO = $PROCESO->obtenerProcesoUsuario($DB, $_SESSION['usuario'], $id);
60 //Creo las imagenes {{{
61 $imagen =& new MECON_HTML_Image('/sistemas/yatta/images/estado_'.
62 $PROCESO->status.'.gif');
63 $cerrar = new MECON_HTML_Image('/MECON/images/general_cerrar.gif');
64 $detener =& new MECON_HTML_Link('proceso_detener',
65 new MECON_HTML_Image ('/MECON/images/general_detener.gif'),
69 //DIBUJO LA PAGINA {{{
70 $PAGE->addBodyContent('<b>'. $imagen->toHtml().' '. $PROCESO->icono
74 '<b>Id: '. $id .'</b><br>'.
75 '<b>Fecha: '. $PROCESO->fecha .'</b><br>'.
76 '<b>Sistema: '. $PROCESO->nombre_sistema .'</b><br>'.
77 '<b>Descripcion: '. $PROCESO->descripcion .'</b><br>'.
78 '<b>Owner: '. $PROCESO->owner .'</b><br>'.
79 '<b>Destinos: '. implode(', ', $PROCESO->destinos) .'</b><br>'.
80 '<b>Nota: '. $PROCESO->nota .'</b><br>'
82 $PAGE->addBodyContent($TABLA->toHtml());
83 $PAGE->addBodyContent('<br>');
84 if ($PROCESO->status == 0 || $PROCESO->status == 1) {
85 $PAGE->addBodyContent($detener->toHtml());
87 $PAGE->addBodyContent('<a href="" onClick=\'self.close();return'.
88 ' false;\'>'.$cerrar->toHtml().'</a>');
89 $PAGE->setTitle('Datos del Proceso');