}
.timetablecell {
	text-align:center;
	font-weight:bold;
}
</style>


<?php 
require_once '../../db/db.class.php';
require_once '../../class/Stundenplan.class.php';
require_once '../../class/Fach.class.php';
require_once '../../global/colors.php';
$db = new db();
isset($_POST['email']) ? $email = $_POST['email'] : ($email = '');
$ids = Stundenplan::getIds($db, $email);
$anzahl = Stundenplan::countStundenplaene($db, $email);
for ($i = 0; $i < $anzahl; $i++) {
    echo '
	<input type="hidden" id="maincolor" value="' . $MAINCOLOR2 . '" />
	<table border="1" cellspacing="0" style="width:99%">
		<tr>
			<th></th>
			<th>Montag</th>
			<th>Dienstag</th>
			<th>Mittwoch</th>
			<th>Donnerstag</th>
			<th>Freitag</th>
		</tr>
		<tr>
			<td class="timetablerim">8:00</td>