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

if($idp){
 $id_p=dec($idp);
 $q=mysql_query("select * from preinscripciones where id = $id_p");
 $info=mysql_fetch_array($q);
}
$tipo="Inscribir";

$qgral=mysql_query("select * from general where id = 1");
$igral=mysql_fetch_array($qgral);

?>
<!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" type="text/JavaScript">

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function validar(formulario){
  var respuesta;
    
  if(document.form1.txtgrado.value=="SV"){
    alert("Seleccione un grado de estudios");
    document.form1.txtgrado.focus();
    return (false);
  }
  if(document.form1.txtseccion.value=="" || document.form1.txtseccion.value=="SV"){
    alert("Seleccione una sección");
    document.form1.txtseccion.focus();
    return (false);
  }
  if(document.form1.txtyear_estudio.value==""){
    alert("Debe ingresar el ciclo al que desea inscribir al alumno");
    document.form1.txtyear_estudio.focus();
    return (false);
  }
  if(document.form1.txtplanpago.value=="" || document.form1.txtplanpago.value=="SV"){
    alert("Seleccione un plan de pago");
    document.form1.txtplanpago.focus();
    return (false);
  }  
  if(document.form1.txtsexo.value=="SV"){
    alert("Seleccione el sexo del alumno");
    document.form1.txtsexo.focus();
    return (false);
  }
  if(document.form1.txtfnd.value==""){
    alert("Por favor ingrese la fecha de nacimiento");
    document.form1.txtfnd.focus();
    return (false);
  }
  if(document.form1.txtfnm.value=="SV"){
    alert("Por favor ingrese la fecha de nacimiento");
    document.form1.txtfnm.focus();
    return (false);
  }
  if(document.form1.txtfny.value==""){
    alert("Por favor ingrese la fecha de nacimiento");
    document.form1.txtfny.focus();
    return (false);
  }

  respuesta = confirm("Está seguro de inscribir a este(a) alumno(a)???");
  if(respuesta){
   return (true);
  }else{
   return (false);
  }
}

function valores(){
 alert("Grado: "+document.form1.txtgrado.value);
alert("Plan pago: "+document.form1.txtplanpago.value);
}

// CODIGO COMBOS SECCIONES POR GRADO
var grado= new Array();
var seccion_grado = new Array();
var plan_pago= new Array();
<?php
 $qgrado=mysql_query("select grados.id as idgrado, grados.grado, niveles.nivel, niveles.id as idnivel
                      from grados inner join niveles on niveles.id = grados.nivel
                      order by niveles.id, grados.id");

 $n=1;
 while($igrado=mysql_fetch_array($qgrado)){
  echo "grado[$n]='".$igrado[grado]." ".$igrado[nivel]."|".$igrado[idgrado]."';\n";
  $n++;
 }

 $qpp=mysql_query("select * from secciones_grados order by seccion");
 $n=0;
 while($ipp=mysql_fetch_array($qpp)){
  echo "seccion_grado[$n]='".$ipp[grado]."|".$ipp[seccion]."|".$ipp[id]."';\n";
  $n++;
 }
 
 $qpp=mysql_query("select * from cp_planesdepagos order by plan");
 $n=0;
 while($ipp=mysql_fetch_array($qpp)){
  echo "plan_pago[$n]='".$ipp[grado]."|  -".$ipp[plan]."|".$ipp[id]."';\n";
  $n++;
 }
?>


function llenar_seccion(){
 for(i=document.form1.txtseccion.length; i>-1; i--){
   document.form1.txtseccion.options[i]=null;
 }
 cont=0;
 document.form1.txtseccion.options[cont] = new Option ("Seleccione...","SV");
 cont++;
 var mGrado=document.form1.txtgrado.value;

 for(i=0;i<seccion_grado.length;i++){

   var tmp = seccion_grado[i].split("|");
   var encontrado=false;
   var tmp2 = tmp[0].split(",");

   for(k=0;k<=tmp2.length;k++){
     if (tmp2[k]==mGrado){
       encontrado = true;
     }
   }

   if(encontrado==true){
    document.form1.txtseccion.options[cont] = new Option (tmp[1], tmp[2]);
    cont++;
   }
 }
}

function llenar_planpago(){
 for(i=document.form1.txtplanpago.length; i>-1; i--){
   document.form1.txtplanpago.options[i]=null;
 }
 cont=0;
 document.form1.txtplanpago.options[cont] = new Option ("Seleccione...","SV");
 cont++;
 document.form1.txtplanpago.options[cont] = new Option ("Plan General","PG");
 cont++;
 
 var mGrado=document.form1.txtgrado.value;

 for(i=0;i<plan_pago.length;i++){

   var tmp = plan_pago[i].split("|");
   var encontrado=false;
   var tmp2 = tmp[0].split(",");

   for(k=0;k<=tmp2.length;k++){
     if (tmp2[k]==mGrado){
       encontrado = true;
     }
   }

   if(encontrado==true){
    document.form1.txtplanpago.options[cont] = new Option (tmp[1], tmp[2]);
    cont++;
   }
 }
}
// FIN CODIGO SECCIONES POR GRADOS

// CODIGO PARA DEPARTAMENTOS
var depto= new Array();
var municipio = new Array();
<?php
 $q=mysql_query("select * from departamentos order by departamento");
 echo mysql_error();
 while($idepto=mysql_fetch_array($q)){
  echo "depto[{$idepto[id]}]='".$idepto[departamento]."';\n";
 }

 $qm=mysql_query("select * from municipios order by departamento, municipio");
 $n=0;
 while($imun=mysql_fetch_array($qm)){
  echo "municipio[$n]='".$imun[departamento]."|".$imun[municipio]."|".$imun[id]."';\n";
  $n++;
 }
?>

function llenarm(){
 for(i=document.form1.txtdmunicipio.length; i>-1; i--){
   document.form1.txtdmunicipio.options[i]=null;
 }

 var mDepto=document.form1.txtddepto.value;

 cont=0;
 for(i=0;i<municipio.length;i++){
   var tmp = municipio[i].split("|");
   if(tmp[0]==mDepto){
    document.form1.txtdmunicipio.options[cont] = new Option (tmp[1], tmp[2]);
    cont++;
   }
 }
}
// FIN DEL CODIGO PARA DEPARTAMENTOS
</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="#E5E5E5">
      <tr bgcolor="#FFFFFF">
        <td width="40%" bgcolor="#FFFFD2"><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" 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="#FFFFCC"><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#333333">
            <tr align="center" valign="middle" bgcolor="#FFFFCC">
              <td height="20" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC" class="titulo_pagina"><div align="center" class="titulo_seccion">
                <div align="left" class="titulo_pagina">INSCRIPCION DE ALUMNOS PREINSCRITOS </div>
              </div></td>
            </tr>
            <tr>
              <td align="left" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC"><div align="left" class="parrafo">
                <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td>
                     <form action="<?=$PHP_SELF;?>" method="post" name="form2" id="form2">
                      <strong class="lbl_campo">Seleccione un alumno</strong>
                      <select name="txtalumno" class="textbox" id="txtalumno" onChange="MM_jumpMenu('self',this,0)">
                       <option value="#" selected>Seleccione uno...</option>
                       <?
                       $qpr=mysql_query("select preinscripciones.*, grados.grado as ngrado, niveles.nivel
                                         from preinscripciones inner join grados ON grados.id = preinscripciones.grado 
                                         inner join niveles ON niveles.id = grados.nivel
                                         where preinscripciones.inscrito='N' 
                                         order by niveles.id, grados.id, apellido, nombre");
                       while($ipr=mysql_fetch_array($qpr)){
                       ?>
                        <option value="<?=$PHP_SELF."?idp=".enc($ipr[id]);?>"><?=$ipr[ngrado]." ".$ipr[nivel]." | ".$ipr[apellido].", ".$ipr[nombre];?></option>
                       <?}?>
                      </select>

                      <input name="Submit" type="submit" class="boton_guardar" value="Continuar">
                    </form></td>
                  </tr>
                </table>
                <br>
                <?if(!$idp){exit();}?>
                <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><form action="mnt_alumno_info.php" method="post" name="form1" id="form1" onsubmit="return validar(this.form);">
                      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                              <tr bgcolor="#6699CC">
                                <td colspan="2" class="titulo_seccion"><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#CFDFEF">
                                    <tr bgcolor="#6699CC">
                                      <td width="81%" background="../images/tema/bg_titulo_frm.png" bgcolor="#6699CC" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="7%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                          <td width="93%" background="../images/tema/bg_titulo_frm.png"><div align="left">Informaci&oacute;n general del alumno
                                            <input name="idp" type="hidden" id="idp" value="<?=$idp;?>">
                                          </div></td>
                                        </tr>
                                      </table></td>
                                      <td width="19%" background="../images/tema/bg_titulo_frm.png" bgcolor="#6699CC" class="titulo_formulario">
                                        <div align="right">
                                          <input name="Submit22" type="submit" class="boton_guardar" value="Inscribir Alumno">
                                        </div></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr bgcolor="#A4DBFF" class="font_red_11">
                                <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" class="lbl_roja">Grado:</td>
                                <td width="85%" background="../images/tema/bg_frm_campos.png" class="lbl_roja">
                                  <select name="txtgrado" class="textbox" id="txtgrado" onchange="llenar_seccion();llenar_planpago();">
                                    <option value="SV">Seleccione uno...</option>
                                    <?
                    $qgrado=mysql_query("select grados.id as idgrado, grados.grado, niveles.nivel, niveles.id as idnivel
                                         from grados inner join niveles on niveles.id = grados.nivel
                                         order by niveles.id, grados.id");

                    while($igrado=mysql_fetch_array($qgrado)){
                      $sel="";
                      if($igrado[idgrado]==$info[grado]){
                        $sel="selected class='selected_option'";
                      }
                     echo "<option value='$igrado[idgrado]' $sel>{$igrado[grado]} {$igrado[nivel]}</option>";
                    }             
                    ?>
                                </select>                                  
                                  <strong>Secci&oacute;n: 
                                  <select name="txtseccion" class="textbox" id="txtseccion">
                                  <option value="SV">Seleccione...</option>
                                  <?
                                  $qsecciones=mysql_query("select * from secciones_grados where grado = '{$info[grado]}' and estado='A' order by seccion");
                                  while($iseccion=mysql_fetch_array($qsecciones)){
                                    $sel="";
                                    echo "<option value='{$iseccion[seccion]}' $sel>{$iseccion[seccion]}</option>";
                                  }
                                  ?>
                                  </select>
                                  </strong></td>
                              </tr>
                              <tr bgcolor="#A4DBFF" class="font_red_11">
                                <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" class="font_red_11"><strong class="lbl_roja">A&ntilde;o escolar: </strong></td>
                                <td background="../images/tema/bg_frm_campos.png"><input name="txtyear_estudio" type="text" class="font_red_11" id="txtyear_estudio" size="4" maxlength="4" value="<?=$igral[ciclo_inscripcion];?>"></td>
                              </tr>
                              <tr bgcolor="#A4DBFF" class="font_red_11">
                                <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" class="lbl_roja">Plan de pago: </td>
                                <td background="../images/tema/bg_frm_campos.png" class="lbl_roja">
                                <select name="txtplanpago" class="textbox" id="txtplanpago">
                                    <option value="SV" selected>Seleccione un plan</option>
                                    <option value="PG">Plan General</option>
                                  </select>
                                                            </tr>
                              <tr bgcolor="#E8E8E8">
                                <td width="15%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre(s)</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="left">
                                    <input name="txtnombre" type="text" class="textbox" id="txtnombre2" value="<?=$info[nombre];?>" size="60" maxlength="100">
                                </div></td>
                              </tr>
                              <tr bgcolor="#E8E8E8">
                                <td width="15%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Apellido(s)</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="left">
                                    <input name="txtapellido" type="text" class="textbox" id="txtapellido2" value="<?=$info[apellido];?>" size="60" maxlength="100">
                                </div></td>
                              </tr>
                              <tr bgcolor="#E8E8E8">
                                <td width="15%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n residencia </td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="left">
                                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr class="lbl_formulario">
                                        <td><div align="center">No.  de calle<br>
                      o avenida </div></td>
                                        <td><div align="center">N&uacute;mero <br>
                      de casa </div></td>
                                        <td><div align="center">Zona</div>                                          <div align="center"></div></td>
                                        <td width="12%"><div align="center">Colonia</div></td>
                                        <td width="44%"><div align="left"></div></td>
                                      </tr>
                                      <tr>
                                        <td width="15%"><div align="center">
                                            <input name="txtdcalleavenida" type="text" class="textbox" id="txtdcalleavenida2" size="15" maxlength="15" value="<?=$info[dcalle_avenida];?>">
                                        </div></td>
                                        <td width="7%"><div align="center">
                                            <input name="txtdnumcasa" type="text" class="textbox" id="txtdnumcasa2" size="6" maxlength="10" value="<?=$info[dnumero_casa];?>">
                                        </div></td>
                                        <td><div align="center">
                                            <input name="txtdzona" type="text" class="textbox" id="txtdzona2" size="3" maxlength="3" value="<?=$info[dzona];?>">
                                        </div>                                          <div align="center"></div></td>
                                        <td colspan="2">
                                          <div align="left">
                                            <input name="txtdcolonia" type="text" class="textbox" id="txtdcolonia2" size="30" maxlength="100" value="<?=$info[dcolonia];?>">
                                            </div></td>
                                        </tr>
                                      <tr class="font_red_11">
                                        <td><div align="center">Ej: 21 Avenida</div></td>
                                        <td><div align="center">1-57</div></td>
                                        <td><div align="center">3</div>                                          <div align="center"></div></td>
                                        <td colspan="2"><div align="left">Alamedas Sta. Clara </div>
                                          <div align="left"></div></td>
                                        </tr>
                                      <tr class="font_red_11">
                                        <td colspan="3" class="lbl_formulario">Departamento</td>
                                        <td colspan="2" class="lbl_formulario">Municipio</td>
                                        </tr>
                                      <tr class="font_red_11">
                                        <td colspan="3"><select name="txtddepto" class="textbox" id="select2" onchange="llenarm();">
                                          <?
                            $qd=mysql_query("select * from departamentos order by departamento");
                            while($id=mysql_fetch_array($qd)){
                              $sel="";
                              if($id[id]==$info[ddepto]){
                               $sel="selected";
                              }
                              echo "<option value='{$id[id]}' $sel>{$id[departamento]}</option>";
                            }
                           ?>
                                        </select>
                                          <input name="txtdp" type="hidden" id="txtdp" value="<?=$dp;?>"></td>
                                        <td colspan="2"><select name="txtdmunicipio" class="textbox" id="txtdmunicipio">
                                          <?
                            $qd=mysql_query("select * from municipios where departamento = {$info[ddepto]} order by municipio");
                            while($id=mysql_fetch_array($qd)){
                             $sel="";
                             if($id[id]==$info[dmunicipio]){
                               $sel="selected";
                             }
                              echo "<option value='{$id[id]}' $sel>{$id[municipio]}</option>";
                            }
                            ?>
                                        </select></td>
                                        </tr>
                                    </table>
                                </div></td>
                              </tr>
                              <tr bgcolor="#E8E8E8">
                                <td width="15%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s)</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="left"> <span class="lbl_campo"> Casa:</span>
                                        <input name="txttelefono" type="text" class="textbox" id="txttelefono2" value="<?=$info[tel_casa];?>" size="14" maxlength="10">
                                        <span class="lbl_campo">Tel&eacute;fono M&oacute;vil (Celular):
                                        <input name="txttelefonom" type="text" class="textbox" id="txttelefonom" value="<?=$info[tel_movil];?>" size="14" maxlength="10">
                                    </span></div></td>
                              </tr>
                              <tr bgcolor="#E8E8E8">
                                <td width="15%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Sexo</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><select name="txtsexo" class="textbox" id="select4">
                                    <option value="SV" selected>Seleccione uno...</option>
                                    <option value="M" <?if($info[sexo]=="M"){echo "selected";}?>>Masculino</option>
                                    <option value="F" <?if($info[sexo]=="F"){echo "selected";}?>>Femenino</option>
                                  </select>
                                    <div align="left"> </div></td>
                              </tr>
                              <tr bgcolor="#E8E8E8">
                                <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de Nacimiento </td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtlugarnac" type="text" class="textbox" id="txtlugarnac" value="<?=$info[lugar_nacimiento];?>" size="30" maxlength="24">
                                    <span class="lbl_campo">Fecha:</span>
                                    <input name="txtfnd" type="text" class="textbox" id="txtfnd" value="<?=day_of_date($info[fecha_nacimiento]);?>" size="3" maxlength="2">
            -
            <select name="txtfnm" class="textbox" id="txtfnm">
              <option value="SV">Seleccione uno...</option>
              <?
                      $mimes=month_of_date($info[fecha_nacimiento]);
                      if(strval(month_of_date($info[fecha_nacimiento]))<10){
                       $mimes=str_replace("0","",month_of_date($info[fecha_nacimiento]));
                      }
                      for($i=1;$i<=12;$i++){
                        $sel="";
                        if($i==$mimes){
                         $sel="selected";
                        }
                        echo "<option value='$i' $sel>".mes_letras($i)."</option>";
                      }
                      ?>
            </select>
            <input name="txtfny" type="text" class="textbox" id="txtfny" value="<?=year_of_date($info[fecha_nacimiento]);?>" size="5" maxlength="4">
            [dia-mes-a&ntilde;o] </td>
                              </tr>
                              <tr bgcolor="#E8E8E8">
                                <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Religi&oacute;n</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><select name="txtreligion" class="textbox" id="select6">
                                          <option value="SV">Seleccione una...</option>
                                          <?
                                          $qrel=mysql_query("select * from religiones order by id");
                                          while($irel=mysql_fetch_array($qrel)){
                                          $sel="";
                                          if($irel[id]==$info[religion]){
                                           $sel="selected class='selected_option'";
                                          }
                                          ?>
                                          <option value="<?=$irel[id];?>" <?=$sel;?>><?=$irel[religion];?></option>
                                          <?
                                          }
                                          ?>
                                </select></td>
                              </tr>
                              <tr bgcolor="#E8E8E8">
                                <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Correo Electr&oacute;nico </td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtmail" type="text" class="textbox" id="txtmail" value="<?=$info[mail];?>" size="60" maxlength="100"></td>
                              </tr>
                              <tr bgcolor="#E8E8E8">
                                <td width="15%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tipo de Sangre</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="left">
                                    <input name="txttiposangre" type="text" class="textbox" id="txttiposangre2" value="<?=$info[tipo_sangre];?>" size="6" maxlength="5">
                                </div></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                              <tr bgcolor="#6699CC">
                                <td colspan="2" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                    <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Informaci&oacute;n del padre</div></td>
                                  </tr>
                                </table></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre del padre</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtpadrenombre" type="text" class="textbox" id="txtpadrenombre2" value="<?=$info[padre_nombre];?>" size="60" maxlength="100"></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><textarea name="txtpadredireccion" cols="60" rows="3" class="textbox" id="textarea"><?=$info[padre_direccion];?></textarea></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s)</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="lbl_campo">Casa:
                                    <input name="txtpadretelefono" type="text" class="textbox" id="txtpadretelefono2" value="<?=$info[padre_telefono];?>" size="24" maxlength="24">
            Tel&eacute;fono M&oacute;vil (celular)
            <input name="txtpadretelefonom" type="text" class="textbox" id="txtpadretelefonom" value="<?=$info[padre_telefonom];?>" size="24" maxlength="24"></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de trabajo </td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtpadrelugartrabajo" type="text" class="textbox" id="txtpadrelugartrabajo2" value="<?=$info[padre_lugartrabajo];?>" size="60" maxlength="100">
                                    <span class="lbl_campo">Tel&eacute;fono:
                                    <input name="txtpadretelefonotrab" type="text" class="textbox" id="txtpadretelefonotrab" value="<?=$info[padre_teltrabajo];?>" size="24" maxlength="24">
                                  </span></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n de correo electr&oacute;nico </td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtpadremail" type="text" class="textbox" id="txtpadremail2" value="<?=$info[padre_mail];?>" size="60" maxlength="255">
                                </td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                              <tr bgcolor="#6699CC">
                                <td colspan="2" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                    <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Informaci&oacute;n de la madre </div></td>
                                  </tr>
                                </table></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre de la madre </td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtmadrenombre" type="text" class="textbox" id="txtnombrepadre24" value="<?=$info[madre_nombre];?>" size="60" maxlength="100"></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><textarea name="txtmadredireccion" cols="60" rows="3" class="textbox" id="txtmadredireccion"><?=$info[madre_direccion];?></textarea></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s)</td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><span class="lbl_campo">Casa: </span>
                                    <input name="txtmadretelefono" type="text" class="textbox" id="txtmadretelefono" value="<?=$info[madre_telefono];?>" size="30" maxlength="24">
                                    <span class="lbl_campo">Tel&eacute;fono M&oacute;vil (celular):
                                    <input name="txtmadretelefonom" type="text" class="textbox" id="txttelefonoencargado3223" size="24" maxlength="24" value="<?=$info[madre_telefonom];?>">
                                  </span></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de trabajo </td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtmadrelugartrabajo" type="text" class="textbox" id="txtmadrelugartrabajo" value="<?=$info[madre_lugartrabajo];?>" size="60" maxlength="100">
                                    <strong>Tel&eacute;fono:
                                    <input name="txtmadretelefonotrab" type="text" class="textbox" id="txtteltrabajopadre23" value="<?=$info[madre_teltrabajo];?>" size="24" maxlength="24">
                                  </strong></td>
                              </tr>
                              <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n de correo electr&oacute;nico </td>
                                <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtmadremail" type="text" class="textbox" id="txtmadremail" value="<?=$info[madre_mail];?>" size="60" maxlength="255">
                                    </td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                            <tr bgcolor="#6699CC">
                              <td colspan="2" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                  <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Informaci&oacute;n del encargado </div></td>
                                </tr>
                              </table></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre del encargado </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtencnombre" type="text" class="textbox" id="txtencnombre" value="<?=$info[enc_nombre];?>" size="60" maxlength="100"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Parentesco</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtencparentesco" type="text" class="textbox" id="txtencparentesco" value="<?=$info[enc_parentesco];?>" size="25" maxlength="25"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">No. c&eacute;dula</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtenccedula" type="text" class="textbox" id="txtenccedula" value="<?=$info[enc_cedula];?>" size="20" maxlength="20">
                                  <span class="lbl_campo"> Extendida en: </span>
                                  <input name="txtencextendidaen" type="text" class="textbox" id="txtencextendidaen" value="<?=$info[enc_cedulaextendidaen];?>" size="40" maxlength="100"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><textarea name="txtencdireccion" cols="60" rows="3" class="textbox" id="txtencdireccion"><?=$info[enc_direccion];?></textarea></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s):</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><span class="lbl_campo">Casa</span>:
                                  <input name="txtenctelefono" type="text" class="textbox" id="txtenctelefono" value="<?=$info[enc_telefono];?>" size="30" maxlength="24">
                                  <span class="lbl_campo"> Tel&eacute;fono M&oacute;vil (celular)</span>
                                  <input name="txtenctelefonom" type="text" class="textbox" id="txttelefonoencargado32223" value="<?=$info[enc_telefonom];?>" size="30" maxlength="24"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de trabajo</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtenclugartrabajo" type="text" class="textbox" id="txtenclugartrabajo" value="<?=$info[enc_lugartrabajo];?>" size="60" maxlength="100">
                                  <span class="lbl_campo">Tel&eacute;fono del trabajo
                                  <input name="txtenctelefonotrab" type="text" class="textbox" id="txtteltrabajopadre223" value="<?=$info[enc_teltrabajo];?>" size="24" maxlength="24">
                                </span></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n de correo electr&oacute;nico </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtencmail" type="text" class="textbox" id="txtencmail" value="<?=$info[enc_mail];?>" size="60" maxlength="255">
                                      </td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                            <tr bgcolor="#6699CC">
                              <td colspan="2" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                  <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Informaci&oacute;n para casos de emergencia </div></td>
                                </tr>
                              </table></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">En caso de una emergencia avisar a: </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtemgnombre" type="text" class="textbox" id="txtemgnombre" value="<?=$info[emg_avisara];?>" size="60" maxlength="100"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Parentesco</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtemgparentesco" type="text" class="textbox" id="txtemgparentesco" value="<?=$info[emg_parentesco];?>" size="30" maxlength="100"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><textarea name="txtemgdireccion" cols="60" rows="3" class="textbox" id="txtemgdireccion"><?=$info[emg_direccion];?></textarea></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s)</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><span class="lbl_campo">Casa:</span>
                                  <input name="txtemgtelefono" type="text" class="textbox" id="txtemgtelefono" value="<?=$info[emg_telefono];?>" size="30" maxlength="24">
                                  <span class="lbl_campo">Tel&eacute;fono M&oacute;vil (celular):
                                  <input name="txtemgtelefonom" type="text" class="textbox" id="txttelefonoencargado322222" value="<?=$info[emg_telefonom];?>" size="30" maxlength="24">
                                </span></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de trabajo </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtemglugartrabajo" type="text" class="textbox" id="txtemglugartrabajo" value="<?=$info[emg_lugartrabajo];?>" size="60" maxlength="100">                                  <span class="lbl_campo">Tel&eacute;fono del trabajo
                                  <input name="txtemgtelefonotrab" type="text" class="textbox" id="txtteltrabajopadre224" value="<?=$info[emg_teltrabajo];?>" size="24" maxlength="24">
                                      </span></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                            <tr bgcolor="#6699CC">
                              <td colspan="2"><div align="left" class="titulo_formulario">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                    <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Servicio de bus </div></td>
                                  </tr>
                                </table>
                              </div></td>
                            </tr>
                            <?
                  $chks=$chkn="";
                  if($info[bus]=="S"){
                    $chks="checked";
                  }
                  if($info[bus]=="N"){
                    $chkn="checked";
                  }

                  ?>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Desea obtener el <br>
      servicio de bus? </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>[Si
                                    <input name="txtbus" type="radio" value="S" <?=$chks;?>>
      ] [No
      <input name="txtbus" type="radio" value="N" <?=$chkn;?>>
      ]
       </strong></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <?
                        $chks=$chkh=$chkl=$chkp=$chkv=$chkr=$chka=$chkm=$chkne="";
                        if($info[sarampion]=="S"){$chks="checked";}
                        if($info[hepatitis]=="S"){$chkh="checked";}
                        if($info[laringitis]=="S"){$chkl="checked";}
                        if($info[paperas]=="S"){$chkp="checked";}
                        if($info[varicela]=="S"){$chkv="checked";}
                        if($info[rubeola]=="S"){$chkr="checked";}
                        if($info[amigdalitis]=="S"){$chka="checked";}
                        if($info[meningitis]=="S"){$chkm="checked";}
                        if($info[ningunaenfermedad]=="S"){$chkne="checked";}

                        ?>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                            <tr bgcolor="#6699CC">
                              <td colspan="2"><div align="left" class="titulo_formulario">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                    <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Enfermedades padecidas por el alumno(a) </div></td>
                                  </tr>
                                </table>
                              </div></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Sarampi&oacute;n</td>
                              <td width="78%" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtsarampion" type="checkbox" id="txtsarampion" value="S" <?=$chks;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Hepatitis</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthepatitis" type="checkbox" id="txthepatitis" value="S" <?=$chkh;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Laringitis</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtlaringitis" type="checkbox" id="txtlaringitis" value="S" <?=$chkl;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Paperas</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtpaperas" type="checkbox" id="txtpaperas" value="S" <?=$chkp;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Varicela</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtvaricela" type="checkbox" id="txtvaricela" value="S" <?=$chkv;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Rub&eacute;ola</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtrubeola" type="checkbox" id="txtrubeola" value="S" <?=$chkr;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Amigdalitis</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtamigdalitis" type="checkbox" id="txtvaricela3" value="S" <?=$chka;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Meningitis</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmeningitis" type="checkbox" id="txtvaricela4" value="S" <?=$chkm;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Ninguna enfermedad </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtningunaenfermedad" type="checkbox" id="txtningunaenfermedad" value="S" <?=$chkne;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Alguna otra enfermedad:</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtotraenfermedad" type="text" class="textbox" id="txtotraenfermedad" size="75" maxlength="255" value="<?=$info[otraenfermedad];?>">
                                  <strong>                                  <span class="lbl_campo">                                </span></strong></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <?
                        $huevo=$humedad=$aspirina=$frutas=$grama=$chocolates=$leche=$polvo=$antibiotico=$al_ninguna="";
                        if($info[al_huevo]=="S"){$huevo="checked";}
                        if($info[al_humedad]=="S"){$humedad="checked";}
                        if($info[al_aspirina]=="S"){$aspirina="checked";}
                        if($info[al_frutas]=="S"){$frutas="checked";}
                        if($info[al_grama]=="S"){$grama="checked";}
                        if($info[al_chocolate]=="S"){$chocolate="checked";}
                        if($info[al_leche]=="S"){$leche="checked";}
                        if($info[al_polvo]=="S"){$polvo="checked";}
                        if($info[al_antibiotico]=="S"){$antibiotico="checked";}
                        if($info[al_ninguna]=="S"){$al_ninguna="checked";}
                        ?>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                            <tr bgcolor="#6699CC">
                              <td colspan="2"><div align="left" class="titulo_formulario">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                    <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Informaci&oacute;n sobre alergias </div></td>
                                  </tr>
                                </table>
                              </div></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Huevo</td>
                              <td width="78%" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthuevo" type="checkbox" id="txthuevo" value="S" <?=$huevo;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Humedad</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthumedad" type="checkbox" id="txthumedad" value="S" <?=$humedad;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Aspirina</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtaspirina" type="checkbox" id="txtaspirina" value="S" <?=$aspirina;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Frutas</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtfrutas" type="checkbox" id="txtfrutas" value="S" <?=$frutas;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Grama</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtgrama" type="checkbox" id="txtgrama" value="S" <?=$grama;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Chocolates</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtchocolate" type="checkbox" id="txtchocolate" value="S" <?=$chocolate;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Leche</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtleche" type="checkbox" id="txtleche" value="S" <?=$leche;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Polvo</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtpolvo" type="checkbox" id="txtpolvo" value="S" <?=$polvo;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Antibi&oacute;tico</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtantibiotico" type="checkbox" id="txtmeningitis" value="S" <?=$antibiotico;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Ninguna alergia </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtningunaalergia" type="checkbox" id="txtantibiotico" value="S" <?=$al_ninguna;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Alguna otra alergia:</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtotraalergia" type="text" class="textbox" id="txtotraalergia" size="75" maxlength="255" value="<?=$info[otraalergia];?>">                                <strong>                                        <span class="lbl_campo">                                </span></strong></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <?
                        $donafen=$alcohol=$neobol=$acetaminofen=$milanta=$peptobismol=$loratadina=$axuaoxigenada="";
                        if($info[md_donafen]=="S"){$donafen="checked";}
                        if($info[md_alcohol]=="S"){$alcohol="checked";}
                        if($info[md_neobol]=="S"){$neobol="checked";}
                        if($info[md_acetaminofen]=="S"){$acetaminofen="checked";}
                        if($info[md_milanta]=="S"){$milanta="checked";}
                        if($info[md_peptobismol]=="S"){$peptobismol="checked";}
                        if($info[md_loratadina]=="S"){$loratadina="checked";}
                        if($info[md_aguaoxigenada]=="S"){$aguaoxigenada="checked";}
                        ?>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                            <tr bgcolor="#6699CC">
                              <td colspan="2"><div align="left" class="titulo_formulario">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                    <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Medicamentos que el alumno(a) puede utilizar </div></td>
                                  </tr>
                                </table>
                              </div></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Donaf&eacute;n</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtdonafen" type="checkbox" id="txtdonafen" value="S" <?=$donafen;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Alochol</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtalcohol" type="checkbox" id="txtalcohol" value="S" <?=$alcohol;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Neobol</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtneobol" type="checkbox" id="txtdonafen3" value="S" <?=$neobol;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Acetaminof&eacute;n</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtacetaminofen" type="checkbox" id="txtdonafen4" value="S" <?=$acetaminofen;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Milanta</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmilanta" type="checkbox" id="txtdonafen5" value="S" <?=$milanta;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Peptobismol</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtpeptobismol" type="checkbox" id="txtdonafen6" value="S" <?=$peptobismol;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Loratadina</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtloratadina" type="checkbox" id="txtdonafen7" value="S" <?=$loratadina;?>></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Agua Oxigenada </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>
                                <input name="txtaguaoxigenada" type="checkbox" id="txtdonafen8" value="S" <?=$aguaoxigenada;?>>
                                <span class="lbl_campo">                              </span></strong></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                            <tr bgcolor="#6699CC">
                              <td colspan="2"><div align="left" class="titulo_formulario">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                    <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Informaci&oacute;n del m&eacute;dico del alumno(a) </div></td>
                                  </tr>
                                </table>
                              </div></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre completo del m&eacute;dico</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtnombremedico" type="text" class="textbox" id="txtnombre3" size="75" maxlength="100" value="<?=$info[med_nombre];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n Cl&iacute;nica </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmedicodireccion" type="text" class="textbox" id="txtmedicodireccion" size="50" maxlength="100" value="<?=$info[med_direccion];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fonos de Cl&iacute;nica </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmedicotelefono" type="text" class="textbox" id="txttelefono4" size="24" maxlength="30" value="<?=$info[med_telefono];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono M&oacute;vil </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmedicomovil" type="text" class="textbox" id="txtmedicomovil" size="24" maxlength="30" value="<?=$info[med_movil];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Beeper</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmedicobeeper" type="text" class="textbox" id="txtmedicobeeper" size="50" maxlength="100" value="<?=$info[med_beeper];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo"><p>Nombre del hospital al que ebe ser enviado el alumno en caso de emergencia </p></td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthospital" type="text" class="textbox" id="txthospital" size="100" maxlength="100" value="<?=$info[med_hospital];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n de Hospital </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthospitaldireccion" type="text" class="textbox" id="txthospitaldireccion" size="50" maxlength="100" value="<?=$info[med_hospitaldireccion];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fonos del Hospital</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthospitaltelefonos" type="text" class="textbox" id="txtnombre9" size="50" maxlength="100" value="<?=$info[med_hospitaltelefono];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td colspan="2" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">&nbsp;</td>
                            </tr>
                            <?
                             if($info[med_servicioemg]=="S"){
                               $chkservicioemgS="checked";
                               $chkservicioemgN="";
                             }else{
                               $chkservicioemgN="checked";
                               $chkservicioemgS="";
                             }
                            ?>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Se encuentra afiliado a alguna empresa que preste servicio de emergencias<br>
      (Rescate 911, Alerta M&eacute;dica, etc)?</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>[Si
                                    <input name="txtservicioemg" type="radio" value="S" <?=$chkservicioemgS;?>>
      ] [No
      <input name="txtservicioemg" type="radio" value="N" <?=$chkservicioemgN;?>>
      ]</strong></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre de la empresa </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>
                                <input name="txtemgempresa" type="text" class="textbox" id="txtnombre10" size="50" maxlength="100" value="<?=$info[med_emgempresa];?>">
                                <span class="lbl_campo">                              </span> </strong></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fonos de la empresa </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtemgempresatelefono" type="text" class="textbox" id="txtnombre11" size="50" maxlength="100" value="<?=$info[med_emgempresatelefono];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">No. de Afiliaci&oacute;n </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtemgempresaafiliacion" type="text" class="textbox" id="txtnombre12" size="50" maxlength="100" value="<?=$info[med_emgempresaafiliacion];?>"></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                            <tr bgcolor="#6699CC">
                              <td colspan="2"><div align="left" class="titulo_formulario">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="2%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                    <td width="98%" background="../images/tema/bg_titulo_frm.png"><div align="left">Informaci&oacute;n para facturaci&oacute;n </div></td>
                                  </tr>
                                </table>
                              </div></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">A nombre de: </td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtfacturanombre" type="text" class="textbox" id="txtfacturanombre" size="75" maxlength="100" value="<?=$info[factura_nombre];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n:</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtfacturadireccion" type="text" class="textbox" id="txtfacturadireccion" size="50" maxlength="100" value="<?=$info[factura_direccion];?>"></td>
                            </tr>
                            <tr align="left" valign="middle" bgcolor="#E8E8E8">
                              <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">NIT:</td>
                              <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>
                                <input name="txtfacturanit" type="text" class="textbox" id="txtfacturanit" size="10" maxlength="10" value="<?=$info[factura_nit];?>">
                                <strong><span class="lbl_campo">
                                <input name="idi" type="hidden" id="idi5" value="<?=$idi;?>">
                                <strong><strong>
                                <input name="tipo_trn" type="hidden" id="idi6" value="<?=$tipo;?>">
                                </strong></strong> </span></strong>                                <span class="lbl_campo">                              </span> </strong></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="33%" background="../images/tema/bg_frm_campos.png"><div align="center">
                                <input name="Submit2" type="submit" class="boton_guardar" value="Inscribir Alumno">
                              </div></td>
                              <td width="33%" background="../images/tema/bg_frm_campos.png"><div align="center">
                                <input name="Submit4" type="reset" class="boton_deshacer" value="Recargar Informaci&oacute;n">
                              </div></td>
                              <td width="33%" background="../images/tema/bg_frm_campos.png"><div align="center"></div></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table>
                    </form></td>
                  </tr>
                </table>
              </div></td>
              </tr>
          </table></td>
        </tr>
    </table>    </td>
  </tr>
</table>
</body>
</html>
