<?php

header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=Reporte_comprobantes_aceptados.xls");

 include ("../conexion.php");	

       $parametros = "SELECT * FROM web_0000 ";
       $result_parametros = $mysqli->query($parametros);
       $row_para = $result_parametros->fetch_array();
     
	   $NombreComercial =  $row_para["NOMCOM"];
	   $Razon           =  $row_para["RAZSOC"];
	   $Direccion       =  $row_para["DIREMP"];
	   $Cedula          =  $row_para["CEDJUR"];
	   $Telefono        =  $row_para["NUMTEL"];
	   
	 $cedcli    = $_GET["cedcli"];
	 $fecini    = $_GET["fechainicio"];
	 $fecfin    = $_GET["fechafin"];
	 $cdgtipven = $_GET["combotipoventa"];
	 $cdgcaj    = $_GET["cdgcaj"];
	 $combotipomoneda    = $_GET["combotipomoneda"];
	 

	 
 $fechainicio= implode("-", array_reverse(explode("-", $fecini))); 
 $fechafin= implode("-", array_reverse(explode("-", $fecfin))); 
 
 
$where="1=1";
//if ($cedcli <> "") { $where.=" AND numcedemi like '%".$cedcli."%'"; }
if ($cedcli <> "") { $where.=" AND numcedemi ='".$cedcli."'"; }

if (($fechainicio<>"") and ($fechafin<>"")) {


			
	 $where.=" AND mensaje_receptor.feccorcomp between '".$fechainicio."' AND '".$fechafin."'";
} else {
	if ($fechainicio<>"") {
	 	$where.=" AND mensaje_receptor.feccorcomp>='".$fechainicio."'";
	} else {
		if ($fechafin<>"") {
		$where.=" AND mensaje_receptor.feccorcomp<='".$fechafin."'";
		}
	}
}



			
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Reporte de Comprobantes Aceptados Resumido x Proveedor</title>
<style type="text/css">
<!--
.Estilo1 {color: #CCCCCC}
.Estilo4 {font-size: medium}
.Estilo6 {
	color: #000000;
	font-weight: bold;
}
.Estilo17 {color: #000000; font-weight: bold; font-size: 14px; }
-->
</style>
</head>
<body>
<table width="92%" border="0" cellspacing="0" cellpadding="0">
    
    <tr>
      <td><div align="center"></div></td>
      <td colspan="8"  ><div align="center"><font size=5 ><?php echo $NombreComercial?></font></div>
      <div align="center"></div><div align="center"></div></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td colspan="8" ><div align="center"><font size="3" ><?php echo $Razon?></font></div></td>
    </tr>
    <tr>
      <td><div align="center"></div></td>
      <td colspan="8" ><div align="center"><font size="2" ><?php echo $Cedula; ?></font></div></td>
    </tr>
    <tr>
      <td><div align="center"></div></td>
      <td colspan="8" ><div align="center"><font size="2" ><?php echo $Direccion; ?></font></div></td>
    </tr>
    <tr>
      <td><div align="center"></div></td>
      <td colspan="8" ><div align="center"><font size="2" ><?php echo $Telefono; ?></font></div></td>
    </tr>
    <tr>
      <td><span class="Estilo1"></span></td>
      <td colspan="8" ><span class="Estilo1"></span></td>
    </tr>
  <tr>
     <td></td>
 <td colspan="8"  bgcolor="skyblue"><div align="center"><strong><font size="3" >Reporte de Comprobantes Aceptados Resumido x Proveedor</font>  </div></td>
  </tr>
     
<tr>
<td></td>
<td colspan="8"   border="1"><div align="center"><font size="3" >Fecha del <?php echo $fecini; ?> Al <?php echo $fecfin; ?></font></div></td>
</tr>

<?php  
 /*   		 
SI ES DOLARES  
 */  
?>

<tr>
   <td></td>
 <td colspan="8"  bgcolor="#FF9900"><div align="center"><strong><font size="3" >FACTURAS EN DOLARES</font>  </div></td>
</tr>
     	 
   <tr>
    <td width="1%"></td>
    <td width="20%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Cedula</strong></font></span></td>
    <td width="30%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Proveedor</strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Exento </strong></font></span></td> 
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Gravado </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Subtotal </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Descuento </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Impuesto </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Total </strong></font></span></td>
  </tr>
  
<?PHP
		

	// $consulta = "SELECT * FROM mensaje_receptor WHERE ".$where." ORDER BY tipcom , feccomp ASC";
	 
	  $consulta="SELECT  numcedemi, dscnomemi,  fecmen,  feccomp, tipcom, sum(subtotgra) as subtotgra , sum(subtotexe) as subtotexe ,  sum(subtotal) as subtotal , sum(totdes) as totdes, sum(monimp) as monimp, sum(totcomp) as totcomp  FROM mensaje_receptor WHERE tipcom= 'FAC'  AND tipmoneda='USD' AND ".$where." GROUP BY numcedemi ORDER BY dscnomemi  ASC "  ;

if ($resultado = $mysqli->query($consulta)) 

 
    while ($fila = $resultado->fetch_assoc()) {
     
	    $numcedemi  = $fila["numcedemi"];
		$dscnomemi  = $fila["dscnomemi"];
		$subtotgra  = $fila["subtotgra"];
		$subtotexe  = $fila["subtotexe"];
        $subtotal   = $fila["subtotal"];			
        $totdes     = $fila["totdes"];	
        $monimp     = $fila["monimp"];
		$totcomp    = $fila["totcomp"];

        
		if ($monimp ==" ")  { $monimp = 0 ; 	}
		

?>  

  <tr>
   <td></td>
   <td align="center"><font size=1><?php echo $numcedemi ?></font></td>
   <td align="left"><font size=1  ><?php echo $dscnomemi ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotgra,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotexe,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotal,2)  ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totdes,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($monimp,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totcomp,2)   ?></font></td>
 </tr>
 
	
<table width="92%" border="0" cellspacing="0" cellpadding="0">
 <?PHP   
	
	}

?>

<tr></tr>
<tr>
   <td></td>
 <td colspan="8"  bgcolor="#FF9900"><div align="center"><strong><font size="3" >NOTAS DE CREDITO</font>  </div></td>
</tr>
     	 
   <tr>
    <td width="1%"></td>
    <td width="20%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Cedula</strong></font></span></td>
    <td width="30%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Proveedor</strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Exento </strong></font></span></td> 
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Gravado </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Subtotal </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Descuento </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Impuesto </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Total </strong></font></span></td>
  </tr>
  
<?PHP
		

	// $consulta = "SELECT * FROM mensaje_receptor WHERE ".$where." ORDER BY tipcom , feccomp ASC";
	 
	  $consulta="SELECT  numcedemi, dscnomemi,  fecmen,  feccomp, tipcom, sum(subtotgra) as subtotgra , sum(subtotexe) as subtotexe ,  sum(subtotal) as subtotal , sum(totdes) as totdes, sum(monimp) as monimp, sum(totcomp) as totcomp  FROM mensaje_receptor WHERE tipcom= 'NC'  AND tipmoneda='USD' AND ".$where." GROUP BY numcedemi ORDER BY dscnomemi  ASC "  ;

if ($resultado = $mysqli->query($consulta)) 

 
    while ($fila = $resultado->fetch_assoc()) {
     
	    $numcedemi  = $fila["numcedemi"];
		$dscnomemi  = $fila["dscnomemi"];
		$subtotgra  = $fila["subtotgra"];
		$subtotexe  = $fila["subtotexe"];
        $subtotal   = $fila["subtotal"];			
        $totdes     = $fila["totdes"];	
        $monimp     = $fila["monimp"];
		$totcomp    = $fila["totcomp"];

        
		if ($monimp ==" ")  { $monimp = 0 ; 	}
		

?>  

  <tr>
   <td></td>
   <td align="center"><font size=1><?php echo $numcedemi ?></font></td>
   <td align="left"><font size=1  ><?php echo $dscnomemi ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotgra,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotexe,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotal,2)  ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totdes,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($monimp,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totcomp,2)   ?></font></td>
 </tr>
 
	
<table width="92%" border="0" cellspacing="0" cellpadding="0">
 <?PHP   
	
	}

?>

<tr></tr>
<tr>
   <td></td>
 <td colspan="8"  bgcolor="#FF9900"><div align="center"><strong><font size="3" >NOTAS DE DEBITO</font>  </div></td>
</tr>
     	 
   <tr>
    <td width="1%"></td>
    <td width="20%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Cedula</strong></font></span></td>
    <td width="30%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Proveedor</strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Exento </strong></font></span></td> 
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Gravado </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Subtotal </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Descuento </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Impuesto </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Total </strong></font></span></td>
  </tr>
  
<?PHP
		

	// $consulta = "SELECT * FROM mensaje_receptor WHERE ".$where." ORDER BY tipcom , feccomp ASC";
	 
	  $consulta="SELECT  numcedemi, dscnomemi,  fecmen,  feccomp, tipcom, sum(subtotgra) as subtotgra , sum(subtotexe) as subtotexe ,  sum(subtotal) as subtotal , sum(totdes) as totdes, sum(monimp) as monimp, sum(totcomp) as totcomp  FROM mensaje_receptor WHERE tipcom= 'ND'  AND tipmoneda='USD' AND ".$where." GROUP BY numcedemi ORDER BY dscnomemi  ASC "  ;

if ($resultado = $mysqli->query($consulta)) 

 
    while ($fila = $resultado->fetch_assoc()) {
     
	    $numcedemi  = $fila["numcedemi"];
		$dscnomemi  = $fila["dscnomemi"];
		$subtotgra  = $fila["subtotgra"];
		$subtotexe  = $fila["subtotexe"];
        $subtotal   = $fila["subtotal"];			
        $totdes     = $fila["totdes"];	
        $monimp     = $fila["monimp"];
		$totcomp    = $fila["totcomp"];

        
		if ($monimp ==" ")  { $monimp = 0 ; 	}
		

?>  

  <tr>
   <td></td>
   <td align="center"><font size=1><?php echo $numcedemi ?></font></td>
   <td align="left"><font size=1  ><?php echo $dscnomemi ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotgra,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotexe,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotal,2)  ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totdes,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($monimp,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totcomp,2)   ?></font></td>
 </tr>
 
	
<table width="92%" border="0" cellspacing="0" cellpadding="0">
 <?php   
	
	}

/**si es en colones*/
?>

<tr></tr>
<tr>
   <td></td>
 <td colspan="8"  bgcolor="#FF9900"><div align="center"><strong><font size="3" >FACTURAS EN COLONES</font>  </div></td>
</tr>
     	 
   <tr>
    <td width="1%"></td>
    <td width="20%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Cedula</strong></font></span></td>
    <td width="30%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Proveedor</strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Exento </strong></font></span></td> 
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Gravado </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Subtotal </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Descuento </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Impuesto </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Total </strong></font></span></td>
  </tr>
  
<?PHP
		

	// $consulta = "SELECT * FROM mensaje_receptor WHERE ".$where." ORDER BY tipcom , feccomp ASC";
	 
	  $consulta="SELECT  numcedemi, dscnomemi,  fecmen,  feccomp, tipcom, sum(subtotgra) as subtotgra , sum(subtotexe) as subtotexe ,  sum(subtotal) as subtotal , sum(totdes) as totdes, sum(monimp) as monimp, sum(totcomp) as totcomp  FROM mensaje_receptor WHERE tipcom= 'FAC'  AND tipmoneda!='USD' AND ".$where." GROUP BY numcedemi ORDER BY dscnomemi  ASC "  ;

if ($resultado = $mysqli->query($consulta)) 

 
    while ($fila = $resultado->fetch_assoc()) {
     
	    $numcedemi  = $fila["numcedemi"];
		$dscnomemi  = $fila["dscnomemi"];
		$subtotgra  = $fila["subtotgra"];
		$subtotexe  = $fila["subtotexe"];
        $subtotal   = $fila["subtotal"];			
        $totdes     = $fila["totdes"];	
        $monimp     = $fila["monimp"];
		$totcomp    = $fila["totcomp"];

        
		if ($monimp ==" ")  { $monimp = 0 ; 	}
		

?>  

  <tr>
   <td></td>
   <td align="center"><font size=1><?php echo $numcedemi ?></font></td>
   <td align="left"><font size=1  ><?php echo $dscnomemi ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotgra,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotexe,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotal,2)  ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totdes,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($monimp,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totcomp,2)   ?></font></td>
 </tr>
 
	
<table width="92%" border="0" cellspacing="0" cellpadding="0">
 <?PHP   
	
	}

?>

<tr></tr>
<tr>
   <td></td>
 <td colspan="8"  bgcolor="#FF9900"><div align="center"><strong><font size="3" >NOTAS DE CREDITO</font>  </div></td>
</tr>
     	 
   <tr>
    <td width="1%"></td>
    <td width="20%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Cedula</strong></font></span></td>
    <td width="30%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Proveedor</strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Exento </strong></font></span></td> 
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Gravado </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Subtotal </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Descuento </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Impuesto </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Total </strong></font></span></td>
  </tr>
  
<?PHP
		

	// $consulta = "SELECT * FROM mensaje_receptor WHERE ".$where." ORDER BY tipcom , feccomp ASC";
	 
	  $consulta="SELECT  numcedemi, dscnomemi,  fecmen,  feccomp, tipcom, sum(subtotgra) as subtotgra , sum(subtotexe) as subtotexe ,  sum(subtotal) as subtotal , sum(totdes) as totdes, sum(monimp) as monimp, sum(totcomp) as totcomp  FROM mensaje_receptor WHERE tipcom= 'NC'  AND tipmoneda!='USD' AND ".$where." GROUP BY numcedemi ORDER BY dscnomemi  ASC "  ;

if ($resultado = $mysqli->query($consulta)) 

 
    while ($fila = $resultado->fetch_assoc()) {
     
	    $numcedemi  = $fila["numcedemi"];
		$dscnomemi  = $fila["dscnomemi"];
		$subtotgra  = $fila["subtotgra"];
		$subtotexe  = $fila["subtotexe"];
        $subtotal   = $fila["subtotal"];			
        $totdes     = $fila["totdes"];	
        $monimp     = $fila["monimp"];
		$totcomp    = $fila["totcomp"];

        
		if ($monimp ==" ")  { $monimp = 0 ; 	}
		

?>  

  <tr>
   <td></td>
   <td align="center"><font size=1><?php echo $numcedemi ?></font></td>
   <td align="left"><font size=1  ><?php echo $dscnomemi ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotgra,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotexe,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotal,2)  ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totdes,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($monimp,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totcomp,2)   ?></font></td>
 </tr>
 
	
<table width="92%" border="0" cellspacing="0" cellpadding="0">
 <?PHP   
	
	}

?>

<tr></tr>
<tr>
   <td></td>
 <td colspan="8"  bgcolor="#FF9900"><div align="center"><strong><font size="3" >NOTAS DE DEBITO</font>  </div></td>
</tr>
     	 
   <tr>
    <td width="1%"></td>
    <td width="20%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Cedula</strong></font></span></td>
    <td width="30%" align="center" bgcolor="skyblue" ><span class="Estilo4"><strong>Proveedor</strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Exento </strong></font></span></td> 
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Sub.Gravado </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Subtotal </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Descuento </strong></font></span></td>
	<td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Impuesto </strong></font></span></td>
    <td width="20%" align="right" bgcolor="skyblue"><span class="Estilo4"><strong>Total </strong></font></span></td>
  </tr>
  
<?PHP
		

	// $consulta = "SELECT * FROM mensaje_receptor WHERE ".$where." ORDER BY tipcom , feccomp ASC";
	 
	  $consulta="SELECT  numcedemi, dscnomemi,  fecmen,  feccomp, tipcom, sum(subtotgra) as subtotgra , sum(subtotexe) as subtotexe ,  sum(subtotal) as subtotal , sum(totdes) as totdes, sum(monimp) as monimp, sum(totcomp) as totcomp  FROM mensaje_receptor WHERE tipcom= 'ND' AND tipmoneda!='USD' AND ".$where." GROUP BY numcedemi ORDER BY dscnomemi  ASC "  ;

if ($resultado = $mysqli->query($consulta)) 

 
    while ($fila = $resultado->fetch_assoc()) {
     
	    $numcedemi  = $fila["numcedemi"];
		$dscnomemi  = $fila["dscnomemi"];
		$subtotgra  = $fila["subtotgra"];
		$subtotexe  = $fila["subtotexe"];
        $subtotal   = $fila["subtotal"];			
        $totdes     = $fila["totdes"];	
        $monimp     = $fila["monimp"];
		$totcomp    = $fila["totcomp"];

        
		if ($monimp ==" ")  { $monimp = 0 ; 	}
		

?>  

  <tr>
   <td></td>
   <td align="center"><font size=1><?php echo $numcedemi ?></font></td>
   <td align="left"><font size=1  ><?php echo $dscnomemi ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotgra,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotexe,2) ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($subtotal,2)  ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totdes,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($monimp,2)    ?></font></td>
   <td align="right"><font size=1 ><?php echo number_format($totcomp,2)   ?></font></td>
 </tr>
 
	
<table width="92%" border="0" cellspacing="0" cellpadding="0">
 <?PHP   
	
	}


?>



</body>
</html>