<!doctype html>
<html  {$html_attrs}>
	<head>
				<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{$pagetitle}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<base href="{$projectPath}">
		<link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
	{BEGIN rtlCSS}
	<link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
	{END rtlCSS}
	{BEGIN styleCSSFiles}
	<link REL="stylesheet" href="{$stylepath}" type="text/css">
	{END styleCSSFiles}
	</head>

	<body class="{$stylename} function-rprint" {$bodyattrs}>
	{BEGIN body}
		{$header}
		<style>
			{$containerCss}
		</style>
		{$locking}
		<div class="r-small-page" 
			data-body-align="left"
			data-body-width="standard"
		>
							{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="small" {$form_top} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c2" data-pageid="{$pageid}"	{$cell_top_c2}
	class=" r-ori-vert			col-md-12
	
">
		 
		<h2 data-itemtype="print_header" data-itemid="print_header" {$item_print_header} data-pageid="{$pageid}" >{$pagetitlelabel Vinha_Report_Confirmados rprint}</h2>
	 
		{BEGIN printtabheader}
<span data-itemtype="print_subheader" data-itemid="print_subheader" {$item_print_subheader} data-pageid="{$pageid}" >
{$printtabheader_text}
</span>
{END printtabheader}
		</div>					</div>
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c4" data-pageid="{$pageid}"	{$cell_top_c4}
	class=" r-ori-vert			col-md-12
	
">
		 
		{BEGIN mastertable_block}
<div data-itemtype="master_info" data-itemid="master_info" {$item_master_info} data-pageid="{$pageid}">
	{$showmasterfile}
</div>
{END mastertable_block}		</div>					</div>
	</div>		
{END top_block}
									{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="small" {$form_above-grid} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c1" data-pageid="{$pageid}"	{$cell_above-grid_c1}
	class=" r-ori-vert			col-md-12
	
">
		{BEGIN firstAboveGridCell}
		 
		<span data-itemtype="print_pages" data-itemid="print_pages" {$item_print_pages} data-pageid="{$pageid}" data-small >
	{$print_pages_labelprint_pages}
</span>			{END firstAboveGridCell}	
	</div>					</div>
	</div>		
{END above-grid_block}
									{BEGIN grid_block}
<style>
	td.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary {
		background-color: #ffffbb;
	}
	td.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary {background-color: #ffe0b0;
	}
</style>
<div id="grid_block{$id}" class="rnr-report-gridblock">
			<!-- 0 group fields -->

 <!-- add to settings ? -->
<table class="table table-striped table-bordered rnr-b-grid rnr-gridtable" cellpadding="0" data-location="grid" id="form_grid_{$pageid}" data-makeup="small" {$form_grid} data-pageid="{$pageid}" >
	<thead>
		{BEGIN grid_header}
		<tr class="rnr-toprow table-header style1">
					<th class="{$fieldclass_Quantidade_Vendida}"> {$label Vinha_Report_Confirmados Quantidade_Vendida }</th>
					<th class="{$fieldclass_Stock}"> {$label Vinha_Report_Confirmados Stock }</th>
					<th class="{$fieldclass_SUM_Totale_}"> {$label Vinha_Report_Confirmados SUM_Totale_ }</th>
				</tr>
		{END grid_header}
	</thead>
	<tbody>
{BEGIN grid_row}
	{BEGIN row_data}
		<tr class="rnr-row style1" {$rowattrs}>
			
			<td {$recordattrs} class="{$fieldclass_Quantidade_Vendida}">
						<span data-itemtype="grid_field" data-field="Quantidade_Vendida" data-itemid="grid_field2" data-pageid={$pageid} data-record-id="{$recId}">
{$Quantidade_Vendida_value}
</span>			</td>
			
			<td {$recordattrs} class="{$fieldclass_Stock}">
						<span data-itemtype="grid_field" data-field="Stock" data-itemid="grid_field3" data-pageid={$pageid} data-record-id="{$recId}">
{$Stock_value}
</span>			</td>
			
			<td {$recordattrs} class="{$fieldclass_SUM_Totale_}">
						<span data-itemtype="grid_field" data-field="SUM_Totale_" data-itemid="grid_field4" data-pageid={$pageid} data-record-id="{$recId}">
{$SUM_Totale__value}
</span>			</td>
				</tr>
	{END row_data}
{END grid_row}

		{BEGIN summary_header}
		<tr class="rnr-toprow summary-header style1">
					<td class="{$fieldclass_Quantidade_Vendida}">{$label Vinha_Report_Confirmados Quantidade_Vendida }</td>
					<td class="{$fieldclass_Stock}">{$label Vinha_Report_Confirmados Stock }</td>
					<td class="{$fieldclass_SUM_Totale_}">{$label Vinha_Report_Confirmados SUM_Totale_ }</td>
				</tr>
	{END summary_header}	
	

	
	<!-- global summary-->
	{BEGIN global_summary}
		<tr class="rnr-row summary-global style1">
			<td class="globalsummary rnr-edge" colspan="3">Resumo Global 
			 {$global_total_cnt} - Total de Registos</td>
		</tr>

				<!--  Sum -->
		<tr class="rnr-row style1">
														<td class="globalsummary 0 ">
				 Soma&nbsp; 				
							{$global_totalQuantidade_Vendida_sum}
							</td>
														<td class="globalsummary 0  {$fieldclass_Stock}">
								
							{$global_totalStock_sum}
							</td>
														<td class="globalsummary rnr-edge  {$fieldclass_SUM_Totale_}">
								
							{$global_totalSUM_Totale__sum}
							</td>
					</tr>	
		
		
		
			{END global_summary}

	</tbody>
</table>	</div>
{END grid_block}									{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="small" {$form_below-grid} data-pageid="{$pageid}" >		
	</div>		
{END below-grid_block}
			</div>
		{$footer}
	{END body}
	</body>
</html>
