This commit is contained in:
parent
629114bac5
commit
bece225d84
5 changed files with 381 additions and 381 deletions
|
|
@ -1,34 +1,34 @@
|
|||
<?php
|
||||
require_once("template.php");
|
||||
|
||||
class Info{
|
||||
var $type = array (
|
||||
"warning" => array("#F0FF69","#FFFB3E"),
|
||||
"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;
|
||||
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();
|
||||
}
|
||||
}
|
||||
<?php
|
||||
require_once("template.php");
|
||||
|
||||
class Info{
|
||||
var $type = array (
|
||||
"warning" => array("#F0FF69","#FFFB3E"),
|
||||
"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;
|
||||
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();
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue