| Current Path : /var/www/cesa.co.za/cceadmin/ |
| Current File : /var/www/cesa.co.za/cceadmin/cstArchivedStudents2021view.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 "cstArchivedStudents2021info.php" ?>
<?php include "CCEUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
// Create page object
$cstArchivedStudents2021_view = new ccstArchivedStudents2021_view();
$Page =& $cstArchivedStudents2021_view;
// Page init
$cstArchivedStudents2021_view->Page_Init();
// Page main
$cstArchivedStudents2021_view->Page_Main();
?>
<?php include "header.php" ?>
<?php if ($cstArchivedStudents2021->Export == "") { ?>
<script type="text/javascript">
<!--
// Create page object
var cstArchivedStudents2021_view = new ew_Page("cstArchivedStudents2021_view");
// page properties
cstArchivedStudents2021_view.PageID = "view"; // page ID
cstArchivedStudents2021_view.FormID = "fcstArchivedStudents2021view"; // form ID
var EW_PAGE_ID = cstArchivedStudents2021_view.PageID; // for backward compatibility
// extend page with Form_CustomValidate function
cstArchivedStudents2021_view.Form_CustomValidate =
function(fobj) { // DO NOT CHANGE THIS LINE!
// Your custom validation code here, return false if invalid.
return true;
}
<?php if (EW_CLIENT_VALIDATE) { ?>
cstArchivedStudents2021_view.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudents2021_view.ValidateRequired = false; // no JavaScript validation
<?php } ?>
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
// Write your client script here, no need to add script tags.
// To include another .js script, use:
// ew_ClientScriptInclude("my_javascript.js");
//-->
</script>
<?php } ?>
<p><span class="phpmaker"><?php echo $Language->Phrase("View") ?> <?php echo $Language->Phrase("TblTypeCUSTOMVIEW") ?><?php echo $cstArchivedStudents2021->TableCaption() ?>
<?php if ($cstArchivedStudents2021->Export == "") { ?>
<a href="<?php echo $cstArchivedStudents2021_view->ExportPrintUrl ?>"><img src="images/print.gif" alt="<?php echo ew_HtmlEncode($Language->Phrase("PrinterFriendly")) ?>" title="<?php echo ew_HtmlEncode($Language->Phrase("PrinterFriendly")) ?>" width="16" height="16" border="0"></a>
<a href="<?php echo $cstArchivedStudents2021_view->ExportExcelUrl ?>"><img src='images/exportxls.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToExcel")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToExcel")) ?>' width='16' height='16' border='0'></a>
<a href="<?php echo $cstArchivedStudents2021_view->ExportWordUrl ?>"><img src='images/exportdoc.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToWord")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToWord")) ?>' width='16' height='16' border='0'></a>
<a name="emf_cstArchivedStudents2021" id="emf_cstArchivedStudents2021" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_cstArchivedStudents2021',hdr:ewLanguage.Phrase('ExportToEmail'),key:<?php echo ew_ArrayToJsonAttr($cstArchivedStudents2021_view->arRecKey) ?>,sel:false});"><img src='images/exportemail.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToEmail")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToEmail")) ?>' width='16' height='16' border='0'></a>
<?php } ?>
<br><br>
<?php if ($cstArchivedStudents2021->Export == "") { ?>
<a href="<?php echo $cstArchivedStudents2021_view->ListUrl ?>"><?php echo $Language->Phrase("BackToList") ?></a>
<?php if ($Security->AllowList('CCEStudentAssignments')) { ?>
<a href="CCEStudentAssignmentslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=cstArchivedStudents2021&CCEStudentID=<?php echo urlencode(strval($cstArchivedStudents2021->CCEStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCEStudentAssignments", "TblCaption") ?>
</a>
<?php } ?>
<?php if ($Security->AllowList('CCEExamTiming')) { ?>
<a href="CCEExamTiminglist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=cstArchivedStudents2021&CCEStudentID=<?php echo urlencode(strval($cstArchivedStudents2021->CCEStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCEExamTiming", "TblCaption") ?>
</a>
<?php } ?>
<?php } ?>
</span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$cstArchivedStudents2021_view->ShowMessage();
?>
<p>
<?php if ($cstArchivedStudents2021->Export == "") { ?>
<form name="ewpagerform" id="ewpagerform" class="ewForm" action="<?php echo ew_CurrentPage() ?>">
<table border="0" cellspacing="0" cellpadding="0" class="ewPager">
<tr>
<td nowrap>
<?php if (!isset($cstArchivedStudents2021_view->Pager)) $cstArchivedStudents2021_view->Pager = new cPrevNextPager($cstArchivedStudents2021_view->lStartRec, $cstArchivedStudents2021_view->lDisplayRecs, $cstArchivedStudents2021_view->lTotalRecs) ?>
<?php if ($cstArchivedStudents2021_view->Pager->RecordCount > 0) { ?>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><span class="phpmaker"><?php echo $Language->Phrase("Page") ?> </span></td>
<!--first page button-->
<?php if ($cstArchivedStudents2021_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2021_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2021_view->Pager->FirstButton->Start ?>"><img src="images/first.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/firstdisab.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--previous page button-->
<?php if ($cstArchivedStudents2021_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2021_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2021_view->Pager->PrevButton->Start ?>"><img src="images/prev.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/prevdisab.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--current page number-->
<td><input type="text" name="<?php echo EW_TABLE_PAGE_NO ?>" id="<?php echo EW_TABLE_PAGE_NO ?>" value="<?php echo $cstArchivedStudents2021_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($cstArchivedStudents2021_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2021_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2021_view->Pager->NextButton->Start ?>"><img src="images/next.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/nextdisab.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--last page button-->
<?php if ($cstArchivedStudents2021_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2021_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2021_view->Pager->LastButton->Start ?>"><img src="images/last.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/lastdisab.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<td><span class="phpmaker"> <?php echo $Language->Phrase("of") ?> <?php echo $cstArchivedStudents2021_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($cstArchivedStudents2021_view->sSrchWhere == "0=101") { ?>
<span class="phpmaker"><?php echo $Language->Phrase("EnterSearchCriteria") ?></span>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoRecord") ?></span>
<?php } ?>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoPermission") ?></span>
<?php } ?>
<?php } ?>
</td>
</tr>
</table>
</form>
<br>
<?php } ?>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<?php if ($cstArchivedStudents2021->Title->Visible) { // Title ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Title->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Title->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Title->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Title->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->FirstName->Visible) { // FirstName ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->FirstName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->FirstName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->FirstName->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->FirstName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Surname->Visible) { // Surname ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Surname->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Surname->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Surname->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Surname->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->KnownAs->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->KnownAs->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->KnownAs->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->KnownAs->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Organisation->Visible) { // Organisation ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Organisation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Organisation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Organisation->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Organisation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->OrganisationType->Visible) { // OrganisationType ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->OrganisationType->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->OrganisationType->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->OrganisationType->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->OrganisationType->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->StudentNumber->Visible) { // StudentNumber ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->StudentNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->StudentNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->StudentNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->StudentNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->CCEFacilitatorID->Visible) { // CCEFacilitatorID ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->CCEFacilitatorID->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->CCEFacilitatorID->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->CCEFacilitatorID->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->CCEFacilitatorID->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Project->Visible) { // Project ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Project->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Project->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Project->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Project->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->ProjectDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->ProjectDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->ProjectDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->ProjectDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->IDNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->IDNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->IDNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->IDNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->ECSANumber->Visible) { // ECSANumber ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->ECSANumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->ECSANumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->ECSANumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->ECSANumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Age->Visible) { // Age ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Age->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Age->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Age->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Age->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->HighestQual->Visible) { // HighestQual ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->HighestQual->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->HighestQual->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->HighestQual->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->HighestQual->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->AreaDiscipline->Visible) { // AreaDiscipline ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->AreaDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->AreaDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->AreaDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->AreaDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Telephone->Visible) { // Telephone ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Telephone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Telephone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Telephone->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Telephone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Cellphone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Cellphone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Cellphone->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Cellphone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->EmailAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->EmailAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->EmailAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->EmailAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->HomeAddress->Visible) { // HomeAddress ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->HomeAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->HomeAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->HomeAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->HomeAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->WorkAddress->Visible) { // WorkAddress ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->WorkAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->WorkAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->WorkAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->WorkAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->PostalAddress->Visible) { // PostalAddress ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->PostalAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->PostalAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->PostalAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->PostalAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Designation->Visible) { // Designation ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Designation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Designation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Designation->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Designation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Department->Visible) { // Department ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Department->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Department->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Department->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Department->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->CESAAccountNo->Visible) { // CESAAccountNo ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->CESAAccountNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->CESAAccountNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->CESAAccountNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->CESAAccountNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->VATNo->Visible) { // VATNo ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->VATNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->VATNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->VATNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->VATNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->DietaryRequirements->Visible) { // DietaryRequirements ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->DietaryRequirements->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->DietaryRequirements->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->DietaryRequirements->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->DietaryRequirements->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->CVFile->Visible) { // CVFile ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->CVFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->CVFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2021->CVFile->HrefValue <> "" || $cstArchivedStudents2021->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2021->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2021->CVFile->HrefValue ?>"><?php echo $cstArchivedStudents2021->CVFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2021->CVFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2021->CVFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->QualCertificate1->Visible) { // QualCertificate1 ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->QualCertificate1->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->QualCertificate1->CellAttributes() ?>>
<?php if ($cstArchivedStudents2021->QualCertificate1->HrefValue <> "" || $cstArchivedStudents2021->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2021->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2021->QualCertificate1->HrefValue ?>"><?php echo $cstArchivedStudents2021->QualCertificate1->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2021->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2021->QualCertificate1->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->QualCertificate2->Visible) { // QualCertificate2 ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->QualCertificate2->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->QualCertificate2->CellAttributes() ?>>
<?php if ($cstArchivedStudents2021->QualCertificate2->HrefValue <> "" || $cstArchivedStudents2021->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2021->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2021->QualCertificate2->HrefValue ?>"><?php echo $cstArchivedStudents2021->QualCertificate2->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2021->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2021->QualCertificate2->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->QualCertificate3->Visible) { // QualCertificate3 ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->QualCertificate3->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->QualCertificate3->CellAttributes() ?>>
<?php if ($cstArchivedStudents2021->QualCertificate3->HrefValue <> "" || $cstArchivedStudents2021->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2021->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2021->QualCertificate3->HrefValue ?>"><?php echo $cstArchivedStudents2021->QualCertificate3->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2021->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2021->QualCertificate3->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->AgreementFile->Visible) { // AgreementFile ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->AgreementFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->AgreementFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2021->AgreementFile->HrefValue <> "" || $cstArchivedStudents2021->AgreementFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2021->AgreementFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2021->AgreementFile->HrefValue ?>"><?php echo $cstArchivedStudents2021->AgreementFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2021->AgreementFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2021->AgreementFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->OrderNo->Visible) { // OrderNo ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->OrderNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->OrderNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->OrderNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->OrderNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->BookedByName->Visible) { // BookedByName ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->BookedByName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->BookedByName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->BookedByName->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->BookedByName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->BookedByDesignation->Visible) { // BookedByDesignation ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->BookedByDesignation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->BookedByDesignation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->BookedByDesignation->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->BookedByDesignation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->BookedByTelNo->Visible) { // BookedByTelNo ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->BookedByTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->BookedByTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->BookedByTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->BookedByTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->BookedByFaxNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->BookedByFaxNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->BookedByFaxNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->BookedByFaxNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->BookedByCellNo->Visible) { // BookedByCellNo ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->BookedByCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->BookedByCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->BookedByCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->BookedByCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->BookedByEmail->Visible) { // BookedByEmail ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->BookedByEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->BookedByEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->BookedByEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->BookedByEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->WebUsername->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->WebUsername->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->WebUsername->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->WebUsername->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->WebPassword->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->WebPassword->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->WebPassword->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->WebPassword->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->MentorDesig->Visible) { // MentorDesig ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->MentorDesig->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->MentorDesig->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->MentorDesig->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->MentorDesig->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->MentorTel->Visible) { // MentorTel ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->MentorTel->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->MentorTel->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->MentorTel->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->MentorTel->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->MentorCell->Visible) { // MentorCell ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->MentorCell->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->MentorCell->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->MentorCell->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->MentorCell->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->MentorEmail->Visible) { // MentorEmail ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->MentorEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->MentorEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->MentorEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->MentorEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->HRManagerName->Visible) { // HRManagerName ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->HRManagerName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->HRManagerName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->HRManagerName->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->HRManagerName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->HRManagerDesignation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->HRManagerDesignation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->HRManagerDesignation->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->HRManagerDesignation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->HRManagerTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->HRManagerTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->HRManagerTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->HRManagerTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->HRManagerCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->HRManagerCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->HRManagerCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->HRManagerCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->HRManagerEmail->Visible) { // HRManagerEmail ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->HRManagerEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->HRManagerEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->HRManagerEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->HRManagerEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->LengthEmploy->Visible) { // LengthEmploy ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->LengthEmploy->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->LengthEmploy->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->LengthEmploy->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->LengthEmploy->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->BlockAccess->Visible) { // BlockAccess ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->BlockAccess->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->BlockAccess->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->BlockAccess->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->BlockAccess->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Archived->Visible) { // Archived ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Archived->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Archived->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Archived->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Archived->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->ResultLetter->Visible) { // ResultLetter ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->ResultLetter->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->ResultLetter->CellAttributes() ?>>
<?php if ($cstArchivedStudents2021->ResultLetter->HrefValue <> "" || $cstArchivedStudents2021->ResultLetter->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2021->ResultLetter->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2021->ResultLetter->HrefValue ?>"><?php echo $cstArchivedStudents2021->ResultLetter->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2021->ResultLetter->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2021->ResultLetter->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->Achieved->Visible) { // Achieved ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->Achieved->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->Achieved->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->Achieved->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->Achieved->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->IDFile->Visible) { // IDFile ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->IDFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->IDFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2021->IDFile->HrefValue <> "" || $cstArchivedStudents2021->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2021->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2021->IDFile->HrefValue ?>"><?php echo $cstArchivedStudents2021->IDFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2021->IDFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2021->IDFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2021->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2021->ReasonForLeaving->Visible) { // ReasonForLeaving ?>
<tr<?php echo $cstArchivedStudents2021->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2021->ReasonForLeaving->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2021->ReasonForLeaving->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2021->ReasonForLeaving->ViewAttributes() ?>><?php echo $cstArchivedStudents2021->ReasonForLeaving->ViewValue ?></div></td>
</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<?php if ($cstArchivedStudents2021->Export == "") { ?>
<br>
<form name="ewpagerform" id="ewpagerform" class="ewForm" action="<?php echo ew_CurrentPage() ?>">
<table border="0" cellspacing="0" cellpadding="0" class="ewPager">
<tr>
<td nowrap>
<?php if (!isset($cstArchivedStudents2021_view->Pager)) $cstArchivedStudents2021_view->Pager = new cPrevNextPager($cstArchivedStudents2021_view->lStartRec, $cstArchivedStudents2021_view->lDisplayRecs, $cstArchivedStudents2021_view->lTotalRecs) ?>
<?php if ($cstArchivedStudents2021_view->Pager->RecordCount > 0) { ?>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><span class="phpmaker"><?php echo $Language->Phrase("Page") ?> </span></td>
<!--first page button-->
<?php if ($cstArchivedStudents2021_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2021_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2021_view->Pager->FirstButton->Start ?>"><img src="images/first.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/firstdisab.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--previous page button-->
<?php if ($cstArchivedStudents2021_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2021_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2021_view->Pager->PrevButton->Start ?>"><img src="images/prev.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/prevdisab.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--current page number-->
<td><input type="text" name="<?php echo EW_TABLE_PAGE_NO ?>" id="<?php echo EW_TABLE_PAGE_NO ?>" value="<?php echo $cstArchivedStudents2021_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($cstArchivedStudents2021_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2021_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2021_view->Pager->NextButton->Start ?>"><img src="images/next.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/nextdisab.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--last page button-->
<?php if ($cstArchivedStudents2021_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2021_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2021_view->Pager->LastButton->Start ?>"><img src="images/last.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/lastdisab.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<td><span class="phpmaker"> <?php echo $Language->Phrase("of") ?> <?php echo $cstArchivedStudents2021_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($cstArchivedStudents2021_view->sSrchWhere == "0=101") { ?>
<span class="phpmaker"><?php echo $Language->Phrase("EnterSearchCriteria") ?></span>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoRecord") ?></span>
<?php } ?>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoPermission") ?></span>
<?php } ?>
<?php } ?>
</td>
</tr>
</table>
</form>
<?php } ?>
<p>
<?php if ($cstArchivedStudents2021->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
$cstArchivedStudents2021_view->Page_Terminate();
?>
<?php
//
// Page class
//
class ccstArchivedStudents2021_view {
// Page ID
var $PageID = 'view';
// Table name
var $TableName = 'cstArchivedStudents2021';
// Page object name
var $PageObjName = 'cstArchivedStudents2021_view';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $cstArchivedStudents2021;
if ($cstArchivedStudents2021->UseTokenInUrl) $PageUrl .= "t=" . $cstArchivedStudents2021->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, $cstArchivedStudents2021;
if ($cstArchivedStudents2021->UseTokenInUrl) {
if ($objForm)
return ($cstArchivedStudents2021->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($cstArchivedStudents2021->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function __construct() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (cstArchivedStudents2021)
$GLOBALS["cstArchivedStudents2021"] = new ccstArchivedStudents2021();
// Table object (CCEUsers)
$GLOBALS['CCEUsers'] = new cCCEUsers();
// Page ID
if (!defined("EW_PAGE_ID"))
define("EW_PAGE_ID", 'view', TRUE);
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME"))
define("EW_TABLE_NAME", 'cstArchivedStudents2021', TRUE);
// Start timer
$GLOBALS["gsTimer"] = new cTimer();
// Open connection
$conn = ew_Connect();
}
//
// Page_Init
//
function Page_Init() {
global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
global $cstArchivedStudents2021;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) $Security->AutoLogin();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->TableName);
$Security->TablePermission_Loaded();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
if (!$Security->CanView()) {
$Security->SaveLastUrl();
$this->Page_Terminate("cstArchivedStudents2021list.php");
}
// Get export parameters
if (@$_GET["export"] <> "") {
$cstArchivedStudents2021->Export = $_GET["export"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] <> "")
$cstArchivedStudents2021->Export = $_POST["exporttype"];
} else {
$cstArchivedStudents2021->setExportReturnUrl(ew_CurrentUrl());
}
$gsExport = $cstArchivedStudents2021->Export; // Get export parameter, used in header
$gsExportFile = $cstArchivedStudents2021->TableVar; // Get export file, used in header
if (@$_GET["CCEStudentID"] <> "") {
if ($gsExportFile <> "") $gsExportFile .= "_";
$gsExportFile .= ew_StripSlashes($_GET["CCEStudentID"]);
}
if ($cstArchivedStudents2021->Export == "excel") {
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=' . $gsExportFile .'.xls');
}
if ($cstArchivedStudents2021->Export == "word") {
header('Content-Type: application/vnd.ms-word');
header('Content-Disposition: attachment; filename=' . $gsExportFile .'.doc');
}
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
}
//
// Page_Terminate
//
function Page_Terminate($url = "") {
global $conn;
// Page Unload event
$this->Page_Unload();
// Global Page Unloaded event (in userfn*.php)
Page_Unloaded();
// Close connection
$conn->Close();
// Go to URL if specified
$this->Page_Redirecting($url);
if ($url <> "") {
if (!EW_DEBUG_ENABLED && ob_get_length())
ob_end_clean();
header("Location: " . $url);
}
exit();
}
var $lDisplayRecs = 1;
var $lStartRec;
var $lStopRec;
var $lTotalRecs = 0;
var $lRecRange = 10;
var $lRecCnt;
var $arRecKey = array();
//
// Page main
//
function Page_Main() {
global $Language, $cstArchivedStudents2021;
// Load current record
$bLoadCurrentRecord = FALSE;
$sReturnUrl = "";
$bMatchRecord = FALSE;
if ($this->IsPageRequest()) { // Validate request
if (@$_GET["CCEStudentID"] <> "") {
$cstArchivedStudents2021->CCEStudentID->setQueryStringValue($_GET["CCEStudentID"]);
$this->arRecKey["CCEStudentID"] = $cstArchivedStudents2021->CCEStudentID->QueryStringValue;
} else {
$bLoadCurrentRecord = TRUE;
}
// Get action
$cstArchivedStudents2021->CurrentAction = "I"; // Display form
switch ($cstArchivedStudents2021->CurrentAction) {
case "I": // Get a record to display
$this->lStartRec = 1; // Initialize start position
if ($rs = $this->LoadRecordset()) // Load records
$this->lTotalRecs = $rs->RecordCount(); // Get record count
if ($this->lTotalRecs <= 0) { // No record found
$this->setMessage($Language->Phrase("NoRecord")); // Set no record message
$this->Page_Terminate("cstArchivedStudents2021list.php"); // Return to list page
} elseif ($bLoadCurrentRecord) { // Load current record position
$this->SetUpStartRec(); // Set up start record position
// Point to current record
if (intval($this->lStartRec) <= intval($this->lTotalRecs)) {
$bMatchRecord = TRUE;
$rs->Move($this->lStartRec-1);
}
} else { // Match key values
while (!$rs->EOF) {
if (strval($cstArchivedStudents2021->CCEStudentID->CurrentValue) == strval($rs->fields('CCEStudentID'))) {
$cstArchivedStudents2021->setStartRecordNumber($this->lStartRec); // Save record position
$bMatchRecord = TRUE;
break;
} else {
$this->lStartRec++;
$rs->MoveNext();
}
}
}
if (!$bMatchRecord) {
$this->setMessage($Language->Phrase("NoRecord")); // Set no record message
$sReturnUrl = "cstArchivedStudents2021list.php"; // No matching record, return to list
} else {
$this->LoadRowValues($rs); // Load row values
}
}
// Export data only
if (in_array($cstArchivedStudents2021->Export, array("html","word","excel","xml","csv","email"))) {
$this->ExportData();
if ($cstArchivedStudents2021->Export <> "email")
$this->Page_Terminate(); // Terminate response
exit();
}
} else {
$sReturnUrl = "cstArchivedStudents2021list.php"; // Not page request, return to list
}
if ($sReturnUrl <> "")
$this->Page_Terminate($sReturnUrl);
// Render row
$cstArchivedStudents2021->RowType = EW_ROWTYPE_VIEW;
$this->RenderRow();
}
// Set up starting record parameters
function SetUpStartRec() {
global $cstArchivedStudents2021;
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];
$cstArchivedStudents2021->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;
}
$cstArchivedStudents2021->setStartRecordNumber($this->lStartRec);
}
}
}
$this->lStartRec = $cstArchivedStudents2021->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
$cstArchivedStudents2021->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
$cstArchivedStudents2021->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
$cstArchivedStudents2021->setStartRecordNumber($this->lStartRec);
}
}
// Load recordset
function LoadRecordset($offset = -1, $rowcnt = -1) {
global $conn, $cstArchivedStudents2021;
// Call Recordset Selecting event
$cstArchivedStudents2021->Recordset_Selecting($cstArchivedStudents2021->CurrentFilter);
// Load List page SQL
$sSql = $cstArchivedStudents2021->SelectSQL();
if ($offset > -1 && $rowcnt > -1)
$sSql .= " LIMIT $offset, $rowcnt";
// Load recordset
$rs = ew_LoadRecordset($sSql);
// Call Recordset Selected event
$cstArchivedStudents2021->Recordset_Selected($rs);
return $rs;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $cstArchivedStudents2021;
$sFilter = $cstArchivedStudents2021->KeyFilter();
// Call Row Selecting event
$cstArchivedStudents2021->Row_Selecting($sFilter);
// Load SQL based on filter
$cstArchivedStudents2021->CurrentFilter = $sFilter;
$sSql = $cstArchivedStudents2021->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$cstArchivedStudents2021->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $cstArchivedStudents2021;
$cstArchivedStudents2021->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
$cstArchivedStudents2021->Title->setDbValue($rs->fields('Title'));
$cstArchivedStudents2021->FirstName->setDbValue($rs->fields('FirstName'));
$cstArchivedStudents2021->Surname->setDbValue($rs->fields('Surname'));
$cstArchivedStudents2021->KnownAs->setDbValue($rs->fields('KnownAs'));
$cstArchivedStudents2021->Organisation->setDbValue($rs->fields('Organisation'));
$cstArchivedStudents2021->OrganisationType->setDbValue($rs->fields('OrganisationType'));
$cstArchivedStudents2021->StudentNumber->setDbValue($rs->fields('StudentNumber'));
$cstArchivedStudents2021->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
$cstArchivedStudents2021->Project->setDbValue($rs->fields('Project'));
$cstArchivedStudents2021->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
$cstArchivedStudents2021->IDNumber->setDbValue($rs->fields('IDNumber'));
$cstArchivedStudents2021->ECSANumber->setDbValue($rs->fields('ECSANumber'));
$cstArchivedStudents2021->Age->setDbValue($rs->fields('Age'));
$cstArchivedStudents2021->HighestQual->setDbValue($rs->fields('HighestQual'));
$cstArchivedStudents2021->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
$cstArchivedStudents2021->Telephone->setDbValue($rs->fields('Telephone'));
$cstArchivedStudents2021->Cellphone->setDbValue($rs->fields('Cellphone'));
$cstArchivedStudents2021->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$cstArchivedStudents2021->HomeAddress->setDbValue($rs->fields('HomeAddress'));
$cstArchivedStudents2021->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$cstArchivedStudents2021->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$cstArchivedStudents2021->Designation->setDbValue($rs->fields('Designation'));
$cstArchivedStudents2021->Department->setDbValue($rs->fields('Department'));
$cstArchivedStudents2021->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
$cstArchivedStudents2021->VATNo->setDbValue($rs->fields('VATNo'));
$cstArchivedStudents2021->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
$cstArchivedStudents2021->CVFile->Upload->DbValue = $rs->fields('CVFile');
$cstArchivedStudents2021->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
$cstArchivedStudents2021->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
$cstArchivedStudents2021->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
$cstArchivedStudents2021->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
$cstArchivedStudents2021->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
$cstArchivedStudents2021->OrderNo->setDbValue($rs->fields('OrderNo'));
$cstArchivedStudents2021->BookedByName->setDbValue($rs->fields('BookedByName'));
$cstArchivedStudents2021->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
$cstArchivedStudents2021->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
$cstArchivedStudents2021->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
$cstArchivedStudents2021->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
$cstArchivedStudents2021->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
$cstArchivedStudents2021->WebUsername->setDbValue($rs->fields('WebUsername'));
$cstArchivedStudents2021->WebPassword->setDbValue($rs->fields('WebPassword'));
$cstArchivedStudents2021->MentorName->setDbValue($rs->fields('MentorName'));
$cstArchivedStudents2021->MentorDesig->setDbValue($rs->fields('MentorDesig'));
$cstArchivedStudents2021->MentorTel->setDbValue($rs->fields('MentorTel'));
$cstArchivedStudents2021->MentorCell->setDbValue($rs->fields('MentorCell'));
$cstArchivedStudents2021->MentorEmail->setDbValue($rs->fields('MentorEmail'));
$cstArchivedStudents2021->HRManagerName->setDbValue($rs->fields('HRManagerName'));
$cstArchivedStudents2021->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
$cstArchivedStudents2021->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
$cstArchivedStudents2021->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
$cstArchivedStudents2021->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
$cstArchivedStudents2021->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
$cstArchivedStudents2021->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$cstArchivedStudents2021->Archived->setDbValue($rs->fields('Archived'));
$cstArchivedStudents2021->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter');
$cstArchivedStudents2021->Achieved->setDbValue($rs->fields('Achieved'));
$cstArchivedStudents2021->IDFile->Upload->DbValue = $rs->fields('IDFile');
$cstArchivedStudents2021->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $cstArchivedStudents2021;
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print&" . "CCEStudentID=" . urlencode($cstArchivedStudents2021->CCEStudentID->CurrentValue);
$this->ExportHtmlUrl = $this->PageUrl() . "export=html&" . "CCEStudentID=" . urlencode($cstArchivedStudents2021->CCEStudentID->CurrentValue);
$this->ExportExcelUrl = $this->PageUrl() . "export=excel&" . "CCEStudentID=" . urlencode($cstArchivedStudents2021->CCEStudentID->CurrentValue);
$this->ExportWordUrl = $this->PageUrl() . "export=word&" . "CCEStudentID=" . urlencode($cstArchivedStudents2021->CCEStudentID->CurrentValue);
$this->ExportXmlUrl = $this->PageUrl() . "export=xml&" . "CCEStudentID=" . urlencode($cstArchivedStudents2021->CCEStudentID->CurrentValue);
$this->ExportCsvUrl = $this->PageUrl() . "export=csv&" . "CCEStudentID=" . urlencode($cstArchivedStudents2021->CCEStudentID->CurrentValue);
$this->AddUrl = $cstArchivedStudents2021->AddUrl();
$this->EditUrl = $cstArchivedStudents2021->EditUrl();
$this->CopyUrl = $cstArchivedStudents2021->CopyUrl();
$this->DeleteUrl = $cstArchivedStudents2021->DeleteUrl();
$this->ListUrl = $cstArchivedStudents2021->ListUrl();
// Call Row_Rendering event
$cstArchivedStudents2021->Row_Rendering();
// Common render codes for all row types
// Title
$cstArchivedStudents2021->Title->CellCssStyle = ""; $cstArchivedStudents2021->Title->CellCssClass = "";
$cstArchivedStudents2021->Title->CellAttrs = array(); $cstArchivedStudents2021->Title->ViewAttrs = array(); $cstArchivedStudents2021->Title->EditAttrs = array();
// FirstName
$cstArchivedStudents2021->FirstName->CellCssStyle = ""; $cstArchivedStudents2021->FirstName->CellCssClass = "";
$cstArchivedStudents2021->FirstName->CellAttrs = array(); $cstArchivedStudents2021->FirstName->ViewAttrs = array(); $cstArchivedStudents2021->FirstName->EditAttrs = array();
// Surname
$cstArchivedStudents2021->Surname->CellCssStyle = ""; $cstArchivedStudents2021->Surname->CellCssClass = "";
$cstArchivedStudents2021->Surname->CellAttrs = array(); $cstArchivedStudents2021->Surname->ViewAttrs = array(); $cstArchivedStudents2021->Surname->EditAttrs = array();
// KnownAs
$cstArchivedStudents2021->KnownAs->CellCssStyle = ""; $cstArchivedStudents2021->KnownAs->CellCssClass = "";
$cstArchivedStudents2021->KnownAs->CellAttrs = array(); $cstArchivedStudents2021->KnownAs->ViewAttrs = array(); $cstArchivedStudents2021->KnownAs->EditAttrs = array();
// Organisation
$cstArchivedStudents2021->Organisation->CellCssStyle = ""; $cstArchivedStudents2021->Organisation->CellCssClass = "";
$cstArchivedStudents2021->Organisation->CellAttrs = array(); $cstArchivedStudents2021->Organisation->ViewAttrs = array(); $cstArchivedStudents2021->Organisation->EditAttrs = array();
// OrganisationType
$cstArchivedStudents2021->OrganisationType->CellCssStyle = ""; $cstArchivedStudents2021->OrganisationType->CellCssClass = "";
$cstArchivedStudents2021->OrganisationType->CellAttrs = array(); $cstArchivedStudents2021->OrganisationType->ViewAttrs = array(); $cstArchivedStudents2021->OrganisationType->EditAttrs = array();
// StudentNumber
$cstArchivedStudents2021->StudentNumber->CellCssStyle = ""; $cstArchivedStudents2021->StudentNumber->CellCssClass = "";
$cstArchivedStudents2021->StudentNumber->CellAttrs = array(); $cstArchivedStudents2021->StudentNumber->ViewAttrs = array(); $cstArchivedStudents2021->StudentNumber->EditAttrs = array();
// CCEFacilitatorID
$cstArchivedStudents2021->CCEFacilitatorID->CellCssStyle = ""; $cstArchivedStudents2021->CCEFacilitatorID->CellCssClass = "";
$cstArchivedStudents2021->CCEFacilitatorID->CellAttrs = array(); $cstArchivedStudents2021->CCEFacilitatorID->ViewAttrs = array(); $cstArchivedStudents2021->CCEFacilitatorID->EditAttrs = array();
// Project
$cstArchivedStudents2021->Project->CellCssStyle = ""; $cstArchivedStudents2021->Project->CellCssClass = "";
$cstArchivedStudents2021->Project->CellAttrs = array(); $cstArchivedStudents2021->Project->ViewAttrs = array(); $cstArchivedStudents2021->Project->EditAttrs = array();
// ProjectDiscipline
$cstArchivedStudents2021->ProjectDiscipline->CellCssStyle = ""; $cstArchivedStudents2021->ProjectDiscipline->CellCssClass = "";
$cstArchivedStudents2021->ProjectDiscipline->CellAttrs = array(); $cstArchivedStudents2021->ProjectDiscipline->ViewAttrs = array(); $cstArchivedStudents2021->ProjectDiscipline->EditAttrs = array();
// IDNumber
$cstArchivedStudents2021->IDNumber->CellCssStyle = ""; $cstArchivedStudents2021->IDNumber->CellCssClass = "";
$cstArchivedStudents2021->IDNumber->CellAttrs = array(); $cstArchivedStudents2021->IDNumber->ViewAttrs = array(); $cstArchivedStudents2021->IDNumber->EditAttrs = array();
// ECSANumber
$cstArchivedStudents2021->ECSANumber->CellCssStyle = ""; $cstArchivedStudents2021->ECSANumber->CellCssClass = "";
$cstArchivedStudents2021->ECSANumber->CellAttrs = array(); $cstArchivedStudents2021->ECSANumber->ViewAttrs = array(); $cstArchivedStudents2021->ECSANumber->EditAttrs = array();
// Age
$cstArchivedStudents2021->Age->CellCssStyle = ""; $cstArchivedStudents2021->Age->CellCssClass = "";
$cstArchivedStudents2021->Age->CellAttrs = array(); $cstArchivedStudents2021->Age->ViewAttrs = array(); $cstArchivedStudents2021->Age->EditAttrs = array();
// HighestQual
$cstArchivedStudents2021->HighestQual->CellCssStyle = ""; $cstArchivedStudents2021->HighestQual->CellCssClass = "";
$cstArchivedStudents2021->HighestQual->CellAttrs = array(); $cstArchivedStudents2021->HighestQual->ViewAttrs = array(); $cstArchivedStudents2021->HighestQual->EditAttrs = array();
// AreaDiscipline
$cstArchivedStudents2021->AreaDiscipline->CellCssStyle = ""; $cstArchivedStudents2021->AreaDiscipline->CellCssClass = "";
$cstArchivedStudents2021->AreaDiscipline->CellAttrs = array(); $cstArchivedStudents2021->AreaDiscipline->ViewAttrs = array(); $cstArchivedStudents2021->AreaDiscipline->EditAttrs = array();
// Telephone
$cstArchivedStudents2021->Telephone->CellCssStyle = ""; $cstArchivedStudents2021->Telephone->CellCssClass = "";
$cstArchivedStudents2021->Telephone->CellAttrs = array(); $cstArchivedStudents2021->Telephone->ViewAttrs = array(); $cstArchivedStudents2021->Telephone->EditAttrs = array();
// Cellphone
$cstArchivedStudents2021->Cellphone->CellCssStyle = ""; $cstArchivedStudents2021->Cellphone->CellCssClass = "";
$cstArchivedStudents2021->Cellphone->CellAttrs = array(); $cstArchivedStudents2021->Cellphone->ViewAttrs = array(); $cstArchivedStudents2021->Cellphone->EditAttrs = array();
// EmailAddress
$cstArchivedStudents2021->EmailAddress->CellCssStyle = ""; $cstArchivedStudents2021->EmailAddress->CellCssClass = "";
$cstArchivedStudents2021->EmailAddress->CellAttrs = array(); $cstArchivedStudents2021->EmailAddress->ViewAttrs = array(); $cstArchivedStudents2021->EmailAddress->EditAttrs = array();
// HomeAddress
$cstArchivedStudents2021->HomeAddress->CellCssStyle = ""; $cstArchivedStudents2021->HomeAddress->CellCssClass = "";
$cstArchivedStudents2021->HomeAddress->CellAttrs = array(); $cstArchivedStudents2021->HomeAddress->ViewAttrs = array(); $cstArchivedStudents2021->HomeAddress->EditAttrs = array();
// WorkAddress
$cstArchivedStudents2021->WorkAddress->CellCssStyle = ""; $cstArchivedStudents2021->WorkAddress->CellCssClass = "";
$cstArchivedStudents2021->WorkAddress->CellAttrs = array(); $cstArchivedStudents2021->WorkAddress->ViewAttrs = array(); $cstArchivedStudents2021->WorkAddress->EditAttrs = array();
// PostalAddress
$cstArchivedStudents2021->PostalAddress->CellCssStyle = ""; $cstArchivedStudents2021->PostalAddress->CellCssClass = "";
$cstArchivedStudents2021->PostalAddress->CellAttrs = array(); $cstArchivedStudents2021->PostalAddress->ViewAttrs = array(); $cstArchivedStudents2021->PostalAddress->EditAttrs = array();
// Designation
$cstArchivedStudents2021->Designation->CellCssStyle = ""; $cstArchivedStudents2021->Designation->CellCssClass = "";
$cstArchivedStudents2021->Designation->CellAttrs = array(); $cstArchivedStudents2021->Designation->ViewAttrs = array(); $cstArchivedStudents2021->Designation->EditAttrs = array();
// Department
$cstArchivedStudents2021->Department->CellCssStyle = ""; $cstArchivedStudents2021->Department->CellCssClass = "";
$cstArchivedStudents2021->Department->CellAttrs = array(); $cstArchivedStudents2021->Department->ViewAttrs = array(); $cstArchivedStudents2021->Department->EditAttrs = array();
// CESAAccountNo
$cstArchivedStudents2021->CESAAccountNo->CellCssStyle = ""; $cstArchivedStudents2021->CESAAccountNo->CellCssClass = "";
$cstArchivedStudents2021->CESAAccountNo->CellAttrs = array(); $cstArchivedStudents2021->CESAAccountNo->ViewAttrs = array(); $cstArchivedStudents2021->CESAAccountNo->EditAttrs = array();
// VATNo
$cstArchivedStudents2021->VATNo->CellCssStyle = ""; $cstArchivedStudents2021->VATNo->CellCssClass = "";
$cstArchivedStudents2021->VATNo->CellAttrs = array(); $cstArchivedStudents2021->VATNo->ViewAttrs = array(); $cstArchivedStudents2021->VATNo->EditAttrs = array();
// DietaryRequirements
$cstArchivedStudents2021->DietaryRequirements->CellCssStyle = ""; $cstArchivedStudents2021->DietaryRequirements->CellCssClass = "";
$cstArchivedStudents2021->DietaryRequirements->CellAttrs = array(); $cstArchivedStudents2021->DietaryRequirements->ViewAttrs = array(); $cstArchivedStudents2021->DietaryRequirements->EditAttrs = array();
// CVFile
$cstArchivedStudents2021->CVFile->CellCssStyle = ""; $cstArchivedStudents2021->CVFile->CellCssClass = "";
$cstArchivedStudents2021->CVFile->CellAttrs = array(); $cstArchivedStudents2021->CVFile->ViewAttrs = array(); $cstArchivedStudents2021->CVFile->EditAttrs = array();
// QualCertificate1
$cstArchivedStudents2021->QualCertificate1->CellCssStyle = ""; $cstArchivedStudents2021->QualCertificate1->CellCssClass = "";
$cstArchivedStudents2021->QualCertificate1->CellAttrs = array(); $cstArchivedStudents2021->QualCertificate1->ViewAttrs = array(); $cstArchivedStudents2021->QualCertificate1->EditAttrs = array();
// QualCertificate2
$cstArchivedStudents2021->QualCertificate2->CellCssStyle = ""; $cstArchivedStudents2021->QualCertificate2->CellCssClass = "";
$cstArchivedStudents2021->QualCertificate2->CellAttrs = array(); $cstArchivedStudents2021->QualCertificate2->ViewAttrs = array(); $cstArchivedStudents2021->QualCertificate2->EditAttrs = array();
// QualCertificate3
$cstArchivedStudents2021->QualCertificate3->CellCssStyle = ""; $cstArchivedStudents2021->QualCertificate3->CellCssClass = "";
$cstArchivedStudents2021->QualCertificate3->CellAttrs = array(); $cstArchivedStudents2021->QualCertificate3->ViewAttrs = array(); $cstArchivedStudents2021->QualCertificate3->EditAttrs = array();
// AgreementFile
$cstArchivedStudents2021->AgreementFile->CellCssStyle = ""; $cstArchivedStudents2021->AgreementFile->CellCssClass = "";
$cstArchivedStudents2021->AgreementFile->CellAttrs = array(); $cstArchivedStudents2021->AgreementFile->ViewAttrs = array(); $cstArchivedStudents2021->AgreementFile->EditAttrs = array();
// OrderNo
$cstArchivedStudents2021->OrderNo->CellCssStyle = ""; $cstArchivedStudents2021->OrderNo->CellCssClass = "";
$cstArchivedStudents2021->OrderNo->CellAttrs = array(); $cstArchivedStudents2021->OrderNo->ViewAttrs = array(); $cstArchivedStudents2021->OrderNo->EditAttrs = array();
// BookedByName
$cstArchivedStudents2021->BookedByName->CellCssStyle = ""; $cstArchivedStudents2021->BookedByName->CellCssClass = "";
$cstArchivedStudents2021->BookedByName->CellAttrs = array(); $cstArchivedStudents2021->BookedByName->ViewAttrs = array(); $cstArchivedStudents2021->BookedByName->EditAttrs = array();
// BookedByDesignation
$cstArchivedStudents2021->BookedByDesignation->CellCssStyle = ""; $cstArchivedStudents2021->BookedByDesignation->CellCssClass = "";
$cstArchivedStudents2021->BookedByDesignation->CellAttrs = array(); $cstArchivedStudents2021->BookedByDesignation->ViewAttrs = array(); $cstArchivedStudents2021->BookedByDesignation->EditAttrs = array();
// BookedByTelNo
$cstArchivedStudents2021->BookedByTelNo->CellCssStyle = ""; $cstArchivedStudents2021->BookedByTelNo->CellCssClass = "";
$cstArchivedStudents2021->BookedByTelNo->CellAttrs = array(); $cstArchivedStudents2021->BookedByTelNo->ViewAttrs = array(); $cstArchivedStudents2021->BookedByTelNo->EditAttrs = array();
// BookedByFaxNo
$cstArchivedStudents2021->BookedByFaxNo->CellCssStyle = ""; $cstArchivedStudents2021->BookedByFaxNo->CellCssClass = "";
$cstArchivedStudents2021->BookedByFaxNo->CellAttrs = array(); $cstArchivedStudents2021->BookedByFaxNo->ViewAttrs = array(); $cstArchivedStudents2021->BookedByFaxNo->EditAttrs = array();
// BookedByCellNo
$cstArchivedStudents2021->BookedByCellNo->CellCssStyle = ""; $cstArchivedStudents2021->BookedByCellNo->CellCssClass = "";
$cstArchivedStudents2021->BookedByCellNo->CellAttrs = array(); $cstArchivedStudents2021->BookedByCellNo->ViewAttrs = array(); $cstArchivedStudents2021->BookedByCellNo->EditAttrs = array();
// BookedByEmail
$cstArchivedStudents2021->BookedByEmail->CellCssStyle = ""; $cstArchivedStudents2021->BookedByEmail->CellCssClass = "";
$cstArchivedStudents2021->BookedByEmail->CellAttrs = array(); $cstArchivedStudents2021->BookedByEmail->ViewAttrs = array(); $cstArchivedStudents2021->BookedByEmail->EditAttrs = array();
// WebUsername
$cstArchivedStudents2021->WebUsername->CellCssStyle = ""; $cstArchivedStudents2021->WebUsername->CellCssClass = "";
$cstArchivedStudents2021->WebUsername->CellAttrs = array(); $cstArchivedStudents2021->WebUsername->ViewAttrs = array(); $cstArchivedStudents2021->WebUsername->EditAttrs = array();
// WebPassword
$cstArchivedStudents2021->WebPassword->CellCssStyle = ""; $cstArchivedStudents2021->WebPassword->CellCssClass = "";
$cstArchivedStudents2021->WebPassword->CellAttrs = array(); $cstArchivedStudents2021->WebPassword->ViewAttrs = array(); $cstArchivedStudents2021->WebPassword->EditAttrs = array();
// MentorDesig
$cstArchivedStudents2021->MentorDesig->CellCssStyle = ""; $cstArchivedStudents2021->MentorDesig->CellCssClass = "";
$cstArchivedStudents2021->MentorDesig->CellAttrs = array(); $cstArchivedStudents2021->MentorDesig->ViewAttrs = array(); $cstArchivedStudents2021->MentorDesig->EditAttrs = array();
// MentorTel
$cstArchivedStudents2021->MentorTel->CellCssStyle = ""; $cstArchivedStudents2021->MentorTel->CellCssClass = "";
$cstArchivedStudents2021->MentorTel->CellAttrs = array(); $cstArchivedStudents2021->MentorTel->ViewAttrs = array(); $cstArchivedStudents2021->MentorTel->EditAttrs = array();
// MentorCell
$cstArchivedStudents2021->MentorCell->CellCssStyle = ""; $cstArchivedStudents2021->MentorCell->CellCssClass = "";
$cstArchivedStudents2021->MentorCell->CellAttrs = array(); $cstArchivedStudents2021->MentorCell->ViewAttrs = array(); $cstArchivedStudents2021->MentorCell->EditAttrs = array();
// MentorEmail
$cstArchivedStudents2021->MentorEmail->CellCssStyle = ""; $cstArchivedStudents2021->MentorEmail->CellCssClass = "";
$cstArchivedStudents2021->MentorEmail->CellAttrs = array(); $cstArchivedStudents2021->MentorEmail->ViewAttrs = array(); $cstArchivedStudents2021->MentorEmail->EditAttrs = array();
// HRManagerName
$cstArchivedStudents2021->HRManagerName->CellCssStyle = ""; $cstArchivedStudents2021->HRManagerName->CellCssClass = "";
$cstArchivedStudents2021->HRManagerName->CellAttrs = array(); $cstArchivedStudents2021->HRManagerName->ViewAttrs = array(); $cstArchivedStudents2021->HRManagerName->EditAttrs = array();
// HRManagerDesignation
$cstArchivedStudents2021->HRManagerDesignation->CellCssStyle = ""; $cstArchivedStudents2021->HRManagerDesignation->CellCssClass = "";
$cstArchivedStudents2021->HRManagerDesignation->CellAttrs = array(); $cstArchivedStudents2021->HRManagerDesignation->ViewAttrs = array(); $cstArchivedStudents2021->HRManagerDesignation->EditAttrs = array();
// HRManagerTelNo
$cstArchivedStudents2021->HRManagerTelNo->CellCssStyle = ""; $cstArchivedStudents2021->HRManagerTelNo->CellCssClass = "";
$cstArchivedStudents2021->HRManagerTelNo->CellAttrs = array(); $cstArchivedStudents2021->HRManagerTelNo->ViewAttrs = array(); $cstArchivedStudents2021->HRManagerTelNo->EditAttrs = array();
// HRManagerCellNo
$cstArchivedStudents2021->HRManagerCellNo->CellCssStyle = ""; $cstArchivedStudents2021->HRManagerCellNo->CellCssClass = "";
$cstArchivedStudents2021->HRManagerCellNo->CellAttrs = array(); $cstArchivedStudents2021->HRManagerCellNo->ViewAttrs = array(); $cstArchivedStudents2021->HRManagerCellNo->EditAttrs = array();
// HRManagerEmail
$cstArchivedStudents2021->HRManagerEmail->CellCssStyle = ""; $cstArchivedStudents2021->HRManagerEmail->CellCssClass = "";
$cstArchivedStudents2021->HRManagerEmail->CellAttrs = array(); $cstArchivedStudents2021->HRManagerEmail->ViewAttrs = array(); $cstArchivedStudents2021->HRManagerEmail->EditAttrs = array();
// LengthEmploy
$cstArchivedStudents2021->LengthEmploy->CellCssStyle = ""; $cstArchivedStudents2021->LengthEmploy->CellCssClass = "";
$cstArchivedStudents2021->LengthEmploy->CellAttrs = array(); $cstArchivedStudents2021->LengthEmploy->ViewAttrs = array(); $cstArchivedStudents2021->LengthEmploy->EditAttrs = array();
// BlockAccess
$cstArchivedStudents2021->BlockAccess->CellCssStyle = ""; $cstArchivedStudents2021->BlockAccess->CellCssClass = "";
$cstArchivedStudents2021->BlockAccess->CellAttrs = array(); $cstArchivedStudents2021->BlockAccess->ViewAttrs = array(); $cstArchivedStudents2021->BlockAccess->EditAttrs = array();
// Archived
$cstArchivedStudents2021->Archived->CellCssStyle = ""; $cstArchivedStudents2021->Archived->CellCssClass = "";
$cstArchivedStudents2021->Archived->CellAttrs = array(); $cstArchivedStudents2021->Archived->ViewAttrs = array(); $cstArchivedStudents2021->Archived->EditAttrs = array();
// ResultLetter
$cstArchivedStudents2021->ResultLetter->CellCssStyle = ""; $cstArchivedStudents2021->ResultLetter->CellCssClass = "";
$cstArchivedStudents2021->ResultLetter->CellAttrs = array(); $cstArchivedStudents2021->ResultLetter->ViewAttrs = array(); $cstArchivedStudents2021->ResultLetter->EditAttrs = array();
// Achieved
$cstArchivedStudents2021->Achieved->CellCssStyle = ""; $cstArchivedStudents2021->Achieved->CellCssClass = "";
$cstArchivedStudents2021->Achieved->CellAttrs = array(); $cstArchivedStudents2021->Achieved->ViewAttrs = array(); $cstArchivedStudents2021->Achieved->EditAttrs = array();
// IDFile
$cstArchivedStudents2021->IDFile->CellCssStyle = ""; $cstArchivedStudents2021->IDFile->CellCssClass = "";
$cstArchivedStudents2021->IDFile->CellAttrs = array(); $cstArchivedStudents2021->IDFile->ViewAttrs = array(); $cstArchivedStudents2021->IDFile->EditAttrs = array();
// ReasonForLeaving
$cstArchivedStudents2021->ReasonForLeaving->CellCssStyle = ""; $cstArchivedStudents2021->ReasonForLeaving->CellCssClass = "";
$cstArchivedStudents2021->ReasonForLeaving->CellAttrs = array(); $cstArchivedStudents2021->ReasonForLeaving->ViewAttrs = array(); $cstArchivedStudents2021->ReasonForLeaving->EditAttrs = array();
if ($cstArchivedStudents2021->RowType == EW_ROWTYPE_VIEW) { // View row
// Title
$cstArchivedStudents2021->Title->ViewValue = $cstArchivedStudents2021->Title->CurrentValue;
$cstArchivedStudents2021->Title->CssStyle = "";
$cstArchivedStudents2021->Title->CssClass = "";
$cstArchivedStudents2021->Title->ViewCustomAttributes = "";
// FirstName
$cstArchivedStudents2021->FirstName->ViewValue = $cstArchivedStudents2021->FirstName->CurrentValue;
$cstArchivedStudents2021->FirstName->CssStyle = "";
$cstArchivedStudents2021->FirstName->CssClass = "";
$cstArchivedStudents2021->FirstName->ViewCustomAttributes = "";
// Surname
$cstArchivedStudents2021->Surname->ViewValue = $cstArchivedStudents2021->Surname->CurrentValue;
$cstArchivedStudents2021->Surname->CssStyle = "";
$cstArchivedStudents2021->Surname->CssClass = "";
$cstArchivedStudents2021->Surname->ViewCustomAttributes = "";
// KnownAs
$cstArchivedStudents2021->KnownAs->ViewValue = $cstArchivedStudents2021->KnownAs->CurrentValue;
$cstArchivedStudents2021->KnownAs->CssStyle = "";
$cstArchivedStudents2021->KnownAs->CssClass = "";
$cstArchivedStudents2021->KnownAs->ViewCustomAttributes = "";
// Organisation
$cstArchivedStudents2021->Organisation->ViewValue = $cstArchivedStudents2021->Organisation->CurrentValue;
$cstArchivedStudents2021->Organisation->CssStyle = "";
$cstArchivedStudents2021->Organisation->CssClass = "";
$cstArchivedStudents2021->Organisation->ViewCustomAttributes = "";
// OrganisationType
$cstArchivedStudents2021->OrganisationType->ViewValue = $cstArchivedStudents2021->OrganisationType->CurrentValue;
$cstArchivedStudents2021->OrganisationType->CssStyle = "";
$cstArchivedStudents2021->OrganisationType->CssClass = "";
$cstArchivedStudents2021->OrganisationType->ViewCustomAttributes = "";
// StudentNumber
$cstArchivedStudents2021->StudentNumber->ViewValue = $cstArchivedStudents2021->StudentNumber->CurrentValue;
$cstArchivedStudents2021->StudentNumber->CssStyle = "";
$cstArchivedStudents2021->StudentNumber->CssClass = "";
$cstArchivedStudents2021->StudentNumber->ViewCustomAttributes = "";
// CCEFacilitatorID
if (strval($cstArchivedStudents2021->CCEFacilitatorID->CurrentValue) <> "") {
$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($cstArchivedStudents2021->CCEFacilitatorID->CurrentValue) . "";
$sSqlWrk = "SELECT `FacilitatorName` FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "Archived=0" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudents2021->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
$rswrk->Close();
} else {
$cstArchivedStudents2021->CCEFacilitatorID->ViewValue = $cstArchivedStudents2021->CCEFacilitatorID->CurrentValue;
}
} else {
$cstArchivedStudents2021->CCEFacilitatorID->ViewValue = NULL;
}
$cstArchivedStudents2021->CCEFacilitatorID->CssStyle = "";
$cstArchivedStudents2021->CCEFacilitatorID->CssClass = "";
$cstArchivedStudents2021->CCEFacilitatorID->ViewCustomAttributes = "";
// Project
if (strval($cstArchivedStudents2021->Project->CurrentValue) <> "") {
$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($cstArchivedStudents2021->Project->CurrentValue) . "";
$sSqlWrk = "SELECT `Project` FROM `CCEProjects`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudents2021->Project->ViewValue = $rswrk->fields('Project');
$rswrk->Close();
} else {
$cstArchivedStudents2021->Project->ViewValue = $cstArchivedStudents2021->Project->CurrentValue;
}
} else {
$cstArchivedStudents2021->Project->ViewValue = NULL;
}
$cstArchivedStudents2021->Project->CssStyle = "";
$cstArchivedStudents2021->Project->CssClass = "";
$cstArchivedStudents2021->Project->ViewCustomAttributes = "";
// ProjectDiscipline
$cstArchivedStudents2021->ProjectDiscipline->ViewValue = $cstArchivedStudents2021->ProjectDiscipline->CurrentValue;
$cstArchivedStudents2021->ProjectDiscipline->CssStyle = "";
$cstArchivedStudents2021->ProjectDiscipline->CssClass = "";
$cstArchivedStudents2021->ProjectDiscipline->ViewCustomAttributes = "";
// IDNumber
$cstArchivedStudents2021->IDNumber->ViewValue = $cstArchivedStudents2021->IDNumber->CurrentValue;
$cstArchivedStudents2021->IDNumber->CssStyle = "";
$cstArchivedStudents2021->IDNumber->CssClass = "";
$cstArchivedStudents2021->IDNumber->ViewCustomAttributes = "mso-number-format:General";
// ECSANumber
$cstArchivedStudents2021->ECSANumber->ViewValue = $cstArchivedStudents2021->ECSANumber->CurrentValue;
$cstArchivedStudents2021->ECSANumber->CssStyle = "";
$cstArchivedStudents2021->ECSANumber->CssClass = "";
$cstArchivedStudents2021->ECSANumber->ViewCustomAttributes = "";
// Age
$cstArchivedStudents2021->Age->ViewValue = $cstArchivedStudents2021->Age->CurrentValue;
$cstArchivedStudents2021->Age->CssStyle = "";
$cstArchivedStudents2021->Age->CssClass = "";
$cstArchivedStudents2021->Age->ViewCustomAttributes = "";
// HighestQual
$cstArchivedStudents2021->HighestQual->ViewValue = $cstArchivedStudents2021->HighestQual->CurrentValue;
$cstArchivedStudents2021->HighestQual->CssStyle = "";
$cstArchivedStudents2021->HighestQual->CssClass = "";
$cstArchivedStudents2021->HighestQual->ViewCustomAttributes = "";
// AreaDiscipline
$cstArchivedStudents2021->AreaDiscipline->ViewValue = $cstArchivedStudents2021->AreaDiscipline->CurrentValue;
$cstArchivedStudents2021->AreaDiscipline->CssStyle = "";
$cstArchivedStudents2021->AreaDiscipline->CssClass = "";
$cstArchivedStudents2021->AreaDiscipline->ViewCustomAttributes = "";
// Telephone
$cstArchivedStudents2021->Telephone->ViewValue = $cstArchivedStudents2021->Telephone->CurrentValue;
$cstArchivedStudents2021->Telephone->CssStyle = "";
$cstArchivedStudents2021->Telephone->CssClass = "";
$cstArchivedStudents2021->Telephone->ViewCustomAttributes = "mso-number-format:General";
// Cellphone
$cstArchivedStudents2021->Cellphone->ViewValue = $cstArchivedStudents2021->Cellphone->CurrentValue;
$cstArchivedStudents2021->Cellphone->CssStyle = "";
$cstArchivedStudents2021->Cellphone->CssClass = "";
$cstArchivedStudents2021->Cellphone->ViewCustomAttributes = "mso-number-format:General";
// EmailAddress
$cstArchivedStudents2021->EmailAddress->ViewValue = $cstArchivedStudents2021->EmailAddress->CurrentValue;
$cstArchivedStudents2021->EmailAddress->CssStyle = "";
$cstArchivedStudents2021->EmailAddress->CssClass = "";
$cstArchivedStudents2021->EmailAddress->ViewCustomAttributes = "";
// HomeAddress
$cstArchivedStudents2021->HomeAddress->ViewValue = $cstArchivedStudents2021->HomeAddress->CurrentValue;
$cstArchivedStudents2021->HomeAddress->CssStyle = "";
$cstArchivedStudents2021->HomeAddress->CssClass = "";
$cstArchivedStudents2021->HomeAddress->ViewCustomAttributes = "";
// WorkAddress
$cstArchivedStudents2021->WorkAddress->ViewValue = $cstArchivedStudents2021->WorkAddress->CurrentValue;
$cstArchivedStudents2021->WorkAddress->CssStyle = "";
$cstArchivedStudents2021->WorkAddress->CssClass = "";
$cstArchivedStudents2021->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$cstArchivedStudents2021->PostalAddress->ViewValue = $cstArchivedStudents2021->PostalAddress->CurrentValue;
$cstArchivedStudents2021->PostalAddress->CssStyle = "";
$cstArchivedStudents2021->PostalAddress->CssClass = "";
$cstArchivedStudents2021->PostalAddress->ViewCustomAttributes = "";
// Designation
$cstArchivedStudents2021->Designation->ViewValue = $cstArchivedStudents2021->Designation->CurrentValue;
$cstArchivedStudents2021->Designation->CssStyle = "";
$cstArchivedStudents2021->Designation->CssClass = "";
$cstArchivedStudents2021->Designation->ViewCustomAttributes = "";
// Department
$cstArchivedStudents2021->Department->ViewValue = $cstArchivedStudents2021->Department->CurrentValue;
$cstArchivedStudents2021->Department->CssStyle = "";
$cstArchivedStudents2021->Department->CssClass = "";
$cstArchivedStudents2021->Department->ViewCustomAttributes = "";
// CESAAccountNo
$cstArchivedStudents2021->CESAAccountNo->ViewValue = $cstArchivedStudents2021->CESAAccountNo->CurrentValue;
$cstArchivedStudents2021->CESAAccountNo->CssStyle = "";
$cstArchivedStudents2021->CESAAccountNo->CssClass = "";
$cstArchivedStudents2021->CESAAccountNo->ViewCustomAttributes = "";
// VATNo
$cstArchivedStudents2021->VATNo->ViewValue = $cstArchivedStudents2021->VATNo->CurrentValue;
$cstArchivedStudents2021->VATNo->CssStyle = "";
$cstArchivedStudents2021->VATNo->CssClass = "";
$cstArchivedStudents2021->VATNo->ViewCustomAttributes = "mso-number-format:General";
// DietaryRequirements
$cstArchivedStudents2021->DietaryRequirements->ViewValue = $cstArchivedStudents2021->DietaryRequirements->CurrentValue;
$cstArchivedStudents2021->DietaryRequirements->CssStyle = "";
$cstArchivedStudents2021->DietaryRequirements->CssClass = "";
$cstArchivedStudents2021->DietaryRequirements->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($cstArchivedStudents2021->CVFile->Upload->DbValue)) {
$cstArchivedStudents2021->CVFile->ViewValue = $cstArchivedStudents2021->CVFile->Upload->DbValue;
} else {
$cstArchivedStudents2021->CVFile->ViewValue = "";
}
$cstArchivedStudents2021->CVFile->CssStyle = "";
$cstArchivedStudents2021->CVFile->CssClass = "";
$cstArchivedStudents2021->CVFile->ViewCustomAttributes = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudents2021->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents2021->QualCertificate1->ViewValue = $cstArchivedStudents2021->QualCertificate1->Upload->DbValue;
} else {
$cstArchivedStudents2021->QualCertificate1->ViewValue = "";
}
$cstArchivedStudents2021->QualCertificate1->CssStyle = "";
$cstArchivedStudents2021->QualCertificate1->CssClass = "";
$cstArchivedStudents2021->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudents2021->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents2021->QualCertificate2->ViewValue = $cstArchivedStudents2021->QualCertificate2->Upload->DbValue;
} else {
$cstArchivedStudents2021->QualCertificate2->ViewValue = "";
}
$cstArchivedStudents2021->QualCertificate2->CssStyle = "";
$cstArchivedStudents2021->QualCertificate2->CssClass = "";
$cstArchivedStudents2021->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudents2021->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents2021->QualCertificate3->ViewValue = $cstArchivedStudents2021->QualCertificate3->Upload->DbValue;
} else {
$cstArchivedStudents2021->QualCertificate3->ViewValue = "";
}
$cstArchivedStudents2021->QualCertificate3->CssStyle = "";
$cstArchivedStudents2021->QualCertificate3->CssClass = "";
$cstArchivedStudents2021->QualCertificate3->ViewCustomAttributes = "";
// AgreementFile
if (!ew_Empty($cstArchivedStudents2021->AgreementFile->Upload->DbValue)) {
$cstArchivedStudents2021->AgreementFile->ViewValue = $cstArchivedStudents2021->AgreementFile->Upload->DbValue;
} else {
$cstArchivedStudents2021->AgreementFile->ViewValue = "";
}
$cstArchivedStudents2021->AgreementFile->CssStyle = "";
$cstArchivedStudents2021->AgreementFile->CssClass = "";
$cstArchivedStudents2021->AgreementFile->ViewCustomAttributes = "";
// OrderNo
$cstArchivedStudents2021->OrderNo->ViewValue = $cstArchivedStudents2021->OrderNo->CurrentValue;
$cstArchivedStudents2021->OrderNo->CssStyle = "";
$cstArchivedStudents2021->OrderNo->CssClass = "";
$cstArchivedStudents2021->OrderNo->ViewCustomAttributes = "";
// BookedByName
$cstArchivedStudents2021->BookedByName->ViewValue = $cstArchivedStudents2021->BookedByName->CurrentValue;
$cstArchivedStudents2021->BookedByName->CssStyle = "";
$cstArchivedStudents2021->BookedByName->CssClass = "";
$cstArchivedStudents2021->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$cstArchivedStudents2021->BookedByDesignation->ViewValue = $cstArchivedStudents2021->BookedByDesignation->CurrentValue;
$cstArchivedStudents2021->BookedByDesignation->CssStyle = "";
$cstArchivedStudents2021->BookedByDesignation->CssClass = "";
$cstArchivedStudents2021->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$cstArchivedStudents2021->BookedByTelNo->ViewValue = $cstArchivedStudents2021->BookedByTelNo->CurrentValue;
$cstArchivedStudents2021->BookedByTelNo->CssStyle = "";
$cstArchivedStudents2021->BookedByTelNo->CssClass = "";
$cstArchivedStudents2021->BookedByTelNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByFaxNo
$cstArchivedStudents2021->BookedByFaxNo->ViewValue = $cstArchivedStudents2021->BookedByFaxNo->CurrentValue;
$cstArchivedStudents2021->BookedByFaxNo->CssStyle = "";
$cstArchivedStudents2021->BookedByFaxNo->CssClass = "";
$cstArchivedStudents2021->BookedByFaxNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByCellNo
$cstArchivedStudents2021->BookedByCellNo->ViewValue = $cstArchivedStudents2021->BookedByCellNo->CurrentValue;
$cstArchivedStudents2021->BookedByCellNo->CssStyle = "";
$cstArchivedStudents2021->BookedByCellNo->CssClass = "";
$cstArchivedStudents2021->BookedByCellNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByEmail
$cstArchivedStudents2021->BookedByEmail->ViewValue = $cstArchivedStudents2021->BookedByEmail->CurrentValue;
$cstArchivedStudents2021->BookedByEmail->CssStyle = "";
$cstArchivedStudents2021->BookedByEmail->CssClass = "";
$cstArchivedStudents2021->BookedByEmail->ViewCustomAttributes = "";
// WebUsername
$cstArchivedStudents2021->WebUsername->ViewValue = $cstArchivedStudents2021->WebUsername->CurrentValue;
$cstArchivedStudents2021->WebUsername->CssStyle = "";
$cstArchivedStudents2021->WebUsername->CssClass = "";
$cstArchivedStudents2021->WebUsername->ViewCustomAttributes = "";
// WebPassword
$cstArchivedStudents2021->WebPassword->ViewValue = $cstArchivedStudents2021->WebPassword->CurrentValue;
$cstArchivedStudents2021->WebPassword->CssStyle = "";
$cstArchivedStudents2021->WebPassword->CssClass = "";
$cstArchivedStudents2021->WebPassword->ViewCustomAttributes = "";
// MentorDesig
$cstArchivedStudents2021->MentorDesig->ViewValue = $cstArchivedStudents2021->MentorDesig->CurrentValue;
$cstArchivedStudents2021->MentorDesig->CssStyle = "";
$cstArchivedStudents2021->MentorDesig->CssClass = "";
$cstArchivedStudents2021->MentorDesig->ViewCustomAttributes = "";
// MentorTel
$cstArchivedStudents2021->MentorTel->ViewValue = $cstArchivedStudents2021->MentorTel->CurrentValue;
$cstArchivedStudents2021->MentorTel->CssStyle = "";
$cstArchivedStudents2021->MentorTel->CssClass = "";
$cstArchivedStudents2021->MentorTel->ViewCustomAttributes = "";
// MentorCell
$cstArchivedStudents2021->MentorCell->ViewValue = $cstArchivedStudents2021->MentorCell->CurrentValue;
$cstArchivedStudents2021->MentorCell->CssStyle = "";
$cstArchivedStudents2021->MentorCell->CssClass = "";
$cstArchivedStudents2021->MentorCell->ViewCustomAttributes = "";
// MentorEmail
$cstArchivedStudents2021->MentorEmail->ViewValue = $cstArchivedStudents2021->MentorEmail->CurrentValue;
$cstArchivedStudents2021->MentorEmail->CssStyle = "";
$cstArchivedStudents2021->MentorEmail->CssClass = "";
$cstArchivedStudents2021->MentorEmail->ViewCustomAttributes = "";
// HRManagerName
$cstArchivedStudents2021->HRManagerName->ViewValue = $cstArchivedStudents2021->HRManagerName->CurrentValue;
$cstArchivedStudents2021->HRManagerName->CssStyle = "";
$cstArchivedStudents2021->HRManagerName->CssClass = "";
$cstArchivedStudents2021->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$cstArchivedStudents2021->HRManagerDesignation->ViewValue = $cstArchivedStudents2021->HRManagerDesignation->CurrentValue;
$cstArchivedStudents2021->HRManagerDesignation->CssStyle = "";
$cstArchivedStudents2021->HRManagerDesignation->CssClass = "";
$cstArchivedStudents2021->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$cstArchivedStudents2021->HRManagerTelNo->ViewValue = $cstArchivedStudents2021->HRManagerTelNo->CurrentValue;
$cstArchivedStudents2021->HRManagerTelNo->CssStyle = "";
$cstArchivedStudents2021->HRManagerTelNo->CssClass = "";
$cstArchivedStudents2021->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$cstArchivedStudents2021->HRManagerCellNo->ViewValue = $cstArchivedStudents2021->HRManagerCellNo->CurrentValue;
$cstArchivedStudents2021->HRManagerCellNo->CssStyle = "";
$cstArchivedStudents2021->HRManagerCellNo->CssClass = "";
$cstArchivedStudents2021->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$cstArchivedStudents2021->HRManagerEmail->ViewValue = $cstArchivedStudents2021->HRManagerEmail->CurrentValue;
$cstArchivedStudents2021->HRManagerEmail->CssStyle = "";
$cstArchivedStudents2021->HRManagerEmail->CssClass = "";
$cstArchivedStudents2021->HRManagerEmail->ViewCustomAttributes = "";
// LengthEmploy
$cstArchivedStudents2021->LengthEmploy->ViewValue = $cstArchivedStudents2021->LengthEmploy->CurrentValue;
$cstArchivedStudents2021->LengthEmploy->CssStyle = "";
$cstArchivedStudents2021->LengthEmploy->CssClass = "";
$cstArchivedStudents2021->LengthEmploy->ViewCustomAttributes = "";
// BlockAccess
if (strval($cstArchivedStudents2021->BlockAccess->CurrentValue) <> "") {
switch ($cstArchivedStudents2021->BlockAccess->CurrentValue) {
case "y":
$cstArchivedStudents2021->BlockAccess->ViewValue = "Yes";
break;
case "n":
$cstArchivedStudents2021->BlockAccess->ViewValue = "No";
break;
default:
$cstArchivedStudents2021->BlockAccess->ViewValue = $cstArchivedStudents2021->BlockAccess->CurrentValue;
}
} else {
$cstArchivedStudents2021->BlockAccess->ViewValue = NULL;
}
$cstArchivedStudents2021->BlockAccess->CssStyle = "";
$cstArchivedStudents2021->BlockAccess->CssClass = "";
$cstArchivedStudents2021->BlockAccess->ViewCustomAttributes = "";
// Archived
if (strval($cstArchivedStudents2021->Archived->CurrentValue) <> "") {
$cstArchivedStudents2021->Archived->ViewValue = "";
$arwrk = explode(",", strval($cstArchivedStudents2021->Archived->CurrentValue));
for ($ari = 0; $ari < count($arwrk); $ari++) {
switch (trim($arwrk[$ari])) {
case "1":
$cstArchivedStudents2021->Archived->ViewValue .= "Yes";
break;
default:
$cstArchivedStudents2021->Archived->ViewValue .= trim($arwrk[$ari]);
}
if ($ari < count($arwrk)-1) $cstArchivedStudents2021->Archived->ViewValue .= ew_ViewOptionSeparator($ari);
}
} else {
$cstArchivedStudents2021->Archived->ViewValue = NULL;
}
$cstArchivedStudents2021->Archived->CssStyle = "";
$cstArchivedStudents2021->Archived->CssClass = "";
$cstArchivedStudents2021->Archived->ViewCustomAttributes = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudents2021->ResultLetter->Upload->DbValue)) {
$cstArchivedStudents2021->ResultLetter->ViewValue = $cstArchivedStudents2021->ResultLetter->Upload->DbValue;
} else {
$cstArchivedStudents2021->ResultLetter->ViewValue = "";
}
$cstArchivedStudents2021->ResultLetter->CssStyle = "";
$cstArchivedStudents2021->ResultLetter->CssClass = "";
$cstArchivedStudents2021->ResultLetter->ViewCustomAttributes = "";
// Achieved
if (strval($cstArchivedStudents2021->Achieved->CurrentValue) <> "") {
$cstArchivedStudents2021->Achieved->ViewValue = "";
$arwrk = explode(",", strval($cstArchivedStudents2021->Achieved->CurrentValue));
for ($ari = 0; $ari < count($arwrk); $ari++) {
switch (trim($arwrk[$ari])) {
case "1":
$cstArchivedStudents2021->Achieved->ViewValue .= "Yes";
break;
default:
$cstArchivedStudents2021->Achieved->ViewValue .= trim($arwrk[$ari]);
}
if ($ari < count($arwrk)-1) $cstArchivedStudents2021->Achieved->ViewValue .= ew_ViewOptionSeparator($ari);
}
} else {
$cstArchivedStudents2021->Achieved->ViewValue = NULL;
}
$cstArchivedStudents2021->Achieved->CssStyle = "";
$cstArchivedStudents2021->Achieved->CssClass = "";
$cstArchivedStudents2021->Achieved->ViewCustomAttributes = "";
// IDFile
if (!ew_Empty($cstArchivedStudents2021->IDFile->Upload->DbValue)) {
$cstArchivedStudents2021->IDFile->ViewValue = $cstArchivedStudents2021->IDFile->Upload->DbValue;
} else {
$cstArchivedStudents2021->IDFile->ViewValue = "";
}
$cstArchivedStudents2021->IDFile->CssStyle = "";
$cstArchivedStudents2021->IDFile->CssClass = "";
$cstArchivedStudents2021->IDFile->ViewCustomAttributes = "";
// ReasonForLeaving
$cstArchivedStudents2021->ReasonForLeaving->ViewValue = $cstArchivedStudents2021->ReasonForLeaving->CurrentValue;
$cstArchivedStudents2021->ReasonForLeaving->CssStyle = "";
$cstArchivedStudents2021->ReasonForLeaving->CssClass = "";
$cstArchivedStudents2021->ReasonForLeaving->ViewCustomAttributes = "";
// Title
$cstArchivedStudents2021->Title->HrefValue = "";
$cstArchivedStudents2021->Title->TooltipValue = "";
// FirstName
$cstArchivedStudents2021->FirstName->HrefValue = "";
$cstArchivedStudents2021->FirstName->TooltipValue = "";
// Surname
$cstArchivedStudents2021->Surname->HrefValue = "";
$cstArchivedStudents2021->Surname->TooltipValue = "";
// KnownAs
$cstArchivedStudents2021->KnownAs->HrefValue = "";
$cstArchivedStudents2021->KnownAs->TooltipValue = "";
// Organisation
$cstArchivedStudents2021->Organisation->HrefValue = "";
$cstArchivedStudents2021->Organisation->TooltipValue = "";
// OrganisationType
$cstArchivedStudents2021->OrganisationType->HrefValue = "";
$cstArchivedStudents2021->OrganisationType->TooltipValue = "";
// StudentNumber
$cstArchivedStudents2021->StudentNumber->HrefValue = "";
$cstArchivedStudents2021->StudentNumber->TooltipValue = "";
// CCEFacilitatorID
$cstArchivedStudents2021->CCEFacilitatorID->HrefValue = "";
$cstArchivedStudents2021->CCEFacilitatorID->TooltipValue = "";
// Project
$cstArchivedStudents2021->Project->HrefValue = "";
$cstArchivedStudents2021->Project->TooltipValue = "";
// ProjectDiscipline
$cstArchivedStudents2021->ProjectDiscipline->HrefValue = "";
$cstArchivedStudents2021->ProjectDiscipline->TooltipValue = "";
// IDNumber
$cstArchivedStudents2021->IDNumber->HrefValue = "";
$cstArchivedStudents2021->IDNumber->TooltipValue = "";
// ECSANumber
$cstArchivedStudents2021->ECSANumber->HrefValue = "";
$cstArchivedStudents2021->ECSANumber->TooltipValue = "";
// Age
$cstArchivedStudents2021->Age->HrefValue = "";
$cstArchivedStudents2021->Age->TooltipValue = "";
// HighestQual
$cstArchivedStudents2021->HighestQual->HrefValue = "";
$cstArchivedStudents2021->HighestQual->TooltipValue = "";
// AreaDiscipline
$cstArchivedStudents2021->AreaDiscipline->HrefValue = "";
$cstArchivedStudents2021->AreaDiscipline->TooltipValue = "";
// Telephone
$cstArchivedStudents2021->Telephone->HrefValue = "";
$cstArchivedStudents2021->Telephone->TooltipValue = "";
// Cellphone
$cstArchivedStudents2021->Cellphone->HrefValue = "";
$cstArchivedStudents2021->Cellphone->TooltipValue = "";
// EmailAddress
$cstArchivedStudents2021->EmailAddress->HrefValue = "";
$cstArchivedStudents2021->EmailAddress->TooltipValue = "";
// HomeAddress
$cstArchivedStudents2021->HomeAddress->HrefValue = "";
$cstArchivedStudents2021->HomeAddress->TooltipValue = "";
// WorkAddress
$cstArchivedStudents2021->WorkAddress->HrefValue = "";
$cstArchivedStudents2021->WorkAddress->TooltipValue = "";
// PostalAddress
$cstArchivedStudents2021->PostalAddress->HrefValue = "";
$cstArchivedStudents2021->PostalAddress->TooltipValue = "";
// Designation
$cstArchivedStudents2021->Designation->HrefValue = "";
$cstArchivedStudents2021->Designation->TooltipValue = "";
// Department
$cstArchivedStudents2021->Department->HrefValue = "";
$cstArchivedStudents2021->Department->TooltipValue = "";
// CESAAccountNo
$cstArchivedStudents2021->CESAAccountNo->HrefValue = "";
$cstArchivedStudents2021->CESAAccountNo->TooltipValue = "";
// VATNo
$cstArchivedStudents2021->VATNo->HrefValue = "";
$cstArchivedStudents2021->VATNo->TooltipValue = "";
// DietaryRequirements
$cstArchivedStudents2021->DietaryRequirements->HrefValue = "";
$cstArchivedStudents2021->DietaryRequirements->TooltipValue = "";
// CVFile
if (!ew_Empty($cstArchivedStudents2021->CVFile->Upload->DbValue)) {
$cstArchivedStudents2021->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2021->CVFile->UploadPath) . ((!empty($cstArchivedStudents2021->CVFile->ViewValue)) ? $cstArchivedStudents2021->CVFile->ViewValue : $cstArchivedStudents2021->CVFile->CurrentValue);
if ($cstArchivedStudents2021->Export <> "") $cstArchivedStudents2021->CVFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2021->CVFile->HrefValue);
} else {
$cstArchivedStudents2021->CVFile->HrefValue = "";
}
$cstArchivedStudents2021->CVFile->TooltipValue = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudents2021->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents2021->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2021->QualCertificate1->UploadPath) . ((!empty($cstArchivedStudents2021->QualCertificate1->ViewValue)) ? $cstArchivedStudents2021->QualCertificate1->ViewValue : $cstArchivedStudents2021->QualCertificate1->CurrentValue);
if ($cstArchivedStudents2021->Export <> "") $cstArchivedStudents2021->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2021->QualCertificate1->HrefValue);
} else {
$cstArchivedStudents2021->QualCertificate1->HrefValue = "";
}
$cstArchivedStudents2021->QualCertificate1->TooltipValue = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudents2021->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents2021->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2021->QualCertificate2->UploadPath) . ((!empty($cstArchivedStudents2021->QualCertificate2->ViewValue)) ? $cstArchivedStudents2021->QualCertificate2->ViewValue : $cstArchivedStudents2021->QualCertificate2->CurrentValue);
if ($cstArchivedStudents2021->Export <> "") $cstArchivedStudents2021->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2021->QualCertificate2->HrefValue);
} else {
$cstArchivedStudents2021->QualCertificate2->HrefValue = "";
}
$cstArchivedStudents2021->QualCertificate2->TooltipValue = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudents2021->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents2021->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2021->QualCertificate3->UploadPath) . ((!empty($cstArchivedStudents2021->QualCertificate3->ViewValue)) ? $cstArchivedStudents2021->QualCertificate3->ViewValue : $cstArchivedStudents2021->QualCertificate3->CurrentValue);
if ($cstArchivedStudents2021->Export <> "") $cstArchivedStudents2021->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2021->QualCertificate3->HrefValue);
} else {
$cstArchivedStudents2021->QualCertificate3->HrefValue = "";
}
$cstArchivedStudents2021->QualCertificate3->TooltipValue = "";
// AgreementFile
if (!ew_Empty($cstArchivedStudents2021->AgreementFile->Upload->DbValue)) {
$cstArchivedStudents2021->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2021->AgreementFile->UploadPath) . ((!empty($cstArchivedStudents2021->AgreementFile->ViewValue)) ? $cstArchivedStudents2021->AgreementFile->ViewValue : $cstArchivedStudents2021->AgreementFile->CurrentValue);
if ($cstArchivedStudents2021->Export <> "") $cstArchivedStudents2021->AgreementFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2021->AgreementFile->HrefValue);
} else {
$cstArchivedStudents2021->AgreementFile->HrefValue = "";
}
$cstArchivedStudents2021->AgreementFile->TooltipValue = "";
// OrderNo
$cstArchivedStudents2021->OrderNo->HrefValue = "";
$cstArchivedStudents2021->OrderNo->TooltipValue = "";
// BookedByName
$cstArchivedStudents2021->BookedByName->HrefValue = "";
$cstArchivedStudents2021->BookedByName->TooltipValue = "";
// BookedByDesignation
$cstArchivedStudents2021->BookedByDesignation->HrefValue = "";
$cstArchivedStudents2021->BookedByDesignation->TooltipValue = "";
// BookedByTelNo
$cstArchivedStudents2021->BookedByTelNo->HrefValue = "";
$cstArchivedStudents2021->BookedByTelNo->TooltipValue = "";
// BookedByFaxNo
$cstArchivedStudents2021->BookedByFaxNo->HrefValue = "";
$cstArchivedStudents2021->BookedByFaxNo->TooltipValue = "";
// BookedByCellNo
$cstArchivedStudents2021->BookedByCellNo->HrefValue = "";
$cstArchivedStudents2021->BookedByCellNo->TooltipValue = "";
// BookedByEmail
$cstArchivedStudents2021->BookedByEmail->HrefValue = "";
$cstArchivedStudents2021->BookedByEmail->TooltipValue = "";
// WebUsername
$cstArchivedStudents2021->WebUsername->HrefValue = "";
$cstArchivedStudents2021->WebUsername->TooltipValue = "";
// WebPassword
$cstArchivedStudents2021->WebPassword->HrefValue = "";
$cstArchivedStudents2021->WebPassword->TooltipValue = "";
// MentorDesig
$cstArchivedStudents2021->MentorDesig->HrefValue = "";
$cstArchivedStudents2021->MentorDesig->TooltipValue = "";
// MentorTel
$cstArchivedStudents2021->MentorTel->HrefValue = "";
$cstArchivedStudents2021->MentorTel->TooltipValue = "";
// MentorCell
$cstArchivedStudents2021->MentorCell->HrefValue = "";
$cstArchivedStudents2021->MentorCell->TooltipValue = "";
// MentorEmail
$cstArchivedStudents2021->MentorEmail->HrefValue = "";
$cstArchivedStudents2021->MentorEmail->TooltipValue = "";
// HRManagerName
$cstArchivedStudents2021->HRManagerName->HrefValue = "";
$cstArchivedStudents2021->HRManagerName->TooltipValue = "";
// HRManagerDesignation
$cstArchivedStudents2021->HRManagerDesignation->HrefValue = "";
$cstArchivedStudents2021->HRManagerDesignation->TooltipValue = "";
// HRManagerTelNo
$cstArchivedStudents2021->HRManagerTelNo->HrefValue = "";
$cstArchivedStudents2021->HRManagerTelNo->TooltipValue = "";
// HRManagerCellNo
$cstArchivedStudents2021->HRManagerCellNo->HrefValue = "";
$cstArchivedStudents2021->HRManagerCellNo->TooltipValue = "";
// HRManagerEmail
$cstArchivedStudents2021->HRManagerEmail->HrefValue = "";
$cstArchivedStudents2021->HRManagerEmail->TooltipValue = "";
// LengthEmploy
$cstArchivedStudents2021->LengthEmploy->HrefValue = "";
$cstArchivedStudents2021->LengthEmploy->TooltipValue = "";
// BlockAccess
$cstArchivedStudents2021->BlockAccess->HrefValue = "";
$cstArchivedStudents2021->BlockAccess->TooltipValue = "";
// Archived
$cstArchivedStudents2021->Archived->HrefValue = "";
$cstArchivedStudents2021->Archived->TooltipValue = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudents2021->ResultLetter->Upload->DbValue)) {
$cstArchivedStudents2021->ResultLetter->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2021->ResultLetter->UploadPath) . ((!empty($cstArchivedStudents2021->ResultLetter->ViewValue)) ? $cstArchivedStudents2021->ResultLetter->ViewValue : $cstArchivedStudents2021->ResultLetter->CurrentValue);
if ($cstArchivedStudents2021->Export <> "") $cstArchivedStudents2021->ResultLetter->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2021->ResultLetter->HrefValue);
} else {
$cstArchivedStudents2021->ResultLetter->HrefValue = "";
}
$cstArchivedStudents2021->ResultLetter->TooltipValue = "";
// Achieved
$cstArchivedStudents2021->Achieved->HrefValue = "";
$cstArchivedStudents2021->Achieved->TooltipValue = "";
// IDFile
if (!ew_Empty($cstArchivedStudents2021->IDFile->Upload->DbValue)) {
$cstArchivedStudents2021->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2021->IDFile->UploadPath) . ((!empty($cstArchivedStudents2021->IDFile->ViewValue)) ? $cstArchivedStudents2021->IDFile->ViewValue : $cstArchivedStudents2021->IDFile->CurrentValue);
if ($cstArchivedStudents2021->Export <> "") $cstArchivedStudents2021->IDFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2021->IDFile->HrefValue);
} else {
$cstArchivedStudents2021->IDFile->HrefValue = "";
}
$cstArchivedStudents2021->IDFile->TooltipValue = "";
// ReasonForLeaving
$cstArchivedStudents2021->ReasonForLeaving->HrefValue = "";
$cstArchivedStudents2021->ReasonForLeaving->TooltipValue = "";
}
// Call Row Rendered event
if ($cstArchivedStudents2021->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$cstArchivedStudents2021->Row_Rendered();
}
// Export data in HTML/CSV/Word/Excel/XML/Email format
function ExportData() {
global $cstArchivedStudents2021;
$utf8 = FALSE;
$bSelectLimit = FALSE;
// Load recordset
if ($bSelectLimit) {
$this->lTotalRecs = $cstArchivedStudents2021->SelectRecordCount();
} else {
if ($rs = $this->LoadRecordset())
$this->lTotalRecs = $rs->RecordCount();
}
$this->lStartRec = 1;
$this->SetUpStartRec(); // Set up start record position
// Set the last record to display
if ($this->lDisplayRecs < 0) {
$this->lStopRec = $this->lTotalRecs;
} else {
$this->lStopRec = $this->lStartRec + $this->lDisplayRecs - 1;
}
if (!$rs) {
header("Content-Type:"); // Remove header
header("Content-Disposition:");
$this->ShowMessage();
return;
}
if ($cstArchivedStudents2021->Export == "xml") {
$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
$XmlDoc->AddRoot();
} else {
$ExportDoc = new cExportDocument($cstArchivedStudents2021, "v");
$ExportDoc->ExportHeader();
if ($ExportDoc->Horizontal) { // Horizontal format, write header
$ExportDoc->BeginExportRow();
$ExportDoc->ExportCaption($cstArchivedStudents2021->Title);
$ExportDoc->ExportCaption($cstArchivedStudents2021->FirstName);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Surname);
$ExportDoc->ExportCaption($cstArchivedStudents2021->KnownAs);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Organisation);
$ExportDoc->ExportCaption($cstArchivedStudents2021->OrganisationType);
$ExportDoc->ExportCaption($cstArchivedStudents2021->StudentNumber);
$ExportDoc->ExportCaption($cstArchivedStudents2021->CCEFacilitatorID);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Project);
$ExportDoc->ExportCaption($cstArchivedStudents2021->ProjectDiscipline);
$ExportDoc->ExportCaption($cstArchivedStudents2021->IDNumber);
$ExportDoc->ExportCaption($cstArchivedStudents2021->ECSANumber);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Age);
$ExportDoc->ExportCaption($cstArchivedStudents2021->HighestQual);
$ExportDoc->ExportCaption($cstArchivedStudents2021->AreaDiscipline);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Telephone);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Cellphone);
$ExportDoc->ExportCaption($cstArchivedStudents2021->EmailAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2021->HomeAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2021->WorkAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2021->PostalAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Designation);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Department);
$ExportDoc->ExportCaption($cstArchivedStudents2021->CESAAccountNo);
$ExportDoc->ExportCaption($cstArchivedStudents2021->VATNo);
$ExportDoc->ExportCaption($cstArchivedStudents2021->DietaryRequirements);
$ExportDoc->ExportCaption($cstArchivedStudents2021->CVFile);
$ExportDoc->ExportCaption($cstArchivedStudents2021->QualCertificate1);
$ExportDoc->ExportCaption($cstArchivedStudents2021->QualCertificate2);
$ExportDoc->ExportCaption($cstArchivedStudents2021->QualCertificate3);
$ExportDoc->ExportCaption($cstArchivedStudents2021->AgreementFile);
$ExportDoc->ExportCaption($cstArchivedStudents2021->OrderNo);
$ExportDoc->ExportCaption($cstArchivedStudents2021->BookedByName);
$ExportDoc->ExportCaption($cstArchivedStudents2021->BookedByDesignation);
$ExportDoc->ExportCaption($cstArchivedStudents2021->BookedByTelNo);
$ExportDoc->ExportCaption($cstArchivedStudents2021->BookedByFaxNo);
$ExportDoc->ExportCaption($cstArchivedStudents2021->BookedByCellNo);
$ExportDoc->ExportCaption($cstArchivedStudents2021->BookedByEmail);
$ExportDoc->ExportCaption($cstArchivedStudents2021->WebUsername);
$ExportDoc->ExportCaption($cstArchivedStudents2021->WebPassword);
$ExportDoc->ExportCaption($cstArchivedStudents2021->MentorDesig);
$ExportDoc->ExportCaption($cstArchivedStudents2021->MentorTel);
$ExportDoc->ExportCaption($cstArchivedStudents2021->MentorCell);
$ExportDoc->ExportCaption($cstArchivedStudents2021->MentorEmail);
$ExportDoc->ExportCaption($cstArchivedStudents2021->HRManagerName);
$ExportDoc->ExportCaption($cstArchivedStudents2021->HRManagerDesignation);
$ExportDoc->ExportCaption($cstArchivedStudents2021->HRManagerTelNo);
$ExportDoc->ExportCaption($cstArchivedStudents2021->HRManagerCellNo);
$ExportDoc->ExportCaption($cstArchivedStudents2021->HRManagerEmail);
$ExportDoc->ExportCaption($cstArchivedStudents2021->LengthEmploy);
$ExportDoc->ExportCaption($cstArchivedStudents2021->BlockAccess);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Archived);
$ExportDoc->ExportCaption($cstArchivedStudents2021->ResultLetter);
$ExportDoc->ExportCaption($cstArchivedStudents2021->Achieved);
$ExportDoc->ExportCaption($cstArchivedStudents2021->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
$cstArchivedStudents2021->CssClass = "";
$cstArchivedStudents2021->CssStyle = "";
$cstArchivedStudents2021->RowType = EW_ROWTYPE_VIEW; // Render view
$this->RenderRow();
if ($cstArchivedStudents2021->Export == "xml") {
$XmlDoc->AddRow();
$XmlDoc->AddField('Title', $cstArchivedStudents2021->Title->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('FirstName', $cstArchivedStudents2021->FirstName->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Surname', $cstArchivedStudents2021->Surname->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('KnownAs', $cstArchivedStudents2021->KnownAs->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Organisation', $cstArchivedStudents2021->Organisation->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('OrganisationType', $cstArchivedStudents2021->OrganisationType->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('StudentNumber', $cstArchivedStudents2021->StudentNumber->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('CCEFacilitatorID', $cstArchivedStudents2021->CCEFacilitatorID->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Project', $cstArchivedStudents2021->Project->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('ProjectDiscipline', $cstArchivedStudents2021->ProjectDiscipline->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('IDNumber', $cstArchivedStudents2021->IDNumber->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('ECSANumber', $cstArchivedStudents2021->ECSANumber->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Age', $cstArchivedStudents2021->Age->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('HighestQual', $cstArchivedStudents2021->HighestQual->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('AreaDiscipline', $cstArchivedStudents2021->AreaDiscipline->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Telephone', $cstArchivedStudents2021->Telephone->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Cellphone', $cstArchivedStudents2021->Cellphone->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('EmailAddress', $cstArchivedStudents2021->EmailAddress->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('HomeAddress', $cstArchivedStudents2021->HomeAddress->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('WorkAddress', $cstArchivedStudents2021->WorkAddress->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('PostalAddress', $cstArchivedStudents2021->PostalAddress->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Designation', $cstArchivedStudents2021->Designation->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Department', $cstArchivedStudents2021->Department->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('CESAAccountNo', $cstArchivedStudents2021->CESAAccountNo->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('VATNo', $cstArchivedStudents2021->VATNo->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('DietaryRequirements', $cstArchivedStudents2021->DietaryRequirements->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('CVFile', $cstArchivedStudents2021->CVFile->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate1', $cstArchivedStudents2021->QualCertificate1->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate2', $cstArchivedStudents2021->QualCertificate2->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate3', $cstArchivedStudents2021->QualCertificate3->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('AgreementFile', $cstArchivedStudents2021->AgreementFile->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('OrderNo', $cstArchivedStudents2021->OrderNo->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('BookedByName', $cstArchivedStudents2021->BookedByName->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('BookedByDesignation', $cstArchivedStudents2021->BookedByDesignation->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('BookedByTelNo', $cstArchivedStudents2021->BookedByTelNo->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('BookedByFaxNo', $cstArchivedStudents2021->BookedByFaxNo->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('BookedByCellNo', $cstArchivedStudents2021->BookedByCellNo->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('BookedByEmail', $cstArchivedStudents2021->BookedByEmail->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('WebUsername', $cstArchivedStudents2021->WebUsername->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('WebPassword', $cstArchivedStudents2021->WebPassword->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('MentorDesig', $cstArchivedStudents2021->MentorDesig->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('MentorTel', $cstArchivedStudents2021->MentorTel->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('MentorCell', $cstArchivedStudents2021->MentorCell->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('MentorEmail', $cstArchivedStudents2021->MentorEmail->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('HRManagerName', $cstArchivedStudents2021->HRManagerName->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('HRManagerDesignation', $cstArchivedStudents2021->HRManagerDesignation->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('HRManagerTelNo', $cstArchivedStudents2021->HRManagerTelNo->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('HRManagerCellNo', $cstArchivedStudents2021->HRManagerCellNo->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('HRManagerEmail', $cstArchivedStudents2021->HRManagerEmail->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('LengthEmploy', $cstArchivedStudents2021->LengthEmploy->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('BlockAccess', $cstArchivedStudents2021->BlockAccess->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Archived', $cstArchivedStudents2021->Archived->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('ResultLetter', $cstArchivedStudents2021->ResultLetter->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('Achieved', $cstArchivedStudents2021->Achieved->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
$XmlDoc->AddField('IDFile', $cstArchivedStudents2021->IDFile->ExportValue($cstArchivedStudents2021->Export, $cstArchivedStudents2021->ExportOriginalValue));
} else {
$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
$ExportDoc->ExportField($cstArchivedStudents2021->Title);
$ExportDoc->ExportField($cstArchivedStudents2021->FirstName);
$ExportDoc->ExportField($cstArchivedStudents2021->Surname);
$ExportDoc->ExportField($cstArchivedStudents2021->KnownAs);
$ExportDoc->ExportField($cstArchivedStudents2021->Organisation);
$ExportDoc->ExportField($cstArchivedStudents2021->OrganisationType);
$ExportDoc->ExportField($cstArchivedStudents2021->StudentNumber);
$ExportDoc->ExportField($cstArchivedStudents2021->CCEFacilitatorID);
$ExportDoc->ExportField($cstArchivedStudents2021->Project);
$ExportDoc->ExportField($cstArchivedStudents2021->ProjectDiscipline);
$ExportDoc->ExportField($cstArchivedStudents2021->IDNumber);
$ExportDoc->ExportField($cstArchivedStudents2021->ECSANumber);
$ExportDoc->ExportField($cstArchivedStudents2021->Age);
$ExportDoc->ExportField($cstArchivedStudents2021->HighestQual);
$ExportDoc->ExportField($cstArchivedStudents2021->AreaDiscipline);
$ExportDoc->ExportField($cstArchivedStudents2021->Telephone);
$ExportDoc->ExportField($cstArchivedStudents2021->Cellphone);
$ExportDoc->ExportField($cstArchivedStudents2021->EmailAddress);
$ExportDoc->ExportField($cstArchivedStudents2021->HomeAddress);
$ExportDoc->ExportField($cstArchivedStudents2021->WorkAddress);
$ExportDoc->ExportField($cstArchivedStudents2021->PostalAddress);
$ExportDoc->ExportField($cstArchivedStudents2021->Designation);
$ExportDoc->ExportField($cstArchivedStudents2021->Department);
$ExportDoc->ExportField($cstArchivedStudents2021->CESAAccountNo);
$ExportDoc->ExportField($cstArchivedStudents2021->VATNo);
$ExportDoc->ExportField($cstArchivedStudents2021->DietaryRequirements);
$ExportDoc->ExportField($cstArchivedStudents2021->CVFile);
$ExportDoc->ExportField($cstArchivedStudents2021->QualCertificate1);
$ExportDoc->ExportField($cstArchivedStudents2021->QualCertificate2);
$ExportDoc->ExportField($cstArchivedStudents2021->QualCertificate3);
$ExportDoc->ExportField($cstArchivedStudents2021->AgreementFile);
$ExportDoc->ExportField($cstArchivedStudents2021->OrderNo);
$ExportDoc->ExportField($cstArchivedStudents2021->BookedByName);
$ExportDoc->ExportField($cstArchivedStudents2021->BookedByDesignation);
$ExportDoc->ExportField($cstArchivedStudents2021->BookedByTelNo);
$ExportDoc->ExportField($cstArchivedStudents2021->BookedByFaxNo);
$ExportDoc->ExportField($cstArchivedStudents2021->BookedByCellNo);
$ExportDoc->ExportField($cstArchivedStudents2021->BookedByEmail);
$ExportDoc->ExportField($cstArchivedStudents2021->WebUsername);
$ExportDoc->ExportField($cstArchivedStudents2021->WebPassword);
$ExportDoc->ExportField($cstArchivedStudents2021->MentorDesig);
$ExportDoc->ExportField($cstArchivedStudents2021->MentorTel);
$ExportDoc->ExportField($cstArchivedStudents2021->MentorCell);
$ExportDoc->ExportField($cstArchivedStudents2021->MentorEmail);
$ExportDoc->ExportField($cstArchivedStudents2021->HRManagerName);
$ExportDoc->ExportField($cstArchivedStudents2021->HRManagerDesignation);
$ExportDoc->ExportField($cstArchivedStudents2021->HRManagerTelNo);
$ExportDoc->ExportField($cstArchivedStudents2021->HRManagerCellNo);
$ExportDoc->ExportField($cstArchivedStudents2021->HRManagerEmail);
$ExportDoc->ExportField($cstArchivedStudents2021->LengthEmploy);
$ExportDoc->ExportField($cstArchivedStudents2021->BlockAccess);
$ExportDoc->ExportField($cstArchivedStudents2021->Archived);
$ExportDoc->ExportField($cstArchivedStudents2021->ResultLetter);
$ExportDoc->ExportField($cstArchivedStudents2021->Achieved);
$ExportDoc->ExportField($cstArchivedStudents2021->IDFile);
$ExportDoc->EndExportRow();
}
}
$rs->MoveNext();
}
if ($cstArchivedStudents2021->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($cstArchivedStudents2021->Export, array("email", "xml")))
echo "\xEF\xBB\xBF";
// Write debug message if enabled
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
// Output data
if ($cstArchivedStudents2021->Export == "xml") {
header("Content-Type: text/xml");
echo $XmlDoc->XML();
} elseif ($cstArchivedStudents2021->Export == "email") {
$this->ExportEmail($ExportDoc->Text);
$this->Page_Terminate($cstArchivedStudents2021->ExportReturnUrl());
} else {
echo $ExportDoc->Text;
}
}
// Export email
function ExportEmail($EmailContent) {
global $Language, $cstArchivedStudents2021;
$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 ($cstArchivedStudents2021->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 $cstArchivedStudents2021;
// Initialize
$sQry = "export=html";
// Add record key QueryString
$sQry .= "&" . substr($cstArchivedStudents2021->KeyUrl("", ""), 1);
return $sQry;
}
// Page Load event
function Page_Load() {
//echo "Page Load";
}
// Page Unload event
function Page_Unload() {
//echo "Page Unload";
}
// Page Redirecting event
function Page_Redirecting(&$url) {
// Example:
//$url = "your URL";
}
// Message Showing event
function Message_Showing(&$msg) {
// Example:
//$msg = "your new message";
}
}
?>