| Current Path : /var/www/cesa.co.za/cceadmin/ |
| Current File : /var/www/cesa.co.za/cceadmin/cstArchivedStudentsAllview.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 "cstArchivedStudentsAllinfo.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
$cstArchivedStudentsAll_view = new ccstArchivedStudentsAll_view();
$Page =& $cstArchivedStudentsAll_view;
// Page init
$cstArchivedStudentsAll_view->Page_Init();
// Page main
$cstArchivedStudentsAll_view->Page_Main();
?>
<?php include "header.php" ?>
<?php if ($cstArchivedStudentsAll->Export == "") { ?>
<script type="text/javascript">
<!--
// Create page object
var cstArchivedStudentsAll_view = new ew_Page("cstArchivedStudentsAll_view");
// page properties
cstArchivedStudentsAll_view.PageID = "view"; // page ID
cstArchivedStudentsAll_view.FormID = "fcstArchivedStudentsAllview"; // form ID
var EW_PAGE_ID = cstArchivedStudentsAll_view.PageID; // for backward compatibility
// extend page with Form_CustomValidate function
cstArchivedStudentsAll_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) { ?>
cstArchivedStudentsAll_view.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudentsAll_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 $cstArchivedStudentsAll->TableCaption() ?>
<?php if ($cstArchivedStudentsAll->Export == "") { ?>
<a href="<?php echo $cstArchivedStudentsAll_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 $cstArchivedStudentsAll_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 $cstArchivedStudentsAll_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_cstArchivedStudentsAll" id="emf_cstArchivedStudentsAll" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_cstArchivedStudentsAll',hdr:ewLanguage.Phrase('ExportToEmail'),key:<?php echo ew_ArrayToJsonAttr($cstArchivedStudentsAll_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 ($cstArchivedStudentsAll->Export == "") { ?>
<a href="<?php echo $cstArchivedStudentsAll_view->ListUrl ?>"><?php echo $Language->Phrase("BackToList") ?></a>
<?php if ($Security->AllowList('cstStudentAssigArchived')) { ?>
<a href="cstStudentAssigArchivedlist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=cstArchivedStudentsAll&CCEStudentID=<?php echo urlencode(strval($cstArchivedStudentsAll->CCEStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("cstStudentAssigArchived", "TblCaption") ?>
</a>
<?php } ?>
<?php } ?>
</span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$cstArchivedStudentsAll_view->ShowMessage();
?>
<p>
<?php if ($cstArchivedStudentsAll->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($cstArchivedStudentsAll_view->Pager)) $cstArchivedStudentsAll_view->Pager = new cPrevNextPager($cstArchivedStudentsAll_view->lStartRec, $cstArchivedStudentsAll_view->lDisplayRecs, $cstArchivedStudentsAll_view->lTotalRecs) ?>
<?php if ($cstArchivedStudentsAll_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 ($cstArchivedStudentsAll_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudentsAll_view->PageUrl() ?>start=<?php echo $cstArchivedStudentsAll_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 ($cstArchivedStudentsAll_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudentsAll_view->PageUrl() ?>start=<?php echo $cstArchivedStudentsAll_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 $cstArchivedStudentsAll_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($cstArchivedStudentsAll_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudentsAll_view->PageUrl() ?>start=<?php echo $cstArchivedStudentsAll_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 ($cstArchivedStudentsAll_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudentsAll_view->PageUrl() ?>start=<?php echo $cstArchivedStudentsAll_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 $cstArchivedStudentsAll_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($cstArchivedStudentsAll_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 ($cstArchivedStudentsAll->Title->Visible) { // Title ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Title->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Title->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Title->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Title->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->FirstName->Visible) { // FirstName ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->FirstName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->FirstName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->FirstName->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->FirstName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Surname->Visible) { // Surname ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Surname->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Surname->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Surname->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Surname->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->KnownAs->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->KnownAs->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->KnownAs->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->KnownAs->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Organisation->Visible) { // Organisation ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Organisation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Organisation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Organisation->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Organisation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->OrganisationType->Visible) { // OrganisationType ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->OrganisationType->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->OrganisationType->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->OrganisationType->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->OrganisationType->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->StudentNumber->Visible) { // StudentNumber ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->StudentNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->StudentNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->StudentNumber->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->StudentNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->CCEFacilitatorID->Visible) { // CCEFacilitatorID ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->CCEFacilitatorID->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->CCEFacilitatorID->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->CCEFacilitatorID->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->CCEFacilitatorID->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Project->Visible) { // Project ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Project->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Project->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Project->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Project->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->ProjectDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->ProjectDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->ProjectDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->ProjectDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->IDNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->IDNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->IDNumber->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->IDNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->ECSARegistered->Visible) { // ECSARegistered ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->ECSARegistered->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->ECSARegistered->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->ECSARegistered->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->ECSARegistered->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->ECSACategory->Visible) { // ECSACategory ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->ECSACategory->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->ECSACategory->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->ECSACategory->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->ECSACategory->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->ECSANumber->Visible) { // ECSANumber ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->ECSANumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->ECSANumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->ECSANumber->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->ECSANumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->OtherStatutoryBodyRegistered->Visible) { // OtherStatutoryBodyRegistered ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->OtherStatutoryBodyRegistered->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->OtherStatutoryBodyRegistered->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->OtherStatutoryBodyRegistered->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->OtherStatutoryBodyRegistered->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->OtherStatutoryBodyName->Visible) { // OtherStatutoryBodyName ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->OtherStatutoryBodyName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->OtherStatutoryBodyName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->OtherStatutoryBodyName->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->OtherStatutoryBodyName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->OtherStatutoryBodyNumber->Visible) { // OtherStatutoryBodyNumber ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->OtherStatutoryBodyNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->OtherStatutoryBodyNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->OtherStatutoryBodyNumber->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->OtherStatutoryBodyNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Age->Visible) { // Age ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Age->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Age->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Age->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Age->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->HighestQual->Visible) { // HighestQual ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->HighestQual->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->HighestQual->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->HighestQual->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->HighestQual->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->AreaDiscipline->Visible) { // AreaDiscipline ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->AreaDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->AreaDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->AreaDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->AreaDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Telephone->Visible) { // Telephone ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Telephone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Telephone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Telephone->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Telephone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Cellphone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Cellphone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Cellphone->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Cellphone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->EmailAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->EmailAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->EmailAddress->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->EmailAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->HomeAddress->Visible) { // HomeAddress ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->HomeAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->HomeAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->HomeAddress->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->HomeAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->WorkAddress->Visible) { // WorkAddress ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->WorkAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->WorkAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->WorkAddress->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->WorkAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->PostalAddress->Visible) { // PostalAddress ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->PostalAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->PostalAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->PostalAddress->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->PostalAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Designation->Visible) { // Designation ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Designation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Designation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Designation->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Designation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Department->Visible) { // Department ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Department->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Department->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Department->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Department->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->CESAAccountNo->Visible) { // CESAAccountNo ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->CESAAccountNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->CESAAccountNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->CESAAccountNo->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->CESAAccountNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->VATNo->Visible) { // VATNo ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->VATNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->VATNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->VATNo->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->VATNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->DietaryRequirements->Visible) { // DietaryRequirements ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->DietaryRequirements->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->DietaryRequirements->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->DietaryRequirements->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->DietaryRequirements->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->CVFile->Visible) { // CVFile ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->CVFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->CVFile->CellAttributes() ?>>
<?php if ($cstArchivedStudentsAll->CVFile->HrefValue <> "" || $cstArchivedStudentsAll->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudentsAll->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudentsAll->CVFile->HrefValue ?>"><?php echo $cstArchivedStudentsAll->CVFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudentsAll->CVFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudentsAll->CVFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->QualCertificate1->Visible) { // QualCertificate1 ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->QualCertificate1->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->QualCertificate1->CellAttributes() ?>>
<?php if ($cstArchivedStudentsAll->QualCertificate1->HrefValue <> "" || $cstArchivedStudentsAll->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudentsAll->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudentsAll->QualCertificate1->HrefValue ?>"><?php echo $cstArchivedStudentsAll->QualCertificate1->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudentsAll->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudentsAll->QualCertificate1->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->QualCertificate2->Visible) { // QualCertificate2 ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->QualCertificate2->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->QualCertificate2->CellAttributes() ?>>
<?php if ($cstArchivedStudentsAll->QualCertificate2->HrefValue <> "" || $cstArchivedStudentsAll->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudentsAll->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudentsAll->QualCertificate2->HrefValue ?>"><?php echo $cstArchivedStudentsAll->QualCertificate2->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudentsAll->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudentsAll->QualCertificate2->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->QualCertificate3->Visible) { // QualCertificate3 ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->QualCertificate3->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->QualCertificate3->CellAttributes() ?>>
<?php if ($cstArchivedStudentsAll->QualCertificate3->HrefValue <> "" || $cstArchivedStudentsAll->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudentsAll->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudentsAll->QualCertificate3->HrefValue ?>"><?php echo $cstArchivedStudentsAll->QualCertificate3->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudentsAll->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudentsAll->QualCertificate3->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->MemorandumFile->Visible) { // MemorandumFile ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->MemorandumFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->MemorandumFile->CellAttributes() ?>>
<?php if ($cstArchivedStudentsAll->MemorandumFile->HrefValue <> "" || $cstArchivedStudentsAll->MemorandumFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudentsAll->MemorandumFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudentsAll->MemorandumFile->HrefValue ?>"><?php echo $cstArchivedStudentsAll->MemorandumFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudentsAll->MemorandumFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudentsAll->MemorandumFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->AgreementFile->Visible) { // AgreementFile ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->AgreementFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->AgreementFile->CellAttributes() ?>>
<?php if ($cstArchivedStudentsAll->AgreementFile->HrefValue <> "" || $cstArchivedStudentsAll->AgreementFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudentsAll->AgreementFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudentsAll->AgreementFile->HrefValue ?>"><?php echo $cstArchivedStudentsAll->AgreementFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudentsAll->AgreementFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudentsAll->AgreementFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->OrderNo->Visible) { // OrderNo ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->OrderNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->OrderNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->OrderNo->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->OrderNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->BookedByName->Visible) { // BookedByName ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->BookedByName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->BookedByName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->BookedByName->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->BookedByName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->BookedByDesignation->Visible) { // BookedByDesignation ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->BookedByDesignation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->BookedByDesignation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->BookedByDesignation->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->BookedByDesignation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->BookedByTelNo->Visible) { // BookedByTelNo ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->BookedByTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->BookedByTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->BookedByTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->BookedByTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->BookedByFaxNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->BookedByFaxNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->BookedByFaxNo->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->BookedByFaxNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->BookedByCellNo->Visible) { // BookedByCellNo ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->BookedByCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->BookedByCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->BookedByCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->BookedByCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->BookedByEmail->Visible) { // BookedByEmail ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->BookedByEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->BookedByEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->BookedByEmail->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->BookedByEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->WebUsername->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->WebUsername->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->WebUsername->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->WebUsername->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->WebPassword->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->WebPassword->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->WebPassword->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->WebPassword->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->MentorName->Visible) { // MentorName ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->MentorName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->MentorName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->MentorName->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->MentorName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->MentorDesig->Visible) { // MentorDesig ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->MentorDesig->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->MentorDesig->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->MentorDesig->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->MentorDesig->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->MentorTel->Visible) { // MentorTel ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->MentorTel->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->MentorTel->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->MentorTel->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->MentorTel->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->MentorCell->Visible) { // MentorCell ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->MentorCell->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->MentorCell->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->MentorCell->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->MentorCell->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->MentorEmail->Visible) { // MentorEmail ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->MentorEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->MentorEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->MentorEmail->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->MentorEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->HRManagerName->Visible) { // HRManagerName ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->HRManagerName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->HRManagerName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->HRManagerName->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->HRManagerName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->HRManagerDesignation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->HRManagerDesignation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->HRManagerDesignation->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->HRManagerDesignation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->HRManagerTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->HRManagerTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->HRManagerTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->HRManagerTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->HRManagerCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->HRManagerCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->HRManagerCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->HRManagerCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->HRManagerEmail->Visible) { // HRManagerEmail ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->HRManagerEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->HRManagerEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->HRManagerEmail->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->HRManagerEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->LengthEmploy->Visible) { // LengthEmploy ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->LengthEmploy->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->LengthEmploy->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->LengthEmploy->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->LengthEmploy->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->BlockAccess->Visible) { // BlockAccess ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->BlockAccess->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->BlockAccess->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->BlockAccess->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->BlockAccess->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->ResultLetter->Visible) { // ResultLetter ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->ResultLetter->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->ResultLetter->CellAttributes() ?>>
<?php if ($cstArchivedStudentsAll->ResultLetter->HrefValue <> "" || $cstArchivedStudentsAll->ResultLetter->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudentsAll->ResultLetter->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudentsAll->ResultLetter->HrefValue ?>"><?php echo $cstArchivedStudentsAll->ResultLetter->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudentsAll->ResultLetter->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudentsAll->ResultLetter->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Achieved->Visible) { // Achieved ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Achieved->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Achieved->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Achieved->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Achieved->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->IDFile->Visible) { // IDFile ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->IDFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->IDFile->CellAttributes() ?>>
<?php if ($cstArchivedStudentsAll->IDFile->HrefValue <> "" || $cstArchivedStudentsAll->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudentsAll->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudentsAll->IDFile->HrefValue ?>"><?php echo $cstArchivedStudentsAll->IDFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudentsAll->IDFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudentsAll->IDFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudentsAll->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->ReasonForLeaving->Visible) { // ReasonForLeaving ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->ReasonForLeaving->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->ReasonForLeaving->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->ReasonForLeaving->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->ReasonForLeaving->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->CCECourseScheduleID->Visible) { // CCECourseScheduleID ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->CCECourseScheduleID->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->CCECourseScheduleID->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->CCECourseScheduleID->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->CCECourseScheduleID->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->EditStudent->Visible) { // EditStudent ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->EditStudent->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->EditStudent->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->EditStudent->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->EditStudent->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Archived->Visible) { // Archived ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Archived->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Archived->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Archived->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Archived->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->Cancelled->Visible) { // Cancelled ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->Cancelled->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->Cancelled->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->Cancelled->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->Cancelled->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudentsAll->CancelledReason->Visible) { // CancelledReason ?>
<tr<?php echo $cstArchivedStudentsAll->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudentsAll->CancelledReason->FldCaption() ?></td>
<td<?php echo $cstArchivedStudentsAll->CancelledReason->CellAttributes() ?>>
<div<?php echo $cstArchivedStudentsAll->CancelledReason->ViewAttributes() ?>><?php echo $cstArchivedStudentsAll->CancelledReason->ViewValue ?></div></td>
</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<?php if ($cstArchivedStudentsAll->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($cstArchivedStudentsAll_view->Pager)) $cstArchivedStudentsAll_view->Pager = new cPrevNextPager($cstArchivedStudentsAll_view->lStartRec, $cstArchivedStudentsAll_view->lDisplayRecs, $cstArchivedStudentsAll_view->lTotalRecs) ?>
<?php if ($cstArchivedStudentsAll_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 ($cstArchivedStudentsAll_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudentsAll_view->PageUrl() ?>start=<?php echo $cstArchivedStudentsAll_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 ($cstArchivedStudentsAll_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudentsAll_view->PageUrl() ?>start=<?php echo $cstArchivedStudentsAll_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 $cstArchivedStudentsAll_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($cstArchivedStudentsAll_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudentsAll_view->PageUrl() ?>start=<?php echo $cstArchivedStudentsAll_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 ($cstArchivedStudentsAll_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudentsAll_view->PageUrl() ?>start=<?php echo $cstArchivedStudentsAll_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 $cstArchivedStudentsAll_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($cstArchivedStudentsAll_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 ($cstArchivedStudentsAll->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
$cstArchivedStudentsAll_view->Page_Terminate();
?>
<?php
//
// Page class
//
class ccstArchivedStudentsAll_view {
// Page ID
var $PageID = 'view';
// Table name
var $TableName = 'cstArchivedStudentsAll';
// Page object name
var $PageObjName = 'cstArchivedStudentsAll_view';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $cstArchivedStudentsAll;
if ($cstArchivedStudentsAll->UseTokenInUrl) $PageUrl .= "t=" . $cstArchivedStudentsAll->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, $cstArchivedStudentsAll;
if ($cstArchivedStudentsAll->UseTokenInUrl) {
if ($objForm)
return ($cstArchivedStudentsAll->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($cstArchivedStudentsAll->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function __construct() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (cstArchivedStudentsAll)
$GLOBALS["cstArchivedStudentsAll"] = new ccstArchivedStudentsAll();
// 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", 'cstArchivedStudentsAll', 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 $cstArchivedStudentsAll;
// 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("cstArchivedStudentsAlllist.php");
}
// Get export parameters
if (@$_GET["export"] <> "") {
$cstArchivedStudentsAll->Export = $_GET["export"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] <> "")
$cstArchivedStudentsAll->Export = $_POST["exporttype"];
} else {
$cstArchivedStudentsAll->setExportReturnUrl(ew_CurrentUrl());
}
$gsExport = $cstArchivedStudentsAll->Export; // Get export parameter, used in header
$gsExportFile = $cstArchivedStudentsAll->TableVar; // Get export file, used in header
if (@$_GET["CCEStudentID"] <> "") {
if ($gsExportFile <> "") $gsExportFile .= "_";
$gsExportFile .= ew_StripSlashes($_GET["CCEStudentID"]);
}
if ($cstArchivedStudentsAll->Export == "excel") {
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=' . $gsExportFile .'.xls');
}
if ($cstArchivedStudentsAll->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, $cstArchivedStudentsAll;
// Load current record
$bLoadCurrentRecord = FALSE;
$sReturnUrl = "";
$bMatchRecord = FALSE;
if ($this->IsPageRequest()) { // Validate request
if (@$_GET["CCEStudentID"] <> "") {
$cstArchivedStudentsAll->CCEStudentID->setQueryStringValue($_GET["CCEStudentID"]);
$this->arRecKey["CCEStudentID"] = $cstArchivedStudentsAll->CCEStudentID->QueryStringValue;
} else {
$bLoadCurrentRecord = TRUE;
}
// Get action
$cstArchivedStudentsAll->CurrentAction = "I"; // Display form
switch ($cstArchivedStudentsAll->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("cstArchivedStudentsAlllist.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($cstArchivedStudentsAll->CCEStudentID->CurrentValue) == strval($rs->fields('CCEStudentID'))) {
$cstArchivedStudentsAll->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 = "cstArchivedStudentsAlllist.php"; // No matching record, return to list
} else {
$this->LoadRowValues($rs); // Load row values
}
}
// Export data only
if (in_array($cstArchivedStudentsAll->Export, array("html","word","excel","xml","csv","email"))) {
$this->ExportData();
if ($cstArchivedStudentsAll->Export <> "email")
$this->Page_Terminate(); // Terminate response
exit();
}
} else {
$sReturnUrl = "cstArchivedStudentsAlllist.php"; // Not page request, return to list
}
if ($sReturnUrl <> "")
$this->Page_Terminate($sReturnUrl);
// Render row
$cstArchivedStudentsAll->RowType = EW_ROWTYPE_VIEW;
$this->RenderRow();
}
// Set up starting record parameters
function SetUpStartRec() {
global $cstArchivedStudentsAll;
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];
$cstArchivedStudentsAll->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;
}
$cstArchivedStudentsAll->setStartRecordNumber($this->lStartRec);
}
}
}
$this->lStartRec = $cstArchivedStudentsAll->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
$cstArchivedStudentsAll->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
$cstArchivedStudentsAll->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
$cstArchivedStudentsAll->setStartRecordNumber($this->lStartRec);
}
}
// Load recordset
function LoadRecordset($offset = -1, $rowcnt = -1) {
global $conn, $cstArchivedStudentsAll;
// Call Recordset Selecting event
$cstArchivedStudentsAll->Recordset_Selecting($cstArchivedStudentsAll->CurrentFilter);
// Load List page SQL
$sSql = $cstArchivedStudentsAll->SelectSQL();
if ($offset > -1 && $rowcnt > -1)
$sSql .= " LIMIT $offset, $rowcnt";
// Load recordset
$rs = ew_LoadRecordset($sSql);
// Call Recordset Selected event
$cstArchivedStudentsAll->Recordset_Selected($rs);
return $rs;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $cstArchivedStudentsAll;
$sFilter = $cstArchivedStudentsAll->KeyFilter();
// Call Row Selecting event
$cstArchivedStudentsAll->Row_Selecting($sFilter);
// Load SQL based on filter
$cstArchivedStudentsAll->CurrentFilter = $sFilter;
$sSql = $cstArchivedStudentsAll->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$cstArchivedStudentsAll->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $cstArchivedStudentsAll;
$cstArchivedStudentsAll->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
$cstArchivedStudentsAll->Title->setDbValue($rs->fields('Title'));
$cstArchivedStudentsAll->FirstName->setDbValue($rs->fields('FirstName'));
$cstArchivedStudentsAll->Surname->setDbValue($rs->fields('Surname'));
$cstArchivedStudentsAll->KnownAs->setDbValue($rs->fields('KnownAs'));
$cstArchivedStudentsAll->Organisation->setDbValue($rs->fields('Organisation'));
$cstArchivedStudentsAll->OrganisationType->setDbValue($rs->fields('OrganisationType'));
$cstArchivedStudentsAll->StudentNumber->setDbValue($rs->fields('StudentNumber'));
$cstArchivedStudentsAll->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
$cstArchivedStudentsAll->Project->setDbValue($rs->fields('Project'));
$cstArchivedStudentsAll->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
$cstArchivedStudentsAll->IDNumber->setDbValue($rs->fields('IDNumber'));
$cstArchivedStudentsAll->ECSARegistered->setDbValue($rs->fields('ECSARegistered'));
$cstArchivedStudentsAll->ECSACategory->setDbValue($rs->fields('ECSACategory'));
$cstArchivedStudentsAll->ECSANumber->setDbValue($rs->fields('ECSANumber'));
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->setDbValue($rs->fields('OtherStatutoryBodyRegistered'));
$cstArchivedStudentsAll->OtherStatutoryBodyName->setDbValue($rs->fields('OtherStatutoryBodyName'));
$cstArchivedStudentsAll->OtherStatutoryBodyNumber->setDbValue($rs->fields('OtherStatutoryBodyNumber'));
$cstArchivedStudentsAll->Age->setDbValue($rs->fields('Age'));
$cstArchivedStudentsAll->HighestQual->setDbValue($rs->fields('HighestQual'));
$cstArchivedStudentsAll->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
$cstArchivedStudentsAll->Telephone->setDbValue($rs->fields('Telephone'));
$cstArchivedStudentsAll->Cellphone->setDbValue($rs->fields('Cellphone'));
$cstArchivedStudentsAll->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$cstArchivedStudentsAll->HomeAddress->setDbValue($rs->fields('HomeAddress'));
$cstArchivedStudentsAll->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$cstArchivedStudentsAll->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$cstArchivedStudentsAll->Designation->setDbValue($rs->fields('Designation'));
$cstArchivedStudentsAll->Department->setDbValue($rs->fields('Department'));
$cstArchivedStudentsAll->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
$cstArchivedStudentsAll->VATNo->setDbValue($rs->fields('VATNo'));
$cstArchivedStudentsAll->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
$cstArchivedStudentsAll->CVFile->Upload->DbValue = $rs->fields('CVFile');
$cstArchivedStudentsAll->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
$cstArchivedStudentsAll->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
$cstArchivedStudentsAll->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
$cstArchivedStudentsAll->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
$cstArchivedStudentsAll->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
$cstArchivedStudentsAll->OrderNo->setDbValue($rs->fields('OrderNo'));
$cstArchivedStudentsAll->BookedByName->setDbValue($rs->fields('BookedByName'));
$cstArchivedStudentsAll->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
$cstArchivedStudentsAll->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
$cstArchivedStudentsAll->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
$cstArchivedStudentsAll->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
$cstArchivedStudentsAll->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
$cstArchivedStudentsAll->WebUsername->setDbValue($rs->fields('WebUsername'));
$cstArchivedStudentsAll->WebPassword->setDbValue($rs->fields('WebPassword'));
$cstArchivedStudentsAll->MentorName->setDbValue($rs->fields('MentorName'));
$cstArchivedStudentsAll->MentorDesig->setDbValue($rs->fields('MentorDesig'));
$cstArchivedStudentsAll->MentorTel->setDbValue($rs->fields('MentorTel'));
$cstArchivedStudentsAll->MentorCell->setDbValue($rs->fields('MentorCell'));
$cstArchivedStudentsAll->MentorEmail->setDbValue($rs->fields('MentorEmail'));
$cstArchivedStudentsAll->HRManagerName->setDbValue($rs->fields('HRManagerName'));
$cstArchivedStudentsAll->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
$cstArchivedStudentsAll->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
$cstArchivedStudentsAll->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
$cstArchivedStudentsAll->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
$cstArchivedStudentsAll->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
$cstArchivedStudentsAll->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$cstArchivedStudentsAll->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter');
$cstArchivedStudentsAll->Achieved->setDbValue($rs->fields('Achieved'));
$cstArchivedStudentsAll->IDFile->Upload->DbValue = $rs->fields('IDFile');
$cstArchivedStudentsAll->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
$cstArchivedStudentsAll->CCECourseScheduleID->setDbValue($rs->fields('CCECourseScheduleID'));
$cstArchivedStudentsAll->EditStudent->setDbValue($rs->fields('EditStudent'));
$cstArchivedStudentsAll->Archived->setDbValue($rs->fields('Archived'));
$cstArchivedStudentsAll->Cancelled->setDbValue($rs->fields('Cancelled'));
$cstArchivedStudentsAll->CancelledReason->setDbValue($rs->fields('CancelledReason'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $cstArchivedStudentsAll;
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print&" . "CCEStudentID=" . urlencode($cstArchivedStudentsAll->CCEStudentID->CurrentValue);
$this->ExportHtmlUrl = $this->PageUrl() . "export=html&" . "CCEStudentID=" . urlencode($cstArchivedStudentsAll->CCEStudentID->CurrentValue);
$this->ExportExcelUrl = $this->PageUrl() . "export=excel&" . "CCEStudentID=" . urlencode($cstArchivedStudentsAll->CCEStudentID->CurrentValue);
$this->ExportWordUrl = $this->PageUrl() . "export=word&" . "CCEStudentID=" . urlencode($cstArchivedStudentsAll->CCEStudentID->CurrentValue);
$this->ExportXmlUrl = $this->PageUrl() . "export=xml&" . "CCEStudentID=" . urlencode($cstArchivedStudentsAll->CCEStudentID->CurrentValue);
$this->ExportCsvUrl = $this->PageUrl() . "export=csv&" . "CCEStudentID=" . urlencode($cstArchivedStudentsAll->CCEStudentID->CurrentValue);
$this->AddUrl = $cstArchivedStudentsAll->AddUrl();
$this->EditUrl = $cstArchivedStudentsAll->EditUrl();
$this->CopyUrl = $cstArchivedStudentsAll->CopyUrl();
$this->DeleteUrl = $cstArchivedStudentsAll->DeleteUrl();
$this->ListUrl = $cstArchivedStudentsAll->ListUrl();
// Call Row_Rendering event
$cstArchivedStudentsAll->Row_Rendering();
// Common render codes for all row types
// Title
$cstArchivedStudentsAll->Title->CellCssStyle = ""; $cstArchivedStudentsAll->Title->CellCssClass = "";
$cstArchivedStudentsAll->Title->CellAttrs = array(); $cstArchivedStudentsAll->Title->ViewAttrs = array(); $cstArchivedStudentsAll->Title->EditAttrs = array();
// FirstName
$cstArchivedStudentsAll->FirstName->CellCssStyle = ""; $cstArchivedStudentsAll->FirstName->CellCssClass = "";
$cstArchivedStudentsAll->FirstName->CellAttrs = array(); $cstArchivedStudentsAll->FirstName->ViewAttrs = array(); $cstArchivedStudentsAll->FirstName->EditAttrs = array();
// Surname
$cstArchivedStudentsAll->Surname->CellCssStyle = ""; $cstArchivedStudentsAll->Surname->CellCssClass = "";
$cstArchivedStudentsAll->Surname->CellAttrs = array(); $cstArchivedStudentsAll->Surname->ViewAttrs = array(); $cstArchivedStudentsAll->Surname->EditAttrs = array();
// KnownAs
$cstArchivedStudentsAll->KnownAs->CellCssStyle = ""; $cstArchivedStudentsAll->KnownAs->CellCssClass = "";
$cstArchivedStudentsAll->KnownAs->CellAttrs = array(); $cstArchivedStudentsAll->KnownAs->ViewAttrs = array(); $cstArchivedStudentsAll->KnownAs->EditAttrs = array();
// Organisation
$cstArchivedStudentsAll->Organisation->CellCssStyle = ""; $cstArchivedStudentsAll->Organisation->CellCssClass = "";
$cstArchivedStudentsAll->Organisation->CellAttrs = array(); $cstArchivedStudentsAll->Organisation->ViewAttrs = array(); $cstArchivedStudentsAll->Organisation->EditAttrs = array();
// OrganisationType
$cstArchivedStudentsAll->OrganisationType->CellCssStyle = ""; $cstArchivedStudentsAll->OrganisationType->CellCssClass = "";
$cstArchivedStudentsAll->OrganisationType->CellAttrs = array(); $cstArchivedStudentsAll->OrganisationType->ViewAttrs = array(); $cstArchivedStudentsAll->OrganisationType->EditAttrs = array();
// StudentNumber
$cstArchivedStudentsAll->StudentNumber->CellCssStyle = ""; $cstArchivedStudentsAll->StudentNumber->CellCssClass = "";
$cstArchivedStudentsAll->StudentNumber->CellAttrs = array(); $cstArchivedStudentsAll->StudentNumber->ViewAttrs = array(); $cstArchivedStudentsAll->StudentNumber->EditAttrs = array();
// CCEFacilitatorID
$cstArchivedStudentsAll->CCEFacilitatorID->CellCssStyle = ""; $cstArchivedStudentsAll->CCEFacilitatorID->CellCssClass = "";
$cstArchivedStudentsAll->CCEFacilitatorID->CellAttrs = array(); $cstArchivedStudentsAll->CCEFacilitatorID->ViewAttrs = array(); $cstArchivedStudentsAll->CCEFacilitatorID->EditAttrs = array();
// Project
$cstArchivedStudentsAll->Project->CellCssStyle = ""; $cstArchivedStudentsAll->Project->CellCssClass = "";
$cstArchivedStudentsAll->Project->CellAttrs = array(); $cstArchivedStudentsAll->Project->ViewAttrs = array(); $cstArchivedStudentsAll->Project->EditAttrs = array();
// ProjectDiscipline
$cstArchivedStudentsAll->ProjectDiscipline->CellCssStyle = ""; $cstArchivedStudentsAll->ProjectDiscipline->CellCssClass = "";
$cstArchivedStudentsAll->ProjectDiscipline->CellAttrs = array(); $cstArchivedStudentsAll->ProjectDiscipline->ViewAttrs = array(); $cstArchivedStudentsAll->ProjectDiscipline->EditAttrs = array();
// IDNumber
$cstArchivedStudentsAll->IDNumber->CellCssStyle = ""; $cstArchivedStudentsAll->IDNumber->CellCssClass = "";
$cstArchivedStudentsAll->IDNumber->CellAttrs = array(); $cstArchivedStudentsAll->IDNumber->ViewAttrs = array(); $cstArchivedStudentsAll->IDNumber->EditAttrs = array();
// ECSARegistered
$cstArchivedStudentsAll->ECSARegistered->CellCssStyle = ""; $cstArchivedStudentsAll->ECSARegistered->CellCssClass = "";
$cstArchivedStudentsAll->ECSARegistered->CellAttrs = array(); $cstArchivedStudentsAll->ECSARegistered->ViewAttrs = array(); $cstArchivedStudentsAll->ECSARegistered->EditAttrs = array();
// ECSACategory
$cstArchivedStudentsAll->ECSACategory->CellCssStyle = ""; $cstArchivedStudentsAll->ECSACategory->CellCssClass = "";
$cstArchivedStudentsAll->ECSACategory->CellAttrs = array(); $cstArchivedStudentsAll->ECSACategory->ViewAttrs = array(); $cstArchivedStudentsAll->ECSACategory->EditAttrs = array();
// ECSANumber
$cstArchivedStudentsAll->ECSANumber->CellCssStyle = ""; $cstArchivedStudentsAll->ECSANumber->CellCssClass = "";
$cstArchivedStudentsAll->ECSANumber->CellAttrs = array(); $cstArchivedStudentsAll->ECSANumber->ViewAttrs = array(); $cstArchivedStudentsAll->ECSANumber->EditAttrs = array();
// OtherStatutoryBodyRegistered
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->CellCssStyle = ""; $cstArchivedStudentsAll->OtherStatutoryBodyRegistered->CellCssClass = "";
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->CellAttrs = array(); $cstArchivedStudentsAll->OtherStatutoryBodyRegistered->ViewAttrs = array(); $cstArchivedStudentsAll->OtherStatutoryBodyRegistered->EditAttrs = array();
// OtherStatutoryBodyName
$cstArchivedStudentsAll->OtherStatutoryBodyName->CellCssStyle = ""; $cstArchivedStudentsAll->OtherStatutoryBodyName->CellCssClass = "";
$cstArchivedStudentsAll->OtherStatutoryBodyName->CellAttrs = array(); $cstArchivedStudentsAll->OtherStatutoryBodyName->ViewAttrs = array(); $cstArchivedStudentsAll->OtherStatutoryBodyName->EditAttrs = array();
// OtherStatutoryBodyNumber
$cstArchivedStudentsAll->OtherStatutoryBodyNumber->CellCssStyle = ""; $cstArchivedStudentsAll->OtherStatutoryBodyNumber->CellCssClass = "";
$cstArchivedStudentsAll->OtherStatutoryBodyNumber->CellAttrs = array(); $cstArchivedStudentsAll->OtherStatutoryBodyNumber->ViewAttrs = array(); $cstArchivedStudentsAll->OtherStatutoryBodyNumber->EditAttrs = array();
// Age
$cstArchivedStudentsAll->Age->CellCssStyle = ""; $cstArchivedStudentsAll->Age->CellCssClass = "";
$cstArchivedStudentsAll->Age->CellAttrs = array(); $cstArchivedStudentsAll->Age->ViewAttrs = array(); $cstArchivedStudentsAll->Age->EditAttrs = array();
// HighestQual
$cstArchivedStudentsAll->HighestQual->CellCssStyle = ""; $cstArchivedStudentsAll->HighestQual->CellCssClass = "";
$cstArchivedStudentsAll->HighestQual->CellAttrs = array(); $cstArchivedStudentsAll->HighestQual->ViewAttrs = array(); $cstArchivedStudentsAll->HighestQual->EditAttrs = array();
// AreaDiscipline
$cstArchivedStudentsAll->AreaDiscipline->CellCssStyle = ""; $cstArchivedStudentsAll->AreaDiscipline->CellCssClass = "";
$cstArchivedStudentsAll->AreaDiscipline->CellAttrs = array(); $cstArchivedStudentsAll->AreaDiscipline->ViewAttrs = array(); $cstArchivedStudentsAll->AreaDiscipline->EditAttrs = array();
// Telephone
$cstArchivedStudentsAll->Telephone->CellCssStyle = ""; $cstArchivedStudentsAll->Telephone->CellCssClass = "";
$cstArchivedStudentsAll->Telephone->CellAttrs = array(); $cstArchivedStudentsAll->Telephone->ViewAttrs = array(); $cstArchivedStudentsAll->Telephone->EditAttrs = array();
// Cellphone
$cstArchivedStudentsAll->Cellphone->CellCssStyle = ""; $cstArchivedStudentsAll->Cellphone->CellCssClass = "";
$cstArchivedStudentsAll->Cellphone->CellAttrs = array(); $cstArchivedStudentsAll->Cellphone->ViewAttrs = array(); $cstArchivedStudentsAll->Cellphone->EditAttrs = array();
// EmailAddress
$cstArchivedStudentsAll->EmailAddress->CellCssStyle = ""; $cstArchivedStudentsAll->EmailAddress->CellCssClass = "";
$cstArchivedStudentsAll->EmailAddress->CellAttrs = array(); $cstArchivedStudentsAll->EmailAddress->ViewAttrs = array(); $cstArchivedStudentsAll->EmailAddress->EditAttrs = array();
// HomeAddress
$cstArchivedStudentsAll->HomeAddress->CellCssStyle = ""; $cstArchivedStudentsAll->HomeAddress->CellCssClass = "";
$cstArchivedStudentsAll->HomeAddress->CellAttrs = array(); $cstArchivedStudentsAll->HomeAddress->ViewAttrs = array(); $cstArchivedStudentsAll->HomeAddress->EditAttrs = array();
// WorkAddress
$cstArchivedStudentsAll->WorkAddress->CellCssStyle = ""; $cstArchivedStudentsAll->WorkAddress->CellCssClass = "";
$cstArchivedStudentsAll->WorkAddress->CellAttrs = array(); $cstArchivedStudentsAll->WorkAddress->ViewAttrs = array(); $cstArchivedStudentsAll->WorkAddress->EditAttrs = array();
// PostalAddress
$cstArchivedStudentsAll->PostalAddress->CellCssStyle = ""; $cstArchivedStudentsAll->PostalAddress->CellCssClass = "";
$cstArchivedStudentsAll->PostalAddress->CellAttrs = array(); $cstArchivedStudentsAll->PostalAddress->ViewAttrs = array(); $cstArchivedStudentsAll->PostalAddress->EditAttrs = array();
// Designation
$cstArchivedStudentsAll->Designation->CellCssStyle = ""; $cstArchivedStudentsAll->Designation->CellCssClass = "";
$cstArchivedStudentsAll->Designation->CellAttrs = array(); $cstArchivedStudentsAll->Designation->ViewAttrs = array(); $cstArchivedStudentsAll->Designation->EditAttrs = array();
// Department
$cstArchivedStudentsAll->Department->CellCssStyle = ""; $cstArchivedStudentsAll->Department->CellCssClass = "";
$cstArchivedStudentsAll->Department->CellAttrs = array(); $cstArchivedStudentsAll->Department->ViewAttrs = array(); $cstArchivedStudentsAll->Department->EditAttrs = array();
// CESAAccountNo
$cstArchivedStudentsAll->CESAAccountNo->CellCssStyle = ""; $cstArchivedStudentsAll->CESAAccountNo->CellCssClass = "";
$cstArchivedStudentsAll->CESAAccountNo->CellAttrs = array(); $cstArchivedStudentsAll->CESAAccountNo->ViewAttrs = array(); $cstArchivedStudentsAll->CESAAccountNo->EditAttrs = array();
// VATNo
$cstArchivedStudentsAll->VATNo->CellCssStyle = ""; $cstArchivedStudentsAll->VATNo->CellCssClass = "";
$cstArchivedStudentsAll->VATNo->CellAttrs = array(); $cstArchivedStudentsAll->VATNo->ViewAttrs = array(); $cstArchivedStudentsAll->VATNo->EditAttrs = array();
// DietaryRequirements
$cstArchivedStudentsAll->DietaryRequirements->CellCssStyle = ""; $cstArchivedStudentsAll->DietaryRequirements->CellCssClass = "";
$cstArchivedStudentsAll->DietaryRequirements->CellAttrs = array(); $cstArchivedStudentsAll->DietaryRequirements->ViewAttrs = array(); $cstArchivedStudentsAll->DietaryRequirements->EditAttrs = array();
// CVFile
$cstArchivedStudentsAll->CVFile->CellCssStyle = ""; $cstArchivedStudentsAll->CVFile->CellCssClass = "";
$cstArchivedStudentsAll->CVFile->CellAttrs = array(); $cstArchivedStudentsAll->CVFile->ViewAttrs = array(); $cstArchivedStudentsAll->CVFile->EditAttrs = array();
// QualCertificate1
$cstArchivedStudentsAll->QualCertificate1->CellCssStyle = ""; $cstArchivedStudentsAll->QualCertificate1->CellCssClass = "";
$cstArchivedStudentsAll->QualCertificate1->CellAttrs = array(); $cstArchivedStudentsAll->QualCertificate1->ViewAttrs = array(); $cstArchivedStudentsAll->QualCertificate1->EditAttrs = array();
// QualCertificate2
$cstArchivedStudentsAll->QualCertificate2->CellCssStyle = ""; $cstArchivedStudentsAll->QualCertificate2->CellCssClass = "";
$cstArchivedStudentsAll->QualCertificate2->CellAttrs = array(); $cstArchivedStudentsAll->QualCertificate2->ViewAttrs = array(); $cstArchivedStudentsAll->QualCertificate2->EditAttrs = array();
// QualCertificate3
$cstArchivedStudentsAll->QualCertificate3->CellCssStyle = ""; $cstArchivedStudentsAll->QualCertificate3->CellCssClass = "";
$cstArchivedStudentsAll->QualCertificate3->CellAttrs = array(); $cstArchivedStudentsAll->QualCertificate3->ViewAttrs = array(); $cstArchivedStudentsAll->QualCertificate3->EditAttrs = array();
// MemorandumFile
$cstArchivedStudentsAll->MemorandumFile->CellCssStyle = ""; $cstArchivedStudentsAll->MemorandumFile->CellCssClass = "";
$cstArchivedStudentsAll->MemorandumFile->CellAttrs = array(); $cstArchivedStudentsAll->MemorandumFile->ViewAttrs = array(); $cstArchivedStudentsAll->MemorandumFile->EditAttrs = array();
// AgreementFile
$cstArchivedStudentsAll->AgreementFile->CellCssStyle = ""; $cstArchivedStudentsAll->AgreementFile->CellCssClass = "";
$cstArchivedStudentsAll->AgreementFile->CellAttrs = array(); $cstArchivedStudentsAll->AgreementFile->ViewAttrs = array(); $cstArchivedStudentsAll->AgreementFile->EditAttrs = array();
// OrderNo
$cstArchivedStudentsAll->OrderNo->CellCssStyle = ""; $cstArchivedStudentsAll->OrderNo->CellCssClass = "";
$cstArchivedStudentsAll->OrderNo->CellAttrs = array(); $cstArchivedStudentsAll->OrderNo->ViewAttrs = array(); $cstArchivedStudentsAll->OrderNo->EditAttrs = array();
// BookedByName
$cstArchivedStudentsAll->BookedByName->CellCssStyle = ""; $cstArchivedStudentsAll->BookedByName->CellCssClass = "";
$cstArchivedStudentsAll->BookedByName->CellAttrs = array(); $cstArchivedStudentsAll->BookedByName->ViewAttrs = array(); $cstArchivedStudentsAll->BookedByName->EditAttrs = array();
// BookedByDesignation
$cstArchivedStudentsAll->BookedByDesignation->CellCssStyle = ""; $cstArchivedStudentsAll->BookedByDesignation->CellCssClass = "";
$cstArchivedStudentsAll->BookedByDesignation->CellAttrs = array(); $cstArchivedStudentsAll->BookedByDesignation->ViewAttrs = array(); $cstArchivedStudentsAll->BookedByDesignation->EditAttrs = array();
// BookedByTelNo
$cstArchivedStudentsAll->BookedByTelNo->CellCssStyle = ""; $cstArchivedStudentsAll->BookedByTelNo->CellCssClass = "";
$cstArchivedStudentsAll->BookedByTelNo->CellAttrs = array(); $cstArchivedStudentsAll->BookedByTelNo->ViewAttrs = array(); $cstArchivedStudentsAll->BookedByTelNo->EditAttrs = array();
// BookedByFaxNo
$cstArchivedStudentsAll->BookedByFaxNo->CellCssStyle = ""; $cstArchivedStudentsAll->BookedByFaxNo->CellCssClass = "";
$cstArchivedStudentsAll->BookedByFaxNo->CellAttrs = array(); $cstArchivedStudentsAll->BookedByFaxNo->ViewAttrs = array(); $cstArchivedStudentsAll->BookedByFaxNo->EditAttrs = array();
// BookedByCellNo
$cstArchivedStudentsAll->BookedByCellNo->CellCssStyle = ""; $cstArchivedStudentsAll->BookedByCellNo->CellCssClass = "";
$cstArchivedStudentsAll->BookedByCellNo->CellAttrs = array(); $cstArchivedStudentsAll->BookedByCellNo->ViewAttrs = array(); $cstArchivedStudentsAll->BookedByCellNo->EditAttrs = array();
// BookedByEmail
$cstArchivedStudentsAll->BookedByEmail->CellCssStyle = ""; $cstArchivedStudentsAll->BookedByEmail->CellCssClass = "";
$cstArchivedStudentsAll->BookedByEmail->CellAttrs = array(); $cstArchivedStudentsAll->BookedByEmail->ViewAttrs = array(); $cstArchivedStudentsAll->BookedByEmail->EditAttrs = array();
// WebUsername
$cstArchivedStudentsAll->WebUsername->CellCssStyle = ""; $cstArchivedStudentsAll->WebUsername->CellCssClass = "";
$cstArchivedStudentsAll->WebUsername->CellAttrs = array(); $cstArchivedStudentsAll->WebUsername->ViewAttrs = array(); $cstArchivedStudentsAll->WebUsername->EditAttrs = array();
// WebPassword
$cstArchivedStudentsAll->WebPassword->CellCssStyle = ""; $cstArchivedStudentsAll->WebPassword->CellCssClass = "";
$cstArchivedStudentsAll->WebPassword->CellAttrs = array(); $cstArchivedStudentsAll->WebPassword->ViewAttrs = array(); $cstArchivedStudentsAll->WebPassword->EditAttrs = array();
// MentorName
$cstArchivedStudentsAll->MentorName->CellCssStyle = ""; $cstArchivedStudentsAll->MentorName->CellCssClass = "";
$cstArchivedStudentsAll->MentorName->CellAttrs = array(); $cstArchivedStudentsAll->MentorName->ViewAttrs = array(); $cstArchivedStudentsAll->MentorName->EditAttrs = array();
// MentorDesig
$cstArchivedStudentsAll->MentorDesig->CellCssStyle = ""; $cstArchivedStudentsAll->MentorDesig->CellCssClass = "";
$cstArchivedStudentsAll->MentorDesig->CellAttrs = array(); $cstArchivedStudentsAll->MentorDesig->ViewAttrs = array(); $cstArchivedStudentsAll->MentorDesig->EditAttrs = array();
// MentorTel
$cstArchivedStudentsAll->MentorTel->CellCssStyle = ""; $cstArchivedStudentsAll->MentorTel->CellCssClass = "";
$cstArchivedStudentsAll->MentorTel->CellAttrs = array(); $cstArchivedStudentsAll->MentorTel->ViewAttrs = array(); $cstArchivedStudentsAll->MentorTel->EditAttrs = array();
// MentorCell
$cstArchivedStudentsAll->MentorCell->CellCssStyle = ""; $cstArchivedStudentsAll->MentorCell->CellCssClass = "";
$cstArchivedStudentsAll->MentorCell->CellAttrs = array(); $cstArchivedStudentsAll->MentorCell->ViewAttrs = array(); $cstArchivedStudentsAll->MentorCell->EditAttrs = array();
// MentorEmail
$cstArchivedStudentsAll->MentorEmail->CellCssStyle = ""; $cstArchivedStudentsAll->MentorEmail->CellCssClass = "";
$cstArchivedStudentsAll->MentorEmail->CellAttrs = array(); $cstArchivedStudentsAll->MentorEmail->ViewAttrs = array(); $cstArchivedStudentsAll->MentorEmail->EditAttrs = array();
// HRManagerName
$cstArchivedStudentsAll->HRManagerName->CellCssStyle = ""; $cstArchivedStudentsAll->HRManagerName->CellCssClass = "";
$cstArchivedStudentsAll->HRManagerName->CellAttrs = array(); $cstArchivedStudentsAll->HRManagerName->ViewAttrs = array(); $cstArchivedStudentsAll->HRManagerName->EditAttrs = array();
// HRManagerDesignation
$cstArchivedStudentsAll->HRManagerDesignation->CellCssStyle = ""; $cstArchivedStudentsAll->HRManagerDesignation->CellCssClass = "";
$cstArchivedStudentsAll->HRManagerDesignation->CellAttrs = array(); $cstArchivedStudentsAll->HRManagerDesignation->ViewAttrs = array(); $cstArchivedStudentsAll->HRManagerDesignation->EditAttrs = array();
// HRManagerTelNo
$cstArchivedStudentsAll->HRManagerTelNo->CellCssStyle = ""; $cstArchivedStudentsAll->HRManagerTelNo->CellCssClass = "";
$cstArchivedStudentsAll->HRManagerTelNo->CellAttrs = array(); $cstArchivedStudentsAll->HRManagerTelNo->ViewAttrs = array(); $cstArchivedStudentsAll->HRManagerTelNo->EditAttrs = array();
// HRManagerCellNo
$cstArchivedStudentsAll->HRManagerCellNo->CellCssStyle = ""; $cstArchivedStudentsAll->HRManagerCellNo->CellCssClass = "";
$cstArchivedStudentsAll->HRManagerCellNo->CellAttrs = array(); $cstArchivedStudentsAll->HRManagerCellNo->ViewAttrs = array(); $cstArchivedStudentsAll->HRManagerCellNo->EditAttrs = array();
// HRManagerEmail
$cstArchivedStudentsAll->HRManagerEmail->CellCssStyle = ""; $cstArchivedStudentsAll->HRManagerEmail->CellCssClass = "";
$cstArchivedStudentsAll->HRManagerEmail->CellAttrs = array(); $cstArchivedStudentsAll->HRManagerEmail->ViewAttrs = array(); $cstArchivedStudentsAll->HRManagerEmail->EditAttrs = array();
// LengthEmploy
$cstArchivedStudentsAll->LengthEmploy->CellCssStyle = ""; $cstArchivedStudentsAll->LengthEmploy->CellCssClass = "";
$cstArchivedStudentsAll->LengthEmploy->CellAttrs = array(); $cstArchivedStudentsAll->LengthEmploy->ViewAttrs = array(); $cstArchivedStudentsAll->LengthEmploy->EditAttrs = array();
// BlockAccess
$cstArchivedStudentsAll->BlockAccess->CellCssStyle = ""; $cstArchivedStudentsAll->BlockAccess->CellCssClass = "";
$cstArchivedStudentsAll->BlockAccess->CellAttrs = array(); $cstArchivedStudentsAll->BlockAccess->ViewAttrs = array(); $cstArchivedStudentsAll->BlockAccess->EditAttrs = array();
// ResultLetter
$cstArchivedStudentsAll->ResultLetter->CellCssStyle = ""; $cstArchivedStudentsAll->ResultLetter->CellCssClass = "";
$cstArchivedStudentsAll->ResultLetter->CellAttrs = array(); $cstArchivedStudentsAll->ResultLetter->ViewAttrs = array(); $cstArchivedStudentsAll->ResultLetter->EditAttrs = array();
// Achieved
$cstArchivedStudentsAll->Achieved->CellCssStyle = ""; $cstArchivedStudentsAll->Achieved->CellCssClass = "";
$cstArchivedStudentsAll->Achieved->CellAttrs = array(); $cstArchivedStudentsAll->Achieved->ViewAttrs = array(); $cstArchivedStudentsAll->Achieved->EditAttrs = array();
// IDFile
$cstArchivedStudentsAll->IDFile->CellCssStyle = ""; $cstArchivedStudentsAll->IDFile->CellCssClass = "";
$cstArchivedStudentsAll->IDFile->CellAttrs = array(); $cstArchivedStudentsAll->IDFile->ViewAttrs = array(); $cstArchivedStudentsAll->IDFile->EditAttrs = array();
// ReasonForLeaving
$cstArchivedStudentsAll->ReasonForLeaving->CellCssStyle = ""; $cstArchivedStudentsAll->ReasonForLeaving->CellCssClass = "";
$cstArchivedStudentsAll->ReasonForLeaving->CellAttrs = array(); $cstArchivedStudentsAll->ReasonForLeaving->ViewAttrs = array(); $cstArchivedStudentsAll->ReasonForLeaving->EditAttrs = array();
// CCECourseScheduleID
$cstArchivedStudentsAll->CCECourseScheduleID->CellCssStyle = ""; $cstArchivedStudentsAll->CCECourseScheduleID->CellCssClass = "";
$cstArchivedStudentsAll->CCECourseScheduleID->CellAttrs = array(); $cstArchivedStudentsAll->CCECourseScheduleID->ViewAttrs = array(); $cstArchivedStudentsAll->CCECourseScheduleID->EditAttrs = array();
// EditStudent
$cstArchivedStudentsAll->EditStudent->CellCssStyle = ""; $cstArchivedStudentsAll->EditStudent->CellCssClass = "";
$cstArchivedStudentsAll->EditStudent->CellAttrs = array(); $cstArchivedStudentsAll->EditStudent->ViewAttrs = array(); $cstArchivedStudentsAll->EditStudent->EditAttrs = array();
// Archived
$cstArchivedStudentsAll->Archived->CellCssStyle = ""; $cstArchivedStudentsAll->Archived->CellCssClass = "";
$cstArchivedStudentsAll->Archived->CellAttrs = array(); $cstArchivedStudentsAll->Archived->ViewAttrs = array(); $cstArchivedStudentsAll->Archived->EditAttrs = array();
// Cancelled
$cstArchivedStudentsAll->Cancelled->CellCssStyle = ""; $cstArchivedStudentsAll->Cancelled->CellCssClass = "";
$cstArchivedStudentsAll->Cancelled->CellAttrs = array(); $cstArchivedStudentsAll->Cancelled->ViewAttrs = array(); $cstArchivedStudentsAll->Cancelled->EditAttrs = array();
// CancelledReason
$cstArchivedStudentsAll->CancelledReason->CellCssStyle = ""; $cstArchivedStudentsAll->CancelledReason->CellCssClass = "";
$cstArchivedStudentsAll->CancelledReason->CellAttrs = array(); $cstArchivedStudentsAll->CancelledReason->ViewAttrs = array(); $cstArchivedStudentsAll->CancelledReason->EditAttrs = array();
if ($cstArchivedStudentsAll->RowType == EW_ROWTYPE_VIEW) { // View row
// Title
$cstArchivedStudentsAll->Title->ViewValue = $cstArchivedStudentsAll->Title->CurrentValue;
$cstArchivedStudentsAll->Title->CssStyle = "";
$cstArchivedStudentsAll->Title->CssClass = "";
$cstArchivedStudentsAll->Title->ViewCustomAttributes = "";
// FirstName
$cstArchivedStudentsAll->FirstName->ViewValue = $cstArchivedStudentsAll->FirstName->CurrentValue;
$cstArchivedStudentsAll->FirstName->CssStyle = "";
$cstArchivedStudentsAll->FirstName->CssClass = "";
$cstArchivedStudentsAll->FirstName->ViewCustomAttributes = "";
// Surname
$cstArchivedStudentsAll->Surname->ViewValue = $cstArchivedStudentsAll->Surname->CurrentValue;
$cstArchivedStudentsAll->Surname->CssStyle = "";
$cstArchivedStudentsAll->Surname->CssClass = "";
$cstArchivedStudentsAll->Surname->ViewCustomAttributes = "";
// KnownAs
$cstArchivedStudentsAll->KnownAs->ViewValue = $cstArchivedStudentsAll->KnownAs->CurrentValue;
$cstArchivedStudentsAll->KnownAs->CssStyle = "";
$cstArchivedStudentsAll->KnownAs->CssClass = "";
$cstArchivedStudentsAll->KnownAs->ViewCustomAttributes = "";
// Organisation
$cstArchivedStudentsAll->Organisation->ViewValue = $cstArchivedStudentsAll->Organisation->CurrentValue;
$cstArchivedStudentsAll->Organisation->CssStyle = "";
$cstArchivedStudentsAll->Organisation->CssClass = "";
$cstArchivedStudentsAll->Organisation->ViewCustomAttributes = "";
// OrganisationType
$cstArchivedStudentsAll->OrganisationType->ViewValue = $cstArchivedStudentsAll->OrganisationType->CurrentValue;
$cstArchivedStudentsAll->OrganisationType->CssStyle = "";
$cstArchivedStudentsAll->OrganisationType->CssClass = "";
$cstArchivedStudentsAll->OrganisationType->ViewCustomAttributes = "";
// StudentNumber
$cstArchivedStudentsAll->StudentNumber->ViewValue = $cstArchivedStudentsAll->StudentNumber->CurrentValue;
$cstArchivedStudentsAll->StudentNumber->CssStyle = "";
$cstArchivedStudentsAll->StudentNumber->CssClass = "";
$cstArchivedStudentsAll->StudentNumber->ViewCustomAttributes = "";
// CCEFacilitatorID
if (strval($cstArchivedStudentsAll->CCEFacilitatorID->CurrentValue) <> "") {
$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($cstArchivedStudentsAll->CCEFacilitatorID->CurrentValue) . "";
$sSqlWrk = "SELECT `FacilitatorName` FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudentsAll->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
$rswrk->Close();
} else {
$cstArchivedStudentsAll->CCEFacilitatorID->ViewValue = $cstArchivedStudentsAll->CCEFacilitatorID->CurrentValue;
}
} else {
$cstArchivedStudentsAll->CCEFacilitatorID->ViewValue = NULL;
}
$cstArchivedStudentsAll->CCEFacilitatorID->CssStyle = "";
$cstArchivedStudentsAll->CCEFacilitatorID->CssClass = "";
$cstArchivedStudentsAll->CCEFacilitatorID->ViewCustomAttributes = "";
// Project
if (strval($cstArchivedStudentsAll->Project->CurrentValue) <> "") {
$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($cstArchivedStudentsAll->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
$cstArchivedStudentsAll->Project->ViewValue = $rswrk->fields('Project');
$rswrk->Close();
} else {
$cstArchivedStudentsAll->Project->ViewValue = $cstArchivedStudentsAll->Project->CurrentValue;
}
} else {
$cstArchivedStudentsAll->Project->ViewValue = NULL;
}
$cstArchivedStudentsAll->Project->CssStyle = "";
$cstArchivedStudentsAll->Project->CssClass = "";
$cstArchivedStudentsAll->Project->ViewCustomAttributes = "";
// ProjectDiscipline
$cstArchivedStudentsAll->ProjectDiscipline->ViewValue = $cstArchivedStudentsAll->ProjectDiscipline->CurrentValue;
$cstArchivedStudentsAll->ProjectDiscipline->CssStyle = "";
$cstArchivedStudentsAll->ProjectDiscipline->CssClass = "";
$cstArchivedStudentsAll->ProjectDiscipline->ViewCustomAttributes = "";
// IDNumber
$cstArchivedStudentsAll->IDNumber->ViewValue = $cstArchivedStudentsAll->IDNumber->CurrentValue;
$cstArchivedStudentsAll->IDNumber->CssStyle = "";
$cstArchivedStudentsAll->IDNumber->CssClass = "";
$cstArchivedStudentsAll->IDNumber->ViewCustomAttributes = "mso-number-format:General";
// ECSARegistered
if (strval($cstArchivedStudentsAll->ECSARegistered->CurrentValue) <> "") {
switch ($cstArchivedStudentsAll->ECSARegistered->CurrentValue) {
case "y":
$cstArchivedStudentsAll->ECSARegistered->ViewValue = "Yes";
break;
case "n":
$cstArchivedStudentsAll->ECSARegistered->ViewValue = "No";
break;
case "c":
$cstArchivedStudentsAll->ECSARegistered->ViewValue = "Yes, Candidate Engineer";
break;
case "p":
$cstArchivedStudentsAll->ECSARegistered->ViewValue = "Yes, Professional Engineer";
break;
default:
$cstArchivedStudentsAll->ECSARegistered->ViewValue = $cstArchivedStudentsAll->ECSARegistered->CurrentValue;
}
} else {
$cstArchivedStudentsAll->ECSARegistered->ViewValue = NULL;
}
$cstArchivedStudentsAll->ECSARegistered->CssStyle = "";
$cstArchivedStudentsAll->ECSARegistered->CssClass = "";
$cstArchivedStudentsAll->ECSARegistered->ViewCustomAttributes = "";
// ECSACategory
if (strval($cstArchivedStudentsAll->ECSACategory->CurrentValue) <> "") {
$sFilterWrk = "`PicklistValue` = '" . ew_AdjustSql($cstArchivedStudentsAll->ECSACategory->CurrentValue) . "'";
$sSqlWrk = "SELECT `PicklistLabel` FROM `Picklists`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "`Picklists`.`PicklistType` = 'ECSA Registration Categories'" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudentsAll->ECSACategory->ViewValue = $rswrk->fields('PicklistLabel');
$rswrk->Close();
} else {
$cstArchivedStudentsAll->ECSACategory->ViewValue = $cstArchivedStudentsAll->ECSACategory->CurrentValue;
}
} else {
$cstArchivedStudentsAll->ECSACategory->ViewValue = NULL;
}
$cstArchivedStudentsAll->ECSACategory->CssStyle = "";
$cstArchivedStudentsAll->ECSACategory->CssClass = "";
$cstArchivedStudentsAll->ECSACategory->ViewCustomAttributes = "";
// ECSANumber
$cstArchivedStudentsAll->ECSANumber->ViewValue = $cstArchivedStudentsAll->ECSANumber->CurrentValue;
$cstArchivedStudentsAll->ECSANumber->CssStyle = "";
$cstArchivedStudentsAll->ECSANumber->CssClass = "";
$cstArchivedStudentsAll->ECSANumber->ViewCustomAttributes = "";
// OtherStatutoryBodyRegistered
if (strval($cstArchivedStudentsAll->OtherStatutoryBodyRegistered->CurrentValue) <> "") {
switch ($cstArchivedStudentsAll->OtherStatutoryBodyRegistered->CurrentValue) {
case "1":
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->ViewValue = "Yes";
break;
case "0":
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->ViewValue = "No";
break;
default:
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->ViewValue = $cstArchivedStudentsAll->OtherStatutoryBodyRegistered->CurrentValue;
}
} else {
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->ViewValue = NULL;
}
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->CssStyle = "";
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->CssClass = "";
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->ViewCustomAttributes = "";
// OtherStatutoryBodyName
$cstArchivedStudentsAll->OtherStatutoryBodyName->ViewValue = $cstArchivedStudentsAll->OtherStatutoryBodyName->CurrentValue;
$cstArchivedStudentsAll->OtherStatutoryBodyName->CssStyle = "";
$cstArchivedStudentsAll->OtherStatutoryBodyName->CssClass = "";
$cstArchivedStudentsAll->OtherStatutoryBodyName->ViewCustomAttributes = "";
// OtherStatutoryBodyNumber
$cstArchivedStudentsAll->OtherStatutoryBodyNumber->ViewValue = $cstArchivedStudentsAll->OtherStatutoryBodyNumber->CurrentValue;
$cstArchivedStudentsAll->OtherStatutoryBodyNumber->CssStyle = "";
$cstArchivedStudentsAll->OtherStatutoryBodyNumber->CssClass = "";
$cstArchivedStudentsAll->OtherStatutoryBodyNumber->ViewCustomAttributes = "";
// Age
$cstArchivedStudentsAll->Age->ViewValue = $cstArchivedStudentsAll->Age->CurrentValue;
$cstArchivedStudentsAll->Age->CssStyle = "";
$cstArchivedStudentsAll->Age->CssClass = "";
$cstArchivedStudentsAll->Age->ViewCustomAttributes = "";
// HighestQual
$cstArchivedStudentsAll->HighestQual->ViewValue = $cstArchivedStudentsAll->HighestQual->CurrentValue;
$cstArchivedStudentsAll->HighestQual->CssStyle = "";
$cstArchivedStudentsAll->HighestQual->CssClass = "";
$cstArchivedStudentsAll->HighestQual->ViewCustomAttributes = "";
// AreaDiscipline
$cstArchivedStudentsAll->AreaDiscipline->ViewValue = $cstArchivedStudentsAll->AreaDiscipline->CurrentValue;
$cstArchivedStudentsAll->AreaDiscipline->CssStyle = "";
$cstArchivedStudentsAll->AreaDiscipline->CssClass = "";
$cstArchivedStudentsAll->AreaDiscipline->ViewCustomAttributes = "";
// Telephone
$cstArchivedStudentsAll->Telephone->ViewValue = $cstArchivedStudentsAll->Telephone->CurrentValue;
$cstArchivedStudentsAll->Telephone->CssStyle = "";
$cstArchivedStudentsAll->Telephone->CssClass = "";
$cstArchivedStudentsAll->Telephone->ViewCustomAttributes = "mso-number-format:General";
// Cellphone
$cstArchivedStudentsAll->Cellphone->ViewValue = $cstArchivedStudentsAll->Cellphone->CurrentValue;
$cstArchivedStudentsAll->Cellphone->CssStyle = "";
$cstArchivedStudentsAll->Cellphone->CssClass = "";
$cstArchivedStudentsAll->Cellphone->ViewCustomAttributes = "mso-number-format:General";
// EmailAddress
$cstArchivedStudentsAll->EmailAddress->ViewValue = $cstArchivedStudentsAll->EmailAddress->CurrentValue;
$cstArchivedStudentsAll->EmailAddress->CssStyle = "";
$cstArchivedStudentsAll->EmailAddress->CssClass = "";
$cstArchivedStudentsAll->EmailAddress->ViewCustomAttributes = "";
// HomeAddress
$cstArchivedStudentsAll->HomeAddress->ViewValue = $cstArchivedStudentsAll->HomeAddress->CurrentValue;
$cstArchivedStudentsAll->HomeAddress->CssStyle = "";
$cstArchivedStudentsAll->HomeAddress->CssClass = "";
$cstArchivedStudentsAll->HomeAddress->ViewCustomAttributes = "";
// WorkAddress
$cstArchivedStudentsAll->WorkAddress->ViewValue = $cstArchivedStudentsAll->WorkAddress->CurrentValue;
$cstArchivedStudentsAll->WorkAddress->CssStyle = "";
$cstArchivedStudentsAll->WorkAddress->CssClass = "";
$cstArchivedStudentsAll->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$cstArchivedStudentsAll->PostalAddress->ViewValue = $cstArchivedStudentsAll->PostalAddress->CurrentValue;
$cstArchivedStudentsAll->PostalAddress->CssStyle = "";
$cstArchivedStudentsAll->PostalAddress->CssClass = "";
$cstArchivedStudentsAll->PostalAddress->ViewCustomAttributes = "";
// Designation
$cstArchivedStudentsAll->Designation->ViewValue = $cstArchivedStudentsAll->Designation->CurrentValue;
$cstArchivedStudentsAll->Designation->CssStyle = "";
$cstArchivedStudentsAll->Designation->CssClass = "";
$cstArchivedStudentsAll->Designation->ViewCustomAttributes = "";
// Department
$cstArchivedStudentsAll->Department->ViewValue = $cstArchivedStudentsAll->Department->CurrentValue;
$cstArchivedStudentsAll->Department->CssStyle = "";
$cstArchivedStudentsAll->Department->CssClass = "";
$cstArchivedStudentsAll->Department->ViewCustomAttributes = "";
// CESAAccountNo
$cstArchivedStudentsAll->CESAAccountNo->ViewValue = $cstArchivedStudentsAll->CESAAccountNo->CurrentValue;
$cstArchivedStudentsAll->CESAAccountNo->CssStyle = "";
$cstArchivedStudentsAll->CESAAccountNo->CssClass = "";
$cstArchivedStudentsAll->CESAAccountNo->ViewCustomAttributes = "";
// VATNo
$cstArchivedStudentsAll->VATNo->ViewValue = $cstArchivedStudentsAll->VATNo->CurrentValue;
$cstArchivedStudentsAll->VATNo->CssStyle = "";
$cstArchivedStudentsAll->VATNo->CssClass = "";
$cstArchivedStudentsAll->VATNo->ViewCustomAttributes = "mso-number-format:General";
// DietaryRequirements
$cstArchivedStudentsAll->DietaryRequirements->ViewValue = $cstArchivedStudentsAll->DietaryRequirements->CurrentValue;
$cstArchivedStudentsAll->DietaryRequirements->CssStyle = "";
$cstArchivedStudentsAll->DietaryRequirements->CssClass = "";
$cstArchivedStudentsAll->DietaryRequirements->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($cstArchivedStudentsAll->CVFile->Upload->DbValue)) {
$cstArchivedStudentsAll->CVFile->ViewValue = $cstArchivedStudentsAll->CVFile->Upload->DbValue;
} else {
$cstArchivedStudentsAll->CVFile->ViewValue = "";
}
$cstArchivedStudentsAll->CVFile->CssStyle = "";
$cstArchivedStudentsAll->CVFile->CssClass = "";
$cstArchivedStudentsAll->CVFile->ViewCustomAttributes = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudentsAll->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudentsAll->QualCertificate1->ViewValue = $cstArchivedStudentsAll->QualCertificate1->Upload->DbValue;
} else {
$cstArchivedStudentsAll->QualCertificate1->ViewValue = "";
}
$cstArchivedStudentsAll->QualCertificate1->CssStyle = "";
$cstArchivedStudentsAll->QualCertificate1->CssClass = "";
$cstArchivedStudentsAll->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudentsAll->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudentsAll->QualCertificate2->ViewValue = $cstArchivedStudentsAll->QualCertificate2->Upload->DbValue;
} else {
$cstArchivedStudentsAll->QualCertificate2->ViewValue = "";
}
$cstArchivedStudentsAll->QualCertificate2->CssStyle = "";
$cstArchivedStudentsAll->QualCertificate2->CssClass = "";
$cstArchivedStudentsAll->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudentsAll->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudentsAll->QualCertificate3->ViewValue = $cstArchivedStudentsAll->QualCertificate3->Upload->DbValue;
} else {
$cstArchivedStudentsAll->QualCertificate3->ViewValue = "";
}
$cstArchivedStudentsAll->QualCertificate3->CssStyle = "";
$cstArchivedStudentsAll->QualCertificate3->CssClass = "";
$cstArchivedStudentsAll->QualCertificate3->ViewCustomAttributes = "";
// MemorandumFile
if (!ew_Empty($cstArchivedStudentsAll->MemorandumFile->Upload->DbValue)) {
$cstArchivedStudentsAll->MemorandumFile->ViewValue = $cstArchivedStudentsAll->MemorandumFile->Upload->DbValue;
} else {
$cstArchivedStudentsAll->MemorandumFile->ViewValue = "";
}
$cstArchivedStudentsAll->MemorandumFile->CssStyle = "";
$cstArchivedStudentsAll->MemorandumFile->CssClass = "";
$cstArchivedStudentsAll->MemorandumFile->ViewCustomAttributes = "";
// AgreementFile
if (!ew_Empty($cstArchivedStudentsAll->AgreementFile->Upload->DbValue)) {
$cstArchivedStudentsAll->AgreementFile->ViewValue = $cstArchivedStudentsAll->AgreementFile->Upload->DbValue;
} else {
$cstArchivedStudentsAll->AgreementFile->ViewValue = "";
}
$cstArchivedStudentsAll->AgreementFile->CssStyle = "";
$cstArchivedStudentsAll->AgreementFile->CssClass = "";
$cstArchivedStudentsAll->AgreementFile->ViewCustomAttributes = "";
// OrderNo
$cstArchivedStudentsAll->OrderNo->ViewValue = $cstArchivedStudentsAll->OrderNo->CurrentValue;
$cstArchivedStudentsAll->OrderNo->CssStyle = "";
$cstArchivedStudentsAll->OrderNo->CssClass = "";
$cstArchivedStudentsAll->OrderNo->ViewCustomAttributes = "";
// BookedByName
$cstArchivedStudentsAll->BookedByName->ViewValue = $cstArchivedStudentsAll->BookedByName->CurrentValue;
$cstArchivedStudentsAll->BookedByName->CssStyle = "";
$cstArchivedStudentsAll->BookedByName->CssClass = "";
$cstArchivedStudentsAll->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$cstArchivedStudentsAll->BookedByDesignation->ViewValue = $cstArchivedStudentsAll->BookedByDesignation->CurrentValue;
$cstArchivedStudentsAll->BookedByDesignation->CssStyle = "";
$cstArchivedStudentsAll->BookedByDesignation->CssClass = "";
$cstArchivedStudentsAll->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$cstArchivedStudentsAll->BookedByTelNo->ViewValue = $cstArchivedStudentsAll->BookedByTelNo->CurrentValue;
$cstArchivedStudentsAll->BookedByTelNo->CssStyle = "";
$cstArchivedStudentsAll->BookedByTelNo->CssClass = "";
$cstArchivedStudentsAll->BookedByTelNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByFaxNo
$cstArchivedStudentsAll->BookedByFaxNo->ViewValue = $cstArchivedStudentsAll->BookedByFaxNo->CurrentValue;
$cstArchivedStudentsAll->BookedByFaxNo->CssStyle = "";
$cstArchivedStudentsAll->BookedByFaxNo->CssClass = "";
$cstArchivedStudentsAll->BookedByFaxNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByCellNo
$cstArchivedStudentsAll->BookedByCellNo->ViewValue = $cstArchivedStudentsAll->BookedByCellNo->CurrentValue;
$cstArchivedStudentsAll->BookedByCellNo->CssStyle = "";
$cstArchivedStudentsAll->BookedByCellNo->CssClass = "";
$cstArchivedStudentsAll->BookedByCellNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByEmail
$cstArchivedStudentsAll->BookedByEmail->ViewValue = $cstArchivedStudentsAll->BookedByEmail->CurrentValue;
$cstArchivedStudentsAll->BookedByEmail->CssStyle = "";
$cstArchivedStudentsAll->BookedByEmail->CssClass = "";
$cstArchivedStudentsAll->BookedByEmail->ViewCustomAttributes = "";
// WebUsername
$cstArchivedStudentsAll->WebUsername->ViewValue = $cstArchivedStudentsAll->WebUsername->CurrentValue;
$cstArchivedStudentsAll->WebUsername->CssStyle = "";
$cstArchivedStudentsAll->WebUsername->CssClass = "";
$cstArchivedStudentsAll->WebUsername->ViewCustomAttributes = "";
// WebPassword
$cstArchivedStudentsAll->WebPassword->ViewValue = $cstArchivedStudentsAll->WebPassword->CurrentValue;
$cstArchivedStudentsAll->WebPassword->CssStyle = "";
$cstArchivedStudentsAll->WebPassword->CssClass = "";
$cstArchivedStudentsAll->WebPassword->ViewCustomAttributes = "";
// MentorName
$cstArchivedStudentsAll->MentorName->ViewValue = $cstArchivedStudentsAll->MentorName->CurrentValue;
$cstArchivedStudentsAll->MentorName->CssStyle = "";
$cstArchivedStudentsAll->MentorName->CssClass = "";
$cstArchivedStudentsAll->MentorName->ViewCustomAttributes = "";
// MentorDesig
$cstArchivedStudentsAll->MentorDesig->ViewValue = $cstArchivedStudentsAll->MentorDesig->CurrentValue;
$cstArchivedStudentsAll->MentorDesig->CssStyle = "";
$cstArchivedStudentsAll->MentorDesig->CssClass = "";
$cstArchivedStudentsAll->MentorDesig->ViewCustomAttributes = "";
// MentorTel
$cstArchivedStudentsAll->MentorTel->ViewValue = $cstArchivedStudentsAll->MentorTel->CurrentValue;
$cstArchivedStudentsAll->MentorTel->CssStyle = "";
$cstArchivedStudentsAll->MentorTel->CssClass = "";
$cstArchivedStudentsAll->MentorTel->ViewCustomAttributes = "";
// MentorCell
$cstArchivedStudentsAll->MentorCell->ViewValue = $cstArchivedStudentsAll->MentorCell->CurrentValue;
$cstArchivedStudentsAll->MentorCell->CssStyle = "";
$cstArchivedStudentsAll->MentorCell->CssClass = "";
$cstArchivedStudentsAll->MentorCell->ViewCustomAttributes = "";
// MentorEmail
$cstArchivedStudentsAll->MentorEmail->ViewValue = $cstArchivedStudentsAll->MentorEmail->CurrentValue;
$cstArchivedStudentsAll->MentorEmail->CssStyle = "";
$cstArchivedStudentsAll->MentorEmail->CssClass = "";
$cstArchivedStudentsAll->MentorEmail->ViewCustomAttributes = "";
// HRManagerName
$cstArchivedStudentsAll->HRManagerName->ViewValue = $cstArchivedStudentsAll->HRManagerName->CurrentValue;
$cstArchivedStudentsAll->HRManagerName->CssStyle = "";
$cstArchivedStudentsAll->HRManagerName->CssClass = "";
$cstArchivedStudentsAll->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$cstArchivedStudentsAll->HRManagerDesignation->ViewValue = $cstArchivedStudentsAll->HRManagerDesignation->CurrentValue;
$cstArchivedStudentsAll->HRManagerDesignation->CssStyle = "";
$cstArchivedStudentsAll->HRManagerDesignation->CssClass = "";
$cstArchivedStudentsAll->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$cstArchivedStudentsAll->HRManagerTelNo->ViewValue = $cstArchivedStudentsAll->HRManagerTelNo->CurrentValue;
$cstArchivedStudentsAll->HRManagerTelNo->CssStyle = "";
$cstArchivedStudentsAll->HRManagerTelNo->CssClass = "";
$cstArchivedStudentsAll->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$cstArchivedStudentsAll->HRManagerCellNo->ViewValue = $cstArchivedStudentsAll->HRManagerCellNo->CurrentValue;
$cstArchivedStudentsAll->HRManagerCellNo->CssStyle = "";
$cstArchivedStudentsAll->HRManagerCellNo->CssClass = "";
$cstArchivedStudentsAll->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$cstArchivedStudentsAll->HRManagerEmail->ViewValue = $cstArchivedStudentsAll->HRManagerEmail->CurrentValue;
$cstArchivedStudentsAll->HRManagerEmail->CssStyle = "";
$cstArchivedStudentsAll->HRManagerEmail->CssClass = "";
$cstArchivedStudentsAll->HRManagerEmail->ViewCustomAttributes = "";
// LengthEmploy
$cstArchivedStudentsAll->LengthEmploy->ViewValue = $cstArchivedStudentsAll->LengthEmploy->CurrentValue;
$cstArchivedStudentsAll->LengthEmploy->CssStyle = "";
$cstArchivedStudentsAll->LengthEmploy->CssClass = "";
$cstArchivedStudentsAll->LengthEmploy->ViewCustomAttributes = "";
// BlockAccess
if (strval($cstArchivedStudentsAll->BlockAccess->CurrentValue) <> "") {
switch ($cstArchivedStudentsAll->BlockAccess->CurrentValue) {
case "y":
$cstArchivedStudentsAll->BlockAccess->ViewValue = "Yes";
break;
case "n":
$cstArchivedStudentsAll->BlockAccess->ViewValue = "No";
break;
default:
$cstArchivedStudentsAll->BlockAccess->ViewValue = $cstArchivedStudentsAll->BlockAccess->CurrentValue;
}
} else {
$cstArchivedStudentsAll->BlockAccess->ViewValue = NULL;
}
$cstArchivedStudentsAll->BlockAccess->CssStyle = "";
$cstArchivedStudentsAll->BlockAccess->CssClass = "";
$cstArchivedStudentsAll->BlockAccess->ViewCustomAttributes = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudentsAll->ResultLetter->Upload->DbValue)) {
$cstArchivedStudentsAll->ResultLetter->ViewValue = $cstArchivedStudentsAll->ResultLetter->Upload->DbValue;
} else {
$cstArchivedStudentsAll->ResultLetter->ViewValue = "";
}
$cstArchivedStudentsAll->ResultLetter->CssStyle = "";
$cstArchivedStudentsAll->ResultLetter->CssClass = "";
$cstArchivedStudentsAll->ResultLetter->ViewCustomAttributes = "";
// Achieved
if (strval($cstArchivedStudentsAll->Achieved->CurrentValue) <> "") {
$cstArchivedStudentsAll->Achieved->ViewValue = "";
$arwrk = explode(",", strval($cstArchivedStudentsAll->Achieved->CurrentValue));
for ($ari = 0; $ari < count($arwrk); $ari++) {
switch (trim($arwrk[$ari])) {
case "1":
$cstArchivedStudentsAll->Achieved->ViewValue .= "Yes";
break;
default:
$cstArchivedStudentsAll->Achieved->ViewValue .= trim($arwrk[$ari]);
}
if ($ari < count($arwrk)-1) $cstArchivedStudentsAll->Achieved->ViewValue .= ew_ViewOptionSeparator($ari);
}
} else {
$cstArchivedStudentsAll->Achieved->ViewValue = NULL;
}
$cstArchivedStudentsAll->Achieved->CssStyle = "";
$cstArchivedStudentsAll->Achieved->CssClass = "";
$cstArchivedStudentsAll->Achieved->ViewCustomAttributes = "";
// IDFile
if (!ew_Empty($cstArchivedStudentsAll->IDFile->Upload->DbValue)) {
$cstArchivedStudentsAll->IDFile->ViewValue = $cstArchivedStudentsAll->IDFile->Upload->DbValue;
} else {
$cstArchivedStudentsAll->IDFile->ViewValue = "";
}
$cstArchivedStudentsAll->IDFile->CssStyle = "";
$cstArchivedStudentsAll->IDFile->CssClass = "";
$cstArchivedStudentsAll->IDFile->ViewCustomAttributes = "";
// ReasonForLeaving
$cstArchivedStudentsAll->ReasonForLeaving->ViewValue = $cstArchivedStudentsAll->ReasonForLeaving->CurrentValue;
$cstArchivedStudentsAll->ReasonForLeaving->CssStyle = "";
$cstArchivedStudentsAll->ReasonForLeaving->CssClass = "";
$cstArchivedStudentsAll->ReasonForLeaving->ViewCustomAttributes = "";
// CCECourseScheduleID
if (strval($cstArchivedStudentsAll->CCECourseScheduleID->CurrentValue) <> "") {
$sFilterWrk = "CCECourseSchedules.CCECourseScheduleID = " . ew_AdjustSql($cstArchivedStudentsAll->CCECourseScheduleID->CurrentValue) . "";
$sSqlWrk = "SELECT Year(CCECourseSchedules.StartDate) AS `CourseYear` FROM CCECourseSchedules";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudentsAll->CCECourseScheduleID->ViewValue = $rswrk->fields('CourseYear');
$rswrk->Close();
} else {
$cstArchivedStudentsAll->CCECourseScheduleID->ViewValue = $cstArchivedStudentsAll->CCECourseScheduleID->CurrentValue;
}
} else {
$cstArchivedStudentsAll->CCECourseScheduleID->ViewValue = NULL;
}
$cstArchivedStudentsAll->CCECourseScheduleID->CssStyle = "";
$cstArchivedStudentsAll->CCECourseScheduleID->CssClass = "";
$cstArchivedStudentsAll->CCECourseScheduleID->ViewCustomAttributes = "";
// EditStudent
$cstArchivedStudentsAll->EditStudent->ViewValue = $cstArchivedStudentsAll->EditStudent->CurrentValue;
$cstArchivedStudentsAll->EditStudent->CssStyle = "";
$cstArchivedStudentsAll->EditStudent->CssClass = "";
$cstArchivedStudentsAll->EditStudent->ViewCustomAttributes = "";
// Archived
if (strval($cstArchivedStudentsAll->Archived->CurrentValue) <> "") {
$cstArchivedStudentsAll->Archived->ViewValue = "";
$arwrk = explode(",", strval($cstArchivedStudentsAll->Archived->CurrentValue));
for ($ari = 0; $ari < count($arwrk); $ari++) {
switch (trim($arwrk[$ari])) {
case "1":
$cstArchivedStudentsAll->Archived->ViewValue .= "Yes";
break;
default:
$cstArchivedStudentsAll->Archived->ViewValue .= trim($arwrk[$ari]);
}
if ($ari < count($arwrk)-1) $cstArchivedStudentsAll->Archived->ViewValue .= ew_ViewOptionSeparator($ari);
}
} else {
$cstArchivedStudentsAll->Archived->ViewValue = NULL;
}
$cstArchivedStudentsAll->Archived->CssStyle = "";
$cstArchivedStudentsAll->Archived->CssClass = "";
$cstArchivedStudentsAll->Archived->ViewCustomAttributes = "";
// Cancelled
$cstArchivedStudentsAll->Cancelled->ViewValue = $cstArchivedStudentsAll->Cancelled->CurrentValue;
$cstArchivedStudentsAll->Cancelled->CssStyle = "";
$cstArchivedStudentsAll->Cancelled->CssClass = "";
$cstArchivedStudentsAll->Cancelled->ViewCustomAttributes = "";
// CancelledReason
$cstArchivedStudentsAll->CancelledReason->ViewValue = $cstArchivedStudentsAll->CancelledReason->CurrentValue;
$cstArchivedStudentsAll->CancelledReason->CssStyle = "";
$cstArchivedStudentsAll->CancelledReason->CssClass = "";
$cstArchivedStudentsAll->CancelledReason->ViewCustomAttributes = "";
// Title
$cstArchivedStudentsAll->Title->HrefValue = "";
$cstArchivedStudentsAll->Title->TooltipValue = "";
// FirstName
$cstArchivedStudentsAll->FirstName->HrefValue = "";
$cstArchivedStudentsAll->FirstName->TooltipValue = "";
// Surname
$cstArchivedStudentsAll->Surname->HrefValue = "";
$cstArchivedStudentsAll->Surname->TooltipValue = "";
// KnownAs
$cstArchivedStudentsAll->KnownAs->HrefValue = "";
$cstArchivedStudentsAll->KnownAs->TooltipValue = "";
// Organisation
$cstArchivedStudentsAll->Organisation->HrefValue = "";
$cstArchivedStudentsAll->Organisation->TooltipValue = "";
// OrganisationType
$cstArchivedStudentsAll->OrganisationType->HrefValue = "";
$cstArchivedStudentsAll->OrganisationType->TooltipValue = "";
// StudentNumber
$cstArchivedStudentsAll->StudentNumber->HrefValue = "";
$cstArchivedStudentsAll->StudentNumber->TooltipValue = "";
// CCEFacilitatorID
$cstArchivedStudentsAll->CCEFacilitatorID->HrefValue = "";
$cstArchivedStudentsAll->CCEFacilitatorID->TooltipValue = "";
// Project
$cstArchivedStudentsAll->Project->HrefValue = "";
$cstArchivedStudentsAll->Project->TooltipValue = "";
// ProjectDiscipline
$cstArchivedStudentsAll->ProjectDiscipline->HrefValue = "";
$cstArchivedStudentsAll->ProjectDiscipline->TooltipValue = "";
// IDNumber
$cstArchivedStudentsAll->IDNumber->HrefValue = "";
$cstArchivedStudentsAll->IDNumber->TooltipValue = "";
// ECSARegistered
$cstArchivedStudentsAll->ECSARegistered->HrefValue = "";
$cstArchivedStudentsAll->ECSARegistered->TooltipValue = "";
// ECSACategory
$cstArchivedStudentsAll->ECSACategory->HrefValue = "";
$cstArchivedStudentsAll->ECSACategory->TooltipValue = "";
// ECSANumber
$cstArchivedStudentsAll->ECSANumber->HrefValue = "";
$cstArchivedStudentsAll->ECSANumber->TooltipValue = "";
// OtherStatutoryBodyRegistered
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->HrefValue = "";
$cstArchivedStudentsAll->OtherStatutoryBodyRegistered->TooltipValue = "";
// OtherStatutoryBodyName
$cstArchivedStudentsAll->OtherStatutoryBodyName->HrefValue = "";
$cstArchivedStudentsAll->OtherStatutoryBodyName->TooltipValue = "";
// OtherStatutoryBodyNumber
$cstArchivedStudentsAll->OtherStatutoryBodyNumber->HrefValue = "";
$cstArchivedStudentsAll->OtherStatutoryBodyNumber->TooltipValue = "";
// Age
$cstArchivedStudentsAll->Age->HrefValue = "";
$cstArchivedStudentsAll->Age->TooltipValue = "";
// HighestQual
$cstArchivedStudentsAll->HighestQual->HrefValue = "";
$cstArchivedStudentsAll->HighestQual->TooltipValue = "";
// AreaDiscipline
$cstArchivedStudentsAll->AreaDiscipline->HrefValue = "";
$cstArchivedStudentsAll->AreaDiscipline->TooltipValue = "";
// Telephone
$cstArchivedStudentsAll->Telephone->HrefValue = "";
$cstArchivedStudentsAll->Telephone->TooltipValue = "";
// Cellphone
$cstArchivedStudentsAll->Cellphone->HrefValue = "";
$cstArchivedStudentsAll->Cellphone->TooltipValue = "";
// EmailAddress
$cstArchivedStudentsAll->EmailAddress->HrefValue = "";
$cstArchivedStudentsAll->EmailAddress->TooltipValue = "";
// HomeAddress
$cstArchivedStudentsAll->HomeAddress->HrefValue = "";
$cstArchivedStudentsAll->HomeAddress->TooltipValue = "";
// WorkAddress
$cstArchivedStudentsAll->WorkAddress->HrefValue = "";
$cstArchivedStudentsAll->WorkAddress->TooltipValue = "";
// PostalAddress
$cstArchivedStudentsAll->PostalAddress->HrefValue = "";
$cstArchivedStudentsAll->PostalAddress->TooltipValue = "";
// Designation
$cstArchivedStudentsAll->Designation->HrefValue = "";
$cstArchivedStudentsAll->Designation->TooltipValue = "";
// Department
$cstArchivedStudentsAll->Department->HrefValue = "";
$cstArchivedStudentsAll->Department->TooltipValue = "";
// CESAAccountNo
$cstArchivedStudentsAll->CESAAccountNo->HrefValue = "";
$cstArchivedStudentsAll->CESAAccountNo->TooltipValue = "";
// VATNo
$cstArchivedStudentsAll->VATNo->HrefValue = "";
$cstArchivedStudentsAll->VATNo->TooltipValue = "";
// DietaryRequirements
$cstArchivedStudentsAll->DietaryRequirements->HrefValue = "";
$cstArchivedStudentsAll->DietaryRequirements->TooltipValue = "";
// CVFile
if (!ew_Empty($cstArchivedStudentsAll->CVFile->Upload->DbValue)) {
$cstArchivedStudentsAll->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudentsAll->CVFile->UploadPath) . ((!empty($cstArchivedStudentsAll->CVFile->ViewValue)) ? $cstArchivedStudentsAll->CVFile->ViewValue : $cstArchivedStudentsAll->CVFile->CurrentValue);
if ($cstArchivedStudentsAll->Export <> "") $cstArchivedStudentsAll->CVFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudentsAll->CVFile->HrefValue);
} else {
$cstArchivedStudentsAll->CVFile->HrefValue = "";
}
$cstArchivedStudentsAll->CVFile->TooltipValue = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudentsAll->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudentsAll->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudentsAll->QualCertificate1->UploadPath) . ((!empty($cstArchivedStudentsAll->QualCertificate1->ViewValue)) ? $cstArchivedStudentsAll->QualCertificate1->ViewValue : $cstArchivedStudentsAll->QualCertificate1->CurrentValue);
if ($cstArchivedStudentsAll->Export <> "") $cstArchivedStudentsAll->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstArchivedStudentsAll->QualCertificate1->HrefValue);
} else {
$cstArchivedStudentsAll->QualCertificate1->HrefValue = "";
}
$cstArchivedStudentsAll->QualCertificate1->TooltipValue = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudentsAll->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudentsAll->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudentsAll->QualCertificate2->UploadPath) . ((!empty($cstArchivedStudentsAll->QualCertificate2->ViewValue)) ? $cstArchivedStudentsAll->QualCertificate2->ViewValue : $cstArchivedStudentsAll->QualCertificate2->CurrentValue);
if ($cstArchivedStudentsAll->Export <> "") $cstArchivedStudentsAll->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstArchivedStudentsAll->QualCertificate2->HrefValue);
} else {
$cstArchivedStudentsAll->QualCertificate2->HrefValue = "";
}
$cstArchivedStudentsAll->QualCertificate2->TooltipValue = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudentsAll->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudentsAll->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudentsAll->QualCertificate3->UploadPath) . ((!empty($cstArchivedStudentsAll->QualCertificate3->ViewValue)) ? $cstArchivedStudentsAll->QualCertificate3->ViewValue : $cstArchivedStudentsAll->QualCertificate3->CurrentValue);
if ($cstArchivedStudentsAll->Export <> "") $cstArchivedStudentsAll->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstArchivedStudentsAll->QualCertificate3->HrefValue);
} else {
$cstArchivedStudentsAll->QualCertificate3->HrefValue = "";
}
$cstArchivedStudentsAll->QualCertificate3->TooltipValue = "";
// MemorandumFile
if (!ew_Empty($cstArchivedStudentsAll->MemorandumFile->Upload->DbValue)) {
$cstArchivedStudentsAll->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudentsAll->MemorandumFile->UploadPath) . ((!empty($cstArchivedStudentsAll->MemorandumFile->ViewValue)) ? $cstArchivedStudentsAll->MemorandumFile->ViewValue : $cstArchivedStudentsAll->MemorandumFile->CurrentValue);
if ($cstArchivedStudentsAll->Export <> "") $cstArchivedStudentsAll->MemorandumFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudentsAll->MemorandumFile->HrefValue);
} else {
$cstArchivedStudentsAll->MemorandumFile->HrefValue = "";
}
$cstArchivedStudentsAll->MemorandumFile->TooltipValue = "";
// AgreementFile
if (!ew_Empty($cstArchivedStudentsAll->AgreementFile->Upload->DbValue)) {
$cstArchivedStudentsAll->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudentsAll->AgreementFile->UploadPath) . ((!empty($cstArchivedStudentsAll->AgreementFile->ViewValue)) ? $cstArchivedStudentsAll->AgreementFile->ViewValue : $cstArchivedStudentsAll->AgreementFile->CurrentValue);
if ($cstArchivedStudentsAll->Export <> "") $cstArchivedStudentsAll->AgreementFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudentsAll->AgreementFile->HrefValue);
} else {
$cstArchivedStudentsAll->AgreementFile->HrefValue = "";
}
$cstArchivedStudentsAll->AgreementFile->TooltipValue = "";
// OrderNo
$cstArchivedStudentsAll->OrderNo->HrefValue = "";
$cstArchivedStudentsAll->OrderNo->TooltipValue = "";
// BookedByName
$cstArchivedStudentsAll->BookedByName->HrefValue = "";
$cstArchivedStudentsAll->BookedByName->TooltipValue = "";
// BookedByDesignation
$cstArchivedStudentsAll->BookedByDesignation->HrefValue = "";
$cstArchivedStudentsAll->BookedByDesignation->TooltipValue = "";
// BookedByTelNo
$cstArchivedStudentsAll->BookedByTelNo->HrefValue = "";
$cstArchivedStudentsAll->BookedByTelNo->TooltipValue = "";
// BookedByFaxNo
$cstArchivedStudentsAll->BookedByFaxNo->HrefValue = "";
$cstArchivedStudentsAll->BookedByFaxNo->TooltipValue = "";
// BookedByCellNo
$cstArchivedStudentsAll->BookedByCellNo->HrefValue = "";
$cstArchivedStudentsAll->BookedByCellNo->TooltipValue = "";
// BookedByEmail
$cstArchivedStudentsAll->BookedByEmail->HrefValue = "";
$cstArchivedStudentsAll->BookedByEmail->TooltipValue = "";
// WebUsername
$cstArchivedStudentsAll->WebUsername->HrefValue = "";
$cstArchivedStudentsAll->WebUsername->TooltipValue = "";
// WebPassword
$cstArchivedStudentsAll->WebPassword->HrefValue = "";
$cstArchivedStudentsAll->WebPassword->TooltipValue = "";
// MentorName
$cstArchivedStudentsAll->MentorName->HrefValue = "";
$cstArchivedStudentsAll->MentorName->TooltipValue = "";
// MentorDesig
$cstArchivedStudentsAll->MentorDesig->HrefValue = "";
$cstArchivedStudentsAll->MentorDesig->TooltipValue = "";
// MentorTel
$cstArchivedStudentsAll->MentorTel->HrefValue = "";
$cstArchivedStudentsAll->MentorTel->TooltipValue = "";
// MentorCell
$cstArchivedStudentsAll->MentorCell->HrefValue = "";
$cstArchivedStudentsAll->MentorCell->TooltipValue = "";
// MentorEmail
$cstArchivedStudentsAll->MentorEmail->HrefValue = "";
$cstArchivedStudentsAll->MentorEmail->TooltipValue = "";
// HRManagerName
$cstArchivedStudentsAll->HRManagerName->HrefValue = "";
$cstArchivedStudentsAll->HRManagerName->TooltipValue = "";
// HRManagerDesignation
$cstArchivedStudentsAll->HRManagerDesignation->HrefValue = "";
$cstArchivedStudentsAll->HRManagerDesignation->TooltipValue = "";
// HRManagerTelNo
$cstArchivedStudentsAll->HRManagerTelNo->HrefValue = "";
$cstArchivedStudentsAll->HRManagerTelNo->TooltipValue = "";
// HRManagerCellNo
$cstArchivedStudentsAll->HRManagerCellNo->HrefValue = "";
$cstArchivedStudentsAll->HRManagerCellNo->TooltipValue = "";
// HRManagerEmail
$cstArchivedStudentsAll->HRManagerEmail->HrefValue = "";
$cstArchivedStudentsAll->HRManagerEmail->TooltipValue = "";
// LengthEmploy
$cstArchivedStudentsAll->LengthEmploy->HrefValue = "";
$cstArchivedStudentsAll->LengthEmploy->TooltipValue = "";
// BlockAccess
$cstArchivedStudentsAll->BlockAccess->HrefValue = "";
$cstArchivedStudentsAll->BlockAccess->TooltipValue = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudentsAll->ResultLetter->Upload->DbValue)) {
$cstArchivedStudentsAll->ResultLetter->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudentsAll->ResultLetter->UploadPath) . ((!empty($cstArchivedStudentsAll->ResultLetter->ViewValue)) ? $cstArchivedStudentsAll->ResultLetter->ViewValue : $cstArchivedStudentsAll->ResultLetter->CurrentValue);
if ($cstArchivedStudentsAll->Export <> "") $cstArchivedStudentsAll->ResultLetter->HrefValue = ew_ConvertFullUrl($cstArchivedStudentsAll->ResultLetter->HrefValue);
} else {
$cstArchivedStudentsAll->ResultLetter->HrefValue = "";
}
$cstArchivedStudentsAll->ResultLetter->TooltipValue = "";
// Achieved
$cstArchivedStudentsAll->Achieved->HrefValue = "";
$cstArchivedStudentsAll->Achieved->TooltipValue = "";
// IDFile
if (!ew_Empty($cstArchivedStudentsAll->IDFile->Upload->DbValue)) {
$cstArchivedStudentsAll->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudentsAll->IDFile->UploadPath) . ((!empty($cstArchivedStudentsAll->IDFile->ViewValue)) ? $cstArchivedStudentsAll->IDFile->ViewValue : $cstArchivedStudentsAll->IDFile->CurrentValue);
if ($cstArchivedStudentsAll->Export <> "") $cstArchivedStudentsAll->IDFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudentsAll->IDFile->HrefValue);
} else {
$cstArchivedStudentsAll->IDFile->HrefValue = "";
}
$cstArchivedStudentsAll->IDFile->TooltipValue = "";
// ReasonForLeaving
$cstArchivedStudentsAll->ReasonForLeaving->HrefValue = "";
$cstArchivedStudentsAll->ReasonForLeaving->TooltipValue = "";
// CCECourseScheduleID
$cstArchivedStudentsAll->CCECourseScheduleID->HrefValue = "";
$cstArchivedStudentsAll->CCECourseScheduleID->TooltipValue = "";
// EditStudent
$cstArchivedStudentsAll->EditStudent->HrefValue = "";
$cstArchivedStudentsAll->EditStudent->TooltipValue = "";
// Archived
$cstArchivedStudentsAll->Archived->HrefValue = "";
$cstArchivedStudentsAll->Archived->TooltipValue = "";
// Cancelled
$cstArchivedStudentsAll->Cancelled->HrefValue = "";
$cstArchivedStudentsAll->Cancelled->TooltipValue = "";
// CancelledReason
$cstArchivedStudentsAll->CancelledReason->HrefValue = "";
$cstArchivedStudentsAll->CancelledReason->TooltipValue = "";
}
// Call Row Rendered event
if ($cstArchivedStudentsAll->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$cstArchivedStudentsAll->Row_Rendered();
}
// Export data in HTML/CSV/Word/Excel/XML/Email format
function ExportData() {
global $cstArchivedStudentsAll;
$utf8 = FALSE;
$bSelectLimit = FALSE;
// Load recordset
if ($bSelectLimit) {
$this->lTotalRecs = $cstArchivedStudentsAll->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 ($cstArchivedStudentsAll->Export == "xml") {
$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
$XmlDoc->AddRoot();
} else {
$ExportDoc = new cExportDocument($cstArchivedStudentsAll, "v");
$ExportDoc->ExportHeader();
if ($ExportDoc->Horizontal) { // Horizontal format, write header
$ExportDoc->BeginExportRow();
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Title);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->FirstName);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Surname);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->KnownAs);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Organisation);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->OrganisationType);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->StudentNumber);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->CCEFacilitatorID);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Project);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->ProjectDiscipline);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->IDNumber);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->ECSARegistered);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->ECSACategory);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->ECSANumber);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->OtherStatutoryBodyRegistered);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->OtherStatutoryBodyName);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->OtherStatutoryBodyNumber);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Age);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->HighestQual);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->AreaDiscipline);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Telephone);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Cellphone);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->EmailAddress);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->HomeAddress);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->WorkAddress);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->PostalAddress);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Designation);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Department);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->CESAAccountNo);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->VATNo);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->DietaryRequirements);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->CVFile);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->QualCertificate1);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->QualCertificate2);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->QualCertificate3);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->MemorandumFile);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->AgreementFile);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->OrderNo);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->BookedByName);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->BookedByDesignation);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->BookedByTelNo);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->BookedByFaxNo);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->BookedByCellNo);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->BookedByEmail);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->WebUsername);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->WebPassword);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->MentorName);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->MentorDesig);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->MentorTel);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->MentorCell);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->MentorEmail);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->HRManagerName);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->HRManagerDesignation);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->HRManagerTelNo);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->HRManagerCellNo);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->HRManagerEmail);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->LengthEmploy);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->BlockAccess);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->ResultLetter);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Achieved);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->IDFile);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->ReasonForLeaving);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->CCECourseScheduleID);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Archived);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->Cancelled);
$ExportDoc->ExportCaption($cstArchivedStudentsAll->CancelledReason);
$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
$cstArchivedStudentsAll->CssClass = "";
$cstArchivedStudentsAll->CssStyle = "";
$cstArchivedStudentsAll->RowType = EW_ROWTYPE_VIEW; // Render view
$this->RenderRow();
if ($cstArchivedStudentsAll->Export == "xml") {
$XmlDoc->AddRow();
$XmlDoc->AddField('Title', $cstArchivedStudentsAll->Title->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('FirstName', $cstArchivedStudentsAll->FirstName->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Surname', $cstArchivedStudentsAll->Surname->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('KnownAs', $cstArchivedStudentsAll->KnownAs->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Organisation', $cstArchivedStudentsAll->Organisation->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('OrganisationType', $cstArchivedStudentsAll->OrganisationType->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('StudentNumber', $cstArchivedStudentsAll->StudentNumber->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('CCEFacilitatorID', $cstArchivedStudentsAll->CCEFacilitatorID->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Project', $cstArchivedStudentsAll->Project->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('ProjectDiscipline', $cstArchivedStudentsAll->ProjectDiscipline->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('IDNumber', $cstArchivedStudentsAll->IDNumber->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('ECSARegistered', $cstArchivedStudentsAll->ECSARegistered->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('ECSACategory', $cstArchivedStudentsAll->ECSACategory->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('ECSANumber', $cstArchivedStudentsAll->ECSANumber->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('OtherStatutoryBodyRegistered', $cstArchivedStudentsAll->OtherStatutoryBodyRegistered->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('OtherStatutoryBodyName', $cstArchivedStudentsAll->OtherStatutoryBodyName->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('OtherStatutoryBodyNumber', $cstArchivedStudentsAll->OtherStatutoryBodyNumber->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Age', $cstArchivedStudentsAll->Age->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('HighestQual', $cstArchivedStudentsAll->HighestQual->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('AreaDiscipline', $cstArchivedStudentsAll->AreaDiscipline->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Telephone', $cstArchivedStudentsAll->Telephone->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Cellphone', $cstArchivedStudentsAll->Cellphone->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('EmailAddress', $cstArchivedStudentsAll->EmailAddress->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('HomeAddress', $cstArchivedStudentsAll->HomeAddress->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('WorkAddress', $cstArchivedStudentsAll->WorkAddress->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('PostalAddress', $cstArchivedStudentsAll->PostalAddress->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Designation', $cstArchivedStudentsAll->Designation->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Department', $cstArchivedStudentsAll->Department->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('CESAAccountNo', $cstArchivedStudentsAll->CESAAccountNo->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('VATNo', $cstArchivedStudentsAll->VATNo->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('DietaryRequirements', $cstArchivedStudentsAll->DietaryRequirements->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('CVFile', $cstArchivedStudentsAll->CVFile->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate1', $cstArchivedStudentsAll->QualCertificate1->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate2', $cstArchivedStudentsAll->QualCertificate2->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate3', $cstArchivedStudentsAll->QualCertificate3->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('MemorandumFile', $cstArchivedStudentsAll->MemorandumFile->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('AgreementFile', $cstArchivedStudentsAll->AgreementFile->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('OrderNo', $cstArchivedStudentsAll->OrderNo->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('BookedByName', $cstArchivedStudentsAll->BookedByName->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('BookedByDesignation', $cstArchivedStudentsAll->BookedByDesignation->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('BookedByTelNo', $cstArchivedStudentsAll->BookedByTelNo->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('BookedByFaxNo', $cstArchivedStudentsAll->BookedByFaxNo->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('BookedByCellNo', $cstArchivedStudentsAll->BookedByCellNo->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('BookedByEmail', $cstArchivedStudentsAll->BookedByEmail->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('WebUsername', $cstArchivedStudentsAll->WebUsername->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('WebPassword', $cstArchivedStudentsAll->WebPassword->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('MentorName', $cstArchivedStudentsAll->MentorName->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('MentorDesig', $cstArchivedStudentsAll->MentorDesig->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('MentorTel', $cstArchivedStudentsAll->MentorTel->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('MentorCell', $cstArchivedStudentsAll->MentorCell->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('MentorEmail', $cstArchivedStudentsAll->MentorEmail->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('HRManagerName', $cstArchivedStudentsAll->HRManagerName->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('HRManagerDesignation', $cstArchivedStudentsAll->HRManagerDesignation->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('HRManagerTelNo', $cstArchivedStudentsAll->HRManagerTelNo->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('HRManagerCellNo', $cstArchivedStudentsAll->HRManagerCellNo->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('HRManagerEmail', $cstArchivedStudentsAll->HRManagerEmail->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('LengthEmploy', $cstArchivedStudentsAll->LengthEmploy->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('BlockAccess', $cstArchivedStudentsAll->BlockAccess->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('ResultLetter', $cstArchivedStudentsAll->ResultLetter->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Achieved', $cstArchivedStudentsAll->Achieved->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('IDFile', $cstArchivedStudentsAll->IDFile->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('ReasonForLeaving', $cstArchivedStudentsAll->ReasonForLeaving->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('CCECourseScheduleID', $cstArchivedStudentsAll->CCECourseScheduleID->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Archived', $cstArchivedStudentsAll->Archived->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('Cancelled', $cstArchivedStudentsAll->Cancelled->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
$XmlDoc->AddField('CancelledReason', $cstArchivedStudentsAll->CancelledReason->ExportValue($cstArchivedStudentsAll->Export, $cstArchivedStudentsAll->ExportOriginalValue));
} else {
$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
$ExportDoc->ExportField($cstArchivedStudentsAll->Title);
$ExportDoc->ExportField($cstArchivedStudentsAll->FirstName);
$ExportDoc->ExportField($cstArchivedStudentsAll->Surname);
$ExportDoc->ExportField($cstArchivedStudentsAll->KnownAs);
$ExportDoc->ExportField($cstArchivedStudentsAll->Organisation);
$ExportDoc->ExportField($cstArchivedStudentsAll->OrganisationType);
$ExportDoc->ExportField($cstArchivedStudentsAll->StudentNumber);
$ExportDoc->ExportField($cstArchivedStudentsAll->CCEFacilitatorID);
$ExportDoc->ExportField($cstArchivedStudentsAll->Project);
$ExportDoc->ExportField($cstArchivedStudentsAll->ProjectDiscipline);
$ExportDoc->ExportField($cstArchivedStudentsAll->IDNumber);
$ExportDoc->ExportField($cstArchivedStudentsAll->ECSARegistered);
$ExportDoc->ExportField($cstArchivedStudentsAll->ECSACategory);
$ExportDoc->ExportField($cstArchivedStudentsAll->ECSANumber);
$ExportDoc->ExportField($cstArchivedStudentsAll->OtherStatutoryBodyRegistered);
$ExportDoc->ExportField($cstArchivedStudentsAll->OtherStatutoryBodyName);
$ExportDoc->ExportField($cstArchivedStudentsAll->OtherStatutoryBodyNumber);
$ExportDoc->ExportField($cstArchivedStudentsAll->Age);
$ExportDoc->ExportField($cstArchivedStudentsAll->HighestQual);
$ExportDoc->ExportField($cstArchivedStudentsAll->AreaDiscipline);
$ExportDoc->ExportField($cstArchivedStudentsAll->Telephone);
$ExportDoc->ExportField($cstArchivedStudentsAll->Cellphone);
$ExportDoc->ExportField($cstArchivedStudentsAll->EmailAddress);
$ExportDoc->ExportField($cstArchivedStudentsAll->HomeAddress);
$ExportDoc->ExportField($cstArchivedStudentsAll->WorkAddress);
$ExportDoc->ExportField($cstArchivedStudentsAll->PostalAddress);
$ExportDoc->ExportField($cstArchivedStudentsAll->Designation);
$ExportDoc->ExportField($cstArchivedStudentsAll->Department);
$ExportDoc->ExportField($cstArchivedStudentsAll->CESAAccountNo);
$ExportDoc->ExportField($cstArchivedStudentsAll->VATNo);
$ExportDoc->ExportField($cstArchivedStudentsAll->DietaryRequirements);
$ExportDoc->ExportField($cstArchivedStudentsAll->CVFile);
$ExportDoc->ExportField($cstArchivedStudentsAll->QualCertificate1);
$ExportDoc->ExportField($cstArchivedStudentsAll->QualCertificate2);
$ExportDoc->ExportField($cstArchivedStudentsAll->QualCertificate3);
$ExportDoc->ExportField($cstArchivedStudentsAll->MemorandumFile);
$ExportDoc->ExportField($cstArchivedStudentsAll->AgreementFile);
$ExportDoc->ExportField($cstArchivedStudentsAll->OrderNo);
$ExportDoc->ExportField($cstArchivedStudentsAll->BookedByName);
$ExportDoc->ExportField($cstArchivedStudentsAll->BookedByDesignation);
$ExportDoc->ExportField($cstArchivedStudentsAll->BookedByTelNo);
$ExportDoc->ExportField($cstArchivedStudentsAll->BookedByFaxNo);
$ExportDoc->ExportField($cstArchivedStudentsAll->BookedByCellNo);
$ExportDoc->ExportField($cstArchivedStudentsAll->BookedByEmail);
$ExportDoc->ExportField($cstArchivedStudentsAll->WebUsername);
$ExportDoc->ExportField($cstArchivedStudentsAll->WebPassword);
$ExportDoc->ExportField($cstArchivedStudentsAll->MentorName);
$ExportDoc->ExportField($cstArchivedStudentsAll->MentorDesig);
$ExportDoc->ExportField($cstArchivedStudentsAll->MentorTel);
$ExportDoc->ExportField($cstArchivedStudentsAll->MentorCell);
$ExportDoc->ExportField($cstArchivedStudentsAll->MentorEmail);
$ExportDoc->ExportField($cstArchivedStudentsAll->HRManagerName);
$ExportDoc->ExportField($cstArchivedStudentsAll->HRManagerDesignation);
$ExportDoc->ExportField($cstArchivedStudentsAll->HRManagerTelNo);
$ExportDoc->ExportField($cstArchivedStudentsAll->HRManagerCellNo);
$ExportDoc->ExportField($cstArchivedStudentsAll->HRManagerEmail);
$ExportDoc->ExportField($cstArchivedStudentsAll->LengthEmploy);
$ExportDoc->ExportField($cstArchivedStudentsAll->BlockAccess);
$ExportDoc->ExportField($cstArchivedStudentsAll->ResultLetter);
$ExportDoc->ExportField($cstArchivedStudentsAll->Achieved);
$ExportDoc->ExportField($cstArchivedStudentsAll->IDFile);
$ExportDoc->ExportField($cstArchivedStudentsAll->ReasonForLeaving);
$ExportDoc->ExportField($cstArchivedStudentsAll->CCECourseScheduleID);
$ExportDoc->ExportField($cstArchivedStudentsAll->Archived);
$ExportDoc->ExportField($cstArchivedStudentsAll->Cancelled);
$ExportDoc->ExportField($cstArchivedStudentsAll->CancelledReason);
$ExportDoc->EndExportRow();
}
}
$rs->MoveNext();
}
if ($cstArchivedStudentsAll->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($cstArchivedStudentsAll->Export, array("email", "xml")))
echo "\xEF\xBB\xBF";
// Write debug message if enabled
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
// Output data
if ($cstArchivedStudentsAll->Export == "xml") {
header("Content-Type: text/xml");
echo $XmlDoc->XML();
} elseif ($cstArchivedStudentsAll->Export == "email") {
$this->ExportEmail($ExportDoc->Text);
$this->Page_Terminate($cstArchivedStudentsAll->ExportReturnUrl());
} else {
echo $ExportDoc->Text;
}
}
// Export email
function ExportEmail($EmailContent) {
global $Language, $cstArchivedStudentsAll;
$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 ($cstArchivedStudentsAll->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 $cstArchivedStudentsAll;
// Initialize
$sQry = "export=html";
// Add record key QueryString
$sQry .= "&" . substr($cstArchivedStudentsAll->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";
}
}
?>