<?php

if (isset($_SESSION['usuario'])){

$user=$_SESSION['usuario'];

}

else{

?>

<script>

location.href="index.php?errorusuario=3";

</script>

<?php

}

include("conexion.php");

$id=strip_tags($_GET['id']);
$cons="SELECT * FROM catedraticos WHERE idCatedratico='$id'";
$res=mysql_query($cons,$conex) or die ("No se consulto al catedratico");
$cat=mysql_fetch_array($res);
?>


<link href="ucaestilos.css" rel="stylesheet" type="text/css" />


<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>

    <td><form action="svcatedratico.php" method="post" name="form1">

		  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">

            <tr>

              <td><p class="style10">Editar catedr&aacute;tico:</p>

                <hr align="left" size="1" color="#999999" />

                <table width="541" border="0" align="center" cellspacing="5">

				  <tr>

                    <td width="74" class="style4"><div align="right">Clave:</div></td>

                    <td width="448"><input name="clave" type="text" class="cuadrotexto" id="clave" size="10" maxlength="100" value="<?php echo $cat['clave'];?>" /><input type="hidden" name="id" value="<?php echo $id;?>" /></td>
                  </tr>

				  <tr>
                    <td class="style4"><div align="right">Nombre:</div></td>
				    <td><input name="nombre" type="text" class="cuadrotexto" id="nombre" size="50" maxlength="100" value="<?php echo utf8_encode($cat['nombre']);?>" /></td>
			      </tr>
				  <tr>
                    <td class="style4"><div align="right">Correo:</div></td>
				    <td><input name="correo" type="text" class="cuadrotexto" id="correo" size="50" value="<?php echo $cat['correo'];?>" /></td>
			      </tr>
                </table>

                <p class="style4"></p>

                <table width="90" border="0" align="center" cellspacing="10">

                  <tr>

                    <td width="68"><input name="Submit2" type="submit" class="botonDefault" value="Guardar" /></td>

                  </tr>

                </table>

              <p></p></td>

            </tr>

          </table>

		  </form></td>

  </tr>

</table>



</body>

</html>

