1
0
Fork 0

Fixed so that the php classes can run with out eny other class

This commit is contained in:
Ziver Koc 2008-11-21 14:10:19 +00:00
parent 0f5bfbdba9
commit ff139b32bb
3 changed files with 87 additions and 54 deletions

View file

@ -7,15 +7,27 @@ class Info{
"error" => array("#FFDDCC","#FF0000"),
"info" => array("#9BFB66","#039C00")
);
var $defaultStyle = "
<div id=\"info\" style=\"border:2px solid {'message_color_border'}; padding:5px;margin:10px;background:{'message_color'} none repeat scroll 0%;font-size:13px;\">
<center>{'message'}</center>
</div>
";
function buildMessage($msg, $t="warning"){
GLOBAL $template;
$temp = new Template($template["message"]);
if(isset($template["message"])){
$temp = new Template($template["message"]);
}
else{
$temp = new Template($this->defaultStyle);
}
$temp->replace_tags(array(
"message_color" => $this->type[$t][0],
"message_color_border" => $this->type[$t][1],
"message" => $msg
));
return $temp->getOutput();
}
}