<!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="Financials By Year&#38;Institution.pdf" 
data-pagetype="rprint" 
{$pdflink_attrs} >
							PDF View			</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 FinancialsByYear_Institution 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>		
{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: #FFD700;
		}
		td.nbgroup_1{
			background-color: #FFD700;
		}
		td.header_1 {
			background-color: #D8B600; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_2{
			background-color: #98FB98;
		}
		td.nbgroup_2{
			background-color: #98FB98;
		}
		td.header_2 {
			background-color: #81D581; 
			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 Yearly_newgroup}							
		<tr class="group-spliter-1"  >
			<td class="header_1" colspan="11">
				{$label FinancialsByYear_Institution Yearly }:&nbsp;
				{$xYearly_grval}
								<span data-itemtype="grid_field" data-field="Yearly" data-itemid="grid_field2" data-pageid={$pageid} data-record-id="{$recId}">
{$Yearly_grval}
</span>			</td>
		</tr>
		
				{END Yearly_newgroup}
	 
		{BEGIN TertiaryInstitutionAdmitted_newgroup}							
		<tr class="group-spliter-2"  >
			<td class="header_2" colspan="11">
				{$label FinancialsByYear_Institution TertiaryInstitutionAdmitted }:&nbsp;
				{$xTertiaryInstitutionAdmitted_grval}
								<span data-itemtype="grid_field" data-field="TertiaryInstitutionAdmitted" data-itemid="grid_field3" data-pageid={$pageid} data-record-id="{$recId}">
{$TertiaryInstitutionAdmitted_grval}
</span>			</td>
		</tr>
		
				<tr class="fieldnamesrow group-headers">
																								<td class="blackshade {$fieldclass_MPGID}">{$label FinancialsByYear_Institution MPGID }</td>
														<td class="blackshade {$fieldclass_StudentTotall}">{$label FinancialsByYear_Institution StudentTotall }</td>
														<td class="blackshade {$fieldclass_FifthYearFee}">{$label FinancialsByYear_Institution FifthYearFee }</td>
														<td class="blackshade {$fieldclass_FourthYearFee}">{$label FinancialsByYear_Institution FourthYearFee }</td>
														<td class="blackshade {$fieldclass_ThirdYearFee}">{$label FinancialsByYear_Institution ThirdYearFee }</td>
														<td class="blackshade {$fieldclass_SecondYearFee}">{$label FinancialsByYear_Institution SecondYearFee }</td>
														<td class="blackshade {$fieldclass_FirstYearFee}">{$label FinancialsByYear_Institution FirstYearFee }</td>
														<td class="blackshade {$fieldclass_DateofBirth}">{$label FinancialsByYear_Institution DateofBirth }</td>
														<td class="blackshade {$fieldclass_Gender}">{$label FinancialsByYear_Institution Gender }</td>
														<td class="blackshade {$fieldclass_FirstName}">{$label FinancialsByYear_Institution FirstName }</td>
														<td class="blackshade {$fieldclass_Surname}">{$label FinancialsByYear_Institution Surname }</td>
									</tr>
				{END TertiaryInstitutionAdmitted_newgroup}
		

			<!--  data-->
		{BEGIN row_data}
		<tr >
																								<td class="data {$fieldclass_MPGID}">
			{$xMPGID_value}
						<span data-itemtype="grid_field" data-field="MPGID" data-itemid="grid_field4" data-pageid={$pageid} data-record-id="{$recId}">
{$MPGID_value}
</span>			</td>
														<td class="data {$fieldclass_StudentTotall}">
			{$xStudentTotall_value}
						<span data-itemtype="grid_field" data-field="StudentTotall" data-itemid="grid_field5" data-pageid={$pageid} data-record-id="{$recId}">
{$StudentTotall_value}
</span>			</td>
														<td class="data {$fieldclass_FifthYearFee}">
			{$xFifthYearFee_value}
						<span data-itemtype="grid_field" data-field="FifthYearFee" data-itemid="grid_field6" data-pageid={$pageid} data-record-id="{$recId}">
{$FifthYearFee_value}
</span>			</td>
														<td class="data {$fieldclass_FourthYearFee}">
			{$xFourthYearFee_value}
						<span data-itemtype="grid_field" data-field="FourthYearFee" data-itemid="grid_field7" data-pageid={$pageid} data-record-id="{$recId}">
{$FourthYearFee_value}
</span>			</td>
														<td class="data {$fieldclass_ThirdYearFee}">
			{$xThirdYearFee_value}
						<span data-itemtype="grid_field" data-field="ThirdYearFee" data-itemid="grid_field8" data-pageid={$pageid} data-record-id="{$recId}">
{$ThirdYearFee_value}
</span>			</td>
														<td class="data {$fieldclass_SecondYearFee}">
			{$xSecondYearFee_value}
						<span data-itemtype="grid_field" data-field="SecondYearFee" data-itemid="grid_field9" data-pageid={$pageid} data-record-id="{$recId}">
{$SecondYearFee_value}
</span>			</td>
														<td class="data {$fieldclass_FirstYearFee}">
			{$xFirstYearFee_value}
						<span data-itemtype="grid_field" data-field="FirstYearFee" data-itemid="grid_field10" data-pageid={$pageid} data-record-id="{$recId}">
{$FirstYearFee_value}
</span>			</td>
														<td class="data {$fieldclass_DateofBirth}">
			{$xDateofBirth_value}
						<span data-itemtype="grid_field" data-field="DateofBirth" data-itemid="grid_field11" data-pageid={$pageid} data-record-id="{$recId}">
{$DateofBirth_value}
</span>			</td>
														<td class="data {$fieldclass_Gender}">
			{$xGender_value}
						<span data-itemtype="grid_field" data-field="Gender" data-itemid="grid_field12" data-pageid={$pageid} data-record-id="{$recId}">
{$Gender_value}
</span>			</td>
														<td class="data {$fieldclass_FirstName}">
			{$xFirstName_value}
						<span data-itemtype="grid_field" data-field="FirstName" data-itemid="grid_field13" data-pageid={$pageid} data-record-id="{$recId}">
{$FirstName_value}
</span>			</td>
														<td class="data {$fieldclass_Surname}">
			{$xSurname_value}
						<span data-itemtype="grid_field" data-field="Surname" data-itemid="grid_field14" data-pageid={$pageid} data-record-id="{$recId}">
{$Surname_value}
</span>			</td>
									</tr>
		{END row_data}
	
	<!---  group summary-->
					{BEGIN TertiaryInstitutionAdmitted_endgroup}

		<tr >
					<td class="group_2" colspan="11">
				Summary for {$label FinancialsByYear_Institution TertiaryInstitutionAdmitted } {$TertiaryInstitutionAdmitted_grval} - <span class="summary-2" data-type="summary" data-value="{$groupTertiaryInstitutionAdmitted_total_cnt}">
					{$groupTertiaryInstitutionAdmitted_total_cnt}
				</span> records total			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_2">
									Sum									&nbsp;
							
				</td>
												<td class="group_2 {$fieldclass_StudentTotall}">
									&nbsp;
									<span class="summary-2" data-type="sum" data-value="{$groupTertiaryInstitutionAdmitted_totalStudentTotall_sum}" data-field="StudentTotall">					
						{$groupTertiaryInstitutionAdmitted_totalStudentTotall_sum}
					</span>			
							
				</td>
												<td class="group_2 {$fieldclass_FifthYearFee}">
									&nbsp;
									<span class="summary-2" data-type="sum" data-value="{$groupTertiaryInstitutionAdmitted_totalFifthYearFee_sum}" data-field="FifthYearFee">					
						{$groupTertiaryInstitutionAdmitted_totalFifthYearFee_sum}
					</span>			
							
				</td>
												<td class="group_2 {$fieldclass_FourthYearFee}">
									&nbsp;
									<span class="summary-2" data-type="sum" data-value="{$groupTertiaryInstitutionAdmitted_totalFourthYearFee_sum}" data-field="FourthYearFee">					
						{$groupTertiaryInstitutionAdmitted_totalFourthYearFee_sum}
					</span>			
							
				</td>
												<td class="group_2 {$fieldclass_ThirdYearFee}">
									&nbsp;
									<span class="summary-2" data-type="sum" data-value="{$groupTertiaryInstitutionAdmitted_totalThirdYearFee_sum}" data-field="ThirdYearFee">					
						{$groupTertiaryInstitutionAdmitted_totalThirdYearFee_sum}
					</span>			
							
				</td>
												<td class="group_2 {$fieldclass_SecondYearFee}">
									&nbsp;
									<span class="summary-2" data-type="sum" data-value="{$groupTertiaryInstitutionAdmitted_totalSecondYearFee_sum}" data-field="SecondYearFee">					
						{$groupTertiaryInstitutionAdmitted_totalSecondYearFee_sum}
					</span>			
							
				</td>
												<td class="group_2 {$fieldclass_FirstYearFee}">
									&nbsp;
									<span class="summary-2" data-type="sum" data-value="{$groupTertiaryInstitutionAdmitted_totalFirstYearFee_sum}" data-field="FirstYearFee">					
						{$groupTertiaryInstitutionAdmitted_totalFirstYearFee_sum}
					</span>			
							
				</td>
												<td class="group_2">
									&nbsp;
							
				</td>
												<td class="group_2">
									&nbsp;
							
				</td>
												<td class="group_2">
									&nbsp;
							
				</td>
												<td class="group_2">
									&nbsp;
							
				</td>
						</tr>
		
		
		
			

		{END TertiaryInstitutionAdmitted_endgroup}
							{BEGIN Yearly_endgroup}

		<tr >
					<td class="group_1" colspan="11">
				Summary for {$label FinancialsByYear_Institution Yearly } {$Yearly_grval} - <span class="summary-1" data-type="summary" data-value="{$groupYearly_total_cnt}">
					{$groupYearly_total_cnt}
				</span> records total			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_1">
									Sum									&nbsp;
							
				</td>
												<td class="group_1 {$fieldclass_StudentTotall}">
									&nbsp;
									<span class="summary-1" data-type="sum" data-value="{$groupYearly_totalStudentTotall_sum}" data-field="StudentTotall">					
						{$groupYearly_totalStudentTotall_sum}
					</span>			
							
				</td>
												<td class="group_1 {$fieldclass_FifthYearFee}">
									&nbsp;
									<span class="summary-1" data-type="sum" data-value="{$groupYearly_totalFifthYearFee_sum}" data-field="FifthYearFee">					
						{$groupYearly_totalFifthYearFee_sum}
					</span>			
							
				</td>
												<td class="group_1 {$fieldclass_FourthYearFee}">
									&nbsp;
									<span class="summary-1" data-type="sum" data-value="{$groupYearly_totalFourthYearFee_sum}" data-field="FourthYearFee">					
						{$groupYearly_totalFourthYearFee_sum}
					</span>			
							
				</td>
												<td class="group_1 {$fieldclass_ThirdYearFee}">
									&nbsp;
									<span class="summary-1" data-type="sum" data-value="{$groupYearly_totalThirdYearFee_sum}" data-field="ThirdYearFee">					
						{$groupYearly_totalThirdYearFee_sum}
					</span>			
							
				</td>
												<td class="group_1 {$fieldclass_SecondYearFee}">
									&nbsp;
									<span class="summary-1" data-type="sum" data-value="{$groupYearly_totalSecondYearFee_sum}" data-field="SecondYearFee">					
						{$groupYearly_totalSecondYearFee_sum}
					</span>			
							
				</td>
												<td class="group_1 {$fieldclass_FirstYearFee}">
									&nbsp;
									<span class="summary-1" data-type="sum" data-value="{$groupYearly_totalFirstYearFee_sum}" data-field="FirstYearFee">					
						{$groupYearly_totalFirstYearFee_sum}
					</span>			
							
				</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>
						</tr>
		
		
		
			

		{END Yearly_endgroup}
			
{END grid_row}

	{BEGIN summary_header}
	<tr class="summary-header">
						
						
							<td class="blackshade {$fieldclass_MPGID}">{$label FinancialsByYear_Institution MPGID }</td>
				
							<td class="blackshade {$fieldclass_StudentTotall}">{$label FinancialsByYear_Institution StudentTotall }</td>
				
							<td class="blackshade {$fieldclass_FifthYearFee}">{$label FinancialsByYear_Institution FifthYearFee }</td>
				
							<td class="blackshade {$fieldclass_FourthYearFee}">{$label FinancialsByYear_Institution FourthYearFee }</td>
				
							<td class="blackshade {$fieldclass_ThirdYearFee}">{$label FinancialsByYear_Institution ThirdYearFee }</td>
				
							<td class="blackshade {$fieldclass_SecondYearFee}">{$label FinancialsByYear_Institution SecondYearFee }</td>
				
							<td class="blackshade {$fieldclass_FirstYearFee}">{$label FinancialsByYear_Institution FirstYearFee }</td>
				
							<td class="blackshade {$fieldclass_DateofBirth}">{$label FinancialsByYear_Institution DateofBirth }</td>
				
							<td class="blackshade {$fieldclass_Gender}">{$label FinancialsByYear_Institution Gender }</td>
				
							<td class="blackshade {$fieldclass_FirstName}">{$label FinancialsByYear_Institution FirstName }</td>
				
							<td class="blackshade {$fieldclass_Surname}">{$label FinancialsByYear_Institution Surname }</td>
				
			
	</tr>
	{END summary_header}			




    
    

	<!-- global summary-->
	{BEGIN global_summary}
    <tr class="summaryrow summary-global">
        <td class="globalsummary" colspan="13">
            Global summary {$global_total_cnt} - records total        </td>
    </tr>

	    <!--  Sum -->
    <tr class="summary-global">
					
                <td class="globalsummary">Sum</td>
        		
					
                <td class="globalsummary {$fieldclass_StudentTotall}">
            {$global_totalStudentTotall_sum}
        </td>
        		
					
                <td class="globalsummary {$fieldclass_FifthYearFee}">
            {$global_totalFifthYearFee_sum}
        </td>
        		
					
                <td class="globalsummary {$fieldclass_FourthYearFee}">
            {$global_totalFourthYearFee_sum}
        </td>
        		
					
                <td class="globalsummary {$fieldclass_ThirdYearFee}">
            {$global_totalThirdYearFee_sum}
        </td>
        		
					
                <td class="globalsummary {$fieldclass_SecondYearFee}">
            {$global_totalSecondYearFee_sum}
        </td>
        		
					
                <td class="globalsummary {$fieldclass_FirstYearFee}">
            {$global_totalFirstYearFee_sum}
        </td>
        		
					
                <td class="globalsummary">&nbsp;</td>
				
					
                <td class="globalsummary">&nbsp;</td>
				
					
                <td class="globalsummary">&nbsp;</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>
