<!DOCTYPE HTML>
<html lang="la">
<head>
	<title>Index generalis Vocis Latinae – De hoc indice</title>
	<meta name="author" content="Bernd Platzdasch"><!-- 15.9.2015 | 1.7.2017 -->
	<meta charset="UTF-8">
	<script src="js/store.js" type="text/javascript"></script>
	<script src="js/register.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="css/main.css">
	<style>	
		table { margin-top: 1em; border-collapse: collapse; margin: 0.5em 0 2em 0; width: 100%; }
		td { border: none; padding: 0.3em; background-color: #fff; }
		td.colored { background-color: #fff; }
		td.li { text-align: left; width: 7em; }
		td.re { border-left: none; }
	</style>
	<?php
		require_once $_SERVER['DOCUMENT_ROOT'] . '/db_connection.php';
		include("php/ini.inc.php");
		//
		$select = "SELECT * FROM voxlatina_namen WHERE Name NOT LIKE '%/%'";
		$res = $db->query($select);
		$anz_nom = $res->num_rows;
		//
		$select = "SELECT * FROM voxlatina WHERE Textgattung <> 'Epistula'";
		$res = $db->query($select);
		$anz_sym = $res->num_rows;
		//
		$select = "SELECT * FROM voxlatina WHERE Textgattung = 'Epistula' OR Textgattung ='Telegraphema'";
		$res = $db->query($select);
		$anz_epi = $res->num_rows;
		//
		$select = "SELECT * FROM voxlatina WHERE Uebersetzung = '1'";
		$res = $db->query($select);
		$anz_ver = $res->num_rows;
		//
		$db->close();
	?>
	<script>
		function seiten_total() {
			document.getElementById("total").innerHTML = anz_seiten_total();
		}
	</script>
</head>
<body onload="store_mnu(); seiten_total();">
<?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"><?php echo $update_datum; ?></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 class="colored re"><?php echo $ultimus?> (<span id="total"></span> paginae numeris Arabicis signatae)</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>
				</table>
		</div>
	</div>
<?php include("footer.inc.php"); ?>
</body>
</html>