<!DOCTYPE HTML>
<html lang="la">
<head>
	<title>Index generalis Melissae – Index fasciculorum</title>
	<meta name="author" content="Bernd Platzdasch"><!-- 21.4.2018 -->
	<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="css/main.css">
	<script src="js/store.js" type="text/javascript"></script>
	<style type="text/css">
		div#main { width: 840px; padding-left: 80px; overflow: auto; float: left; margin-left: -1px; margin-left: +1px; border: none; }
		table { border: 1px solid lightgrey; border-collapse: collapse; float: left; margin: 0.5em 2em 4em 0; }
		th { text-align: left; font-weight: normal; border: 1px solid lightgray; padding: 0.4em; background-color: lightyellow; }
		th.border { border-right: 1px solid gray; }
		td { text-align: center; border: 1px solid lightgrey; padding: 0em; width: 3.3em; height: 2em;}
		td.border {border-right: 1px solid gray; background-color: #fff; }
		a.list { display: block; color: darkblue; padding: 0.4em; }
		a.list:hover { text-decoration: none; background-color: gray; color: #fff; }
	</style>
</head>
<body onload="store_mnu();">
<?php
	include("header.inc.php");
	include("php/faszikel.inc.php");
?>
	<div>
		<div id="main" style="border-radius: 0 0 5px 5px;">
			<h1>Index fasciculorum</h1>
			<?php
				$leer = "<td>&nbsp;</td>";
				$n = 21;
				$y = 6;
				$z = 0;
				echo "<table><thead><tr><th class='border'>Annus</th><th colspan='$y'> Numerus</th></tr></thead>";
				for($i = $z; $i < $n; $i++) {
					$arr_zeile = explode("-", $arr_fasc[$i]);
					echo "<tr><td class='border'>$arr_zeile[0]</td>";
					for($j = 1; $j <= $y; $j++) {
						if ($arr_zeile[$j] == "x") {
							echo $leer;
						} else {
							$k = $arr_zeile[$j];
							echo "<td><a class='list' href='contenta.php?f=$arr_zeile[$j]'>$k</a></td>";
						}
					}
					echo "</tr>";
				}
				echo "</table>";
				//
				$n = 42;
				$y = 6;
				$z = 21;
				echo "<table><thead><tr><th class='border'>Annus</th><th colspan='$y'> Numerus</th></tr></thead>";
				for($i = $z; $i < $n; $i++) {
					$arr_zeile = explode("-", $arr_fasc[$i]);
					echo "<tr><td class='border'>$arr_zeile[0]</td>";
					for($j = 1; $j <= $y; $j++) {
						if ($arr_zeile[$j] == "x") {
							echo $leer;
						} else {
							$k = $arr_zeile[$j];
							echo "<td><a class='list' href='contenta.php?f=$arr_zeile[$j]'>$k</a></td>";
						}
					}
					echo "</tr>";
				}
				echo "</table>";
			?>
		</div>
	</div>
<?php include("footer.inc.php"); ?>
</body>
</html>
