<?php include('field_names.php'); 
			// Project ID
			$pid = 1;
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
  margin: 0;
  font-family: "Lato", sans-serif;
}

.sidebar {
  margin: 0;
  padding: 0;
  width: 200px;
  background-color: #f1f1f1;
  position: fixed;
  height: 100%;
  overflow: auto;
}

.sidebar a {
  display: block;
  color: black;
  padding: 16px;
  text-decoration: none;
}
 
.sidebar a.active {
  background-color: #4CAF50;
  color: white;
}

.sidebar a:hover:not(.active) {
  background-color: #555;
  color: white;
}

div.content {
  margin-left: 200px;
  padding: 1px 16px;
  height: 1000px;
}

@media screen and (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar a {float: left;}
  div.content {margin-left: 0;}
}

@media screen and (max-width: 400px) {
  .sidebar a {
    text-align: center;
    float: none;
  }
}
</style>
</head>
<body>

<?php

$menu_line = "menu.php?pid=".$pid;

?>

<div class="sidebar">
  <a class="active" href="<?php echo $menu_line ?>"><?php echo $forms_name ?></a>
  <a href="#news">Main 1</a>
  <a href="#contact">Contact</a>
  
  <a class="active" href="#reps"><?php echo $reps_name ?></a>
  
  <a href="<?php echo $menu_line ?>&mnc=501"><?php echo $n_centers ?></a>  
  
  
  
  
  <a class="active" href="#structure"><?php echo $structure_name ?></a>
  
  <a href="<?php echo $menu_line ?>&mnc=901"><?php echo $n_centers_groups ?></a>  
  <a href="<?php echo $menu_line ?>&mnc=902"><?php echo $n_centers ?></a>  
</div>

<div class="content">
<?php 
	$mnc = $_GET["mnc"];

	if ($mnc == '501') { include('r_centers.php'); }	

	if ($mnc == '901') { include('f_centers_groups.php'); }
	if ($mnc == '902') { include('f_centers.php'); }	

?>
</div>

</body>
</html>
