<?
session_start();
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Bravacar - Rent a Car - Online bookings</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Abstract" CONTENT="rent a car  madeira island, car rental lisbon, car rental algarve, car rental porto, car rental online bookings, funchal rent a car, madeira rent a car">
<META NAME="Copyright" CONTENT="Bravacar 2006 - Carlos Pontes">
<META NAME="Description" CONTENT="Bravacar - Easy rent a car bookings in Portugal.  Bookings available in Lisbon, Madeira Island, Algarve and Porto.  Customers pay only a small percentage when booking online and pay the remainder at pickup location.">
<META NAME="Generator" CONTENT="carlos alberto pontes">
<META NAME="Keywords" CONTENT="rent a car,car rentals portugal,bravacar, car rental in madeira, rent a car in lisbon, rent a car in oporto, porto car rental, lisbon car rental, faro car rental, algarve rent a car, netrent rent a car, rent, car, rent a car, car rental, rental, car rentals, rentals, holiday rentals, cheap rent a car, cheap car rental, cheap rental, cheap car rentals, cheap rentals, cheap holiday rentals, portugal rent a car, portugal car rental,madeira car rental,algarve car rental,lisbon car rental,porto car rental,bravacar madeira,bravacar porto, bravacar lisbon, bravacar faro">
<META NAME="Language" CONTENT="en">
<META NAME="revisit-after" CONTENT="2 days">
<SCRIPT TYPE="text/javascript">
<!--
var F_A,F_B,F_CH,F_CL,F_DB,F_E,F_F,F_L,F_MT,F_MV,F_R,F_SE,F_SU,F_U,F_HR,F_MU,F_MD;
function F_e(){} function F_n(){} function F_onLoaded(){}
//-->
</SCRIPT>
<SCRIPT TYPE="text/javascript">
<!--
document.write("<SCRIPT SRC=\"../assets/validation.js\"><\/SCRIPT>");
document.write("<SCRIPT SRC=\"../assets/script.js\"><\/SCRIPT>");
document.write("<SCRIPT SRC=\"../assets/effects.js\"><\/SCRIPT>");
//-->
</SCRIPT>
<SCRIPT TYPE="text/javascript">
<!--
function F_doLoaded() {
	document.main = new F_cMain();
	document.objectModel = new Object();
	F_OM('Layout','LayoutLYR', 'doc', '', new Array());
	F_OM('ID_print' , 'ID_printLYR', 'img', 'Layout',new Array(
	'Clicked',F_functID_printAction0,'','',0),'',0);
	F_pageLoaded('Layout');
}
function F_functID_printAction0(params) {
window.print();
}

//-->
</SCRIPT>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="../html/style.css">
<LINK REL="STYLESHEET" TYPE="text/css" HREF="../html/site.css">
<STYLE TYPE="text/css" TITLE="NOF_STYLE_SHEET">
<!--
DIV#LayoutLYR	{ position:absolute; top:0; left:0; z-index:	1; visibility:inherit; }
DIV#ID_printLYR {	position:relative; visibility:inherit;	top:0; left:0; width:40; height:40;	z-index:1;	}
-->
</STYLE>

</HEAD>
<BODY onLoad="F_onLoaded();" STYLE="background-color: rgb(255,255,255); background-image: none;">
    <DIV ID="LayoutLYR">
    <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="662">
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD>
                <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="142">
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD HEIGHT="58" WIDTH="142"><IMG ID="Picture15" HEIGHT="58" WIDTH="142" SRC="../assets/images/brava_logo_P.jpg" BORDER="0" ALT=""></TD>
                    </TR>
                </TABLE>
            </TD>
            <TD>
                <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="520">
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD WIDTH="16" HEIGHT="13"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="16" HEIGHT="1" BORDER="0" ALT=""></TD>
                        <TD WIDTH="504"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="504" HEIGHT="1" BORDER="0" ALT=""></TD>
                    </TR>
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD></TD>
                        <TD WIDTH="504" CLASS="TextObject" STYLE="background-color: rgb(255,255,255);">
                            <P><?
include('main.php');
db_connect();

function FormatarData($Data) 
{ 
    $date_array = explode("-",$Data);
     
    $var_year  = $date_array[0]; 
    $var_month = $date_array[1]; 
    $var_day  = $date_array[2]; 

    $format_data   = date("d-m-Y", mktime(0,0,0,$var_month,$var_day,$var_year)); 
    return($format_data);  
} 

function FormatarDataHora($Data) 
{ 
    $date_hour_array = explode(" ",$Data);

    $date_array  = explode("-",$date_hour_array[0]);
    $hour_array  = explode(":",$date_hour_array[1]);
     
    $var_year    = $date_array[0]; 
    $var_month   = $date_array[1]; 
    $var_day     = $date_array[2]; 

    $var_hour    = $hour_array[0]; 
    $var_min     = $hour_array[1]; 

    $format_data = $var_day.'-'.$var_month.'-'.$var_year.' at '.$var_hour.':'.$var_min;
    return($format_data);      
} 

function header_rental_cost()
{
    $header_rental_cost = '
      <TABLE STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; font-size: 12px; font-weight: bold;" BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH="524">
        <TR HEIGHT=25>
          <TD WIDTH=324 STYLE="padding-left: 4pt">
            <P>Description</P>
          </TD>
          <TD ALIGN=RIGHT WIDTH=29 STYLE="padding-right: 4pt;">
            <P>Qty</P>
          </TD>
          <TD ALIGN=RIGHT WIDTH=84 STYLE="padding-right: 4pt;">
            <P>Value</P>
          </TD>
          <TD ALIGN=RIGHT WIDTH=84 STYLE="padding-right: 4pt;">
            <P>Total value</P>
          </TD>
        </TR>';
    return ($header_rental_cost);
}

function body_rental_cost($desc,$qty,$price,$total_price)
{   
    if ($qty == '')
        $qty = '&nbsp';

    $body_rental_cost = '
        <TR HEIGHT=25 STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; font-size: 12px; font-weight: normal;">
          <TD STYLE="padding-left: 4pt">
            <P>'.$desc.'</P>
          </TD>
          <TD ALIGN=RIGHT STYLE="padding-right: 4pt;">
            <P>'.$qty.'</P>
          </TD>
          <TD ALIGN=RIGHT STYLE="padding-right: 4pt;">
            <P>'.$price.'</P>
          </TD>
          <TD ALIGN=RIGHT STYLE="padding-right: 4pt;">
            <P>'.$total_price.'</P>
          </TD>
        </TR>';
    return ($body_rental_cost);
}


$nro_voucher    = '';
$data           = '';
$tipo_empresa   = '';
$cod_empresa    = '';
$nome_cliente   = '';
$pick_up_loc    = '';
$drop_off_loc   = '';
$nro_dias       = '';

$cod_grupo      = '';
$desc_grupo     = '';
$tipo_carro     = '' ;
$nome_hotel     = '';
$nro_voo        = '';
$comissao       = '';
$valor_pago     = '';
$valor_a_pagar  = '';
$valor_total    = '';

$valor_carro    = '';
$valor_tot_car  = '';

$desc_extra1    = '';
$qty_extra1     = '';
$valor_extra1   = '';
$total_extra1   = '';

$desc_extra2    = '';
$qty_extra2     = '';
$valor_extra2   = '';
$total_extra2   = '';

$desc_extra3    = '';
$qty_extra3     = '';
$valor_extra3   = '';
$total_extra3   = '';

$desc_extra4    = '';
$qty_extra4     = '';
$valor_extra4   = '';
$total_extra4   = '';

$desc_extra5    = '';
$qty_extra5     = '';
$valor_extra5   = '';
$total_extra5   = '';

$desc_extra_fh  = '';
$valor_extra_fh = '';
$total_extra_fh = '';

$voucher_date   = '';

$date1          = '';
$date2          = '';

$desc_tipo      = '';
$nome_empresa   = '';
$morada         = '';
$cidade         = '';
$desc_regiao    = '';
$desc_pais      = '';
$telefone       = '';
$email          = '';
$endereco       = '';

$included       = '';
$rental_costs   = '';
$num_row        = 0;

if (!isset($_SESSION['carrito']))
{
   $sql = "select * from tbvoucher_car where nro_voucher=".$_GET['nro_voucher'];
   $result = mysql_query($sql);
   $num_row = mysql_num_rows($result);
}

if($num_row!=0) 
{ 
   $row            = mysql_fetch_row($result);     	         
   $nro_voucher    = $row[0];
   $data           = $row[1];
   $tipo_empresa   = $row[2];
   $cod_empresa    = $row[3];
   $pick_up_loc    = $row[4];
   $pick_up_date   = $row[5];
   $drop_off_loc   = $row[6];
   $drop_off_date  = $row[7];
   $nro_dias       = $row[8];
   $nome_cliente   = $row[9];

   $cod_grupo      = $row[13];
   $desc_grupo     = $row[14];
   $included       = $row[15];
   $nome_hotel     = $row[16];
   $nro_voo        = $row[17];
   $observacoes    = $row[18];

   $comissao       = $row[19];
   $valor_pago     = $row[20].' ';
   $valor_a_pagar  = $row[21].' ';
   $valor_total    = $row[22].' ';

   $valor_carro    = $row[23].' ';
   $valor_tot_car  = $row[24].' ';

   $desc_extra1    = $row[25];
   $qty_extra1     = $row[26];
   $valor_extra1   = $row[27].' ';
   $total_extra1   = $row[28].' ';

   $desc_extra2    = $row[29];
   $qty_extra2     = $row[30];
   $valor_extra2   = $row[31].' ';
   $total_extra2   = $row[32].' ';

   $desc_extra3    = $row[33];
   $qty_extra3     = $row[34];
   $valor_extra3   = $row[35].' ';
   $total_extra3   = $row[36].' ';

   $desc_extra4    = $row[37];
   $qty_extra4     = $row[38];
   $valor_extra4   = $row[39].' ';
   $total_extra4   = $row[40].' ';

   $desc_extra5    = $row[41];
   $qty_extra5     = $row[42];
   $valor_extra5   = $row[43].' ';
   $total_extra5   = $row[44].' ';

   $desc_extra_fh  = $row[45];
   $valor_extra_fh = $row[46].' ';
   $total_extra_fh = $row[47].' ';

   $tipo_carro     = "Group ".$cod_grupo.' - '.$desc_grupo;

   $header_rental_cost = header_rental_cost();
   $body_rental_cost   = body_rental_cost('Car rental','',$valor_carro,$valor_tot_car);

   if ($desc_extra1 != '')
       $body_rental_cost = $body_rental_cost.body_rental_cost($desc_extra1,$qty_extra1,$valor_extra1,$total_extra1);

   if ($desc_extra2 != '')
       $body_rental_cost = $body_rental_cost.body_rental_cost($desc_extra2,$qty_extra2,$valor_extra2,$total_extra2);

   if ($desc_extra3 != '')
       $body_rental_cost = $body_rental_cost.body_rental_cost($desc_extra3,$qty_extra3,$valor_extra3,$total_extra3);

   if ($desc_extra4 != '')
       $body_rental_cost = $body_rental_cost.body_rental_cost($desc_extra4,$qty_extra4,$valor_extra4,$total_extra4);

   if ($desc_extra5 != '')
       $body_rental_cost = $body_rental_cost.body_rental_cost($desc_extra5,$qty_extra5,$valor_extra5,$total_extra5);

   if ($desc_extra_fh != '')
       $body_rental_cost = $body_rental_cost.body_rental_cost($desc_extra_fh,'',$valor_extra_fh,$total_extra_fh);

   $root_rental_cost   = '</table>';

   $rental_costs   = $header_rental_cost.$body_rental_cost.$root_rental_cost;

   $voucher_date   = FormatarData($data);
   $date1          = FormatarDataHora($pick_up_date);
   $date2          = FormatarDataHora($drop_off_date);

}

if ($tipo_empresa == 2 and !isset($_SESSION['carrito']))
{
   $desc_tipo = 'Car Rental';
   $sql = "select nome, morada, cidade,tbregiao.descricao as desc_regiao, tbpais.descricao as desc_pais, ";
   $sql = $sql." telefone, email from tr_rentacar, tbregiao, tbpais ";
   $sql = $sql." where cod_rentacar = $cod_empresa ";
   $sql = $sql." and tr_rentacar.cod_regiao = tbregiao.cod_regiao ";
   $sql = $sql." and tr_rentacar.cod_pais   = tbpais.cod_pais ";

   $result  = mysql_query($sql);
   $num_row = mysql_num_rows($result);

   if($num_row!=0) 
   { 
      $row          = mysql_fetch_row($result);     	         
      $nome_empresa = $row[0];
      $morada       = $row[1];
      $cidade       = $row[2];
      $desc_regiao  = $row[3];
      $desc_pais    = $row[4];
      $telefone     = $row[5];
      $email        = $row[6];

      $endereco = $morada.' - '.$cidade.' - '.$desc_regiao.' - '.$desc_pais;
   }
}

db_disconnect();

?>
&nbsp;</P>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
    </TABLE>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="658">
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD WIDTH="2" HEIGHT="28"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="2" HEIGHT="1" BORDER="0" ALT=""></TD>
            <TD></TD>
        </TR>
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD HEIGHT="1"></TD>
            <TD WIDTH="656"><IMG ID="Line1" HEIGHT="1" WIDTH="656" SRC="../assets/images/autogen/a_ArrowLine.gif" BORDER="0" ALT=""></TD>
        </TR>
    </TABLE>
    <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="639">
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD>
                <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="99">
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD WIDTH="18" HEIGHT="13"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="18" HEIGHT="1" BORDER="0" ALT=""></TD>
                        <TD WIDTH="81"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="81" HEIGHT="1" BORDER="0" ALT=""></TD>
                    </TR>
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD></TD>
                        <TD WIDTH="81" CLASS="TextObject">
                            <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Voucher date</SPAN></B></P>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
            <TD>
                <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="112">
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD WIDTH="16" HEIGHT="6"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="16" HEIGHT="1" BORDER="0" ALT=""></TD>
                        <TD WIDTH="96"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="96" HEIGHT="1" BORDER="0" ALT=""></TD>
                    </TR>
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD></TD>
                        <TD WIDTH="96" CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                            <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $voucher_date; ?></SPAN>&nbsp;</P>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
            <TD>
                <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="333">
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD WIDTH="220" HEIGHT="9"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="220" HEIGHT="1" BORDER="0" ALT=""></TD>
                        <TD WIDTH="113"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="113" HEIGHT="1" BORDER="0" ALT=""></TD>
                    </TR>
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD></TD>
                        <TD WIDTH="113" CLASS="TextObject">
                            <P><B><SPAN STYLE="font-size: 14pt;"><SPAN STYLE="color: rgb(228,31,31);">VOUCHER</SPAN> </SPAN></B></P>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
            <TD>
                <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="95">
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD WIDTH="5" HEIGHT="9"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="5" HEIGHT="1" BORDER="0" ALT=""></TD>
                        <TD WIDTH="90"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="90" HEIGHT="1" BORDER="0" ALT=""></TD>
                    </TR>
                    <TR VALIGN="TOP" ALIGN="LEFT">
                        <TD></TD>
                        <TD WIDTH="90" CLASS="TextObject">
                            <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 14pt;"><? 
$CNro_voucher = 'B'.$nro_voucher;
echo $CNro_voucher; ?></SPAN></B>&nbsp;</P>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
    </TABLE>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD WIDTH="11" HEIGHT="26"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="11" HEIGHT="1" BORDER="0" ALT=""></TD>
            <TD></TD>
        </TR>
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD></TD>
            <TD WIDTH="642">
                <TABLE ID="Table13" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 363;">
                    <TR ALIGN="CENTER" STYLE="height:32px">
                        <TD WIDTH="642">
                            <TABLE WIDTH="639" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table7" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 29;">
                                            <TR STYLE="height:29px">
                                                <TD WIDTH="104">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Supplier</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="349">
                                                    <TABLE WIDTH="339" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $nome_empresa; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                                <TD WIDTH="35">
                                                    <P>&nbsp;</P>
                                                </TD>
                                                <TD WIDTH="151">
                                                    <P>&nbsp;</P>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR ALIGN="CENTER" STYLE="height:32px">
                        <TD>
                            <TABLE WIDTH="638" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table8" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 29;">
                                            <TR STYLE="height:29px">
                                                <TD WIDTH="104">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Address</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="534">
                                                    <TABLE WIDTH="524" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $endereco; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR ALIGN="CENTER" STYLE="height:32px">
                        <TD>
                            <TABLE WIDTH="638" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table9" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 29;">
                                            <TR STYLE="">
                                                <TD WIDTH="104">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Email</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="318">
                                                    <TABLE WIDTH="311" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $email; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                                <TD WIDTH="66">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Telephone</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="150">
                                                    <TABLE WIDTH="140" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $telefone; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR ALIGN="CENTER" STYLE="height:34px">
                        <TD>
                            <TABLE WIDTH="637" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table11" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 29;">
                                            <TR STYLE="">
                                                <TD WIDTH="104">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Driver</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="533">
                                                    <TABLE WIDTH="524" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $nome_cliente; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR ALIGN="CENTER" STYLE="height:34px">
                        <TD>
                            <TABLE WIDTH="637" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table10" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 30;">
                                            <TR STYLE="height:30px">
                                                <TD WIDTH="104">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Pick-up location</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="533">
                                                    <TABLE WIDTH="524" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $pick_up_loc; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR ALIGN="CENTER" STYLE="height:34px">
                        <TD>
                            <TABLE WIDTH="636" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table18" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 30;">
                                            <TR STYLE="height:30px">
                                                <TD WIDTH="104">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Drop-off location</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="532">
                                                    <TABLE WIDTH="524" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $drop_off_loc; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR STYLE="height:33px">
                        <TD>
                            <TABLE WIDTH="637" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table20" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 30;">
                                            <TR STYLE="height:30px">
                                                <TD WIDTH="104">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Pick-up date</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="168">
                                                    <TABLE WIDTH="130" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $date1; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                                <TD WIDTH="80">
                                                    <P STYLE="text-align: left;"><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Drop-off date</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="181">
                                                    <TABLE WIDTH="130" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $date2; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                                <TD WIDTH="54">
                                                    <P STYLE="text-align: left;"><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Nş Days</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="50">
                                                    <TABLE WIDTH="41" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $nro_dias; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR ALIGN="CENTER" STYLE="height:33px">
                        <TD>
                            <TABLE WIDTH="637" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table14" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 29;">
                                            <TR STYLE="">
                                                <TD WIDTH="104">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Car type</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="533">
                                                    <TABLE WIDTH="524" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $tipo_carro; ?>
</SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR STYLE="height:33px">
                        <TD>
                            <TABLE WIDTH="636" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table17" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 29;">
                                            <TR STYLE="">
                                                <TD WIDTH="104">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Hotel details</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="264">
                                                    <TABLE WIDTH="248" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $nome_hotel; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                                <TD WIDTH="85">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Flight details</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="183">
                                                    <TABLE WIDTH="175" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $nro_voo; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR STYLE="height:34px">
                        <TD>
                            <TABLE WIDTH="636" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table15" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 29;">
                                            <TR STYLE="">
                                                <TD WIDTH="104" STYLE="background-color: rgb(255,255,255);">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Included</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="532">
                                                    <TABLE WIDTH="524" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                                        <TR>
                                                            <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                                                <P STYLE="text-align: justify;"><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;"><? echo $included; ?></SPAN>&nbsp;</P>
                                                            </TD>
                                                        </TR>
                                                    </TABLE>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR STYLE="height:32px">
                        <TD>
                            <TABLE WIDTH="627" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD>
                                        <TABLE ID="Table19" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 29;">
                                            <TR STYLE="">
                                                <TD VALIGN="TOP" WIDTH="110" STYLE="background-color: rgb(255,255,255); padding-top: 10pt;">
                                                    <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Rental costs</SPAN></B></P>
                                                </TD>
                                                <TD WIDTH="517">
                                                    <P><? echo $rental_costs; ?>&nbsp;</P>
                                                </TD>
                                            </TR>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
    </TABLE>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD WIDTH="11" HEIGHT="11"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="11" HEIGHT="1" BORDER="0" ALT=""></TD>
            <TD></TD>
        </TR>
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD></TD>
            <TD WIDTH="530">
                <TABLE ID="Table1" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 72;">
                    <TR STYLE="height:20px">
                        <TD WIDTH="120">
                            <P>&nbsp;</P>
                        </TD>
                        <TD WIDTH="105">
                            <P STYLE="text-align: center;"><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Charged</SPAN></B></P>
                        </TD>
                        <TD WIDTH="35">
                            <P>&nbsp;</P>
                        </TD>
                        <TD WIDTH="125">
                            <P>&nbsp;&nbsp;&nbsp;&nbsp;<B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Balance *</SPAN></B></P>
                        </TD>
                        <TD WIDTH="30">
                            <P>&nbsp;</P>
                        </TD>
                        <TD ALIGN="CENTER" WIDTH="115">
                            <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">TOTAL</SPAN></B></P>
                        </TD>
                    </TR>
                    <TR STYLE="height:31px">
                        <TD>
                            <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Payment Details</SPAN></B></P>
                        </TD>
                        <TD>
                            <TABLE WIDTH="100" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                        <P STYLE="text-align: right;"><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 16px;"><? echo $valor_pago; ?></SPAN></B>&nbsp;</P>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                        <TD ALIGN="CENTER">
                            <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: large;">+</SPAN></B></P>
                        </TD>
                        <TD>
                            <TABLE WIDTH="105" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                        <P STYLE="text-align: right;"><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 16px;"><? echo $valor_a_pagar; ?></SPAN></B>&nbsp;</P>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                        <TD ALIGN="LEFT">
                            <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: large;">=</SPAN></B></P>
                        </TD>
                        <TD>
                            <TABLE WIDTH="110" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
                                <TR>
                                    <TD CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;">
                                        <P STYLE="text-align: right;"><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 16px;"><? echo $valor_total; ?></SPAN></B>&nbsp;</P>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                    <TR STYLE="">
                        <TD>
                            <P>&nbsp;</P>
                        </TD>
                        <TD>
                            <P>&nbsp;</P>
                        </TD>
                        <TD>
                            <P>&nbsp;</P>
                        </TD>
                        <TD>
                            <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">&nbsp;* Payment Check in</SPAN></B></P>
                        </TD>
                        <TD>
                            <P>&nbsp;</P>
                        </TD>
                        <TD>
                            <P>&nbsp;</P>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
    </TABLE>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD WIDTH="11" HEIGHT="6"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="11" HEIGHT="1" BORDER="0" ALT=""></TD>
            <TD></TD>
        </TR>
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD></TD>
            <TD WIDTH="631">
                <TABLE ID="Table6" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 17;">
                    <TR STYLE="height:17px">
                        <TD WIDTH="631">
                            <P><B><SPAN STYLE="font-size: 14px; color: rgb(228,31,31);">BRAVACAR - Rent a car</SPAN></B></P>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
    </TABLE>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD WIDTH="11" HEIGHT="33"><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH="11" HEIGHT="1" BORDER="0" ALT=""></TD>
            <TD></TD>
        </TR>
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD></TD>
            <TD WIDTH="632">
                <TABLE ID="Table16" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" STYLE="height: 101;">
                    <TR STYLE="height:15px">
                        <TD>
                            <P STYLE="text-align: center;"><SPAN STYLE="color: rgb(228,31,31);"><B><SPAN STYLE="font-size: xx-small;">Click here to print your voucher</SPAN></B></SPAN></P>
                        </TD>
                    </TR>
                    <TR ALIGN="CENTER" STYLE="height:40px">
                        <TD>
                            <P STYLE="text-align: center;"><DIV ID="ID_printLYR"><A HREF="Javascript:void(0) " onClick="return(F_e('ID_print', F_CL))"><IMG ID="ID_print" HEIGHT="40" WIDTH="40" SRC="../assets/images/Printer.gif" VSPACE="0" HSPACE="0" ALIGN="TOP" BORDER="0" ALT=""></A></DIV>
                            </TD>
                        </TR>
                        <TR STYLE="">
                            <TD>
                                <P STYLE="text-align: center;"><SPAN STYLE="font-size: xx-small;"><B>BRAVACAR - Rent a Car</B><BR>Contribuinte nş 511029039&nbsp;Telefone: +351 291 708 900&nbsp;Fax: +351 291 76 44 02&nbsp;Email: info@bravacar.pt</SPAN></P>
                            </TD>
                        </TR>
                        <TR STYLE="height:20px">
                            <TD>
                                <P STYLE="text-align: center;"><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: x-small;">www.bravacar.pt</SPAN></B></P>
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
        </TABLE>
        </DIV>
    </BODY>
    </HTML>
     