<!-- Header -->
<?php
date_default_timezone_set('America/Bogota');
$mes = array("Enero","Febrero","Marzo","Abril","Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
$mes_es = $mes[date('n')-1];
if ($_SESSION['type_user_live'] == "Paciente") {
   	echo "<script type='text/javascript'>  
	window.location='paci_virtual/index.php';
	</script>";
    }
?>
<img src="images/logo_header.png" alt="Los Robles" class="visible-print-inline" >
<div id="header" class="<?php echo $bg_header ?> hidden-print" >
	<div id="wrapper">
		<div id="row">
			<div id="tb_col">
				<a href="home.php" class="hidden-print"><img src="images/logo_header.png" alt="Los Robles"></a>		
			</div>
			 <div id="tb_col" style="text-align: right" class="hidden-print">
				Hola, <?php echo $_SESSION['name_live'] ; ?><br>
				<?php echo date('j '), $mes_es , date(' Y') ?>	Hora: <div id="horeja">hora</div> <br>
				<div class="btn-group" style="padding-top: 10px">
		  			<button type="button" class="btn btn-xs" style="background-color: transparent; border-color: white"onClick="location.href='home.php'" >H.C. y Controles</button>
		  				<div class="btn-group">
						    <button type="button" class="btn btn-xs dropdown-toggle" style="background-color: transparent; border-color: white" data-toggle="dropdown">
						    Sala de Espera <span class="caret"></span></button>
						    <ul class="dropdown-menu" role="menu">
						      <li><a href="sala_espera/index.php">Sala de espera</a></li>
						      <li><a href="sala_espera/agenda.php">Agenda</a></li>
						      <li><a href="sala_espera/reports.php">Reportes</a></li>

						    </ul>
						</div>	
		  			<?php if($_SESSION['type_user_live']=='Admin'){
						echo "<button type='button' class='btn btn-xs' style='background-color: transparent; border-color: white' onClick=","location.href='home_diet.php'",">Dietas</button>";
						echo "<button type='button' class='btn btn-xs' style='background-color: transparent; border-color: white' onClick=","location.href='informes/home_informes.php'",">Informes</button>";
						}
					?>			
		  			<button type="button" class="btn btn-xs hidden-print" style="background-color: transparent; border-color: white" onClick="location.href='logout.php'" >Salir</button>
				</div>
			</div>
		</div>
	</div>
</div>
<!--- END Header -->