<!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-list" {$bodyattrs}>
	{BEGIN body}
		{$header}
		<style>
			{$containerCss}
		</style>
		<div class="r-topbar-page">
			<div data-menu-width="full" 
				 
				class="r-topheader" 
				data-resize-name="topbar"
				data-body-align="left"
			>
								{BEGIN supertop_block}
<nav class="navbar navbar-default" 
	data-location="supertop" id="form_supertop_{$pageid}" data-makeup="topbar" {$form_supertop} data-pageid="{$pageid}" >
			 
							 
				<span data-cellId="supertop_c1" data-pageid="{$pageid}" class="r-align-left navbar-header" data-itemid="logo" {$item_logo}>
				{BEGIN logo_block}
	<A data-itemtype="logo" data-itemid="logo" {$item_logo} data-pageid="{$pageid}" class="navbar-brand" href="{$home_link}" data-pageid="{$pageid}" {$logo_hiddenattr}>
		{$logo}
	</A>
{END logo_block}
				<button data-pageid="1" type="button" class="navbar-toggle collapsed" data-runner-toggle="collapse" data-target="[data-mobile-controlled]">	
					<span class="sr-only">Toggle navigation</span>	
					<span class="icon-bar"></span>					
				</button>				
			</span>
		 
				<span data-cellId="supertop_c1" data-pageid="{$pageid}" class="r-align-left navbar-collapse" data-itemtype="menu" data-itemid="menu" {$item_menu} data-pageid="{$pageid}">
				{$menu main horizontal}			</span>
							 
							 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="simple_search" {$item_simple_search} data-topcell-item-type="simple_search" >
				<span data-itemtype="simple_search" data-itemid="simple_search" {$item_simple_search} data-pageid="{$pageid}" class="form-group">

<div  class="input-group">
{BEGIN searchform_text}
	<input type="search" class="form-control" {$searchfor_attrs} size="25">
{END searchform_text}
	<span class="input-group-btn">
	{BEGIN searchform_showall}
		<button class="btn btn-default" {$showAllCont_attrs} {$showallbutton_attrs} title="Show all">
			<span class="glyphicon glyphicon-remove"></span>
		</button>
	{END searchform_showall}
	{BEGIN searchform_search}
	<button {$searchbutton_attrs} class="btn btn-primary" >
		<span class="glyphicon glyphicon-search"></span>
	</button>
	{END searchform_search}
	</span>
</div>
		
</span>			</span>
		 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="list_options" {$item_list_options} data-topcell-item-type="list_options" >
				<span data-itemtype="list_options" data-itemid="list_options" {$item_list_options} data-pageid="{$pageid}" data-small data-button-item>
	<span class="dropdown ">
		<button type="button" title="" class="btn btn-default   dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">		
							<span class="glyphicon glyphicon-cog"></span>
									<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
								<li data-itemtype="edit_selected" data-itemid="edit_selected" {$item_edit_selected} data-pageid="{$pageid}" data-small >
				<a  href="#" {$editselectedlink_attrs} {$editselectedlink_span}  title="" >
				
		Edit selected		
		</a>
	</li>
							{BEGIN exportselected_link}
	<li data-itemtype="export_selected" data-itemid="export_selected" {$item_export_selected} data-pageid="{$pageid}" data-small >
				<a  href="#" {$exportselectedlink_attrs} {$exportselectedlink_span}  title="" >
				
		Export selected		
		</a>
	</li>
{END exportselected_link}
							{BEGIN deleteselected_link}
	<li data-itemtype="delete_selected" data-itemid="delete_selected" {$item_delete_selected} data-pageid="{$pageid}" data-small >
				<a  href="#" {$deleteselectedlink_attrs} {$deleteselectedlink_span}  title="" >
				
		Delete selected		
		</a>
	</li>
{END deleteselected_link}
							<li role="separator" class="divider"></li>								<li data-itemtype="advsearch_link" data-itemid="advsearch_link" {$item_advsearch_link} data-pageid="{$pageid}" data-small >
				<a   href="mpgsstemplate_search.php" {$advsearchlink_attrs}  title="" >
				
		Advanced search		
		</a>
	</li>
							<li role="separator" class="divider"></li>							{BEGIN export_link}
	<li data-itemtype="export" data-itemid="export" {$item_export} data-pageid="{$pageid}" data-small >
				<a  href="#" {$exportlink_attrs}  title="" >
				
		Export results		
		</a>
	</li>
{END export_link}
					</ul>
	</span>
</span>
			</span>
								</nav>
{END supertop_block}
					{$locking}
			</div>	
			<div data-body-align="left"  data-body-width="standard" class="r-body" data-resize-top="topbar" >
				<div class="r-top">
								{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="topbar" {$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 breadcrumb}
<ol class="breadcrumb" data-itemtype="breadcrumb" data-itemid="breadcrumb" {$item_breadcrumb} data-pageid="{$pageid}">
<li ><a href="{$crumb_home_link}"><span class="glyphicon glyphicon-home"></span></a>{$crumb_dropdown}</li>
{BEGIN crumb}
  <li class="{$crumb_item_class}">
{BEGIN crumb_title_link}
	<a {$crumb_attrs}>{$crumb_title}</a>
{END crumb_title_link}
{BEGIN crumb_title_span}
	<span {$crumb_attrs}>{$crumb_title}</span>
{END crumb_title_span}	
	{$crumb_dropdown}
  </li>
{END crumb}
</ol>
{END breadcrumb}		</div>					</div>
	</div>		
{END top_block}
					</div>
				<div class="r-content">
										<div class="r-left" {$blockattr_left} {$form_left} >
										{BEGIN left_block}
<table class="r-fluid r-form" data-location="left" id="form_left_{$pageid}" data-makeup="topbar" {$form_left} data-pageid="{$pageid}" >
						<tbody>
			
								<tr>
									<td 
	class=" r-ori-vert			"
			 
	data-cellId="left_c1" data-pageid="{$pageid}">
</td>
							</tr>
					
					</tbody>
				</table>
{END left_block}
						</div>
										<div class="r-data-block" data-body-width="standard" >
						
										{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="topbar" {$form_above-grid} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c1" data-pageid="{$pageid}"	{$cell_above-grid_c1}
	class="			col-md-6
	
">
		{BEGIN firstAboveGridCell}
		 
		{BEGIN add_link}
<span data-itemtype="add" data-itemid="add" {$item_add} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" {$addlink_attrs} href="mpgsstemplate_add.php" data-popup >
							Add new			</a>
</span>
{END add_link}
	 
		{BEGIN inlineadd_link}
<span data-itemtype="inline_add" data-itemid="inline_add" {$item_inline_add} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" {$inlineaddlink_attrs} >
							Inline Add			</a>
</span>
{END inlineadd_link}
	 
		{BEGIN saveall_link}
<span data-itemtype="inline_save_all" data-itemid="inline_save_all" {$item_inline_save_all} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" {$savealllink_attrs} {$savealllink_span} >
							Save all			</a>
</span>
{END saveall_link}
	 
		{BEGIN cancelall_link}
<span data-itemtype="inline_cancel_all" data-itemid="inline_cancel_all" {$item_inline_cancel_all} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-default   
	" {$cancelalllink_attrs} {$cancelalllink_span} >
							Cancel			</a>
</span>
{END cancelall_link}
	 
		{BEGIN deleteselected_link}
<span data-itemtype="delete" data-itemid="delete" {$item_delete} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-default   
	" {$deleteselectedlink_attrs} {$deleteselectedlink_span} disabled >
							Delete			</a>
</span>
{END deleteselected_link}
			{END firstAboveGridCell}	
	</div>			 
				<div 
	data-cellId="above-grid_c2" data-pageid="{$pageid}"	{$cell_above-grid_c2}
	class="r-align-right			col-md-6
	
">
		 
		<span data-itemtype="details_found" data-itemid="details_found" {$item_details_found} data-pageid="{$pageid}" data-small >
{$details_found_labeldetails_found}
</span>	 
		<span data-itemtype="page_size" data-itemid="page_size" {$item_page_size} data-pageid="{$pageid}" >
		{$recsPerPage}
</span>	 
		{BEGIN print_friendly}
<span id="printpanelblock{$id}"  data-pageid="{$pageid}" {$printpanel_hiddenattr} data-itemtype="print_panel" data-itemid="print_panel" {$item_print_panel} data-pageid="{$pageid}">
	<button title="Print-friendly page" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
					<span class="glyphicon glyphicon-print"></span>
				<span class="caret"></span>
	</button>
	<ul class="dropdown-menu pull-right">
										 
				 
					<li class="container-fluid 
										">
									<div id="print_friendly_scope{$id}">
	<div class="row">
		<div class="col-md-4">
			Scope:		</div>

		{BEGIN print_friendly_all}
		<div class="col-md-8">
			<label for="printAll{$id}">
				<input type="radio" id="printAll{$id}" data-href="mpgsstemplate_print.php?all=1&amp;{$crosstable_attrs}" name="printScope">
									Print all pages							</label>
		</div>
		{END print_friendly_all}
	</div>
	<div class="row">
		<div class="col-md-4">&nbsp;</div>
		<div class="col-md-8">
			<label for="printPage{$id}">
				<input name="printScope" id="printPage{$id}" type="radio" checked data-href="mpgsstemplate_print.php?{$crosstable_attrs}">
				Print this page			</label>
		</div>
	</div>
	
		<div class="row">
		<div class="col-md-4">
			&nbsp;
		</div>
		<div class="col-md-8">
			<label style="color: gray;" for="printSelection{$id}">
			<input name="printScope" disabled="disabled" id="printSelection{$id}" type="radio">
			Print selected			</label>
		</div>
	</div>
	</div>				 
					</li>
											<li class="divider" role="separator"></li>
																				 
				 
					<li class="container-fluid 
										">
									<div>
	<label for="printPerPage{$id}">
					Records Per Page							
	</label>
	<input type="number" id="printPerPage{$id}" value="{$print_recspp}" class="rnr-printrecspp">		
</div>
				 
					</li>
											<li class="divider" role="separator"></li>
																				 
				 
					<li class="container-fluid 
					 text-center 					">
									<span data-itemtype="print_button" data-itemid="print_button" {$item_print_button} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" id="print_friendly_button{$id}" >
							Print			</a>
</span>
				 
					</li>
															</ul>
</span>
{END print_friendly}
		</div>					</div>
	</div>		
{END above-grid_block}
							
						<div class="r-grid">
										{BEGIN grid_block}
{BEGIN grid_tabs}
  <ul class="nav nav-tabs bsgrid_tabs">
	{$grid_tabs_content}
  </ul>
{END grid_tabs}
{BEGIN message_block}
<div data-grid-message data-pageid="{$pageid}" class="alert {$message_class}" role="alert" {$grid_message_attrs}>{$message}</div>
{END message_block}	<style>
@media screen and (max-width: 767px) {
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MPGID"]:before {
		content: "{$label mpgsstemplate MPGID}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="Surname"]:before {
		content: "{$label mpgsstemplate Surname}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FirstName"]:before {
		content: "{$label mpgsstemplate FirstName}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="Photo"]:before {
		content: "{$label mpgsstemplate Photo}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="Gender"]:before {
		content: "{$label mpgsstemplate Gender}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="DateofBirth"]:before {
		content: "{$label mpgsstemplate DateofBirth}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="PlaceofBirth"]:before {
		content: "{$label mpgsstemplate PlaceofBirth}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="DistrictOfBirth"]:before {
		content: "{$label mpgsstemplate DistrictOfBirth}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="ProvinceOfBirth"]:before {
		content: "{$label mpgsstemplate ProvinceOfBirth}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FatherVillage"]:before {
		content: "{$label mpgsstemplate FatherVillage}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FatherLLG"]:before {
		content: "{$label mpgsstemplate FatherLLG}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FatherDistrict"]:before {
		content: "{$label mpgsstemplate FatherDistrict}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FATHERJOB"]:before {
		content: "{$label mpgsstemplate FATHERJOB}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FATHERSNAME"]:before {
		content: "{$label mpgsstemplate FATHERSNAME}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FATHERSURNAME"]:before {
		content: "{$label mpgsstemplate FATHERSURNAME}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FATHERPROV"]:before {
		content: "{$label mpgsstemplate FATHERPROV}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MOTHERJOB"]:before {
		content: "{$label mpgsstemplate MOTHERJOB}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MOTHERNAME"]:before {
		content: "{$label mpgsstemplate MOTHERNAME}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MOTHERSURNAME"]:before {
		content: "{$label mpgsstemplate MOTHERSURNAME}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MOTHERNATIONAL"]:before {
		content: "{$label mpgsstemplate MOTHERNATIONAL}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FATHERNATIONAL"]:before {
		content: "{$label mpgsstemplate FATHERNATIONAL}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FATHERCLAN"]:before {
		content: "{$label mpgsstemplate FATHERCLAN}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MOTHERCLAN"]:before {
		content: "{$label mpgsstemplate MOTHERCLAN}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MOTHERRELIGION"]:before {
		content: "{$label mpgsstemplate MOTHERRELIGION}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FATHERRELIGION"]:before {
		content: "{$label mpgsstemplate FATHERRELIGION}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="FATHERBIRTHPLACE"]:before {
		content: "{$label mpgsstemplate FATHERBIRTHPLACE}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MOTHERBIRTHPLACE"]:before {
		content: "{$label mpgsstemplate MOTHERBIRTHPLACE}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MotherVillage"]:before {
		content: "{$label mpgsstemplate MotherVillage}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MotherLLG"]:before {
		content: "{$label mpgsstemplate MotherLLG}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MotherDistrict"]:before {
		content: "{$label mpgsstemplate MotherDistrict}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MOTHERPROV"]:before {
		content: "{$label mpgsstemplate MOTHERPROV}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="LastInstitutuonAttended"]:before {
		content: "{$label mpgsstemplate LastInstitutuonAttended}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="HighestGradeCompleted"]:before {
		content: "{$label mpgsstemplate HighestGradeCompleted}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="YearHighestGradeCompleted"]:before {
		content: "{$label mpgsstemplate YearHighestGradeCompleted}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="TertiaryInstitutionAdmitted"]:before {
		content: "{$label mpgsstemplate TertiaryInstitutionAdmitted}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="ProgramName"]:before {
		content: "{$label mpgsstemplate ProgramName}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="ProgramCode"]:before {
		content: "{$label mpgsstemplate ProgramCode}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="NewApplicant"]:before {
		content: "{$label mpgsstemplate NewApplicant}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="Reapply"]:before {
		content: "{$label mpgsstemplate Reapply}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="EmailAddrssAppl"]:before {
		content: "{$label mpgsstemplate EmailAddrssAppl}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="MobileNoAppl"]:before {
		content: "{$label mpgsstemplate MobileNoAppl}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="WitnessName"]:before {
		content: "{$label mpgsstemplate WitnessName}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="WitnessOccupation"]:before {
		content: "{$label mpgsstemplate WitnessOccupation}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="WitnessAddress"]:before {
		content: "{$label mpgsstemplate WitnessAddress}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="Documents"]:before {
		content: "{$label mpgsstemplate Documents}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="firstyear"]:before {
		content: "{$label mpgsstemplate firstyear}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="acceptletter"]:before {
		content: "{$label mpgsstemplate acceptletter}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="gradetencert"]:before {
		content: "{$label mpgsstemplate gradetencert}";
	}
	
	[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="grade12cert"]:before {
		content: "{$label mpgsstemplate grade12cert}";
	}
	
}
</style>
<table data-location="grid" id="form_grid_{$pageid}" data-makeup="topbar" {$form_grid} data-pageid="{$pageid}" class=" table {$grid_classes}  r-flexgrid rnr-b-grid rnr-gridtable" 
	cellpadding="0" 
	data-body-height="1"
>
						<thead>
			{BEGIN grid_header}
					
		 
						<tr {$rowattrs} {$row_grid_0} class="{$rowclass} 
									{$gridHeader_class}
									
								r-gridrow
							">
				 
					{BEGIN cellblock_grid_headcell_icons}
	<th
	
	{$cell_grid_headcell_icons}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_headcell_icons" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="mpgsstemplate_list"		data-control-cell
	
	>

	
	</th>
	{END cellblock_grid_headcell_icons}
				 
					{BEGIN cellblock_grid_headcell_checkbox}
	<th
	
	{$cell_grid_headcell_checkbox}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_headcell_checkbox" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="mpgsstemplate_list"	
		data-checkbox-cell
	>

	 
		{BEGIN checkbox_column}
<span data-itemtype="grid_checkbox_head" data-itemid="grid_checkbox_head" {$item_grid_checkbox_head} data-pageid="{$pageid}" data-record-id="{$recId}" >
	<input type="checkbox" {$checkboxheader_attrs}>
</span>
{END checkbox_column}
	
	</th>
	{END cellblock_grid_headcell_checkbox}
				 
					{BEGIN cellblock_grid_headcell_field}
	<th
	
	{$cell_grid_headcell_field}
	{$recordattrs}
	class="
		 r-ori-vert				{$Surname_class}
			"

			data-field="Surname"
	
	data-cellId="grid_headcell_field" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN Surname_fieldheadercolumn}
	{BEGIN Surname_fieldheader}
	<SPAN {$Surname_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field4" {$item_simple_grid_field4} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="Surname">
	{$label mpgsstemplate Surname }	{$arrow_icon_Surname}
	</SPAN>
	{END Surname_fieldheader}
{END Surname_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field}
				 
					{BEGIN cellblock_grid_headcell_field1}
	<th
	
	{$cell_grid_headcell_field1}
	{$recordattrs}
	class="
		 r-ori-vert				{$FirstName_class}
			"

			data-field="FirstName"
	
	data-cellId="grid_headcell_field1" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN FirstName_fieldheadercolumn}
	{BEGIN FirstName_fieldheader}
	<SPAN {$FirstName_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field5" {$item_simple_grid_field5} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="FirstName">
	{$label mpgsstemplate FirstName }	{$arrow_icon_FirstName}
	</SPAN>
	{END FirstName_fieldheader}
{END FirstName_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field1}
				 
					{BEGIN cellblock_grid_headcell_field2}
	<th
	
	{$cell_grid_headcell_field2}
	{$recordattrs}
	class="
		 r-ori-vert				{$TertiaryInstitutionAdmitted_class}
			"

			data-field="TertiaryInstitutionAdmitted"
	
	data-cellId="grid_headcell_field2" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN TertiaryInstitutionAdmitted_fieldheadercolumn}
	{BEGIN TertiaryInstitutionAdmitted_fieldheader}
	<SPAN {$TertiaryInstitutionAdmitted_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field6" {$item_simple_grid_field6} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="TertiaryInstitutionAdmitted">
	{$label mpgsstemplate TertiaryInstitutionAdmitted }	{$arrow_icon_TertiaryInstitutionAdmitted}
	</SPAN>
	{END TertiaryInstitutionAdmitted_fieldheader}
{END TertiaryInstitutionAdmitted_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field2}
				 
					{BEGIN cellblock_grid_headcell_field3}
	<th
	
	{$cell_grid_headcell_field3}
	{$recordattrs}
	class="
		 r-ori-vert				{$ProgramName_class}
			"

			data-field="ProgramName"
	
	data-cellId="grid_headcell_field3" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN ProgramName_fieldheadercolumn}
	{BEGIN ProgramName_fieldheader}
	<SPAN {$ProgramName_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field7" {$item_simple_grid_field7} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="ProgramName">
	{$label mpgsstemplate ProgramName }	{$arrow_icon_ProgramName}
	</SPAN>
	{END ProgramName_fieldheader}
{END ProgramName_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field3}
							</tr>
					 
					 
					
					{END grid_header}
			</thead>
															<tbody>
					{BEGIN grid_row}
									
		 
					 
						<tr {$rowattrs} {$row_grid_1} class="{$rowclass} 
								
								r-gridrow
							">
				 
					{BEGIN cellblock_grid_cell_icons}
	<td
	
	{$cell_grid_cell_icons}
	{$recordattrs}
	class="
					"

	
	data-cellId="grid_cell_icons" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="mpgsstemplate_list"		data-control-cell
	
	>

	 
		{BEGIN edit_column}
{BEGIN edit_link}
<span data-itemtype="grid_edit" data-itemid="grid_edit" {$item_grid_edit} data-pageid="{$pageid}" data-record-id="{$recId}" data-small data-button-item>
	<a type="button" title="Edit" class="btn-link   
	 glyphicon glyphicon-pencil" href="mpgsstemplate_edit.php?{$editlink}" {$editlink_attrs} title="Edit" data-popup >		
				
								</a>
</span>
{END edit_link}
{END edit_column}
	 
		{BEGIN inlineedit_column}
{BEGIN inlineedit_link}
<span data-itemtype="grid_inline_edit" data-itemid="grid_inline_edit" {$item_grid_inline_edit} data-pageid="{$pageid}" data-record-id="{$recId}" data-small data-button-item>
	<a type="button" title="Inline Edit" class="btn-link   
	 glyphicon glyphicon-edit" {$inlineeditlink_attrs} title="Inline Edit" >		
				
								</a>
</span>
{END inlineedit_link}
{END inlineedit_column}
	 
		{BEGIN inline_save}
<span data-itemtype="grid_inline_save" data-itemid="grid_inline_save" {$item_grid_inline_save} data-pageid="{$pageid}" data-record-id="{$recId}" data-small data-button-item>
	<a type="button" title="Save" class="btn-link   
	 glyphicon glyphicon-ok" {$inlinesavelink_attrs} title="Save" >		
				
								</a>
</span>
{END inline_save}
	 
		{BEGIN inline_cancel}
<span data-itemtype="grid_inline_cancel" data-itemid="grid_inline_cancel" {$item_grid_inline_cancel} data-pageid="{$pageid}" data-record-id="{$recId}" data-small data-button-item>
	<a type="button" title="Cancel" class="btn-link   
	 glyphicon glyphicon-remove" {$inlinerevertlink_attrs} title="Cancel" >		
				
								</a>
</span>
{END inline_cancel}
	 
		{BEGIN copy_column}
{BEGIN copy_link}
<span data-itemtype="grid_copy" data-itemid="grid_copy" {$item_grid_copy} data-pageid="{$pageid}" data-record-id="{$recId}" data-small data-button-item>
	<a type="button" title="Copy" class="btn-link   
	 glyphicon glyphicon-duplicate" href="mpgsstemplate_add.php?{$copylink}" {$copylink_attrs} title="Copy" data-popup >		
				
								</a>
</span>
{END copy_link}
{END copy_column}
	 
		{BEGIN view_column}
{BEGIN view_link}
<span data-itemtype="grid_view" data-itemid="grid_view" {$item_grid_view} data-pageid="{$pageid}" data-record-id="{$recId}" data-small data-button-item>
	<a type="button" title="View record" class="btn-link   
	 glyphicon glyphicon-search" href="mpgsstemplate_view.php?{$editlink}" {$viewlink_attrs} title="View" data-popup >		
				
								</a>
</span>
{END view_link}
{END view_column}
	
	</td>
	{END cellblock_grid_cell_icons}
				 
					{BEGIN cellblock_grid_cell_checkbox}
	<td
	
	{$cell_grid_cell_checkbox}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_cell_checkbox" data-pageid="{$pageid}" data-record-id="{$recId}"		data-control-cell
	
		data-checkbox-cell
	>

	 
		{BEGIN checkbox_column}
<span data-itemtype="grid_checkbox" data-itemid="grid_checkbox" {$item_grid_checkbox} data-pageid="{$pageid}" data-record-id="{$recId}" >
	<input type="checkbox" {$checkbox_attrs}>
</span>	
{END checkbox_column}
	
	</td>
	{END cellblock_grid_cell_checkbox}
				 
					{BEGIN cellblock_grid_cell_field}
	<td
	
	{$cell_grid_cell_field}
	{$recordattrs}
	class="
		 r-ori-vert				{$Surname_class}
			"

			data-field="Surname"
	
	data-cellId="grid_cell_field" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN Surname_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field" {$item_simple_grid_field} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="Surname" data-default-width >
{$Surname_value}
</span>
{END Surname_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field}
				 
					{BEGIN cellblock_grid_cell_field1}
	<td
	
	{$cell_grid_cell_field1}
	{$recordattrs}
	class="
		 r-ori-vert				{$FirstName_class}
			"

			data-field="FirstName"
	
	data-cellId="grid_cell_field1" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN FirstName_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field1" {$item_simple_grid_field1} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="FirstName" data-default-width >
{$FirstName_value}
</span>
{END FirstName_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field1}
				 
					{BEGIN cellblock_grid_cell_field2}
	<td
	
	{$cell_grid_cell_field2}
	{$recordattrs}
	class="
		 r-ori-vert				{$TertiaryInstitutionAdmitted_class}
			"

			data-field="TertiaryInstitutionAdmitted"
	
	data-cellId="grid_cell_field2" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN TertiaryInstitutionAdmitted_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field2" {$item_simple_grid_field2} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="TertiaryInstitutionAdmitted" data-default-width >
{$TertiaryInstitutionAdmitted_value}
</span>
{END TertiaryInstitutionAdmitted_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field2}
				 
					{BEGIN cellblock_grid_cell_field3}
	<td
	
	{$cell_grid_cell_field3}
	{$recordattrs}
	class="
		 r-ori-vert				{$ProgramName_class}
			"

			data-field="ProgramName"
	
	data-cellId="grid_cell_field3" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	 
		{BEGIN ProgramName_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field3" {$item_simple_grid_field3} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="ProgramName" data-default-width >
{$ProgramName_value}
</span>
{END ProgramName_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field3}
							</tr>
					 
					
											{END grid_row}
					</tbody>
													<tfoot>
					
		 
					 
					 
						<tr {$rowattrs} {$row_grid_2} class="{$rowclass} 
									{$gridFooter_class}
									
								r-gridrow
							">
				 
					{BEGIN cellblock_grid_footcell_icons}
	<td
	
	{$cell_grid_footcell_icons}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_icons" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	
	</td>
	{END cellblock_grid_footcell_icons}
				 
					{BEGIN cellblock_grid_footcell_checkbox}
	<td
	
	{$cell_grid_footcell_checkbox}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_checkbox" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	
	</td>
	{END cellblock_grid_footcell_checkbox}
				 
					{BEGIN cellblock_grid_footcell_field}
	<td
	
	{$cell_grid_footcell_field}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="mpgsstemplate_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field}
				 
					{BEGIN cellblock_grid_footcell_field1}
	<td
	
	{$cell_grid_footcell_field1}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field1" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="mpgsstemplate_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field1}
				 
					{BEGIN cellblock_grid_footcell_field2}
	<td
	
	{$cell_grid_footcell_field2}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field2" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="mpgsstemplate_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field2}
				 
					{BEGIN cellblock_grid_footcell_field3}
	<td
	
	{$cell_grid_footcell_field3}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field3" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="mpgsstemplate_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field3}
							</tr>
					
					</tfoot>
				</table>
{END grid_block}
							</div>
						
										{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="topbar" {$form_below-grid} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="below-grid_c1" data-pageid="{$pageid}"	{$cell_below-grid_c1}
	class="r-align-center r-ori-vert			col-md-12
	
">
		 
		{BEGIN pagination_block}
<span data-itemtype="pagination" data-itemid="pagination" {$item_pagination} data-pageid="{$pageid}" >
{$pagination}
</span>
{END pagination_block}
		</div>					</div>
	</div>		
{END below-grid_block}
							
					</div>
				</div>
			</div>
		</div>
		{$footer}
	{END body}
	</body>
</html>
