<?
include("../fnc.php");
enlinea_a();

if(!$idalumno){
  alert("Parámetros incorrectos","javascript:history.go(-1)");
}
if($idalumno){
$qver=mysql_query("select * from alumnos where carnet = '$idalumno'");
 if(mysql_num_rows($qver)==0){
  alert("El número de carnet no existe","javascript:history.go(-1)");
 }else{
  $info=mysql_fetch_array($qver);
  $link_foto="<a href='frm_alumno_foto.php?idalumno={$info[carnet]}' class='link_parrafo'>Agregar/Modificar Foto</a>";
  if(file_exists("../fotos_usr/{$info[carnet]}.jpg")){
   $foto="<img src=\"../fotos_usr/{$info[carnet]}.jpg\" width=\"95\" height=\"125\" border=\"1\">";
  }else{
   $foto="<img src=\"../fotos_usr/sin_foto.jpg\" width=\"95\" height=\"125\" border=\"1\">";
  }
 }
}else{
 $foto="";
 $link_foto="";
}
$qinfoe=mysql_query("select * from expedientes where carnet='$idalumno'");
/*if(mysql_num_rows($qinfoe)==0){
 $tipo="Add";
}else{
  $tipo="Update";
  $infoe=mysql_fetch_array($qinfoe);
} */
  $tipo="Add";
  $infoe=mysql_fetch_array($qinfoe);

?>
<!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 type="text/javascript" src="../jsincludes/overlib.js"></script>
<script language="javascript">
function validar(formulario){

  if(document.form1.txtcarnet.value==""){
   alert("Por favor ingrese un número de carné");
   document.form1.txtcarnet.focus();
   return (false);
  }

  return (true);
}
</script>
<style type="text/css">
<!--
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="#FFFFCC">
      <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">
        <tr>
          <td width="20%" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC"><?php include("menu.php"); ?>&nbsp;</td>
          <td width="80%" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#FFFFFF"><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#333333">
            <tr align="center" valign="middle" bgcolor="#FFFFCC">
              <td width="65" height="20" background="../images/tema/bg_contenido.png" class="titulo_pagina"><div align="center" class="titulo_pagina"></div></td>
              <td width="433" background="../images/tema/bg_contenido.png" class="titulo_pagina"><strong>ADMINISTRACION DE ALUMNOS</strong></td>
              <td width="65" align="center" valign="middle" background="../images/tema/bg_contenido.png" class="titulo_pagina"><a href="inicio.php" class="link_parrafo">Inicio<img src="../images/ic_home.png" width="21" height="21" border="0"></a></td>
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC"><div align="left" class="parrafo">
                <form name="form2" method="post" action="frm_alumno.php">
                  <table width="99%"  border="0" align="center" cellpadding="1" cellspacing="1" background="../images/tema/bg_frm_campos.png">
                    <tr>
                      <td width="83%"><div align="left" class="font_blue_11"> <strong> MODIFICAR INFORMACION  DE ALUMNOS <br>
                        Ingrese el n&uacute;mero de carnet
                              <input name="idalumno" type="text" class="txt_buscar" id="idalumno3" dir="rtl" size="15" maxlength="15">
                                <input name="Submit3" type="submit" class="boton_modificar" value="Modificar">
</strong> </div></td>
                      <td width="17%"><div align="center"><strong><a href="frm_buscar_alumno.php" class="lbl_buscar">Buscar Alumno </a></strong></div></td>
                    </tr>
                  </table>
                </form>
                                <hr size="1">

                                <table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000099">
                                  <tr>
                                    <td bgcolor="#ECE9D8"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                      <tr bgcolor="#6699CC">
                                        <td colspan="3" class="titulo_seccion"><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#ECF2F9">
                                          <tr bgcolor="#CFDFEF">
                                            <td width="3%"><div align="left" class="titulo_formulario">
                                              <div align="center"><img src="../images/tema/ic_formularios.png" width="35" height="32"></div>
                                  </div></td>
                                  <td width="35%" background="../images/tema/bg_titulo_frm.png" bgcolor="#CFDFEF" class="titulo_formulario"><div align="left" class="titulo_formulario">Expediente del alumno </div></td>
                                  <td width="8%" background="../images/tema/bg_titulo_frm.png" bgcolor="#CFDFEF"><div align="left" class="titulo_formulario">
                                    <div align="center"></div>
                                  </div></td>
                                  <td width="54%" background="../images/tema/bg_titulo_frm.png" bgcolor="#CFDFEF"><div align="right"><a href="frm_alumno.php?idalumno=<?=$idalumno;?>" class="link_parrafo_blanco">[ Editar Informaci&oacute;n general del alumno ] </a>  </div></td>
                                </tr>
                                        </table></td>
                            </tr>
                                      <tr bgcolor="#E8E8E8">
                                        <td width="16%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" class="lbl_campo">No. de Carnet</td>
                              <td width="70%" background="../images/tema/bg_frm_campos.png"><div align="left">
                                <input name="txtcarnet" type="text" class="textbox" id="txtcarnet3" value="<?=$info[carnet];?>" size="15" maxlength="15" readonly="true" <?if($tipo=="Update"){echo "readonly=\"true\"";}?>>
                                </div>
                                <div align="right"></div></td>
                              <td width="14%" rowspan="4" align="center" valign="top" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><?=$foto;?>&nbsp;<br>
                                <?=$link_foto;?></td>
                            </tr>
                                      <tr >
                                        <td background="../images/tema/bg_frm_campos.png" width="16%" align="left" valign="middle" class="lbl_campo">Nombre(s)</td>
                              <td background="../images/tema/bg_frm_campos.png"><div align="left">
                                <input name="txtnombre" type="text" class="textbox" id="txtnombre" value="<?=$info[nombre];?>" size="60" maxlength="100" readonly="true">
                                </div></td>
                              </tr>
                                      <tr >
                                        <td width="16%" align="left" valign="middle" class="lbl_campo" background="../images/tema/bg_frm_campos.png">Apellido(s)</td>
                              <td background="../images/tema/bg_frm_campos.png"><div align="left">
                                <input name="txtapellido" type="text" class="textbox" id="txtapellido" value="<?=$info[apellido];?>" size="60" maxlength="100" readonly="true">
                                </div></td>
                              </tr>
                                      <tr >
                                        <td background="../images/tema/bg_frm_campos.png" colspan="2" align="left" valign="middle" class="lbl_campo">&nbsp;</td>
                              </tr>
                                    </table></td>
                      </tr>
                                    </table>                
                                <br>
                                <table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#1A4E82">
                                  <tr>
                                    <td width="33%" height="26" background="../images/tema/bg_frm_campos.png"><div align="center"><strong>Primaria</strong></div></td>
                                    <td width="33%" height="26" bgcolor="#FFFFFF"><div align="center"><a href="frm_alumno_expv2_secundaria.php?idalumno=<?=$idalumno;?>" class="link_parrafo"><strong>Educaci&oacute;n B&aacute;sica </strong></a></div></td>
                                    <td width="33%" height="26" bgcolor="#FFFFFF"><div align="center"><a href="frm_alumno_expv2_diversificado" class="link_parrafo"><strong>Diversificado</strong></a></div></td>
                                  </tr>
                                  <tr>
                                    <td colspan="3" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF"><form name="form1" method="post" action="">
                                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td colspan="3" class="lbl_campo"><div align="center">Agregar curso al expediente al &aacute;rea de primaria </div></td>
                                        </tr>
                                        <tr>
                                          <td width="75%" class="lbl_campo"><div align="center">Nombre del Curso</div></td>
                                          <td width="9%" class="lbl_campo"><div align="center">Nota</div></td>
                                          <td width="16%" class="lbl_campo"><div align="center">Fecha</div></td>
                                        </tr>
                                        <tr>
                                          <td class="lbl_campo"><div align="center">
                                            <input name="txtcurso" type="text" class="textbox" id="txtcurso" size="60" maxlength="100">
                                          </div></td>
                                          <td class="lbl_campo"><div align="center">
                                            <input name="txtnota" type="text" id="txtnota" size="3" maxlength="3">
                                          </div></td>
                                          <td class="lbl_campo"><div align="center">
                                            <input name="txtfecha" type="text" id="txtfecha" size="10" maxlength="10">
                                          </div></td>
                                        </tr>
                                      </table>
                                                                        </form>
                                    </td>
                                  </tr>
                                </table>
                                <br>
              </div></td>
              </tr>
          </table></td>
        </tr>
    </table>    </td>
  </tr>
</table>
</body>
</html>