1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
2 -------------------------------------------------------------------------------
4 -------------------------------------------------------------------------------
5 This file is part of mlib.
7 mlib is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your option)
12 mlib is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License; if not,
17 write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18 Boston, MA 02111-1307 USA
19 -------------------------------------------------------------------------------
20 Created: Mon Jul 14 19:30:18 2003
21 Author: Leandro Lucarella <llucar@mecon.gov.ar>
22 -------------------------------------------------------------------------------
24 -----------------------------------------------------------------------------*/
27 * Dibuja un mensaje de error en HTML.
31 class MLIB_HTML_Error {
43 * @param string $msg Mensaje de error.
48 function MLIB_HTML_Error($msg = '')
50 // TODO - hacer que se le pueda pasar un PEAR_Error y que le saque el mensaje solita.
62 // FIXME - usar un estilo con class.
63 return '<div style="font-family: Arial; font-size: 11px; text-align: '
64 . 'center; color: red" align="center">' . $this->msg . '</div>';