<!DOCTYPE HTML>
<html lang="la">
<head>
	<title>Index generalis Palaestrae Latinae – De hoc indice</title>
	<meta name="author" content="Bernd Platzdasch"><!-- 30.102017 -->
	<meta charset="UTF-8">
	<script src="js/store.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="css/main.css">
	<style>	
		table { margin-top: 1em; border-collapse: collapse; margin: 1em 0em 2em 1.5em; width: 100%; }
		td { border: 0px solid #f6f6f6; padding: 0.3em; background-color: #fff; }
/* 		td.colored { background-color: #f4f4f4; } */
		td.li { text-align: left; width: 9em; }
		td.re { border-left: none; }
	</style>
	<?php
// Debugging:
// error_reporting(E_ALL);
// ini_set('display_errors', true);	
		require_once $_SERVER['DOCUMENT_ROOT'] . '/db_connection.php';
		include("php/ini.inc.php");
		//
		$select = "SELECT DISTINCT Faszikel FROM palaestralatina"; 
		$res = $db->query($select);
		$anz_fasc = 0;
		while ($row = $res->fetch_object()) {
			$anz_fasc++;
		}
		//
		$select = "SELECT * FROM palaestralatina_namen WHERE Name NOT LIKE '%/%'";
		$res = $db->query($select);
		$anz_nom = $res->num_rows;
		//
		$select = "SELECT * FROM palaestralatina_namen WHERE Name NOT LIKE '%/%'";
		$res = $db->query($select);
		$anz_nom = $res->num_rows;
		//
		$select = "SELECT * FROM palaestralatina WHERE Textgattung <> 'Epistula'";
		$res = $db->query($select);
		$anz_sym = $res->num_rows;
		//
		$select = "SELECT * FROM palaestralatina WHERE Textgattung = 'Epistula'";
		$res = $db->query($select);
		$anz_epi = $res->num_rows;
		//
		$select = "SELECT * FROM palaestralatina WHERE Uebersetzung = '1'";
		$res = $db->query($select);
		$anz_ver = $res->num_rows;
		//
		$select = "SELECT * FROM palaestralatina WHERE Textgattung = 'Existimatio'";
		$res = $db->query($select);
		$anz_exi = $res->num_rows;
		//
		$db->close();
	?>
</head>
<body onload="store_mnu();">
<?php include("header.inc.php"); ?>
	<div class="border">
		<div id="main">
			<h1>De hoc indice</h1>
				<table>
					<tr>
						<td class="colored li">Editio:</td><td class="colored re"> 2020-08-08</td>
					</tr>
					<tr>
						<td class="li">Auctor:</td><td class="re"><a href="impressum.php">Bernardus Platzdasch</a></td>
					</tr>
					<tr>
						<td class="colored li">Fasciculi:</td><td>225</td>
					</tr>
					<tr>
						<td class="li">Nomina:</td><td class="re"><?php echo $anz_nom?></td>
					</tr>
					<tr>
						<td class="colored li">Symbolae:</td><td class="colored re"><?php echo $anz_sym?></td>
					</tr>
					<tr>
						<td class="li">Epistulae:</td><td class="re"><?php echo $anz_epi?></td>
					</tr>
					<tr>
						<td class="colored li">Versiones:</td><td class="colored re"><?php echo $anz_ver?></td>
					</tr>
					<tr>
						<td class="li">Existimationes:</td><td class="re"><?php echo $anz_exi?></td>
					</tr>
				</table>
		</div>
	</div>
<?php include("footer.inc.php"); ?>
</body>
</html>
