<?
 header("Expires: Sun 25 Jul 1994 05:00:00 GMT");
 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); 
 header("Cache-Control: no-cache, must-revalidate");
 header("Pragma: no-cache");
 
 $qusr=mysql_query("select apellido, nombre from usuarios where usuario = '$txtusr'");
 $iusr=mysql_fetch_array($qusr);
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Seleccione su rol a utilizar</title>
<link href="estilo1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	background-image: url(images/tema/bg_pagina.png);
}
.Estilo1 {font-size: 14px}
-->
</style></head>

<body>
<table width="700" height="400" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" background="images/bg_sel_rol.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="180">&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center" class="titulo_seccion Estilo1"><?=$iusr[nombre];?></div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><table width="347" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="2" bgcolor="#FFFFCC"><div align="center" class="titulo_pagina">Seleccione un rol a utilizar </div></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td width="50%"><form id="form1" name="form1" method="post" action="./redirect_usr.php">
                <div align="center">
                  <input name="Submit" type="submit" class="boton_guardar" value="Administrador" />
                  <input name="txtusr" type="hidden" id="txtusr" value="<?=$txtusr;?>" />
                  <input name="txtclave" type="hidden" id="txtclave" value="<?=$txtclave;?>" />
                  <input name="mtipo" type="hidden" id="mtipo" value="admin" />
                </div>
            </form></td>
            <td width="50%"><form id="form2" name="form2" method="post" action="./redirect_usr.php">
                <div align="center">
                  <input name="Submit2" type="submit" class="boton_guardar" value="Catedr&aacute;tico" />
                  <input name="txtusr" type="hidden" id="txtusr" value="<?=$txtusr;?>" />
                  <input name="txtclave" type="hidden" id="txtclave" value="<?=$txtclave;?>" />
                  <input name="mtipo" type="hidden" id="mtipo" value="catedratico" />
                </div>
            </form></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
