| Current Path : /var/www/cesa.co.za/cceconvenors/ |
| Current File : /var/www/cesa.co.za/cceconvenors/cstArchivedStudents2014view.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 "cstArchivedStudents2014info.php" ?>
<?php include "CCEFacilitatorUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
// Create page object
$cstArchivedStudents2014_view = new ccstArchivedStudents2014_view();
$Page =& $cstArchivedStudents2014_view;
// Page init
$cstArchivedStudents2014_view->Page_Init();
// Page main
$cstArchivedStudents2014_view->Page_Main();
?>
<?php include "header.php" ?>
<?php if ($cstArchivedStudents2014->Export == "") { ?>
<script type="text/javascript">
<!--
// Create page object
var cstArchivedStudents2014_view = new ew_Page("cstArchivedStudents2014_view");
// page properties
cstArchivedStudents2014_view.PageID = "view"; // page ID
cstArchivedStudents2014_view.FormID = "fcstArchivedStudents2014view"; // form ID
var EW_PAGE_ID = cstArchivedStudents2014_view.PageID; // for backward compatibility
// extend page with Form_CustomValidate function
cstArchivedStudents2014_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) { ?>
cstArchivedStudents2014_view.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudents2014_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 $cstArchivedStudents2014->TableCaption() ?>
<?php if ($cstArchivedStudents2014->Export == "") { ?>
<a href="<?php echo $cstArchivedStudents2014_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 $cstArchivedStudents2014_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 $cstArchivedStudents2014_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_cstArchivedStudents2014" id="emf_cstArchivedStudents2014" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_cstArchivedStudents2014',hdr:ewLanguage.Phrase('ExportToEmail'),key:<?php echo ew_ArrayToJsonAttr($cstArchivedStudents2014_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 ($cstArchivedStudents2014->Export == "") { ?>
<a href="<?php echo $cstArchivedStudents2014_view->ListUrl ?>"><?php echo $Language->Phrase("BackToList") ?></a>
<?php if ($Security->IsLoggedIn()) { ?>
<a href="cstStudentAssigArchivedlist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=cstArchivedStudents2014&CCEStudentID=<?php echo urlencode(strval($cstArchivedStudents2014->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();
$cstArchivedStudents2014_view->ShowMessage();
?>
<p>
<?php if ($cstArchivedStudents2014->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($cstArchivedStudents2014_view->Pager)) $cstArchivedStudents2014_view->Pager = new cPrevNextPager($cstArchivedStudents2014_view->lStartRec, $cstArchivedStudents2014_view->lDisplayRecs, $cstArchivedStudents2014_view->lTotalRecs) ?>
<?php if ($cstArchivedStudents2014_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 ($cstArchivedStudents2014_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2014_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2014_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 ($cstArchivedStudents2014_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2014_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2014_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 $cstArchivedStudents2014_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($cstArchivedStudents2014_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2014_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2014_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 ($cstArchivedStudents2014_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2014_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2014_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 $cstArchivedStudents2014_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($cstArchivedStudents2014_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 } ?>
</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 ($cstArchivedStudents2014->Title->Visible) { // Title ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Title->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Title->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->Title->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->Title->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->FirstName->Visible) { // FirstName ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->FirstName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->FirstName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->FirstName->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->FirstName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Surname->Visible) { // Surname ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Surname->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Surname->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->Surname->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->Surname->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->KnownAs->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->KnownAs->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->KnownAs->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->KnownAs->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Organisation->Visible) { // Organisation ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Organisation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Organisation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->Organisation->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->Organisation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->OrganisationType->Visible) { // OrganisationType ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->OrganisationType->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->OrganisationType->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->OrganisationType->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->OrganisationType->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->StudentNumber->Visible) { // StudentNumber ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->StudentNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->StudentNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->StudentNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->StudentNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->CCEFacilitatorID->Visible) { // CCEFacilitatorID ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->CCEFacilitatorID->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->CCEFacilitatorID->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->CCEFacilitatorID->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->CCEFacilitatorID->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Project->Visible) { // Project ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Project->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Project->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->Project->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->Project->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->ProjectDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->ProjectDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->ProjectDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->ProjectDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->IDNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->IDNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->IDNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->IDNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->ECSANumber->Visible) { // ECSANumber ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->ECSANumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->ECSANumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->ECSANumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->ECSANumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Age->Visible) { // Age ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Age->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Age->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->Age->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->Age->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HighestQual->Visible) { // HighestQual ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HighestQual->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HighestQual->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->HighestQual->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->HighestQual->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->AreaDiscipline->Visible) { // AreaDiscipline ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->AreaDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->AreaDiscipline->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->AreaDiscipline->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->AreaDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Telephone->Visible) { // Telephone ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Telephone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Telephone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->Telephone->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->Telephone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Cellphone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Cellphone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->Cellphone->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->Cellphone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->EmailAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->EmailAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->EmailAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->EmailAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Designation->Visible) { // Designation ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Designation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Designation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->Designation->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->Designation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Department->Visible) { // Department ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Department->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Department->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->Department->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->Department->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->CVFile->Visible) { // CVFile ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->CVFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->CVFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2014->CVFile->HrefValue <> "" || $cstArchivedStudents2014->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->CVFile->HrefValue ?>"><?php echo $cstArchivedStudents2014->CVFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->CVFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->QualCertificate1->Visible) { // QualCertificate1 ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->QualCertificate1->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->QualCertificate1->CellAttributes() ?>>
<?php if ($cstArchivedStudents2014->QualCertificate1->HrefValue <> "" || $cstArchivedStudents2014->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->QualCertificate1->HrefValue ?>"><?php echo $cstArchivedStudents2014->QualCertificate1->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->QualCertificate1->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->QualCertificate2->Visible) { // QualCertificate2 ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->QualCertificate2->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->QualCertificate2->CellAttributes() ?>>
<?php if ($cstArchivedStudents2014->QualCertificate2->HrefValue <> "" || $cstArchivedStudents2014->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->QualCertificate2->HrefValue ?>"><?php echo $cstArchivedStudents2014->QualCertificate2->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->QualCertificate2->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->QualCertificate3->Visible) { // QualCertificate3 ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->QualCertificate3->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->QualCertificate3->CellAttributes() ?>>
<?php if ($cstArchivedStudents2014->QualCertificate3->HrefValue <> "" || $cstArchivedStudents2014->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->QualCertificate3->HrefValue ?>"><?php echo $cstArchivedStudents2014->QualCertificate3->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->QualCertificate3->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MemorandumFile->Visible) { // MemorandumFile ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MemorandumFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MemorandumFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2014->MemorandumFile->HrefValue <> "" || $cstArchivedStudents2014->MemorandumFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->MemorandumFile->HrefValue ?>"><?php echo $cstArchivedStudents2014->MemorandumFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->MemorandumFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->AgreementFile->Visible) { // AgreementFile ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->AgreementFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->AgreementFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2014->AgreementFile->HrefValue <> "" || $cstArchivedStudents2014->AgreementFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->AgreementFile->HrefValue ?>"><?php echo $cstArchivedStudents2014->AgreementFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->AgreementFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->OrderNo->Visible) { // OrderNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->OrderNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->OrderNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->OrderNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->OrderNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->WebUsername->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->WebUsername->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->WebUsername->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->WebUsername->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->WebPassword->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->WebPassword->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->WebPassword->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->WebPassword->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorName->Visible) { // MentorName ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->MentorName->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->MentorName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorDesig->Visible) { // MentorDesig ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorDesig->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorDesig->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->MentorDesig->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->MentorDesig->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorTel->Visible) { // MentorTel ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorTel->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorTel->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->MentorTel->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->MentorTel->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorCell->Visible) { // MentorCell ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorCell->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorCell->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->MentorCell->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->MentorCell->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorEmail->Visible) { // MentorEmail ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->MentorEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->MentorEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerName->Visible) { // HRManagerName ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->HRManagerName->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->HRManagerName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerDesignation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerDesignation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->HRManagerDesignation->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->HRManagerDesignation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerTelNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->HRManagerTelNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->HRManagerTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerCellNo->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->HRManagerCellNo->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->HRManagerCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerEmail->Visible) { // HRManagerEmail ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerEmail->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->HRManagerEmail->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->HRManagerEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->LengthEmploy->Visible) { // LengthEmploy ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->LengthEmploy->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->LengthEmploy->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->LengthEmploy->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->LengthEmploy->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->ResultLetter->Visible) { // ResultLetter ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->ResultLetter->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->ResultLetter->CellAttributes() ?>>
<?php if ($cstArchivedStudents2014->ResultLetter->HrefValue <> "" || $cstArchivedStudents2014->ResultLetter->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->ResultLetter->HrefValue ?>"><?php echo $cstArchivedStudents2014->ResultLetter->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->ResultLetter->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->IDFile->Visible) { // IDFile ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->IDFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->IDFile->CellAttributes() ?>>
<?php if ($cstArchivedStudents2014->IDFile->HrefValue <> "" || $cstArchivedStudents2014->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->IDFile->HrefValue ?>"><?php echo $cstArchivedStudents2014->IDFile->ViewValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->IDFile->ViewValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->ReasonForLeaving->Visible) { // ReasonForLeaving ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->ReasonForLeaving->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->ReasonForLeaving->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2014->ReasonForLeaving->ViewAttributes() ?>><?php echo $cstArchivedStudents2014->ReasonForLeaving->ViewValue ?></div></td>
</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<?php if ($cstArchivedStudents2014->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($cstArchivedStudents2014_view->Pager)) $cstArchivedStudents2014_view->Pager = new cPrevNextPager($cstArchivedStudents2014_view->lStartRec, $cstArchivedStudents2014_view->lDisplayRecs, $cstArchivedStudents2014_view->lTotalRecs) ?>
<?php if ($cstArchivedStudents2014_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 ($cstArchivedStudents2014_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2014_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2014_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 ($cstArchivedStudents2014_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2014_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2014_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 $cstArchivedStudents2014_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($cstArchivedStudents2014_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2014_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2014_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 ($cstArchivedStudents2014_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2014_view->PageUrl() ?>start=<?php echo $cstArchivedStudents2014_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 $cstArchivedStudents2014_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($cstArchivedStudents2014_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 } ?>
</td>
</tr>
</table>
</form>
<?php } ?>
<p>
<?php if ($cstArchivedStudents2014->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
$cstArchivedStudents2014_view->Page_Terminate();
?>
<?php
//
// Page class
//
class ccstArchivedStudents2014_view {
// Page ID
var $PageID = 'view';
// Table name
var $TableName = 'cstArchivedStudents2014';
// Page object name
var $PageObjName = 'cstArchivedStudents2014_view';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $cstArchivedStudents2014;
if ($cstArchivedStudents2014->UseTokenInUrl) $PageUrl .= "t=" . $cstArchivedStudents2014->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, $cstArchivedStudents2014;
if ($cstArchivedStudents2014->UseTokenInUrl) {
if ($objForm)
return ($cstArchivedStudents2014->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($cstArchivedStudents2014->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function __construct() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (cstArchivedStudents2014)
$GLOBALS["cstArchivedStudents2014"] = new ccstArchivedStudents2014();
// Table object (CCEFacilitatorUsers)
$GLOBALS['CCEFacilitatorUsers'] = new cCCEFacilitatorUsers();
// 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", 'cstArchivedStudents2014', 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 $cstArchivedStudents2014;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) $Security->AutoLogin();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
// Get export parameters
if (@$_GET["export"] <> "") {
$cstArchivedStudents2014->Export = $_GET["export"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] <> "")
$cstArchivedStudents2014->Export = $_POST["exporttype"];
} else {
$cstArchivedStudents2014->setExportReturnUrl(ew_CurrentUrl());
}
$gsExport = $cstArchivedStudents2014->Export; // Get export parameter, used in header
$gsExportFile = $cstArchivedStudents2014->TableVar; // Get export file, used in header
if (@$_GET["CCEStudentID"] <> "") {
if ($gsExportFile <> "") $gsExportFile .= "_";
$gsExportFile .= ew_StripSlashes($_GET["CCEStudentID"]);
}
if ($cstArchivedStudents2014->Export == "excel") {
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=' . $gsExportFile .'.xls');
}
if ($cstArchivedStudents2014->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, $cstArchivedStudents2014;
// Load current record
$bLoadCurrentRecord = FALSE;
$sReturnUrl = "";
$bMatchRecord = FALSE;
if ($this->IsPageRequest()) { // Validate request
if (@$_GET["CCEStudentID"] <> "") {
$cstArchivedStudents2014->CCEStudentID->setQueryStringValue($_GET["CCEStudentID"]);
$this->arRecKey["CCEStudentID"] = $cstArchivedStudents2014->CCEStudentID->QueryStringValue;
} else {
$bLoadCurrentRecord = TRUE;
}
// Get action
$cstArchivedStudents2014->CurrentAction = "I"; // Display form
switch ($cstArchivedStudents2014->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("cstArchivedStudents2014list.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($cstArchivedStudents2014->CCEStudentID->CurrentValue) == strval($rs->fields('CCEStudentID'))) {
$cstArchivedStudents2014->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 = "cstArchivedStudents2014list.php"; // No matching record, return to list
} else {
$this->LoadRowValues($rs); // Load row values
}
}
// Export data only
if (in_array($cstArchivedStudents2014->Export, array("html","word","excel","xml","csv","email"))) {
$this->ExportData();
if ($cstArchivedStudents2014->Export <> "email")
$this->Page_Terminate(); // Terminate response
exit();
}
} else {
$sReturnUrl = "cstArchivedStudents2014list.php"; // Not page request, return to list
}
if ($sReturnUrl <> "")
$this->Page_Terminate($sReturnUrl);
// Render row
$cstArchivedStudents2014->RowType = EW_ROWTYPE_VIEW;
$this->RenderRow();
}
// Set up starting record parameters
function SetUpStartRec() {
global $cstArchivedStudents2014;
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];
$cstArchivedStudents2014->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;
}
$cstArchivedStudents2014->setStartRecordNumber($this->lStartRec);
}
}
}
$this->lStartRec = $cstArchivedStudents2014->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
$cstArchivedStudents2014->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
$cstArchivedStudents2014->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
$cstArchivedStudents2014->setStartRecordNumber($this->lStartRec);
}
}
// Load recordset
function LoadRecordset($offset = -1, $rowcnt = -1) {
global $conn, $cstArchivedStudents2014;
// Call Recordset Selecting event
$cstArchivedStudents2014->Recordset_Selecting($cstArchivedStudents2014->CurrentFilter);
// Load List page SQL
$sSql = $cstArchivedStudents2014->SelectSQL();
if ($offset > -1 && $rowcnt > -1)
$sSql .= " LIMIT $offset, $rowcnt";
// Load recordset
$rs = ew_LoadRecordset($sSql);
// Call Recordset Selected event
$cstArchivedStudents2014->Recordset_Selected($rs);
return $rs;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $cstArchivedStudents2014;
$sFilter = $cstArchivedStudents2014->KeyFilter();
// Call Row Selecting event
$cstArchivedStudents2014->Row_Selecting($sFilter);
// Load SQL based on filter
$cstArchivedStudents2014->CurrentFilter = $sFilter;
$sSql = $cstArchivedStudents2014->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$cstArchivedStudents2014->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $cstArchivedStudents2014;
$cstArchivedStudents2014->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
$cstArchivedStudents2014->Title->setDbValue($rs->fields('Title'));
$cstArchivedStudents2014->FirstName->setDbValue($rs->fields('FirstName'));
$cstArchivedStudents2014->Surname->setDbValue($rs->fields('Surname'));
$cstArchivedStudents2014->KnownAs->setDbValue($rs->fields('KnownAs'));
$cstArchivedStudents2014->Organisation->setDbValue($rs->fields('Organisation'));
$cstArchivedStudents2014->OrganisationType->setDbValue($rs->fields('OrganisationType'));
$cstArchivedStudents2014->StudentNumber->setDbValue($rs->fields('StudentNumber'));
$cstArchivedStudents2014->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
$cstArchivedStudents2014->Project->setDbValue($rs->fields('Project'));
$cstArchivedStudents2014->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
$cstArchivedStudents2014->IDNumber->setDbValue($rs->fields('IDNumber'));
$cstArchivedStudents2014->ECSANumber->setDbValue($rs->fields('ECSANumber'));
$cstArchivedStudents2014->Age->setDbValue($rs->fields('Age'));
$cstArchivedStudents2014->HighestQual->setDbValue($rs->fields('HighestQual'));
$cstArchivedStudents2014->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
$cstArchivedStudents2014->Telephone->setDbValue($rs->fields('Telephone'));
$cstArchivedStudents2014->Cellphone->setDbValue($rs->fields('Cellphone'));
$cstArchivedStudents2014->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$cstArchivedStudents2014->HomeAddress->setDbValue($rs->fields('HomeAddress'));
$cstArchivedStudents2014->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$cstArchivedStudents2014->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$cstArchivedStudents2014->Designation->setDbValue($rs->fields('Designation'));
$cstArchivedStudents2014->Department->setDbValue($rs->fields('Department'));
$cstArchivedStudents2014->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
$cstArchivedStudents2014->VATNo->setDbValue($rs->fields('VATNo'));
$cstArchivedStudents2014->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
$cstArchivedStudents2014->CVFile->Upload->DbValue = $rs->fields('CVFile');
$cstArchivedStudents2014->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
$cstArchivedStudents2014->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
$cstArchivedStudents2014->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
$cstArchivedStudents2014->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
$cstArchivedStudents2014->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
$cstArchivedStudents2014->OrderNo->setDbValue($rs->fields('OrderNo'));
$cstArchivedStudents2014->BookedByName->setDbValue($rs->fields('BookedByName'));
$cstArchivedStudents2014->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
$cstArchivedStudents2014->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
$cstArchivedStudents2014->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
$cstArchivedStudents2014->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
$cstArchivedStudents2014->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
$cstArchivedStudents2014->WebUsername->setDbValue($rs->fields('WebUsername'));
$cstArchivedStudents2014->WebPassword->setDbValue($rs->fields('WebPassword'));
$cstArchivedStudents2014->MentorName->setDbValue($rs->fields('MentorName'));
$cstArchivedStudents2014->MentorDesig->setDbValue($rs->fields('MentorDesig'));
$cstArchivedStudents2014->MentorTel->setDbValue($rs->fields('MentorTel'));
$cstArchivedStudents2014->MentorCell->setDbValue($rs->fields('MentorCell'));
$cstArchivedStudents2014->MentorEmail->setDbValue($rs->fields('MentorEmail'));
$cstArchivedStudents2014->HRManagerName->setDbValue($rs->fields('HRManagerName'));
$cstArchivedStudents2014->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
$cstArchivedStudents2014->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
$cstArchivedStudents2014->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
$cstArchivedStudents2014->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
$cstArchivedStudents2014->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
$cstArchivedStudents2014->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$cstArchivedStudents2014->Archived->setDbValue($rs->fields('Archived'));
$cstArchivedStudents2014->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter');
$cstArchivedStudents2014->Achieved->setDbValue($rs->fields('Achieved'));
$cstArchivedStudents2014->IDFile->Upload->DbValue = $rs->fields('IDFile');
$cstArchivedStudents2014->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $cstArchivedStudents2014;
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print&" . "CCEStudentID=" . urlencode($cstArchivedStudents2014->CCEStudentID->CurrentValue);
$this->ExportHtmlUrl = $this->PageUrl() . "export=html&" . "CCEStudentID=" . urlencode($cstArchivedStudents2014->CCEStudentID->CurrentValue);
$this->ExportExcelUrl = $this->PageUrl() . "export=excel&" . "CCEStudentID=" . urlencode($cstArchivedStudents2014->CCEStudentID->CurrentValue);
$this->ExportWordUrl = $this->PageUrl() . "export=word&" . "CCEStudentID=" . urlencode($cstArchivedStudents2014->CCEStudentID->CurrentValue);
$this->ExportXmlUrl = $this->PageUrl() . "export=xml&" . "CCEStudentID=" . urlencode($cstArchivedStudents2014->CCEStudentID->CurrentValue);
$this->ExportCsvUrl = $this->PageUrl() . "export=csv&" . "CCEStudentID=" . urlencode($cstArchivedStudents2014->CCEStudentID->CurrentValue);
$this->AddUrl = $cstArchivedStudents2014->AddUrl();
$this->EditUrl = $cstArchivedStudents2014->EditUrl();
$this->CopyUrl = $cstArchivedStudents2014->CopyUrl();
$this->DeleteUrl = $cstArchivedStudents2014->DeleteUrl();
$this->ListUrl = $cstArchivedStudents2014->ListUrl();
// Call Row_Rendering event
$cstArchivedStudents2014->Row_Rendering();
// Common render codes for all row types
// Title
$cstArchivedStudents2014->Title->CellCssStyle = ""; $cstArchivedStudents2014->Title->CellCssClass = "";
$cstArchivedStudents2014->Title->CellAttrs = array(); $cstArchivedStudents2014->Title->ViewAttrs = array(); $cstArchivedStudents2014->Title->EditAttrs = array();
// FirstName
$cstArchivedStudents2014->FirstName->CellCssStyle = ""; $cstArchivedStudents2014->FirstName->CellCssClass = "";
$cstArchivedStudents2014->FirstName->CellAttrs = array(); $cstArchivedStudents2014->FirstName->ViewAttrs = array(); $cstArchivedStudents2014->FirstName->EditAttrs = array();
// Surname
$cstArchivedStudents2014->Surname->CellCssStyle = ""; $cstArchivedStudents2014->Surname->CellCssClass = "";
$cstArchivedStudents2014->Surname->CellAttrs = array(); $cstArchivedStudents2014->Surname->ViewAttrs = array(); $cstArchivedStudents2014->Surname->EditAttrs = array();
// KnownAs
$cstArchivedStudents2014->KnownAs->CellCssStyle = ""; $cstArchivedStudents2014->KnownAs->CellCssClass = "";
$cstArchivedStudents2014->KnownAs->CellAttrs = array(); $cstArchivedStudents2014->KnownAs->ViewAttrs = array(); $cstArchivedStudents2014->KnownAs->EditAttrs = array();
// Organisation
$cstArchivedStudents2014->Organisation->CellCssStyle = ""; $cstArchivedStudents2014->Organisation->CellCssClass = "";
$cstArchivedStudents2014->Organisation->CellAttrs = array(); $cstArchivedStudents2014->Organisation->ViewAttrs = array(); $cstArchivedStudents2014->Organisation->EditAttrs = array();
// OrganisationType
$cstArchivedStudents2014->OrganisationType->CellCssStyle = ""; $cstArchivedStudents2014->OrganisationType->CellCssClass = "";
$cstArchivedStudents2014->OrganisationType->CellAttrs = array(); $cstArchivedStudents2014->OrganisationType->ViewAttrs = array(); $cstArchivedStudents2014->OrganisationType->EditAttrs = array();
// StudentNumber
$cstArchivedStudents2014->StudentNumber->CellCssStyle = ""; $cstArchivedStudents2014->StudentNumber->CellCssClass = "";
$cstArchivedStudents2014->StudentNumber->CellAttrs = array(); $cstArchivedStudents2014->StudentNumber->ViewAttrs = array(); $cstArchivedStudents2014->StudentNumber->EditAttrs = array();
// CCEFacilitatorID
$cstArchivedStudents2014->CCEFacilitatorID->CellCssStyle = ""; $cstArchivedStudents2014->CCEFacilitatorID->CellCssClass = "";
$cstArchivedStudents2014->CCEFacilitatorID->CellAttrs = array(); $cstArchivedStudents2014->CCEFacilitatorID->ViewAttrs = array(); $cstArchivedStudents2014->CCEFacilitatorID->EditAttrs = array();
// Project
$cstArchivedStudents2014->Project->CellCssStyle = ""; $cstArchivedStudents2014->Project->CellCssClass = "";
$cstArchivedStudents2014->Project->CellAttrs = array(); $cstArchivedStudents2014->Project->ViewAttrs = array(); $cstArchivedStudents2014->Project->EditAttrs = array();
// ProjectDiscipline
$cstArchivedStudents2014->ProjectDiscipline->CellCssStyle = ""; $cstArchivedStudents2014->ProjectDiscipline->CellCssClass = "";
$cstArchivedStudents2014->ProjectDiscipline->CellAttrs = array(); $cstArchivedStudents2014->ProjectDiscipline->ViewAttrs = array(); $cstArchivedStudents2014->ProjectDiscipline->EditAttrs = array();
// IDNumber
$cstArchivedStudents2014->IDNumber->CellCssStyle = ""; $cstArchivedStudents2014->IDNumber->CellCssClass = "";
$cstArchivedStudents2014->IDNumber->CellAttrs = array(); $cstArchivedStudents2014->IDNumber->ViewAttrs = array(); $cstArchivedStudents2014->IDNumber->EditAttrs = array();
// ECSANumber
$cstArchivedStudents2014->ECSANumber->CellCssStyle = ""; $cstArchivedStudents2014->ECSANumber->CellCssClass = "";
$cstArchivedStudents2014->ECSANumber->CellAttrs = array(); $cstArchivedStudents2014->ECSANumber->ViewAttrs = array(); $cstArchivedStudents2014->ECSANumber->EditAttrs = array();
// Age
$cstArchivedStudents2014->Age->CellCssStyle = ""; $cstArchivedStudents2014->Age->CellCssClass = "";
$cstArchivedStudents2014->Age->CellAttrs = array(); $cstArchivedStudents2014->Age->ViewAttrs = array(); $cstArchivedStudents2014->Age->EditAttrs = array();
// HighestQual
$cstArchivedStudents2014->HighestQual->CellCssStyle = ""; $cstArchivedStudents2014->HighestQual->CellCssClass = "";
$cstArchivedStudents2014->HighestQual->CellAttrs = array(); $cstArchivedStudents2014->HighestQual->ViewAttrs = array(); $cstArchivedStudents2014->HighestQual->EditAttrs = array();
// AreaDiscipline
$cstArchivedStudents2014->AreaDiscipline->CellCssStyle = ""; $cstArchivedStudents2014->AreaDiscipline->CellCssClass = "";
$cstArchivedStudents2014->AreaDiscipline->CellAttrs = array(); $cstArchivedStudents2014->AreaDiscipline->ViewAttrs = array(); $cstArchivedStudents2014->AreaDiscipline->EditAttrs = array();
// Telephone
$cstArchivedStudents2014->Telephone->CellCssStyle = ""; $cstArchivedStudents2014->Telephone->CellCssClass = "";
$cstArchivedStudents2014->Telephone->CellAttrs = array(); $cstArchivedStudents2014->Telephone->ViewAttrs = array(); $cstArchivedStudents2014->Telephone->EditAttrs = array();
// Cellphone
$cstArchivedStudents2014->Cellphone->CellCssStyle = ""; $cstArchivedStudents2014->Cellphone->CellCssClass = "";
$cstArchivedStudents2014->Cellphone->CellAttrs = array(); $cstArchivedStudents2014->Cellphone->ViewAttrs = array(); $cstArchivedStudents2014->Cellphone->EditAttrs = array();
// EmailAddress
$cstArchivedStudents2014->EmailAddress->CellCssStyle = ""; $cstArchivedStudents2014->EmailAddress->CellCssClass = "";
$cstArchivedStudents2014->EmailAddress->CellAttrs = array(); $cstArchivedStudents2014->EmailAddress->ViewAttrs = array(); $cstArchivedStudents2014->EmailAddress->EditAttrs = array();
// Designation
$cstArchivedStudents2014->Designation->CellCssStyle = ""; $cstArchivedStudents2014->Designation->CellCssClass = "";
$cstArchivedStudents2014->Designation->CellAttrs = array(); $cstArchivedStudents2014->Designation->ViewAttrs = array(); $cstArchivedStudents2014->Designation->EditAttrs = array();
// Department
$cstArchivedStudents2014->Department->CellCssStyle = ""; $cstArchivedStudents2014->Department->CellCssClass = "";
$cstArchivedStudents2014->Department->CellAttrs = array(); $cstArchivedStudents2014->Department->ViewAttrs = array(); $cstArchivedStudents2014->Department->EditAttrs = array();
// CVFile
$cstArchivedStudents2014->CVFile->CellCssStyle = ""; $cstArchivedStudents2014->CVFile->CellCssClass = "";
$cstArchivedStudents2014->CVFile->CellAttrs = array(); $cstArchivedStudents2014->CVFile->ViewAttrs = array(); $cstArchivedStudents2014->CVFile->EditAttrs = array();
// QualCertificate1
$cstArchivedStudents2014->QualCertificate1->CellCssStyle = ""; $cstArchivedStudents2014->QualCertificate1->CellCssClass = "";
$cstArchivedStudents2014->QualCertificate1->CellAttrs = array(); $cstArchivedStudents2014->QualCertificate1->ViewAttrs = array(); $cstArchivedStudents2014->QualCertificate1->EditAttrs = array();
// QualCertificate2
$cstArchivedStudents2014->QualCertificate2->CellCssStyle = ""; $cstArchivedStudents2014->QualCertificate2->CellCssClass = "";
$cstArchivedStudents2014->QualCertificate2->CellAttrs = array(); $cstArchivedStudents2014->QualCertificate2->ViewAttrs = array(); $cstArchivedStudents2014->QualCertificate2->EditAttrs = array();
// QualCertificate3
$cstArchivedStudents2014->QualCertificate3->CellCssStyle = ""; $cstArchivedStudents2014->QualCertificate3->CellCssClass = "";
$cstArchivedStudents2014->QualCertificate3->CellAttrs = array(); $cstArchivedStudents2014->QualCertificate3->ViewAttrs = array(); $cstArchivedStudents2014->QualCertificate3->EditAttrs = array();
// MemorandumFile
$cstArchivedStudents2014->MemorandumFile->CellCssStyle = ""; $cstArchivedStudents2014->MemorandumFile->CellCssClass = "";
$cstArchivedStudents2014->MemorandumFile->CellAttrs = array(); $cstArchivedStudents2014->MemorandumFile->ViewAttrs = array(); $cstArchivedStudents2014->MemorandumFile->EditAttrs = array();
// AgreementFile
$cstArchivedStudents2014->AgreementFile->CellCssStyle = ""; $cstArchivedStudents2014->AgreementFile->CellCssClass = "";
$cstArchivedStudents2014->AgreementFile->CellAttrs = array(); $cstArchivedStudents2014->AgreementFile->ViewAttrs = array(); $cstArchivedStudents2014->AgreementFile->EditAttrs = array();
// OrderNo
$cstArchivedStudents2014->OrderNo->CellCssStyle = ""; $cstArchivedStudents2014->OrderNo->CellCssClass = "";
$cstArchivedStudents2014->OrderNo->CellAttrs = array(); $cstArchivedStudents2014->OrderNo->ViewAttrs = array(); $cstArchivedStudents2014->OrderNo->EditAttrs = array();
// WebUsername
$cstArchivedStudents2014->WebUsername->CellCssStyle = ""; $cstArchivedStudents2014->WebUsername->CellCssClass = "";
$cstArchivedStudents2014->WebUsername->CellAttrs = array(); $cstArchivedStudents2014->WebUsername->ViewAttrs = array(); $cstArchivedStudents2014->WebUsername->EditAttrs = array();
// WebPassword
$cstArchivedStudents2014->WebPassword->CellCssStyle = ""; $cstArchivedStudents2014->WebPassword->CellCssClass = "";
$cstArchivedStudents2014->WebPassword->CellAttrs = array(); $cstArchivedStudents2014->WebPassword->ViewAttrs = array(); $cstArchivedStudents2014->WebPassword->EditAttrs = array();
// MentorName
$cstArchivedStudents2014->MentorName->CellCssStyle = ""; $cstArchivedStudents2014->MentorName->CellCssClass = "";
$cstArchivedStudents2014->MentorName->CellAttrs = array(); $cstArchivedStudents2014->MentorName->ViewAttrs = array(); $cstArchivedStudents2014->MentorName->EditAttrs = array();
// MentorDesig
$cstArchivedStudents2014->MentorDesig->CellCssStyle = ""; $cstArchivedStudents2014->MentorDesig->CellCssClass = "";
$cstArchivedStudents2014->MentorDesig->CellAttrs = array(); $cstArchivedStudents2014->MentorDesig->ViewAttrs = array(); $cstArchivedStudents2014->MentorDesig->EditAttrs = array();
// MentorTel
$cstArchivedStudents2014->MentorTel->CellCssStyle = ""; $cstArchivedStudents2014->MentorTel->CellCssClass = "";
$cstArchivedStudents2014->MentorTel->CellAttrs = array(); $cstArchivedStudents2014->MentorTel->ViewAttrs = array(); $cstArchivedStudents2014->MentorTel->EditAttrs = array();
// MentorCell
$cstArchivedStudents2014->MentorCell->CellCssStyle = ""; $cstArchivedStudents2014->MentorCell->CellCssClass = "";
$cstArchivedStudents2014->MentorCell->CellAttrs = array(); $cstArchivedStudents2014->MentorCell->ViewAttrs = array(); $cstArchivedStudents2014->MentorCell->EditAttrs = array();
// MentorEmail
$cstArchivedStudents2014->MentorEmail->CellCssStyle = ""; $cstArchivedStudents2014->MentorEmail->CellCssClass = "";
$cstArchivedStudents2014->MentorEmail->CellAttrs = array(); $cstArchivedStudents2014->MentorEmail->ViewAttrs = array(); $cstArchivedStudents2014->MentorEmail->EditAttrs = array();
// HRManagerName
$cstArchivedStudents2014->HRManagerName->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerName->CellCssClass = "";
$cstArchivedStudents2014->HRManagerName->CellAttrs = array(); $cstArchivedStudents2014->HRManagerName->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerName->EditAttrs = array();
// HRManagerDesignation
$cstArchivedStudents2014->HRManagerDesignation->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerDesignation->CellCssClass = "";
$cstArchivedStudents2014->HRManagerDesignation->CellAttrs = array(); $cstArchivedStudents2014->HRManagerDesignation->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerDesignation->EditAttrs = array();
// HRManagerTelNo
$cstArchivedStudents2014->HRManagerTelNo->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerTelNo->CellCssClass = "";
$cstArchivedStudents2014->HRManagerTelNo->CellAttrs = array(); $cstArchivedStudents2014->HRManagerTelNo->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerTelNo->EditAttrs = array();
// HRManagerCellNo
$cstArchivedStudents2014->HRManagerCellNo->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerCellNo->CellCssClass = "";
$cstArchivedStudents2014->HRManagerCellNo->CellAttrs = array(); $cstArchivedStudents2014->HRManagerCellNo->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerCellNo->EditAttrs = array();
// HRManagerEmail
$cstArchivedStudents2014->HRManagerEmail->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerEmail->CellCssClass = "";
$cstArchivedStudents2014->HRManagerEmail->CellAttrs = array(); $cstArchivedStudents2014->HRManagerEmail->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerEmail->EditAttrs = array();
// LengthEmploy
$cstArchivedStudents2014->LengthEmploy->CellCssStyle = ""; $cstArchivedStudents2014->LengthEmploy->CellCssClass = "";
$cstArchivedStudents2014->LengthEmploy->CellAttrs = array(); $cstArchivedStudents2014->LengthEmploy->ViewAttrs = array(); $cstArchivedStudents2014->LengthEmploy->EditAttrs = array();
// ResultLetter
$cstArchivedStudents2014->ResultLetter->CellCssStyle = ""; $cstArchivedStudents2014->ResultLetter->CellCssClass = "";
$cstArchivedStudents2014->ResultLetter->CellAttrs = array(); $cstArchivedStudents2014->ResultLetter->ViewAttrs = array(); $cstArchivedStudents2014->ResultLetter->EditAttrs = array();
// IDFile
$cstArchivedStudents2014->IDFile->CellCssStyle = ""; $cstArchivedStudents2014->IDFile->CellCssClass = "";
$cstArchivedStudents2014->IDFile->CellAttrs = array(); $cstArchivedStudents2014->IDFile->ViewAttrs = array(); $cstArchivedStudents2014->IDFile->EditAttrs = array();
// ReasonForLeaving
$cstArchivedStudents2014->ReasonForLeaving->CellCssStyle = ""; $cstArchivedStudents2014->ReasonForLeaving->CellCssClass = "";
$cstArchivedStudents2014->ReasonForLeaving->CellAttrs = array(); $cstArchivedStudents2014->ReasonForLeaving->ViewAttrs = array(); $cstArchivedStudents2014->ReasonForLeaving->EditAttrs = array();
if ($cstArchivedStudents2014->RowType == EW_ROWTYPE_VIEW) { // View row
// Title
$cstArchivedStudents2014->Title->ViewValue = $cstArchivedStudents2014->Title->CurrentValue;
$cstArchivedStudents2014->Title->CssStyle = "";
$cstArchivedStudents2014->Title->CssClass = "";
$cstArchivedStudents2014->Title->ViewCustomAttributes = "";
// FirstName
$cstArchivedStudents2014->FirstName->ViewValue = $cstArchivedStudents2014->FirstName->CurrentValue;
$cstArchivedStudents2014->FirstName->CssStyle = "";
$cstArchivedStudents2014->FirstName->CssClass = "";
$cstArchivedStudents2014->FirstName->ViewCustomAttributes = "";
// Surname
$cstArchivedStudents2014->Surname->ViewValue = $cstArchivedStudents2014->Surname->CurrentValue;
$cstArchivedStudents2014->Surname->CssStyle = "";
$cstArchivedStudents2014->Surname->CssClass = "";
$cstArchivedStudents2014->Surname->ViewCustomAttributes = "";
// KnownAs
$cstArchivedStudents2014->KnownAs->ViewValue = $cstArchivedStudents2014->KnownAs->CurrentValue;
$cstArchivedStudents2014->KnownAs->CssStyle = "";
$cstArchivedStudents2014->KnownAs->CssClass = "";
$cstArchivedStudents2014->KnownAs->ViewCustomAttributes = "";
// Organisation
$cstArchivedStudents2014->Organisation->ViewValue = $cstArchivedStudents2014->Organisation->CurrentValue;
$cstArchivedStudents2014->Organisation->CssStyle = "";
$cstArchivedStudents2014->Organisation->CssClass = "";
$cstArchivedStudents2014->Organisation->ViewCustomAttributes = "";
// OrganisationType
$cstArchivedStudents2014->OrganisationType->ViewValue = $cstArchivedStudents2014->OrganisationType->CurrentValue;
$cstArchivedStudents2014->OrganisationType->CssStyle = "";
$cstArchivedStudents2014->OrganisationType->CssClass = "";
$cstArchivedStudents2014->OrganisationType->ViewCustomAttributes = "";
// StudentNumber
$cstArchivedStudents2014->StudentNumber->ViewValue = $cstArchivedStudents2014->StudentNumber->CurrentValue;
$cstArchivedStudents2014->StudentNumber->CssStyle = "";
$cstArchivedStudents2014->StudentNumber->CssClass = "";
$cstArchivedStudents2014->StudentNumber->ViewCustomAttributes = "";
// CCEFacilitatorID
$cstArchivedStudents2014->CCEFacilitatorID->ViewValue = $cstArchivedStudents2014->CCEFacilitatorID->CurrentValue;
$cstArchivedStudents2014->CCEFacilitatorID->CssStyle = "";
$cstArchivedStudents2014->CCEFacilitatorID->CssClass = "";
$cstArchivedStudents2014->CCEFacilitatorID->ViewCustomAttributes = "";
// Project
$cstArchivedStudents2014->Project->ViewValue = $cstArchivedStudents2014->Project->CurrentValue;
$cstArchivedStudents2014->Project->CssStyle = "";
$cstArchivedStudents2014->Project->CssClass = "";
$cstArchivedStudents2014->Project->ViewCustomAttributes = "";
// ProjectDiscipline
$cstArchivedStudents2014->ProjectDiscipline->ViewValue = $cstArchivedStudents2014->ProjectDiscipline->CurrentValue;
$cstArchivedStudents2014->ProjectDiscipline->CssStyle = "";
$cstArchivedStudents2014->ProjectDiscipline->CssClass = "";
$cstArchivedStudents2014->ProjectDiscipline->ViewCustomAttributes = "";
// IDNumber
$cstArchivedStudents2014->IDNumber->ViewValue = $cstArchivedStudents2014->IDNumber->CurrentValue;
$cstArchivedStudents2014->IDNumber->CssStyle = "";
$cstArchivedStudents2014->IDNumber->CssClass = "";
$cstArchivedStudents2014->IDNumber->ViewCustomAttributes = "";
// ECSANumber
$cstArchivedStudents2014->ECSANumber->ViewValue = $cstArchivedStudents2014->ECSANumber->CurrentValue;
$cstArchivedStudents2014->ECSANumber->CssStyle = "";
$cstArchivedStudents2014->ECSANumber->CssClass = "";
$cstArchivedStudents2014->ECSANumber->ViewCustomAttributes = "";
// Age
$cstArchivedStudents2014->Age->ViewValue = $cstArchivedStudents2014->Age->CurrentValue;
$cstArchivedStudents2014->Age->CssStyle = "";
$cstArchivedStudents2014->Age->CssClass = "";
$cstArchivedStudents2014->Age->ViewCustomAttributes = "";
// HighestQual
$cstArchivedStudents2014->HighestQual->ViewValue = $cstArchivedStudents2014->HighestQual->CurrentValue;
$cstArchivedStudents2014->HighestQual->CssStyle = "";
$cstArchivedStudents2014->HighestQual->CssClass = "";
$cstArchivedStudents2014->HighestQual->ViewCustomAttributes = "";
// AreaDiscipline
$cstArchivedStudents2014->AreaDiscipline->ViewValue = $cstArchivedStudents2014->AreaDiscipline->CurrentValue;
$cstArchivedStudents2014->AreaDiscipline->CssStyle = "";
$cstArchivedStudents2014->AreaDiscipline->CssClass = "";
$cstArchivedStudents2014->AreaDiscipline->ViewCustomAttributes = "";
// Telephone
$cstArchivedStudents2014->Telephone->ViewValue = $cstArchivedStudents2014->Telephone->CurrentValue;
$cstArchivedStudents2014->Telephone->CssStyle = "";
$cstArchivedStudents2014->Telephone->CssClass = "";
$cstArchivedStudents2014->Telephone->ViewCustomAttributes = "";
// Cellphone
$cstArchivedStudents2014->Cellphone->ViewValue = $cstArchivedStudents2014->Cellphone->CurrentValue;
$cstArchivedStudents2014->Cellphone->CssStyle = "";
$cstArchivedStudents2014->Cellphone->CssClass = "";
$cstArchivedStudents2014->Cellphone->ViewCustomAttributes = "";
// EmailAddress
$cstArchivedStudents2014->EmailAddress->ViewValue = $cstArchivedStudents2014->EmailAddress->CurrentValue;
$cstArchivedStudents2014->EmailAddress->CssStyle = "";
$cstArchivedStudents2014->EmailAddress->CssClass = "";
$cstArchivedStudents2014->EmailAddress->ViewCustomAttributes = "";
// HomeAddress
$cstArchivedStudents2014->HomeAddress->ViewValue = $cstArchivedStudents2014->HomeAddress->CurrentValue;
$cstArchivedStudents2014->HomeAddress->CssStyle = "";
$cstArchivedStudents2014->HomeAddress->CssClass = "";
$cstArchivedStudents2014->HomeAddress->ViewCustomAttributes = "";
// WorkAddress
$cstArchivedStudents2014->WorkAddress->ViewValue = $cstArchivedStudents2014->WorkAddress->CurrentValue;
$cstArchivedStudents2014->WorkAddress->CssStyle = "";
$cstArchivedStudents2014->WorkAddress->CssClass = "";
$cstArchivedStudents2014->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$cstArchivedStudents2014->PostalAddress->ViewValue = $cstArchivedStudents2014->PostalAddress->CurrentValue;
$cstArchivedStudents2014->PostalAddress->CssStyle = "";
$cstArchivedStudents2014->PostalAddress->CssClass = "";
$cstArchivedStudents2014->PostalAddress->ViewCustomAttributes = "";
// Designation
$cstArchivedStudents2014->Designation->ViewValue = $cstArchivedStudents2014->Designation->CurrentValue;
$cstArchivedStudents2014->Designation->CssStyle = "";
$cstArchivedStudents2014->Designation->CssClass = "";
$cstArchivedStudents2014->Designation->ViewCustomAttributes = "";
// Department
$cstArchivedStudents2014->Department->ViewValue = $cstArchivedStudents2014->Department->CurrentValue;
$cstArchivedStudents2014->Department->CssStyle = "";
$cstArchivedStudents2014->Department->CssClass = "";
$cstArchivedStudents2014->Department->ViewCustomAttributes = "";
// CESAAccountNo
$cstArchivedStudents2014->CESAAccountNo->ViewValue = $cstArchivedStudents2014->CESAAccountNo->CurrentValue;
$cstArchivedStudents2014->CESAAccountNo->CssStyle = "";
$cstArchivedStudents2014->CESAAccountNo->CssClass = "";
$cstArchivedStudents2014->CESAAccountNo->ViewCustomAttributes = "";
// VATNo
$cstArchivedStudents2014->VATNo->ViewValue = $cstArchivedStudents2014->VATNo->CurrentValue;
$cstArchivedStudents2014->VATNo->CssStyle = "";
$cstArchivedStudents2014->VATNo->CssClass = "";
$cstArchivedStudents2014->VATNo->ViewCustomAttributes = "";
// DietaryRequirements
$cstArchivedStudents2014->DietaryRequirements->ViewValue = $cstArchivedStudents2014->DietaryRequirements->CurrentValue;
$cstArchivedStudents2014->DietaryRequirements->CssStyle = "";
$cstArchivedStudents2014->DietaryRequirements->CssClass = "";
$cstArchivedStudents2014->DietaryRequirements->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) {
$cstArchivedStudents2014->CVFile->ViewValue = $cstArchivedStudents2014->CVFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->CVFile->ViewValue = "";
}
$cstArchivedStudents2014->CVFile->CssStyle = "";
$cstArchivedStudents2014->CVFile->CssClass = "";
$cstArchivedStudents2014->CVFile->ViewCustomAttributes = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate1->ViewValue = $cstArchivedStudents2014->QualCertificate1->Upload->DbValue;
} else {
$cstArchivedStudents2014->QualCertificate1->ViewValue = "";
}
$cstArchivedStudents2014->QualCertificate1->CssStyle = "";
$cstArchivedStudents2014->QualCertificate1->CssClass = "";
$cstArchivedStudents2014->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate2->ViewValue = $cstArchivedStudents2014->QualCertificate2->Upload->DbValue;
} else {
$cstArchivedStudents2014->QualCertificate2->ViewValue = "";
}
$cstArchivedStudents2014->QualCertificate2->CssStyle = "";
$cstArchivedStudents2014->QualCertificate2->CssClass = "";
$cstArchivedStudents2014->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate3->ViewValue = $cstArchivedStudents2014->QualCertificate3->Upload->DbValue;
} else {
$cstArchivedStudents2014->QualCertificate3->ViewValue = "";
}
$cstArchivedStudents2014->QualCertificate3->CssStyle = "";
$cstArchivedStudents2014->QualCertificate3->CssClass = "";
$cstArchivedStudents2014->QualCertificate3->ViewCustomAttributes = "";
// MemorandumFile
if (!ew_Empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) {
$cstArchivedStudents2014->MemorandumFile->ViewValue = $cstArchivedStudents2014->MemorandumFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->MemorandumFile->ViewValue = "";
}
$cstArchivedStudents2014->MemorandumFile->CssStyle = "";
$cstArchivedStudents2014->MemorandumFile->CssClass = "";
$cstArchivedStudents2014->MemorandumFile->ViewCustomAttributes = "";
// AgreementFile
if (!ew_Empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) {
$cstArchivedStudents2014->AgreementFile->ViewValue = $cstArchivedStudents2014->AgreementFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->AgreementFile->ViewValue = "";
}
$cstArchivedStudents2014->AgreementFile->CssStyle = "";
$cstArchivedStudents2014->AgreementFile->CssClass = "";
$cstArchivedStudents2014->AgreementFile->ViewCustomAttributes = "";
// OrderNo
$cstArchivedStudents2014->OrderNo->ViewValue = $cstArchivedStudents2014->OrderNo->CurrentValue;
$cstArchivedStudents2014->OrderNo->CssStyle = "";
$cstArchivedStudents2014->OrderNo->CssClass = "";
$cstArchivedStudents2014->OrderNo->ViewCustomAttributes = "";
// BookedByName
$cstArchivedStudents2014->BookedByName->ViewValue = $cstArchivedStudents2014->BookedByName->CurrentValue;
$cstArchivedStudents2014->BookedByName->CssStyle = "";
$cstArchivedStudents2014->BookedByName->CssClass = "";
$cstArchivedStudents2014->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$cstArchivedStudents2014->BookedByDesignation->ViewValue = $cstArchivedStudents2014->BookedByDesignation->CurrentValue;
$cstArchivedStudents2014->BookedByDesignation->CssStyle = "";
$cstArchivedStudents2014->BookedByDesignation->CssClass = "";
$cstArchivedStudents2014->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$cstArchivedStudents2014->BookedByTelNo->ViewValue = $cstArchivedStudents2014->BookedByTelNo->CurrentValue;
$cstArchivedStudents2014->BookedByTelNo->CssStyle = "";
$cstArchivedStudents2014->BookedByTelNo->CssClass = "";
$cstArchivedStudents2014->BookedByTelNo->ViewCustomAttributes = "";
// BookedByFaxNo
$cstArchivedStudents2014->BookedByFaxNo->ViewValue = $cstArchivedStudents2014->BookedByFaxNo->CurrentValue;
$cstArchivedStudents2014->BookedByFaxNo->CssStyle = "";
$cstArchivedStudents2014->BookedByFaxNo->CssClass = "";
$cstArchivedStudents2014->BookedByFaxNo->ViewCustomAttributes = "";
// BookedByCellNo
$cstArchivedStudents2014->BookedByCellNo->ViewValue = $cstArchivedStudents2014->BookedByCellNo->CurrentValue;
$cstArchivedStudents2014->BookedByCellNo->CssStyle = "";
$cstArchivedStudents2014->BookedByCellNo->CssClass = "";
$cstArchivedStudents2014->BookedByCellNo->ViewCustomAttributes = "";
// BookedByEmail
$cstArchivedStudents2014->BookedByEmail->ViewValue = $cstArchivedStudents2014->BookedByEmail->CurrentValue;
$cstArchivedStudents2014->BookedByEmail->CssStyle = "";
$cstArchivedStudents2014->BookedByEmail->CssClass = "";
$cstArchivedStudents2014->BookedByEmail->ViewCustomAttributes = "";
// WebUsername
$cstArchivedStudents2014->WebUsername->ViewValue = $cstArchivedStudents2014->WebUsername->CurrentValue;
$cstArchivedStudents2014->WebUsername->CssStyle = "";
$cstArchivedStudents2014->WebUsername->CssClass = "";
$cstArchivedStudents2014->WebUsername->ViewCustomAttributes = "";
// WebPassword
$cstArchivedStudents2014->WebPassword->ViewValue = $cstArchivedStudents2014->WebPassword->CurrentValue;
$cstArchivedStudents2014->WebPassword->CssStyle = "";
$cstArchivedStudents2014->WebPassword->CssClass = "";
$cstArchivedStudents2014->WebPassword->ViewCustomAttributes = "";
// MentorName
$cstArchivedStudents2014->MentorName->ViewValue = $cstArchivedStudents2014->MentorName->CurrentValue;
$cstArchivedStudents2014->MentorName->CssStyle = "";
$cstArchivedStudents2014->MentorName->CssClass = "";
$cstArchivedStudents2014->MentorName->ViewCustomAttributes = "";
// MentorDesig
$cstArchivedStudents2014->MentorDesig->ViewValue = $cstArchivedStudents2014->MentorDesig->CurrentValue;
$cstArchivedStudents2014->MentorDesig->CssStyle = "";
$cstArchivedStudents2014->MentorDesig->CssClass = "";
$cstArchivedStudents2014->MentorDesig->ViewCustomAttributes = "";
// MentorTel
$cstArchivedStudents2014->MentorTel->ViewValue = $cstArchivedStudents2014->MentorTel->CurrentValue;
$cstArchivedStudents2014->MentorTel->CssStyle = "";
$cstArchivedStudents2014->MentorTel->CssClass = "";
$cstArchivedStudents2014->MentorTel->ViewCustomAttributes = "";
// MentorCell
$cstArchivedStudents2014->MentorCell->ViewValue = $cstArchivedStudents2014->MentorCell->CurrentValue;
$cstArchivedStudents2014->MentorCell->CssStyle = "";
$cstArchivedStudents2014->MentorCell->CssClass = "";
$cstArchivedStudents2014->MentorCell->ViewCustomAttributes = "";
// MentorEmail
$cstArchivedStudents2014->MentorEmail->ViewValue = $cstArchivedStudents2014->MentorEmail->CurrentValue;
$cstArchivedStudents2014->MentorEmail->CssStyle = "";
$cstArchivedStudents2014->MentorEmail->CssClass = "";
$cstArchivedStudents2014->MentorEmail->ViewCustomAttributes = "";
// HRManagerName
$cstArchivedStudents2014->HRManagerName->ViewValue = $cstArchivedStudents2014->HRManagerName->CurrentValue;
$cstArchivedStudents2014->HRManagerName->CssStyle = "";
$cstArchivedStudents2014->HRManagerName->CssClass = "";
$cstArchivedStudents2014->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$cstArchivedStudents2014->HRManagerDesignation->ViewValue = $cstArchivedStudents2014->HRManagerDesignation->CurrentValue;
$cstArchivedStudents2014->HRManagerDesignation->CssStyle = "";
$cstArchivedStudents2014->HRManagerDesignation->CssClass = "";
$cstArchivedStudents2014->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$cstArchivedStudents2014->HRManagerTelNo->ViewValue = $cstArchivedStudents2014->HRManagerTelNo->CurrentValue;
$cstArchivedStudents2014->HRManagerTelNo->CssStyle = "";
$cstArchivedStudents2014->HRManagerTelNo->CssClass = "";
$cstArchivedStudents2014->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$cstArchivedStudents2014->HRManagerCellNo->ViewValue = $cstArchivedStudents2014->HRManagerCellNo->CurrentValue;
$cstArchivedStudents2014->HRManagerCellNo->CssStyle = "";
$cstArchivedStudents2014->HRManagerCellNo->CssClass = "";
$cstArchivedStudents2014->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$cstArchivedStudents2014->HRManagerEmail->ViewValue = $cstArchivedStudents2014->HRManagerEmail->CurrentValue;
$cstArchivedStudents2014->HRManagerEmail->CssStyle = "";
$cstArchivedStudents2014->HRManagerEmail->CssClass = "";
$cstArchivedStudents2014->HRManagerEmail->ViewCustomAttributes = "";
// LengthEmploy
$cstArchivedStudents2014->LengthEmploy->ViewValue = $cstArchivedStudents2014->LengthEmploy->CurrentValue;
$cstArchivedStudents2014->LengthEmploy->CssStyle = "";
$cstArchivedStudents2014->LengthEmploy->CssClass = "";
$cstArchivedStudents2014->LengthEmploy->ViewCustomAttributes = "";
// BlockAccess
if (strval($cstArchivedStudents2014->BlockAccess->CurrentValue) <> "") {
switch ($cstArchivedStudents2014->BlockAccess->CurrentValue) {
case "y":
$cstArchivedStudents2014->BlockAccess->ViewValue = "Yes";
break;
case "n":
$cstArchivedStudents2014->BlockAccess->ViewValue = "No";
break;
default:
$cstArchivedStudents2014->BlockAccess->ViewValue = $cstArchivedStudents2014->BlockAccess->CurrentValue;
}
} else {
$cstArchivedStudents2014->BlockAccess->ViewValue = NULL;
}
$cstArchivedStudents2014->BlockAccess->CssStyle = "";
$cstArchivedStudents2014->BlockAccess->CssClass = "";
$cstArchivedStudents2014->BlockAccess->ViewCustomAttributes = "";
// Archived
if (strval($cstArchivedStudents2014->Archived->CurrentValue) <> "") {
switch ($cstArchivedStudents2014->Archived->CurrentValue) {
case "1":
$cstArchivedStudents2014->Archived->ViewValue = "Yes";
break;
case "0":
$cstArchivedStudents2014->Archived->ViewValue = "No";
break;
default:
$cstArchivedStudents2014->Archived->ViewValue = $cstArchivedStudents2014->Archived->CurrentValue;
}
} else {
$cstArchivedStudents2014->Archived->ViewValue = NULL;
}
$cstArchivedStudents2014->Archived->CssStyle = "";
$cstArchivedStudents2014->Archived->CssClass = "";
$cstArchivedStudents2014->Archived->ViewCustomAttributes = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) {
$cstArchivedStudents2014->ResultLetter->ViewValue = $cstArchivedStudents2014->ResultLetter->Upload->DbValue;
} else {
$cstArchivedStudents2014->ResultLetter->ViewValue = "";
}
$cstArchivedStudents2014->ResultLetter->CssStyle = "";
$cstArchivedStudents2014->ResultLetter->CssClass = "";
$cstArchivedStudents2014->ResultLetter->ViewCustomAttributes = "";
// Achieved
if (strval($cstArchivedStudents2014->Achieved->CurrentValue) <> "") {
$cstArchivedStudents2014->Achieved->ViewValue = "";
$arwrk = explode(",", strval($cstArchivedStudents2014->Achieved->CurrentValue));
for ($ari = 0; $ari < count($arwrk); $ari++) {
switch (trim($arwrk[$ari])) {
case "1":
$cstArchivedStudents2014->Achieved->ViewValue .= "Yes";
break;
default:
$cstArchivedStudents2014->Achieved->ViewValue .= trim($arwrk[$ari]);
}
if ($ari < count($arwrk)-1) $cstArchivedStudents2014->Achieved->ViewValue .= ew_ViewOptionSeparator($ari);
}
} else {
$cstArchivedStudents2014->Achieved->ViewValue = NULL;
}
$cstArchivedStudents2014->Achieved->CssStyle = "";
$cstArchivedStudents2014->Achieved->CssClass = "";
$cstArchivedStudents2014->Achieved->ViewCustomAttributes = "";
// IDFile
if (!ew_Empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) {
$cstArchivedStudents2014->IDFile->ViewValue = $cstArchivedStudents2014->IDFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->IDFile->ViewValue = "";
}
$cstArchivedStudents2014->IDFile->CssStyle = "";
$cstArchivedStudents2014->IDFile->CssClass = "";
$cstArchivedStudents2014->IDFile->ViewCustomAttributes = "";
// ReasonForLeaving
$cstArchivedStudents2014->ReasonForLeaving->ViewValue = $cstArchivedStudents2014->ReasonForLeaving->CurrentValue;
$cstArchivedStudents2014->ReasonForLeaving->CssStyle = "";
$cstArchivedStudents2014->ReasonForLeaving->CssClass = "";
$cstArchivedStudents2014->ReasonForLeaving->ViewCustomAttributes = "";
// Title
$cstArchivedStudents2014->Title->HrefValue = "";
$cstArchivedStudents2014->Title->TooltipValue = "";
// FirstName
$cstArchivedStudents2014->FirstName->HrefValue = "";
$cstArchivedStudents2014->FirstName->TooltipValue = "";
// Surname
$cstArchivedStudents2014->Surname->HrefValue = "";
$cstArchivedStudents2014->Surname->TooltipValue = "";
// KnownAs
$cstArchivedStudents2014->KnownAs->HrefValue = "";
$cstArchivedStudents2014->KnownAs->TooltipValue = "";
// Organisation
$cstArchivedStudents2014->Organisation->HrefValue = "";
$cstArchivedStudents2014->Organisation->TooltipValue = "";
// OrganisationType
$cstArchivedStudents2014->OrganisationType->HrefValue = "";
$cstArchivedStudents2014->OrganisationType->TooltipValue = "";
// StudentNumber
$cstArchivedStudents2014->StudentNumber->HrefValue = "";
$cstArchivedStudents2014->StudentNumber->TooltipValue = "";
// CCEFacilitatorID
$cstArchivedStudents2014->CCEFacilitatorID->HrefValue = "";
$cstArchivedStudents2014->CCEFacilitatorID->TooltipValue = "";
// Project
$cstArchivedStudents2014->Project->HrefValue = "";
$cstArchivedStudents2014->Project->TooltipValue = "";
// ProjectDiscipline
$cstArchivedStudents2014->ProjectDiscipline->HrefValue = "";
$cstArchivedStudents2014->ProjectDiscipline->TooltipValue = "";
// IDNumber
$cstArchivedStudents2014->IDNumber->HrefValue = "";
$cstArchivedStudents2014->IDNumber->TooltipValue = "";
// ECSANumber
$cstArchivedStudents2014->ECSANumber->HrefValue = "";
$cstArchivedStudents2014->ECSANumber->TooltipValue = "";
// Age
$cstArchivedStudents2014->Age->HrefValue = "";
$cstArchivedStudents2014->Age->TooltipValue = "";
// HighestQual
$cstArchivedStudents2014->HighestQual->HrefValue = "";
$cstArchivedStudents2014->HighestQual->TooltipValue = "";
// AreaDiscipline
$cstArchivedStudents2014->AreaDiscipline->HrefValue = "";
$cstArchivedStudents2014->AreaDiscipline->TooltipValue = "";
// Telephone
$cstArchivedStudents2014->Telephone->HrefValue = "";
$cstArchivedStudents2014->Telephone->TooltipValue = "";
// Cellphone
$cstArchivedStudents2014->Cellphone->HrefValue = "";
$cstArchivedStudents2014->Cellphone->TooltipValue = "";
// EmailAddress
$cstArchivedStudents2014->EmailAddress->HrefValue = "";
$cstArchivedStudents2014->EmailAddress->TooltipValue = "";
// Designation
$cstArchivedStudents2014->Designation->HrefValue = "";
$cstArchivedStudents2014->Designation->TooltipValue = "";
// Department
$cstArchivedStudents2014->Department->HrefValue = "";
$cstArchivedStudents2014->Department->TooltipValue = "";
// CVFile
if (!ew_Empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) {
$cstArchivedStudents2014->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->CVFile->UploadPath) . ((!empty($cstArchivedStudents2014->CVFile->ViewValue)) ? $cstArchivedStudents2014->CVFile->ViewValue : $cstArchivedStudents2014->CVFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->CVFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->CVFile->HrefValue);
} else {
$cstArchivedStudents2014->CVFile->HrefValue = "";
}
$cstArchivedStudents2014->CVFile->TooltipValue = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->QualCertificate1->UploadPath) . ((!empty($cstArchivedStudents2014->QualCertificate1->ViewValue)) ? $cstArchivedStudents2014->QualCertificate1->ViewValue : $cstArchivedStudents2014->QualCertificate1->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->QualCertificate1->HrefValue);
} else {
$cstArchivedStudents2014->QualCertificate1->HrefValue = "";
}
$cstArchivedStudents2014->QualCertificate1->TooltipValue = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->QualCertificate2->UploadPath) . ((!empty($cstArchivedStudents2014->QualCertificate2->ViewValue)) ? $cstArchivedStudents2014->QualCertificate2->ViewValue : $cstArchivedStudents2014->QualCertificate2->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->QualCertificate2->HrefValue);
} else {
$cstArchivedStudents2014->QualCertificate2->HrefValue = "";
}
$cstArchivedStudents2014->QualCertificate2->TooltipValue = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->QualCertificate3->UploadPath) . ((!empty($cstArchivedStudents2014->QualCertificate3->ViewValue)) ? $cstArchivedStudents2014->QualCertificate3->ViewValue : $cstArchivedStudents2014->QualCertificate3->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->QualCertificate3->HrefValue);
} else {
$cstArchivedStudents2014->QualCertificate3->HrefValue = "";
}
$cstArchivedStudents2014->QualCertificate3->TooltipValue = "";
// MemorandumFile
if (!ew_Empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) {
$cstArchivedStudents2014->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->MemorandumFile->UploadPath) . ((!empty($cstArchivedStudents2014->MemorandumFile->ViewValue)) ? $cstArchivedStudents2014->MemorandumFile->ViewValue : $cstArchivedStudents2014->MemorandumFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->MemorandumFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->MemorandumFile->HrefValue);
} else {
$cstArchivedStudents2014->MemorandumFile->HrefValue = "";
}
$cstArchivedStudents2014->MemorandumFile->TooltipValue = "";
// AgreementFile
if (!ew_Empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) {
$cstArchivedStudents2014->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->AgreementFile->UploadPath) . ((!empty($cstArchivedStudents2014->AgreementFile->ViewValue)) ? $cstArchivedStudents2014->AgreementFile->ViewValue : $cstArchivedStudents2014->AgreementFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->AgreementFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->AgreementFile->HrefValue);
} else {
$cstArchivedStudents2014->AgreementFile->HrefValue = "";
}
$cstArchivedStudents2014->AgreementFile->TooltipValue = "";
// OrderNo
$cstArchivedStudents2014->OrderNo->HrefValue = "";
$cstArchivedStudents2014->OrderNo->TooltipValue = "";
// WebUsername
$cstArchivedStudents2014->WebUsername->HrefValue = "";
$cstArchivedStudents2014->WebUsername->TooltipValue = "";
// WebPassword
$cstArchivedStudents2014->WebPassword->HrefValue = "";
$cstArchivedStudents2014->WebPassword->TooltipValue = "";
// MentorName
$cstArchivedStudents2014->MentorName->HrefValue = "";
$cstArchivedStudents2014->MentorName->TooltipValue = "";
// MentorDesig
$cstArchivedStudents2014->MentorDesig->HrefValue = "";
$cstArchivedStudents2014->MentorDesig->TooltipValue = "";
// MentorTel
$cstArchivedStudents2014->MentorTel->HrefValue = "";
$cstArchivedStudents2014->MentorTel->TooltipValue = "";
// MentorCell
$cstArchivedStudents2014->MentorCell->HrefValue = "";
$cstArchivedStudents2014->MentorCell->TooltipValue = "";
// MentorEmail
$cstArchivedStudents2014->MentorEmail->HrefValue = "";
$cstArchivedStudents2014->MentorEmail->TooltipValue = "";
// HRManagerName
$cstArchivedStudents2014->HRManagerName->HrefValue = "";
$cstArchivedStudents2014->HRManagerName->TooltipValue = "";
// HRManagerDesignation
$cstArchivedStudents2014->HRManagerDesignation->HrefValue = "";
$cstArchivedStudents2014->HRManagerDesignation->TooltipValue = "";
// HRManagerTelNo
$cstArchivedStudents2014->HRManagerTelNo->HrefValue = "";
$cstArchivedStudents2014->HRManagerTelNo->TooltipValue = "";
// HRManagerCellNo
$cstArchivedStudents2014->HRManagerCellNo->HrefValue = "";
$cstArchivedStudents2014->HRManagerCellNo->TooltipValue = "";
// HRManagerEmail
$cstArchivedStudents2014->HRManagerEmail->HrefValue = "";
$cstArchivedStudents2014->HRManagerEmail->TooltipValue = "";
// LengthEmploy
$cstArchivedStudents2014->LengthEmploy->HrefValue = "";
$cstArchivedStudents2014->LengthEmploy->TooltipValue = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) {
$cstArchivedStudents2014->ResultLetter->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->ResultLetter->UploadPath) . ((!empty($cstArchivedStudents2014->ResultLetter->ViewValue)) ? $cstArchivedStudents2014->ResultLetter->ViewValue : $cstArchivedStudents2014->ResultLetter->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->ResultLetter->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->ResultLetter->HrefValue);
} else {
$cstArchivedStudents2014->ResultLetter->HrefValue = "";
}
$cstArchivedStudents2014->ResultLetter->TooltipValue = "";
// IDFile
if (!ew_Empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) {
$cstArchivedStudents2014->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->IDFile->UploadPath) . ((!empty($cstArchivedStudents2014->IDFile->ViewValue)) ? $cstArchivedStudents2014->IDFile->ViewValue : $cstArchivedStudents2014->IDFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->IDFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->IDFile->HrefValue);
} else {
$cstArchivedStudents2014->IDFile->HrefValue = "";
}
$cstArchivedStudents2014->IDFile->TooltipValue = "";
// ReasonForLeaving
$cstArchivedStudents2014->ReasonForLeaving->HrefValue = "";
$cstArchivedStudents2014->ReasonForLeaving->TooltipValue = "";
}
// Call Row Rendered event
if ($cstArchivedStudents2014->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$cstArchivedStudents2014->Row_Rendered();
}
// Export data in HTML/CSV/Word/Excel/XML/Email format
function ExportData() {
global $cstArchivedStudents2014;
$utf8 = FALSE;
$bSelectLimit = FALSE;
// Load recordset
if ($bSelectLimit) {
$this->lTotalRecs = $cstArchivedStudents2014->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 ($cstArchivedStudents2014->Export == "xml") {
$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
$XmlDoc->AddRoot();
} else {
$ExportDoc = new cExportDocument($cstArchivedStudents2014, "v");
$ExportDoc->ExportHeader();
if ($ExportDoc->Horizontal) { // Horizontal format, write header
$ExportDoc->BeginExportRow();
$ExportDoc->ExportCaption($cstArchivedStudents2014->Title);
$ExportDoc->ExportCaption($cstArchivedStudents2014->FirstName);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Surname);
$ExportDoc->ExportCaption($cstArchivedStudents2014->KnownAs);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Organisation);
$ExportDoc->ExportCaption($cstArchivedStudents2014->OrganisationType);
$ExportDoc->ExportCaption($cstArchivedStudents2014->StudentNumber);
$ExportDoc->ExportCaption($cstArchivedStudents2014->CCEFacilitatorID);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Project);
$ExportDoc->ExportCaption($cstArchivedStudents2014->ProjectDiscipline);
$ExportDoc->ExportCaption($cstArchivedStudents2014->IDNumber);
$ExportDoc->ExportCaption($cstArchivedStudents2014->ECSANumber);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Age);
$ExportDoc->ExportCaption($cstArchivedStudents2014->HighestQual);
$ExportDoc->ExportCaption($cstArchivedStudents2014->AreaDiscipline);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Telephone);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Cellphone);
$ExportDoc->ExportCaption($cstArchivedStudents2014->EmailAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2014->HomeAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2014->WorkAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2014->PostalAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Designation);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Department);
$ExportDoc->ExportCaption($cstArchivedStudents2014->CESAAccountNo);
$ExportDoc->ExportCaption($cstArchivedStudents2014->VATNo);
$ExportDoc->ExportCaption($cstArchivedStudents2014->DietaryRequirements);
$ExportDoc->ExportCaption($cstArchivedStudents2014->CVFile);
$ExportDoc->ExportCaption($cstArchivedStudents2014->QualCertificate1);
$ExportDoc->ExportCaption($cstArchivedStudents2014->QualCertificate2);
$ExportDoc->ExportCaption($cstArchivedStudents2014->QualCertificate3);
$ExportDoc->ExportCaption($cstArchivedStudents2014->MemorandumFile);
$ExportDoc->ExportCaption($cstArchivedStudents2014->AgreementFile);
$ExportDoc->ExportCaption($cstArchivedStudents2014->OrderNo);
$ExportDoc->ExportCaption($cstArchivedStudents2014->BookedByName);
$ExportDoc->ExportCaption($cstArchivedStudents2014->BookedByDesignation);
$ExportDoc->ExportCaption($cstArchivedStudents2014->BookedByTelNo);
$ExportDoc->ExportCaption($cstArchivedStudents2014->BookedByFaxNo);
$ExportDoc->ExportCaption($cstArchivedStudents2014->BookedByCellNo);
$ExportDoc->ExportCaption($cstArchivedStudents2014->BookedByEmail);
$ExportDoc->ExportCaption($cstArchivedStudents2014->WebUsername);
$ExportDoc->ExportCaption($cstArchivedStudents2014->WebPassword);
$ExportDoc->ExportCaption($cstArchivedStudents2014->MentorName);
$ExportDoc->ExportCaption($cstArchivedStudents2014->MentorDesig);
$ExportDoc->ExportCaption($cstArchivedStudents2014->MentorTel);
$ExportDoc->ExportCaption($cstArchivedStudents2014->MentorCell);
$ExportDoc->ExportCaption($cstArchivedStudents2014->MentorEmail);
$ExportDoc->ExportCaption($cstArchivedStudents2014->HRManagerName);
$ExportDoc->ExportCaption($cstArchivedStudents2014->HRManagerDesignation);
$ExportDoc->ExportCaption($cstArchivedStudents2014->HRManagerTelNo);
$ExportDoc->ExportCaption($cstArchivedStudents2014->HRManagerCellNo);
$ExportDoc->ExportCaption($cstArchivedStudents2014->HRManagerEmail);
$ExportDoc->ExportCaption($cstArchivedStudents2014->LengthEmploy);
$ExportDoc->ExportCaption($cstArchivedStudents2014->BlockAccess);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Archived);
$ExportDoc->ExportCaption($cstArchivedStudents2014->ResultLetter);
$ExportDoc->ExportCaption($cstArchivedStudents2014->Achieved);
$ExportDoc->ExportCaption($cstArchivedStudents2014->IDFile);
$ExportDoc->EndExportRow();
}
}
// Move to first record
$this->lRecCnt = $this->lStartRec - 1;
if (!$rs->EOF) {
$rs->MoveFirst();
if (!$bSelectLimit && $this->lStartRec > 1)
$rs->Move($this->lStartRec - 1);
}
while (!$rs->EOF && $this->lRecCnt < $this->lStopRec) {
$this->lRecCnt++;
if (intval($this->lRecCnt) >= intval($this->lStartRec)) {
$this->LoadRowValues($rs);
// Render row
$cstArchivedStudents2014->CssClass = "";
$cstArchivedStudents2014->CssStyle = "";
$cstArchivedStudents2014->RowType = EW_ROWTYPE_VIEW; // Render view
$this->RenderRow();
if ($cstArchivedStudents2014->Export == "xml") {
$XmlDoc->AddRow();
$XmlDoc->AddField('Title', $cstArchivedStudents2014->Title->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('FirstName', $cstArchivedStudents2014->FirstName->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Surname', $cstArchivedStudents2014->Surname->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('KnownAs', $cstArchivedStudents2014->KnownAs->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Organisation', $cstArchivedStudents2014->Organisation->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('OrganisationType', $cstArchivedStudents2014->OrganisationType->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('StudentNumber', $cstArchivedStudents2014->StudentNumber->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('CCEFacilitatorID', $cstArchivedStudents2014->CCEFacilitatorID->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Project', $cstArchivedStudents2014->Project->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('ProjectDiscipline', $cstArchivedStudents2014->ProjectDiscipline->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('IDNumber', $cstArchivedStudents2014->IDNumber->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('ECSANumber', $cstArchivedStudents2014->ECSANumber->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Age', $cstArchivedStudents2014->Age->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('HighestQual', $cstArchivedStudents2014->HighestQual->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('AreaDiscipline', $cstArchivedStudents2014->AreaDiscipline->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Telephone', $cstArchivedStudents2014->Telephone->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Cellphone', $cstArchivedStudents2014->Cellphone->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('EmailAddress', $cstArchivedStudents2014->EmailAddress->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('HomeAddress', $cstArchivedStudents2014->HomeAddress->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('WorkAddress', $cstArchivedStudents2014->WorkAddress->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('PostalAddress', $cstArchivedStudents2014->PostalAddress->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Designation', $cstArchivedStudents2014->Designation->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Department', $cstArchivedStudents2014->Department->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('CESAAccountNo', $cstArchivedStudents2014->CESAAccountNo->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('VATNo', $cstArchivedStudents2014->VATNo->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('DietaryRequirements', $cstArchivedStudents2014->DietaryRequirements->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('CVFile', $cstArchivedStudents2014->CVFile->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate1', $cstArchivedStudents2014->QualCertificate1->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate2', $cstArchivedStudents2014->QualCertificate2->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate3', $cstArchivedStudents2014->QualCertificate3->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('MemorandumFile', $cstArchivedStudents2014->MemorandumFile->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('AgreementFile', $cstArchivedStudents2014->AgreementFile->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('OrderNo', $cstArchivedStudents2014->OrderNo->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('BookedByName', $cstArchivedStudents2014->BookedByName->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('BookedByDesignation', $cstArchivedStudents2014->BookedByDesignation->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('BookedByTelNo', $cstArchivedStudents2014->BookedByTelNo->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('BookedByFaxNo', $cstArchivedStudents2014->BookedByFaxNo->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('BookedByCellNo', $cstArchivedStudents2014->BookedByCellNo->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('BookedByEmail', $cstArchivedStudents2014->BookedByEmail->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('WebUsername', $cstArchivedStudents2014->WebUsername->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('WebPassword', $cstArchivedStudents2014->WebPassword->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('MentorName', $cstArchivedStudents2014->MentorName->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('MentorDesig', $cstArchivedStudents2014->MentorDesig->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('MentorTel', $cstArchivedStudents2014->MentorTel->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('MentorCell', $cstArchivedStudents2014->MentorCell->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('MentorEmail', $cstArchivedStudents2014->MentorEmail->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('HRManagerName', $cstArchivedStudents2014->HRManagerName->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('HRManagerDesignation', $cstArchivedStudents2014->HRManagerDesignation->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('HRManagerTelNo', $cstArchivedStudents2014->HRManagerTelNo->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('HRManagerCellNo', $cstArchivedStudents2014->HRManagerCellNo->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('HRManagerEmail', $cstArchivedStudents2014->HRManagerEmail->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('LengthEmploy', $cstArchivedStudents2014->LengthEmploy->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('BlockAccess', $cstArchivedStudents2014->BlockAccess->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Archived', $cstArchivedStudents2014->Archived->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('ResultLetter', $cstArchivedStudents2014->ResultLetter->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('Achieved', $cstArchivedStudents2014->Achieved->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
$XmlDoc->AddField('IDFile', $cstArchivedStudents2014->IDFile->ExportValue($cstArchivedStudents2014->Export, $cstArchivedStudents2014->ExportOriginalValue));
} else {
$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
$ExportDoc->ExportField($cstArchivedStudents2014->Title);
$ExportDoc->ExportField($cstArchivedStudents2014->FirstName);
$ExportDoc->ExportField($cstArchivedStudents2014->Surname);
$ExportDoc->ExportField($cstArchivedStudents2014->KnownAs);
$ExportDoc->ExportField($cstArchivedStudents2014->Organisation);
$ExportDoc->ExportField($cstArchivedStudents2014->OrganisationType);
$ExportDoc->ExportField($cstArchivedStudents2014->StudentNumber);
$ExportDoc->ExportField($cstArchivedStudents2014->CCEFacilitatorID);
$ExportDoc->ExportField($cstArchivedStudents2014->Project);
$ExportDoc->ExportField($cstArchivedStudents2014->ProjectDiscipline);
$ExportDoc->ExportField($cstArchivedStudents2014->IDNumber);
$ExportDoc->ExportField($cstArchivedStudents2014->ECSANumber);
$ExportDoc->ExportField($cstArchivedStudents2014->Age);
$ExportDoc->ExportField($cstArchivedStudents2014->HighestQual);
$ExportDoc->ExportField($cstArchivedStudents2014->AreaDiscipline);
$ExportDoc->ExportField($cstArchivedStudents2014->Telephone);
$ExportDoc->ExportField($cstArchivedStudents2014->Cellphone);
$ExportDoc->ExportField($cstArchivedStudents2014->EmailAddress);
$ExportDoc->ExportField($cstArchivedStudents2014->HomeAddress);
$ExportDoc->ExportField($cstArchivedStudents2014->WorkAddress);
$ExportDoc->ExportField($cstArchivedStudents2014->PostalAddress);
$ExportDoc->ExportField($cstArchivedStudents2014->Designation);
$ExportDoc->ExportField($cstArchivedStudents2014->Department);
$ExportDoc->ExportField($cstArchivedStudents2014->CESAAccountNo);
$ExportDoc->ExportField($cstArchivedStudents2014->VATNo);
$ExportDoc->ExportField($cstArchivedStudents2014->DietaryRequirements);
$ExportDoc->ExportField($cstArchivedStudents2014->CVFile);
$ExportDoc->ExportField($cstArchivedStudents2014->QualCertificate1);
$ExportDoc->ExportField($cstArchivedStudents2014->QualCertificate2);
$ExportDoc->ExportField($cstArchivedStudents2014->QualCertificate3);
$ExportDoc->ExportField($cstArchivedStudents2014->MemorandumFile);
$ExportDoc->ExportField($cstArchivedStudents2014->AgreementFile);
$ExportDoc->ExportField($cstArchivedStudents2014->OrderNo);
$ExportDoc->ExportField($cstArchivedStudents2014->BookedByName);
$ExportDoc->ExportField($cstArchivedStudents2014->BookedByDesignation);
$ExportDoc->ExportField($cstArchivedStudents2014->BookedByTelNo);
$ExportDoc->ExportField($cstArchivedStudents2014->BookedByFaxNo);
$ExportDoc->ExportField($cstArchivedStudents2014->BookedByCellNo);
$ExportDoc->ExportField($cstArchivedStudents2014->BookedByEmail);
$ExportDoc->ExportField($cstArchivedStudents2014->WebUsername);
$ExportDoc->ExportField($cstArchivedStudents2014->WebPassword);
$ExportDoc->ExportField($cstArchivedStudents2014->MentorName);
$ExportDoc->ExportField($cstArchivedStudents2014->MentorDesig);
$ExportDoc->ExportField($cstArchivedStudents2014->MentorTel);
$ExportDoc->ExportField($cstArchivedStudents2014->MentorCell);
$ExportDoc->ExportField($cstArchivedStudents2014->MentorEmail);
$ExportDoc->ExportField($cstArchivedStudents2014->HRManagerName);
$ExportDoc->ExportField($cstArchivedStudents2014->HRManagerDesignation);
$ExportDoc->ExportField($cstArchivedStudents2014->HRManagerTelNo);
$ExportDoc->ExportField($cstArchivedStudents2014->HRManagerCellNo);
$ExportDoc->ExportField($cstArchivedStudents2014->HRManagerEmail);
$ExportDoc->ExportField($cstArchivedStudents2014->LengthEmploy);
$ExportDoc->ExportField($cstArchivedStudents2014->BlockAccess);
$ExportDoc->ExportField($cstArchivedStudents2014->Archived);
$ExportDoc->ExportField($cstArchivedStudents2014->ResultLetter);
$ExportDoc->ExportField($cstArchivedStudents2014->Achieved);
$ExportDoc->ExportField($cstArchivedStudents2014->IDFile);
$ExportDoc->EndExportRow();
}
}
$rs->MoveNext();
}
if ($cstArchivedStudents2014->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($cstArchivedStudents2014->Export, array("email", "xml")))
echo "\xEF\xBB\xBF";
// Write debug message if enabled
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
// Output data
if ($cstArchivedStudents2014->Export == "xml") {
header("Content-Type: text/xml");
echo $XmlDoc->XML();
} elseif ($cstArchivedStudents2014->Export == "email") {
$this->ExportEmail($ExportDoc->Text);
$this->Page_Terminate($cstArchivedStudents2014->ExportReturnUrl());
} else {
echo $ExportDoc->Text;
}
}
// Export email
function ExportEmail($EmailContent) {
global $Language, $cstArchivedStudents2014;
$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 ($cstArchivedStudents2014->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 $cstArchivedStudents2014;
// Initialize
$sQry = "export=html";
// Add record key QueryString
$sQry .= "&" . substr($cstArchivedStudents2014->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";
}
}
?>