-<?php
-// vim: set binary expandtab tabstop=4 shiftwidth=4:
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2003 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 2.02 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/2_02.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Created: Mon Jul 14 19:30:18 2003
-// | Author: @@author <@@email>
-// +----------------------------------------------------------------------+
-//
-// $Id$
-//
+<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
+-------------------------------------------------------------------------------
+ Ministerio de EconomÃa
+ meconlib
+-------------------------------------------------------------------------------
+This file is part of meconlib.
+
+meconlib is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2 of the License, or (at your option)
+any later version.
+
+meconlib is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License; if not,
+write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+Boston, MA 02111-1307 USA
+-------------------------------------------------------------------------------
+Created: Mon Jul 14 19:30:18 2003
+Author: Leandro Lucarella <llucar@mecon.gov.ar>
+-------------------------------------------------------------------------------
+$Id$
+-----------------------------------------------------------------------------*/
-// +X2C Class 163 :MECON_HTML_Error
/**
* Dibuja un mensaje de error en HTML.
*
*/
var $msg = '';
- // ~X2C
-
- // +X2C Operation 165
/**
* Constructor.
*
* @return void
* @access public
*/
- function MECON_HTML_Error($msg = '') // ~X2C
+ function MECON_HTML_Error($msg = '')
{
+ // TODO - hacer que se le pueda pasar un PEAR_Error y que le saque el mensaje solita.
$this->msg = $msg;
}
- // -X2C
- // +X2C Operation 166
/**
* Dibuja el HTML.
*
* @return string
* @access public
*/
- function toHtml() // ~X2C
+ function toHtml()
{
// FIXME - usar un estilo con class.
- return '<DIV style="font-size: 11px; text-align: center; color: red">' . $this->msg . '</DIV>';
+ return '<div style="font-family: Arial; font-size: 11px; text-align: '
+ . 'center; color: red" align="center">' . $this->msg . '</div>';
}
- // -X2C
-} // -X2C Class :MECON_HTML_Error
+}
?>
\ No newline at end of file