<?php
function head($titel){
    echo '
    <div class="panel panel-default">
		<div class="panel-heading">
			<h3 class="panel-title">'.$titel.'</h3>
		</div>
		<div class="panel-body">';
}

function foot(){
    echo'</div>
</div>';
}

function menuehead($titel){
   	$titel2 = str_replace(" ","_",$titel);
    echo '
    <a class="btn btn-primary btn-block" data-toggle="collapse" href="#'.$titel2.'" role="button" aria-expanded="false" aria-controls="'.$titel2.'">
		'.$titel.'
	</a>
	<div class="collapse" id="'. $titel2 .'">
		<div class="card card-body">
	';
}

function menuefoot(){
    echo'</div></div><hr>';
}
?>