Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/cceadmin/
Upload File :
Current File : /var/www/cesa.co.za/cceadmin/cstArchivedStudents2016view.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 "cstArchivedStudents2016info.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
$cstArchivedStudents2016_view = new ccstArchivedStudents2016_view();
$Page =& $cstArchivedStudents2016_view;

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

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

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

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

// extend page with Form_CustomValidate function
cstArchivedStudents2016_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) { ?>
cstArchivedStudents2016_view.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudents2016_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 $cstArchivedStudents2016->TableCaption() ?>
<?php if ($cstArchivedStudents2016->Export == "") { ?>
&nbsp;&nbsp;<a href="<?php echo $cstArchivedStudents2016_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 $cstArchivedStudents2016_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 $cstArchivedStudents2016_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_cstArchivedStudents2016" id="emf_cstArchivedStudents2016" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_cstArchivedStudents2016',hdr:ewLanguage.Phrase('ExportToEmail'),key:<?php echo ew_ArrayToJsonAttr($cstArchivedStudents2016_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 ($cstArchivedStudents2016->Export == "") { ?>
<a href="<?php echo $cstArchivedStudents2016_view->ListUrl ?>"><?php echo $Language->Phrase("BackToList") ?></a>&nbsp;
<?php if ($Security->CanEdit()) { ?>
<a href="<?php echo $cstArchivedStudents2016_view->EditUrl ?>"><?php echo $Language->Phrase("ViewPageEditLink") ?></a>&nbsp;
<?php } ?>
<?php if ($Security->AllowList('CCEStudentAssignments')) { ?>
<a href="CCEStudentAssignmentslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=cstArchivedStudents2016&CCEStudentID=<?php echo urlencode(strval($cstArchivedStudents2016->CCEStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCEStudentAssignments", "TblCaption") ?>
</a>
&nbsp;
<?php } ?>
<?php } ?>
</span></p>
<?php
if (EW_DEBUG_ENABLED)
	echo ew_DebugMsg();
$cstArchivedStudents2016_view->ShowMessage();
?>
<p>
<?php if ($cstArchivedStudents2016->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($cstArchivedStudents2016_view->Pager)) $cstArchivedStudents2016_view->Pager = new cPrevNextPager($cstArchivedStudents2016_view->lStartRec, $cstArchivedStudents2016_view->lDisplayRecs, $cstArchivedStudents2016_view->lTotalRecs) ?>
<?php if ($cstArchivedStudents2016_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 ($cstArchivedStudents2016_view->Pager->FirstButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2016_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2016_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 ($cstArchivedStudents2016_view->Pager->PrevButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2016_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2016_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 $cstArchivedStudents2016_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
	<?php if ($cstArchivedStudents2016_view->Pager->NextButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2016_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2016_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 ($cstArchivedStudents2016_view->Pager->LastButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2016_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2016_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 $cstArchivedStudents2016_view->Pager->PageCount ?></span></td>
	</tr></table>
<?php } else { ?>
	<?php if ($Security->CanList()) { ?>
	<?php if ($cstArchivedStudents2016_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 ($cstArchivedStudents2016->Title->Visible) { // Title ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Title->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Title->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Title->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Title->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->FirstName->Visible) { // FirstName ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->FirstName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->FirstName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->FirstName->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->FirstName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Surname->Visible) { // Surname ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Surname->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Surname->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Surname->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Surname->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->KnownAs->Visible) { // KnownAs ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->KnownAs->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->KnownAs->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->KnownAs->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->KnownAs->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Organisation->Visible) { // Organisation ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Organisation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Organisation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Organisation->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Organisation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->OrganisationType->Visible) { // OrganisationType ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->OrganisationType->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->OrganisationType->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->OrganisationType->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->OrganisationType->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->StudentNumber->Visible) { // StudentNumber ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->StudentNumber->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->StudentNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->StudentNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->StudentNumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->CCEFacilitatorID->Visible) { // CCEFacilitatorID ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->CCEFacilitatorID->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->CCEFacilitatorID->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->CCEFacilitatorID->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->CCEFacilitatorID->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Project->Visible) { // Project ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Project->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Project->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Project->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Project->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->ProjectDiscipline->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->ProjectDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->ProjectDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->ProjectDiscipline->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->IDNumber->Visible) { // IDNumber ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->IDNumber->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->IDNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->IDNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->IDNumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->ECSANumber->Visible) { // ECSANumber ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->ECSANumber->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->ECSANumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->ECSANumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->ECSANumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Age->Visible) { // Age ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Age->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Age->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Age->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Age->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->HighestQual->Visible) { // HighestQual ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->HighestQual->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->HighestQual->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->HighestQual->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->HighestQual->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->AreaDiscipline->Visible) { // AreaDiscipline ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->AreaDiscipline->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->AreaDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->AreaDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->AreaDiscipline->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Telephone->Visible) { // Telephone ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Telephone->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Telephone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Telephone->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Telephone->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Cellphone->Visible) { // Cellphone ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Cellphone->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Cellphone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Cellphone->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Cellphone->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->EmailAddress->Visible) { // EmailAddress ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->EmailAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->EmailAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->EmailAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->EmailAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->HomeAddress->Visible) { // HomeAddress ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->HomeAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->HomeAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->HomeAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->HomeAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->WorkAddress->Visible) { // WorkAddress ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->WorkAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->WorkAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->WorkAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->WorkAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->PostalAddress->Visible) { // PostalAddress ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->PostalAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->PostalAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->PostalAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->PostalAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Designation->Visible) { // Designation ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Designation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Designation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Designation->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Designation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Department->Visible) { // Department ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Department->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Department->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Department->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Department->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->CESAAccountNo->Visible) { // CESAAccountNo ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->CESAAccountNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->CESAAccountNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->CESAAccountNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->CESAAccountNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->VATNo->Visible) { // VATNo ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->VATNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->VATNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->VATNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->VATNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->DietaryRequirements->Visible) { // DietaryRequirements ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->DietaryRequirements->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->DietaryRequirements->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->DietaryRequirements->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->DietaryRequirements->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->CVFile->Visible) { // CVFile ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->CVFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->CVFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2016->CVFile->HrefValue <> "" || $cstArchivedStudents2016->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2016->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2016->CVFile->HrefValue ?>"><?php echo $cstArchivedStudents2016->CVFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2016->CVFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2016->CVFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->QualCertificate1->Visible) { // QualCertificate1 ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->QualCertificate1->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->QualCertificate1->CellAttributes() ?>>
<?php if ($cstArchivedStudents2016->QualCertificate1->HrefValue <> "" || $cstArchivedStudents2016->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2016->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2016->QualCertificate1->HrefValue ?>"><?php echo $cstArchivedStudents2016->QualCertificate1->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2016->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2016->QualCertificate1->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->QualCertificate2->Visible) { // QualCertificate2 ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->QualCertificate2->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->QualCertificate2->CellAttributes() ?>>
<?php if ($cstArchivedStudents2016->QualCertificate2->HrefValue <> "" || $cstArchivedStudents2016->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2016->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2016->QualCertificate2->HrefValue ?>"><?php echo $cstArchivedStudents2016->QualCertificate2->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2016->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2016->QualCertificate2->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->QualCertificate3->Visible) { // QualCertificate3 ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->QualCertificate3->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->QualCertificate3->CellAttributes() ?>>
<?php if ($cstArchivedStudents2016->QualCertificate3->HrefValue <> "" || $cstArchivedStudents2016->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2016->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2016->QualCertificate3->HrefValue ?>"><?php echo $cstArchivedStudents2016->QualCertificate3->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2016->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2016->QualCertificate3->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->MemorandumFile->Visible) { // MemorandumFile ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->MemorandumFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->MemorandumFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2016->MemorandumFile->HrefValue <> "" || $cstArchivedStudents2016->MemorandumFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2016->MemorandumFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2016->MemorandumFile->HrefValue ?>"><?php echo $cstArchivedStudents2016->MemorandumFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2016->MemorandumFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2016->MemorandumFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->AgreementFile->Visible) { // AgreementFile ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->AgreementFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->AgreementFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2016->AgreementFile->HrefValue <> "" || $cstArchivedStudents2016->AgreementFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2016->AgreementFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2016->AgreementFile->HrefValue ?>"><?php echo $cstArchivedStudents2016->AgreementFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2016->AgreementFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2016->AgreementFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->OrderNo->Visible) { // OrderNo ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->OrderNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->OrderNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->OrderNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->OrderNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->BookedByName->Visible) { // BookedByName ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->BookedByName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->BookedByName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->BookedByName->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->BookedByName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->BookedByDesignation->Visible) { // BookedByDesignation ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->BookedByDesignation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->BookedByDesignation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->BookedByDesignation->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->BookedByDesignation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->BookedByTelNo->Visible) { // BookedByTelNo ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->BookedByTelNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->BookedByTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->BookedByTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->BookedByTelNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->BookedByFaxNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->BookedByFaxNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->BookedByFaxNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->BookedByFaxNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->BookedByCellNo->Visible) { // BookedByCellNo ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->BookedByCellNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->BookedByCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->BookedByCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->BookedByCellNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->BookedByEmail->Visible) { // BookedByEmail ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->BookedByEmail->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->BookedByEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->BookedByEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->BookedByEmail->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->WebUsername->Visible) { // WebUsername ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->WebUsername->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->WebUsername->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->WebUsername->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->WebUsername->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->WebPassword->Visible) { // WebPassword ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->WebPassword->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->WebPassword->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->WebPassword->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->WebPassword->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->MentorName->Visible) { // MentorName ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->MentorName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->MentorName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->MentorName->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->MentorName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->MentorDesig->Visible) { // MentorDesig ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->MentorDesig->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->MentorDesig->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->MentorDesig->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->MentorDesig->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->MentorTel->Visible) { // MentorTel ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->MentorTel->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->MentorTel->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->MentorTel->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->MentorTel->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->MentorCell->Visible) { // MentorCell ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->MentorCell->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->MentorCell->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->MentorCell->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->MentorCell->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->MentorEmail->Visible) { // MentorEmail ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->MentorEmail->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->MentorEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->MentorEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->MentorEmail->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->HRManagerName->Visible) { // HRManagerName ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->HRManagerName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->HRManagerName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->HRManagerName->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->HRManagerName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->HRManagerDesignation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->HRManagerDesignation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->HRManagerDesignation->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->HRManagerDesignation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->HRManagerTelNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->HRManagerTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->HRManagerTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->HRManagerTelNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->HRManagerCellNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->HRManagerCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->HRManagerCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->HRManagerCellNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->HRManagerEmail->Visible) { // HRManagerEmail ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->HRManagerEmail->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->HRManagerEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->HRManagerEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->HRManagerEmail->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->LengthEmploy->Visible) { // LengthEmploy ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->LengthEmploy->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->LengthEmploy->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->LengthEmploy->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->LengthEmploy->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->BlockAccess->Visible) { // BlockAccess ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->BlockAccess->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->BlockAccess->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->BlockAccess->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->BlockAccess->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Archived->Visible) { // Archived ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Archived->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Archived->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Archived->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Archived->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->ResultLetter->Visible) { // ResultLetter ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->ResultLetter->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->ResultLetter->CellAttributes() ?>>
<?php if ($cstArchivedStudents2016->ResultLetter->HrefValue <> "" || $cstArchivedStudents2016->ResultLetter->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2016->ResultLetter->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2016->ResultLetter->HrefValue ?>"><?php echo $cstArchivedStudents2016->ResultLetter->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2016->ResultLetter->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2016->ResultLetter->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->Achieved->Visible) { // Achieved ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->Achieved->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->Achieved->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->Achieved->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->Achieved->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->IDFile->Visible) { // IDFile ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->IDFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->IDFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2016->IDFile->HrefValue <> "" || $cstArchivedStudents2016->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2016->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2016->IDFile->HrefValue ?>"><?php echo $cstArchivedStudents2016->IDFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2016->IDFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2016->IDFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2016->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2016->ReasonForLeaving->Visible) { // ReasonForLeaving ?>
	<tr<?php echo $cstArchivedStudents2016->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2016->ReasonForLeaving->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2016->ReasonForLeaving->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2016->ReasonForLeaving->ViewAttributes() ?>><?php echo $cstArchivedStudents2016->ReasonForLeaving->ViewValue ?></div></td>
	</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<?php if ($cstArchivedStudents2016->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($cstArchivedStudents2016_view->Pager)) $cstArchivedStudents2016_view->Pager = new cPrevNextPager($cstArchivedStudents2016_view->lStartRec, $cstArchivedStudents2016_view->lDisplayRecs, $cstArchivedStudents2016_view->lTotalRecs) ?>
<?php if ($cstArchivedStudents2016_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 ($cstArchivedStudents2016_view->Pager->FirstButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2016_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2016_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 ($cstArchivedStudents2016_view->Pager->PrevButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2016_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2016_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 $cstArchivedStudents2016_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
	<?php if ($cstArchivedStudents2016_view->Pager->NextButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2016_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2016_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 ($cstArchivedStudents2016_view->Pager->LastButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2016_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2016_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 $cstArchivedStudents2016_view->Pager->PageCount ?></span></td>
	</tr></table>
<?php } else { ?>
	<?php if ($Security->CanList()) { ?>
	<?php if ($cstArchivedStudents2016_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 ($cstArchivedStudents2016->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
$cstArchivedStudents2016_view->Page_Terminate();
?>
<?php

//
// Page class
//
class ccstArchivedStudents2016_view {

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

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

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

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

	// Page URL
	function PageUrl() {
		$PageUrl = ew_CurrentPage() . "?";
		global $cstArchivedStudents2016;
		if ($cstArchivedStudents2016->UseTokenInUrl) $PageUrl .= "t=" . $cstArchivedStudents2016->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, $cstArchivedStudents2016;
		if ($cstArchivedStudents2016->UseTokenInUrl) {
			if ($objForm)
				return ($cstArchivedStudents2016->TableVar == $objForm->GetValue("t"));
			if (@$_GET["t"] <> "")
				return ($cstArchivedStudents2016->TableVar == $_GET["t"]);
		} else {
			return TRUE;
		}
	}

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

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

		// Table object (cstArchivedStudents2016)
		$GLOBALS["cstArchivedStudents2016"] = new ccstArchivedStudents2016();

		// 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", 'cstArchivedStudents2016', 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 $cstArchivedStudents2016;

		// 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("cstArchivedStudents2016list.php");
		}

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

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

			// Get action
			$cstArchivedStudents2016->CurrentAction = "I"; // Display form
			switch ($cstArchivedStudents2016->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("cstArchivedStudents2016list.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($cstArchivedStudents2016->CCEStudentID->CurrentValue) == strval($rs->fields('CCEStudentID'))) {
								$cstArchivedStudents2016->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 = "cstArchivedStudents2016list.php"; // No matching record, return to list
					} else {
						$this->LoadRowValues($rs); // Load row values
					}
			}

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

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

	// Set up starting record parameters
	function SetUpStartRec() {
		global $cstArchivedStudents2016;
		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];
				$cstArchivedStudents2016->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;
					}
					$cstArchivedStudents2016->setStartRecordNumber($this->lStartRec);
				}
			}
		}
		$this->lStartRec = $cstArchivedStudents2016->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
			$cstArchivedStudents2016->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
			$cstArchivedStudents2016->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
			$cstArchivedStudents2016->setStartRecordNumber($this->lStartRec);
		}
	}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

		// MentorName
		$cstArchivedStudents2016->MentorName->CellCssStyle = ""; $cstArchivedStudents2016->MentorName->CellCssClass = "";
		$cstArchivedStudents2016->MentorName->CellAttrs = array(); $cstArchivedStudents2016->MentorName->ViewAttrs = array(); $cstArchivedStudents2016->MentorName->EditAttrs = array();

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

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

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

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

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

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

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

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

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

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

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

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

		// ResultLetter
		$cstArchivedStudents2016->ResultLetter->CellCssStyle = ""; $cstArchivedStudents2016->ResultLetter->CellCssClass = "";
		$cstArchivedStudents2016->ResultLetter->CellAttrs = array(); $cstArchivedStudents2016->ResultLetter->ViewAttrs = array(); $cstArchivedStudents2016->ResultLetter->EditAttrs = array();

		// Achieved
		$cstArchivedStudents2016->Achieved->CellCssStyle = ""; $cstArchivedStudents2016->Achieved->CellCssClass = "";
		$cstArchivedStudents2016->Achieved->CellAttrs = array(); $cstArchivedStudents2016->Achieved->ViewAttrs = array(); $cstArchivedStudents2016->Achieved->EditAttrs = array();

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

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

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

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

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

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

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

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

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

			// CCEFacilitatorID
			if (strval($cstArchivedStudents2016->CCEFacilitatorID->CurrentValue) <> "") {
				$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($cstArchivedStudents2016->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
					$cstArchivedStudents2016->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
					$rswrk->Close();
				} else {
					$cstArchivedStudents2016->CCEFacilitatorID->ViewValue = $cstArchivedStudents2016->CCEFacilitatorID->CurrentValue;
				}
			} else {
				$cstArchivedStudents2016->CCEFacilitatorID->ViewValue = NULL;
			}
			$cstArchivedStudents2016->CCEFacilitatorID->CssStyle = "";
			$cstArchivedStudents2016->CCEFacilitatorID->CssClass = "";
			$cstArchivedStudents2016->CCEFacilitatorID->ViewCustomAttributes = "";

			// Project
			if (strval($cstArchivedStudents2016->Project->CurrentValue) <> "") {
				$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($cstArchivedStudents2016->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
					$cstArchivedStudents2016->Project->ViewValue = $rswrk->fields('Project');
					$rswrk->Close();
				} else {
					$cstArchivedStudents2016->Project->ViewValue = $cstArchivedStudents2016->Project->CurrentValue;
				}
			} else {
				$cstArchivedStudents2016->Project->ViewValue = NULL;
			}
			$cstArchivedStudents2016->Project->CssStyle = "";
			$cstArchivedStudents2016->Project->CssClass = "";
			$cstArchivedStudents2016->Project->ViewCustomAttributes = "";

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

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

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

			// Age
			$cstArchivedStudents2016->Age->ViewValue = $cstArchivedStudents2016->Age->CurrentValue;
			$cstArchivedStudents2016->Age->CssStyle = "";
			$cstArchivedStudents2016->Age->CssClass = "";
			$cstArchivedStudents2016->Age->ViewCustomAttributes = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// MentorName
			$cstArchivedStudents2016->MentorName->ViewValue = $cstArchivedStudents2016->MentorName->CurrentValue;
			$cstArchivedStudents2016->MentorName->CssStyle = "";
			$cstArchivedStudents2016->MentorName->CssClass = "";
			$cstArchivedStudents2016->MentorName->ViewCustomAttributes = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// ReasonForLeaving
			$cstArchivedStudents2016->ReasonForLeaving->ViewValue = $cstArchivedStudents2016->ReasonForLeaving->CurrentValue;
			$cstArchivedStudents2016->ReasonForLeaving->CssStyle = "";
			$cstArchivedStudents2016->ReasonForLeaving->CssClass = "";
			$cstArchivedStudents2016->ReasonForLeaving->ViewCustomAttributes = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// MentorName
			$cstArchivedStudents2016->MentorName->HrefValue = "";
			$cstArchivedStudents2016->MentorName->TooltipValue = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

			// Achieved
			$cstArchivedStudents2016->Achieved->HrefValue = "";
			$cstArchivedStudents2016->Achieved->TooltipValue = "";

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

			// ReasonForLeaving
			$cstArchivedStudents2016->ReasonForLeaving->HrefValue = "";
			$cstArchivedStudents2016->ReasonForLeaving->TooltipValue = "";
		}

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

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

		// Load recordset
		if ($bSelectLimit) {
			$this->lTotalRecs = $cstArchivedStudents2016->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 ($cstArchivedStudents2016->Export == "xml") {
			$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
			$XmlDoc->AddRoot();
		} else {
			$ExportDoc = new cExportDocument($cstArchivedStudents2016, "v");
			$ExportDoc->ExportHeader();
			if ($ExportDoc->Horizontal) { // Horizontal format, write header
				$ExportDoc->BeginExportRow();
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Title);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->FirstName);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Surname);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->KnownAs);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Organisation);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->OrganisationType);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->StudentNumber);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->CCEFacilitatorID);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Project);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->ProjectDiscipline);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->IDNumber);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->ECSANumber);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Age);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->HighestQual);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->AreaDiscipline);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Telephone);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Cellphone);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->EmailAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->HomeAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->WorkAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->PostalAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Designation);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Department);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->CESAAccountNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->VATNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->DietaryRequirements);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->CVFile);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->QualCertificate1);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->QualCertificate2);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->QualCertificate3);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->MemorandumFile);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->AgreementFile);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->OrderNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->BookedByName);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->BookedByDesignation);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->BookedByTelNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->BookedByFaxNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->BookedByCellNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->BookedByEmail);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->WebUsername);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->WebPassword);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->MentorName);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->MentorDesig);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->MentorTel);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->MentorCell);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->MentorEmail);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->HRManagerName);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->HRManagerDesignation);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->HRManagerTelNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->HRManagerCellNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->HRManagerEmail);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->LengthEmploy);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->BlockAccess);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Archived);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->ResultLetter);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->Achieved);
				$ExportDoc->ExportCaption($cstArchivedStudents2016->IDFile);
				$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
				$cstArchivedStudents2016->CssClass = "";
				$cstArchivedStudents2016->CssStyle = "";
				$cstArchivedStudents2016->RowType = EW_ROWTYPE_VIEW; // Render view
				$this->RenderRow();
				if ($cstArchivedStudents2016->Export == "xml") {
					$XmlDoc->AddRow();
					$XmlDoc->AddField('Title', $cstArchivedStudents2016->Title->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('FirstName', $cstArchivedStudents2016->FirstName->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Surname', $cstArchivedStudents2016->Surname->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('KnownAs', $cstArchivedStudents2016->KnownAs->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Organisation', $cstArchivedStudents2016->Organisation->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('OrganisationType', $cstArchivedStudents2016->OrganisationType->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('StudentNumber', $cstArchivedStudents2016->StudentNumber->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('CCEFacilitatorID', $cstArchivedStudents2016->CCEFacilitatorID->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Project', $cstArchivedStudents2016->Project->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('ProjectDiscipline', $cstArchivedStudents2016->ProjectDiscipline->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('IDNumber', $cstArchivedStudents2016->IDNumber->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('ECSANumber', $cstArchivedStudents2016->ECSANumber->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Age', $cstArchivedStudents2016->Age->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('HighestQual', $cstArchivedStudents2016->HighestQual->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('AreaDiscipline', $cstArchivedStudents2016->AreaDiscipline->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Telephone', $cstArchivedStudents2016->Telephone->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Cellphone', $cstArchivedStudents2016->Cellphone->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('EmailAddress', $cstArchivedStudents2016->EmailAddress->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('HomeAddress', $cstArchivedStudents2016->HomeAddress->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('WorkAddress', $cstArchivedStudents2016->WorkAddress->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('PostalAddress', $cstArchivedStudents2016->PostalAddress->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Designation', $cstArchivedStudents2016->Designation->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Department', $cstArchivedStudents2016->Department->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('CESAAccountNo', $cstArchivedStudents2016->CESAAccountNo->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('VATNo', $cstArchivedStudents2016->VATNo->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('DietaryRequirements', $cstArchivedStudents2016->DietaryRequirements->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('CVFile', $cstArchivedStudents2016->CVFile->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('QualCertificate1', $cstArchivedStudents2016->QualCertificate1->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('QualCertificate2', $cstArchivedStudents2016->QualCertificate2->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('QualCertificate3', $cstArchivedStudents2016->QualCertificate3->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('MemorandumFile', $cstArchivedStudents2016->MemorandumFile->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('AgreementFile', $cstArchivedStudents2016->AgreementFile->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('OrderNo', $cstArchivedStudents2016->OrderNo->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('BookedByName', $cstArchivedStudents2016->BookedByName->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('BookedByDesignation', $cstArchivedStudents2016->BookedByDesignation->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('BookedByTelNo', $cstArchivedStudents2016->BookedByTelNo->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('BookedByFaxNo', $cstArchivedStudents2016->BookedByFaxNo->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('BookedByCellNo', $cstArchivedStudents2016->BookedByCellNo->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('BookedByEmail', $cstArchivedStudents2016->BookedByEmail->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('WebUsername', $cstArchivedStudents2016->WebUsername->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('WebPassword', $cstArchivedStudents2016->WebPassword->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('MentorName', $cstArchivedStudents2016->MentorName->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('MentorDesig', $cstArchivedStudents2016->MentorDesig->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('MentorTel', $cstArchivedStudents2016->MentorTel->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('MentorCell', $cstArchivedStudents2016->MentorCell->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('MentorEmail', $cstArchivedStudents2016->MentorEmail->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerName', $cstArchivedStudents2016->HRManagerName->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerDesignation', $cstArchivedStudents2016->HRManagerDesignation->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerTelNo', $cstArchivedStudents2016->HRManagerTelNo->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerCellNo', $cstArchivedStudents2016->HRManagerCellNo->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerEmail', $cstArchivedStudents2016->HRManagerEmail->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('LengthEmploy', $cstArchivedStudents2016->LengthEmploy->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('BlockAccess', $cstArchivedStudents2016->BlockAccess->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Archived', $cstArchivedStudents2016->Archived->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('ResultLetter', $cstArchivedStudents2016->ResultLetter->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('Achieved', $cstArchivedStudents2016->Achieved->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
					$XmlDoc->AddField('IDFile', $cstArchivedStudents2016->IDFile->ExportValue($cstArchivedStudents2016->Export, $cstArchivedStudents2016->ExportOriginalValue));
				} else {
					$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
					$ExportDoc->ExportField($cstArchivedStudents2016->Title);
					$ExportDoc->ExportField($cstArchivedStudents2016->FirstName);
					$ExportDoc->ExportField($cstArchivedStudents2016->Surname);
					$ExportDoc->ExportField($cstArchivedStudents2016->KnownAs);
					$ExportDoc->ExportField($cstArchivedStudents2016->Organisation);
					$ExportDoc->ExportField($cstArchivedStudents2016->OrganisationType);
					$ExportDoc->ExportField($cstArchivedStudents2016->StudentNumber);
					$ExportDoc->ExportField($cstArchivedStudents2016->CCEFacilitatorID);
					$ExportDoc->ExportField($cstArchivedStudents2016->Project);
					$ExportDoc->ExportField($cstArchivedStudents2016->ProjectDiscipline);
					$ExportDoc->ExportField($cstArchivedStudents2016->IDNumber);
					$ExportDoc->ExportField($cstArchivedStudents2016->ECSANumber);
					$ExportDoc->ExportField($cstArchivedStudents2016->Age);
					$ExportDoc->ExportField($cstArchivedStudents2016->HighestQual);
					$ExportDoc->ExportField($cstArchivedStudents2016->AreaDiscipline);
					$ExportDoc->ExportField($cstArchivedStudents2016->Telephone);
					$ExportDoc->ExportField($cstArchivedStudents2016->Cellphone);
					$ExportDoc->ExportField($cstArchivedStudents2016->EmailAddress);
					$ExportDoc->ExportField($cstArchivedStudents2016->HomeAddress);
					$ExportDoc->ExportField($cstArchivedStudents2016->WorkAddress);
					$ExportDoc->ExportField($cstArchivedStudents2016->PostalAddress);
					$ExportDoc->ExportField($cstArchivedStudents2016->Designation);
					$ExportDoc->ExportField($cstArchivedStudents2016->Department);
					$ExportDoc->ExportField($cstArchivedStudents2016->CESAAccountNo);
					$ExportDoc->ExportField($cstArchivedStudents2016->VATNo);
					$ExportDoc->ExportField($cstArchivedStudents2016->DietaryRequirements);
					$ExportDoc->ExportField($cstArchivedStudents2016->CVFile);
					$ExportDoc->ExportField($cstArchivedStudents2016->QualCertificate1);
					$ExportDoc->ExportField($cstArchivedStudents2016->QualCertificate2);
					$ExportDoc->ExportField($cstArchivedStudents2016->QualCertificate3);
					$ExportDoc->ExportField($cstArchivedStudents2016->MemorandumFile);
					$ExportDoc->ExportField($cstArchivedStudents2016->AgreementFile);
					$ExportDoc->ExportField($cstArchivedStudents2016->OrderNo);
					$ExportDoc->ExportField($cstArchivedStudents2016->BookedByName);
					$ExportDoc->ExportField($cstArchivedStudents2016->BookedByDesignation);
					$ExportDoc->ExportField($cstArchivedStudents2016->BookedByTelNo);
					$ExportDoc->ExportField($cstArchivedStudents2016->BookedByFaxNo);
					$ExportDoc->ExportField($cstArchivedStudents2016->BookedByCellNo);
					$ExportDoc->ExportField($cstArchivedStudents2016->BookedByEmail);
					$ExportDoc->ExportField($cstArchivedStudents2016->WebUsername);
					$ExportDoc->ExportField($cstArchivedStudents2016->WebPassword);
					$ExportDoc->ExportField($cstArchivedStudents2016->MentorName);
					$ExportDoc->ExportField($cstArchivedStudents2016->MentorDesig);
					$ExportDoc->ExportField($cstArchivedStudents2016->MentorTel);
					$ExportDoc->ExportField($cstArchivedStudents2016->MentorCell);
					$ExportDoc->ExportField($cstArchivedStudents2016->MentorEmail);
					$ExportDoc->ExportField($cstArchivedStudents2016->HRManagerName);
					$ExportDoc->ExportField($cstArchivedStudents2016->HRManagerDesignation);
					$ExportDoc->ExportField($cstArchivedStudents2016->HRManagerTelNo);
					$ExportDoc->ExportField($cstArchivedStudents2016->HRManagerCellNo);
					$ExportDoc->ExportField($cstArchivedStudents2016->HRManagerEmail);
					$ExportDoc->ExportField($cstArchivedStudents2016->LengthEmploy);
					$ExportDoc->ExportField($cstArchivedStudents2016->BlockAccess);
					$ExportDoc->ExportField($cstArchivedStudents2016->Archived);
					$ExportDoc->ExportField($cstArchivedStudents2016->ResultLetter);
					$ExportDoc->ExportField($cstArchivedStudents2016->Achieved);
					$ExportDoc->ExportField($cstArchivedStudents2016->IDFile);
					$ExportDoc->EndExportRow();
				}
			}
			$rs->MoveNext();
		}
		if ($cstArchivedStudents2016->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($cstArchivedStudents2016->Export, array("email", "xml")))
			echo "\xEF\xBB\xBF";

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

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

	// Export email
	function ExportEmail($EmailContent) {
		global $Language, $cstArchivedStudents2016;
		$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 ($cstArchivedStudents2016->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 $cstArchivedStudents2016;

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

		// Add record key QueryString
		$sQry .= "&" . substr($cstArchivedStudents2016->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";

	}
}
?>