<?
if(1==2){
?>
<link href="../estilo1.css" rel="stylesheet" type="text/css" />
<?
}
?>
<script 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>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="100" colspan="3" valign="middle" background="../images/cat_head_top.gif" bgcolor="#FFFFFF"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="70" rowspan="2"><span class="titulo_seccion">&nbsp;&nbsp;<img src="../images/logo_c2.jpg" width="500" height="80" /></span></td>
        <td colspan="2"><div align="right" class="lbl_formulario"><strong>
          <?="$unombre, $uapellido";?>
        &nbsp;&nbsp;</strong></div></td>
      </tr>
      <tr>
        <td width="39%" height="70" valign="top"><div align="right" class="link_parrafo"><strong><a href="logout.php" class="link_parrafo">Cerrar sesi&oacute;n </a> <a href="logout.php" class="link_parrafo">&nbsp;&nbsp;</a></strong></div></td>
        <td width="2%" valign="top"><a href="logout.php" class="link_parrafo"><img src="../images/checked_out.png" width="16" height="16" border="0" /></a></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td width="6" height="20">&nbsp;</td>
    <td>&nbsp;</td>
    <td width="203" colspan="-2">&nbsp;</td>
  </tr>
  <tr>
    <td height="20" colspan="3"><table width="950" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="6"><img src="../images/cat_head_izq.gif" width="6" height="32" /></td>
        <td width="938" background="../images/cat_head_cen.gif"><span class="lbl_campo">Curso</span>
          <select name="jumpMenu3" class="textbox" id="jumpMenu3" onchange="MM_jumpMenu('parent',this,0)">
            <option value="#" selected="selected">Seleccione uno...</option>
            <?
        $qcursos=runsql("select distinct grados.grado, grados.id as idg, cursos.curso, cursos.codigo as idc,
                         jornadas.jornada, jornadas.id as idj, niveles.nivel, niveles.id as idn, cursos_catedraticos.seccion
                         from cursos_catedraticos inner join grados on cursos_catedraticos.grado = grados.id
                         inner join cursos on cursos_catedraticos.curso = cursos.codigo
                         inner join niveles on grados.nivel = niveles.id
                         inner join jornadas on jornadas.id = grados.jornada
                         where cursos_catedraticos.catedratico = '$uuser'
                         order by grados.jornada, grados.nivel, grados.en_numeros, cursos.curso, seccion");
        while($igrados=registro($qcursos)){
          //echo "<option value='mnt_change_curso.php?idc=".enc($icursos[codigo])."&tipo_trn=Cambio_Curso'>{$icursos[curso]}</option>";
          $sel="";
          if(($igrados[idg])==$_SESSION["grado_id"] && ($igrados[idn])==$_SESSION["nivel_id"] && ($igrados[seccion])==$_SESSION["seccion_id"] && ($igrados[idc])==$_SESSION["curso_id"] && ($igrados[idj])==$_SESSION["jornada_id"]){
              $sel="selected class='selected_option'";
          }
          echo "<option value='mnt_change_curso.php?idg=".enc($igrados[idg])."&ids=".enc($igrados[seccion])."&idc=".enc($igrados[idc])."&idj=".enc($igrados[idj])."&idn=".enc($igrados[idn])."&tipo_trn=Cambio_Curso' $sel>{$igrados[jornada]} | {$igrados[nivel]} |{$igrados[grado]} | {$igrados[curso]} | {$igrados[seccion]}</option>";
        }
        ?>
          </select>
          <span class="lbl_campo">Unidad</span>
          <select name="jumpMenu3" class="textbox" id="jumpMenu4" onchange="MM_jumpMenu('self',this,0)">
            <option value="#" selected="selected">Seleccione uno...</option>
            <?
        $qcursos=runsql("select * from unidades_grados
                         where grado = '{$_SESSION[grado_id]}'
                         and estado = 'A'");
        while($icursos=registro($qcursos)){
          $sel="";
          if($_SESSION["unidad_id"]==$icursos[id]){
            $sel="selected class='selected_option'";
          }
          echo "<option value='mnt_change_curso.php?idu=".enc($icursos[id])."&tipo_trn=Cambio_Unidad' $sel>{$icursos[unidad]}</option>";
        }
        ?>
          </select> 
          &nbsp;&nbsp;&nbsp;<a href="inicio.php" class="link_parrafo"><img src="../images/flecha_3.jpg" width="9" height="9" border="0" /> <strong>Inicio</strong></a></td>
        <td width="6"><img src="../images/cat_head_der.gif" width="6" height="32" /></td>
      </tr>
    </table></td>
  </tr>
</table>
