<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<style>
body, td {
	font-family: Arial, sans-serif;
	font-size: 11pt;
}

table {
	border: 1px solid #888;
	layout: fixed;
}

td, th {
	padding: 3px 5px;
	margin: 2px;
	background-color: #ddd;
}

th {
	background-color: #bbb;
}

h1 {
	font-size: 16pt;
	margin: 10px 5px 0 5px;
}

h2 {
	font-size: 12pt;
	margin: 30px 0 8px 0;
}

.logdatei {
	margin: 10px 5px 20px 5px;
	padding: 0 20px 10px 20px;
	background-color: #eee;
	border: 1px solid #888;
}

.modell {
	font-weight: bold;
	background-color: #ccc;
	padding: 10px;
	margin: 0 -20px;
}

.number {
	font-weight: bold;
	background-color: #ccc;
}

a {
	color: #00a;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.bisher {
	text-decoration: line-through;
	color: #b00;
}
</style>
</head>
<body id="fehlermeldung">
	<h1>
		Aktualisierung am <?php echo $today; ?>
	</h1>

	<?php foreach ($logs as $logfile) { ?>
	<div class="logdatei">
		<p class="modell"><?php echo $logfile->datei; ?></p>

		<?php $list = array("neu" => "Neue Konten","akt" => "Aktualisierte Konten","entf" => "Gel&ouml;schte Konten"); ?>

		<?php foreach ($list as $topic => $title) { ?>
			<?php if (isset($logfile->$topic) && count($logfile->$topic) > 0) { ?>
				<h2><?php echo $title; ?></h2>
				<table>
					<tr>
						<th style="width: 110px;">Kontonummer</th>
						<th style="width: 330px;">Bezeichnung</th>
						<th style="width: 80px;">Kontoart</th>
						<th style="width: 100px;">Datenquelle</th>
					</tr>

				<?php foreach ($logfile->$topic as $konto) { ?>
					<tr>
						<td><?php echo $konto->Konto_Nr; ?></td>
						<td><?php echo utf8_decode($konto->Konto_Bezeichnung); ?><br/><span class="bisher"><?php echo utf8_decode($konto->Konto_Bezeichnung_bisher); ?></span></td>
						<td><?php echo ($konto->Konto_Art == "1") ? "Bilanz" : "GuV"; ?></td>
						<td><?php echo $konto->Quelle; ?></td>
					</tr>
				<?php } ?>
				</table>
			<?php } ?>
		<?php } ?>
	</div>
	<?php } ?>
</body>
</html>