<?
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>
</head>

<body bgcolor="<?=$c_fondo['fondo']?>">
<table width="816" border="0" cellspacing="0" cellpadding="0">
  <tr><!--  enviar_mov.php-->
  <form name="form1" method="post" action="cvp_solicitud_pass_detalle_sel.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="3"><div align="left">Detalle de Pasajeros</div></td>
          </tr>
          <tr class="lblCampoBlanco" bgcolor="<?=$c_fondo_tr["fondo tr"]?>">
            <td>
			  <div align="left">Buscar por </div>
			</td>
            <td><div align="left"></div></td>
            <td width="446"><div align="center"></div>              <div align="center"></div>              <div align="center"></div>              <div align="center"></div></td>
            </tr>
          <tr>
            <td width="108"><div align="left">
                <span class="lblForm">
                <select name="tipo" id="tipo">
                  <option value="todos" <? if($tipo=="todos"){?> selected <? }?>>Todos</option>
                  <option value="appat_per" <? if($tipo=="appat_per"){?> selected <? }?>>Apellidos</option>
                  <option value="dociden_per" <? if($tipo=="dociden_per"){?> selected <? }?>>Doc. Identidad</option>
                </select>
                </span>
                
</div>
                <div align="left"> </div>
                <div align="center">     
                </div></td>
            <td width="256"><input name="des" type="text" id="appat_per2" size="50" ></td>
            <td>                <div align="left">
                  <input name="codigo_mpass" type="hidden" size="3" id="codigo_mpass">
                  <input name="dociden_per" type="hidden" size="5" id="dociden_per2">
                  <input name="Submit22" type="submit" style="<?=$stylo['st2']?>" class="botira" value="Buscar" >
            </div></td>
            </tr>
          <tr>
            <td colspan="3"><div align="center">
                <table width="814" border="0" cellspacing="0" cellpadding="0" style="<?=$stylo['tabla']?>" bgcolor="<?=$c_fondo['fondo tabla']?>" bordercolor="<?=$bordetabla?>">
                  <? 	
$n=0;
if (isset($solicitud)){
while(list($clave,$valor)=each($solicitud)){
$dociden=$valor[0];
$viasoli=$valor[1];
$fechasoli=$valor[2];
$cod_soli=$valor[3];

$n++; 
		  $resultado=$objPer->devolverPer($dociden);
		  $filas=$objPer->NextRow($resultado);  
?>
                  <?
//if ($linea){$color = "#ECE9D8";$linea=0;}else{$color = "#D4D0C8";$linea++;}
?>
                  <tr class="lblForm" >
                    <td width="82" >                      
                      <div align="left"> <? echo $dociden?></div>                      
                      <div align="center">
                      </div></td>
                    <td width="409" ><div align="left"><? echo $filas['nombres'];?>  </div></td>
                    <td width="98"><div align="center"><?php echo $filas['razon_emp']; ?> </div></td>
                    <td width="101"><div align="center"><?php echo $fechasoli; ?></div></td>
                    <td width="99"><div align="center"><?php echo $viasoli; ?></div></td>
                    <td width="25"><div align="center"> 
					<a href="procesos/cvp_solicitud_pass_detalle_sel_delete.php?item=<? echo $clave?>">
					<img src="../imagenes/btn_eliminar.gif" width="15" height="15" border="0">
					</a> 
					</div></td>
                  </tr>
                  <?  
	} ?>
                  <? } ?>
                </table>
            </div></td>
          </tr>
        </table>
     
        </div></td>
    </form>
  </tr>
  
  
</table>
</body>
</html>
