<!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_c1" data-pageid="{$pageid}"	{$cell_top_c1}
	class=" r-ori-vert			col-md-12
	
">
		 
		{BEGIN pdflink_block}
<span data-itemtype="print_pdf" data-itemid="print_pdf" {$item_print_pdf} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-default   
	pdflink" data-pdfpage="rprint" 
data-scope="0" 
data-split="0" 
data-records="10" 
data-orientation="portrait" 
data-scale="100" 
data-filename="Entrega Vinha Report.pdf" 
data-pagetype="rprint" 
{$pdflink_attrs} >
							Vizualiar em formato PDF			</a>
</span>
{END pdflink_block}
		</div>					</div>
	 
		<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 Entrega_Vinha_Report 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;
	}
	.rnr-report {
		width: 100%;
	}
	td {
		padding: 2px; 4px;
	}
			td.group_1{
			background-color: #90EE90;
		}
		td.nbgroup_1{
			background-color: #90EE90;
		}
		td.header_1 {
			background-color: #7ACA7A; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
		td.blackshade {
		font-size: 120%;
	}
	.summaryrow > * {
		border:solid #808080 1px; 
		border-left: none; 
		border-right: none;
	}
		.fieldnamesrow > * 
	{
		border:solid #808080 1px; 
		border-left: none; 
		border-right: none;
	}
	</style>
<div id="grid_block{$id}" class="rnr-report-gridblock">
						
 <!-- add to settings ? -->


<table class="table table-striped table-bordered rnr-b-grid rnr-gridtable" cellpadding="0" >
	<tbody>			
{BEGIN grid_row}
				<!--  group headers -->
	 
		{BEGIN NEntrega_newgroup}							
		<tr class="group-spliter-1"  >
			<td class="header_1" colspan="8">
				{$label Entrega_Vinha_Report NEntrega }:&nbsp;
				{$xNEntrega_grval}
								<span data-itemtype="grid_field" data-field="NEntrega" data-itemid="grid_field2" data-pageid={$pageid} data-record-id="{$recId}">
{$NEntrega_grval}
</span>			</td>
		</tr>
		
				<tr class="fieldnamesrow group-headers">
																	<td class="blackshade {$fieldclass_CodPHC}">{$label Entrega_Vinha_Report CodPHC }</td>
														<td class="blackshade {$fieldclass_Nome}">{$label Entrega_Vinha_Report Nome }</td>
														<td class="blackshade {$fieldclass_CodPlanta}">{$label Entrega_Vinha_Report CodPlanta }</td>
														<td class="blackshade {$fieldclass_PE}">{$label Entrega_Vinha_Report PE }</td>
														<td class="blackshade {$fieldclass_Clone}">{$label Entrega_Vinha_Report Clone }</td>
														<td class="blackshade {$fieldclass_Codice}">{$label Entrega_Vinha_Report Codice }</td>
														<td class="blackshade {$fieldclass_Quantidade}">{$label Entrega_Vinha_Report Quantidade }</td>
														<td class="blackshade {$fieldclass_CodMarza}">{$label Entrega_Vinha_Report CodMarza }</td>
									</tr>
				{END NEntrega_newgroup}
		

			<!--  data-->
		{BEGIN row_data}
		<tr >
																	<td class="data {$fieldclass_CodPHC}">
			{$xCodPHC_value}
						<span data-itemtype="grid_field" data-field="CodPHC" data-itemid="grid_field3" data-pageid={$pageid} data-record-id="{$recId}">
{$CodPHC_value}
</span>			</td>
														<td class="data {$fieldclass_Nome}">
			{$xNome_value}
						<span data-itemtype="grid_field" data-field="Nome" data-itemid="grid_field4" data-pageid={$pageid} data-record-id="{$recId}">
{$Nome_value}
</span>			</td>
														<td class="data {$fieldclass_CodPlanta}">
			{$xCodPlanta_value}
						<span data-itemtype="grid_field" data-field="CodPlanta" data-itemid="grid_field5" data-pageid={$pageid} data-record-id="{$recId}">
{$CodPlanta_value}
</span>			</td>
														<td class="data {$fieldclass_PE}">
			{$xPE_value}
						<span data-itemtype="grid_field" data-field="PE" data-itemid="grid_field6" data-pageid={$pageid} data-record-id="{$recId}">
{$PE_value}
</span>			</td>
														<td class="data {$fieldclass_Clone}">
			{$xClone_value}
						<span data-itemtype="grid_field" data-field="Clone" data-itemid="grid_field7" data-pageid={$pageid} data-record-id="{$recId}">
{$Clone_value}
</span>			</td>
														<td class="data {$fieldclass_Codice}">
			{$xCodice_value}
						<span data-itemtype="grid_field" data-field="Codice" data-itemid="grid_field8" data-pageid={$pageid} data-record-id="{$recId}">
{$Codice_value}
</span>			</td>
														<td class="data {$fieldclass_Quantidade}">
			{$xQuantidade_value}
						<span data-itemtype="grid_field" data-field="Quantidade" data-itemid="grid_field9" data-pageid={$pageid} data-record-id="{$recId}">
{$Quantidade_value}
</span>			</td>
														<td class="data {$fieldclass_CodMarza}">
			{$xCodMarza_value}
						<span data-itemtype="grid_field" data-field="CodMarza" data-itemid="grid_field10" data-pageid={$pageid} data-record-id="{$recId}">
{$CodMarza_value}
</span>			</td>
									</tr>
		{END row_data}
	
	<!---  group summary-->
					{BEGIN NEntrega_endgroup}

		<tr >
					<td class="group_1" colspan="8">
				Resumo para {$label Entrega_Vinha_Report NEntrega } {$NEntrega_grval} - <span class="summary-1" data-type="summary" data-value="{$groupNEntrega_total_cnt}">
					{$groupNEntrega_total_cnt}
				</span> Total de Registos			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_1">
									Soma									&nbsp;
							
				</td>
												<td class="group_1">
									&nbsp;
							
				</td>
												<td class="group_1">
									&nbsp;
							
				</td>
												<td class="group_1">
									&nbsp;
							
				</td>
												<td class="group_1">
									&nbsp;
							
				</td>
												<td class="group_1">
									&nbsp;
							
				</td>
												<td class="group_1 {$fieldclass_Quantidade}">
									&nbsp;
									<span class="summary-1" data-type="sum" data-value="{$groupNEntrega_totalQuantidade_sum}" data-field="Quantidade">					
						{$groupNEntrega_totalQuantidade_sum}
					</span>			
							
				</td>
												<td class="group_1">
									&nbsp;
							
				</td>
						</tr>
		
		
		
			

		{END NEntrega_endgroup}
			
{END grid_row}

	{BEGIN summary_header}
	<tr class="summary-header">
						
							<td class="blackshade {$fieldclass_CodPHC}">{$label Entrega_Vinha_Report CodPHC }</td>
				
							<td class="blackshade {$fieldclass_Nome}">{$label Entrega_Vinha_Report Nome }</td>
				
							<td class="blackshade {$fieldclass_CodPlanta}">{$label Entrega_Vinha_Report CodPlanta }</td>
				
							<td class="blackshade {$fieldclass_PE}">{$label Entrega_Vinha_Report PE }</td>
				
							<td class="blackshade {$fieldclass_Clone}">{$label Entrega_Vinha_Report Clone }</td>
				
							<td class="blackshade {$fieldclass_Codice}">{$label Entrega_Vinha_Report Codice }</td>
				
							<td class="blackshade {$fieldclass_Quantidade}">{$label Entrega_Vinha_Report Quantidade }</td>
				
							<td class="blackshade {$fieldclass_CodMarza}">{$label Entrega_Vinha_Report CodMarza }</td>
				
			
	</tr>
	{END summary_header}			




    
    

	<!-- global summary-->
	{BEGIN global_summary}
    <tr class="summaryrow summary-global">
        <td class="globalsummary" colspan="9">
            Resumo Global {$global_total_cnt} - Total de Registos        </td>
    </tr>

	    <!--  Sum -->
    <tr class="summary-global">
					
                <td class="globalsummary">Soma</td>
        		
					
                <td class="globalsummary">&nbsp;</td>
				
					
                <td class="globalsummary">&nbsp;</td>
				
					
                <td class="globalsummary">&nbsp;</td>
				
					
                <td class="globalsummary">&nbsp;</td>
				
					
                <td class="globalsummary">&nbsp;</td>
				
					
                <td class="globalsummary {$fieldclass_Quantidade}">
            {$global_totalQuantidade_sum}
        </td>
        		
					
                <td class="globalsummary">&nbsp;</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>
