Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/ccmadmin/
Upload File :
Current File : /var/www/cesa.co.za/ccmadmin/cstArchivedStudentsview.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 "cstArchivedStudentsinfo.php" ?>
<?php include "CCMUsersinfo.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
$cstArchivedStudents_view = new ccstArchivedStudents_view();
$Page =& $cstArchivedStudents_view;

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

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

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

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

// extend page with Form_CustomValidate function
cstArchivedStudents_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) { ?>
cstArchivedStudents_view.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudents_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 $cstArchivedStudents->TableCaption() ?>
<?php if ($cstArchivedStudents->Export == "") { ?>
&nbsp;&nbsp;<a href="<?php echo $cstArchivedStudents_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 $cstArchivedStudents_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 $cstArchivedStudents_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_cstArchivedStudents" id="emf_cstArchivedStudents" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_cstArchivedStudents',hdr:ewLanguage.Phrase('ExportToEmail'),key:<?php echo ew_ArrayToJsonAttr($cstArchivedStudents_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 ($cstArchivedStudents->Export == "") { ?>
<a href="<?php echo $cstArchivedStudents_view->ListUrl ?>"><?php echo $Language->Phrase("BackToList") ?></a>&nbsp;
<?php if ($Security->CanEdit()) { ?>
<a href="<?php echo $cstArchivedStudents_view->EditUrl ?>"><?php echo $Language->Phrase("ViewPageEditLink") ?></a>&nbsp;
<?php } ?>
<?php } ?>
</span></p>
<?php
if (EW_DEBUG_ENABLED)
	echo ew_DebugMsg();
$cstArchivedStudents_view->ShowMessage();
?>
<p>
<?php if ($cstArchivedStudents->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($cstArchivedStudents_view->Pager)) $cstArchivedStudents_view->Pager = new cPrevNextPager($cstArchivedStudents_view->lStartRec, $cstArchivedStudents_view->lDisplayRecs, $cstArchivedStudents_view->lTotalRecs) ?>
<?php if ($cstArchivedStudents_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 ($cstArchivedStudents_view->Pager->FirstButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents_view->PageUrl() ?>start=<?php echo $cstArchivedStudents_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 ($cstArchivedStudents_view->Pager->PrevButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents_view->PageUrl() ?>start=<?php echo $cstArchivedStudents_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 $cstArchivedStudents_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
	<?php if ($cstArchivedStudents_view->Pager->NextButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents_view->PageUrl() ?>start=<?php echo $cstArchivedStudents_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 ($cstArchivedStudents_view->Pager->LastButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents_view->PageUrl() ?>start=<?php echo $cstArchivedStudents_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 $cstArchivedStudents_view->Pager->PageCount ?></span></td>
	</tr></table>
<?php } else { ?>
	<?php if ($Security->CanList()) { ?>
	<?php if ($cstArchivedStudents_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 ($cstArchivedStudents->Archived->Visible) { // Archived ?>
	<tr<?php echo $cstArchivedStudents->Archived->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Archived->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Archived->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Archived->ViewAttributes() ?>><?php echo $cstArchivedStudents->Archived->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SelectionCategory->Visible) { // SelectionCategory ?>
	<tr<?php echo $cstArchivedStudents->SelectionCategory->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->SelectionCategory->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->SelectionCategory->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->SelectionCategory->ViewAttributes() ?>><?php echo $cstArchivedStudents->SelectionCategory->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Title->Visible) { // Title ?>
	<tr<?php echo $cstArchivedStudents->Title->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Title->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Title->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Title->ViewAttributes() ?>><?php echo $cstArchivedStudents->Title->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Initials->Visible) { // Initials ?>
	<tr<?php echo $cstArchivedStudents->Initials->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Initials->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Initials->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Initials->ViewAttributes() ?>><?php echo $cstArchivedStudents->Initials->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->FirstName->Visible) { // FirstName ?>
	<tr<?php echo $cstArchivedStudents->FirstName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->FirstName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->FirstName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->FirstName->ViewAttributes() ?>><?php echo $cstArchivedStudents->FirstName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Surname->Visible) { // Surname ?>
	<tr<?php echo $cstArchivedStudents->Surname->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Surname->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Surname->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Surname->ViewAttributes() ?>><?php echo $cstArchivedStudents->Surname->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->KnownAs->Visible) { // KnownAs ?>
	<tr<?php echo $cstArchivedStudents->KnownAs->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->KnownAs->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->KnownAs->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->KnownAs->ViewAttributes() ?>><?php echo $cstArchivedStudents->KnownAs->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->IDNumber->Visible) { // IDNumber ?>
	<tr<?php echo $cstArchivedStudents->IDNumber->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->IDNumber->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->IDNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->IDNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents->IDNumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Telephone->Visible) { // Telephone ?>
	<tr<?php echo $cstArchivedStudents->Telephone->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Telephone->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Telephone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Telephone->ViewAttributes() ?>><?php echo $cstArchivedStudents->Telephone->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Cellphone->Visible) { // Cellphone ?>
	<tr<?php echo $cstArchivedStudents->Cellphone->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Cellphone->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Cellphone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Cellphone->ViewAttributes() ?>><?php echo $cstArchivedStudents->Cellphone->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->EmailAddress->Visible) { // EmailAddress ?>
	<tr<?php echo $cstArchivedStudents->EmailAddress->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->EmailAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->EmailAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->EmailAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents->EmailAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->WorkAddress->Visible) { // WorkAddress ?>
	<tr<?php echo $cstArchivedStudents->WorkAddress->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->WorkAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->WorkAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->WorkAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents->WorkAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->PostalAddress->Visible) { // PostalAddress ?>
	<tr<?php echo $cstArchivedStudents->PostalAddress->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->PostalAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->PostalAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->PostalAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents->PostalAddress->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Department->Visible) { // Department ?>
	<tr<?php echo $cstArchivedStudents->Department->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Department->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Department->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Department->ViewAttributes() ?>><?php echo $cstArchivedStudents->Department->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Organisation->Visible) { // Organisation ?>
	<tr<?php echo $cstArchivedStudents->Organisation->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Organisation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Organisation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Organisation->ViewAttributes() ?>><?php echo $cstArchivedStudents->Organisation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->VATNo->Visible) { // VATNo ?>
	<tr<?php echo $cstArchivedStudents->VATNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->VATNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->VATNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->VATNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->VATNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->JobTitle->Visible) { // JobTitle ?>
	<tr<?php echo $cstArchivedStudents->JobTitle->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->JobTitle->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->JobTitle->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->JobTitle->ViewAttributes() ?>><?php echo $cstArchivedStudents->JobTitle->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->DateofBirth->Visible) { // DateofBirth ?>
	<tr<?php echo $cstArchivedStudents->DateofBirth->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->DateofBirth->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->DateofBirth->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->DateofBirth->ViewAttributes() ?>><?php echo $cstArchivedStudents->DateofBirth->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->PlaceofBirth->Visible) { // PlaceofBirth ?>
	<tr<?php echo $cstArchivedStudents->PlaceofBirth->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->PlaceofBirth->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->PlaceofBirth->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->PlaceofBirth->ViewAttributes() ?>><?php echo $cstArchivedStudents->PlaceofBirth->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CountryofBirth->Visible) { // CountryofBirth ?>
	<tr<?php echo $cstArchivedStudents->CountryofBirth->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->CountryofBirth->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->CountryofBirth->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->CountryofBirth->ViewAttributes() ?>><?php echo $cstArchivedStudents->CountryofBirth->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Province->Visible) { // Province ?>
	<tr<?php echo $cstArchivedStudents->Province->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Province->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Province->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Province->ViewAttributes() ?>><?php echo $cstArchivedStudents->Province->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->MaleorFemale->Visible) { // MaleorFemale ?>
	<tr<?php echo $cstArchivedStudents->MaleorFemale->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->MaleorFemale->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->MaleorFemale->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->MaleorFemale->ViewAttributes() ?>><?php echo $cstArchivedStudents->MaleorFemale->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->RaceGroup->Visible) { // RaceGroup ?>
	<tr<?php echo $cstArchivedStudents->RaceGroup->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->RaceGroup->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->RaceGroup->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->RaceGroup->ViewAttributes() ?>><?php echo $cstArchivedStudents->RaceGroup->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Disability->Visible) { // Disability ?>
	<tr<?php echo $cstArchivedStudents->Disability->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Disability->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Disability->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Disability->ViewAttributes() ?>><?php echo $cstArchivedStudents->Disability->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->DisabilityNature->Visible) { // DisabilityNature ?>
	<tr<?php echo $cstArchivedStudents->DisabilityNature->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->DisabilityNature->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->DisabilityNature->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->DisabilityNature->ViewAttributes() ?>><?php echo $cstArchivedStudents->DisabilityNature->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->DisabilityCertificate->Visible) { // DisabilityCertificate ?>
	<tr<?php echo $cstArchivedStudents->DisabilityCertificate->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->DisabilityCertificate->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->DisabilityCertificate->CellAttributes() ?>>
<?php if ($cstArchivedStudents->DisabilityCertificate->HrefValue <> "" || $cstArchivedStudents->DisabilityCertificate->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->DisabilityCertificate->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->DisabilityCertificate->HrefValue ?>"><?php echo $cstArchivedStudents->DisabilityCertificate->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->DisabilityCertificate->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->DisabilityCertificate->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->ProfessionalCouncil->Visible) { // ProfessionalCouncil ?>
	<tr<?php echo $cstArchivedStudents->ProfessionalCouncil->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->ProfessionalCouncil->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->ProfessionalCouncil->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->ProfessionalCouncil->ViewAttributes() ?>><?php echo $cstArchivedStudents->ProfessionalCouncil->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CategoryReg->Visible) { // CategoryReg ?>
	<tr<?php echo $cstArchivedStudents->CategoryReg->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->CategoryReg->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->CategoryReg->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->CategoryReg->ViewAttributes() ?>><?php echo $cstArchivedStudents->CategoryReg->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CouncilRegNumber->Visible) { // CouncilRegNumber ?>
	<tr<?php echo $cstArchivedStudents->CouncilRegNumber->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->CouncilRegNumber->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->CouncilRegNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->CouncilRegNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents->CouncilRegNumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->LengthCandidateReg->Visible) { // LengthCandidateReg ?>
	<tr<?php echo $cstArchivedStudents->LengthCandidateReg->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->LengthCandidateReg->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->LengthCandidateReg->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->LengthCandidateReg->ViewAttributes() ?>><?php echo $cstArchivedStudents->LengthCandidateReg->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->YearsToProfReg->Visible) { // YearsToProfReg ?>
	<tr<?php echo $cstArchivedStudents->YearsToProfReg->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->YearsToProfReg->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->YearsToProfReg->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->YearsToProfReg->ViewAttributes() ?>><?php echo $cstArchivedStudents->YearsToProfReg->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->FirstJobStart->Visible) { // FirstJobStart ?>
	<tr<?php echo $cstArchivedStudents->FirstJobStart->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->FirstJobStart->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->FirstJobStart->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->FirstJobStart->ViewAttributes() ?>><?php echo $cstArchivedStudents->FirstJobStart->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->VolAssociations->Visible) { // VolAssociations ?>
	<tr<?php echo $cstArchivedStudents->VolAssociations->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->VolAssociations->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->VolAssociations->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->VolAssociations->ViewAttributes() ?>><?php echo $cstArchivedStudents->VolAssociations->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BelongsTo->Visible) { // BelongsTo ?>
	<tr<?php echo $cstArchivedStudents->BelongsTo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BelongsTo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BelongsTo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BelongsTo->ViewAttributes() ?>><?php echo $cstArchivedStudents->BelongsTo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CESA_SABTACO_MemNum->Visible) { // CESA_SABTACO_MemNum ?>
	<tr<?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->ViewAttributes() ?>><?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->AreaDiscipline->Visible) { // AreaDiscipline ?>
	<tr<?php echo $cstArchivedStudents->AreaDiscipline->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->AreaDiscipline->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->AreaDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->AreaDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudents->AreaDiscipline->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->AreaSubDiscipline->Visible) { // AreaSubDiscipline ?>
	<tr<?php echo $cstArchivedStudents->AreaSubDiscipline->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->AreaSubDiscipline->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->AreaSubDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->AreaSubDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudents->AreaSubDiscipline->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Salary->Visible) { // Salary ?>
	<tr<?php echo $cstArchivedStudents->Salary->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Salary->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Salary->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Salary->ViewAttributes() ?>><?php echo $cstArchivedStudents->Salary->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Payslip->Visible) { // Payslip ?>
	<tr<?php echo $cstArchivedStudents->Payslip->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Payslip->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Payslip->CellAttributes() ?>>
<?php if ($cstArchivedStudents->Payslip->HrefValue <> "" || $cstArchivedStudents->Payslip->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->Payslip->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->Payslip->HrefValue ?>"><?php echo $cstArchivedStudents->Payslip->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->Payslip->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->Payslip->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountName->Visible) { // BankAccountName ?>
	<tr<?php echo $cstArchivedStudents->BankAccountName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BankAccountName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BankAccountName->ViewAttributes() ?>><?php echo $cstArchivedStudents->BankAccountName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountBank->Visible) { // BankAccountBank ?>
	<tr<?php echo $cstArchivedStudents->BankAccountBank->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountBank->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BankAccountBank->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BankAccountBank->ViewAttributes() ?>><?php echo $cstArchivedStudents->BankAccountBank->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountBranch->Visible) { // BankAccountBranch ?>
	<tr<?php echo $cstArchivedStudents->BankAccountBranch->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountBranch->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BankAccountBranch->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BankAccountBranch->ViewAttributes() ?>><?php echo $cstArchivedStudents->BankAccountBranch->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountNo->Visible) { // BankAccountNo ?>
	<tr<?php echo $cstArchivedStudents->BankAccountNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BankAccountNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BankAccountNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->BankAccountNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountProof->Visible) { // BankAccountProof ?>
	<tr<?php echo $cstArchivedStudents->BankAccountProof->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountProof->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BankAccountProof->CellAttributes() ?>>
<?php if ($cstArchivedStudents->BankAccountProof->HrefValue <> "" || $cstArchivedStudents->BankAccountProof->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->BankAccountProof->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->BankAccountProof->HrefValue ?>"><?php echo $cstArchivedStudents->BankAccountProof->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->BankAccountProof->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->BankAccountProof->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Funding->Visible) { // Funding ?>
	<tr<?php echo $cstArchivedStudents->Funding->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Funding->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Funding->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Funding->ViewAttributes() ?>><?php echo $cstArchivedStudents->Funding->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CWDTP->Visible) { // CWDTP ?>
	<tr<?php echo $cstArchivedStudents->CWDTP->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->CWDTP->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->CWDTP->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->CWDTP->ViewAttributes() ?>><?php echo $cstArchivedStudents->CWDTP->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByName->Visible) { // BookedByName ?>
	<tr<?php echo $cstArchivedStudents->BookedByName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BookedByName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BookedByName->ViewAttributes() ?>><?php echo $cstArchivedStudents->BookedByName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByDesignation->Visible) { // BookedByDesignation ?>
	<tr<?php echo $cstArchivedStudents->BookedByDesignation->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByDesignation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BookedByDesignation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BookedByDesignation->ViewAttributes() ?>><?php echo $cstArchivedStudents->BookedByDesignation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByTelNo->Visible) { // BookedByTelNo ?>
	<tr<?php echo $cstArchivedStudents->BookedByTelNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByTelNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BookedByTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BookedByTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->BookedByTelNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
	<tr<?php echo $cstArchivedStudents->BookedByFaxNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByFaxNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BookedByFaxNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BookedByFaxNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->BookedByFaxNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByCellNo->Visible) { // BookedByCellNo ?>
	<tr<?php echo $cstArchivedStudents->BookedByCellNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByCellNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BookedByCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BookedByCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->BookedByCellNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByEmail->Visible) { // BookedByEmail ?>
	<tr<?php echo $cstArchivedStudents->BookedByEmail->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByEmail->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BookedByEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BookedByEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents->BookedByEmail->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->MentorID->Visible) { // MentorID ?>
	<tr<?php echo $cstArchivedStudents->MentorID->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->MentorID->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->MentorID->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->MentorID->ViewAttributes() ?>><?php echo $cstArchivedStudents->MentorID->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->EmployerID->Visible) { // EmployerID ?>
	<tr<?php echo $cstArchivedStudents->EmployerID->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->EmployerID->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->EmployerID->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->EmployerID->ViewAttributes() ?>><?php echo $cstArchivedStudents->EmployerID->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerName->Visible) { // HRManagerName ?>
	<tr<?php echo $cstArchivedStudents->HRManagerName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->HRManagerName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->HRManagerName->ViewAttributes() ?>><?php echo $cstArchivedStudents->HRManagerName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
	<tr<?php echo $cstArchivedStudents->HRManagerDesignation->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerDesignation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->HRManagerDesignation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->HRManagerDesignation->ViewAttributes() ?>><?php echo $cstArchivedStudents->HRManagerDesignation->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
	<tr<?php echo $cstArchivedStudents->HRManagerTelNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerTelNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->HRManagerTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->HRManagerTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->HRManagerTelNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
	<tr<?php echo $cstArchivedStudents->HRManagerCellNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerCellNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->HRManagerCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->HRManagerCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->HRManagerCellNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerEmail->Visible) { // HRManagerEmail ?>
	<tr<?php echo $cstArchivedStudents->HRManagerEmail->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerEmail->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->HRManagerEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->HRManagerEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents->HRManagerEmail->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorName->Visible) { // SupervisorName ?>
	<tr<?php echo $cstArchivedStudents->SupervisorName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->SupervisorName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->SupervisorName->ViewAttributes() ?>><?php echo $cstArchivedStudents->SupervisorName->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorDesig->Visible) { // SupervisorDesig ?>
	<tr<?php echo $cstArchivedStudents->SupervisorDesig->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorDesig->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->SupervisorDesig->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->SupervisorDesig->ViewAttributes() ?>><?php echo $cstArchivedStudents->SupervisorDesig->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorProfRegNo->Visible) { // SupervisorProfRegNo ?>
	<tr<?php echo $cstArchivedStudents->SupervisorProfRegNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorProfRegNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->SupervisorProfRegNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->SupervisorProfRegNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->SupervisorProfRegNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorTelNo->Visible) { // SupervisorTelNo ?>
	<tr<?php echo $cstArchivedStudents->SupervisorTelNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorTelNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->SupervisorTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->SupervisorTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->SupervisorTelNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorCellNo->Visible) { // SupervisorCellNo ?>
	<tr<?php echo $cstArchivedStudents->SupervisorCellNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorCellNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->SupervisorCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->SupervisorCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudents->SupervisorCellNo->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorEmail->Visible) { // SupervisorEmail ?>
	<tr<?php echo $cstArchivedStudents->SupervisorEmail->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorEmail->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->SupervisorEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->SupervisorEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents->SupervisorEmail->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->EducationalInst->Visible) { // EducationalInst ?>
	<tr<?php echo $cstArchivedStudents->EducationalInst->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->EducationalInst->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->EducationalInst->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->EducationalInst->ViewAttributes() ?>><?php echo $cstArchivedStudents->EducationalInst->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Qualifications->Visible) { // Qualifications ?>
	<tr<?php echo $cstArchivedStudents->Qualifications->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Qualifications->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Qualifications->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->Qualifications->ViewAttributes() ?>><?php echo $cstArchivedStudents->Qualifications->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->DateFinalExam->Visible) { // DateFinalExam ?>
	<tr<?php echo $cstArchivedStudents->DateFinalExam->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->DateFinalExam->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->DateFinalExam->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->DateFinalExam->ViewAttributes() ?>><?php echo $cstArchivedStudents->DateFinalExam->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->IDFile->Visible) { // IDFile ?>
	<tr<?php echo $cstArchivedStudents->IDFile->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->IDFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->IDFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents->IDFile->HrefValue <> "" || $cstArchivedStudents->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->IDFile->HrefValue ?>"><?php echo $cstArchivedStudents->IDFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->IDFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->IDFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CVFile->Visible) { // CVFile ?>
	<tr<?php echo $cstArchivedStudents->CVFile->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->CVFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->CVFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents->CVFile->HrefValue <> "" || $cstArchivedStudents->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->CVFile->HrefValue ?>"><?php echo $cstArchivedStudents->CVFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->CVFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->CVFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->QualCertificate1->Visible) { // QualCertificate1 ?>
	<tr<?php echo $cstArchivedStudents->QualCertificate1->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->QualCertificate1->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->QualCertificate1->CellAttributes() ?>>
<?php if ($cstArchivedStudents->QualCertificate1->HrefValue <> "" || $cstArchivedStudents->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->QualCertificate1->HrefValue ?>"><?php echo $cstArchivedStudents->QualCertificate1->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->QualCertificate1->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->QualCertificate2->Visible) { // QualCertificate2 ?>
	<tr<?php echo $cstArchivedStudents->QualCertificate2->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->QualCertificate2->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->QualCertificate2->CellAttributes() ?>>
<?php if ($cstArchivedStudents->QualCertificate2->HrefValue <> "" || $cstArchivedStudents->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->QualCertificate2->HrefValue ?>"><?php echo $cstArchivedStudents->QualCertificate2->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->QualCertificate2->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->QualCertificate3->Visible) { // QualCertificate3 ?>
	<tr<?php echo $cstArchivedStudents->QualCertificate3->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->QualCertificate3->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->QualCertificate3->CellAttributes() ?>>
<?php if ($cstArchivedStudents->QualCertificate3->HrefValue <> "" || $cstArchivedStudents->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->QualCertificate3->HrefValue ?>"><?php echo $cstArchivedStudents->QualCertificate3->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->QualCertificate3->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->MentorUndertaking->Visible) { // MentorUndertaking ?>
	<tr<?php echo $cstArchivedStudents->MentorUndertaking->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->MentorUndertaking->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->MentorUndertaking->CellAttributes() ?>>
<?php if ($cstArchivedStudents->MentorUndertaking->HrefValue <> "" || $cstArchivedStudents->MentorUndertaking->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->MentorUndertaking->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->MentorUndertaking->HrefValue ?>"><?php echo $cstArchivedStudents->MentorUndertaking->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->MentorUndertaking->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->MentorUndertaking->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CandUUndertaking->Visible) { // CandUUndertaking ?>
	<tr<?php echo $cstArchivedStudents->CandUUndertaking->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->CandUUndertaking->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->CandUUndertaking->CellAttributes() ?>>
<?php if ($cstArchivedStudents->CandUUndertaking->HrefValue <> "" || $cstArchivedStudents->CandUUndertaking->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->CandUUndertaking->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->CandUUndertaking->HrefValue ?>"><?php echo $cstArchivedStudents->CandUUndertaking->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->CandUUndertaking->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->CandUUndertaking->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CompanyCandidatePolicy->Visible) { // CompanyCandidatePolicy ?>
	<tr<?php echo $cstArchivedStudents->CompanyCandidatePolicy->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->CompanyCandidatePolicy->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->CompanyCandidatePolicy->CellAttributes() ?>>
<?php if ($cstArchivedStudents->CompanyCandidatePolicy->HrefValue <> "" || $cstArchivedStudents->CompanyCandidatePolicy->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->CompanyCandidatePolicy->HrefValue ?>"><?php echo $cstArchivedStudents->CompanyCandidatePolicy->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->CompanyCandidatePolicy->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->ResidenceProof->Visible) { // ResidenceProof ?>
	<tr<?php echo $cstArchivedStudents->ResidenceProof->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->ResidenceProof->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->ResidenceProof->CellAttributes() ?>>
<?php if ($cstArchivedStudents->ResidenceProof->HrefValue <> "" || $cstArchivedStudents->ResidenceProof->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->ResidenceProof->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->ResidenceProof->HrefValue ?>"><?php echo $cstArchivedStudents->ResidenceProof->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->ResidenceProof->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->ResidenceProof->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SignedAppForm->Visible) { // SignedAppForm ?>
	<tr<?php echo $cstArchivedStudents->SignedAppForm->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->SignedAppForm->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->SignedAppForm->CellAttributes() ?>>
<?php if ($cstArchivedStudents->SignedAppForm->HrefValue <> "" || $cstArchivedStudents->SignedAppForm->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->SignedAppForm->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->SignedAppForm->HrefValue ?>"><?php echo $cstArchivedStudents->SignedAppForm->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->SignedAppForm->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->SignedAppForm->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Photograph->Visible) { // Photograph ?>
	<tr<?php echo $cstArchivedStudents->Photograph->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->Photograph->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->Photograph->CellAttributes() ?>>
<?php if ($cstArchivedStudents->Photograph->HrefValue <> "" || $cstArchivedStudents->Photograph->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->Photograph->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->Photograph->HrefValue ?>"><?php echo $cstArchivedStudents->Photograph->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->Photograph->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->Photograph->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->StudentNumber->Visible) { // StudentNumber ?>
	<tr<?php echo $cstArchivedStudents->StudentNumber->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->StudentNumber->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->StudentNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->StudentNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents->StudentNumber->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->WebUsername->Visible) { // WebUsername ?>
	<tr<?php echo $cstArchivedStudents->WebUsername->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->WebUsername->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->WebUsername->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->WebUsername->ViewAttributes() ?>><?php echo $cstArchivedStudents->WebUsername->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->WebPassword->Visible) { // WebPassword ?>
	<tr<?php echo $cstArchivedStudents->WebPassword->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->WebPassword->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->WebPassword->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->WebPassword->ViewAttributes() ?>><?php echo $cstArchivedStudents->WebPassword->ViewValue ?></div></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BlockAccess->Visible) { // BlockAccess ?>
	<tr<?php echo $cstArchivedStudents->BlockAccess->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents->BlockAccess->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents->BlockAccess->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents->BlockAccess->ViewAttributes() ?>><?php echo $cstArchivedStudents->BlockAccess->ViewValue ?></div></td>
	</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<?php if ($cstArchivedStudents->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($cstArchivedStudents_view->Pager)) $cstArchivedStudents_view->Pager = new cPrevNextPager($cstArchivedStudents_view->lStartRec, $cstArchivedStudents_view->lDisplayRecs, $cstArchivedStudents_view->lTotalRecs) ?>
<?php if ($cstArchivedStudents_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 ($cstArchivedStudents_view->Pager->FirstButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents_view->PageUrl() ?>start=<?php echo $cstArchivedStudents_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 ($cstArchivedStudents_view->Pager->PrevButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents_view->PageUrl() ?>start=<?php echo $cstArchivedStudents_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 $cstArchivedStudents_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
	<?php if ($cstArchivedStudents_view->Pager->NextButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents_view->PageUrl() ?>start=<?php echo $cstArchivedStudents_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 ($cstArchivedStudents_view->Pager->LastButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents_view->PageUrl() ?>start=<?php echo $cstArchivedStudents_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 $cstArchivedStudents_view->Pager->PageCount ?></span></td>
	</tr></table>
<?php } else { ?>
	<?php if ($Security->CanList()) { ?>
	<?php if ($cstArchivedStudents_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 ($cstArchivedStudents->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
$cstArchivedStudents_view->Page_Terminate();
?>
<?php

//
// Page class
//
class ccstArchivedStudents_view {

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

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

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

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

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

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

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

		// Table object (cstArchivedStudents)
		$GLOBALS["cstArchivedStudents"] = new ccstArchivedStudents();

		// Table object (CCMUsers)
		$GLOBALS['CCMUsers'] = new cCCMUsers();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	// Load row values from recordset
	function LoadRowValues(&$rs) {
		global $conn, $cstArchivedStudents;
		$cstArchivedStudents->Archived->setDbValue($rs->fields('Archived'));
		$cstArchivedStudents->CCMStudentID->setDbValue($rs->fields('CCMStudentID'));
		$cstArchivedStudents->SelectionCategory->setDbValue($rs->fields('SelectionCategory'));
		$cstArchivedStudents->Title->setDbValue($rs->fields('Title'));
		$cstArchivedStudents->Initials->setDbValue($rs->fields('Initials'));
		$cstArchivedStudents->FirstName->setDbValue($rs->fields('FirstName'));
		$cstArchivedStudents->Surname->setDbValue($rs->fields('Surname'));
		$cstArchivedStudents->KnownAs->setDbValue($rs->fields('KnownAs'));
		$cstArchivedStudents->IDNumber->setDbValue($rs->fields('IDNumber'));
		$cstArchivedStudents->Telephone->setDbValue($rs->fields('Telephone'));
		$cstArchivedStudents->Cellphone->setDbValue($rs->fields('Cellphone'));
		$cstArchivedStudents->EmailAddress->setDbValue($rs->fields('EmailAddress'));
		$cstArchivedStudents->WorkAddress->setDbValue($rs->fields('WorkAddress'));
		$cstArchivedStudents->PostalAddress->setDbValue($rs->fields('PostalAddress'));
		$cstArchivedStudents->Department->setDbValue($rs->fields('Department'));
		$cstArchivedStudents->Organisation->setDbValue($rs->fields('Organisation'));
		$cstArchivedStudents->VATNo->setDbValue($rs->fields('VATNo'));
		$cstArchivedStudents->JobTitle->setDbValue($rs->fields('JobTitle'));
		$cstArchivedStudents->DateofBirth->setDbValue($rs->fields('DateofBirth'));
		$cstArchivedStudents->PlaceofBirth->setDbValue($rs->fields('PlaceofBirth'));
		$cstArchivedStudents->CountryofBirth->setDbValue($rs->fields('CountryofBirth'));
		$cstArchivedStudents->Province->setDbValue($rs->fields('Province'));
		$cstArchivedStudents->MaleorFemale->setDbValue($rs->fields('MaleorFemale'));
		$cstArchivedStudents->RaceGroup->setDbValue($rs->fields('RaceGroup'));
		$cstArchivedStudents->Disability->setDbValue($rs->fields('Disability'));
		$cstArchivedStudents->DisabilityNature->setDbValue($rs->fields('DisabilityNature'));
		$cstArchivedStudents->DisabilityCertificate->Upload->DbValue = $rs->fields('DisabilityCertificate');
		$cstArchivedStudents->ProfessionalCouncil->setDbValue($rs->fields('ProfessionalCouncil'));
		$cstArchivedStudents->CategoryReg->setDbValue($rs->fields('CategoryReg'));
		$cstArchivedStudents->CouncilRegNumber->setDbValue($rs->fields('CouncilRegNumber'));
		$cstArchivedStudents->LengthCandidateReg->setDbValue($rs->fields('LengthCandidateReg'));
		$cstArchivedStudents->YearsToProfReg->setDbValue($rs->fields('YearsToProfReg'));
		$cstArchivedStudents->FirstJobStart->setDbValue($rs->fields('FirstJobStart'));
		$cstArchivedStudents->VolAssociations->setDbValue($rs->fields('VolAssociations'));
		$cstArchivedStudents->BelongsTo->setDbValue($rs->fields('BelongsTo'));
		$cstArchivedStudents->CESA_SABTACO_MemNum->setDbValue($rs->fields('CESA_SABTACO_MemNum'));
		$cstArchivedStudents->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
		$cstArchivedStudents->AreaSubDiscipline->setDbValue($rs->fields('AreaSubDiscipline'));
		$cstArchivedStudents->Salary->setDbValue($rs->fields('Salary'));
		$cstArchivedStudents->Payslip->Upload->DbValue = $rs->fields('Payslip');
		$cstArchivedStudents->BankAccountName->setDbValue($rs->fields('BankAccountName'));
		$cstArchivedStudents->BankAccountBank->setDbValue($rs->fields('BankAccountBank'));
		$cstArchivedStudents->BankAccountBranch->setDbValue($rs->fields('BankAccountBranch'));
		$cstArchivedStudents->BankAccountNo->setDbValue($rs->fields('BankAccountNo'));
		$cstArchivedStudents->BankAccountProof->Upload->DbValue = $rs->fields('BankAccountProof');
		$cstArchivedStudents->Funding->setDbValue($rs->fields('Funding'));
		$cstArchivedStudents->CWDTP->setDbValue($rs->fields('CWDTP'));
		$cstArchivedStudents->BookedByName->setDbValue($rs->fields('BookedByName'));
		$cstArchivedStudents->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
		$cstArchivedStudents->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
		$cstArchivedStudents->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
		$cstArchivedStudents->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
		$cstArchivedStudents->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
		$cstArchivedStudents->MentorID->setDbValue($rs->fields('MentorID'));
		$cstArchivedStudents->EmployerID->setDbValue($rs->fields('EmployerID'));
		$cstArchivedStudents->HRManagerName->setDbValue($rs->fields('HRManagerName'));
		$cstArchivedStudents->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
		$cstArchivedStudents->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
		$cstArchivedStudents->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
		$cstArchivedStudents->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
		$cstArchivedStudents->SupervisorName->setDbValue($rs->fields('SupervisorName'));
		$cstArchivedStudents->SupervisorDesig->setDbValue($rs->fields('SupervisorDesig'));
		$cstArchivedStudents->SupervisorProfRegNo->setDbValue($rs->fields('SupervisorProfRegNo'));
		$cstArchivedStudents->SupervisorTelNo->setDbValue($rs->fields('SupervisorTelNo'));
		$cstArchivedStudents->SupervisorCellNo->setDbValue($rs->fields('SupervisorCellNo'));
		$cstArchivedStudents->SupervisorEmail->setDbValue($rs->fields('SupervisorEmail'));
		$cstArchivedStudents->EducationalInst->setDbValue($rs->fields('EducationalInst'));
		$cstArchivedStudents->Qualifications->setDbValue($rs->fields('Qualifications'));
		$cstArchivedStudents->DateFinalExam->setDbValue($rs->fields('DateFinalExam'));
		$cstArchivedStudents->IDFile->Upload->DbValue = $rs->fields('IDFile');
		$cstArchivedStudents->CVFile->Upload->DbValue = $rs->fields('CVFile');
		$cstArchivedStudents->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
		$cstArchivedStudents->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
		$cstArchivedStudents->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
		$cstArchivedStudents->MentorUndertaking->Upload->DbValue = $rs->fields('MentorUndertaking');
		$cstArchivedStudents->CandUUndertaking->Upload->DbValue = $rs->fields('CandUUndertaking');
		$cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue = $rs->fields('CompanyCandidatePolicy');
		$cstArchivedStudents->ResidenceProof->Upload->DbValue = $rs->fields('ResidenceProof');
		$cstArchivedStudents->SignedAppForm->Upload->DbValue = $rs->fields('SignedAppForm');
		$cstArchivedStudents->Photograph->Upload->DbValue = $rs->fields('Photograph');
		$cstArchivedStudents->StudentNumber->setDbValue($rs->fields('StudentNumber'));
		$cstArchivedStudents->WebUsername->setDbValue($rs->fields('WebUsername'));
		$cstArchivedStudents->WebPassword->setDbValue($rs->fields('WebPassword'));
		$cstArchivedStudents->BlockAccess->setDbValue($rs->fields('BlockAccess'));
		$cstArchivedStudents->SABTACO->setDbValue($rs->fields('SABTACO'));
		$cstArchivedStudents->CESA->setDbValue($rs->fields('CESA'));
	}

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

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

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

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

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

		// SelectionCategory
		$cstArchivedStudents->SelectionCategory->CellCssStyle = ""; $cstArchivedStudents->SelectionCategory->CellCssClass = "";
		$cstArchivedStudents->SelectionCategory->CellAttrs = array(); $cstArchivedStudents->SelectionCategory->ViewAttrs = array(); $cstArchivedStudents->SelectionCategory->EditAttrs = array();

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

		// Initials
		$cstArchivedStudents->Initials->CellCssStyle = ""; $cstArchivedStudents->Initials->CellCssClass = "";
		$cstArchivedStudents->Initials->CellAttrs = array(); $cstArchivedStudents->Initials->ViewAttrs = array(); $cstArchivedStudents->Initials->EditAttrs = array();

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

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

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

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

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

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

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

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

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

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

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

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

		// JobTitle
		$cstArchivedStudents->JobTitle->CellCssStyle = ""; $cstArchivedStudents->JobTitle->CellCssClass = "";
		$cstArchivedStudents->JobTitle->CellAttrs = array(); $cstArchivedStudents->JobTitle->ViewAttrs = array(); $cstArchivedStudents->JobTitle->EditAttrs = array();

		// DateofBirth
		$cstArchivedStudents->DateofBirth->CellCssStyle = ""; $cstArchivedStudents->DateofBirth->CellCssClass = "";
		$cstArchivedStudents->DateofBirth->CellAttrs = array(); $cstArchivedStudents->DateofBirth->ViewAttrs = array(); $cstArchivedStudents->DateofBirth->EditAttrs = array();

		// PlaceofBirth
		$cstArchivedStudents->PlaceofBirth->CellCssStyle = ""; $cstArchivedStudents->PlaceofBirth->CellCssClass = "";
		$cstArchivedStudents->PlaceofBirth->CellAttrs = array(); $cstArchivedStudents->PlaceofBirth->ViewAttrs = array(); $cstArchivedStudents->PlaceofBirth->EditAttrs = array();

		// CountryofBirth
		$cstArchivedStudents->CountryofBirth->CellCssStyle = ""; $cstArchivedStudents->CountryofBirth->CellCssClass = "";
		$cstArchivedStudents->CountryofBirth->CellAttrs = array(); $cstArchivedStudents->CountryofBirth->ViewAttrs = array(); $cstArchivedStudents->CountryofBirth->EditAttrs = array();

		// Province
		$cstArchivedStudents->Province->CellCssStyle = ""; $cstArchivedStudents->Province->CellCssClass = "";
		$cstArchivedStudents->Province->CellAttrs = array(); $cstArchivedStudents->Province->ViewAttrs = array(); $cstArchivedStudents->Province->EditAttrs = array();

		// MaleorFemale
		$cstArchivedStudents->MaleorFemale->CellCssStyle = ""; $cstArchivedStudents->MaleorFemale->CellCssClass = "";
		$cstArchivedStudents->MaleorFemale->CellAttrs = array(); $cstArchivedStudents->MaleorFemale->ViewAttrs = array(); $cstArchivedStudents->MaleorFemale->EditAttrs = array();

		// RaceGroup
		$cstArchivedStudents->RaceGroup->CellCssStyle = ""; $cstArchivedStudents->RaceGroup->CellCssClass = "";
		$cstArchivedStudents->RaceGroup->CellAttrs = array(); $cstArchivedStudents->RaceGroup->ViewAttrs = array(); $cstArchivedStudents->RaceGroup->EditAttrs = array();

		// Disability
		$cstArchivedStudents->Disability->CellCssStyle = ""; $cstArchivedStudents->Disability->CellCssClass = "";
		$cstArchivedStudents->Disability->CellAttrs = array(); $cstArchivedStudents->Disability->ViewAttrs = array(); $cstArchivedStudents->Disability->EditAttrs = array();

		// DisabilityNature
		$cstArchivedStudents->DisabilityNature->CellCssStyle = ""; $cstArchivedStudents->DisabilityNature->CellCssClass = "";
		$cstArchivedStudents->DisabilityNature->CellAttrs = array(); $cstArchivedStudents->DisabilityNature->ViewAttrs = array(); $cstArchivedStudents->DisabilityNature->EditAttrs = array();

		// DisabilityCertificate
		$cstArchivedStudents->DisabilityCertificate->CellCssStyle = ""; $cstArchivedStudents->DisabilityCertificate->CellCssClass = "";
		$cstArchivedStudents->DisabilityCertificate->CellAttrs = array(); $cstArchivedStudents->DisabilityCertificate->ViewAttrs = array(); $cstArchivedStudents->DisabilityCertificate->EditAttrs = array();

		// ProfessionalCouncil
		$cstArchivedStudents->ProfessionalCouncil->CellCssStyle = ""; $cstArchivedStudents->ProfessionalCouncil->CellCssClass = "";
		$cstArchivedStudents->ProfessionalCouncil->CellAttrs = array(); $cstArchivedStudents->ProfessionalCouncil->ViewAttrs = array(); $cstArchivedStudents->ProfessionalCouncil->EditAttrs = array();

		// CategoryReg
		$cstArchivedStudents->CategoryReg->CellCssStyle = ""; $cstArchivedStudents->CategoryReg->CellCssClass = "";
		$cstArchivedStudents->CategoryReg->CellAttrs = array(); $cstArchivedStudents->CategoryReg->ViewAttrs = array(); $cstArchivedStudents->CategoryReg->EditAttrs = array();

		// CouncilRegNumber
		$cstArchivedStudents->CouncilRegNumber->CellCssStyle = ""; $cstArchivedStudents->CouncilRegNumber->CellCssClass = "";
		$cstArchivedStudents->CouncilRegNumber->CellAttrs = array(); $cstArchivedStudents->CouncilRegNumber->ViewAttrs = array(); $cstArchivedStudents->CouncilRegNumber->EditAttrs = array();

		// LengthCandidateReg
		$cstArchivedStudents->LengthCandidateReg->CellCssStyle = ""; $cstArchivedStudents->LengthCandidateReg->CellCssClass = "";
		$cstArchivedStudents->LengthCandidateReg->CellAttrs = array(); $cstArchivedStudents->LengthCandidateReg->ViewAttrs = array(); $cstArchivedStudents->LengthCandidateReg->EditAttrs = array();

		// YearsToProfReg
		$cstArchivedStudents->YearsToProfReg->CellCssStyle = ""; $cstArchivedStudents->YearsToProfReg->CellCssClass = "";
		$cstArchivedStudents->YearsToProfReg->CellAttrs = array(); $cstArchivedStudents->YearsToProfReg->ViewAttrs = array(); $cstArchivedStudents->YearsToProfReg->EditAttrs = array();

		// FirstJobStart
		$cstArchivedStudents->FirstJobStart->CellCssStyle = ""; $cstArchivedStudents->FirstJobStart->CellCssClass = "";
		$cstArchivedStudents->FirstJobStart->CellAttrs = array(); $cstArchivedStudents->FirstJobStart->ViewAttrs = array(); $cstArchivedStudents->FirstJobStart->EditAttrs = array();

		// VolAssociations
		$cstArchivedStudents->VolAssociations->CellCssStyle = ""; $cstArchivedStudents->VolAssociations->CellCssClass = "";
		$cstArchivedStudents->VolAssociations->CellAttrs = array(); $cstArchivedStudents->VolAssociations->ViewAttrs = array(); $cstArchivedStudents->VolAssociations->EditAttrs = array();

		// BelongsTo
		$cstArchivedStudents->BelongsTo->CellCssStyle = ""; $cstArchivedStudents->BelongsTo->CellCssClass = "";
		$cstArchivedStudents->BelongsTo->CellAttrs = array(); $cstArchivedStudents->BelongsTo->ViewAttrs = array(); $cstArchivedStudents->BelongsTo->EditAttrs = array();

		// CESA_SABTACO_MemNum
		$cstArchivedStudents->CESA_SABTACO_MemNum->CellCssStyle = ""; $cstArchivedStudents->CESA_SABTACO_MemNum->CellCssClass = "";
		$cstArchivedStudents->CESA_SABTACO_MemNum->CellAttrs = array(); $cstArchivedStudents->CESA_SABTACO_MemNum->ViewAttrs = array(); $cstArchivedStudents->CESA_SABTACO_MemNum->EditAttrs = array();

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

		// AreaSubDiscipline
		$cstArchivedStudents->AreaSubDiscipline->CellCssStyle = ""; $cstArchivedStudents->AreaSubDiscipline->CellCssClass = "";
		$cstArchivedStudents->AreaSubDiscipline->CellAttrs = array(); $cstArchivedStudents->AreaSubDiscipline->ViewAttrs = array(); $cstArchivedStudents->AreaSubDiscipline->EditAttrs = array();

		// Salary
		$cstArchivedStudents->Salary->CellCssStyle = ""; $cstArchivedStudents->Salary->CellCssClass = "";
		$cstArchivedStudents->Salary->CellAttrs = array(); $cstArchivedStudents->Salary->ViewAttrs = array(); $cstArchivedStudents->Salary->EditAttrs = array();

		// Payslip
		$cstArchivedStudents->Payslip->CellCssStyle = ""; $cstArchivedStudents->Payslip->CellCssClass = "";
		$cstArchivedStudents->Payslip->CellAttrs = array(); $cstArchivedStudents->Payslip->ViewAttrs = array(); $cstArchivedStudents->Payslip->EditAttrs = array();

		// BankAccountName
		$cstArchivedStudents->BankAccountName->CellCssStyle = ""; $cstArchivedStudents->BankAccountName->CellCssClass = "";
		$cstArchivedStudents->BankAccountName->CellAttrs = array(); $cstArchivedStudents->BankAccountName->ViewAttrs = array(); $cstArchivedStudents->BankAccountName->EditAttrs = array();

		// BankAccountBank
		$cstArchivedStudents->BankAccountBank->CellCssStyle = ""; $cstArchivedStudents->BankAccountBank->CellCssClass = "";
		$cstArchivedStudents->BankAccountBank->CellAttrs = array(); $cstArchivedStudents->BankAccountBank->ViewAttrs = array(); $cstArchivedStudents->BankAccountBank->EditAttrs = array();

		// BankAccountBranch
		$cstArchivedStudents->BankAccountBranch->CellCssStyle = ""; $cstArchivedStudents->BankAccountBranch->CellCssClass = "";
		$cstArchivedStudents->BankAccountBranch->CellAttrs = array(); $cstArchivedStudents->BankAccountBranch->ViewAttrs = array(); $cstArchivedStudents->BankAccountBranch->EditAttrs = array();

		// BankAccountNo
		$cstArchivedStudents->BankAccountNo->CellCssStyle = ""; $cstArchivedStudents->BankAccountNo->CellCssClass = "";
		$cstArchivedStudents->BankAccountNo->CellAttrs = array(); $cstArchivedStudents->BankAccountNo->ViewAttrs = array(); $cstArchivedStudents->BankAccountNo->EditAttrs = array();

		// BankAccountProof
		$cstArchivedStudents->BankAccountProof->CellCssStyle = ""; $cstArchivedStudents->BankAccountProof->CellCssClass = "";
		$cstArchivedStudents->BankAccountProof->CellAttrs = array(); $cstArchivedStudents->BankAccountProof->ViewAttrs = array(); $cstArchivedStudents->BankAccountProof->EditAttrs = array();

		// Funding
		$cstArchivedStudents->Funding->CellCssStyle = ""; $cstArchivedStudents->Funding->CellCssClass = "";
		$cstArchivedStudents->Funding->CellAttrs = array(); $cstArchivedStudents->Funding->ViewAttrs = array(); $cstArchivedStudents->Funding->EditAttrs = array();

		// CWDTP
		$cstArchivedStudents->CWDTP->CellCssStyle = ""; $cstArchivedStudents->CWDTP->CellCssClass = "";
		$cstArchivedStudents->CWDTP->CellAttrs = array(); $cstArchivedStudents->CWDTP->ViewAttrs = array(); $cstArchivedStudents->CWDTP->EditAttrs = array();

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

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

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

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

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

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

		// MentorID
		$cstArchivedStudents->MentorID->CellCssStyle = ""; $cstArchivedStudents->MentorID->CellCssClass = "";
		$cstArchivedStudents->MentorID->CellAttrs = array(); $cstArchivedStudents->MentorID->ViewAttrs = array(); $cstArchivedStudents->MentorID->EditAttrs = array();

		// EmployerID
		$cstArchivedStudents->EmployerID->CellCssStyle = ""; $cstArchivedStudents->EmployerID->CellCssClass = "";
		$cstArchivedStudents->EmployerID->CellAttrs = array(); $cstArchivedStudents->EmployerID->ViewAttrs = array(); $cstArchivedStudents->EmployerID->EditAttrs = array();

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

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

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

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

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

		// SupervisorName
		$cstArchivedStudents->SupervisorName->CellCssStyle = ""; $cstArchivedStudents->SupervisorName->CellCssClass = "";
		$cstArchivedStudents->SupervisorName->CellAttrs = array(); $cstArchivedStudents->SupervisorName->ViewAttrs = array(); $cstArchivedStudents->SupervisorName->EditAttrs = array();

		// SupervisorDesig
		$cstArchivedStudents->SupervisorDesig->CellCssStyle = ""; $cstArchivedStudents->SupervisorDesig->CellCssClass = "";
		$cstArchivedStudents->SupervisorDesig->CellAttrs = array(); $cstArchivedStudents->SupervisorDesig->ViewAttrs = array(); $cstArchivedStudents->SupervisorDesig->EditAttrs = array();

		// SupervisorProfRegNo
		$cstArchivedStudents->SupervisorProfRegNo->CellCssStyle = ""; $cstArchivedStudents->SupervisorProfRegNo->CellCssClass = "";
		$cstArchivedStudents->SupervisorProfRegNo->CellAttrs = array(); $cstArchivedStudents->SupervisorProfRegNo->ViewAttrs = array(); $cstArchivedStudents->SupervisorProfRegNo->EditAttrs = array();

		// SupervisorTelNo
		$cstArchivedStudents->SupervisorTelNo->CellCssStyle = ""; $cstArchivedStudents->SupervisorTelNo->CellCssClass = "";
		$cstArchivedStudents->SupervisorTelNo->CellAttrs = array(); $cstArchivedStudents->SupervisorTelNo->ViewAttrs = array(); $cstArchivedStudents->SupervisorTelNo->EditAttrs = array();

		// SupervisorCellNo
		$cstArchivedStudents->SupervisorCellNo->CellCssStyle = ""; $cstArchivedStudents->SupervisorCellNo->CellCssClass = "";
		$cstArchivedStudents->SupervisorCellNo->CellAttrs = array(); $cstArchivedStudents->SupervisorCellNo->ViewAttrs = array(); $cstArchivedStudents->SupervisorCellNo->EditAttrs = array();

		// SupervisorEmail
		$cstArchivedStudents->SupervisorEmail->CellCssStyle = ""; $cstArchivedStudents->SupervisorEmail->CellCssClass = "";
		$cstArchivedStudents->SupervisorEmail->CellAttrs = array(); $cstArchivedStudents->SupervisorEmail->ViewAttrs = array(); $cstArchivedStudents->SupervisorEmail->EditAttrs = array();

		// EducationalInst
		$cstArchivedStudents->EducationalInst->CellCssStyle = ""; $cstArchivedStudents->EducationalInst->CellCssClass = "";
		$cstArchivedStudents->EducationalInst->CellAttrs = array(); $cstArchivedStudents->EducationalInst->ViewAttrs = array(); $cstArchivedStudents->EducationalInst->EditAttrs = array();

		// Qualifications
		$cstArchivedStudents->Qualifications->CellCssStyle = ""; $cstArchivedStudents->Qualifications->CellCssClass = "";
		$cstArchivedStudents->Qualifications->CellAttrs = array(); $cstArchivedStudents->Qualifications->ViewAttrs = array(); $cstArchivedStudents->Qualifications->EditAttrs = array();

		// DateFinalExam
		$cstArchivedStudents->DateFinalExam->CellCssStyle = ""; $cstArchivedStudents->DateFinalExam->CellCssClass = "";
		$cstArchivedStudents->DateFinalExam->CellAttrs = array(); $cstArchivedStudents->DateFinalExam->ViewAttrs = array(); $cstArchivedStudents->DateFinalExam->EditAttrs = array();

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

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

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

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

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

		// MentorUndertaking
		$cstArchivedStudents->MentorUndertaking->CellCssStyle = ""; $cstArchivedStudents->MentorUndertaking->CellCssClass = "";
		$cstArchivedStudents->MentorUndertaking->CellAttrs = array(); $cstArchivedStudents->MentorUndertaking->ViewAttrs = array(); $cstArchivedStudents->MentorUndertaking->EditAttrs = array();

		// CandUUndertaking
		$cstArchivedStudents->CandUUndertaking->CellCssStyle = ""; $cstArchivedStudents->CandUUndertaking->CellCssClass = "";
		$cstArchivedStudents->CandUUndertaking->CellAttrs = array(); $cstArchivedStudents->CandUUndertaking->ViewAttrs = array(); $cstArchivedStudents->CandUUndertaking->EditAttrs = array();

		// CompanyCandidatePolicy
		$cstArchivedStudents->CompanyCandidatePolicy->CellCssStyle = ""; $cstArchivedStudents->CompanyCandidatePolicy->CellCssClass = "";
		$cstArchivedStudents->CompanyCandidatePolicy->CellAttrs = array(); $cstArchivedStudents->CompanyCandidatePolicy->ViewAttrs = array(); $cstArchivedStudents->CompanyCandidatePolicy->EditAttrs = array();

		// ResidenceProof
		$cstArchivedStudents->ResidenceProof->CellCssStyle = ""; $cstArchivedStudents->ResidenceProof->CellCssClass = "";
		$cstArchivedStudents->ResidenceProof->CellAttrs = array(); $cstArchivedStudents->ResidenceProof->ViewAttrs = array(); $cstArchivedStudents->ResidenceProof->EditAttrs = array();

		// SignedAppForm
		$cstArchivedStudents->SignedAppForm->CellCssStyle = ""; $cstArchivedStudents->SignedAppForm->CellCssClass = "";
		$cstArchivedStudents->SignedAppForm->CellAttrs = array(); $cstArchivedStudents->SignedAppForm->ViewAttrs = array(); $cstArchivedStudents->SignedAppForm->EditAttrs = array();

		// Photograph
		$cstArchivedStudents->Photograph->CellCssStyle = ""; $cstArchivedStudents->Photograph->CellCssClass = "";
		$cstArchivedStudents->Photograph->CellAttrs = array(); $cstArchivedStudents->Photograph->ViewAttrs = array(); $cstArchivedStudents->Photograph->EditAttrs = array();

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

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

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

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

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

			// SelectionCategory
			$cstArchivedStudents->SelectionCategory->ViewValue = $cstArchivedStudents->SelectionCategory->CurrentValue;
			$cstArchivedStudents->SelectionCategory->CssStyle = "";
			$cstArchivedStudents->SelectionCategory->CssClass = "";
			$cstArchivedStudents->SelectionCategory->ViewCustomAttributes = "";

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

			// Initials
			$cstArchivedStudents->Initials->ViewValue = $cstArchivedStudents->Initials->CurrentValue;
			$cstArchivedStudents->Initials->CssStyle = "";
			$cstArchivedStudents->Initials->CssClass = "";
			$cstArchivedStudents->Initials->ViewCustomAttributes = "";

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

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

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

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

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

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

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

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

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

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

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

			// VATNo
			$cstArchivedStudents->VATNo->ViewValue = $cstArchivedStudents->VATNo->CurrentValue;
			$cstArchivedStudents->VATNo->CssStyle = "";
			$cstArchivedStudents->VATNo->CssClass = "";
			$cstArchivedStudents->VATNo->ViewCustomAttributes = "";

			// JobTitle
			$cstArchivedStudents->JobTitle->ViewValue = $cstArchivedStudents->JobTitle->CurrentValue;
			$cstArchivedStudents->JobTitle->CssStyle = "";
			$cstArchivedStudents->JobTitle->CssClass = "";
			$cstArchivedStudents->JobTitle->ViewCustomAttributes = "";

			// DateofBirth
			$cstArchivedStudents->DateofBirth->ViewValue = $cstArchivedStudents->DateofBirth->CurrentValue;
			$cstArchivedStudents->DateofBirth->ViewValue = ew_FormatDateTime($cstArchivedStudents->DateofBirth->ViewValue, 5);
			$cstArchivedStudents->DateofBirth->CssStyle = "";
			$cstArchivedStudents->DateofBirth->CssClass = "";
			$cstArchivedStudents->DateofBirth->ViewCustomAttributes = "";

			// PlaceofBirth
			$cstArchivedStudents->PlaceofBirth->ViewValue = $cstArchivedStudents->PlaceofBirth->CurrentValue;
			$cstArchivedStudents->PlaceofBirth->CssStyle = "";
			$cstArchivedStudents->PlaceofBirth->CssClass = "";
			$cstArchivedStudents->PlaceofBirth->ViewCustomAttributes = "";

			// CountryofBirth
			$cstArchivedStudents->CountryofBirth->ViewValue = $cstArchivedStudents->CountryofBirth->CurrentValue;
			$cstArchivedStudents->CountryofBirth->CssStyle = "";
			$cstArchivedStudents->CountryofBirth->CssClass = "";
			$cstArchivedStudents->CountryofBirth->ViewCustomAttributes = "";

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

			// MaleorFemale
			$cstArchivedStudents->MaleorFemale->ViewValue = $cstArchivedStudents->MaleorFemale->CurrentValue;
			$cstArchivedStudents->MaleorFemale->CssStyle = "";
			$cstArchivedStudents->MaleorFemale->CssClass = "";
			$cstArchivedStudents->MaleorFemale->ViewCustomAttributes = "";

			// RaceGroup
			$cstArchivedStudents->RaceGroup->ViewValue = $cstArchivedStudents->RaceGroup->CurrentValue;
			$cstArchivedStudents->RaceGroup->CssStyle = "";
			$cstArchivedStudents->RaceGroup->CssClass = "";
			$cstArchivedStudents->RaceGroup->ViewCustomAttributes = "";

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

			// DisabilityNature
			$cstArchivedStudents->DisabilityNature->ViewValue = $cstArchivedStudents->DisabilityNature->CurrentValue;
			$cstArchivedStudents->DisabilityNature->CssStyle = "";
			$cstArchivedStudents->DisabilityNature->CssClass = "";
			$cstArchivedStudents->DisabilityNature->ViewCustomAttributes = "";

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

			// ProfessionalCouncil
			$cstArchivedStudents->ProfessionalCouncil->ViewValue = $cstArchivedStudents->ProfessionalCouncil->CurrentValue;
			$cstArchivedStudents->ProfessionalCouncil->CssStyle = "";
			$cstArchivedStudents->ProfessionalCouncil->CssClass = "";
			$cstArchivedStudents->ProfessionalCouncil->ViewCustomAttributes = "";

			// CategoryReg
			$cstArchivedStudents->CategoryReg->ViewValue = $cstArchivedStudents->CategoryReg->CurrentValue;
			$cstArchivedStudents->CategoryReg->CssStyle = "";
			$cstArchivedStudents->CategoryReg->CssClass = "";
			$cstArchivedStudents->CategoryReg->ViewCustomAttributes = "";

			// CouncilRegNumber
			$cstArchivedStudents->CouncilRegNumber->ViewValue = $cstArchivedStudents->CouncilRegNumber->CurrentValue;
			$cstArchivedStudents->CouncilRegNumber->CssStyle = "";
			$cstArchivedStudents->CouncilRegNumber->CssClass = "";
			$cstArchivedStudents->CouncilRegNumber->ViewCustomAttributes = "";

			// LengthCandidateReg
			$cstArchivedStudents->LengthCandidateReg->ViewValue = $cstArchivedStudents->LengthCandidateReg->CurrentValue;
			$cstArchivedStudents->LengthCandidateReg->CssStyle = "";
			$cstArchivedStudents->LengthCandidateReg->CssClass = "";
			$cstArchivedStudents->LengthCandidateReg->ViewCustomAttributes = "";

			// YearsToProfReg
			$cstArchivedStudents->YearsToProfReg->ViewValue = $cstArchivedStudents->YearsToProfReg->CurrentValue;
			$cstArchivedStudents->YearsToProfReg->CssStyle = "";
			$cstArchivedStudents->YearsToProfReg->CssClass = "";
			$cstArchivedStudents->YearsToProfReg->ViewCustomAttributes = "";

			// FirstJobStart
			$cstArchivedStudents->FirstJobStart->ViewValue = $cstArchivedStudents->FirstJobStart->CurrentValue;
			$cstArchivedStudents->FirstJobStart->CssStyle = "";
			$cstArchivedStudents->FirstJobStart->CssClass = "";
			$cstArchivedStudents->FirstJobStart->ViewCustomAttributes = "";

			// VolAssociations
			$cstArchivedStudents->VolAssociations->ViewValue = $cstArchivedStudents->VolAssociations->CurrentValue;
			$cstArchivedStudents->VolAssociations->CssStyle = "";
			$cstArchivedStudents->VolAssociations->CssClass = "";
			$cstArchivedStudents->VolAssociations->ViewCustomAttributes = "";

			// BelongsTo
			$cstArchivedStudents->BelongsTo->ViewValue = $cstArchivedStudents->BelongsTo->CurrentValue;
			$cstArchivedStudents->BelongsTo->CssStyle = "";
			$cstArchivedStudents->BelongsTo->CssClass = "";
			$cstArchivedStudents->BelongsTo->ViewCustomAttributes = "";

			// CESA_SABTACO_MemNum
			$cstArchivedStudents->CESA_SABTACO_MemNum->ViewValue = $cstArchivedStudents->CESA_SABTACO_MemNum->CurrentValue;
			$cstArchivedStudents->CESA_SABTACO_MemNum->CssStyle = "";
			$cstArchivedStudents->CESA_SABTACO_MemNum->CssClass = "";
			$cstArchivedStudents->CESA_SABTACO_MemNum->ViewCustomAttributes = "";

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

			// AreaSubDiscipline
			$cstArchivedStudents->AreaSubDiscipline->ViewValue = $cstArchivedStudents->AreaSubDiscipline->CurrentValue;
			$cstArchivedStudents->AreaSubDiscipline->CssStyle = "";
			$cstArchivedStudents->AreaSubDiscipline->CssClass = "";
			$cstArchivedStudents->AreaSubDiscipline->ViewCustomAttributes = "";

			// Salary
			$cstArchivedStudents->Salary->ViewValue = $cstArchivedStudents->Salary->CurrentValue;
			$cstArchivedStudents->Salary->CssStyle = "";
			$cstArchivedStudents->Salary->CssClass = "";
			$cstArchivedStudents->Salary->ViewCustomAttributes = "";

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

			// BankAccountName
			$cstArchivedStudents->BankAccountName->ViewValue = $cstArchivedStudents->BankAccountName->CurrentValue;
			$cstArchivedStudents->BankAccountName->CssStyle = "";
			$cstArchivedStudents->BankAccountName->CssClass = "";
			$cstArchivedStudents->BankAccountName->ViewCustomAttributes = "";

			// BankAccountBank
			$cstArchivedStudents->BankAccountBank->ViewValue = $cstArchivedStudents->BankAccountBank->CurrentValue;
			$cstArchivedStudents->BankAccountBank->CssStyle = "";
			$cstArchivedStudents->BankAccountBank->CssClass = "";
			$cstArchivedStudents->BankAccountBank->ViewCustomAttributes = "";

			// BankAccountBranch
			$cstArchivedStudents->BankAccountBranch->ViewValue = $cstArchivedStudents->BankAccountBranch->CurrentValue;
			$cstArchivedStudents->BankAccountBranch->CssStyle = "";
			$cstArchivedStudents->BankAccountBranch->CssClass = "";
			$cstArchivedStudents->BankAccountBranch->ViewCustomAttributes = "";

			// BankAccountNo
			$cstArchivedStudents->BankAccountNo->ViewValue = $cstArchivedStudents->BankAccountNo->CurrentValue;
			$cstArchivedStudents->BankAccountNo->CssStyle = "";
			$cstArchivedStudents->BankAccountNo->CssClass = "";
			$cstArchivedStudents->BankAccountNo->ViewCustomAttributes = "";

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

			// Funding
			$cstArchivedStudents->Funding->ViewValue = $cstArchivedStudents->Funding->CurrentValue;
			$cstArchivedStudents->Funding->CssStyle = "";
			$cstArchivedStudents->Funding->CssClass = "";
			$cstArchivedStudents->Funding->ViewCustomAttributes = "";

			// CWDTP
			$cstArchivedStudents->CWDTP->ViewValue = $cstArchivedStudents->CWDTP->CurrentValue;
			$cstArchivedStudents->CWDTP->CssStyle = "";
			$cstArchivedStudents->CWDTP->CssClass = "";
			$cstArchivedStudents->CWDTP->ViewCustomAttributes = "";

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

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

			// BookedByTelNo
			$cstArchivedStudents->BookedByTelNo->ViewValue = $cstArchivedStudents->BookedByTelNo->CurrentValue;
			$cstArchivedStudents->BookedByTelNo->CssStyle = "";
			$cstArchivedStudents->BookedByTelNo->CssClass = "";
			$cstArchivedStudents->BookedByTelNo->ViewCustomAttributes = "";

			// BookedByFaxNo
			$cstArchivedStudents->BookedByFaxNo->ViewValue = $cstArchivedStudents->BookedByFaxNo->CurrentValue;
			$cstArchivedStudents->BookedByFaxNo->CssStyle = "";
			$cstArchivedStudents->BookedByFaxNo->CssClass = "";
			$cstArchivedStudents->BookedByFaxNo->ViewCustomAttributes = "";

			// BookedByCellNo
			$cstArchivedStudents->BookedByCellNo->ViewValue = $cstArchivedStudents->BookedByCellNo->CurrentValue;
			$cstArchivedStudents->BookedByCellNo->CssStyle = "";
			$cstArchivedStudents->BookedByCellNo->CssClass = "";
			$cstArchivedStudents->BookedByCellNo->ViewCustomAttributes = "";

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

			// MentorID
			if (strval($cstArchivedStudents->MentorID->CurrentValue) <> "") {
				$sFilterWrk = "`CCMMentorID` = " . ew_AdjustSql($cstArchivedStudents->MentorID->CurrentValue) . "";
			$sSqlWrk = "SELECT `Surname`, `FirstName` FROM `CCMMentors`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `FirstName`";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$cstArchivedStudents->MentorID->ViewValue = $rswrk->fields('Surname');
					$cstArchivedStudents->MentorID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('FirstName');
					$rswrk->Close();
				} else {
					$cstArchivedStudents->MentorID->ViewValue = $cstArchivedStudents->MentorID->CurrentValue;
				}
			} else {
				$cstArchivedStudents->MentorID->ViewValue = NULL;
			}
			$cstArchivedStudents->MentorID->CssStyle = "";
			$cstArchivedStudents->MentorID->CssClass = "";
			$cstArchivedStudents->MentorID->ViewCustomAttributes = "";

			// EmployerID
			if (strval($cstArchivedStudents->EmployerID->CurrentValue) <> "") {
				$sFilterWrk = "`CCMEmployerID` = " . ew_AdjustSql($cstArchivedStudents->EmployerID->CurrentValue) . "";
			$sSqlWrk = "SELECT `Organisation`, `Surname` FROM `CCMEmployers`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `Organisation`";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$cstArchivedStudents->EmployerID->ViewValue = $rswrk->fields('Organisation');
					$cstArchivedStudents->EmployerID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('Surname');
					$rswrk->Close();
				} else {
					$cstArchivedStudents->EmployerID->ViewValue = $cstArchivedStudents->EmployerID->CurrentValue;
				}
			} else {
				$cstArchivedStudents->EmployerID->ViewValue = NULL;
			}
			$cstArchivedStudents->EmployerID->CssStyle = "";
			$cstArchivedStudents->EmployerID->CssClass = "";
			$cstArchivedStudents->EmployerID->ViewCustomAttributes = "";

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

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

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

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

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

			// SupervisorName
			$cstArchivedStudents->SupervisorName->ViewValue = $cstArchivedStudents->SupervisorName->CurrentValue;
			$cstArchivedStudents->SupervisorName->CssStyle = "";
			$cstArchivedStudents->SupervisorName->CssClass = "";
			$cstArchivedStudents->SupervisorName->ViewCustomAttributes = "";

			// SupervisorDesig
			$cstArchivedStudents->SupervisorDesig->ViewValue = $cstArchivedStudents->SupervisorDesig->CurrentValue;
			$cstArchivedStudents->SupervisorDesig->CssStyle = "";
			$cstArchivedStudents->SupervisorDesig->CssClass = "";
			$cstArchivedStudents->SupervisorDesig->ViewCustomAttributes = "";

			// SupervisorProfRegNo
			$cstArchivedStudents->SupervisorProfRegNo->ViewValue = $cstArchivedStudents->SupervisorProfRegNo->CurrentValue;
			$cstArchivedStudents->SupervisorProfRegNo->CssStyle = "";
			$cstArchivedStudents->SupervisorProfRegNo->CssClass = "";
			$cstArchivedStudents->SupervisorProfRegNo->ViewCustomAttributes = "";

			// SupervisorTelNo
			$cstArchivedStudents->SupervisorTelNo->ViewValue = $cstArchivedStudents->SupervisorTelNo->CurrentValue;
			$cstArchivedStudents->SupervisorTelNo->CssStyle = "";
			$cstArchivedStudents->SupervisorTelNo->CssClass = "";
			$cstArchivedStudents->SupervisorTelNo->ViewCustomAttributes = "";

			// SupervisorCellNo
			$cstArchivedStudents->SupervisorCellNo->ViewValue = $cstArchivedStudents->SupervisorCellNo->CurrentValue;
			$cstArchivedStudents->SupervisorCellNo->CssStyle = "";
			$cstArchivedStudents->SupervisorCellNo->CssClass = "";
			$cstArchivedStudents->SupervisorCellNo->ViewCustomAttributes = "";

			// SupervisorEmail
			$cstArchivedStudents->SupervisorEmail->ViewValue = $cstArchivedStudents->SupervisorEmail->CurrentValue;
			$cstArchivedStudents->SupervisorEmail->CssStyle = "";
			$cstArchivedStudents->SupervisorEmail->CssClass = "";
			$cstArchivedStudents->SupervisorEmail->ViewCustomAttributes = "";

			// EducationalInst
			$cstArchivedStudents->EducationalInst->ViewValue = $cstArchivedStudents->EducationalInst->CurrentValue;
			$cstArchivedStudents->EducationalInst->CssStyle = "";
			$cstArchivedStudents->EducationalInst->CssClass = "";
			$cstArchivedStudents->EducationalInst->ViewCustomAttributes = "";

			// Qualifications
			$cstArchivedStudents->Qualifications->ViewValue = $cstArchivedStudents->Qualifications->CurrentValue;
			$cstArchivedStudents->Qualifications->CssStyle = "";
			$cstArchivedStudents->Qualifications->CssClass = "";
			$cstArchivedStudents->Qualifications->ViewCustomAttributes = "";

			// DateFinalExam
			$cstArchivedStudents->DateFinalExam->ViewValue = $cstArchivedStudents->DateFinalExam->CurrentValue;
			$cstArchivedStudents->DateFinalExam->CssStyle = "";
			$cstArchivedStudents->DateFinalExam->CssClass = "";
			$cstArchivedStudents->DateFinalExam->ViewCustomAttributes = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// BlockAccess
			$cstArchivedStudents->BlockAccess->ViewValue = $cstArchivedStudents->BlockAccess->CurrentValue;
			$cstArchivedStudents->BlockAccess->CssStyle = "";
			$cstArchivedStudents->BlockAccess->CssClass = "";
			$cstArchivedStudents->BlockAccess->ViewCustomAttributes = "";

			// SABTACO
			$cstArchivedStudents->SABTACO->ViewValue = $cstArchivedStudents->SABTACO->CurrentValue;
			$cstArchivedStudents->SABTACO->CssStyle = "";
			$cstArchivedStudents->SABTACO->CssClass = "";
			$cstArchivedStudents->SABTACO->ViewCustomAttributes = "";

			// CESA
			$cstArchivedStudents->CESA->ViewValue = $cstArchivedStudents->CESA->CurrentValue;
			$cstArchivedStudents->CESA->CssStyle = "";
			$cstArchivedStudents->CESA->CssClass = "";
			$cstArchivedStudents->CESA->ViewCustomAttributes = "";

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

			// SelectionCategory
			$cstArchivedStudents->SelectionCategory->HrefValue = "";
			$cstArchivedStudents->SelectionCategory->TooltipValue = "";

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

			// Initials
			$cstArchivedStudents->Initials->HrefValue = "";
			$cstArchivedStudents->Initials->TooltipValue = "";

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

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

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

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

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

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

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

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

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

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

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

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

			// JobTitle
			$cstArchivedStudents->JobTitle->HrefValue = "";
			$cstArchivedStudents->JobTitle->TooltipValue = "";

			// DateofBirth
			$cstArchivedStudents->DateofBirth->HrefValue = "";
			$cstArchivedStudents->DateofBirth->TooltipValue = "";

			// PlaceofBirth
			$cstArchivedStudents->PlaceofBirth->HrefValue = "";
			$cstArchivedStudents->PlaceofBirth->TooltipValue = "";

			// CountryofBirth
			$cstArchivedStudents->CountryofBirth->HrefValue = "";
			$cstArchivedStudents->CountryofBirth->TooltipValue = "";

			// Province
			$cstArchivedStudents->Province->HrefValue = "";
			$cstArchivedStudents->Province->TooltipValue = "";

			// MaleorFemale
			$cstArchivedStudents->MaleorFemale->HrefValue = "";
			$cstArchivedStudents->MaleorFemale->TooltipValue = "";

			// RaceGroup
			$cstArchivedStudents->RaceGroup->HrefValue = "";
			$cstArchivedStudents->RaceGroup->TooltipValue = "";

			// Disability
			$cstArchivedStudents->Disability->HrefValue = "";
			$cstArchivedStudents->Disability->TooltipValue = "";

			// DisabilityNature
			$cstArchivedStudents->DisabilityNature->HrefValue = "";
			$cstArchivedStudents->DisabilityNature->TooltipValue = "";

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

			// ProfessionalCouncil
			$cstArchivedStudents->ProfessionalCouncil->HrefValue = "";
			$cstArchivedStudents->ProfessionalCouncil->TooltipValue = "";

			// CategoryReg
			$cstArchivedStudents->CategoryReg->HrefValue = "";
			$cstArchivedStudents->CategoryReg->TooltipValue = "";

			// CouncilRegNumber
			$cstArchivedStudents->CouncilRegNumber->HrefValue = "";
			$cstArchivedStudents->CouncilRegNumber->TooltipValue = "";

			// LengthCandidateReg
			$cstArchivedStudents->LengthCandidateReg->HrefValue = "";
			$cstArchivedStudents->LengthCandidateReg->TooltipValue = "";

			// YearsToProfReg
			$cstArchivedStudents->YearsToProfReg->HrefValue = "";
			$cstArchivedStudents->YearsToProfReg->TooltipValue = "";

			// FirstJobStart
			$cstArchivedStudents->FirstJobStart->HrefValue = "";
			$cstArchivedStudents->FirstJobStart->TooltipValue = "";

			// VolAssociations
			$cstArchivedStudents->VolAssociations->HrefValue = "";
			$cstArchivedStudents->VolAssociations->TooltipValue = "";

			// BelongsTo
			$cstArchivedStudents->BelongsTo->HrefValue = "";
			$cstArchivedStudents->BelongsTo->TooltipValue = "";

			// CESA_SABTACO_MemNum
			$cstArchivedStudents->CESA_SABTACO_MemNum->HrefValue = "";
			$cstArchivedStudents->CESA_SABTACO_MemNum->TooltipValue = "";

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

			// AreaSubDiscipline
			$cstArchivedStudents->AreaSubDiscipline->HrefValue = "";
			$cstArchivedStudents->AreaSubDiscipline->TooltipValue = "";

			// Salary
			$cstArchivedStudents->Salary->HrefValue = "";
			$cstArchivedStudents->Salary->TooltipValue = "";

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

			// BankAccountName
			$cstArchivedStudents->BankAccountName->HrefValue = "";
			$cstArchivedStudents->BankAccountName->TooltipValue = "";

			// BankAccountBank
			$cstArchivedStudents->BankAccountBank->HrefValue = "";
			$cstArchivedStudents->BankAccountBank->TooltipValue = "";

			// BankAccountBranch
			$cstArchivedStudents->BankAccountBranch->HrefValue = "";
			$cstArchivedStudents->BankAccountBranch->TooltipValue = "";

			// BankAccountNo
			$cstArchivedStudents->BankAccountNo->HrefValue = "";
			$cstArchivedStudents->BankAccountNo->TooltipValue = "";

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

			// Funding
			$cstArchivedStudents->Funding->HrefValue = "";
			$cstArchivedStudents->Funding->TooltipValue = "";

			// CWDTP
			$cstArchivedStudents->CWDTP->HrefValue = "";
			$cstArchivedStudents->CWDTP->TooltipValue = "";

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

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

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

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

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

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

			// MentorID
			$cstArchivedStudents->MentorID->HrefValue = "";
			$cstArchivedStudents->MentorID->TooltipValue = "";

			// EmployerID
			$cstArchivedStudents->EmployerID->HrefValue = "";
			$cstArchivedStudents->EmployerID->TooltipValue = "";

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

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

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

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

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

			// SupervisorName
			$cstArchivedStudents->SupervisorName->HrefValue = "";
			$cstArchivedStudents->SupervisorName->TooltipValue = "";

			// SupervisorDesig
			$cstArchivedStudents->SupervisorDesig->HrefValue = "";
			$cstArchivedStudents->SupervisorDesig->TooltipValue = "";

			// SupervisorProfRegNo
			$cstArchivedStudents->SupervisorProfRegNo->HrefValue = "";
			$cstArchivedStudents->SupervisorProfRegNo->TooltipValue = "";

			// SupervisorTelNo
			$cstArchivedStudents->SupervisorTelNo->HrefValue = "";
			$cstArchivedStudents->SupervisorTelNo->TooltipValue = "";

			// SupervisorCellNo
			$cstArchivedStudents->SupervisorCellNo->HrefValue = "";
			$cstArchivedStudents->SupervisorCellNo->TooltipValue = "";

			// SupervisorEmail
			$cstArchivedStudents->SupervisorEmail->HrefValue = "";
			$cstArchivedStudents->SupervisorEmail->TooltipValue = "";

			// EducationalInst
			$cstArchivedStudents->EducationalInst->HrefValue = "";
			$cstArchivedStudents->EducationalInst->TooltipValue = "";

			// Qualifications
			$cstArchivedStudents->Qualifications->HrefValue = "";
			$cstArchivedStudents->Qualifications->TooltipValue = "";

			// DateFinalExam
			$cstArchivedStudents->DateFinalExam->HrefValue = "";
			$cstArchivedStudents->DateFinalExam->TooltipValue = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// BlockAccess
			$cstArchivedStudents->BlockAccess->HrefValue = "";
			$cstArchivedStudents->BlockAccess->TooltipValue = "";
		}

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

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

		// Load recordset
		if ($bSelectLimit) {
			$this->lTotalRecs = $cstArchivedStudents->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 ($cstArchivedStudents->Export == "xml") {
			$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
			$XmlDoc->AddRoot();
		} else {
			$ExportDoc = new cExportDocument($cstArchivedStudents, "v");
			$ExportDoc->ExportHeader();
			if ($ExportDoc->Horizontal) { // Horizontal format, write header
				$ExportDoc->BeginExportRow();
				$ExportDoc->ExportCaption($cstArchivedStudents->Archived);
				$ExportDoc->ExportCaption($cstArchivedStudents->SelectionCategory);
				$ExportDoc->ExportCaption($cstArchivedStudents->Title);
				$ExportDoc->ExportCaption($cstArchivedStudents->Initials);
				$ExportDoc->ExportCaption($cstArchivedStudents->FirstName);
				$ExportDoc->ExportCaption($cstArchivedStudents->Surname);
				$ExportDoc->ExportCaption($cstArchivedStudents->KnownAs);
				$ExportDoc->ExportCaption($cstArchivedStudents->IDNumber);
				$ExportDoc->ExportCaption($cstArchivedStudents->Telephone);
				$ExportDoc->ExportCaption($cstArchivedStudents->Cellphone);
				$ExportDoc->ExportCaption($cstArchivedStudents->EmailAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents->WorkAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents->PostalAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents->Department);
				$ExportDoc->ExportCaption($cstArchivedStudents->Organisation);
				$ExportDoc->ExportCaption($cstArchivedStudents->VATNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->JobTitle);
				$ExportDoc->ExportCaption($cstArchivedStudents->DateofBirth);
				$ExportDoc->ExportCaption($cstArchivedStudents->PlaceofBirth);
				$ExportDoc->ExportCaption($cstArchivedStudents->CountryofBirth);
				$ExportDoc->ExportCaption($cstArchivedStudents->Province);
				$ExportDoc->ExportCaption($cstArchivedStudents->MaleorFemale);
				$ExportDoc->ExportCaption($cstArchivedStudents->RaceGroup);
				$ExportDoc->ExportCaption($cstArchivedStudents->Disability);
				$ExportDoc->ExportCaption($cstArchivedStudents->DisabilityNature);
				$ExportDoc->ExportCaption($cstArchivedStudents->DisabilityCertificate);
				$ExportDoc->ExportCaption($cstArchivedStudents->ProfessionalCouncil);
				$ExportDoc->ExportCaption($cstArchivedStudents->CategoryReg);
				$ExportDoc->ExportCaption($cstArchivedStudents->CouncilRegNumber);
				$ExportDoc->ExportCaption($cstArchivedStudents->LengthCandidateReg);
				$ExportDoc->ExportCaption($cstArchivedStudents->YearsToProfReg);
				$ExportDoc->ExportCaption($cstArchivedStudents->FirstJobStart);
				$ExportDoc->ExportCaption($cstArchivedStudents->VolAssociations);
				$ExportDoc->ExportCaption($cstArchivedStudents->BelongsTo);
				$ExportDoc->ExportCaption($cstArchivedStudents->CESA_SABTACO_MemNum);
				$ExportDoc->ExportCaption($cstArchivedStudents->AreaDiscipline);
				$ExportDoc->ExportCaption($cstArchivedStudents->AreaSubDiscipline);
				$ExportDoc->ExportCaption($cstArchivedStudents->Salary);
				$ExportDoc->ExportCaption($cstArchivedStudents->Payslip);
				$ExportDoc->ExportCaption($cstArchivedStudents->BankAccountName);
				$ExportDoc->ExportCaption($cstArchivedStudents->BankAccountBank);
				$ExportDoc->ExportCaption($cstArchivedStudents->BankAccountBranch);
				$ExportDoc->ExportCaption($cstArchivedStudents->BankAccountNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->BankAccountProof);
				$ExportDoc->ExportCaption($cstArchivedStudents->Funding);
				$ExportDoc->ExportCaption($cstArchivedStudents->CWDTP);
				$ExportDoc->ExportCaption($cstArchivedStudents->BookedByName);
				$ExportDoc->ExportCaption($cstArchivedStudents->BookedByDesignation);
				$ExportDoc->ExportCaption($cstArchivedStudents->BookedByTelNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->BookedByFaxNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->BookedByCellNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->BookedByEmail);
				$ExportDoc->ExportCaption($cstArchivedStudents->MentorID);
				$ExportDoc->ExportCaption($cstArchivedStudents->EmployerID);
				$ExportDoc->ExportCaption($cstArchivedStudents->HRManagerName);
				$ExportDoc->ExportCaption($cstArchivedStudents->HRManagerDesignation);
				$ExportDoc->ExportCaption($cstArchivedStudents->HRManagerTelNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->HRManagerCellNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->HRManagerEmail);
				$ExportDoc->ExportCaption($cstArchivedStudents->SupervisorName);
				$ExportDoc->ExportCaption($cstArchivedStudents->SupervisorDesig);
				$ExportDoc->ExportCaption($cstArchivedStudents->SupervisorProfRegNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->SupervisorTelNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->SupervisorCellNo);
				$ExportDoc->ExportCaption($cstArchivedStudents->SupervisorEmail);
				$ExportDoc->ExportCaption($cstArchivedStudents->EducationalInst);
				$ExportDoc->ExportCaption($cstArchivedStudents->Qualifications);
				$ExportDoc->ExportCaption($cstArchivedStudents->DateFinalExam);
				$ExportDoc->ExportCaption($cstArchivedStudents->IDFile);
				$ExportDoc->ExportCaption($cstArchivedStudents->CVFile);
				$ExportDoc->ExportCaption($cstArchivedStudents->QualCertificate1);
				$ExportDoc->ExportCaption($cstArchivedStudents->QualCertificate2);
				$ExportDoc->ExportCaption($cstArchivedStudents->QualCertificate3);
				$ExportDoc->ExportCaption($cstArchivedStudents->MentorUndertaking);
				$ExportDoc->ExportCaption($cstArchivedStudents->CandUUndertaking);
				$ExportDoc->ExportCaption($cstArchivedStudents->CompanyCandidatePolicy);
				$ExportDoc->ExportCaption($cstArchivedStudents->ResidenceProof);
				$ExportDoc->ExportCaption($cstArchivedStudents->SignedAppForm);
				$ExportDoc->ExportCaption($cstArchivedStudents->Photograph);
				$ExportDoc->ExportCaption($cstArchivedStudents->StudentNumber);
				$ExportDoc->ExportCaption($cstArchivedStudents->WebUsername);
				$ExportDoc->ExportCaption($cstArchivedStudents->WebPassword);
				$ExportDoc->ExportCaption($cstArchivedStudents->BlockAccess);
				$ExportDoc->ExportCaption($cstArchivedStudents->SABTACO);
				$ExportDoc->ExportCaption($cstArchivedStudents->CESA);
				$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
				$cstArchivedStudents->CssClass = "";
				$cstArchivedStudents->CssStyle = "";
				$cstArchivedStudents->RowType = EW_ROWTYPE_VIEW; // Render view
				$this->RenderRow();
				if ($cstArchivedStudents->Export == "xml") {
					$XmlDoc->AddRow();
					$XmlDoc->AddField('Archived', $cstArchivedStudents->Archived->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('SelectionCategory', $cstArchivedStudents->SelectionCategory->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Title', $cstArchivedStudents->Title->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Initials', $cstArchivedStudents->Initials->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('FirstName', $cstArchivedStudents->FirstName->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Surname', $cstArchivedStudents->Surname->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('KnownAs', $cstArchivedStudents->KnownAs->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('IDNumber', $cstArchivedStudents->IDNumber->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Telephone', $cstArchivedStudents->Telephone->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Cellphone', $cstArchivedStudents->Cellphone->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('EmailAddress', $cstArchivedStudents->EmailAddress->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('WorkAddress', $cstArchivedStudents->WorkAddress->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('PostalAddress', $cstArchivedStudents->PostalAddress->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Department', $cstArchivedStudents->Department->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Organisation', $cstArchivedStudents->Organisation->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('VATNo', $cstArchivedStudents->VATNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('JobTitle', $cstArchivedStudents->JobTitle->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('DateofBirth', $cstArchivedStudents->DateofBirth->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('PlaceofBirth', $cstArchivedStudents->PlaceofBirth->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('CountryofBirth', $cstArchivedStudents->CountryofBirth->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Province', $cstArchivedStudents->Province->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('MaleorFemale', $cstArchivedStudents->MaleorFemale->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('RaceGroup', $cstArchivedStudents->RaceGroup->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Disability', $cstArchivedStudents->Disability->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('DisabilityNature', $cstArchivedStudents->DisabilityNature->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('DisabilityCertificate', $cstArchivedStudents->DisabilityCertificate->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('ProfessionalCouncil', $cstArchivedStudents->ProfessionalCouncil->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('CategoryReg', $cstArchivedStudents->CategoryReg->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('CouncilRegNumber', $cstArchivedStudents->CouncilRegNumber->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('LengthCandidateReg', $cstArchivedStudents->LengthCandidateReg->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('YearsToProfReg', $cstArchivedStudents->YearsToProfReg->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('FirstJobStart', $cstArchivedStudents->FirstJobStart->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('VolAssociations', $cstArchivedStudents->VolAssociations->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BelongsTo', $cstArchivedStudents->BelongsTo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('CESA_SABTACO_MemNum', $cstArchivedStudents->CESA_SABTACO_MemNum->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('AreaDiscipline', $cstArchivedStudents->AreaDiscipline->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('AreaSubDiscipline', $cstArchivedStudents->AreaSubDiscipline->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Salary', $cstArchivedStudents->Salary->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Payslip', $cstArchivedStudents->Payslip->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BankAccountName', $cstArchivedStudents->BankAccountName->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BankAccountBank', $cstArchivedStudents->BankAccountBank->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BankAccountBranch', $cstArchivedStudents->BankAccountBranch->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BankAccountNo', $cstArchivedStudents->BankAccountNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BankAccountProof', $cstArchivedStudents->BankAccountProof->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Funding', $cstArchivedStudents->Funding->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('CWDTP', $cstArchivedStudents->CWDTP->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByName', $cstArchivedStudents->BookedByName->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByDesignation', $cstArchivedStudents->BookedByDesignation->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByTelNo', $cstArchivedStudents->BookedByTelNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByFaxNo', $cstArchivedStudents->BookedByFaxNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByCellNo', $cstArchivedStudents->BookedByCellNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BookedByEmail', $cstArchivedStudents->BookedByEmail->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('MentorID', $cstArchivedStudents->MentorID->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('EmployerID', $cstArchivedStudents->EmployerID->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerName', $cstArchivedStudents->HRManagerName->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerDesignation', $cstArchivedStudents->HRManagerDesignation->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerTelNo', $cstArchivedStudents->HRManagerTelNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerCellNo', $cstArchivedStudents->HRManagerCellNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('HRManagerEmail', $cstArchivedStudents->HRManagerEmail->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('SupervisorName', $cstArchivedStudents->SupervisorName->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('SupervisorDesig', $cstArchivedStudents->SupervisorDesig->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('SupervisorProfRegNo', $cstArchivedStudents->SupervisorProfRegNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('SupervisorTelNo', $cstArchivedStudents->SupervisorTelNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('SupervisorCellNo', $cstArchivedStudents->SupervisorCellNo->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('SupervisorEmail', $cstArchivedStudents->SupervisorEmail->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('EducationalInst', $cstArchivedStudents->EducationalInst->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Qualifications', $cstArchivedStudents->Qualifications->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('DateFinalExam', $cstArchivedStudents->DateFinalExam->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('IDFile', $cstArchivedStudents->IDFile->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('CVFile', $cstArchivedStudents->CVFile->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('QualCertificate1', $cstArchivedStudents->QualCertificate1->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('QualCertificate2', $cstArchivedStudents->QualCertificate2->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('QualCertificate3', $cstArchivedStudents->QualCertificate3->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('MentorUndertaking', $cstArchivedStudents->MentorUndertaking->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('CandUUndertaking', $cstArchivedStudents->CandUUndertaking->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('CompanyCandidatePolicy', $cstArchivedStudents->CompanyCandidatePolicy->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('ResidenceProof', $cstArchivedStudents->ResidenceProof->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('SignedAppForm', $cstArchivedStudents->SignedAppForm->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('Photograph', $cstArchivedStudents->Photograph->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('StudentNumber', $cstArchivedStudents->StudentNumber->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('WebUsername', $cstArchivedStudents->WebUsername->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('WebPassword', $cstArchivedStudents->WebPassword->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('BlockAccess', $cstArchivedStudents->BlockAccess->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('SABTACO', $cstArchivedStudents->SABTACO->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
					$XmlDoc->AddField('CESA', $cstArchivedStudents->CESA->ExportValue($cstArchivedStudents->Export, $cstArchivedStudents->ExportOriginalValue));
				} else {
					$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
					$ExportDoc->ExportField($cstArchivedStudents->Archived);
					$ExportDoc->ExportField($cstArchivedStudents->SelectionCategory);
					$ExportDoc->ExportField($cstArchivedStudents->Title);
					$ExportDoc->ExportField($cstArchivedStudents->Initials);
					$ExportDoc->ExportField($cstArchivedStudents->FirstName);
					$ExportDoc->ExportField($cstArchivedStudents->Surname);
					$ExportDoc->ExportField($cstArchivedStudents->KnownAs);
					$ExportDoc->ExportField($cstArchivedStudents->IDNumber);
					$ExportDoc->ExportField($cstArchivedStudents->Telephone);
					$ExportDoc->ExportField($cstArchivedStudents->Cellphone);
					$ExportDoc->ExportField($cstArchivedStudents->EmailAddress);
					$ExportDoc->ExportField($cstArchivedStudents->WorkAddress);
					$ExportDoc->ExportField($cstArchivedStudents->PostalAddress);
					$ExportDoc->ExportField($cstArchivedStudents->Department);
					$ExportDoc->ExportField($cstArchivedStudents->Organisation);
					$ExportDoc->ExportField($cstArchivedStudents->VATNo);
					$ExportDoc->ExportField($cstArchivedStudents->JobTitle);
					$ExportDoc->ExportField($cstArchivedStudents->DateofBirth);
					$ExportDoc->ExportField($cstArchivedStudents->PlaceofBirth);
					$ExportDoc->ExportField($cstArchivedStudents->CountryofBirth);
					$ExportDoc->ExportField($cstArchivedStudents->Province);
					$ExportDoc->ExportField($cstArchivedStudents->MaleorFemale);
					$ExportDoc->ExportField($cstArchivedStudents->RaceGroup);
					$ExportDoc->ExportField($cstArchivedStudents->Disability);
					$ExportDoc->ExportField($cstArchivedStudents->DisabilityNature);
					$ExportDoc->ExportField($cstArchivedStudents->DisabilityCertificate);
					$ExportDoc->ExportField($cstArchivedStudents->ProfessionalCouncil);
					$ExportDoc->ExportField($cstArchivedStudents->CategoryReg);
					$ExportDoc->ExportField($cstArchivedStudents->CouncilRegNumber);
					$ExportDoc->ExportField($cstArchivedStudents->LengthCandidateReg);
					$ExportDoc->ExportField($cstArchivedStudents->YearsToProfReg);
					$ExportDoc->ExportField($cstArchivedStudents->FirstJobStart);
					$ExportDoc->ExportField($cstArchivedStudents->VolAssociations);
					$ExportDoc->ExportField($cstArchivedStudents->BelongsTo);
					$ExportDoc->ExportField($cstArchivedStudents->CESA_SABTACO_MemNum);
					$ExportDoc->ExportField($cstArchivedStudents->AreaDiscipline);
					$ExportDoc->ExportField($cstArchivedStudents->AreaSubDiscipline);
					$ExportDoc->ExportField($cstArchivedStudents->Salary);
					$ExportDoc->ExportField($cstArchivedStudents->Payslip);
					$ExportDoc->ExportField($cstArchivedStudents->BankAccountName);
					$ExportDoc->ExportField($cstArchivedStudents->BankAccountBank);
					$ExportDoc->ExportField($cstArchivedStudents->BankAccountBranch);
					$ExportDoc->ExportField($cstArchivedStudents->BankAccountNo);
					$ExportDoc->ExportField($cstArchivedStudents->BankAccountProof);
					$ExportDoc->ExportField($cstArchivedStudents->Funding);
					$ExportDoc->ExportField($cstArchivedStudents->CWDTP);
					$ExportDoc->ExportField($cstArchivedStudents->BookedByName);
					$ExportDoc->ExportField($cstArchivedStudents->BookedByDesignation);
					$ExportDoc->ExportField($cstArchivedStudents->BookedByTelNo);
					$ExportDoc->ExportField($cstArchivedStudents->BookedByFaxNo);
					$ExportDoc->ExportField($cstArchivedStudents->BookedByCellNo);
					$ExportDoc->ExportField($cstArchivedStudents->BookedByEmail);
					$ExportDoc->ExportField($cstArchivedStudents->MentorID);
					$ExportDoc->ExportField($cstArchivedStudents->EmployerID);
					$ExportDoc->ExportField($cstArchivedStudents->HRManagerName);
					$ExportDoc->ExportField($cstArchivedStudents->HRManagerDesignation);
					$ExportDoc->ExportField($cstArchivedStudents->HRManagerTelNo);
					$ExportDoc->ExportField($cstArchivedStudents->HRManagerCellNo);
					$ExportDoc->ExportField($cstArchivedStudents->HRManagerEmail);
					$ExportDoc->ExportField($cstArchivedStudents->SupervisorName);
					$ExportDoc->ExportField($cstArchivedStudents->SupervisorDesig);
					$ExportDoc->ExportField($cstArchivedStudents->SupervisorProfRegNo);
					$ExportDoc->ExportField($cstArchivedStudents->SupervisorTelNo);
					$ExportDoc->ExportField($cstArchivedStudents->SupervisorCellNo);
					$ExportDoc->ExportField($cstArchivedStudents->SupervisorEmail);
					$ExportDoc->ExportField($cstArchivedStudents->EducationalInst);
					$ExportDoc->ExportField($cstArchivedStudents->Qualifications);
					$ExportDoc->ExportField($cstArchivedStudents->DateFinalExam);
					$ExportDoc->ExportField($cstArchivedStudents->IDFile);
					$ExportDoc->ExportField($cstArchivedStudents->CVFile);
					$ExportDoc->ExportField($cstArchivedStudents->QualCertificate1);
					$ExportDoc->ExportField($cstArchivedStudents->QualCertificate2);
					$ExportDoc->ExportField($cstArchivedStudents->QualCertificate3);
					$ExportDoc->ExportField($cstArchivedStudents->MentorUndertaking);
					$ExportDoc->ExportField($cstArchivedStudents->CandUUndertaking);
					$ExportDoc->ExportField($cstArchivedStudents->CompanyCandidatePolicy);
					$ExportDoc->ExportField($cstArchivedStudents->ResidenceProof);
					$ExportDoc->ExportField($cstArchivedStudents->SignedAppForm);
					$ExportDoc->ExportField($cstArchivedStudents->Photograph);
					$ExportDoc->ExportField($cstArchivedStudents->StudentNumber);
					$ExportDoc->ExportField($cstArchivedStudents->WebUsername);
					$ExportDoc->ExportField($cstArchivedStudents->WebPassword);
					$ExportDoc->ExportField($cstArchivedStudents->BlockAccess);
					$ExportDoc->ExportField($cstArchivedStudents->SABTACO);
					$ExportDoc->ExportField($cstArchivedStudents->CESA);
					$ExportDoc->EndExportRow();
				}
			}
			$rs->MoveNext();
		}
		if ($cstArchivedStudents->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($cstArchivedStudents->Export, array("email", "xml")))
			echo "\xEF\xBB\xBF";

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

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

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

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

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

	}
}
?>