Example #1
0
            ?>
            	</div>
            <?php 
        }
        ?>
          
            </td>
            <td><a href="#" class="delete" onclick="del(<?php 
        echo $id;
        ?>
)"></td>
        </tr>
<?php 
    }
    ?>
	</tbody> 
</table>

<div class="update">Последний запуск:
<?php 
    $lasrStart = @file_get_contents(__DIR__ . '/../laststart.txt');
    if (!empty($lasrStart)) {
        $date = explode('-', $lasrStart);
        echo $date[0] . ' ' . Sys::dateNumToString($date[1]) . ' ' . $date[2];
    } else {
        echo 'Ещё не производился.';
    }
    ?>
</div>
<?php 
}
Example #2
0
</td>
				<td>&nbsp;&nbsp;<?php 
                echo Errors::getWarning($errors[$x]['reason']);
                ?>
</td>
			</tr>			
			<?php 
            }
        } else {
            for ($x = 0; $x < count($errors); $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 
                echo $date;
                ?>
</td>
				<td>&nbsp;&nbsp;<?php 
                echo $errors[$x]['where'];
                ?>
</td>
				<td>&nbsp;&nbsp;<?php 
                echo Errors::getWarning($errors[$x]['reason']);