<!DOCTYPE html>

<html>
<head>
<?php echo head();?>
</head>

<body id="body" <?php echo onload();?>>
<!-- utf-8 check: äöüß -->
<!-- This is the default template of CMSimple -->
<div id="top"></div>


<!-- HEADER / HEADER -->

	<div id="tplge_header">
	<div id="tplge_headerin">
<?php
if (file_exists($pth['folder']['templateimages'].'logo.jpg')){
echo '<a href="./">'.tag('img src="'.$pth['folder']['templateimages'].'logo.jpg" class="tplge_logo" alt="Logo"').'</a>';
} 
?>

<h1><?php echo sitename()?></h1>
<div style="clear: both;"></div>
	</div>
<div style="clear: both;"></div>
	</div>
<div style="clear: both;"></div>


<!-- ANFANG MAIN / BEGIN MAIN -->

<div id="tplge_main">
<div id="tplge_mainin">

<!-- locator -->

	<div id="tplge_locator">
	<div id="tplge_locatorin">
<span style="color: #333; font-weight: 600;"><?php echo $tx['locator']['text']; ?>  </span><?php echo locator();?>
	</div>
<div style="clear: both;"></div>
	</div>
<div style="clear: both;"></div>

<?php echo searchbox();?>
<div style="clear: both;"></div>


<!-- LINKE SIDEBAR / SIDEBAR LEFT -->

	<div id="tplge_sidebar1">
	<div id="tplge_sidebar1in">

<?php echo toc();?>
<ul class="subnav">
<li><?php echo printlink();?></li>
<li><?php echo sitemaplink();?></li>
<li><?php echo mailformlink();?></li>
</ul>
<?php echo lastupdate();?>

<div style="clear: both;"></div>
	</div>
<div style="clear: both;"></div>
	</div>
	

<!-- INHALT / CONTENT -->

	<div id="tplge_content">
	<div id="tplge_contentin">
	<div style="text-align: right;"><?php echo languagemenu();?></div>
<?php echo editmenu();?>
<?php echo content();?>
<?php echo submenu();?>

		<div id="tplge_prevtopnext">
		<div id="tplge_prevtopnextin">
<?php echo previouspage();?>  |  
<?php echo top();?>  |  
<?php echo nextpage();?>
<div style="clear: both;"></div>
		</div>
<div style="clear: both;"></div>
		</div>
<div style="clear: both;"></div>

	</div>
<div style="clear: both;"></div>
	</div>
<div style="clear: both;"></div>


<!-- ENDE MAIN / END MAIN --> 

</div>
<div style="clear: both;"></div>
</div>
<div style="clear: both;"></div>


<!-- NEWSBOXES -->

<div id="tplge_news">
<div id="tplge_newsin">

	<div class="tplge_news">
	<div class="tplge_newsin">
<?php echo newsbox('News01');?>
<div style="clear: both;"></div>
	</div>
	</div>

	<div class="tplge_news">
	<div class="tplge_newsin">
<?php echo newsbox('News02');?> 
<div style="clear: both;"></div>
	</div>
	</div>

	<div class="tplge_news">
	<div class="tplge_newsin">
<?php echo newsbox('News03');?>
<div style="clear: both;"></div>
	</div>
	</div>

<div style="clear: both;"></div>


<!-- ENDE NEWS / END NEWS --> 

</div>
<div style="clear: both;"></div>
</div>
<div style="clear: both;"></div>


<!-- FUSSLINKS / FOOTER LINKS -->

<div id="tplge_notes">
<div id="tplge_notesin">
<p>
Powered by <a href="http://www.medisoftware.de/">MediSoftware Kiel</a> | 
<?php 
if($adm && !$edit)
{
echo '<a href="http://validator.w3.org/check?uri=referer">html5</a> | 
<a href="http://jigsaw.w3.org/css-validator/check/referer">css</a> | ';
}
?>

<?php echo loginlink();?></p>

<div style="clear: both;"></div>
</div>
</div>

</body>
</html>