<?php
session_start();
include 'login/serv.php';

if(isset($_SESSION['user'])) {?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<body bgcolor="#ffffff">
		<head>
			<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		</head>
		<body bgcolor="#ffffff">
			<link rel="stylesheet" type="text/css" href="style.css">
				<p align="center">
					<fieldset>
						<legend>Bienvenido/a</legend><b>
							<center>
								<?php echo $_SESSION['user']; ?>
							</b>
						</center>
						<form name="jump">
							<select name="menu">
								<option selected>Comentarios</option> 
								<option value="informatica/1a.php">1A</option>
								<option value="informatica/1b.php">1B</option>
								<option value="informatica/1c.php">1C</option>
								<option value="informatica/2a.php">2A</option>
								<option value="informatica/2b.php">2B</option>
								<option value="informatica/2c.php">2C</option>
								<option value="informatica/3a.php">3A</option>
								<option value="informatica/3b.php">3B</option>
								<option value="informatica/3c.php">3C</option>
								<option value="informatica/4a.php">4A</option>
								<option value="informatica/4b.php">4B</option>
								<option value="informatica/4c.php">4C</option>
								<option value="informatica/5a.php">5A</option>
								<option value="informatica/5b.php">5B</option>
								<option value="informatica/5c.php">5C</option>
								<option value="informatica/6a.php">6A</option>
								<option value="informatica/6b.php">6B</option>
								<option value="informatica/6c.php">6C</option>
							</select>
							<input type="button" onclick="window.open(document.jump.menu.options[document.jump.menu.selectedIndex].value, target='principal');" value="ir" />
						</form>
						<br>
							<form name="jump2">
								<select name="menu">
									<option selected>Imprimir</option> 
									<option value="informatica/1ai.php">1A</option>
									<option value="informatica/1bi.php">1B</option>
									<option value="informatica/1ci.php">1C</option>
									<option value="informatica/2ai.php">2A</option>
									<option value="informatica/2bi.php">2B</option>
									<option value="informatica/2ci.php">2C</option>
									<option value="informatica/3ai.php">3A</option>
									<option value="informatica/3bi.php">3B</option>
									<option value="informatica/3ci.php">3C</option>
									<option value="informatica/4ai.php">4A</option>
									<option value="informatica/4bi.php">4B</option>
									<option value="informatica/4ci.php">4C</option>
									<option value="informatica/5ai.php">5A</option>
									<option value="informatica/5bi.php">5B</option>
									<option value="informatica/5ci.php">5C</option>
									<option value="informatica/6ai.php">6A</option>
									<option value="informatica/6bi.php">6B</option>
									<option value="informatica/6ci.php">6C</option>
								</select>
								<input type="button" onclick="window.open(document.jump2.menu.options[document.jump2.menu.selectedIndex].value, target='principal');" value="ir" />
							</form>
							<br>
								<Form name="desconectar" action="index.html" method="post" target="_top">
									<Input Type="Submit" name="BotonEnviar" value="Desconectar">
									</Form>
								</font>
							</body>
						</html>
						<?php
}else{
	echo '<script> window.location="login.php"; </script>';
}
?>
						