<?php
session_start();

  include("stilos/config.inc.php");
  include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  include("funcion/funciones.php");
  include("Funciones.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><MMString:LoadString id="insertbar/formsHidden" /></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">

<link href="stilos/Estilos.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="../../desing/estilos_viajes_edit.css">
<!-- Copyright 2000,2001 Macromedia, Inc. All rights reserved. -->

<script language="JavaScript"> 
<!--
function print_1(sURL,x,y) {
if (!window.focus) return;
			var par;
			par = "width=" +x + ",height="+y+","
			par = par + "dependent=no,scrollbars=yes,resizable=yes,"
			par = par + "menubar=no,toolbar=no,status=no"
			var ventana = window.open(sURL,"Ver",par)
			ventana.focus();
}
//--> 
</script>
<script language="JavaScript"> 
function PrintReport(sURL,param,x,y) { 
if (!window.focus) return;
			var par;
			par = "width=" +x + ",height="+y+","
			par = par + "dependent=no,scrollbars=yes,resizable=yes	"
			par = par + "menubar=no,toolbar=no,status=yes"
			sURL = sURL + param
			var ventana = window.open(sURL,"Consolidado",par)
			ventana.focus();
}
</script>
<script language="javascript" src="../../js/isiAJAX.js"></script>
<SCRIPT language=JavaScript src="js/calendario.js"></SCRIPT>
<script language="javascript" type="text/javascript">
  function volver(){
     window.location="fondo.php";
                   }
</script>
<script type="text/javascript" src="ajax_reporte.js"></script>
</head>

<body background="../imagenes/fondo.jpg">
<table width="891" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="25"><img src="../estilo_tabla/parte_sup_izq.gif" width="25" height="25"></td>
    <td width="841" background="../estilo_tabla/parte_sup_cen.gif" valign="bottom">
      <div align="left" class="lblTitulo" >LOCACION DEL  PERSONAL LOTE 67 </div></td>
    <td width="25"><img src="../estilo_tabla/parte_sup_der.gif" width="25" height="25" border="0" usemap="#MapMap"></td>
  </tr>
  <tr>
    <td width="25" background="../estilo_tabla/parte_med_izq.gif">&nbsp;</td>
    <td width="841" height="86" background="../estilo_tabla/parte_med_cen.gif"><div align="center">
        <table width="835" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="15"><div align="center"></div></td>
          </tr>
          <tr>
            <form action="" method="post" name="form1">
              <td height="15">
                <div align="left" class="lblForm">
                  <table width="829" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><div align="left"></div></td>
                      <td width="380"><div align="left"></div></td>
                      <td><div align="left"></div></td>
                      <td><div align="left"></div></td>
                      <td><div align="left"></div></td>
                      <td><div align="center"></div></td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td colspan="6"><div align="left">
                        <table width="632" border="0">
                          <tr>
                            <td width="27">&nbsp;</td>
                            <td width="106">Tipo</td>
                            <td width="135">Descripcion</td>
                            <td width="113"><div align="center">Ubicacion</div></td>
                            <td width="65"><input name="emp" type="hidden" id="emp" value="0"></td>
                            <td width="160">&nbsp;</td>
                          </tr>
                          <tr>
                            <td><div align="center">
                              <input name="sel" type="radio" value="1" id="sel">
                            </div></td>
                            <td><div align="left">
                              <select name="tipo" id="tipo">
                                <option value="0">Todos</option>
                                <option value="apellido">Apellido</option>
                                <option value="dociden_per">DNI</option>
                              </select>
                              </div></td>
                            <td><div align="left">
                              <input name="des" type="text" id="des" size="25">
                            </div></td>
                            <td><div align="center">
                              <select name="destino" id="destino">
                                <option value="0" <? if($destino=="0"){?> selected <? }?>>Seleccione</option>
                                <? 
						    echo $objPer->getCboLugaresDef($destino);
						?>
                              </select>
                            </div></td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                          </tr>
                        </table>
                      </div></td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td colspan="6"><div align="left"></div></td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr valign="bottom">
                      <td colspan="6"><div align="left">
                        <table width="151" border="0">
                          <tr>
                            <td width="46"><div align="left">Dia</div></td>
                            <td width="47"><div align="left">Mes</div></td>
                            <td width="44"><div align="left">A&ntilde;o
                              <input name="days1" type="hidden" id="days1" value="01">
                            </div></td>
                          </tr>
                          <tr>
                            <td><div align="left">
                                <select name="days" id="days">
                                  <?=getCboDias($days);?>
                                </select>
                            </div></td>
                            <td><div align="left">
                                <select name="month" id="month">
                                  <?=getCboMeses($month);?>
                                </select>
                            </div></td>
                            <td><div align="left">
                                <select name="year" id="year" onkeyup=fn(this.form,this)>
                                  <?=getCboAnnos($year);?>
                                </select>
                            </div></td>
                          </tr>
                        </table>
                      </div></td>
                      <td><div align="left">
                        <input type="button" name="Submit" value="Visualizar" style="<?=$stylo['st2']?>" class="botira" onClick="javascript:ReporteLocPer()">
                      </div></td>
                      <td><div align="left">
                        <input type="button" name="Submit3" value="Imprimir" style="<?=$stylo['st2']?>" class="botira" onClick="PrintReport('p_per_loc_print.php?','&tipo='+tipo.value+'&des='+des.value+'&days='+days.value+'&days1='+days1.value+'&month='+month.value+'&year='+year.value,600,800)">
                      </div></td>
                    </tr>
                    <tr>
                      <td width="34">&nbsp;                        </td><td>
                          <!--<select name="matricula" id="select2" onkeyup=fn(this.form,this)>
                            <option value="0">Ninguno</option> -->                          <!-- </select> -->
                          </td>
                      <td width="40">&nbsp;</td>
                      <td width="48">&nbsp;</td>
                      <td width="47">&nbsp;</td>
                      <td width="124">
                        <div align="center"></div></td>
                      <td width="72">
                        <div align="left"></div></td>
                      <td width="84"><div align="left"></div></td>
                    </tr>
                  </table>
              </div></td>
            </form>
          </tr>
          <tr class="lblCampo">
            <td><div align="left" id="cuerpo"><? //include("p_per_loc_cuerpo.php");?></div></td>
          </tr>
		  <?
		  /* $rss=$objPer->manpercar($matricula,extraerfechamysql($fecha1),extraerfechamysql($fecha2));
		  //$aaa=$objPer->totalrows($rss);
		  while($rowss=$objPer->NextRow($rss))
          {	 */
		  	  
		  ?>
          <tr class="lblCampo">
            <td><div align="left"></div></td>
          </tr>
		  <?
		  /* }
			$objPer->Liberar($rss); */
		  ?>
          <tr>
		  
            <td><div align="center" id="mensaje"></div></td>
			
          </tr>
        </table>
    </div></td>
    <td background="../estilo_tabla/parte_med_der.gif">&nbsp;</td>
  </tr>
  <tr>
    <td><img src="../estilo_tabla/parte_inf_izq.gif" width="25" height="25"></td>
    <td background="../estilo_tabla/parte_inf_cen.gif">&nbsp;</td>
    <td><img src="../estilo_tabla/parte_inf_der.gif" width="25" height="25"></td>
  </tr>
</table>
<map name="MapMap">
  <area shape="rect" coords="2,5,22,21" href="fondo.php">
</map>
<map name="Map">
  <area shape="rect" coords="2,5,22,21" href="fondo.php">
</map>
</body>

</html>

