<?
include("../fnc.php");
enlinea_a();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>e-Ducativo - Bienvenido</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../estilo1.css" rel="stylesheet" type="text/css">
<script language="javascript">
function validar(){
var objeto;

  objeto= document.form1.txtgrado;
  if(objeto.value=="SV"){
    alert("Seleccione un grado");
    objeto.focus();
    return (false);
  }

  return (true);
}
</script>
<?=mascara();?>
</head>

<body>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#333333">
  <tr>
    <td bgcolor="#336699">
      <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E5E5E5">
        <tr bgcolor="#FFFFFF">
          <td width="40%"><img src="../images/logo_5.gif" width="300" height="50"></td>
          <td width="60%" background="../images/back_header_admin.gif" bgcolor="#FFFFFF"><div align="right" class="usuario_nombre_enc"><strong><?echo "$unombre $uapellido";?><br>
              </strong>Tiene
              <?=mensajes($uuser);?>
              mensaje(s) sin leer</div></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="15" colspan="2" background="../images/barra_encabezado.gif">&nbsp;</td>
        </tr>
      </table>
      <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFCC">
        <tr>
          <td width="20%" valign="top" bgcolor="#FFFFCC"><?php include("menu.php"); ?>
&nbsp;</td>
          <td width="80%" valign="top" bgcolor="#FFFFCC"><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#333333">
              <tr align="center" valign="middle" bgcolor="#FFFFCC">
                <td height="20" bgcolor="#FFFFCC" class="titulo_pagina"><div align="center" class="titulo_seccion">
                    <div align="left">
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="440"><div align="center" class="titulo_pagina">
                              <div align="left" class="parrafo">
                                <p>ACADEMICO  <img src="../images/flecha_3.jpg" width="9" height="9"> Generaci&oacute;n de certificados de notas </p>
                              </div>
                          </div></td>
                          <td width="159"><div align="right"><a href="frm_reportes.php" class="link_parrafo">Men&uacute; de Reportes <img src="../images/ic_home.png" width="21" height="21" border="0"></a></div></td>
                        </tr>
                      </table>
                    </div>
                </div></td>
              </tr>
              <tr>
                <td align="left" valign="top" bgcolor="#FFFFCC"><div align="left" class="parrafo">
                    <table width="100%"  border="0" cellspacing="0" cellpadding="1">
                      <tr>
                        <td align="left" valign="top"><form name="form1" method="post" action="rpt_certificadonotas.php" onsubmit="return validar();">
                          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="22%" bgcolor="#CFDFEF" class="lbl_campo"><div align="left">Seleccione un grado:</div></td>
                              <td width="78%" bgcolor="#ECF2F9">
                                <div align="left">
                                  <select name="txtgrado" class="textbox" id="txtgrado">
                                    <option value="SV">Seleccione un alumno...</option>
                                    <?
                               $qal=mysql_query("select grados.id as idg, grados.grado, niveles.nivel, jornadas.jornada
                                                 from grados inner join niveles ON grados.nivel = niveles.id
                                                 inner join jornadas ON grados.jornada = jornadas.id
                                                 order by jornadas.jornada, niveles.nivel, grados.grado");
                               while($ial=mysql_fetch_array($qal)){
                                 echo "<option value='{$ial[idg]}'>{$ial[jornada]} {$ial[nivel]} {$ial[grado]}</option>";
                               }
                               ?>
                                   </select>
                                </div></td>
                              </tr>
                            <tr>
                              <td bgcolor="#CFDFEF" class="lbl_campo"><div align="left">Fecha de emisi&oacute;n: </div></td>
                              <td bgcolor="#ECF2F9"><div align="left">
                                <input name="txtfechae" type="text" class="textbox" id="txtfechae" size="10" maxlength="10" <?=fmascara();?>>
                              </div></td>
                            </tr>
                            <tr>
                              <td bgcolor="#CFDFEF" class="lbl_campo">&nbsp;</td>
                              <td bgcolor="#ECF2F9"><input name="Submit" type="submit" class="boton_guardar" value="Ver certificados de notas"></td>
                              </tr>
                          </table>
                        </form></td>
                      </tr>
                    </table>
                </div></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
