Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/cceconvenors/
Upload File :
Current File : /var/www/cesa.co.za/cceconvenors/cstArchivedStudents2020list.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 "cstArchivedStudents2020info.php" ?>
<?php include "CCEFacilitatorUsersinfo.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
$cstArchivedStudents2020_list = new ccstArchivedStudents2020_list();
$Page =& $cstArchivedStudents2020_list;

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

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

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

// page properties
cstArchivedStudents2020_list.PageID = "list"; // page ID
cstArchivedStudents2020_list.FormID = "fcstArchivedStudents2020list"; // form ID
var EW_PAGE_ID = cstArchivedStudents2020_list.PageID; // for backward compatibility

// extend page with Form_CustomValidate function
cstArchivedStudents2020_list.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) { ?>
cstArchivedStudents2020_list.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudents2020_list.ValidateRequired = false; // no JavaScript validation
<?php } ?>

//-->
</script>
<script type="text/javascript">
<!--
var ew_DHTMLEditors = [];

//-->
</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 } ?>
<?php if ($cstArchivedStudents2020->Export == "") { ?>
<?php } ?>
<?php
	$bSelectLimit = EW_SELECT_LIMIT;
	if ($bSelectLimit) {
		$cstArchivedStudents2020_list->lTotalRecs = $cstArchivedStudents2020->SelectRecordCount();
	} else {
		if ($rs = $cstArchivedStudents2020_list->LoadRecordset())
			$cstArchivedStudents2020_list->lTotalRecs = $rs->RecordCount();
	}
	$cstArchivedStudents2020_list->lStartRec = 1;
	if ($cstArchivedStudents2020_list->lDisplayRecs <= 0 || ($cstArchivedStudents2020->Export <> "" && $cstArchivedStudents2020->ExportAll)) // Display all records
		$cstArchivedStudents2020_list->lDisplayRecs = $cstArchivedStudents2020_list->lTotalRecs;
	if (!($cstArchivedStudents2020->Export <> "" && $cstArchivedStudents2020->ExportAll))
		$cstArchivedStudents2020_list->SetUpStartRec(); // Set up start record position
	if ($bSelectLimit)
		$rs = $cstArchivedStudents2020_list->LoadRecordset($cstArchivedStudents2020_list->lStartRec-1, $cstArchivedStudents2020_list->lDisplayRecs);
?>
<p><span class="phpmaker" style="white-space: nowrap;"><?php echo $Language->Phrase("TblTypeCUSTOMVIEW") ?><?php echo $cstArchivedStudents2020->TableCaption() ?>
<?php if ($cstArchivedStudents2020->Export == "" && $cstArchivedStudents2020->CurrentAction == "") { ?>
&nbsp;&nbsp;<a href="<?php echo $cstArchivedStudents2020_list->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 $cstArchivedStudents2020_list->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 $cstArchivedStudents2020_list->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_cstArchivedStudents2020" id="emf_cstArchivedStudents2020" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_cstArchivedStudents2020',hdr:ewLanguage.Phrase('ExportToEmail'),f:document.fcstArchivedStudents2020list,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 } ?>
</span></p>
<?php if ($Security->IsLoggedIn()) { ?>
<?php if ($cstArchivedStudents2020->Export == "" && $cstArchivedStudents2020->CurrentAction == "") { ?>
<a href="javascript:ew_ToggleSearchPanel(cstArchivedStudents2020_list);" style="text-decoration: none;"><img id="cstArchivedStudents2020_list_SearchImage" src="images/collapse.gif" alt="" width="9" height="9" border="0"></a><span class="phpmaker">&nbsp;<?php echo $Language->Phrase("Search") ?></span><br>
<div id="cstArchivedStudents2020_list_SearchPanel">
<form name="fcstArchivedStudents2020listsrch" id="fcstArchivedStudents2020listsrch" class="ewForm" action="<?php echo ew_CurrentPage() ?>">
<input type="hidden" id="t" name="t" value="cstArchivedStudents2020">
<table class="ewBasicSearch">
	<tr>
		<td><span class="phpmaker">
			<input type="text" name="<?php echo EW_TABLE_BASIC_SEARCH ?>" id="<?php echo EW_TABLE_BASIC_SEARCH ?>" size="20" value="<?php echo ew_HtmlEncode($cstArchivedStudents2020->getSessionBasicSearchKeyword()) ?>">
			<input type="Submit" name="Submit" id="Submit" value="<?php echo ew_BtnCaption($Language->Phrase("QuickSearchBtn")) ?>">&nbsp;
			<a href="<?php echo $cstArchivedStudents2020_list->PageUrl() ?>cmd=reset"><?php echo $Language->Phrase("ShowAll") ?></a>&nbsp;
		</span></td>
	</tr>
	<tr>
	<td><span class="phpmaker"><label><input type="radio" name="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" id="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" value=""<?php if ($cstArchivedStudents2020->getSessionBasicSearchType() == "") { ?> checked="checked"<?php } ?>><?php echo $Language->Phrase("ExactPhrase") ?></label>&nbsp;&nbsp;<label><input type="radio" name="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" id="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" value="AND"<?php if ($cstArchivedStudents2020->getSessionBasicSearchType() == "AND") { ?> checked="checked"<?php } ?>><?php echo $Language->Phrase("AllWord") ?></label>&nbsp;&nbsp;<label><input type="radio" name="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" id="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" value="OR"<?php if ($cstArchivedStudents2020->getSessionBasicSearchType() == "OR") { ?> checked="checked"<?php } ?>><?php echo $Language->Phrase("AnyWord") ?></label></span></td>
	</tr>
</table>
</form>
</div>
<?php } ?>
<?php } ?>
<?php
if (EW_DEBUG_ENABLED)
	echo ew_DebugMsg();
$cstArchivedStudents2020_list->ShowMessage();
?>
<br>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<?php if ($cstArchivedStudents2020->Export == "") { ?>
<div class="ewGridUpperPanel">
<?php if ($cstArchivedStudents2020->CurrentAction <> "gridadd" && $cstArchivedStudents2020->CurrentAction <> "gridedit") { ?>
<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($cstArchivedStudents2020_list->Pager)) $cstArchivedStudents2020_list->Pager = new cPrevNextPager($cstArchivedStudents2020_list->lStartRec, $cstArchivedStudents2020_list->lDisplayRecs, $cstArchivedStudents2020_list->lTotalRecs) ?>
<?php if ($cstArchivedStudents2020_list->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 ($cstArchivedStudents2020_list->Pager->FirstButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2020_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2020_list->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 ($cstArchivedStudents2020_list->Pager->PrevButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2020_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2020_list->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 $cstArchivedStudents2020_list->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
	<?php if ($cstArchivedStudents2020_list->Pager->NextButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2020_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2020_list->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 ($cstArchivedStudents2020_list->Pager->LastButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2020_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2020_list->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 $cstArchivedStudents2020_list->Pager->PageCount ?></span></td>
	</tr></table>
	</td>	
	<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td>
	<span class="phpmaker"><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $cstArchivedStudents2020_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $cstArchivedStudents2020_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $cstArchivedStudents2020_list->Pager->RecordCount ?></span>
<?php } else { ?>
	<?php if ($cstArchivedStudents2020_list->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 } ?>
		</td>
	</tr>
</table>
</form>
<?php } ?>
<span class="phpmaker">
</span>
</div>
<?php } ?>
<form name="fcstArchivedStudents2020list" id="fcstArchivedStudents2020list" class="ewForm" action="" method="post">
<div id="gmp_cstArchivedStudents2020" class="ewGridMiddlePanel">
<?php if ($cstArchivedStudents2020_list->lTotalRecs > 0) { ?>
<table cellspacing="0" rowhighlightclass="ewTableHighlightRow" rowselectclass="ewTableSelectRow" roweditclass="ewTableEditRow" class="ewTable ewTableSeparate">
<?php echo $cstArchivedStudents2020->TableCustomInnerHtml ?>
<thead><!-- Table header -->
	<tr class="ewTableHeader">
<?php

// Render list options
$cstArchivedStudents2020_list->RenderListOptions();

// Render list options (header, left)
$cstArchivedStudents2020_list->ListOptions->Render("header", "left");
?>
<?php if ($cstArchivedStudents2020->FirstName->Visible) { // FirstName ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->FirstName) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->FirstName->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->FirstName) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->FirstName->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->FirstName->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->FirstName->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->Surname->Visible) { // Surname ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Surname) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->Surname->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Surname) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->Surname->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->Surname->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->Surname->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->KnownAs->Visible) { // KnownAs ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->KnownAs) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->KnownAs->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->KnownAs) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->KnownAs->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->KnownAs->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->KnownAs->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->Organisation->Visible) { // Organisation ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Organisation) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->Organisation->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Organisation) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->Organisation->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->Organisation->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->Organisation->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->StudentNumber->Visible) { // StudentNumber ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->StudentNumber) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->StudentNumber->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->StudentNumber) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->StudentNumber->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->StudentNumber->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->StudentNumber->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->Age->Visible) { // Age ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Age) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->Age->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Age) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->Age->FldCaption() ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->Age->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->Age->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->Telephone->Visible) { // Telephone ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Telephone) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->Telephone->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Telephone) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->Telephone->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->Telephone->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->Telephone->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->Cellphone->Visible) { // Cellphone ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Cellphone) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->Cellphone->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->Cellphone) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->Cellphone->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->Cellphone->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->Cellphone->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->EmailAddress->Visible) { // EmailAddress ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->EmailAddress) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->EmailAddress->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->EmailAddress) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->EmailAddress->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->EmailAddress->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->EmailAddress->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->MentorFirstName->Visible) { // MentorFirstName ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorFirstName) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->MentorFirstName->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorFirstName) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->MentorFirstName->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->MentorFirstName->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->MentorFirstName->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->MentorSurname->Visible) { // MentorSurname ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorSurname) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->MentorSurname->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorSurname) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->MentorSurname->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->MentorSurname->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->MentorSurname->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->MentorTel->Visible) { // MentorTel ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorTel) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->MentorTel->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorTel) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->MentorTel->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->MentorTel->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->MentorTel->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->MentorCell->Visible) { // MentorCell ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorCell) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->MentorCell->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorCell) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->MentorCell->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->MentorCell->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->MentorCell->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php if ($cstArchivedStudents2020->MentorEmail->Visible) { // MentorEmail ?>
	<?php if ($cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorEmail) == "") { ?>
		<td><?php echo $cstArchivedStudents2020->MentorEmail->FldCaption() ?></td>
	<?php } else { ?>
		<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2020->SortUrl($cstArchivedStudents2020->MentorEmail) ?>',2);">
			<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2020->MentorEmail->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2020->MentorEmail->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2020->MentorEmail->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
		</div></td>		
	<?php } ?>
<?php } ?>		
<?php

// Render list options (header, right)
$cstArchivedStudents2020_list->ListOptions->Render("header", "right");
?>
	</tr>
</thead>
<?php
if ($cstArchivedStudents2020->ExportAll && $cstArchivedStudents2020->Export <> "") {
	$cstArchivedStudents2020_list->lStopRec = $cstArchivedStudents2020_list->lTotalRecs;
} else {
	$cstArchivedStudents2020_list->lStopRec = $cstArchivedStudents2020_list->lStartRec + $cstArchivedStudents2020_list->lDisplayRecs - 1; // Set the last record to display
}
$cstArchivedStudents2020_list->lRecCount = $cstArchivedStudents2020_list->lStartRec - 1;
if ($rs && !$rs->EOF) {
	$rs->MoveFirst();
	if (!$bSelectLimit && $cstArchivedStudents2020_list->lStartRec > 1)
		$rs->Move($cstArchivedStudents2020_list->lStartRec - 1);
}

// Initialize aggregate
$cstArchivedStudents2020->RowType = EW_ROWTYPE_AGGREGATEINIT;
$cstArchivedStudents2020_list->RenderRow();
$cstArchivedStudents2020_list->lRowCnt = 0;
while (($cstArchivedStudents2020->CurrentAction == "gridadd" || !$rs->EOF) &&
	$cstArchivedStudents2020_list->lRecCount < $cstArchivedStudents2020_list->lStopRec) {
	$cstArchivedStudents2020_list->lRecCount++;
	if (intval($cstArchivedStudents2020_list->lRecCount) >= intval($cstArchivedStudents2020_list->lStartRec)) {
		$cstArchivedStudents2020_list->lRowCnt++;

	// Init row class and style
	$cstArchivedStudents2020->CssClass = "";
	$cstArchivedStudents2020->CssStyle = "";
	$cstArchivedStudents2020->RowAttrs = array('onmouseover'=>'ew_MouseOver(event, this);', 'onmouseout'=>'ew_MouseOut(event, this);', 'onclick'=>'ew_Click(event, this);');
	if ($cstArchivedStudents2020->CurrentAction == "gridadd") {
		$cstArchivedStudents2020_list->LoadDefaultValues(); // Load default values
	} else {
		$cstArchivedStudents2020_list->LoadRowValues($rs); // Load row values
	}
	$cstArchivedStudents2020->RowType = EW_ROWTYPE_VIEW; // Render view

	// Render row
	$cstArchivedStudents2020_list->RenderRow();

	// Render list options
	$cstArchivedStudents2020_list->RenderListOptions();
?>
	<tr<?php echo $cstArchivedStudents2020->RowAttributes() ?>>
<?php

// Render list options (body, left)
$cstArchivedStudents2020_list->ListOptions->Render("body", "left");
?>
	<?php if ($cstArchivedStudents2020->FirstName->Visible) { // FirstName ?>
		<td<?php echo $cstArchivedStudents2020->FirstName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->FirstName->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->FirstName->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->Surname->Visible) { // Surname ?>
		<td<?php echo $cstArchivedStudents2020->Surname->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->Surname->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->Surname->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->KnownAs->Visible) { // KnownAs ?>
		<td<?php echo $cstArchivedStudents2020->KnownAs->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->KnownAs->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->KnownAs->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->Organisation->Visible) { // Organisation ?>
		<td<?php echo $cstArchivedStudents2020->Organisation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->Organisation->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->Organisation->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->StudentNumber->Visible) { // StudentNumber ?>
		<td<?php echo $cstArchivedStudents2020->StudentNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->StudentNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->StudentNumber->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->Age->Visible) { // Age ?>
		<td<?php echo $cstArchivedStudents2020->Age->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->Age->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->Age->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->Telephone->Visible) { // Telephone ?>
		<td<?php echo $cstArchivedStudents2020->Telephone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->Telephone->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->Telephone->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->Cellphone->Visible) { // Cellphone ?>
		<td<?php echo $cstArchivedStudents2020->Cellphone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->Cellphone->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->Cellphone->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->EmailAddress->Visible) { // EmailAddress ?>
		<td<?php echo $cstArchivedStudents2020->EmailAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->EmailAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->EmailAddress->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->MentorFirstName->Visible) { // MentorFirstName ?>
		<td<?php echo $cstArchivedStudents2020->MentorFirstName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->MentorFirstName->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->MentorFirstName->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->MentorSurname->Visible) { // MentorSurname ?>
		<td<?php echo $cstArchivedStudents2020->MentorSurname->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->MentorSurname->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->MentorSurname->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->MentorTel->Visible) { // MentorTel ?>
		<td<?php echo $cstArchivedStudents2020->MentorTel->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->MentorTel->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->MentorTel->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->MentorCell->Visible) { // MentorCell ?>
		<td<?php echo $cstArchivedStudents2020->MentorCell->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->MentorCell->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->MentorCell->ListViewValue() ?></div>
</td>
	<?php } ?>
	<?php if ($cstArchivedStudents2020->MentorEmail->Visible) { // MentorEmail ?>
		<td<?php echo $cstArchivedStudents2020->MentorEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2020->MentorEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents2020->MentorEmail->ListViewValue() ?></div>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$cstArchivedStudents2020_list->ListOptions->Render("body", "right");
?>
	</tr>
<?php
	}
	if ($cstArchivedStudents2020->CurrentAction <> "gridadd")
		$rs->MoveNext();
}
?>
</tbody>
</table>
<?php } ?>
</div>
</form>
<?php

// Close recordset
if ($rs)
	$rs->Close();
?>
<?php if ($cstArchivedStudents2020_list->lTotalRecs > 0) { ?>
<?php if ($cstArchivedStudents2020->Export == "") { ?>
<div class="ewGridLowerPanel">
<?php if ($cstArchivedStudents2020->CurrentAction <> "gridadd" && $cstArchivedStudents2020->CurrentAction <> "gridedit") { ?>
<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($cstArchivedStudents2020_list->Pager)) $cstArchivedStudents2020_list->Pager = new cPrevNextPager($cstArchivedStudents2020_list->lStartRec, $cstArchivedStudents2020_list->lDisplayRecs, $cstArchivedStudents2020_list->lTotalRecs) ?>
<?php if ($cstArchivedStudents2020_list->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 ($cstArchivedStudents2020_list->Pager->FirstButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2020_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2020_list->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 ($cstArchivedStudents2020_list->Pager->PrevButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2020_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2020_list->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 $cstArchivedStudents2020_list->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
	<?php if ($cstArchivedStudents2020_list->Pager->NextButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2020_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2020_list->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 ($cstArchivedStudents2020_list->Pager->LastButton->Enabled) { ?>
	<td><a href="<?php echo $cstArchivedStudents2020_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2020_list->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 $cstArchivedStudents2020_list->Pager->PageCount ?></span></td>
	</tr></table>
	</td>	
	<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td>
	<span class="phpmaker"><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $cstArchivedStudents2020_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $cstArchivedStudents2020_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $cstArchivedStudents2020_list->Pager->RecordCount ?></span>
<?php } else { ?>
	<?php if ($cstArchivedStudents2020_list->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 } ?>
		</td>
	</tr>
</table>
</form>
<?php } ?>
<?php //if ($cstArchivedStudents2020_list->lTotalRecs > 0) { ?>
<span class="phpmaker">
</span>
<?php //} ?>
</div>
<?php } ?>
<?php } ?>
</td></tr></table>
<?php if ($cstArchivedStudents2020->Export == "" && $cstArchivedStudents2020->CurrentAction == "") { ?>
<?php } ?>
<?php if ($cstArchivedStudents2020->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
$cstArchivedStudents2020_list->Page_Terminate();
?>
<?php

//
// Page class
//
class ccstArchivedStudents2020_list {

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

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

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

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

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

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

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

		// Table object (cstArchivedStudents2020)
		$GLOBALS["cstArchivedStudents2020"] = new ccstArchivedStudents2020();

		// Initialize URLs
		$this->ExportPrintUrl = $this->PageUrl() . "export=print";
		$this->ExportExcelUrl = $this->PageUrl() . "export=excel";
		$this->ExportWordUrl = $this->PageUrl() . "export=word";
		$this->ExportHtmlUrl = $this->PageUrl() . "export=html";
		$this->ExportXmlUrl = $this->PageUrl() . "export=xml";
		$this->ExportCsvUrl = $this->PageUrl() . "export=csv";
		$this->AddUrl = $GLOBALS["cstArchivedStudents2020"]->AddUrl();
		$this->InlineAddUrl = $this->PageUrl() . "a=add";
		$this->GridAddUrl = $this->PageUrl() . "a=gridadd";
		$this->GridEditUrl = $this->PageUrl() . "a=gridedit";
		$this->MultiDeleteUrl = "cstArchivedStudents2020delete.php";
		$this->MultiUpdateUrl = "cstArchivedStudents2020update.php";

		// Table object (CCEFacilitatorUsers)
		$GLOBALS['CCEFacilitatorUsers'] = new cCCEFacilitatorUsers();

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

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

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

		// Open connection
		$conn = ew_Connect();

		// List options
		$this->ListOptions = new cListOptions();
	}

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

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

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

	// Class variables
	var $ListOptions; // List options
	var $lDisplayRecs = 20;
	var $lStartRec;
	var $lStopRec;
	var $lTotalRecs = 0;
	var $lRecRange = 10;
	var $sSrchWhere = ""; // Search WHERE clause
	var $lRecCnt = 0; // Record count
	var $lEditRowCnt;
	var $lRowCnt;
	var $lRowIndex; // Row index
	var $lRecPerRow = 0;
	var $lColCnt = 0;
	var $sDbMasterFilter = ""; // Master filter
	var $sDbDetailFilter = ""; // Detail filter
	var $bMasterRecordExists;	
	var $sMultiSelectKey;
	var $RestoreSearch;

	//
	// Page main
	//
	function Page_Main() {
		global $objForm, $Language, $gsSearchError, $Security, $cstArchivedStudents2020;

		// Search filters
		$sSrchAdvanced = ""; // Advanced search filter
		$sSrchBasic = ""; // Basic search filter
		$sFilter = "";
		if ($this->IsPageRequest()) { // Validate request

			// Handle reset command
			$this->ResetCmd();

			// Set up list options
			$this->SetupListOptions();

			// Get basic search values
			$this->LoadBasicSearchValues();

			// Restore search parms from Session
			$this->RestoreSearchParms();

			// Call Recordset SearchValidated event
			$cstArchivedStudents2020->Recordset_SearchValidated();

			// Set up sorting order
			$this->SetUpSortOrder();

			// Get basic search criteria
			if ($gsSearchError == "")
				$sSrchBasic = $this->BasicSearchWhere();
		}

		// Restore display records
		if ($cstArchivedStudents2020->getRecordsPerPage() <> "") {
			$this->lDisplayRecs = $cstArchivedStudents2020->getRecordsPerPage(); // Restore from Session
		} else {
			$this->lDisplayRecs = 20; // Load default
		}

		// Load Sorting Order
		$this->LoadSortOrder();

		// Build search criteria
		if ($sSrchAdvanced <> "")
			$this->sSrchWhere = ($this->sSrchWhere <> "") ? "(" . $this->sSrchWhere . ") AND (" . $sSrchAdvanced . ")" : $sSrchAdvanced;
		if ($sSrchBasic <> "")
			$this->sSrchWhere = ($this->sSrchWhere <> "") ? "(" . $this->sSrchWhere . ") AND (" . $sSrchBasic. ")" : $sSrchBasic;

		// Call Recordset_Searching event
		$cstArchivedStudents2020->Recordset_Searching($this->sSrchWhere);

		// Save search criteria
		if ($this->sSrchWhere <> "") {
			if ($sSrchBasic == "")
				$this->ResetBasicSearchParms();
			$cstArchivedStudents2020->setSearchWhere($this->sSrchWhere); // Save to Session
			if (!$this->RestoreSearch) {
				$this->lStartRec = 1; // Reset start record counter
				$cstArchivedStudents2020->setStartRecordNumber($this->lStartRec);
			}
		} else {
			$this->sSrchWhere = $cstArchivedStudents2020->getSearchWhere();
		}

		// Build filter
		$sFilter = "";
		if ($this->sDbDetailFilter <> "")
			$sFilter = ($sFilter <> "") ? "(" . $sFilter . ") AND (" . $this->sDbDetailFilter . ")" : $this->sDbDetailFilter;
		if ($this->sSrchWhere <> "")
			$sFilter = ($sFilter <> "") ? "(" . $sFilter . ") AND (". $this->sSrchWhere . ")" : $this->sSrchWhere;

		// Set up filter in session
		$cstArchivedStudents2020->setSessionWhere($sFilter);
		$cstArchivedStudents2020->CurrentFilter = "";

		// Export data only
		if (in_array($cstArchivedStudents2020->Export, array("html","word","excel","xml","csv","email"))) {
			$this->ExportData();
			if ($cstArchivedStudents2020->Export <> "email")
				$this->Page_Terminate(); // Terminate response
			exit();
		}
	}

	// Return basic search SQL
	function BasicSearchSQL($Keyword) {
		global $cstArchivedStudents2020;
		$sKeyword = ew_AdjustSql($Keyword);
		$sWhere = "";
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->Title, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->FirstName, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->Surname, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->KnownAs, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->Organisation, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->OrganisationType, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->StudentNumber, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->ProjectDiscipline, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->IDNumber, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->ECSANumber, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->HighestQual, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->AreaDiscipline, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->Telephone, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->Cellphone, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->EmailAddress, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->HomeAddress, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->WorkAddress, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->PostalAddress, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->Designation, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->Department, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->CESAAccountNo, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->VATNo, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->DietaryRequirements, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->CVFile, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->QualCertificate1, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->QualCertificate2, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->QualCertificate3, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->MemorandumFile, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->AgreementFile, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->OrderNo, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->BookedByName, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->BookedByDesignation, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->BookedByTelNo, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->BookedByFaxNo, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->BookedByCellNo, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->BookedByEmail, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->WebUsername, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->WebPassword, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->MentorDesig, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->MentorFirstName, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->MentorSurname, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->MentorTel, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->MentorCell, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->MentorEmail, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->HRManagerName, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->HRManagerDesignation, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->HRManagerTelNo, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->HRManagerCellNo, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->HRManagerEmail, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->LengthEmploy, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->BlockAccess, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->ResultLetter, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->IDFile, $Keyword);
		$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2020->ReasonForLeaving, $Keyword);
		return $sWhere;
	}

	// Build basic search SQL
	function BuildBasicSearchSql(&$Where, &$Fld, $Keyword) {
		$sFldExpression = ($Fld->FldVirtualExpression <> "") ? $Fld->FldVirtualExpression : $Fld->FldExpression;
		$lFldDataType = ($Fld->FldIsVirtual) ? EW_DATATYPE_STRING : $Fld->FldDataType;
		if ($lFldDataType == EW_DATATYPE_NUMBER) {
			$sWrk = $sFldExpression . " = " . ew_QuotedValue($Keyword, $lFldDataType);
		} else {
			$sWrk = $sFldExpression . " LIKE " . ew_QuotedValue("%" . $Keyword . "%", $lFldDataType);
		}
		if ($Where <> "") $Where .= " OR ";
		$Where .= $sWrk;
	}

	// Return basic search WHERE clause based on search keyword and type
	function BasicSearchWhere() {
		global $Security, $cstArchivedStudents2020;
		$sSearchStr = "";
		$sSearchKeyword = $cstArchivedStudents2020->BasicSearchKeyword;
		$sSearchType = $cstArchivedStudents2020->BasicSearchType;
		if ($sSearchKeyword <> "") {
			$sSearch = trim($sSearchKeyword);
			if ($sSearchType <> "") {
				while (strpos($sSearch, "  ") !== FALSE)
					$sSearch = str_replace("  ", " ", $sSearch);
				$arKeyword = explode(" ", trim($sSearch));
				foreach ($arKeyword as $sKeyword) {
					if ($sSearchStr <> "") $sSearchStr .= " " . $sSearchType . " ";
					$sSearchStr .= "(" . $this->BasicSearchSQL($sKeyword) . ")";
				}
			} else {
				$sSearchStr = $this->BasicSearchSQL($sSearch);
			}
		}
		if ($sSearchKeyword <> "") {
			$cstArchivedStudents2020->setSessionBasicSearchKeyword($sSearchKeyword);
			$cstArchivedStudents2020->setSessionBasicSearchType($sSearchType);
		}
		return $sSearchStr;
	}

	// Clear all search parameters
	function ResetSearchParms() {
		global $cstArchivedStudents2020;

		// Clear search WHERE clause
		$this->sSrchWhere = "";
		$cstArchivedStudents2020->setSearchWhere($this->sSrchWhere);

		// Clear basic search parameters
		$this->ResetBasicSearchParms();
	}

	// Clear all basic search parameters
	function ResetBasicSearchParms() {
		global $cstArchivedStudents2020;
		$cstArchivedStudents2020->setSessionBasicSearchKeyword("");
		$cstArchivedStudents2020->setSessionBasicSearchType("");
	}

	// Restore all search parameters
	function RestoreSearchParms() {
		global $cstArchivedStudents2020;
		$bRestore = TRUE;
		if (@$_GET[EW_TABLE_BASIC_SEARCH] <> "") $bRestore = FALSE;
		$this->RestoreSearch = $bRestore;
		if ($bRestore) {

			// Restore basic search values
			$cstArchivedStudents2020->BasicSearchKeyword = $cstArchivedStudents2020->getSessionBasicSearchKeyword();
			$cstArchivedStudents2020->BasicSearchType = $cstArchivedStudents2020->getSessionBasicSearchType();
		}
	}

	// Set up sort parameters
	function SetUpSortOrder() {
		global $cstArchivedStudents2020;

		// Check for Ctrl pressed
		$bCtrl = (@$_GET["ctrl"] <> "");

		// Check for "order" parameter
		if (@$_GET["order"] <> "") {
			$cstArchivedStudents2020->CurrentOrder = ew_StripSlashes(@$_GET["order"]);
			$cstArchivedStudents2020->CurrentOrderType = @$_GET["ordertype"];
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->FirstName, $bCtrl); // FirstName
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->Surname, $bCtrl); // Surname
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->KnownAs, $bCtrl); // KnownAs
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->Organisation, $bCtrl); // Organisation
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->StudentNumber, $bCtrl); // StudentNumber
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->Age, $bCtrl); // Age
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->Telephone, $bCtrl); // Telephone
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->Cellphone, $bCtrl); // Cellphone
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->EmailAddress, $bCtrl); // EmailAddress
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->MentorFirstName, $bCtrl); // MentorFirstName
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->MentorSurname, $bCtrl); // MentorSurname
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->MentorTel, $bCtrl); // MentorTel
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->MentorCell, $bCtrl); // MentorCell
			$cstArchivedStudents2020->UpdateSort($cstArchivedStudents2020->MentorEmail, $bCtrl); // MentorEmail
			$cstArchivedStudents2020->setStartRecordNumber(1); // Reset start position
		}
	}

	// Load sort order parameters
	function LoadSortOrder() {
		global $cstArchivedStudents2020;
		$sOrderBy = $cstArchivedStudents2020->getSessionOrderBy(); // Get ORDER BY from Session
		if ($sOrderBy == "") {
			if ($cstArchivedStudents2020->SqlOrderBy() <> "") {
				$sOrderBy = $cstArchivedStudents2020->SqlOrderBy();
				$cstArchivedStudents2020->setSessionOrderBy($sOrderBy);
			}
		}
	}

	// Reset command
	// cmd=reset (Reset search parameters)
	// cmd=resetall (Reset search and master/detail parameters)
	// cmd=resetsort (Reset sort parameters)
	function ResetCmd() {
		global $cstArchivedStudents2020;

		// Get reset command
		if (@$_GET["cmd"] <> "") {
			$sCmd = $_GET["cmd"];

			// Reset search criteria
			if (strtolower($sCmd) == "reset" || strtolower($sCmd) == "resetall")
				$this->ResetSearchParms();

			// Reset sorting order
			if (strtolower($sCmd) == "resetsort") {
				$sOrderBy = "";
				$cstArchivedStudents2020->setSessionOrderBy($sOrderBy);
				$cstArchivedStudents2020->FirstName->setSort("");
				$cstArchivedStudents2020->Surname->setSort("");
				$cstArchivedStudents2020->KnownAs->setSort("");
				$cstArchivedStudents2020->Organisation->setSort("");
				$cstArchivedStudents2020->StudentNumber->setSort("");
				$cstArchivedStudents2020->Age->setSort("");
				$cstArchivedStudents2020->Telephone->setSort("");
				$cstArchivedStudents2020->Cellphone->setSort("");
				$cstArchivedStudents2020->EmailAddress->setSort("");
				$cstArchivedStudents2020->MentorFirstName->setSort("");
				$cstArchivedStudents2020->MentorSurname->setSort("");
				$cstArchivedStudents2020->MentorTel->setSort("");
				$cstArchivedStudents2020->MentorCell->setSort("");
				$cstArchivedStudents2020->MentorEmail->setSort("");
			}

			// Reset start position
			$this->lStartRec = 1;
			$cstArchivedStudents2020->setStartRecordNumber($this->lStartRec);
		}
	}

	// Set up list options
	function SetupListOptions() {
		global $Security, $cstArchivedStudents2020;

		// "view"
		$this->ListOptions->Add("view");
		$item =& $this->ListOptions->Items["view"];
		$item->CssStyle = "white-space: nowrap;";
		$item->Visible = $Security->IsLoggedIn();
		$item->OnLeft = FALSE;

		// "detail_cstStudentAssigArchived"
		$this->ListOptions->Add("detail_cstStudentAssigArchived");
		$item =& $this->ListOptions->Items["detail_cstStudentAssigArchived"];
		$item->CssStyle = "white-space: nowrap;";
		$item->Visible = $Security->IsLoggedIn();
		$item->OnLeft = FALSE;

		// Call ListOptions_Load event
		$this->ListOptions_Load();
		if ($cstArchivedStudents2020->Export <> "" ||
			$cstArchivedStudents2020->CurrentAction == "gridadd" ||
			$cstArchivedStudents2020->CurrentAction == "gridedit")
			$this->ListOptions->HideAllOptions();
	}

	// Render list options
	function RenderListOptions() {
		global $Security, $Language, $cstArchivedStudents2020;
		$this->ListOptions->LoadDefault();

		// "view"
		$oListOpt =& $this->ListOptions->Items["view"];
		if ($Security->IsLoggedIn() && $oListOpt->Visible)
			$oListOpt->Body = "<a href=\"" . $this->ViewUrl . "\">" . "<img src=\"images/view.gif\" alt=\"" . ew_HtmlEncode($Language->Phrase("ViewLink")) . "\" title=\"" . ew_HtmlEncode($Language->Phrase("ViewLink")) . "\" width=\"16\" height=\"16\" border=\"0\">" . "</a>";

		// "detail_cstStudentAssigArchived"
		$oListOpt =& $this->ListOptions->Items["detail_cstStudentAssigArchived"];
		if ($Security->IsLoggedIn()) {
			$oListOpt->Body = "<img src=\"images/detail.gif\" alt=\"" . ew_HtmlEncode($Language->Phrase("DetailLink")) . "\" title=\"" . ew_HtmlEncode($Language->Phrase("DetailLink")) . "\" width=\"16\" height=\"16\" border=\"0\">" . $Language->TablePhrase("cstStudentAssigArchived", "TblCaption");
			$oListOpt->Body = "<a href=\"cstStudentAssigArchivedlist.php?" . EW_TABLE_SHOW_MASTER . "=cstArchivedStudents2020&CCEStudentID=" . urlencode(strval($cstArchivedStudents2020->CCEStudentID->CurrentValue)) . "\">" . $oListOpt->Body . "</a>";
		}
		$this->RenderListOptionsExt();

		// Call ListOptions_Rendered event
		$this->ListOptions_Rendered();
	}

	function RenderListOptionsExt() {
		global $Security, $Language, $cstArchivedStudents2020;
	}

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

	// Load basic search values
	function LoadBasicSearchValues() {
		global $cstArchivedStudents2020;
		$cstArchivedStudents2020->BasicSearchKeyword = @$_GET[EW_TABLE_BASIC_SEARCH];
		$cstArchivedStudents2020->BasicSearchType = @$_GET[EW_TABLE_BASIC_SEARCH_TYPE];
	}

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

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

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

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

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

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

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

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

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

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

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

		// Initialize URLs
		$this->ViewUrl = $cstArchivedStudents2020->ViewUrl();
		$this->EditUrl = $cstArchivedStudents2020->EditUrl();
		$this->InlineEditUrl = $cstArchivedStudents2020->InlineEditUrl();
		$this->CopyUrl = $cstArchivedStudents2020->CopyUrl();
		$this->InlineCopyUrl = $cstArchivedStudents2020->InlineCopyUrl();
		$this->DeleteUrl = $cstArchivedStudents2020->DeleteUrl();

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

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

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

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

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

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

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

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

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

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

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

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

		// MentorSurname
		$cstArchivedStudents2020->MentorSurname->CellCssStyle = ""; $cstArchivedStudents2020->MentorSurname->CellCssClass = "";
		$cstArchivedStudents2020->MentorSurname->CellAttrs = array(); $cstArchivedStudents2020->MentorSurname->ViewAttrs = array(); $cstArchivedStudents2020->MentorSurname->EditAttrs = array();

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

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

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

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

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

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

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

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

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

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

			// CCEFacilitatorID
			$cstArchivedStudents2020->CCEFacilitatorID->ViewValue = $cstArchivedStudents2020->CCEFacilitatorID->CurrentValue;
			$cstArchivedStudents2020->CCEFacilitatorID->CssStyle = "";
			$cstArchivedStudents2020->CCEFacilitatorID->CssClass = "";
			$cstArchivedStudents2020->CCEFacilitatorID->ViewCustomAttributes = "";

			// Project
			$cstArchivedStudents2020->Project->ViewValue = $cstArchivedStudents2020->Project->CurrentValue;
			$cstArchivedStudents2020->Project->CssStyle = "";
			$cstArchivedStudents2020->Project->CssClass = "";
			$cstArchivedStudents2020->Project->ViewCustomAttributes = "";

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

			// IDNumber
			$cstArchivedStudents2020->IDNumber->ViewValue = $cstArchivedStudents2020->IDNumber->CurrentValue;
			$cstArchivedStudents2020->IDNumber->CssStyle = "";
			$cstArchivedStudents2020->IDNumber->CssClass = "";
			$cstArchivedStudents2020->IDNumber->ViewCustomAttributes = "";

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

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

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

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

			// Telephone
			$cstArchivedStudents2020->Telephone->ViewValue = $cstArchivedStudents2020->Telephone->CurrentValue;
			$cstArchivedStudents2020->Telephone->CssStyle = "";
			$cstArchivedStudents2020->Telephone->CssClass = "";
			$cstArchivedStudents2020->Telephone->ViewCustomAttributes = "";

			// Cellphone
			$cstArchivedStudents2020->Cellphone->ViewValue = $cstArchivedStudents2020->Cellphone->CurrentValue;
			$cstArchivedStudents2020->Cellphone->CssStyle = "";
			$cstArchivedStudents2020->Cellphone->CssClass = "";
			$cstArchivedStudents2020->Cellphone->ViewCustomAttributes = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// MentorSurname
			$cstArchivedStudents2020->MentorSurname->HrefValue = "";
			$cstArchivedStudents2020->MentorSurname->TooltipValue = "";

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

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

			// MentorEmail
			$cstArchivedStudents2020->MentorEmail->HrefValue = "";
			$cstArchivedStudents2020->MentorEmail->TooltipValue = "";
		}

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

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

		// Load recordset
		if ($bSelectLimit) {
			$this->lTotalRecs = $cstArchivedStudents2020->SelectRecordCount();
		} else {
			if ($rs = $this->LoadRecordset())
				$this->lTotalRecs = $rs->RecordCount();
		}
		$this->lStartRec = 1;

		// Export all
		if ($cstArchivedStudents2020->ExportAll) {
			$this->lDisplayRecs = $this->lTotalRecs;
			$this->lStopRec = $this->lTotalRecs;
		} else { // Export one page only
			$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 ($bSelectLimit)
			$rs = $this->LoadRecordset($this->lStartRec-1, $this->lDisplayRecs);
		if (!$rs) {
			header("Content-Type:"); // Remove header
			header("Content-Disposition:");
			$this->ShowMessage();
			return;
		}
		if ($cstArchivedStudents2020->Export == "xml") {
			$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
			$XmlDoc->AddRoot();
		} else {
			$ExportDoc = new cExportDocument($cstArchivedStudents2020, "h");
			$ExportDoc->ExportHeader();
			if ($ExportDoc->Horizontal) { // Horizontal format, write header
				$ExportDoc->BeginExportRow();
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Title);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->FirstName);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Surname);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->KnownAs);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Organisation);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->OrganisationType);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->StudentNumber);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->CCEFacilitatorID);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Project);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->ProjectDiscipline);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->IDNumber);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->ECSANumber);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Age);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->HighestQual);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->AreaDiscipline);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Telephone);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Cellphone);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->EmailAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->HomeAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->WorkAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->PostalAddress);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Designation);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Department);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->CESAAccountNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->VATNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->DietaryRequirements);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->CVFile);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->QualCertificate1);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->QualCertificate2);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->QualCertificate3);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->MemorandumFile);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->AgreementFile);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->OrderNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->BookedByName);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->BookedByDesignation);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->BookedByTelNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->BookedByFaxNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->BookedByCellNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->BookedByEmail);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->WebUsername);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->WebPassword);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->MentorDesig);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->MentorFirstName);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->MentorSurname);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->MentorTel);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->MentorCell);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->MentorEmail);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->HRManagerName);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->HRManagerDesignation);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->HRManagerTelNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->HRManagerCellNo);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->HRManagerEmail);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->LengthEmploy);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->BlockAccess);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Archived);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->ResultLetter);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->Achieved);
				$ExportDoc->ExportCaption($cstArchivedStudents2020->IDFile);
				$ExportDoc->EndExportRow();
			}
		}

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

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

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

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

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

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

		// Build QueryString for search
		if ($cstArchivedStudents2020->getSessionBasicSearchKeyword() <> "") {
			$sQry .= "&" . EW_TABLE_BASIC_SEARCH . "=" . $cstArchivedStudents2020->getSessionBasicSearchKeyword() . "&" . EW_TABLE_BASIC_SEARCH_TYPE . "=" . $cstArchivedStudents2020->getSessionBasicSearchType();
		}

		// Build QueryString for pager
		$sQry .= "&" . EW_TABLE_REC_PER_PAGE . "=" . $cstArchivedStudents2020->getRecordsPerPage() . "&" . EW_TABLE_START_REC . "=" . $cstArchivedStudents2020->getStartRecordNumber();
		return $sQry;
	}

	// Add search QueryString
	function AddSearchQueryString(&$Qry, &$Fld) {
		global $cstArchivedStudents2020;
		$FldParm = substr($Fld->FldVar, 2);
		$FldSearchValue = $cstArchivedStudents2020->GetAdvancedSearch("x_" . $FldParm);
		if (strval($FldSearchValue) <> "") {
			$Qry .= "&x_" . $FldParm . "=" . FldSearchValue .
				"&z_" . $FldParm . "=" . $cstArchivedStudents2020->GetAdvancedSearch("z_" . $FldParm);
		}
		$FldSearchValue2 = $cstArchivedStudents2020->GetAdvancedSearch("y_" . $FldParm);
		if (strval($FldSearchValue2) <> "") {
			$Qry .= "&v_" . $FldParm . "=" . $cstArchivedStudents2020->GetAdvancedSearch("v_" . $FldParm) .
				"&y_" . $FldParm . "=" . $FldSearchValue2 .
				"&w_" . $FldParm . "=" . $cstArchivedStudents2020->GetAdvancedSearch("w_" . $FldParm);
		}
	}

	// 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";

	}

	// Form Custom Validate event
	function Form_CustomValidate(&$CustomError) {

		// Return error message in CustomError
		return TRUE;
	}

	// ListOptions Load event
	function ListOptions_Load() {

		// Example: 
		//$this->ListOptions->Add("new");
		//$this->ListOptions->Items["new"]->OnLeft = TRUE; // Link on left
		//$this->ListOptions->MoveItem("new", 0); // Move to first column

	}

	// ListOptions Rendered event
	function ListOptions_Rendered() {

		// Example: 
		//$this->ListOptions->Items["new"]->Body = "xxx";

	}
}
?>