1 |
joko |
1.1 |
<?php |
2 |
|
|
|
3 |
|
|
/** |
4 |
|
|
* $Id: LinkBuilder.php,v 1.2 2003/04/06 04:35:58 joko Exp $ |
5 |
|
|
* |
6 |
|
|
* $Log: LinkBuilder.php,v $ |
7 |
|
|
* |
8 |
|
|
*/ |
9 |
|
|
|
10 |
|
|
/** |
11 |
|
|
* InfoBox |
12 |
|
|
* |
13 |
|
|
* This implements a "infobox widget" using phpHtmlLib. |
14 |
|
|
* |
15 |
|
|
* Its purpose is to show a boxed html div-/span- area |
16 |
|
|
* containing descriptive html-/plain text. |
17 |
|
|
* |
18 |
|
|
* @author Andreas Motl <andreas.motl@ilo.de> |
19 |
|
|
* @package org.netfrag.glib |
20 |
|
|
* @name InfoBox |
21 |
|
|
* |
22 |
|
|
*/ |
23 |
|
|
class InfoBox { |
24 |
|
|
|
25 |
|
|
var $_box; |
26 |
|
|
|
27 |
|
|
function InfoBox($args = array()) { |
28 |
|
|
$this->_args = $args; |
29 |
|
|
$this->build_default(); |
30 |
|
|
} |
31 |
|
|
|
32 |
|
|
function render() { |
33 |
|
|
return $this->_box->render(); |
34 |
|
|
} |
35 |
|
|
|
36 |
|
|
function build_default() { |
37 |
|
|
$this->_box = html_div(); |
38 |
|
|
$this->_box->set_style("border: 1px groove black; padding:2px; width: 450px; background:lightblue; font-size:12px;"); |
39 |
|
|
$this->_box->add($this->_args[payload]); |
40 |
|
|
} |
41 |
|
|
|
42 |
|
|
} |
43 |
|
|
|
44 |
|
|
?> |