Example #1
0
include_once $dir . "class/Database.class.php";
include_once $dir . "class/Errors.class.php";
$count = Database::getWarningsCount();
if (!empty($count)) {
    ?>
<table class="warning_table" border="0" cellpadding="0" cellspacing="1">
	<thead> 
	<tr>
		<th width="20%">Время</th>
		<th width="15%">Трекер</th>
		<th width="65%">Причина</th>
 	</tr>
	</thead>
	<?php 
    for ($i = 0; $i < count($count); $i++) {
        $errors = Database::getWarningsList($count[$i]['where']);
        $countErrorsByTracker = count($errors);
        if ($countErrorsByTracker > 5) {
            for ($x = 0; $x < 2; $x++) {
                if ($x % 2 == 0) {
                    $class = "second";
                } else {
                    $class = "first";
                }
                $date = $errors[$x]['day'] . " " . Sys::dateNumToString($errors[$x]['month']) . " " . $errors[$x]['year'] . " " . $errors[$x]['time'];
                ?>
			<tr class="<?php 
                echo $class;
                ?>
">
				<td align="center"><?php