function UpdatesErrors() { $kas = new kas_filter(); $updates_error = $kas->GetTrapUpdatesError(); if (is_array($updates_error)) { $html = $html . "<H5>{updates_error}</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_error)) { 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_warning.png'></td>\n\t\t\t\t<td class='bottom' nowrap><div style='color:#d32d2d;font-size:11px;padding:3px;'>{$reg[1]}</div></td>\n\t\t\t\t<td class='bottom'><div style='color:#d32d2d;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); }