1
0
Fork 0
zutil-php/class/info.php

22 lines
514 B
PHP
Raw Normal View History

2008-11-18 20:55:40 +00:00
<?php
require_once("template.php");
class Info{
var $type = array (
"warning" => array("#F0FF69","#FFFB3E"),
"error" => array("#FFDDCC","#FF0000"),
"info" => array("#9BFB66","#039C00")
);
function buildMessage($msg, $t="warning"){
GLOBAL $template;
$temp = new Template($template["message"]);
$temp->replace_tags(array(
"message_color" => $this->type[$t][0],
"message_color_border" => $this->type[$t][1],
"message" => $msg
));
return $temp->getOutput();
}
}
?>