1 |
joko |
1.1 |
<?php |
2 |
|
|
|
3 |
|
|
/** |
4 |
|
|
* $Id: InfoBox.php,v 1.1 2003/05/13 16:22:22 joko Exp $ |
5 |
|
|
* |
6 |
|
|
* $Log: InfoBox.php,v $ |
7 |
|
|
* |
8 |
|
|
*/ |
9 |
|
|
|
10 |
|
|
|
11 |
|
|
php::loadModule('utils/InfoBox'); |
12 |
|
|
|
13 |
|
|
/** |
14 |
|
|
* ErrorBox |
15 |
|
|
* |
16 |
|
|
* This implements a "errorbox widget" using phpHtmlLib. |
17 |
|
|
* |
18 |
|
|
* Its purpose is to show a boxed html div-/span- area |
19 |
|
|
* containing descriptive html-/plain text. |
20 |
|
|
* The background color should be red. |
21 |
|
|
* |
22 |
|
|
* @author Andreas Motl <andreas.motl@ilo.de> |
23 |
|
|
* @package org.netfrag.glib |
24 |
|
|
* @name InfoBox |
25 |
|
|
* |
26 |
|
|
* @todo Add infrastructure to handle logging and/or tracing, e.g. error-code stuff... |
27 |
|
|
* |
28 |
|
|
*/ |
29 |
|
|
class ErrorBox extends InfoBox { |
30 |
|
|
|
31 |
|
|
function settings() { |
32 |
|
|
parent::settings(); |
33 |
|
|
$this->SETTINGS[background] = 'red'; |
34 |
|
|
$this->SETTINGS[color] = 'white'; |
35 |
|
|
//$this->SETTINGS[font_weight] = '8'; |
36 |
|
|
$this->SETTINGS[font_weight] = 'bold'; |
37 |
|
|
} |
38 |
|
|
|
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
?> |