Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/cceadmin/
Upload File :
Current File : /var/www/cesa.co.za/cceadmin/cstFutureStudentsview.php

<?php
session_start(); // Initialize Session data
ob_start(); // Turn on output buffering
?>
<?php include "ewcfg7.php" ?>
<?php include "ewmysql7.php" ?>
<?php include "phpfn7.php" ?>
<?php include "cstFutureStudentsinfo.php" ?>
<?php include "CCEUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1 
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php

// Create page object
$cstFutureStudents_view = new ccstFutureStudents_view();
$Page =& $cstFutureStudents_view;

// Page init
$cstFutureStudents_view->Page_Init();

// Page main
$cstFutureStudents_view->Page_Main();
?>
<?php include "header.php" ?>
<?php if ($cstFutureStudents->Export == "") { ?>
<script type="text/javascript">
<!--

// Create page object
var cstFutureStudents_view = new ew_Page("cstFutureStudents_view");

// page properties
cstFutureStudents_view.PageID = "view"; // page ID
cstFutureStudents_view.FormID = "fcstFutureStudentsview"; // form ID
var EW_PAGE_ID = cstFutureStudents_view.PageID; // for backward compatibility

// extend page with Form_CustomValidate function
cstFutureStudents_view.Form_CustomValidate =  
 function(fobj) { // DO NOT CHANGE THIS LINE!

 	// Your custom validation code here, return false if invalid. 
 	return true;
 }
<?php if (EW_CLIENT_VALIDATE) { ?>
cstFutureStudents_view.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstFutureStudents_view.ValidateRequired = false; // no JavaScript validation
<?php } ?>

//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--

// Write your client script here, no need to add script tags.
// To include another .js script, use:
// ew_ClientScriptInclude("my_javascript.js"); 
//-->

</script>
<?php } ?>
<p><span class="phpmaker"><?php echo $Language->Phrase("View") ?>&nbsp;<?php echo $Language->Phrase("TblTypeCUSTOMVIEW") ?><?php echo $cstFutureStudents->TableCaption() ?>
<?php if ($cstFutureStudents->Export == "") { ?>
&nbsp;&nbsp;<a href="<?php echo $cstFutureStudents_view->ExportPrintUrl ?>"><img src="images/print.gif" alt="<?php echo ew_HtmlEncode($Language->Phrase("PrinterFriendly")) ?>" title="<?php echo ew_HtmlEncode($Language->Phrase("PrinterFriendly")) ?>" width="16" height="16" border="0"></a>
&nbsp;&nbsp;<a href="<?php echo $cstFutureStudents_view->ExportExcelUrl ?>"><img src='images/exportxls.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToExcel")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToExcel")) ?>' width='16' height='16' border='0'></a>
&nbsp;&nbsp;<a href="<?php echo $cstFutureStudents_view->ExportWordUrl ?>"><img src='images/exportdoc.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToWord")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToWord")) ?>' width='16' height='16' border='0'></a>
&nbsp;&nbsp;<a name="emf_cstFutureStudents" id="emf_cstFutureStudents" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_cstFutureStudents',hdr:ewLanguage.Phrase('ExportToEmail'),key:<?php echo ew_ArrayToJsonAttr($cstFutureStudents_view->arRecKey) ?>,sel:false});"><img src='images/exportemail.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToEmail")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToEmail")) ?>' width='16' height='16' border='0'></a>
<?php } ?>
<br><br>
<?php if ($cstFutureStudents->Export == "") { ?>
<a href="<?php echo $cstFutureStudents_view->ListUrl ?>"><?php echo $Language->Phrase("BackToList") ?></a>&nbsp;
<?php } ?>
</span></p>
<?php
if (EW_DEBUG_ENABLED)
	echo ew_DebugMsg();
$cstFutureStudents_view->ShowMessage();
?>
<p>
<?php if ($cstFutureStudents->Export == "") { ?>
<form name="ewpagerform" id="ewpagerform" class="ewForm" action="<?php echo ew_CurrentPage() ?>">
<table border="0" cellspacing="0" cellpadding="0" class="ewPager">
	<tr>
		<td nowrap>
<?php if (!isset($cstFutureStudents_view->Pager)) $cstFutureStudents_view->Pager = new cPrevNextPager($cstFutureStudents_view->lStartRec, $cstFutureStudents_view->lDisplayRecs, $cstFutureStudents_view->lTotalRecs) ?>
<?php if ($cstFutureStudents_view->Pager->RecordCount > 0) { ?>
	<table border="0" cellspacing="0" cellpadding="0"><tr><td><span class="phpmaker"><?php echo $Language->Phrase("Page") ?>&nbsp;</span></td>
<!--first page button-->
	<?php if ($cstFutureStudents_view->Pager->FirstButton->Enabled) { ?>
	<td><a href="<?php echo $cstFutureStudents_view->PageUrl() ?>start=<?php echo $cstFutureStudents_view->Pager->FirstButton->Start ?>"><img src="images/first.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></a></td>
	<?php } else { ?>
	<td><img src="images/firstdisab.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></td>
	<?php } ?>
<!--previous page button-->
	<?php if ($cstFutureStudents_view->Pager->PrevButton->Enabled) { ?>
	<td><a href="<?php echo $cstFutureStudents_view->PageUrl() ?>start=<?php echo $cstFutureStudents_view->Pager->PrevButton->Start ?>"><img src="images/prev.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></a></td>
	<?php } else { ?>
	<td><img src="images/prevdisab.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></td>
	<?php } ?>
<!--current page number-->
	<td><input type="text" name="<?php echo EW_TABLE_PAGE_NO ?>" id="<?php echo EW_TABLE_PAGE_NO ?>" value="<?php echo $cstFutureStudents_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
	<?php if ($cstFutureStudents_view->Pager->NextButton->Enabled) { ?>
	<td><a href="<?php echo $cstFutureStudents_view->PageUrl() ?>start=<?php echo $cstFutureStudents_view->Pager->NextButton->Start ?>"><img src="images/next.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></a></td>	
	<?php } else { ?>
	<td><img src="images/nextdisab.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></td>
	<?php } ?>
<!--last page button-->
	<?php if ($cstFutureStudents_view->Pager->LastButton->Enabled) { ?>
	<td><a href="<?php echo $cstFutureStudents_view->PageUrl() ?>start=<?php echo $cstFutureStudents_view->Pager->LastButton->Start ?>"><img src="images/last.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></a></td>	
	<?php } else { ?>
	<td><img src="images/lastdisab.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></td>
	<?php } ?>
	<td><span class="phpmaker">&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $cstFutureStudents_view->Pager->PageCount ?></span></td>
	</tr></table>
<?php } else { ?>
	<?php if ($Security->CanList()) { ?>
	<?php if ($cstFutureStudents_view->sSrchWhere == "0=101") { ?>
	<span class="phpmaker"><?php echo $Language->Phrase("EnterSearchCriteria") ?></span>
	<?php } else { ?>
	<span class="phpmaker"><?php echo $Language->Phrase("NoRecord") ?></span>
	<?php } ?>
	<?php } else { ?>
	<span class="phpmaker"><?php echo $Language->Phrase("NoPermission") ?></span>
	<?php } ?>
<?php } ?>
		</td>
	</tr>
</table>
</form>
<br>
<?php } ?>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<?php if ($cstFutureStudents->Title->Visible) { // Title ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Title->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Title->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Title->ViewAttributes() ?>><?php echo $cstFutureStudents->Title->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->FirstName->Visible) { // FirstName ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->FirstName->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->FirstName->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->FirstName->ViewAttributes() ?>><?php echo $cstFutureStudents->FirstName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->Surname->Visible) { // Surname ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Surname->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Surname->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Surname->ViewAttributes() ?>><?php echo $cstFutureStudents->Surname->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->KnownAs->Visible) { // KnownAs ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->KnownAs->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->KnownAs->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->KnownAs->ViewAttributes() ?>><?php echo $cstFutureStudents->KnownAs->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->Organisation->Visible) { // Organisation ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Organisation->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Organisation->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Organisation->ViewAttributes() ?>><?php echo $cstFutureStudents->Organisation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->OrganisationType->Visible) { // OrganisationType ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->OrganisationType->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->OrganisationType->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->OrganisationType->ViewAttributes() ?>><?php echo $cstFutureStudents->OrganisationType->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->LengthEmploy->Visible) { // LengthEmploy ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->LengthEmploy->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->LengthEmploy->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->LengthEmploy->ViewAttributes() ?>><?php echo $cstFutureStudents->LengthEmploy->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->OtherCEFirms->Visible) { // OtherCEFirms ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->OtherCEFirms->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->OtherCEFirms->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->OtherCEFirms->ViewAttributes() ?>><?php echo $cstFutureStudents->OtherCEFirms->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->StudentNumber->Visible) { // StudentNumber ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->StudentNumber->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->StudentNumber->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->StudentNumber->ViewAttributes() ?>><?php echo $cstFutureStudents->StudentNumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->CCEFacilitatorID->Visible) { // CCEFacilitatorID ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->CCEFacilitatorID->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->CCEFacilitatorID->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->CCEFacilitatorID->ViewAttributes() ?>><?php echo $cstFutureStudents->CCEFacilitatorID->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->Project->Visible) { // Project ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Project->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Project->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Project->ViewAttributes() ?>><?php echo $cstFutureStudents->Project->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->ProjectDiscipline->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->ProjectDiscipline->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->ProjectDiscipline->ViewAttributes() ?>><?php echo $cstFutureStudents->ProjectDiscipline->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->IDNumber->Visible) { // IDNumber ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->IDNumber->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->IDNumber->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->IDNumber->ViewAttributes() ?>><?php echo $cstFutureStudents->IDNumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->ECSARegistered->Visible) { // ECSARegistered ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->ECSARegistered->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->ECSARegistered->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->ECSARegistered->ViewAttributes() ?>><?php echo $cstFutureStudents->ECSARegistered->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->ECSACategory->Visible) { // ECSACategory ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->ECSACategory->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->ECSACategory->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->ECSACategory->ViewAttributes() ?>><?php echo $cstFutureStudents->ECSACategory->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->ECSANumber->Visible) { // ECSANumber ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->ECSANumber->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->ECSANumber->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->ECSANumber->ViewAttributes() ?>><?php echo $cstFutureStudents->ECSANumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->OtherStatutoryBodyRegistered->Visible) { // OtherStatutoryBodyRegistered ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->OtherStatutoryBodyRegistered->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->OtherStatutoryBodyRegistered->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->OtherStatutoryBodyRegistered->ViewAttributes() ?>><?php echo $cstFutureStudents->OtherStatutoryBodyRegistered->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->OtherStatutoryBodyName->Visible) { // OtherStatutoryBodyName ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->OtherStatutoryBodyName->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->OtherStatutoryBodyName->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->OtherStatutoryBodyName->ViewAttributes() ?>><?php echo $cstFutureStudents->OtherStatutoryBodyName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->OtherStatutoryBodyNumber->Visible) { // OtherStatutoryBodyNumber ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->OtherStatutoryBodyNumber->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->OtherStatutoryBodyNumber->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->OtherStatutoryBodyNumber->ViewAttributes() ?>><?php echo $cstFutureStudents->OtherStatutoryBodyNumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->Age->Visible) { // Age ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Age->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Age->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Age->ViewAttributes() ?>><?php echo $cstFutureStudents->Age->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->HighestQual->Visible) { // HighestQual ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->HighestQual->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->HighestQual->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->HighestQual->ViewAttributes() ?>><?php echo $cstFutureStudents->HighestQual->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->AreaDiscipline->Visible) { // AreaDiscipline ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->AreaDiscipline->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->AreaDiscipline->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->AreaDiscipline->ViewAttributes() ?>><?php echo $cstFutureStudents->AreaDiscipline->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->Telephone->Visible) { // Telephone ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Telephone->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Telephone->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Telephone->ViewAttributes() ?>><?php echo $cstFutureStudents->Telephone->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->Cellphone->Visible) { // Cellphone ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Cellphone->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Cellphone->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Cellphone->ViewAttributes() ?>><?php echo $cstFutureStudents->Cellphone->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->EmailAddress->Visible) { // EmailAddress ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->EmailAddress->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->EmailAddress->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->EmailAddress->ViewAttributes() ?>><?php echo $cstFutureStudents->EmailAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->HomeAddress->Visible) { // HomeAddress ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->HomeAddress->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->HomeAddress->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->HomeAddress->ViewAttributes() ?>><?php echo $cstFutureStudents->HomeAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->WorkAddress->Visible) { // WorkAddress ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->WorkAddress->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->WorkAddress->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->WorkAddress->ViewAttributes() ?>><?php echo $cstFutureStudents->WorkAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->PostalAddress->Visible) { // PostalAddress ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->PostalAddress->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->PostalAddress->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->PostalAddress->ViewAttributes() ?>><?php echo $cstFutureStudents->PostalAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->Designation->Visible) { // Designation ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Designation->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Designation->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Designation->ViewAttributes() ?>><?php echo $cstFutureStudents->Designation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->Department->Visible) { // Department ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Department->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Department->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Department->ViewAttributes() ?>><?php echo $cstFutureStudents->Department->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->CESAMemberFirm->Visible) { // CESAMemberFirm ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->CESAMemberFirm->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->CESAMemberFirm->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->CESAMemberFirm->ViewAttributes() ?>><?php echo $cstFutureStudents->CESAMemberFirm->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->CESAAccountNo->Visible) { // CESAAccountNo ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->CESAAccountNo->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->CESAAccountNo->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->CESAAccountNo->ViewAttributes() ?>><?php echo $cstFutureStudents->CESAAccountNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->VATNo->Visible) { // VATNo ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->VATNo->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->VATNo->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->VATNo->ViewAttributes() ?>><?php echo $cstFutureStudents->VATNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->DietaryRequirements->Visible) { // DietaryRequirements ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->DietaryRequirements->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->DietaryRequirements->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->DietaryRequirements->ViewAttributes() ?>><?php echo $cstFutureStudents->DietaryRequirements->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->IDFile->Visible) { // IDFile ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->IDFile->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->IDFile->CellAttributes() ?>>
<?php if ($cstFutureStudents->IDFile->HrefValue <> "" || $cstFutureStudents->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($cstFutureStudents->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstFutureStudents->IDFile->HrefValue ?>"><?php echo $cstFutureStudents->IDFile->ViewValue ?></a>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstFutureStudents->IDFile->Upload->DbValue)) { ?>
<?php echo $cstFutureStudents->IDFile->ViewValue ?>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->CVFile->Visible) { // CVFile ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->CVFile->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->CVFile->CellAttributes() ?>>
<?php if ($cstFutureStudents->CVFile->HrefValue <> "" || $cstFutureStudents->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($cstFutureStudents->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstFutureStudents->CVFile->HrefValue ?>"><?php echo $cstFutureStudents->CVFile->ViewValue ?></a>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstFutureStudents->CVFile->Upload->DbValue)) { ?>
<?php echo $cstFutureStudents->CVFile->ViewValue ?>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->QualCertificate1->Visible) { // QualCertificate1 ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->QualCertificate1->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->QualCertificate1->CellAttributes() ?>>
<?php if ($cstFutureStudents->QualCertificate1->HrefValue <> "" || $cstFutureStudents->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($cstFutureStudents->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $cstFutureStudents->QualCertificate1->HrefValue ?>"><?php echo $cstFutureStudents->QualCertificate1->ViewValue ?></a>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstFutureStudents->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $cstFutureStudents->QualCertificate1->ViewValue ?>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->QualCertificate2->Visible) { // QualCertificate2 ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->QualCertificate2->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->QualCertificate2->CellAttributes() ?>>
<?php if ($cstFutureStudents->QualCertificate2->HrefValue <> "" || $cstFutureStudents->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($cstFutureStudents->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $cstFutureStudents->QualCertificate2->HrefValue ?>"><?php echo $cstFutureStudents->QualCertificate2->ViewValue ?></a>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstFutureStudents->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $cstFutureStudents->QualCertificate2->ViewValue ?>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->QualCertificate3->Visible) { // QualCertificate3 ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->QualCertificate3->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->QualCertificate3->CellAttributes() ?>>
<?php if ($cstFutureStudents->QualCertificate3->HrefValue <> "" || $cstFutureStudents->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($cstFutureStudents->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $cstFutureStudents->QualCertificate3->HrefValue ?>"><?php echo $cstFutureStudents->QualCertificate3->ViewValue ?></a>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstFutureStudents->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $cstFutureStudents->QualCertificate3->ViewValue ?>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->MemorandumFile->Visible) { // MemorandumFile ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->MemorandumFile->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->MemorandumFile->CellAttributes() ?>>
<?php if ($cstFutureStudents->MemorandumFile->HrefValue <> "" || $cstFutureStudents->MemorandumFile->TooltipValue <> "") { ?>
<?php if (!empty($cstFutureStudents->MemorandumFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstFutureStudents->MemorandumFile->HrefValue ?>"><?php echo $cstFutureStudents->MemorandumFile->ViewValue ?></a>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstFutureStudents->MemorandumFile->Upload->DbValue)) { ?>
<?php echo $cstFutureStudents->MemorandumFile->ViewValue ?>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->AgreementFile->Visible) { // AgreementFile ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->AgreementFile->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->AgreementFile->CellAttributes() ?>>
<?php if ($cstFutureStudents->AgreementFile->HrefValue <> "" || $cstFutureStudents->AgreementFile->TooltipValue <> "") { ?>
<?php if (!empty($cstFutureStudents->AgreementFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstFutureStudents->AgreementFile->HrefValue ?>"><?php echo $cstFutureStudents->AgreementFile->ViewValue ?></a>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstFutureStudents->AgreementFile->Upload->DbValue)) { ?>
<?php echo $cstFutureStudents->AgreementFile->ViewValue ?>
<?php } elseif (!in_array($cstFutureStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->OrderNo->Visible) { // OrderNo ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->OrderNo->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->OrderNo->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->OrderNo->ViewAttributes() ?>><?php echo $cstFutureStudents->OrderNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->BookedByName->Visible) { // BookedByName ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->BookedByName->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->BookedByName->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->BookedByName->ViewAttributes() ?>><?php echo $cstFutureStudents->BookedByName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->BookedByDesignation->Visible) { // BookedByDesignation ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->BookedByDesignation->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->BookedByDesignation->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->BookedByDesignation->ViewAttributes() ?>><?php echo $cstFutureStudents->BookedByDesignation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->BookedByTelNo->Visible) { // BookedByTelNo ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->BookedByTelNo->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->BookedByTelNo->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->BookedByTelNo->ViewAttributes() ?>><?php echo $cstFutureStudents->BookedByTelNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->BookedByFaxNo->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->BookedByFaxNo->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->BookedByFaxNo->ViewAttributes() ?>><?php echo $cstFutureStudents->BookedByFaxNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->BookedByCellNo->Visible) { // BookedByCellNo ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->BookedByCellNo->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->BookedByCellNo->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->BookedByCellNo->ViewAttributes() ?>><?php echo $cstFutureStudents->BookedByCellNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->BookedByEmail->Visible) { // BookedByEmail ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->BookedByEmail->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->BookedByEmail->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->BookedByEmail->ViewAttributes() ?>><?php echo $cstFutureStudents->BookedByEmail->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->WebUsername->Visible) { // WebUsername ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->WebUsername->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->WebUsername->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->WebUsername->ViewAttributes() ?>><?php echo $cstFutureStudents->WebUsername->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->WebPassword->Visible) { // WebPassword ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->WebPassword->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->WebPassword->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->WebPassword->ViewAttributes() ?>><?php echo $cstFutureStudents->WebPassword->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->MentorDesig->Visible) { // MentorDesig ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->MentorDesig->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->MentorDesig->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->MentorDesig->ViewAttributes() ?>><?php echo $cstFutureStudents->MentorDesig->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->MentorTel->Visible) { // MentorTel ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->MentorTel->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->MentorTel->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->MentorTel->ViewAttributes() ?>><?php echo $cstFutureStudents->MentorTel->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->MentorCell->Visible) { // MentorCell ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->MentorCell->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->MentorCell->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->MentorCell->ViewAttributes() ?>><?php echo $cstFutureStudents->MentorCell->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->MentorEmail->Visible) { // MentorEmail ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->MentorEmail->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->MentorEmail->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->MentorEmail->ViewAttributes() ?>><?php echo $cstFutureStudents->MentorEmail->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->HRManagerName->Visible) { // HRManagerName ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->HRManagerName->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->HRManagerName->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->HRManagerName->ViewAttributes() ?>><?php echo $cstFutureStudents->HRManagerName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->HRManagerDesignation->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->HRManagerDesignation->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->HRManagerDesignation->ViewAttributes() ?>><?php echo $cstFutureStudents->HRManagerDesignation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->HRManagerTelNo->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->HRManagerTelNo->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->HRManagerTelNo->ViewAttributes() ?>><?php echo $cstFutureStudents->HRManagerTelNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->HRManagerCellNo->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->HRManagerCellNo->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->HRManagerCellNo->ViewAttributes() ?>><?php echo $cstFutureStudents->HRManagerCellNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->HRManagerEmail->Visible) { // HRManagerEmail ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->HRManagerEmail->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->HRManagerEmail->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->HRManagerEmail->ViewAttributes() ?>><?php echo $cstFutureStudents->HRManagerEmail->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->BlockAccess->Visible) { // BlockAccess ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->BlockAccess->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->BlockAccess->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->BlockAccess->ViewAttributes() ?>><?php echo $cstFutureStudents->BlockAccess->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->Archived->Visible) { // Archived ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->Archived->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->Archived->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->Archived->ViewAttributes() ?>><?php echo $cstFutureStudents->Archived->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->MentorFirstName->Visible) { // MentorFirstName ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->MentorFirstName->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->MentorFirstName->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->MentorFirstName->ViewAttributes() ?>><?php echo $cstFutureStudents->MentorFirstName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstFutureStudents->MentorSurname->Visible) { // MentorSurname ?>
	<tr<?php echo $cstFutureStudents->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstFutureStudents->MentorSurname->FldCaption() ?></td>
		<td<?php echo $cstFutureStudents->MentorSurname->CellAttributes() ?>>
<div<?php echo $cstFutureStudents->MentorSurname->ViewAttributes() ?>><?php echo $cstFutureStudents->MentorSurname->ViewValue ?></div></td>
	</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<?php if ($cstFutureStudents->Export == "") { ?>
<br>
<form name="ewpagerform" id="ewpagerform" class="ewForm" action="<?php echo ew_CurrentPage() ?>">
<table border="0" cellspacing="0" cellpadding="0" class="ewPager">
	<tr>
		<td nowrap>
<?php if (!isset($cstFutureStudents_view->Pager)) $cstFutureStudents_view->Pager = new cPrevNextPager($cstFutureStudents_view->lStartRec, $cstFutureStudents_view->lDisplayRecs, $cstFutureStudents_view->lTotalRecs) ?>
<?php if ($cstFutureStudents_view->Pager->RecordCount > 0) { ?>
	<table border="0" cellspacing="0" cellpadding="0"><tr><td><span class="phpmaker"><?php echo $Language->Phrase("Page") ?>&nbsp;</span></td>
<!--first page button-->
	<?php if ($cstFutureStudents_view->Pager->FirstButton->Enabled) { ?>
	<td><a href="<?php echo $cstFutureStudents_view->PageUrl() ?>start=<?php echo $cstFutureStudents_view->Pager->FirstButton->Start ?>"><img src="images/first.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></a></td>
	<?php } else { ?>
	<td><img src="images/firstdisab.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></td>
	<?php } ?>
<!--previous page button-->
	<?php if ($cstFutureStudents_view->Pager->PrevButton->Enabled) { ?>
	<td><a href="<?php echo $cstFutureStudents_view->PageUrl() ?>start=<?php echo $cstFutureStudents_view->Pager->PrevButton->Start ?>"><img src="images/prev.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></a></td>
	<?php } else { ?>
	<td><img src="images/prevdisab.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></td>
	<?php } ?>
<!--current page number-->
	<td><input type="text" name="<?php echo EW_TABLE_PAGE_NO ?>" id="<?php echo EW_TABLE_PAGE_NO ?>" value="<?php echo $cstFutureStudents_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
	<?php if ($cstFutureStudents_view->Pager->NextButton->Enabled) { ?>
	<td><a href="<?php echo $cstFutureStudents_view->PageUrl() ?>start=<?php echo $cstFutureStudents_view->Pager->NextButton->Start ?>"><img src="images/next.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></a></td>	
	<?php } else { ?>
	<td><img src="images/nextdisab.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></td>
	<?php } ?>
<!--last page button-->
	<?php if ($cstFutureStudents_view->Pager->LastButton->Enabled) { ?>
	<td><a href="<?php echo $cstFutureStudents_view->PageUrl() ?>start=<?php echo $cstFutureStudents_view->Pager->LastButton->Start ?>"><img src="images/last.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></a></td>	
	<?php } else { ?>
	<td><img src="images/lastdisab.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></td>
	<?php } ?>
	<td><span class="phpmaker">&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $cstFutureStudents_view->Pager->PageCount ?></span></td>
	</tr></table>
<?php } else { ?>
	<?php if ($Security->CanList()) { ?>
	<?php if ($cstFutureStudents_view->sSrchWhere == "0=101") { ?>
	<span class="phpmaker"><?php echo $Language->Phrase("EnterSearchCriteria") ?></span>
	<?php } else { ?>
	<span class="phpmaker"><?php echo $Language->Phrase("NoRecord") ?></span>
	<?php } ?>
	<?php } else { ?>
	<span class="phpmaker"><?php echo $Language->Phrase("NoPermission") ?></span>
	<?php } ?>
<?php } ?>
		</td>
	</tr>
</table>
</form>
<?php } ?>
<p>
<?php if ($cstFutureStudents->Export == "") { ?>
<script language="JavaScript" type="text/javascript">
<!--

// Write your table-specific startup script here
// document.write("page loaded");
//-->

</script>
<?php } ?>
<?php include "footer.php" ?>
<?php
$cstFutureStudents_view->Page_Terminate();
?>
<?php

//
// Page class
//
class ccstFutureStudents_view {

	// Page ID
	var $PageID = 'view';

	// Table name
	var $TableName = 'cstFutureStudents';

	// Page object name
	var $PageObjName = 'cstFutureStudents_view';

	// Page name
	function PageName() {
		return ew_CurrentPage();
	}

	// Page URL
	function PageUrl() {
		$PageUrl = ew_CurrentPage() . "?";
		global $cstFutureStudents;
		if ($cstFutureStudents->UseTokenInUrl) $PageUrl .= "t=" . $cstFutureStudents->TableVar . "&"; // Add page token
		return $PageUrl;
	}

	// Page URLs
	var $AddUrl;
	var $EditUrl;
	var $CopyUrl;
	var $DeleteUrl;
	var $ViewUrl;
	var $ListUrl;

	// Export URLs
	var $ExportPrintUrl;
	var $ExportHtmlUrl;
	var $ExportExcelUrl;
	var $ExportWordUrl;
	var $ExportXmlUrl;
	var $ExportCsvUrl;

	// Update URLs
	var $InlineAddUrl;
	var $InlineCopyUrl;
	var $InlineEditUrl;
	var $GridAddUrl;
	var $GridEditUrl;
	var $MultiDeleteUrl;
	var $MultiUpdateUrl;

	// Message
	function getMessage() {
		return @$_SESSION[EW_SESSION_MESSAGE];
	}

	function setMessage($v) {
		if (@$_SESSION[EW_SESSION_MESSAGE] <> "") { // Append
			$_SESSION[EW_SESSION_MESSAGE] .= "<br>" . $v;
		} else {
			$_SESSION[EW_SESSION_MESSAGE] = $v;
		}
	}

	// Show message
	function ShowMessage() {
		$sMessage = $this->getMessage();
		$this->Message_Showing($sMessage);
		if ($sMessage <> "") { // Message in Session, display
			echo "<p><span class=\"ewMessage\">" . $sMessage . "</span></p>";
			$_SESSION[EW_SESSION_MESSAGE] = ""; // Clear message in Session
		}
	}

	// Validate page request
	function IsPageRequest() {
		global $objForm, $cstFutureStudents;
		if ($cstFutureStudents->UseTokenInUrl) {
			if ($objForm)
				return ($cstFutureStudents->TableVar == $objForm->GetValue("t"));
			if (@$_GET["t"] <> "")
				return ($cstFutureStudents->TableVar == $_GET["t"]);
		} else {
			return TRUE;
		}
	}

	//
	// Page class constructor
	//
	function __construct() {
		global $conn, $Language;

		// Language object
		$Language = new cLanguage();

		// Table object (cstFutureStudents)
		$GLOBALS["cstFutureStudents"] = new ccstFutureStudents();

		// Table object (CCEUsers)
		$GLOBALS['CCEUsers'] = new cCCEUsers();

		// Page ID
		if (!defined("EW_PAGE_ID"))
			define("EW_PAGE_ID", 'view', TRUE);

		// Table name (for backward compatibility)
		if (!defined("EW_TABLE_NAME"))
			define("EW_TABLE_NAME", 'cstFutureStudents', TRUE);

		// Start timer
		$GLOBALS["gsTimer"] = new cTimer();

		// Open connection
		$conn = ew_Connect();
	}

	// 
	//  Page_Init
	//
	function Page_Init() {
		global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
		global $cstFutureStudents;

		// Security
		$Security = new cAdvancedSecurity();
		if (!$Security->IsLoggedIn()) $Security->AutoLogin();
		if (!$Security->IsLoggedIn()) {
			$Security->SaveLastUrl();
			$this->Page_Terminate("login.php");
		}
		$Security->TablePermission_Loading();
		$Security->LoadCurrentUserLevel($this->TableName);
		$Security->TablePermission_Loaded();
		if (!$Security->IsLoggedIn()) {
			$Security->SaveLastUrl();
			$this->Page_Terminate("login.php");
		}
		if (!$Security->CanView()) {
			$Security->SaveLastUrl();
			$this->Page_Terminate("cstFutureStudentslist.php");
		}

		// Get export parameters
		if (@$_GET["export"] <> "") {
			$cstFutureStudents->Export = $_GET["export"];
		} elseif (ew_IsHttpPost()) {
			if (@$_POST["exporttype"] <> "")
				$cstFutureStudents->Export = $_POST["exporttype"];
		} else {
			$cstFutureStudents->setExportReturnUrl(ew_CurrentUrl());
		}
		$gsExport = $cstFutureStudents->Export; // Get export parameter, used in header
		$gsExportFile = $cstFutureStudents->TableVar; // Get export file, used in header
		if (@$_GET["CCEStudentID"] <> "") {
			if ($gsExportFile <> "") $gsExportFile .= "_";
			$gsExportFile .= ew_StripSlashes($_GET["CCEStudentID"]);
		}
		if ($cstFutureStudents->Export == "excel") {
			header('Content-Type: application/vnd.ms-excel');
			header('Content-Disposition: attachment; filename=' . $gsExportFile .'.xls');
		}
		if ($cstFutureStudents->Export == "word") {
			header('Content-Type: application/vnd.ms-word');
			header('Content-Disposition: attachment; filename=' . $gsExportFile .'.doc');
		}

		// Global Page Loading event (in userfn*.php)
		Page_Loading();

		// Page Load event
		$this->Page_Load();
	}

	//
	// Page_Terminate
	//
	function Page_Terminate($url = "") {
		global $conn;

		// Page Unload event
		$this->Page_Unload();

		// Global Page Unloaded event (in userfn*.php)
		Page_Unloaded();

		 // Close connection
		$conn->Close();

		// Go to URL if specified
		$this->Page_Redirecting($url);
		if ($url <> "") {
			if (!EW_DEBUG_ENABLED && ob_get_length())
				ob_end_clean();
			header("Location: " . $url);
		}
		exit();
	}
	var $lDisplayRecs = 1;
	var $lStartRec;
	var $lStopRec;
	var $lTotalRecs = 0;
	var $lRecRange = 10;
	var $lRecCnt;
	var $arRecKey = array();

	//
	// Page main
	//
	function Page_Main() {
		global $Language, $cstFutureStudents;

		// Load current record
		$bLoadCurrentRecord = FALSE;
		$sReturnUrl = "";
		$bMatchRecord = FALSE;
		if ($this->IsPageRequest()) { // Validate request
			if (@$_GET["CCEStudentID"] <> "") {
				$cstFutureStudents->CCEStudentID->setQueryStringValue($_GET["CCEStudentID"]);
				$this->arRecKey["CCEStudentID"] = $cstFutureStudents->CCEStudentID->QueryStringValue;
			} else {
				$bLoadCurrentRecord = TRUE;
			}

			// Get action
			$cstFutureStudents->CurrentAction = "I"; // Display form
			switch ($cstFutureStudents->CurrentAction) {
				case "I": // Get a record to display
					$this->lStartRec = 1; // Initialize start position
					if ($rs = $this->LoadRecordset()) // Load records
						$this->lTotalRecs = $rs->RecordCount(); // Get record count
					if ($this->lTotalRecs <= 0) { // No record found
						$this->setMessage($Language->Phrase("NoRecord")); // Set no record message
						$this->Page_Terminate("cstFutureStudentslist.php"); // Return to list page
					} elseif ($bLoadCurrentRecord) { // Load current record position
						$this->SetUpStartRec(); // Set up start record position

						// Point to current record
						if (intval($this->lStartRec) <= intval($this->lTotalRecs)) {
							$bMatchRecord = TRUE;
							$rs->Move($this->lStartRec-1);
						}
					} else { // Match key values
						while (!$rs->EOF) {
							if (strval($cstFutureStudents->CCEStudentID->CurrentValue) == strval($rs->fields('CCEStudentID'))) {
								$cstFutureStudents->setStartRecordNumber($this->lStartRec); // Save record position
								$bMatchRecord = TRUE;
								break;
							} else {
								$this->lStartRec++;
								$rs->MoveNext();
							}
						}
					}
					if (!$bMatchRecord) {
						$this->setMessage($Language->Phrase("NoRecord")); // Set no record message
						$sReturnUrl = "cstFutureStudentslist.php"; // No matching record, return to list
					} else {
						$this->LoadRowValues($rs); // Load row values
					}
			}

			// Export data only
			if (in_array($cstFutureStudents->Export, array("html","word","excel","xml","csv","email"))) {
				$this->ExportData();
				if ($cstFutureStudents->Export <> "email")
					$this->Page_Terminate(); // Terminate response
				exit();
			}
		} else {
			$sReturnUrl = "cstFutureStudentslist.php"; // Not page request, return to list
		}
		if ($sReturnUrl <> "")
			$this->Page_Terminate($sReturnUrl);

		// Render row
		$cstFutureStudents->RowType = EW_ROWTYPE_VIEW;
		$this->RenderRow();
	}

	// Set up starting record parameters
	function SetUpStartRec() {
		global $cstFutureStudents;
		if ($this->lDisplayRecs == 0)
			return;
		if ($this->IsPageRequest()) { // Validate request
			if (@$_GET[EW_TABLE_START_REC] <> "") { // Check for "start" parameter
				$this->lStartRec = $_GET[EW_TABLE_START_REC];
				$cstFutureStudents->setStartRecordNumber($this->lStartRec);
			} elseif (@$_GET[EW_TABLE_PAGE_NO] <> "") {
				$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];
				if (is_numeric($this->nPageNo)) {
					$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;
					if ($this->lStartRec <= 0) {
						$this->lStartRec = 1;
					} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {
						$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;
					}
					$cstFutureStudents->setStartRecordNumber($this->lStartRec);
				}
			}
		}
		$this->lStartRec = $cstFutureStudents->getStartRecordNumber();

		// Check if correct start record counter
		if (!is_numeric($this->lStartRec) || $this->lStartRec == "") { // Avoid invalid start record counter
			$this->lStartRec = 1; // Reset start record counter
			$cstFutureStudents->setStartRecordNumber($this->lStartRec);
		} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records
			$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record
			$cstFutureStudents->setStartRecordNumber($this->lStartRec);
		} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {
			$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary
			$cstFutureStudents->setStartRecordNumber($this->lStartRec);
		}
	}

	// Load recordset
	function LoadRecordset($offset = -1, $rowcnt = -1) {
		global $conn, $cstFutureStudents;

		// Call Recordset Selecting event
		$cstFutureStudents->Recordset_Selecting($cstFutureStudents->CurrentFilter);

		// Load List page SQL
		$sSql = $cstFutureStudents->SelectSQL();
		if ($offset > -1 && $rowcnt > -1)
			$sSql .= " LIMIT $offset, $rowcnt";

		// Load recordset
		$rs = ew_LoadRecordset($sSql);

		// Call Recordset Selected event
		$cstFutureStudents->Recordset_Selected($rs);
		return $rs;
	}

	// Load row based on key values
	function LoadRow() {
		global $conn, $Security, $cstFutureStudents;
		$sFilter = $cstFutureStudents->KeyFilter();

		// Call Row Selecting event
		$cstFutureStudents->Row_Selecting($sFilter);

		// Load SQL based on filter
		$cstFutureStudents->CurrentFilter = $sFilter;
		$sSql = $cstFutureStudents->SQL();
		$res = FALSE;
		$rs = ew_LoadRecordset($sSql);
		if ($rs && !$rs->EOF) {
			$res = TRUE;
			$this->LoadRowValues($rs); // Load row values

			// Call Row Selected event
			$cstFutureStudents->Row_Selected($rs);
			$rs->Close();
		}
		return $res;
	}

	// Load row values from recordset
	function LoadRowValues(&$rs) {
		global $conn, $cstFutureStudents;
		$cstFutureStudents->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
		$cstFutureStudents->Title->setDbValue($rs->fields('Title'));
		$cstFutureStudents->FirstName->setDbValue($rs->fields('FirstName'));
		$cstFutureStudents->Surname->setDbValue($rs->fields('Surname'));
		$cstFutureStudents->KnownAs->setDbValue($rs->fields('KnownAs'));
		$cstFutureStudents->Organisation->setDbValue($rs->fields('Organisation'));
		$cstFutureStudents->OrganisationType->setDbValue($rs->fields('OrganisationType'));
		$cstFutureStudents->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
		$cstFutureStudents->OtherCEFirms->setDbValue($rs->fields('OtherCEFirms'));
		$cstFutureStudents->StudentNumber->setDbValue($rs->fields('StudentNumber'));
		$cstFutureStudents->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
		$cstFutureStudents->Project->setDbValue($rs->fields('Project'));
		$cstFutureStudents->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
		$cstFutureStudents->IDNumber->setDbValue($rs->fields('IDNumber'));
		$cstFutureStudents->ECSARegistered->setDbValue($rs->fields('ECSARegistered'));
		$cstFutureStudents->ECSACategory->setDbValue($rs->fields('ECSACategory'));
		$cstFutureStudents->ECSANumber->setDbValue($rs->fields('ECSANumber'));
		$cstFutureStudents->OtherStatutoryBodyRegistered->setDbValue($rs->fields('OtherStatutoryBodyRegistered'));
		$cstFutureStudents->OtherStatutoryBodyName->setDbValue($rs->fields('OtherStatutoryBodyName'));
		$cstFutureStudents->OtherStatutoryBodyNumber->setDbValue($rs->fields('OtherStatutoryBodyNumber'));
		$cstFutureStudents->Age->setDbValue($rs->fields('Age'));
		$cstFutureStudents->HighestQual->setDbValue($rs->fields('HighestQual'));
		$cstFutureStudents->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
		$cstFutureStudents->Telephone->setDbValue($rs->fields('Telephone'));
		$cstFutureStudents->Cellphone->setDbValue($rs->fields('Cellphone'));
		$cstFutureStudents->EmailAddress->setDbValue($rs->fields('EmailAddress'));
		$cstFutureStudents->HomeAddress->setDbValue($rs->fields('HomeAddress'));
		$cstFutureStudents->WorkAddress->setDbValue($rs->fields('WorkAddress'));
		$cstFutureStudents->PostalAddress->setDbValue($rs->fields('PostalAddress'));
		$cstFutureStudents->Designation->setDbValue($rs->fields('Designation'));
		$cstFutureStudents->Department->setDbValue($rs->fields('Department'));
		$cstFutureStudents->CESAMemberFirm->setDbValue($rs->fields('CESAMemberFirm'));
		$cstFutureStudents->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
		$cstFutureStudents->VATNo->setDbValue($rs->fields('VATNo'));
		$cstFutureStudents->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
		$cstFutureStudents->IDFile->Upload->DbValue = $rs->fields('IDFile');
		$cstFutureStudents->CVFile->Upload->DbValue = $rs->fields('CVFile');
		$cstFutureStudents->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
		$cstFutureStudents->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
		$cstFutureStudents->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
		$cstFutureStudents->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
		$cstFutureStudents->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
		$cstFutureStudents->OrderNo->setDbValue($rs->fields('OrderNo'));
		$cstFutureStudents->BookedByName->setDbValue($rs->fields('BookedByName'));
		$cstFutureStudents->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
		$cstFutureStudents->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
		$cstFutureStudents->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
		$cstFutureStudents->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
		$cstFutureStudents->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
		$cstFutureStudents->WebUsername->setDbValue($rs->fields('WebUsername'));
		$cstFutureStudents->WebPassword->setDbValue($rs->fields('WebPassword'));
		$cstFutureStudents->MentorDesig->setDbValue($rs->fields('MentorDesig'));
		$cstFutureStudents->MentorTel->setDbValue($rs->fields('MentorTel'));
		$cstFutureStudents->MentorCell->setDbValue($rs->fields('MentorCell'));
		$cstFutureStudents->MentorEmail->setDbValue($rs->fields('MentorEmail'));
		$cstFutureStudents->HRManagerName->setDbValue($rs->fields('HRManagerName'));
		$cstFutureStudents->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
		$cstFutureStudents->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
		$cstFutureStudents->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
		$cstFutureStudents->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
		$cstFutureStudents->BlockAccess->setDbValue($rs->fields('BlockAccess'));
		$cstFutureStudents->Archived->setDbValue($rs->fields('Archived'));
		$cstFutureStudents->MentorFirstName->setDbValue($rs->fields('MentorFirstName'));
		$cstFutureStudents->MentorSurname->setDbValue($rs->fields('MentorSurname'));
	}

	// Render row values based on field settings
	function RenderRow() {
		global $conn, $Security, $Language, $cstFutureStudents;

		// Initialize URLs
		$this->ExportPrintUrl = $this->PageUrl() . "export=print&" . "CCEStudentID=" . urlencode($cstFutureStudents->CCEStudentID->CurrentValue);
		$this->ExportHtmlUrl = $this->PageUrl() . "export=html&" . "CCEStudentID=" . urlencode($cstFutureStudents->CCEStudentID->CurrentValue);
		$this->ExportExcelUrl = $this->PageUrl() . "export=excel&" . "CCEStudentID=" . urlencode($cstFutureStudents->CCEStudentID->CurrentValue);
		$this->ExportWordUrl = $this->PageUrl() . "export=word&" . "CCEStudentID=" . urlencode($cstFutureStudents->CCEStudentID->CurrentValue);
		$this->ExportXmlUrl = $this->PageUrl() . "export=xml&" . "CCEStudentID=" . urlencode($cstFutureStudents->CCEStudentID->CurrentValue);
		$this->ExportCsvUrl = $this->PageUrl() . "export=csv&" . "CCEStudentID=" . urlencode($cstFutureStudents->CCEStudentID->CurrentValue);
		$this->AddUrl = $cstFutureStudents->AddUrl();
		$this->EditUrl = $cstFutureStudents->EditUrl();
		$this->CopyUrl = $cstFutureStudents->CopyUrl();
		$this->DeleteUrl = $cstFutureStudents->DeleteUrl();
		$this->ListUrl = $cstFutureStudents->ListUrl();

		// Call Row_Rendering event
		$cstFutureStudents->Row_Rendering();

		// Common render codes for all row types
		// Title

		$cstFutureStudents->Title->CellCssStyle = ""; $cstFutureStudents->Title->CellCssClass = "";
		$cstFutureStudents->Title->CellAttrs = array(); $cstFutureStudents->Title->ViewAttrs = array(); $cstFutureStudents->Title->EditAttrs = array();

		// FirstName
		$cstFutureStudents->FirstName->CellCssStyle = ""; $cstFutureStudents->FirstName->CellCssClass = "";
		$cstFutureStudents->FirstName->CellAttrs = array(); $cstFutureStudents->FirstName->ViewAttrs = array(); $cstFutureStudents->FirstName->EditAttrs = array();

		// Surname
		$cstFutureStudents->Surname->CellCssStyle = ""; $cstFutureStudents->Surname->CellCssClass = "";
		$cstFutureStudents->Surname->CellAttrs = array(); $cstFutureStudents->Surname->ViewAttrs = array(); $cstFutureStudents->Surname->EditAttrs = array();

		// KnownAs
		$cstFutureStudents->KnownAs->CellCssStyle = ""; $cstFutureStudents->KnownAs->CellCssClass = "";
		$cstFutureStudents->KnownAs->CellAttrs = array(); $cstFutureStudents->KnownAs->ViewAttrs = array(); $cstFutureStudents->KnownAs->EditAttrs = array();

		// Organisation
		$cstFutureStudents->Organisation->CellCssStyle = ""; $cstFutureStudents->Organisation->CellCssClass = "";
		$cstFutureStudents->Organisation->CellAttrs = array(); $cstFutureStudents->Organisation->ViewAttrs = array(); $cstFutureStudents->Organisation->EditAttrs = array();

		// OrganisationType
		$cstFutureStudents->OrganisationType->CellCssStyle = ""; $cstFutureStudents->OrganisationType->CellCssClass = "";
		$cstFutureStudents->OrganisationType->CellAttrs = array(); $cstFutureStudents->OrganisationType->ViewAttrs = array(); $cstFutureStudents->OrganisationType->EditAttrs = array();

		// LengthEmploy
		$cstFutureStudents->LengthEmploy->CellCssStyle = ""; $cstFutureStudents->LengthEmploy->CellCssClass = "";
		$cstFutureStudents->LengthEmploy->CellAttrs = array(); $cstFutureStudents->LengthEmploy->ViewAttrs = array(); $cstFutureStudents->LengthEmploy->EditAttrs = array();

		// OtherCEFirms
		$cstFutureStudents->OtherCEFirms->CellCssStyle = ""; $cstFutureStudents->OtherCEFirms->CellCssClass = "";
		$cstFutureStudents->OtherCEFirms->CellAttrs = array(); $cstFutureStudents->OtherCEFirms->ViewAttrs = array(); $cstFutureStudents->OtherCEFirms->EditAttrs = array();

		// StudentNumber
		$cstFutureStudents->StudentNumber->CellCssStyle = ""; $cstFutureStudents->StudentNumber->CellCssClass = "";
		$cstFutureStudents->StudentNumber->CellAttrs = array(); $cstFutureStudents->StudentNumber->ViewAttrs = array(); $cstFutureStudents->StudentNumber->EditAttrs = array();

		// CCEFacilitatorID
		$cstFutureStudents->CCEFacilitatorID->CellCssStyle = ""; $cstFutureStudents->CCEFacilitatorID->CellCssClass = "";
		$cstFutureStudents->CCEFacilitatorID->CellAttrs = array(); $cstFutureStudents->CCEFacilitatorID->ViewAttrs = array(); $cstFutureStudents->CCEFacilitatorID->EditAttrs = array();

		// Project
		$cstFutureStudents->Project->CellCssStyle = ""; $cstFutureStudents->Project->CellCssClass = "";
		$cstFutureStudents->Project->CellAttrs = array(); $cstFutureStudents->Project->ViewAttrs = array(); $cstFutureStudents->Project->EditAttrs = array();

		// ProjectDiscipline
		$cstFutureStudents->ProjectDiscipline->CellCssStyle = ""; $cstFutureStudents->ProjectDiscipline->CellCssClass = "";
		$cstFutureStudents->ProjectDiscipline->CellAttrs = array(); $cstFutureStudents->ProjectDiscipline->ViewAttrs = array(); $cstFutureStudents->ProjectDiscipline->EditAttrs = array();

		// IDNumber
		$cstFutureStudents->IDNumber->CellCssStyle = ""; $cstFutureStudents->IDNumber->CellCssClass = "";
		$cstFutureStudents->IDNumber->CellAttrs = array(); $cstFutureStudents->IDNumber->ViewAttrs = array(); $cstFutureStudents->IDNumber->EditAttrs = array();

		// ECSARegistered
		$cstFutureStudents->ECSARegistered->CellCssStyle = ""; $cstFutureStudents->ECSARegistered->CellCssClass = "";
		$cstFutureStudents->ECSARegistered->CellAttrs = array(); $cstFutureStudents->ECSARegistered->ViewAttrs = array(); $cstFutureStudents->ECSARegistered->EditAttrs = array();

		// ECSACategory
		$cstFutureStudents->ECSACategory->CellCssStyle = ""; $cstFutureStudents->ECSACategory->CellCssClass = "";
		$cstFutureStudents->ECSACategory->CellAttrs = array(); $cstFutureStudents->ECSACategory->ViewAttrs = array(); $cstFutureStudents->ECSACategory->EditAttrs = array();

		// ECSANumber
		$cstFutureStudents->ECSANumber->CellCssStyle = ""; $cstFutureStudents->ECSANumber->CellCssClass = "";
		$cstFutureStudents->ECSANumber->CellAttrs = array(); $cstFutureStudents->ECSANumber->ViewAttrs = array(); $cstFutureStudents->ECSANumber->EditAttrs = array();

		// OtherStatutoryBodyRegistered
		$cstFutureStudents->OtherStatutoryBodyRegistered->CellCssStyle = ""; $cstFutureStudents->OtherStatutoryBodyRegistered->CellCssClass = "";
		$cstFutureStudents->OtherStatutoryBodyRegistered->CellAttrs = array(); $cstFutureStudents->OtherStatutoryBodyRegistered->ViewAttrs = array(); $cstFutureStudents->OtherStatutoryBodyRegistered->EditAttrs = array();

		// OtherStatutoryBodyName
		$cstFutureStudents->OtherStatutoryBodyName->CellCssStyle = ""; $cstFutureStudents->OtherStatutoryBodyName->CellCssClass = "";
		$cstFutureStudents->OtherStatutoryBodyName->CellAttrs = array(); $cstFutureStudents->OtherStatutoryBodyName->ViewAttrs = array(); $cstFutureStudents->OtherStatutoryBodyName->EditAttrs = array();

		// OtherStatutoryBodyNumber
		$cstFutureStudents->OtherStatutoryBodyNumber->CellCssStyle = ""; $cstFutureStudents->OtherStatutoryBodyNumber->CellCssClass = "";
		$cstFutureStudents->OtherStatutoryBodyNumber->CellAttrs = array(); $cstFutureStudents->OtherStatutoryBodyNumber->ViewAttrs = array(); $cstFutureStudents->OtherStatutoryBodyNumber->EditAttrs = array();

		// Age
		$cstFutureStudents->Age->CellCssStyle = ""; $cstFutureStudents->Age->CellCssClass = "";
		$cstFutureStudents->Age->CellAttrs = array(); $cstFutureStudents->Age->ViewAttrs = array(); $cstFutureStudents->Age->EditAttrs = array();

		// HighestQual
		$cstFutureStudents->HighestQual->CellCssStyle = ""; $cstFutureStudents->HighestQual->CellCssClass = "";
		$cstFutureStudents->HighestQual->CellAttrs = array(); $cstFutureStudents->HighestQual->ViewAttrs = array(); $cstFutureStudents->HighestQual->EditAttrs = array();

		// AreaDiscipline
		$cstFutureStudents->AreaDiscipline->CellCssStyle = ""; $cstFutureStudents->AreaDiscipline->CellCssClass = "";
		$cstFutureStudents->AreaDiscipline->CellAttrs = array(); $cstFutureStudents->AreaDiscipline->ViewAttrs = array(); $cstFutureStudents->AreaDiscipline->EditAttrs = array();

		// Telephone
		$cstFutureStudents->Telephone->CellCssStyle = ""; $cstFutureStudents->Telephone->CellCssClass = "";
		$cstFutureStudents->Telephone->CellAttrs = array(); $cstFutureStudents->Telephone->ViewAttrs = array(); $cstFutureStudents->Telephone->EditAttrs = array();

		// Cellphone
		$cstFutureStudents->Cellphone->CellCssStyle = ""; $cstFutureStudents->Cellphone->CellCssClass = "";
		$cstFutureStudents->Cellphone->CellAttrs = array(); $cstFutureStudents->Cellphone->ViewAttrs = array(); $cstFutureStudents->Cellphone->EditAttrs = array();

		// EmailAddress
		$cstFutureStudents->EmailAddress->CellCssStyle = ""; $cstFutureStudents->EmailAddress->CellCssClass = "";
		$cstFutureStudents->EmailAddress->CellAttrs = array(); $cstFutureStudents->EmailAddress->ViewAttrs = array(); $cstFutureStudents->EmailAddress->EditAttrs = array();

		// HomeAddress
		$cstFutureStudents->HomeAddress->CellCssStyle = ""; $cstFutureStudents->HomeAddress->CellCssClass = "";
		$cstFutureStudents->HomeAddress->CellAttrs = array(); $cstFutureStudents->HomeAddress->ViewAttrs = array(); $cstFutureStudents->HomeAddress->EditAttrs = array();

		// WorkAddress
		$cstFutureStudents->WorkAddress->CellCssStyle = ""; $cstFutureStudents->WorkAddress->CellCssClass = "";
		$cstFutureStudents->WorkAddress->CellAttrs = array(); $cstFutureStudents->WorkAddress->ViewAttrs = array(); $cstFutureStudents->WorkAddress->EditAttrs = array();

		// PostalAddress
		$cstFutureStudents->PostalAddress->CellCssStyle = ""; $cstFutureStudents->PostalAddress->CellCssClass = "";
		$cstFutureStudents->PostalAddress->CellAttrs = array(); $cstFutureStudents->PostalAddress->ViewAttrs = array(); $cstFutureStudents->PostalAddress->EditAttrs = array();

		// Designation
		$cstFutureStudents->Designation->CellCssStyle = ""; $cstFutureStudents->Designation->CellCssClass = "";
		$cstFutureStudents->Designation->CellAttrs = array(); $cstFutureStudents->Designation->ViewAttrs = array(); $cstFutureStudents->Designation->EditAttrs = array();

		// Department
		$cstFutureStudents->Department->CellCssStyle = ""; $cstFutureStudents->Department->CellCssClass = "";
		$cstFutureStudents->Department->CellAttrs = array(); $cstFutureStudents->Department->ViewAttrs = array(); $cstFutureStudents->Department->EditAttrs = array();

		// CESAMemberFirm
		$cstFutureStudents->CESAMemberFirm->CellCssStyle = ""; $cstFutureStudents->CESAMemberFirm->CellCssClass = "";
		$cstFutureStudents->CESAMemberFirm->CellAttrs = array(); $cstFutureStudents->CESAMemberFirm->ViewAttrs = array(); $cstFutureStudents->CESAMemberFirm->EditAttrs = array();

		// CESAAccountNo
		$cstFutureStudents->CESAAccountNo->CellCssStyle = ""; $cstFutureStudents->CESAAccountNo->CellCssClass = "";
		$cstFutureStudents->CESAAccountNo->CellAttrs = array(); $cstFutureStudents->CESAAccountNo->ViewAttrs = array(); $cstFutureStudents->CESAAccountNo->EditAttrs = array();

		// VATNo
		$cstFutureStudents->VATNo->CellCssStyle = ""; $cstFutureStudents->VATNo->CellCssClass = "";
		$cstFutureStudents->VATNo->CellAttrs = array(); $cstFutureStudents->VATNo->ViewAttrs = array(); $cstFutureStudents->VATNo->EditAttrs = array();

		// DietaryRequirements
		$cstFutureStudents->DietaryRequirements->CellCssStyle = ""; $cstFutureStudents->DietaryRequirements->CellCssClass = "";
		$cstFutureStudents->DietaryRequirements->CellAttrs = array(); $cstFutureStudents->DietaryRequirements->ViewAttrs = array(); $cstFutureStudents->DietaryRequirements->EditAttrs = array();

		// IDFile
		$cstFutureStudents->IDFile->CellCssStyle = ""; $cstFutureStudents->IDFile->CellCssClass = "";
		$cstFutureStudents->IDFile->CellAttrs = array(); $cstFutureStudents->IDFile->ViewAttrs = array(); $cstFutureStudents->IDFile->EditAttrs = array();

		// CVFile
		$cstFutureStudents->CVFile->CellCssStyle = ""; $cstFutureStudents->CVFile->CellCssClass = "";
		$cstFutureStudents->CVFile->CellAttrs = array(); $cstFutureStudents->CVFile->ViewAttrs = array(); $cstFutureStudents->CVFile->EditAttrs = array();

		// QualCertificate1
		$cstFutureStudents->QualCertificate1->CellCssStyle = ""; $cstFutureStudents->QualCertificate1->CellCssClass = "";
		$cstFutureStudents->QualCertificate1->CellAttrs = array(); $cstFutureStudents->QualCertificate1->ViewAttrs = array(); $cstFutureStudents->QualCertificate1->EditAttrs = array();

		// QualCertificate2
		$cstFutureStudents->QualCertificate2->CellCssStyle = ""; $cstFutureStudents->QualCertificate2->CellCssClass = "";
		$cstFutureStudents->QualCertificate2->CellAttrs = array(); $cstFutureStudents->QualCertificate2->ViewAttrs = array(); $cstFutureStudents->QualCertificate2->EditAttrs = array();

		// QualCertificate3
		$cstFutureStudents->QualCertificate3->CellCssStyle = ""; $cstFutureStudents->QualCertificate3->CellCssClass = "";
		$cstFutureStudents->QualCertificate3->CellAttrs = array(); $cstFutureStudents->QualCertificate3->ViewAttrs = array(); $cstFutureStudents->QualCertificate3->EditAttrs = array();

		// MemorandumFile
		$cstFutureStudents->MemorandumFile->CellCssStyle = ""; $cstFutureStudents->MemorandumFile->CellCssClass = "";
		$cstFutureStudents->MemorandumFile->CellAttrs = array(); $cstFutureStudents->MemorandumFile->ViewAttrs = array(); $cstFutureStudents->MemorandumFile->EditAttrs = array();

		// AgreementFile
		$cstFutureStudents->AgreementFile->CellCssStyle = ""; $cstFutureStudents->AgreementFile->CellCssClass = "";
		$cstFutureStudents->AgreementFile->CellAttrs = array(); $cstFutureStudents->AgreementFile->ViewAttrs = array(); $cstFutureStudents->AgreementFile->EditAttrs = array();

		// OrderNo
		$cstFutureStudents->OrderNo->CellCssStyle = ""; $cstFutureStudents->OrderNo->CellCssClass = "";
		$cstFutureStudents->OrderNo->CellAttrs = array(); $cstFutureStudents->OrderNo->ViewAttrs = array(); $cstFutureStudents->OrderNo->EditAttrs = array();

		// BookedByName
		$cstFutureStudents->BookedByName->CellCssStyle = ""; $cstFutureStudents->BookedByName->CellCssClass = "";
		$cstFutureStudents->BookedByName->CellAttrs = array(); $cstFutureStudents->BookedByName->ViewAttrs = array(); $cstFutureStudents->BookedByName->EditAttrs = array();

		// BookedByDesignation
		$cstFutureStudents->BookedByDesignation->CellCssStyle = ""; $cstFutureStudents->BookedByDesignation->CellCssClass = "";
		$cstFutureStudents->BookedByDesignation->CellAttrs = array(); $cstFutureStudents->BookedByDesignation->ViewAttrs = array(); $cstFutureStudents->BookedByDesignation->EditAttrs = array();

		// BookedByTelNo
		$cstFutureStudents->BookedByTelNo->CellCssStyle = ""; $cstFutureStudents->BookedByTelNo->CellCssClass = "";
		$cstFutureStudents->BookedByTelNo->CellAttrs = array(); $cstFutureStudents->BookedByTelNo->ViewAttrs = array(); $cstFutureStudents->BookedByTelNo->EditAttrs = array();

		// BookedByFaxNo
		$cstFutureStudents->BookedByFaxNo->CellCssStyle = ""; $cstFutureStudents->BookedByFaxNo->CellCssClass = "";
		$cstFutureStudents->BookedByFaxNo->CellAttrs = array(); $cstFutureStudents->BookedByFaxNo->ViewAttrs = array(); $cstFutureStudents->BookedByFaxNo->EditAttrs = array();

		// BookedByCellNo
		$cstFutureStudents->BookedByCellNo->CellCssStyle = ""; $cstFutureStudents->BookedByCellNo->CellCssClass = "";
		$cstFutureStudents->BookedByCellNo->CellAttrs = array(); $cstFutureStudents->BookedByCellNo->ViewAttrs = array(); $cstFutureStudents->BookedByCellNo->EditAttrs = array();

		// BookedByEmail
		$cstFutureStudents->BookedByEmail->CellCssStyle = ""; $cstFutureStudents->BookedByEmail->CellCssClass = "";
		$cstFutureStudents->BookedByEmail->CellAttrs = array(); $cstFutureStudents->BookedByEmail->ViewAttrs = array(); $cstFutureStudents->BookedByEmail->EditAttrs = array();

		// WebUsername
		$cstFutureStudents->WebUsername->CellCssStyle = ""; $cstFutureStudents->WebUsername->CellCssClass = "";
		$cstFutureStudents->WebUsername->CellAttrs = array(); $cstFutureStudents->WebUsername->ViewAttrs = array(); $cstFutureStudents->WebUsername->EditAttrs = array();

		// WebPassword
		$cstFutureStudents->WebPassword->CellCssStyle = ""; $cstFutureStudents->WebPassword->CellCssClass = "";
		$cstFutureStudents->WebPassword->CellAttrs = array(); $cstFutureStudents->WebPassword->ViewAttrs = array(); $cstFutureStudents->WebPassword->EditAttrs = array();

		// MentorDesig
		$cstFutureStudents->MentorDesig->CellCssStyle = ""; $cstFutureStudents->MentorDesig->CellCssClass = "";
		$cstFutureStudents->MentorDesig->CellAttrs = array(); $cstFutureStudents->MentorDesig->ViewAttrs = array(); $cstFutureStudents->MentorDesig->EditAttrs = array();

		// MentorTel
		$cstFutureStudents->MentorTel->CellCssStyle = ""; $cstFutureStudents->MentorTel->CellCssClass = "";
		$cstFutureStudents->MentorTel->CellAttrs = array(); $cstFutureStudents->MentorTel->ViewAttrs = array(); $cstFutureStudents->MentorTel->EditAttrs = array();

		// MentorCell
		$cstFutureStudents->MentorCell->CellCssStyle = ""; $cstFutureStudents->MentorCell->CellCssClass = "";
		$cstFutureStudents->MentorCell->CellAttrs = array(); $cstFutureStudents->MentorCell->ViewAttrs = array(); $cstFutureStudents->MentorCell->EditAttrs = array();

		// MentorEmail
		$cstFutureStudents->MentorEmail->CellCssStyle = ""; $cstFutureStudents->MentorEmail->CellCssClass = "";
		$cstFutureStudents->MentorEmail->CellAttrs = array(); $cstFutureStudents->MentorEmail->ViewAttrs = array(); $cstFutureStudents->MentorEmail->EditAttrs = array();

		// HRManagerName
		$cstFutureStudents->HRManagerName->CellCssStyle = ""; $cstFutureStudents->HRManagerName->CellCssClass = "";
		$cstFutureStudents->HRManagerName->CellAttrs = array(); $cstFutureStudents->HRManagerName->ViewAttrs = array(); $cstFutureStudents->HRManagerName->EditAttrs = array();

		// HRManagerDesignation
		$cstFutureStudents->HRManagerDesignation->CellCssStyle = ""; $cstFutureStudents->HRManagerDesignation->CellCssClass = "";
		$cstFutureStudents->HRManagerDesignation->CellAttrs = array(); $cstFutureStudents->HRManagerDesignation->ViewAttrs = array(); $cstFutureStudents->HRManagerDesignation->EditAttrs = array();

		// HRManagerTelNo
		$cstFutureStudents->HRManagerTelNo->CellCssStyle = ""; $cstFutureStudents->HRManagerTelNo->CellCssClass = "";
		$cstFutureStudents->HRManagerTelNo->CellAttrs = array(); $cstFutureStudents->HRManagerTelNo->ViewAttrs = array(); $cstFutureStudents->HRManagerTelNo->EditAttrs = array();

		// HRManagerCellNo
		$cstFutureStudents->HRManagerCellNo->CellCssStyle = ""; $cstFutureStudents->HRManagerCellNo->CellCssClass = "";
		$cstFutureStudents->HRManagerCellNo->CellAttrs = array(); $cstFutureStudents->HRManagerCellNo->ViewAttrs = array(); $cstFutureStudents->HRManagerCellNo->EditAttrs = array();

		// HRManagerEmail
		$cstFutureStudents->HRManagerEmail->CellCssStyle = ""; $cstFutureStudents->HRManagerEmail->CellCssClass = "";
		$cstFutureStudents->HRManagerEmail->CellAttrs = array(); $cstFutureStudents->HRManagerEmail->ViewAttrs = array(); $cstFutureStudents->HRManagerEmail->EditAttrs = array();

		// BlockAccess
		$cstFutureStudents->BlockAccess->CellCssStyle = ""; $cstFutureStudents->BlockAccess->CellCssClass = "";
		$cstFutureStudents->BlockAccess->CellAttrs = array(); $cstFutureStudents->BlockAccess->ViewAttrs = array(); $cstFutureStudents->BlockAccess->EditAttrs = array();

		// Archived
		$cstFutureStudents->Archived->CellCssStyle = ""; $cstFutureStudents->Archived->CellCssClass = "";
		$cstFutureStudents->Archived->CellAttrs = array(); $cstFutureStudents->Archived->ViewAttrs = array(); $cstFutureStudents->Archived->EditAttrs = array();

		// MentorFirstName
		$cstFutureStudents->MentorFirstName->CellCssStyle = ""; $cstFutureStudents->MentorFirstName->CellCssClass = "";
		$cstFutureStudents->MentorFirstName->CellAttrs = array(); $cstFutureStudents->MentorFirstName->ViewAttrs = array(); $cstFutureStudents->MentorFirstName->EditAttrs = array();

		// MentorSurname
		$cstFutureStudents->MentorSurname->CellCssStyle = ""; $cstFutureStudents->MentorSurname->CellCssClass = "";
		$cstFutureStudents->MentorSurname->CellAttrs = array(); $cstFutureStudents->MentorSurname->ViewAttrs = array(); $cstFutureStudents->MentorSurname->EditAttrs = array();
		if ($cstFutureStudents->RowType == EW_ROWTYPE_VIEW) { // View row

			// Title
			$cstFutureStudents->Title->ViewValue = $cstFutureStudents->Title->CurrentValue;
			$cstFutureStudents->Title->CssStyle = "";
			$cstFutureStudents->Title->CssClass = "";
			$cstFutureStudents->Title->ViewCustomAttributes = "";

			// FirstName
			$cstFutureStudents->FirstName->ViewValue = $cstFutureStudents->FirstName->CurrentValue;
			$cstFutureStudents->FirstName->CssStyle = "";
			$cstFutureStudents->FirstName->CssClass = "";
			$cstFutureStudents->FirstName->ViewCustomAttributes = "";

			// Surname
			$cstFutureStudents->Surname->ViewValue = $cstFutureStudents->Surname->CurrentValue;
			$cstFutureStudents->Surname->CssStyle = "";
			$cstFutureStudents->Surname->CssClass = "";
			$cstFutureStudents->Surname->ViewCustomAttributes = "";

			// KnownAs
			$cstFutureStudents->KnownAs->ViewValue = $cstFutureStudents->KnownAs->CurrentValue;
			$cstFutureStudents->KnownAs->CssStyle = "";
			$cstFutureStudents->KnownAs->CssClass = "";
			$cstFutureStudents->KnownAs->ViewCustomAttributes = "";

			// Organisation
			$cstFutureStudents->Organisation->ViewValue = $cstFutureStudents->Organisation->CurrentValue;
			$cstFutureStudents->Organisation->CssStyle = "";
			$cstFutureStudents->Organisation->CssClass = "";
			$cstFutureStudents->Organisation->ViewCustomAttributes = "";

			// OrganisationType
			$cstFutureStudents->OrganisationType->ViewValue = $cstFutureStudents->OrganisationType->CurrentValue;
			$cstFutureStudents->OrganisationType->CssStyle = "";
			$cstFutureStudents->OrganisationType->CssClass = "";
			$cstFutureStudents->OrganisationType->ViewCustomAttributes = "";

			// LengthEmploy
			$cstFutureStudents->LengthEmploy->ViewValue = $cstFutureStudents->LengthEmploy->CurrentValue;
			$cstFutureStudents->LengthEmploy->CssStyle = "";
			$cstFutureStudents->LengthEmploy->CssClass = "";
			$cstFutureStudents->LengthEmploy->ViewCustomAttributes = "";

			// OtherCEFirms
			$cstFutureStudents->OtherCEFirms->ViewValue = $cstFutureStudents->OtherCEFirms->CurrentValue;
			$cstFutureStudents->OtherCEFirms->CssStyle = "";
			$cstFutureStudents->OtherCEFirms->CssClass = "";
			$cstFutureStudents->OtherCEFirms->ViewCustomAttributes = "";

			// StudentNumber
			$cstFutureStudents->StudentNumber->ViewValue = $cstFutureStudents->StudentNumber->CurrentValue;
			$cstFutureStudents->StudentNumber->CssStyle = "";
			$cstFutureStudents->StudentNumber->CssClass = "";
			$cstFutureStudents->StudentNumber->ViewCustomAttributes = "";

			// CCEFacilitatorID
			if (strval($cstFutureStudents->CCEFacilitatorID->CurrentValue) <> "") {
				$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($cstFutureStudents->CCEFacilitatorID->CurrentValue) . "";
			$sSqlWrk = "SELECT `FacilitatorName` FROM `CCEFacilitators`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `FacilitatorName`";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$cstFutureStudents->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
					$rswrk->Close();
				} else {
					$cstFutureStudents->CCEFacilitatorID->ViewValue = $cstFutureStudents->CCEFacilitatorID->CurrentValue;
				}
			} else {
				$cstFutureStudents->CCEFacilitatorID->ViewValue = NULL;
			}
			$cstFutureStudents->CCEFacilitatorID->CssStyle = "";
			$cstFutureStudents->CCEFacilitatorID->CssClass = "";
			$cstFutureStudents->CCEFacilitatorID->ViewCustomAttributes = "";

			// Project
			if (strval($cstFutureStudents->Project->CurrentValue) <> "") {
				$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($cstFutureStudents->Project->CurrentValue) . "";
			$sSqlWrk = "SELECT `Project` FROM `CCEProjects`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `DisplayOrder`";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$cstFutureStudents->Project->ViewValue = $rswrk->fields('Project');
					$rswrk->Close();
				} else {
					$cstFutureStudents->Project->ViewValue = $cstFutureStudents->Project->CurrentValue;
				}
			} else {
				$cstFutureStudents->Project->ViewValue = NULL;
			}
			$cstFutureStudents->Project->CssStyle = "";
			$cstFutureStudents->Project->CssClass = "";
			$cstFutureStudents->Project->ViewCustomAttributes = "";

			// ProjectDiscipline
			$cstFutureStudents->ProjectDiscipline->ViewValue = $cstFutureStudents->ProjectDiscipline->CurrentValue;
			$cstFutureStudents->ProjectDiscipline->CssStyle = "";
			$cstFutureStudents->ProjectDiscipline->CssClass = "";
			$cstFutureStudents->ProjectDiscipline->ViewCustomAttributes = "";

			// IDNumber
			$cstFutureStudents->IDNumber->ViewValue = $cstFutureStudents->IDNumber->CurrentValue;
			$cstFutureStudents->IDNumber->CssStyle = "";
			$cstFutureStudents->IDNumber->CssClass = "";
			$cstFutureStudents->IDNumber->ViewCustomAttributes = "mso-number-format:General";

			// ECSARegistered
			if (strval($cstFutureStudents->ECSARegistered->CurrentValue) <> "") {
				switch ($cstFutureStudents->ECSARegistered->CurrentValue) {
					case "c":
						$cstFutureStudents->ECSARegistered->ViewValue = "Yes - Candidate Engineer";
						break;
					case "p":
						$cstFutureStudents->ECSARegistered->ViewValue = "Yes - Professional Engineer";
						break;
					case "n":
						$cstFutureStudents->ECSARegistered->ViewValue = "No";
						break;
					case "y":
						$cstFutureStudents->ECSARegistered->ViewValue = "Yes";
						break;
					default:
						$cstFutureStudents->ECSARegistered->ViewValue = $cstFutureStudents->ECSARegistered->CurrentValue;
				}
			} else {
				$cstFutureStudents->ECSARegistered->ViewValue = NULL;
			}
			$cstFutureStudents->ECSARegistered->CssStyle = "";
			$cstFutureStudents->ECSARegistered->CssClass = "";
			$cstFutureStudents->ECSARegistered->ViewCustomAttributes = "";

			// ECSACategory
			$cstFutureStudents->ECSACategory->ViewValue = $cstFutureStudents->ECSACategory->CurrentValue;
			$cstFutureStudents->ECSACategory->CssStyle = "";
			$cstFutureStudents->ECSACategory->CssClass = "";
			$cstFutureStudents->ECSACategory->ViewCustomAttributes = "";

			// ECSANumber
			$cstFutureStudents->ECSANumber->ViewValue = $cstFutureStudents->ECSANumber->CurrentValue;
			$cstFutureStudents->ECSANumber->CssStyle = "";
			$cstFutureStudents->ECSANumber->CssClass = "";
			$cstFutureStudents->ECSANumber->ViewCustomAttributes = "";

			// OtherStatutoryBodyRegistered
			if (strval($cstFutureStudents->OtherStatutoryBodyRegistered->CurrentValue) <> "") {
				switch ($cstFutureStudents->OtherStatutoryBodyRegistered->CurrentValue) {
					case "1":
						$cstFutureStudents->OtherStatutoryBodyRegistered->ViewValue = "Yes";
						break;
					case "0":
						$cstFutureStudents->OtherStatutoryBodyRegistered->ViewValue = "No";
						break;
					default:
						$cstFutureStudents->OtherStatutoryBodyRegistered->ViewValue = $cstFutureStudents->OtherStatutoryBodyRegistered->CurrentValue;
				}
			} else {
				$cstFutureStudents->OtherStatutoryBodyRegistered->ViewValue = NULL;
			}
			$cstFutureStudents->OtherStatutoryBodyRegistered->CssStyle = "";
			$cstFutureStudents->OtherStatutoryBodyRegistered->CssClass = "";
			$cstFutureStudents->OtherStatutoryBodyRegistered->ViewCustomAttributes = "";

			// OtherStatutoryBodyName
			$cstFutureStudents->OtherStatutoryBodyName->ViewValue = $cstFutureStudents->OtherStatutoryBodyName->CurrentValue;
			$cstFutureStudents->OtherStatutoryBodyName->CssStyle = "";
			$cstFutureStudents->OtherStatutoryBodyName->CssClass = "";
			$cstFutureStudents->OtherStatutoryBodyName->ViewCustomAttributes = "";

			// OtherStatutoryBodyNumber
			$cstFutureStudents->OtherStatutoryBodyNumber->ViewValue = $cstFutureStudents->OtherStatutoryBodyNumber->CurrentValue;
			$cstFutureStudents->OtherStatutoryBodyNumber->CssStyle = "";
			$cstFutureStudents->OtherStatutoryBodyNumber->CssClass = "";
			$cstFutureStudents->OtherStatutoryBodyNumber->ViewCustomAttributes = "";

			// Age
			if (strval($cstFutureStudents->Age->CurrentValue) <> "") {
				switch ($cstFutureStudents->Age->CurrentValue) {
					case "1":
						$cstFutureStudents->Age->ViewValue = "Yes";
						break;
					case "0":
						$cstFutureStudents->Age->ViewValue = "No";
						break;
					default:
						$cstFutureStudents->Age->ViewValue = $cstFutureStudents->Age->CurrentValue;
				}
			} else {
				$cstFutureStudents->Age->ViewValue = NULL;
			}
			$cstFutureStudents->Age->CssStyle = "";
			$cstFutureStudents->Age->CssClass = "";
			$cstFutureStudents->Age->ViewCustomAttributes = "";

			// HighestQual
			$cstFutureStudents->HighestQual->ViewValue = $cstFutureStudents->HighestQual->CurrentValue;
			$cstFutureStudents->HighestQual->CssStyle = "";
			$cstFutureStudents->HighestQual->CssClass = "";
			$cstFutureStudents->HighestQual->ViewCustomAttributes = "";

			// AreaDiscipline
			$cstFutureStudents->AreaDiscipline->ViewValue = $cstFutureStudents->AreaDiscipline->CurrentValue;
			$cstFutureStudents->AreaDiscipline->CssStyle = "";
			$cstFutureStudents->AreaDiscipline->CssClass = "";
			$cstFutureStudents->AreaDiscipline->ViewCustomAttributes = "";

			// Telephone
			$cstFutureStudents->Telephone->ViewValue = $cstFutureStudents->Telephone->CurrentValue;
			$cstFutureStudents->Telephone->CssStyle = "";
			$cstFutureStudents->Telephone->CssClass = "";
			$cstFutureStudents->Telephone->ViewCustomAttributes = "mso-number-format:General";

			// Cellphone
			$cstFutureStudents->Cellphone->ViewValue = $cstFutureStudents->Cellphone->CurrentValue;
			$cstFutureStudents->Cellphone->CssStyle = "";
			$cstFutureStudents->Cellphone->CssClass = "";
			$cstFutureStudents->Cellphone->ViewCustomAttributes = "mso-number-format:General";

			// EmailAddress
			$cstFutureStudents->EmailAddress->ViewValue = $cstFutureStudents->EmailAddress->CurrentValue;
			$cstFutureStudents->EmailAddress->CssStyle = "";
			$cstFutureStudents->EmailAddress->CssClass = "";
			$cstFutureStudents->EmailAddress->ViewCustomAttributes = "";

			// HomeAddress
			$cstFutureStudents->HomeAddress->ViewValue = $cstFutureStudents->HomeAddress->CurrentValue;
			$cstFutureStudents->HomeAddress->CssStyle = "";
			$cstFutureStudents->HomeAddress->CssClass = "";
			$cstFutureStudents->HomeAddress->ViewCustomAttributes = "";

			// WorkAddress
			$cstFutureStudents->WorkAddress->ViewValue = $cstFutureStudents->WorkAddress->CurrentValue;
			$cstFutureStudents->WorkAddress->CssStyle = "";
			$cstFutureStudents->WorkAddress->CssClass = "";
			$cstFutureStudents->WorkAddress->ViewCustomAttributes = "";

			// PostalAddress
			$cstFutureStudents->PostalAddress->ViewValue = $cstFutureStudents->PostalAddress->CurrentValue;
			$cstFutureStudents->PostalAddress->CssStyle = "";
			$cstFutureStudents->PostalAddress->CssClass = "";
			$cstFutureStudents->PostalAddress->ViewCustomAttributes = "";

			// Designation
			$cstFutureStudents->Designation->ViewValue = $cstFutureStudents->Designation->CurrentValue;
			$cstFutureStudents->Designation->CssStyle = "";
			$cstFutureStudents->Designation->CssClass = "";
			$cstFutureStudents->Designation->ViewCustomAttributes = "";

			// Department
			$cstFutureStudents->Department->ViewValue = $cstFutureStudents->Department->CurrentValue;
			$cstFutureStudents->Department->CssStyle = "";
			$cstFutureStudents->Department->CssClass = "";
			$cstFutureStudents->Department->ViewCustomAttributes = "";

			// CESAMemberFirm
			if (strval($cstFutureStudents->CESAMemberFirm->CurrentValue) <> "") {
				switch ($cstFutureStudents->CESAMemberFirm->CurrentValue) {
					case "y":
						$cstFutureStudents->CESAMemberFirm->ViewValue = "Yes";
						break;
					case "n":
						$cstFutureStudents->CESAMemberFirm->ViewValue = "No";
						break;
					default:
						$cstFutureStudents->CESAMemberFirm->ViewValue = $cstFutureStudents->CESAMemberFirm->CurrentValue;
				}
			} else {
				$cstFutureStudents->CESAMemberFirm->ViewValue = NULL;
			}
			$cstFutureStudents->CESAMemberFirm->CssStyle = "";
			$cstFutureStudents->CESAMemberFirm->CssClass = "";
			$cstFutureStudents->CESAMemberFirm->ViewCustomAttributes = "";

			// CESAAccountNo
			$cstFutureStudents->CESAAccountNo->ViewValue = $cstFutureStudents->CESAAccountNo->CurrentValue;
			$cstFutureStudents->CESAAccountNo->CssStyle = "";
			$cstFutureStudents->CESAAccountNo->CssClass = "";
			$cstFutureStudents->CESAAccountNo->ViewCustomAttributes = "";

			// VATNo
			$cstFutureStudents->VATNo->ViewValue = $cstFutureStudents->VATNo->CurrentValue;
			$cstFutureStudents->VATNo->CssStyle = "";
			$cstFutureStudents->VATNo->CssClass = "";
			$cstFutureStudents->VATNo->ViewCustomAttributes = "mso-number-format:General";

			// DietaryRequirements
			$cstFutureStudents->DietaryRequirements->ViewValue = $cstFutureStudents->DietaryRequirements->CurrentValue;
			$cstFutureStudents->DietaryRequirements->CssStyle = "";
			$cstFutureStudents->DietaryRequirements->CssClass = "";
			$cstFutureStudents->DietaryRequirements->ViewCustomAttributes = "";

			// IDFile
			if (!ew_Empty($cstFutureStudents->IDFile->Upload->DbValue)) {
				$cstFutureStudents->IDFile->ViewValue = $cstFutureStudents->IDFile->Upload->DbValue;
			} else {
				$cstFutureStudents->IDFile->ViewValue = "";
			}
			$cstFutureStudents->IDFile->CssStyle = "";
			$cstFutureStudents->IDFile->CssClass = "";
			$cstFutureStudents->IDFile->ViewCustomAttributes = "";

			// CVFile
			if (!ew_Empty($cstFutureStudents->CVFile->Upload->DbValue)) {
				$cstFutureStudents->CVFile->ViewValue = $cstFutureStudents->CVFile->Upload->DbValue;
			} else {
				$cstFutureStudents->CVFile->ViewValue = "";
			}
			$cstFutureStudents->CVFile->CssStyle = "";
			$cstFutureStudents->CVFile->CssClass = "";
			$cstFutureStudents->CVFile->ViewCustomAttributes = "";

			// QualCertificate1
			if (!ew_Empty($cstFutureStudents->QualCertificate1->Upload->DbValue)) {
				$cstFutureStudents->QualCertificate1->ViewValue = $cstFutureStudents->QualCertificate1->Upload->DbValue;
			} else {
				$cstFutureStudents->QualCertificate1->ViewValue = "";
			}
			$cstFutureStudents->QualCertificate1->CssStyle = "";
			$cstFutureStudents->QualCertificate1->CssClass = "";
			$cstFutureStudents->QualCertificate1->ViewCustomAttributes = "";

			// QualCertificate2
			if (!ew_Empty($cstFutureStudents->QualCertificate2->Upload->DbValue)) {
				$cstFutureStudents->QualCertificate2->ViewValue = $cstFutureStudents->QualCertificate2->Upload->DbValue;
			} else {
				$cstFutureStudents->QualCertificate2->ViewValue = "";
			}
			$cstFutureStudents->QualCertificate2->CssStyle = "";
			$cstFutureStudents->QualCertificate2->CssClass = "";
			$cstFutureStudents->QualCertificate2->ViewCustomAttributes = "";

			// QualCertificate3
			if (!ew_Empty($cstFutureStudents->QualCertificate3->Upload->DbValue)) {
				$cstFutureStudents->QualCertificate3->ViewValue = $cstFutureStudents->QualCertificate3->Upload->DbValue;
			} else {
				$cstFutureStudents->QualCertificate3->ViewValue = "";
			}
			$cstFutureStudents->QualCertificate3->CssStyle = "";
			$cstFutureStudents->QualCertificate3->CssClass = "";
			$cstFutureStudents->QualCertificate3->ViewCustomAttributes = "";

			// MemorandumFile
			if (!ew_Empty($cstFutureStudents->MemorandumFile->Upload->DbValue)) {
				$cstFutureStudents->MemorandumFile->ViewValue = $cstFutureStudents->MemorandumFile->Upload->DbValue;
			} else {
				$cstFutureStudents->MemorandumFile->ViewValue = "";
			}
			$cstFutureStudents->MemorandumFile->CssStyle = "";
			$cstFutureStudents->MemorandumFile->CssClass = "";
			$cstFutureStudents->MemorandumFile->ViewCustomAttributes = "";

			// AgreementFile
			if (!ew_Empty($cstFutureStudents->AgreementFile->Upload->DbValue)) {
				$cstFutureStudents->AgreementFile->ViewValue = $cstFutureStudents->AgreementFile->Upload->DbValue;
			} else {
				$cstFutureStudents->AgreementFile->ViewValue = "";
			}
			$cstFutureStudents->AgreementFile->CssStyle = "";
			$cstFutureStudents->AgreementFile->CssClass = "";
			$cstFutureStudents->AgreementFile->ViewCustomAttributes = "";

			// OrderNo
			$cstFutureStudents->OrderNo->ViewValue = $cstFutureStudents->OrderNo->CurrentValue;
			$cstFutureStudents->OrderNo->CssStyle = "";
			$cstFutureStudents->OrderNo->CssClass = "";
			$cstFutureStudents->OrderNo->ViewCustomAttributes = "";

			// BookedByName
			$cstFutureStudents->BookedByName->ViewValue = $cstFutureStudents->BookedByName->CurrentValue;
			$cstFutureStudents->BookedByName->CssStyle = "";
			$cstFutureStudents->BookedByName->CssClass = "";
			$cstFutureStudents->BookedByName->ViewCustomAttributes = "";

			// BookedByDesignation
			$cstFutureStudents->BookedByDesignation->ViewValue = $cstFutureStudents->BookedByDesignation->CurrentValue;
			$cstFutureStudents->BookedByDesignation->CssStyle = "";
			$cstFutureStudents->BookedByDesignation->CssClass = "";
			$cstFutureStudents->BookedByDesignation->ViewCustomAttributes = "";

			// BookedByTelNo
			$cstFutureStudents->BookedByTelNo->ViewValue = $cstFutureStudents->BookedByTelNo->CurrentValue;
			$cstFutureStudents->BookedByTelNo->CssStyle = "";
			$cstFutureStudents->BookedByTelNo->CssClass = "";
			$cstFutureStudents->BookedByTelNo->ViewCustomAttributes = "mso-number-format:General";

			// BookedByFaxNo
			$cstFutureStudents->BookedByFaxNo->ViewValue = $cstFutureStudents->BookedByFaxNo->CurrentValue;
			$cstFutureStudents->BookedByFaxNo->CssStyle = "";
			$cstFutureStudents->BookedByFaxNo->CssClass = "";
			$cstFutureStudents->BookedByFaxNo->ViewCustomAttributes = "mso-number-format:General";

			// BookedByCellNo
			$cstFutureStudents->BookedByCellNo->ViewValue = $cstFutureStudents->BookedByCellNo->CurrentValue;
			$cstFutureStudents->BookedByCellNo->CssStyle = "";
			$cstFutureStudents->BookedByCellNo->CssClass = "";
			$cstFutureStudents->BookedByCellNo->ViewCustomAttributes = "mso-number-format:General";

			// BookedByEmail
			$cstFutureStudents->BookedByEmail->ViewValue = $cstFutureStudents->BookedByEmail->CurrentValue;
			$cstFutureStudents->BookedByEmail->CssStyle = "";
			$cstFutureStudents->BookedByEmail->CssClass = "";
			$cstFutureStudents->BookedByEmail->ViewCustomAttributes = "";

			// WebUsername
			$cstFutureStudents->WebUsername->ViewValue = $cstFutureStudents->WebUsername->CurrentValue;
			$cstFutureStudents->WebUsername->CssStyle = "";
			$cstFutureStudents->WebUsername->CssClass = "";
			$cstFutureStudents->WebUsername->ViewCustomAttributes = "";

			// WebPassword
			$cstFutureStudents->WebPassword->ViewValue = $cstFutureStudents->WebPassword->CurrentValue;
			$cstFutureStudents->WebPassword->CssStyle = "";
			$cstFutureStudents->WebPassword->CssClass = "";
			$cstFutureStudents->WebPassword->ViewCustomAttributes = "";

			// MentorDesig
			$cstFutureStudents->MentorDesig->ViewValue = $cstFutureStudents->MentorDesig->CurrentValue;
			$cstFutureStudents->MentorDesig->CssStyle = "";
			$cstFutureStudents->MentorDesig->CssClass = "";
			$cstFutureStudents->MentorDesig->ViewCustomAttributes = "";

			// MentorTel
			$cstFutureStudents->MentorTel->ViewValue = $cstFutureStudents->MentorTel->CurrentValue;
			$cstFutureStudents->MentorTel->CssStyle = "";
			$cstFutureStudents->MentorTel->CssClass = "";
			$cstFutureStudents->MentorTel->ViewCustomAttributes = "";

			// MentorCell
			$cstFutureStudents->MentorCell->ViewValue = $cstFutureStudents->MentorCell->CurrentValue;
			$cstFutureStudents->MentorCell->CssStyle = "";
			$cstFutureStudents->MentorCell->CssClass = "";
			$cstFutureStudents->MentorCell->ViewCustomAttributes = "";

			// MentorEmail
			$cstFutureStudents->MentorEmail->ViewValue = $cstFutureStudents->MentorEmail->CurrentValue;
			$cstFutureStudents->MentorEmail->CssStyle = "";
			$cstFutureStudents->MentorEmail->CssClass = "";
			$cstFutureStudents->MentorEmail->ViewCustomAttributes = "";

			// HRManagerName
			$cstFutureStudents->HRManagerName->ViewValue = $cstFutureStudents->HRManagerName->CurrentValue;
			$cstFutureStudents->HRManagerName->CssStyle = "";
			$cstFutureStudents->HRManagerName->CssClass = "";
			$cstFutureStudents->HRManagerName->ViewCustomAttributes = "";

			// HRManagerDesignation
			$cstFutureStudents->HRManagerDesignation->ViewValue = $cstFutureStudents->HRManagerDesignation->CurrentValue;
			$cstFutureStudents->HRManagerDesignation->CssStyle = "";
			$cstFutureStudents->HRManagerDesignation->CssClass = "";
			$cstFutureStudents->HRManagerDesignation->ViewCustomAttributes = "";

			// HRManagerTelNo
			$cstFutureStudents->HRManagerTelNo->ViewValue = $cstFutureStudents->HRManagerTelNo->CurrentValue;
			$cstFutureStudents->HRManagerTelNo->CssStyle = "";
			$cstFutureStudents->HRManagerTelNo->CssClass = "";
			$cstFutureStudents->HRManagerTelNo->ViewCustomAttributes = "";

			// HRManagerCellNo
			$cstFutureStudents->HRManagerCellNo->ViewValue = $cstFutureStudents->HRManagerCellNo->CurrentValue;
			$cstFutureStudents->HRManagerCellNo->CssStyle = "";
			$cstFutureStudents->HRManagerCellNo->CssClass = "";
			$cstFutureStudents->HRManagerCellNo->ViewCustomAttributes = "";

			// HRManagerEmail
			$cstFutureStudents->HRManagerEmail->ViewValue = $cstFutureStudents->HRManagerEmail->CurrentValue;
			$cstFutureStudents->HRManagerEmail->CssStyle = "";
			$cstFutureStudents->HRManagerEmail->CssClass = "";
			$cstFutureStudents->HRManagerEmail->ViewCustomAttributes = "";

			// BlockAccess
			if (strval($cstFutureStudents->BlockAccess->CurrentValue) <> "") {
				switch ($cstFutureStudents->BlockAccess->CurrentValue) {
					case "y":
						$cstFutureStudents->BlockAccess->ViewValue = "Yes";
						break;
					case "n":
						$cstFutureStudents->BlockAccess->ViewValue = "No";
						break;
					default:
						$cstFutureStudents->BlockAccess->ViewValue = $cstFutureStudents->BlockAccess->CurrentValue;
				}
			} else {
				$cstFutureStudents->BlockAccess->ViewValue = NULL;
			}
			$cstFutureStudents->BlockAccess->CssStyle = "";
			$cstFutureStudents->BlockAccess->CssClass = "";
			$cstFutureStudents->BlockAccess->ViewCustomAttributes = "";

			// Archived
			if (strval($cstFutureStudents->Archived->CurrentValue) <> "") {
				$cstFutureStudents->Archived->ViewValue = "";
				$arwrk = explode(",", strval($cstFutureStudents->Archived->CurrentValue));
				for ($ari = 0; $ari < count($arwrk); $ari++) {
					switch (trim($arwrk[$ari])) {
						case "1":
							$cstFutureStudents->Archived->ViewValue .= "Yes";
							break;
						default:
							$cstFutureStudents->Archived->ViewValue .= trim($arwrk[$ari]);
					}
					if ($ari < count($arwrk)-1) $cstFutureStudents->Archived->ViewValue .= ew_ViewOptionSeparator($ari);
				}
			} else {
				$cstFutureStudents->Archived->ViewValue = NULL;
			}
			$cstFutureStudents->Archived->CssStyle = "";
			$cstFutureStudents->Archived->CssClass = "";
			$cstFutureStudents->Archived->ViewCustomAttributes = "";

			// MentorFirstName
			$cstFutureStudents->MentorFirstName->ViewValue = $cstFutureStudents->MentorFirstName->CurrentValue;
			$cstFutureStudents->MentorFirstName->CssStyle = "";
			$cstFutureStudents->MentorFirstName->CssClass = "";
			$cstFutureStudents->MentorFirstName->ViewCustomAttributes = "";

			// MentorSurname
			$cstFutureStudents->MentorSurname->ViewValue = $cstFutureStudents->MentorSurname->CurrentValue;
			$cstFutureStudents->MentorSurname->CssStyle = "";
			$cstFutureStudents->MentorSurname->CssClass = "";
			$cstFutureStudents->MentorSurname->ViewCustomAttributes = "";

			// Title
			$cstFutureStudents->Title->HrefValue = "";
			$cstFutureStudents->Title->TooltipValue = "";

			// FirstName
			$cstFutureStudents->FirstName->HrefValue = "";
			$cstFutureStudents->FirstName->TooltipValue = "";

			// Surname
			$cstFutureStudents->Surname->HrefValue = "";
			$cstFutureStudents->Surname->TooltipValue = "";

			// KnownAs
			$cstFutureStudents->KnownAs->HrefValue = "";
			$cstFutureStudents->KnownAs->TooltipValue = "";

			// Organisation
			$cstFutureStudents->Organisation->HrefValue = "";
			$cstFutureStudents->Organisation->TooltipValue = "";

			// OrganisationType
			$cstFutureStudents->OrganisationType->HrefValue = "";
			$cstFutureStudents->OrganisationType->TooltipValue = "";

			// LengthEmploy
			$cstFutureStudents->LengthEmploy->HrefValue = "";
			$cstFutureStudents->LengthEmploy->TooltipValue = "";

			// OtherCEFirms
			$cstFutureStudents->OtherCEFirms->HrefValue = "";
			$cstFutureStudents->OtherCEFirms->TooltipValue = "";

			// StudentNumber
			$cstFutureStudents->StudentNumber->HrefValue = "";
			$cstFutureStudents->StudentNumber->TooltipValue = "";

			// CCEFacilitatorID
			$cstFutureStudents->CCEFacilitatorID->HrefValue = "";
			$cstFutureStudents->CCEFacilitatorID->TooltipValue = "";

			// Project
			$cstFutureStudents->Project->HrefValue = "";
			$cstFutureStudents->Project->TooltipValue = "";

			// ProjectDiscipline
			$cstFutureStudents->ProjectDiscipline->HrefValue = "";
			$cstFutureStudents->ProjectDiscipline->TooltipValue = "";

			// IDNumber
			$cstFutureStudents->IDNumber->HrefValue = "";
			$cstFutureStudents->IDNumber->TooltipValue = "";

			// ECSARegistered
			$cstFutureStudents->ECSARegistered->HrefValue = "";
			$cstFutureStudents->ECSARegistered->TooltipValue = "";

			// ECSACategory
			$cstFutureStudents->ECSACategory->HrefValue = "";
			$cstFutureStudents->ECSACategory->TooltipValue = "";

			// ECSANumber
			$cstFutureStudents->ECSANumber->HrefValue = "";
			$cstFutureStudents->ECSANumber->TooltipValue = "";

			// OtherStatutoryBodyRegistered
			$cstFutureStudents->OtherStatutoryBodyRegistered->HrefValue = "";
			$cstFutureStudents->OtherStatutoryBodyRegistered->TooltipValue = "";

			// OtherStatutoryBodyName
			$cstFutureStudents->OtherStatutoryBodyName->HrefValue = "";
			$cstFutureStudents->OtherStatutoryBodyName->TooltipValue = "";

			// OtherStatutoryBodyNumber
			$cstFutureStudents->OtherStatutoryBodyNumber->HrefValue = "";
			$cstFutureStudents->OtherStatutoryBodyNumber->TooltipValue = "";

			// Age
			$cstFutureStudents->Age->HrefValue = "";
			$cstFutureStudents->Age->TooltipValue = "";

			// HighestQual
			$cstFutureStudents->HighestQual->HrefValue = "";
			$cstFutureStudents->HighestQual->TooltipValue = "";

			// AreaDiscipline
			$cstFutureStudents->AreaDiscipline->HrefValue = "";
			$cstFutureStudents->AreaDiscipline->TooltipValue = "";

			// Telephone
			$cstFutureStudents->Telephone->HrefValue = "";
			$cstFutureStudents->Telephone->TooltipValue = "";

			// Cellphone
			$cstFutureStudents->Cellphone->HrefValue = "";
			$cstFutureStudents->Cellphone->TooltipValue = "";

			// EmailAddress
			$cstFutureStudents->EmailAddress->HrefValue = "";
			$cstFutureStudents->EmailAddress->TooltipValue = "";

			// HomeAddress
			$cstFutureStudents->HomeAddress->HrefValue = "";
			$cstFutureStudents->HomeAddress->TooltipValue = "";

			// WorkAddress
			$cstFutureStudents->WorkAddress->HrefValue = "";
			$cstFutureStudents->WorkAddress->TooltipValue = "";

			// PostalAddress
			$cstFutureStudents->PostalAddress->HrefValue = "";
			$cstFutureStudents->PostalAddress->TooltipValue = "";

			// Designation
			$cstFutureStudents->Designation->HrefValue = "";
			$cstFutureStudents->Designation->TooltipValue = "";

			// Department
			$cstFutureStudents->Department->HrefValue = "";
			$cstFutureStudents->Department->TooltipValue = "";

			// CESAMemberFirm
			$cstFutureStudents->CESAMemberFirm->HrefValue = "";
			$cstFutureStudents->CESAMemberFirm->TooltipValue = "";

			// CESAAccountNo
			$cstFutureStudents->CESAAccountNo->HrefValue = "";
			$cstFutureStudents->CESAAccountNo->TooltipValue = "";

			// VATNo
			$cstFutureStudents->VATNo->HrefValue = "";
			$cstFutureStudents->VATNo->TooltipValue = "";

			// DietaryRequirements
			$cstFutureStudents->DietaryRequirements->HrefValue = "";
			$cstFutureStudents->DietaryRequirements->TooltipValue = "";

			// IDFile
			if (!ew_Empty($cstFutureStudents->IDFile->Upload->DbValue)) {
				$cstFutureStudents->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstFutureStudents->IDFile->UploadPath) . ((!empty($cstFutureStudents->IDFile->ViewValue)) ? $cstFutureStudents->IDFile->ViewValue : $cstFutureStudents->IDFile->CurrentValue);
				if ($cstFutureStudents->Export <> "") $cstFutureStudents->IDFile->HrefValue = ew_ConvertFullUrl($cstFutureStudents->IDFile->HrefValue);
			} else {
				$cstFutureStudents->IDFile->HrefValue = "";
			}
			$cstFutureStudents->IDFile->TooltipValue = "";

			// CVFile
			if (!ew_Empty($cstFutureStudents->CVFile->Upload->DbValue)) {
				$cstFutureStudents->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstFutureStudents->CVFile->UploadPath) . ((!empty($cstFutureStudents->CVFile->ViewValue)) ? $cstFutureStudents->CVFile->ViewValue : $cstFutureStudents->CVFile->CurrentValue);
				if ($cstFutureStudents->Export <> "") $cstFutureStudents->CVFile->HrefValue = ew_ConvertFullUrl($cstFutureStudents->CVFile->HrefValue);
			} else {
				$cstFutureStudents->CVFile->HrefValue = "";
			}
			$cstFutureStudents->CVFile->TooltipValue = "";

			// QualCertificate1
			if (!ew_Empty($cstFutureStudents->QualCertificate1->Upload->DbValue)) {
				$cstFutureStudents->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstFutureStudents->QualCertificate1->UploadPath) . ((!empty($cstFutureStudents->QualCertificate1->ViewValue)) ? $cstFutureStudents->QualCertificate1->ViewValue : $cstFutureStudents->QualCertificate1->CurrentValue);
				if ($cstFutureStudents->Export <> "") $cstFutureStudents->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstFutureStudents->QualCertificate1->HrefValue);
			} else {
				$cstFutureStudents->QualCertificate1->HrefValue = "";
			}
			$cstFutureStudents->QualCertificate1->TooltipValue = "";

			// QualCertificate2
			if (!ew_Empty($cstFutureStudents->QualCertificate2->Upload->DbValue)) {
				$cstFutureStudents->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstFutureStudents->QualCertificate2->UploadPath) . ((!empty($cstFutureStudents->QualCertificate2->ViewValue)) ? $cstFutureStudents->QualCertificate2->ViewValue : $cstFutureStudents->QualCertificate2->CurrentValue);
				if ($cstFutureStudents->Export <> "") $cstFutureStudents->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstFutureStudents->QualCertificate2->HrefValue);
			} else {
				$cstFutureStudents->QualCertificate2->HrefValue = "";
			}
			$cstFutureStudents->QualCertificate2->TooltipValue = "";

			// QualCertificate3
			if (!ew_Empty($cstFutureStudents->QualCertificate3->Upload->DbValue)) {
				$cstFutureStudents->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstFutureStudents->QualCertificate3->UploadPath) . ((!empty($cstFutureStudents->QualCertificate3->ViewValue)) ? $cstFutureStudents->QualCertificate3->ViewValue : $cstFutureStudents->QualCertificate3->CurrentValue);
				if ($cstFutureStudents->Export <> "") $cstFutureStudents->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstFutureStudents->QualCertificate3->HrefValue);
			} else {
				$cstFutureStudents->QualCertificate3->HrefValue = "";
			}
			$cstFutureStudents->QualCertificate3->TooltipValue = "";

			// MemorandumFile
			if (!ew_Empty($cstFutureStudents->MemorandumFile->Upload->DbValue)) {
				$cstFutureStudents->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $cstFutureStudents->MemorandumFile->UploadPath) . ((!empty($cstFutureStudents->MemorandumFile->ViewValue)) ? $cstFutureStudents->MemorandumFile->ViewValue : $cstFutureStudents->MemorandumFile->CurrentValue);
				if ($cstFutureStudents->Export <> "") $cstFutureStudents->MemorandumFile->HrefValue = ew_ConvertFullUrl($cstFutureStudents->MemorandumFile->HrefValue);
			} else {
				$cstFutureStudents->MemorandumFile->HrefValue = "";
			}
			$cstFutureStudents->MemorandumFile->TooltipValue = "";

			// AgreementFile
			if (!ew_Empty($cstFutureStudents->AgreementFile->Upload->DbValue)) {
				$cstFutureStudents->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $cstFutureStudents->AgreementFile->UploadPath) . ((!empty($cstFutureStudents->AgreementFile->ViewValue)) ? $cstFutureStudents->AgreementFile->ViewValue : $cstFutureStudents->AgreementFile->CurrentValue);
				if ($cstFutureStudents->Export <> "") $cstFutureStudents->AgreementFile->HrefValue = ew_ConvertFullUrl($cstFutureStudents->AgreementFile->HrefValue);
			} else {
				$cstFutureStudents->AgreementFile->HrefValue = "";
			}
			$cstFutureStudents->AgreementFile->TooltipValue = "";

			// OrderNo
			$cstFutureStudents->OrderNo->HrefValue = "";
			$cstFutureStudents->OrderNo->TooltipValue = "";

			// BookedByName
			$cstFutureStudents->BookedByName->HrefValue = "";
			$cstFutureStudents->BookedByName->TooltipValue = "";

			// BookedByDesignation
			$cstFutureStudents->BookedByDesignation->HrefValue = "";
			$cstFutureStudents->BookedByDesignation->TooltipValue = "";

			// BookedByTelNo
			$cstFutureStudents->BookedByTelNo->HrefValue = "";
			$cstFutureStudents->BookedByTelNo->TooltipValue = "";

			// BookedByFaxNo
			$cstFutureStudents->BookedByFaxNo->HrefValue = "";
			$cstFutureStudents->BookedByFaxNo->TooltipValue = "";

			// BookedByCellNo
			$cstFutureStudents->BookedByCellNo->HrefValue = "";
			$cstFutureStudents->BookedByCellNo->TooltipValue = "";

			// BookedByEmail
			$cstFutureStudents->BookedByEmail->HrefValue = "";
			$cstFutureStudents->BookedByEmail->TooltipValue = "";

			// WebUsername
			$cstFutureStudents->WebUsername->HrefValue = "";
			$cstFutureStudents->WebUsername->TooltipValue = "";

			// WebPassword
			$cstFutureStudents->WebPassword->HrefValue = "";
			$cstFutureStudents->WebPassword->TooltipValue = "";

			// MentorDesig
			$cstFutureStudents->MentorDesig->HrefValue = "";
			$cstFutureStudents->MentorDesig->TooltipValue = "";

			// MentorTel
			$cstFutureStudents->MentorTel->HrefValue = "";
			$cstFutureStudents->MentorTel->TooltipValue = "";

			// MentorCell
			$cstFutureStudents->MentorCell->HrefValue = "";
			$cstFutureStudents->MentorCell->TooltipValue = "";

			// MentorEmail
			$cstFutureStudents->MentorEmail->HrefValue = "";
			$cstFutureStudents->MentorEmail->TooltipValue = "";

			// HRManagerName
			$cstFutureStudents->HRManagerName->HrefValue = "";
			$cstFutureStudents->HRManagerName->TooltipValue = "";

			// HRManagerDesignation
			$cstFutureStudents->HRManagerDesignation->HrefValue = "";
			$cstFutureStudents->HRManagerDesignation->TooltipValue = "";

			// HRManagerTelNo
			$cstFutureStudents->HRManagerTelNo->HrefValue = "";
			$cstFutureStudents->HRManagerTelNo->TooltipValue = "";

			// HRManagerCellNo
			$cstFutureStudents->HRManagerCellNo->HrefValue = "";
			$cstFutureStudents->HRManagerCellNo->TooltipValue = "";

			// HRManagerEmail
			$cstFutureStudents->HRManagerEmail->HrefValue = "";
			$cstFutureStudents->HRManagerEmail->TooltipValue = "";

			// BlockAccess
			$cstFutureStudents->BlockAccess->HrefValue = "";
			$cstFutureStudents->BlockAccess->TooltipValue = "";

			// Archived
			$cstFutureStudents->Archived->HrefValue = "";
			$cstFutureStudents->Archived->TooltipValue = "";

			// MentorFirstName
			$cstFutureStudents->MentorFirstName->HrefValue = "";
			$cstFutureStudents->MentorFirstName->TooltipValue = "";

			// MentorSurname
			$cstFutureStudents->MentorSurname->HrefValue = "";
			$cstFutureStudents->MentorSurname->TooltipValue = "";
		}

		// Call Row Rendered event
		if ($cstFutureStudents->RowType <> EW_ROWTYPE_AGGREGATEINIT)
			$cstFutureStudents->Row_Rendered();
	}

	// Export data in HTML/CSV/Word/Excel/XML/Email format
	function ExportData() {
		global $cstFutureStudents;
		$utf8 = FALSE;
		$bSelectLimit = FALSE;

		// Load recordset
		if ($bSelectLimit) {
			$this->lTotalRecs = $cstFutureStudents->SelectRecordCount();
		} else {
			if ($rs = $this->LoadRecordset())
				$this->lTotalRecs = $rs->RecordCount();
		}
		$this->lStartRec = 1;
		$this->SetUpStartRec(); // Set up start record position

		// Set the last record to display
		if ($this->lDisplayRecs < 0) {
			$this->lStopRec = $this->lTotalRecs;
		} else {
			$this->lStopRec = $this->lStartRec + $this->lDisplayRecs - 1;
		}
		if (!$rs) {
			header("Content-Type:"); // Remove header
			header("Content-Disposition:");
			$this->ShowMessage();
			return;
		}
		if ($cstFutureStudents->Export == "xml") {
			$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
			$XmlDoc->AddRoot();
		} else {
			$ExportDoc = new cExportDocument($cstFutureStudents, "v");
			$ExportDoc->ExportHeader();
			if ($ExportDoc->Horizontal) { // Horizontal format, write header
				$ExportDoc->BeginExportRow();
				$ExportDoc->ExportCaption($cstFutureStudents->Title);
				$ExportDoc->ExportCaption($cstFutureStudents->FirstName);
				$ExportDoc->ExportCaption($cstFutureStudents->Surname);
				$ExportDoc->ExportCaption($cstFutureStudents->KnownAs);
				$ExportDoc->ExportCaption($cstFutureStudents->Organisation);
				$ExportDoc->ExportCaption($cstFutureStudents->OrganisationType);
				$ExportDoc->ExportCaption($cstFutureStudents->LengthEmploy);
				$ExportDoc->ExportCaption($cstFutureStudents->StudentNumber);
				$ExportDoc->ExportCaption($cstFutureStudents->CCEFacilitatorID);
				$ExportDoc->ExportCaption($cstFutureStudents->Project);
				$ExportDoc->ExportCaption($cstFutureStudents->ProjectDiscipline);
				$ExportDoc->ExportCaption($cstFutureStudents->IDNumber);
				$ExportDoc->ExportCaption($cstFutureStudents->ECSARegistered);
				$ExportDoc->ExportCaption($cstFutureStudents->ECSACategory);
				$ExportDoc->ExportCaption($cstFutureStudents->ECSANumber);
				$ExportDoc->ExportCaption($cstFutureStudents->OtherStatutoryBodyRegistered);
				$ExportDoc->ExportCaption($cstFutureStudents->OtherStatutoryBodyName);
				$ExportDoc->ExportCaption($cstFutureStudents->OtherStatutoryBodyNumber);
				$ExportDoc->ExportCaption($cstFutureStudents->Age);
				$ExportDoc->ExportCaption($cstFutureStudents->HighestQual);
				$ExportDoc->ExportCaption($cstFutureStudents->AreaDiscipline);
				$ExportDoc->ExportCaption($cstFutureStudents->Telephone);
				$ExportDoc->ExportCaption($cstFutureStudents->Cellphone);
				$ExportDoc->ExportCaption($cstFutureStudents->EmailAddress);
				$ExportDoc->ExportCaption($cstFutureStudents->HomeAddress);
				$ExportDoc->ExportCaption($cstFutureStudents->WorkAddress);
				$ExportDoc->ExportCaption($cstFutureStudents->PostalAddress);
				$ExportDoc->ExportCaption($cstFutureStudents->Designation);
				$ExportDoc->ExportCaption($cstFutureStudents->Department);
				$ExportDoc->ExportCaption($cstFutureStudents->CESAMemberFirm);
				$ExportDoc->ExportCaption($cstFutureStudents->CESAAccountNo);
				$ExportDoc->ExportCaption($cstFutureStudents->VATNo);
				$ExportDoc->ExportCaption($cstFutureStudents->DietaryRequirements);
				$ExportDoc->ExportCaption($cstFutureStudents->IDFile);
				$ExportDoc->ExportCaption($cstFutureStudents->CVFile);
				$ExportDoc->ExportCaption($cstFutureStudents->QualCertificate1);
				$ExportDoc->ExportCaption($cstFutureStudents->QualCertificate2);
				$ExportDoc->ExportCaption($cstFutureStudents->QualCertificate3);
				$ExportDoc->ExportCaption($cstFutureStudents->MemorandumFile);
				$ExportDoc->ExportCaption($cstFutureStudents->AgreementFile);
				$ExportDoc->ExportCaption($cstFutureStudents->OrderNo);
				$ExportDoc->ExportCaption($cstFutureStudents->BookedByName);
				$ExportDoc->ExportCaption($cstFutureStudents->BookedByDesignation);
				$ExportDoc->ExportCaption($cstFutureStudents->BookedByTelNo);
				$ExportDoc->ExportCaption($cstFutureStudents->BookedByFaxNo);
				$ExportDoc->ExportCaption($cstFutureStudents->BookedByCellNo);
				$ExportDoc->ExportCaption($cstFutureStudents->BookedByEmail);
				$ExportDoc->ExportCaption($cstFutureStudents->WebUsername);
				$ExportDoc->ExportCaption($cstFutureStudents->WebPassword);
				$ExportDoc->ExportCaption($cstFutureStudents->MentorDesig);
				$ExportDoc->ExportCaption($cstFutureStudents->MentorTel);
				$ExportDoc->ExportCaption($cstFutureStudents->MentorCell);
				$ExportDoc->ExportCaption($cstFutureStudents->MentorEmail);
				$ExportDoc->ExportCaption($cstFutureStudents->HRManagerName);
				$ExportDoc->ExportCaption($cstFutureStudents->HRManagerDesignation);
				$ExportDoc->ExportCaption($cstFutureStudents->HRManagerTelNo);
				$ExportDoc->ExportCaption($cstFutureStudents->HRManagerCellNo);
				$ExportDoc->ExportCaption($cstFutureStudents->HRManagerEmail);
				$ExportDoc->ExportCaption($cstFutureStudents->BlockAccess);
				$ExportDoc->ExportCaption($cstFutureStudents->Archived);
				$ExportDoc->ExportCaption($cstFutureStudents->MentorFirstName);
				$ExportDoc->ExportCaption($cstFutureStudents->MentorSurname);
				$ExportDoc->EndExportRow();
			}
		}

		// Move to first record
		$this->lRecCnt = $this->lStartRec - 1;
		if (!$rs->EOF) {
			$rs->MoveFirst();
			if (!$bSelectLimit && $this->lStartRec > 1)
				$rs->Move($this->lStartRec - 1);
		}
		while (!$rs->EOF && $this->lRecCnt < $this->lStopRec) {
			$this->lRecCnt++;
			if (intval($this->lRecCnt) >= intval($this->lStartRec)) {
				$this->LoadRowValues($rs);

				// Render row
				$cstFutureStudents->CssClass = "";
				$cstFutureStudents->CssStyle = "";
				$cstFutureStudents->RowType = EW_ROWTYPE_VIEW; // Render view
				$this->RenderRow();
				if ($cstFutureStudents->Export == "xml") {
					$XmlDoc->AddRow();
					$XmlDoc->AddField('Title', $cstFutureStudents->Title->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('FirstName', $cstFutureStudents->FirstName->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('Surname', $cstFutureStudents->Surname->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('KnownAs', $cstFutureStudents->KnownAs->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('Organisation', $cstFutureStudents->Organisation->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('OrganisationType', $cstFutureStudents->OrganisationType->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('LengthEmploy', $cstFutureStudents->LengthEmploy->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('StudentNumber', $cstFutureStudents->StudentNumber->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('CCEFacilitatorID', $cstFutureStudents->CCEFacilitatorID->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('Project', $cstFutureStudents->Project->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('ProjectDiscipline', $cstFutureStudents->ProjectDiscipline->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('IDNumber', $cstFutureStudents->IDNumber->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('ECSARegistered', $cstFutureStudents->ECSARegistered->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('ECSACategory', $cstFutureStudents->ECSACategory->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('ECSANumber', $cstFutureStudents->ECSANumber->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('OtherStatutoryBodyRegistered', $cstFutureStudents->OtherStatutoryBodyRegistered->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('OtherStatutoryBodyName', $cstFutureStudents->OtherStatutoryBodyName->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('OtherStatutoryBodyNumber', $cstFutureStudents->OtherStatutoryBodyNumber->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('Age', $cstFutureStudents->Age->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('HighestQual', $cstFutureStudents->HighestQual->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('AreaDiscipline', $cstFutureStudents->AreaDiscipline->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('Telephone', $cstFutureStudents->Telephone->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('Cellphone', $cstFutureStudents->Cellphone->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('EmailAddress', $cstFutureStudents->EmailAddress->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('HomeAddress', $cstFutureStudents->HomeAddress->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('WorkAddress', $cstFutureStudents->WorkAddress->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('PostalAddress', $cstFutureStudents->PostalAddress->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('Designation', $cstFutureStudents->Designation->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('Department', $cstFutureStudents->Department->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('CESAMemberFirm', $cstFutureStudents->CESAMemberFirm->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('CESAAccountNo', $cstFutureStudents->CESAAccountNo->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('VATNo', $cstFutureStudents->VATNo->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('DietaryRequirements', $cstFutureStudents->DietaryRequirements->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('IDFile', $cstFutureStudents->IDFile->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('CVFile', $cstFutureStudents->CVFile->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('QualCertificate1', $cstFutureStudents->QualCertificate1->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('QualCertificate2', $cstFutureStudents->QualCertificate2->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('QualCertificate3', $cstFutureStudents->QualCertificate3->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('MemorandumFile', $cstFutureStudents->MemorandumFile->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('AgreementFile', $cstFutureStudents->AgreementFile->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('OrderNo', $cstFutureStudents->OrderNo->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByName', $cstFutureStudents->BookedByName->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByDesignation', $cstFutureStudents->BookedByDesignation->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByTelNo', $cstFutureStudents->BookedByTelNo->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByFaxNo', $cstFutureStudents->BookedByFaxNo->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByCellNo', $cstFutureStudents->BookedByCellNo->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByEmail', $cstFutureStudents->BookedByEmail->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('WebUsername', $cstFutureStudents->WebUsername->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('WebPassword', $cstFutureStudents->WebPassword->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('MentorDesig', $cstFutureStudents->MentorDesig->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('MentorTel', $cstFutureStudents->MentorTel->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('MentorCell', $cstFutureStudents->MentorCell->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('MentorEmail', $cstFutureStudents->MentorEmail->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerName', $cstFutureStudents->HRManagerName->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerDesignation', $cstFutureStudents->HRManagerDesignation->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerTelNo', $cstFutureStudents->HRManagerTelNo->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerCellNo', $cstFutureStudents->HRManagerCellNo->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerEmail', $cstFutureStudents->HRManagerEmail->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('BlockAccess', $cstFutureStudents->BlockAccess->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('Archived', $cstFutureStudents->Archived->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('MentorFirstName', $cstFutureStudents->MentorFirstName->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
					$XmlDoc->AddField('MentorSurname', $cstFutureStudents->MentorSurname->ExportValue($cstFutureStudents->Export, $cstFutureStudents->ExportOriginalValue));
				} else {
					$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
					$ExportDoc->ExportField($cstFutureStudents->Title);
					$ExportDoc->ExportField($cstFutureStudents->FirstName);
					$ExportDoc->ExportField($cstFutureStudents->Surname);
					$ExportDoc->ExportField($cstFutureStudents->KnownAs);
					$ExportDoc->ExportField($cstFutureStudents->Organisation);
					$ExportDoc->ExportField($cstFutureStudents->OrganisationType);
					$ExportDoc->ExportField($cstFutureStudents->LengthEmploy);
					$ExportDoc->ExportField($cstFutureStudents->StudentNumber);
					$ExportDoc->ExportField($cstFutureStudents->CCEFacilitatorID);
					$ExportDoc->ExportField($cstFutureStudents->Project);
					$ExportDoc->ExportField($cstFutureStudents->ProjectDiscipline);
					$ExportDoc->ExportField($cstFutureStudents->IDNumber);
					$ExportDoc->ExportField($cstFutureStudents->ECSARegistered);
					$ExportDoc->ExportField($cstFutureStudents->ECSACategory);
					$ExportDoc->ExportField($cstFutureStudents->ECSANumber);
					$ExportDoc->ExportField($cstFutureStudents->OtherStatutoryBodyRegistered);
					$ExportDoc->ExportField($cstFutureStudents->OtherStatutoryBodyName);
					$ExportDoc->ExportField($cstFutureStudents->OtherStatutoryBodyNumber);
					$ExportDoc->ExportField($cstFutureStudents->Age);
					$ExportDoc->ExportField($cstFutureStudents->HighestQual);
					$ExportDoc->ExportField($cstFutureStudents->AreaDiscipline);
					$ExportDoc->ExportField($cstFutureStudents->Telephone);
					$ExportDoc->ExportField($cstFutureStudents->Cellphone);
					$ExportDoc->ExportField($cstFutureStudents->EmailAddress);
					$ExportDoc->ExportField($cstFutureStudents->HomeAddress);
					$ExportDoc->ExportField($cstFutureStudents->WorkAddress);
					$ExportDoc->ExportField($cstFutureStudents->PostalAddress);
					$ExportDoc->ExportField($cstFutureStudents->Designation);
					$ExportDoc->ExportField($cstFutureStudents->Department);
					$ExportDoc->ExportField($cstFutureStudents->CESAMemberFirm);
					$ExportDoc->ExportField($cstFutureStudents->CESAAccountNo);
					$ExportDoc->ExportField($cstFutureStudents->VATNo);
					$ExportDoc->ExportField($cstFutureStudents->DietaryRequirements);
					$ExportDoc->ExportField($cstFutureStudents->IDFile);
					$ExportDoc->ExportField($cstFutureStudents->CVFile);
					$ExportDoc->ExportField($cstFutureStudents->QualCertificate1);
					$ExportDoc->ExportField($cstFutureStudents->QualCertificate2);
					$ExportDoc->ExportField($cstFutureStudents->QualCertificate3);
					$ExportDoc->ExportField($cstFutureStudents->MemorandumFile);
					$ExportDoc->ExportField($cstFutureStudents->AgreementFile);
					$ExportDoc->ExportField($cstFutureStudents->OrderNo);
					$ExportDoc->ExportField($cstFutureStudents->BookedByName);
					$ExportDoc->ExportField($cstFutureStudents->BookedByDesignation);
					$ExportDoc->ExportField($cstFutureStudents->BookedByTelNo);
					$ExportDoc->ExportField($cstFutureStudents->BookedByFaxNo);
					$ExportDoc->ExportField($cstFutureStudents->BookedByCellNo);
					$ExportDoc->ExportField($cstFutureStudents->BookedByEmail);
					$ExportDoc->ExportField($cstFutureStudents->WebUsername);
					$ExportDoc->ExportField($cstFutureStudents->WebPassword);
					$ExportDoc->ExportField($cstFutureStudents->MentorDesig);
					$ExportDoc->ExportField($cstFutureStudents->MentorTel);
					$ExportDoc->ExportField($cstFutureStudents->MentorCell);
					$ExportDoc->ExportField($cstFutureStudents->MentorEmail);
					$ExportDoc->ExportField($cstFutureStudents->HRManagerName);
					$ExportDoc->ExportField($cstFutureStudents->HRManagerDesignation);
					$ExportDoc->ExportField($cstFutureStudents->HRManagerTelNo);
					$ExportDoc->ExportField($cstFutureStudents->HRManagerCellNo);
					$ExportDoc->ExportField($cstFutureStudents->HRManagerEmail);
					$ExportDoc->ExportField($cstFutureStudents->BlockAccess);
					$ExportDoc->ExportField($cstFutureStudents->Archived);
					$ExportDoc->ExportField($cstFutureStudents->MentorFirstName);
					$ExportDoc->ExportField($cstFutureStudents->MentorSurname);
					$ExportDoc->EndExportRow();
				}
			}
			$rs->MoveNext();
		}
		if ($cstFutureStudents->Export <> "xml")
			$ExportDoc->ExportFooter();

		// Close recordset
		$rs->Close();

		// Clean output buffer
		if (!EW_DEBUG_ENABLED && ob_get_length())
			ob_end_clean();

		// Write BOM if utf-8
		if ($utf8 && !in_array($cstFutureStudents->Export, array("email", "xml")))
			echo "\xEF\xBB\xBF";

		// Write debug message if enabled
		if (EW_DEBUG_ENABLED)
			echo ew_DebugMsg();

		// Output data
		if ($cstFutureStudents->Export == "xml") {
			header("Content-Type: text/xml");
			echo $XmlDoc->XML();
		} elseif ($cstFutureStudents->Export == "email") {
			$this->ExportEmail($ExportDoc->Text);
			$this->Page_Terminate($cstFutureStudents->ExportReturnUrl());
		} else {
			echo $ExportDoc->Text;
		}
	}

	// Export email
	function ExportEmail($EmailContent) {
		global $Language, $cstFutureStudents;
		$sSender = @$_GET["sender"];
		$sRecipient = @$_GET["recipient"];
		$sCc = @$_GET["cc"];
		$sBcc = @$_GET["bcc"];
		$sContentType = @$_GET["contenttype"];

		// Subject
		$sSubject = ew_StripSlashes(@$_GET["subject"]);
		$sEmailSubject = $sSubject;

		// Message
		$sContent = ew_StripSlashes(@$_GET["message"]);
		$sEmailMessage = $sContent;

		// Check sender
		if ($sSender == "") {
			$this->setMessage($Language->Phrase("EnterSenderEmail"));
			return;
		}
		if (!ew_CheckEmail($sSender)) {
			$this->setMessage($Language->Phrase("EnterProperSenderEmail"));
			return;
		}

		// Check recipient
		if (!ew_CheckEmailList($sRecipient, EW_MAX_EMAIL_RECIPIENT)) {
			$this->setMessage($Language->Phrase("EnterProperRecipientEmail"));
			return;
		}

		// Check cc
		if (!ew_CheckEmailList($sCc, EW_MAX_EMAIL_RECIPIENT)) {
			$this->setMessage($Language->Phrase("EnterProperCcEmail"));
			return;
		}

		// Check bcc
		if (!ew_CheckEmailList($sBcc, EW_MAX_EMAIL_RECIPIENT)) {
			$this->setMessage($Language->Phrase("EnterProperBccEmail"));
			return;
		}

		// Check email sent count
		if (!isset($_SESSION[EW_EXPORT_EMAIL_COUNTER]))
			$_SESSION[EW_EXPORT_EMAIL_COUNTER] = 0;
		if (intval($_SESSION[EW_EXPORT_EMAIL_COUNTER]) > EW_MAX_EMAIL_SENT_COUNT) {
			$this->setMessage($Language->Phrase("ExceedMaxEmailExport"));
			return;
		}
		if ($sEmailMessage <> "") {
			$sEmailMessage = ew_RemoveXSS($sEmailMessage);
			$sEmailMessage .= ($sContentType == "url") ? "\r\n\r\n" : "<br><br>";
		}
		if ($sContentType == "url") {
			$sUrl = ew_ConvertFullUrl(ew_CurrentPage() . "?" . $this->ExportQueryString());
			$sEmailMessage .= $sUrl; // send URL only
		} else {
			$sEmailMessage .= $EmailContent; // send HTML
		}

		// Send email
		$Email = new cEmail();
		$Email->Sender = $sSender; // Sender
		$Email->Recipient = $sRecipient; // Recipient
		$Email->Cc = $sCc; // Cc
		$Email->Bcc = $sBcc; // Bcc
		$Email->Subject = $sEmailSubject; // Subject
		$Email->Content = $sEmailMessage; // Content
		$Email->Format = ($sContentType == "url") ? "text" : "html";
		$Email->Charset = EW_EMAIL_CHARSET;
		$EventArgs = array();
		$bEmailSent = FALSE;
		if ($cstFutureStudents->Email_Sending($Email, $EventArgs))
			$bEmailSent = $Email->Send();

		// Check email sent status
		if ($bEmailSent) {

			// Update email sent count
			$_SESSION[EW_EXPORT_EMAIL_COUNTER]++;

			// Sent email success
			$this->setMessage($Language->Phrase("SendEmailSuccess"));
		} else {

			// Sent email failure
			$this->setMessage($Email->SendErrDescription);
		}
	}

	// Export QueryString
	function ExportQueryString() {
		global $cstFutureStudents;

		// Initialize
		$sQry = "export=html";

		// Add record key QueryString
		$sQry .= "&" . substr($cstFutureStudents->KeyUrl("", ""), 1);
		return $sQry;
	}

	// Page Load event
	function Page_Load() {

		//echo "Page Load";
	}

	// Page Unload event
	function Page_Unload() {

		//echo "Page Unload";
	}

	// Page Redirecting event
	function Page_Redirecting(&$url) {

		// Example:
		//$url = "your URL";

	}

	// Message Showing event
	function Message_Showing(&$msg) {

		// Example:
		//$msg = "your new message";

	}
}
?>