<?
session_start();
  include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  include("Funciones.php");
  include("stilos/config.inc.php");
  $objPer=new clsPer;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
<link href="Estilos.css" rel="stylesheet" type="text/css">
<script language="JavaScript"> 
<!--
//sURL,x,y
function Abrir_Ventanapopup1(sURL,x,y) { 
/*var especificaciones="top=0, left=0, toolbar=no,location=no, status=yes,menubar=no,scrollbars=no, resizable=no, width=1,height=1" 
var titulo="Titulo"
window.open(el_url,titulo,especificaciones);*/ 

if (!window.focus) return;
			var par;
			par = "width=" +x + ",height="+y+","
			par = par + "dependent=no,scrollbars=yes,resizable=no"
			par = par + "menubar=no,toolbar=no,status=yes"
			var ventana = window.open(sURL,"Ver",par)
			ventana.focus();
}
//--> 
</script>
<script language="javascript">
<!--
/*var msg = "Función anulada.";
function RClick(boton){
if (document.layers && boton.which == 3) {
alert(msg); return false; }
if (document.all && event.button == 2 || event.button == 3) {
alert(msg); return false; }
}
document.onmousedown = RClick*/
//-->
</script>
</head>

<body bgcolor="<?=$c_fondo['fondo']?>">
<table width="816" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <form name="form1" method="post" action="enviar_per_family01.php">
    <td><div align="left">
      
        <table width="815" border="1" cellspacing="0" cellpadding="0" bordercolor="<?=$bordetabla?>" bgcolor="<?=$c_fondo['fondo tabla']?>" style="<?=$stylo['tabla']?>">
          <tr class="lblCampoBlanco" bgcolor="<?=$c_fondo_tr["fondo tr"]?>">
            <td colspan="6"><div align="left">Detalle de los Familiares del Personal :<? echo $mat_trans."-".$tipo_trans;?></div></td>
          </tr>
          <tr class="lblCampo" bgcolor="<?=$c_fondo_tr["fondo tr"]?>">
            <td width="136"><div align="center">Familiar</div></td>
            <td><div align="center">Nombre</div></td>
            <td width="167"><div align="center">Apellido Pat.</div></td>
            <td width="180">			<div align="center">Apellido Mat.                     
			</div></td>
            <td width="103"><div align="center">Fecha Nac.</div></td>
            <td><? echo count($pasajes);?></td>
          </tr>
          <tr>
            <td><div align="left">
              </div>
                <div align="center">
                  <select name="tipo_f" id="tipo_f">
                    <option value="CONYUGUE">CONYUGUE</option>
                    <option value="HIJO">HIJO(A)</option>
                                    </select> 
                </div></td>
            <td width="172">                <div align="left">
              <input name="nom_f" type="text" id="nom_f" size="30">
            </div></td>
            <td>
              <div align="left">
                <input name="appat_f" type="text" id="appat_f" size="30">
              </div></td>
            <td>
              <div align="left">
                <input name="apmat_f" type="text" id="apmat_f" size="30">
              </div></td>
            <td>
              <div align="center">
                <input name="fnac_f" type="text" id="fnac_f" size="12" maxlength="10">
              </div></td>
            <td width="46"><input name="Submit22" type="submit" style="<?=$stylo['st2']?>" class="botira" value="&gt;&gt;&gt;" >              </td>
          </tr>
          <tr>
            <td colspan="6"><div align="center">
                <table width="814" border="0" cellspacing="0" cellpadding="0" style="<?=$stylo['tabla']?>" bgcolor="<?=$c_fondo['fondo tabla']?>" bordercolor="<?=$bordetabla?>">
                  <?
//$existecod=$objPer->ExisteFamiliar($dociden_per);
//if($existecod!=0){		
/*if($q==1){	   
$resultado=$objPer->getFamiliar($dociden_per);	
while($filas=$objPer->NextRow($resultado)){
	$tipo_f=$filas['tipo_f'];
	$nom_f=$filas['nom_f'];
	$appat_f=$filas['appat_f'];
	$apmat_f=$filas['apmat_f'];
	$fnac_f=$filas['fnac_f'];
	$cod_f=$filas['cod_f'];
	$familiar[]=array("$tipo_f",$nom_f,$appat_f,$apmat_f,$fnac_f,$cod_f);
}
}*/
//}		  	
$n=0;
if (isset($familiar)){
while(list($clave,$valor)=each($familiar)){
$tipo_f=$valor[0];
$nom_f=$valor[1];
$appat_f=$valor[2];
$apmat_f=$valor[3];
$fnac_f=$valor[4];
$cod_f=$valor[5];
$n++; 
	
	$resultados=$objPer->getFamiliar(dociden_per);	
	$filass=$objPer->NextRow($resultados);  
?>
                  <?
//if ($linea){$color = "#ECE9D8";$linea=0;}else{$color = "#D4D0C8";$linea++;}
?>
                  <tr class="lblForm" >
                    <td width="133" >
                      <div align="center"> </div>
                      <div align="center">
					  <? echo $tipo_f?>					  </div></td>
                    <td width="166">
                      <div align="left"><? echo $nom_f?></div></td>
                    <td width="209">                        <div align="left"><? echo $appat_f?></div></td>
                    <td width="151"> <div align="left"><? echo $apmat_f?> <? //echo $cod_f?></div></td>
                    <td width="112"><div align="center"><? echo $fnac_f?></div>                      
					</td>
                    <td width="43"><div align="center"> 
					<a href="procesos/cvp_det_family_sel_borrar01.php?item=<? echo $clave?>&cod_f=<? echo $cod_f?>">
					<img src="../imagenes/btn_eliminar.gif" width="15" height="15" border="0">
					</a> 
					</div></td>
                  </tr>
                  <?  
	} ?>
                  <? } ?>
                  <tr class="lblForm" >
                    <td>&nbsp;</td>
                    <td><div align="center"></div></td>
                    <td><div align="center"></div></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                </table>
            </div></td>
          </tr>
        </table>
     
        </div></td>
    </form>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  
</table>
</body>
</html>
