function UpdatesSuccess() { $kas = new kas_filter(); $updates_success = $kas->GetTrapSuccessUpdates(); if (is_array($updates_success)) { $html = $html . "<H5>{updates_success}</H5>\n\t\t\t<center>\n\t\t\t<table style='width:450px'>\n\t\t\t<tr style='background-color:#005447;'>\n\t\t\t<td> </td>\n\t\t\t<td style='color:white;font-weight:bold' width=5%>{date}</td>\n\t\t\t<td style='color:white;font-weight:bold'>{details}</td>\n\t\t\t</tr>"; while (list($key, $val) = each($updates_success)) { if (preg_match('#\\[([0-9\\-:\\s]+).+?\\]#', $val, $reg)) { $val = str_replace($reg[0], '', $val); $html = $html . "<tr>\n\t\t\t\t<td width=1% class='bottom'><img src='img/status_ok.jpg'></td>\n\t\t\t\t<td class='bottom' nowrap><div style='color:blue;font-size:11px;padding:3px;'>{$reg[1]}</div></td>\n\t\t\t\t<td class='bottom'><div style='color:blue;font-size:11px;padding:3px;'>{$val}</div></td>\n\t\t\t\t</tR>"; } } $html = $html . "</table></center>"; } $tpl = new templates(); return $tpl->_ENGINE_parse_body($html); }