<?
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 - Reporte de Notas</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" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<style type="text/css">
<!--
.Estilo1 {font-weight: bold}
body {
	background-image: url(../images/tema/bg_pagina.png);
}
-->
</style>
</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_cat.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">
        <tr>
          <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"><div align="center">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td background="../images/tema/bg_contenido.png"><div align="center" class="titulo_pagina">
                      <div align="left"> FORMATO PARA CONTROL DE NOTAS DE UNIDADES ACADEMICAS </div>
                    </div></td>
                    <td width="212" background="../images/tema/bg_contenido.png"><div align="right"><a href="frm_reportes.php" class="link_parrafo">Regresar al men&uacute; de reportes <img src="../images/ic_home.png" width="21" height="21" border="0"></a></div></td>
                  </tr>
                </table>
              </div></td>
            </tr>
            <tr bgcolor="#FFFFCC">
              <td align="left" valign="top" bgcolor="#FFFFCC"><div align="left" class="parrafo">
                <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFCC">
                  <tr bgcolor="#FFFFCC">
                    <td background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC">
                    
                     <table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#333333">
                            <tr>
                              <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                            <tr>
                                  <td width="23%" bgcolor="#CFDFEF" class="parrafo"><strong>Seleccione un grado :
                                  </strong></td>
                                  <td width="77%" bgcolor="#ECF2F9">
                                  <select name="select" class="textbox" onChange="MM_jumpMenu('self',this,0)">
                                    <option value="#" selected>Seleccione uno...</option>
                                    <?
                                    $id_gr=dec($gid);
                                      $qgrados=mysql_query("select distinct grados.grado, grados.id as idg, jornadas.jornada, jornadas.id as idj, 
                                                            niveles.nivel, niveles.id as idn, secciones_grados.seccion
                                                            from secciones_grados inner join grados on secciones_grados.grado = grados.id
                                                            inner join niveles on grados.nivel = niveles.id
                                                            inner join jornadas on jornadas.id = grados.jornada
                                                            order by jornadas.jornada, niveles.en_numeros, grados.en_numeros, grados.grado");

                                    while($ic=mysql_fetch_array($qgrados)){

                                    if(enc($ic[idg])==$gid and enc($ic[seccion])==$sid){
                                     $sel="selected class='selected_option'";
                                    }else{
                                     $sel="";
                                    }
                                    ?>
                                     <option value="<?=$PHP_SELF;?>?gid=<?=enc($ic[idg])."&sid=".enc($ic[seccion])."&cid=".enc($ic[idc])."&jid=".enc($ic[idj])."&nid=".enc($ic[idn]);?>" <?=$sel;?>><?=$ic[jornada]." | ".$ic[nivel]." | ".$ic[grado]." | ".$ic[seccion];?></option>
                                    <?
                                    }
                                    ?>
                                  </select></td>
                            </tr>
                            <?if(!$gid){exit();}?>
                            
                     </table>
                                <br>
							<iframe src="./rpt_control_notasunidadesvacio.php?idg=<?=$gid."&sid=$sid";?>" width="100%" height="400" frameborder="1"></iframe>
							</td>
                            </tr>
                      </table>
                     </td>
                  </tr>
                </table>
              </div></td>
              </tr>
          </table></td>
        </tr>
    </table>    </td>
  </tr>
</table>
</body>
</html>
