<?php
		if($stmt = $mysqli -> prepare("SELECT COUNT(id) FROM alarm WHERE uid =?")){
	    	$stmt -> bind_param("i", $userid);
	    	$stmt -> execute();
	    	$stmt -> bind_result($count);
	    	$stmt -> fetch();
	    	$stmt -> close();
	    }
?>

<div id="wrapper">

	<nav class="navbar-default navbar-static-side" role="navigation"> 			<!-- Linker navigatiebalk-->
		<div class="sidebar-collapse">
			<ul class="nav metismenu" id="side-menu">
				<li class="nav-header">
					<div class="dropdown profile-element"> 
						<a data-toggle="dropdown" class="dropdown-toggle" href="#">
							<span class="clear"> 
								<span class="block m-t-xs"> <strong class="font-bold">SaltyRadio</strong> </span> 
							</span> 
						</a>
						<ul class="dropdown-menu animated fadeInRight m-t-xs">
							<li><a href="logout.php">Logout</a></li>
						</ul>
					</div>
					<div class="logo-element">
						IT
					</div>
				</li>
				<li id="index.php">
					<a href="index.php"><i class="fa fa-home"></i> <span class="nav-label">Home</span></a>
				</li>
				<li id="alarmen.php">
					<a href="alarmen.php?i=overzicht"><i class="fa fa-clock-o"></i> <span class="nav-label">Alarmen</span><span class="label label-warning pull-right"><?php echo $count; ?></span></a>
				</li>
				<li id="streams.php">
					<a href="streams.php?i=overzicht"><i class="fa fa-briefcase"></i> <span class="nav-label">Internet stations</span></a>
				</li>
				<li id="twitch.php">
					<a href="twitch.php?i=overzicht"><i class="fa fa-twitch"></i> <span class="nav-label">Twitch</span></a>
				</li>
				<li id="twitter.php">
					<a href="twitter.php?i=overzicht"><i class="fa fa-twitter"></i> <span class="nav-label">Twitter</span></a>
				</li>
			</ul>
		</div>
	</nav>

	<div id="page-wrapper" class="gray-bg"> 
		<div class="row border-bottom">
			<nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0">
				<div class="navbar-header">
					<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
					<form role="search" class="navbar-form-custom" action="search_results.html">
						<div class="form-group">
							<input type="text" readonly value="Huidige radio: <?php echo $radiotoken; ?>"class="form-control" name="top-search" id="top-search">
						</div>
					</form>
				</div>
				<ul class="nav navbar-top-links navbar-right">
					<li>
						<a href="logout.php">
							<i class="fa fa-sign-out"></i> Uiloggen
						</a>
					</li>
				</ul>
			</nav>
		</div>
		<div class="wrapper wrapper-content" id="content">
