<?php
session_start(); 
if($_SESSION['nom']=="AltoLandon" and $_SESSION['con']=="AltoLandon" )
{	
	include"conexion.php";
	$numero=$_POST['numero'];
if($numero==0){?>
	<!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">
<head>
<link href="../CSS/AltolandonIntranet.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta HTTP-EQUIV="Refresh" CONTENT="3; URL=../Espanol/intranet_gestion_notas.php" />
<title>ALTOLANDON</title>
<link rel="shortcut icon" href="../Imagenes/Icono.ico"> 
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.1/mootools-yui-compressed.js"></script>
	<script type="text/javascript" src="../includes/mootools/sexyalertbox.v1.2.moo.js"></script>
	<link rel="stylesheet" type="text/css" media="all" href="../includes/mootools/sexyalertbox.css"/>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
	<script type="text/javascript" src="../includes/jQuery/jquery.easing.1.3.js"></script>
	<script type="text/javascript" src="../includes/jQuery/sexyalertbox.v1.2.jquery.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="../includes/jQuery/sexyalertbox.css"/>

</head>

<body>
<div id="superior">
<div id="logo"><img src="../Imagenes/logo.png" border="0" usemap="#Map"/>
            <map name="Map" id="Map">
              <area shape="rect" coords="4,5,271,62" href="Start.html" />
            </map>
</div
></div>
</body>
</html>

    <?php 
		
	
	echo '
	<script type="text/javascript">
	function test(){
	Sexy.alert("No se puede introducir un 0.");}
	window.onload=test;
	</script>';


	die();}
	$sq1 = mysql_query("UPDATE gestion SET numero_notas_pagina ='$numero';");
	?>
    <!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">
<head>
<link href="../CSS/AltolandonIntranet.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta HTTP-EQUIV="Refresh" CONTENT="3; URL=../Espanol/intranet_gestion_notas.php" />
<title>ALTOLANDON</title>
<link rel="shortcut icon" href="../Imagenes/Icono.ico"> 
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.1/mootools-yui-compressed.js"></script>
	<script type="text/javascript" src="../includes/mootools/sexyalertbox.v1.2.moo.js"></script>
	<link rel="stylesheet" type="text/css" media="all" href="../includes/mootools/sexyalertbox.css"/>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
	<script type="text/javascript" src="../includes/jQuery/jquery.easing.1.3.js"></script>
	<script type="text/javascript" src="../includes/jQuery/sexyalertbox.v1.2.jquery.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="../includes/jQuery/sexyalertbox.css"/>

</head>

<body>
<div id="superior">
<div id="logo"><img src="../Imagenes/logo.png" border="0" usemap="#Map"/>
            <map name="Map" id="Map">
              <area shape="rect" coords="4,5,271,62" href="Start.html" />
            </map>
</div
></div>
</body>
</html>

    <?php 
		
	
	echo '
	<script type="text/javascript">
	function test(){
	Sexy.info("Cambio realizado con exito.");}
	window.onload=test;
	</script>';


	die();}
	//echo "Actualizaci�n correcta";
	else{
?>    <!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">
<head>
<link href="../CSS/Altolandon.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta HTTP-EQUIV="Refresh" CONTENT="3; URL=../Espanol/acceso.html" />
<title>ALTOLANDON</title>
<link rel="shortcut icon" href="../Imagenes/Icono.ico"> 
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.1/mootools-yui-compressed.js"></script>
	<script type="text/javascript" src="../includes/mootools/sexyalertbox.v1.2.moo.js"></script>
	<link rel="stylesheet" type="text/css" media="all" href="../includes/mootools/sexyalertbox.css"/>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
	<script type="text/javascript" src="../includes/jQuery/jquery.easing.1.3.js"></script>
	<script type="text/javascript" src="../includes/jQuery/sexyalertbox.v1.2.jquery.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="../includes/jQuery/sexyalertbox.css"/>

</head>

<body>
<div id="superior">
<div id="logo"><img src="../Imagenes/logo.png" border="0" usemap="#Map"/>
            <map name="Map" id="Map">
              <area shape="rect" coords="4,5,271,62" href="Start.html" />
            </map>
</div
></div>
</body>
</html>

    <?php 
		
	
	echo '
	<script type="text/javascript">
	function test(){
	Sexy.error("No tiene permisos para ver la pagina.");}
	window.onload=test;
	</script>';


	die();} ?>
