<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Bravacar - Rent a Car - Voucher</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">
<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="Bravacar">
<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">
<link rel="stylesheet" href="../assets/clases.css" type="text/css" />
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow">
<LINK REL="STYLESHEET" TYPE="text/css" HREF="style.css">
<LINK REL="STYLESHEET" TYPE="text/css" HREF="site.css">
<script src="../assets/validation.js" type="text/javascript"></script>
<script src="../assets/script.js" type="text/javascript"></script>
<script src="../assets/effects.js" type="text/javascript"></script>
</HEAD>

<BODY leftmargin="0px;">
	<?
    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="546">
            <TR HEIGHT=25>
              <TD WIDTH=344 STYLE="padding-left: 4pt">
                <P>Description</P>
              </TD>
              <TD ALIGN=RIGHT WIDTH=30 STYLE="padding-right: 4pt;">
                <P>Qty</P>
              </TD>
              <TD ALIGN=RIGHT WIDTH=85 STYLE="padding-right: 4pt;">
                <P>Value</P>
              </TD>
              <TD ALIGN=RIGHT WIDTH=85 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       = '';
    
	$telefone_escr  = '';
	$email_escr     = '';
	
    $included       = '';
    $rental_costs   = '';
    
    $param_nro_voucher = 0;
    $param_id_voucher  = '';
    
    if (isset($_GET['nro_voucher']))
        $param_nro_voucher = $_GET['nro_voucher'];
    
    if (isset($_GET['id_voucher']))
        $param_id_voucher  = $_GET['id_voucher'];
    
    
    $sql = "select * from tbvoucher_car where nro_voucher=".$param_nro_voucher." and id_voucher='".$param_id_voucher."' and tipo_empresa = 2";
    
    $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)
    {
       $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();   
    ?>
    
	<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" width="660">
        <TR VALIGN="TOP" ALIGN="LEFT">
            <TD width="200" height="70">
            	<IMG ID="Picture15" HEIGHT="58" WIDTH="142" SRC="../assets/images/brava_logo_P.jpg" BORDER="0" ALT="">            
            </TD>
      </TR>
    </TABLE>        
        
    <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="660" STYLE="height: 40px;">            
		<TR VALIGN="TOP">
            <TD COLSPAN="5" height="5"><IMG ID="Line1" HEIGHT="1" WIDTH="660" SRC="../assets/images/autogen/a_ArrowLine.gif" BORDER="0" ALT=""></TD>
      	</TR>
        <TR>
            <TD WIDTH="110" CLASS="TextObject" style="padding-left:8px;" height="30">
            	<P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Voucher date</SPAN></B></P>
            </TD>
            <TD WIDTH="120" 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>        
            <TD WIDTH="192">&nbsp;</TD>
            <TD WIDTH="118" CLASS="TextObject" style="padding-left:8px;">
            	<P><B><SPAN STYLE="font-size: 14pt;"><SPAN STYLE="color: rgb(228,31,31);">VOUCHER</SPAN> </SPAN></B></P>
            </TD>
            <TD WIDTH="120" 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>
      <TR><TD height="5" colspan="5"></TD></TR>        
    </TABLE>        

    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="660" STYLE="height: 245px;">
        <TR>
            <TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Supplier</SPAN></B></P>
            </TD>
			<TD width="310 "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>
            <td colspan="2">&nbsp;</td>
        </TR>
        <TR><TD height="5" colspan="4"></TD></TR>
        <TR>
            <TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Address</SPAN></B></P>
            </TD>
            <TD WIDTH="548" CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;" colspan="3">
                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;">
				<? echo $endereco; ?></SPAN>&nbsp;</P>
            </TD>
        </TR>
        <TR><TD height="5" colspan="4"></TD></TR>
        <TR>
            <TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Email</SPAN></B></P>
            </TD>
            <TD width="310" 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>
            <TD WIDTH="78" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Telephone</SPAN></B></P>
            </TD>
            <TD width="160" 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>
        <TR><TD height="5" colspan="4"></TD></TR>
        <TR>
            <TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Driver</SPAN></B></P>
            </TD>
            <TD WIDTH="548" CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;" colspan="3">
                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;">
				<? echo $nome_cliente; ?></SPAN>&nbsp;</P>
            </TD>
        </TR>    
        <TR><TD height="5" colspan="4"></TD></TR>
        <TR>
            <TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Pick-up location</SPAN></B></P>
            </TD>
            <TD WIDTH="548" CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;" colspan="3">
                <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>    
        <TR><TD height="5" colspan="4"></TD></TR>
        <TR>
            <TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Pick-up phone</SPAN></B></P>
            </TD>
            <TD WIDTH="548" CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;" colspan="3">
                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 13px; font-weight: normal;">
				<B><? echo $telefone_escr; ?></B></SPAN>&nbsp;</P>
            </TD>
        </TR>   
        <TR><TD height="5" colspan="4"></TD></TR>  
        <TR>
            <TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Drop-off location</SPAN></B></P>
            </TD>
            <TD WIDTH="548" CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;" colspan="3">
                <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>         
        <TR><TD height="5" colspan="4"></TD></TR>
	</TABLE>

    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="660" STYLE="height: 35px;">
      	<TR>
            <TD WIDTH="116" height="30" style="padding-left:8px;">
				<P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Pick-up date</SPAN></B></P>
            </TD>            
            <TD WIDTH="140" 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>                         
            <TD WIDTH="112" style="text-align:right; padding-right:8px;">                
                <B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Drop-off date</SPAN></B>
            </TD>
            <TD WIDTH="140" 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> 
            <TD WIDTH="90" style="text-align:right; padding-right:8px;">
              <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Nş Days</SPAN></B></P>
            </TD>
            <TD WIDTH="60" 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>
        <TR><TD height="5" colspan="4"></TD></TR>        
</TABLE>    

    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="660" STYLE="height: 105px;">
        <TR>    
			<TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Car type</SPAN></B></P>
            </TD>
            <TD WIDTH="548" CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;" colspan="3">
                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;">
				<? echo $tipo_carro; ?></SPAN>&nbsp;</P>
            </TD>
        </TR>
        <TR><TD height="5" colspan="4"></TD></TR>
        <TR>
            <TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Hotel details</SPAN></B></P>
            </TD>
            <TD width="270" 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>
            <TD WIDTH="98" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Flight details</SPAN></B></P>
            </TD>
            <TD width="180" 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>
        <TR><TD height="5" colspan="4"></TD></TR>
        <TR>
            <TD WIDTH="112" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Included</SPAN></B></P>
            </TD>
            <TD WIDTH="548" CLASS="TextObject" STYLE="border: 1pt solid rgb(0,0,0); padding: 3pt;" colspan="3">
                <P><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px; font-weight: normal;">
				<? echo $included; ?></SPAN>&nbsp;</P>
            </TD>
        </TR>    
        <TR><TD height="5" colspan="4"></TD></TR>            
    </TABLE>    

    <TABLE WIDTH="660" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
            <TD WIDTH="114" height="30" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Rental costs</SPAN></B></P>
            </TD>            
            <TD WIDTH="546">
                <P><? echo $rental_costs; ?>&nbsp;</P>
            </TD>
        </TR>
	</TABLE>

    <TABLE ID="Table1" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="660" STYLE="height: 72;">
        <TR STYLE="height:20px">
            <TD WIDTH="117">
              <P>&nbsp;</P>
            </TD>
            <TD WIDTH="130" ALIGN="CENTER">
              	<B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Charged</SPAN></B>
            </TD>
            <TD WIDTH="37">&nbsp;</TD>
            <TD WIDTH="130" ALIGN="CENTER" >
            	<B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Balance *</SPAN></B>
            </TD>
			<TD WIDTH="37" ALIGN="CENTER">&nbsp;</TD>
  			<TD WIDTH="130" ALIGN="CENTER" >
      			<B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">TOTAL</SPAN></B>
            </TD>
            <TD WIDTH="81">&nbsp;</TD>
		</TR>
        <TR STYLE="height:30px">
            <TD CLASS="TextObject" style="padding-left:8px;">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: 12px;">Payment Details</SPAN></B></P>
            </TD>
            <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>            
            <TD ALIGN="CENTER">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: large;">+</SPAN></B></P>
            </TD>
            <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>
            <TD ALIGN="CENTER">
                <P><B><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: large;">=</SPAN></B></P>
            </TD>
            <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>
        <TR STYLE="height:22px">
            <TD>&nbsp;</TD>
            <TD>&nbsp;</TD>
            <TD>&nbsp;</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>&nbsp;</TD>
            <TD>&nbsp;</TD>
        </TR>
    </TABLE>
    
    <TABLE ID="Table6" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="660" STYLE="height:200px;">
        <TR STYLE="height:90px;">
            <TD WIDTH="660" align="center">
                <P><B><SPAN STYLE="font-size: 14px; color: rgb(228,31,31);">BRAVACAR - Rent a car</SPAN></B></P>
            </TD>
        </TR>
        <TR STYLE="height:20px">
            <TD>
                <P STYLE="text-align: center;"><SPAN STYLE="color: rgb(228,31,31);">
                <B><SPAN STYLE="font-size:9px;">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="window.print();">
                <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="height:40px">
            <TD>
                <P STYLE="text-align: center;"><SPAN STYLE="font-family: Arial,Helvetica,Geneva,Sans-serif; font-size: xx-small;">
                BRAVACAR - Rent a car<BR>
                Contribuinte nş 511 029 039  Telefone: +351 291 708 900&nbsp;Fax: +351 291 708 909&nbsp;&nbsp;&nbsp;Email: madeira@bravacar.com.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: 12px;">www.bravacar.com.pt</SPAN></B></P>
            </TD>
        </TR>
	</TABLE>
</BODY>
</HTML>
     