| Current Path : /var/www/cesa.co.za/cceadmin/ |
| Current File : /var/www/cesa.co.za/cceadmin/CCEStudentsview.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 "CCEStudentsinfo.php" ?>
<?php include "CCEUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
// Create page object
$CCEStudents_view = new cCCEStudents_view();
$Page =& $CCEStudents_view;
// Page init
$CCEStudents_view->Page_Init();
// Page main
$CCEStudents_view->Page_Main();
?>
<?php include "header.php" ?>
<?php if ($CCEStudents->Export == "") { ?>
<script type="text/javascript">
<!--
// Create page object
var CCEStudents_view = new ew_Page("CCEStudents_view");
// page properties
CCEStudents_view.PageID = "view"; // page ID
CCEStudents_view.FormID = "fCCEStudentsview"; // form ID
var EW_PAGE_ID = CCEStudents_view.PageID; // for backward compatibility
// extend page with Form_CustomValidate function
CCEStudents_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) { ?>
CCEStudents_view.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
CCEStudents_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("TblTypeTABLE") ?><?php echo $CCEStudents->TableCaption() ?>
<?php if ($CCEStudents->Export == "") { ?>
<a href="<?php echo $CCEStudents_view->ExportPrintUrl ?>"><?php echo $Language->Phrase("PrinterFriendly") ?></a>
<a href="<?php echo $CCEStudents_view->ExportExcelUrl ?>"><?php echo $Language->Phrase("ExportToExcel") ?></a>
<a href="<?php echo $CCEStudents_view->ExportWordUrl ?>"><?php echo $Language->Phrase("ExportToWord") ?></a>
<a name="emf_CCEStudents" id="emf_CCEStudents" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_CCEStudents',hdr:ewLanguage.Phrase('ExportToEmail'),key:<?php echo ew_ArrayToJsonAttr($CCEStudents_view->arRecKey) ?>,sel:false});"><?php echo $Language->Phrase("ExportToEmail") ?></a>
<?php } ?>
<br><br>
<?php if ($CCEStudents->Export == "") { ?>
<a href="<?php echo $CCEStudents_view->ListUrl ?>"><?php echo $Language->Phrase("BackToList") ?></a>
<?php if ($Security->CanAdd()) { ?>
<a href="<?php echo $CCEStudents_view->AddUrl ?>"><?php echo $Language->Phrase("ViewPageAddLink") ?></a>
<?php } ?>
<?php if ($Security->CanEdit()) { ?>
<a href="<?php echo $CCEStudents_view->EditUrl ?>"><?php echo $Language->Phrase("ViewPageEditLink") ?></a>
<?php } ?>
<?php if ($Security->CanDelete()) { ?>
<a href="<?php echo $CCEStudents_view->DeleteUrl ?>"><?php echo $Language->Phrase("ViewPageDeleteLink") ?></a>
<?php } ?>
<?php if ($Security->AllowList('CCEPayments')) { ?>
<a href="CCEPaymentslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=CCEStudents&CCEStudentID=<?php echo urlencode(strval($CCEStudents->CCEStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCEPayments", "TblCaption") ?>
</a>
<?php } ?>
<?php if ($Security->AllowList('CCEStudentAssignments')) { ?>
<a href="CCEStudentAssignmentslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=CCEStudents&CCEStudentID=<?php echo urlencode(strval($CCEStudents->CCEStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCEStudentAssignments", "TblCaption") ?>
</a>
<?php } ?>
<?php if ($Security->AllowList('CCEStudentCourses')) { ?>
<a href="CCEStudentCourseslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=CCEStudents&CCEStudentID=<?php echo urlencode(strval($CCEStudents->CCEStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCEStudentCourses", "TblCaption") ?>
</a>
<?php } ?>
<?php if ($Security->AllowList('CCEStudentActivities')) { ?>
<a href="CCEStudentActivitieslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=CCEStudents&CCEStudentID=<?php echo urlencode(strval($CCEStudents->CCEStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCEStudentActivities", "TblCaption") ?>
</a>
<?php } ?>
<?php if ($Security->AllowList('CCEModuleMarks')) { ?>
<a href="CCEModuleMarkslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=CCEStudents&CCEStudentID=<?php echo urlencode(strval($CCEStudents->CCEStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCEModuleMarks", "TblCaption") ?>
</a>
<?php } ?>
<?php } ?>
</span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$CCEStudents_view->ShowMessage();
?>
<p>
<?php if ($CCEStudents->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($CCEStudents_view->Pager)) $CCEStudents_view->Pager = new cPrevNextPager($CCEStudents_view->lStartRec, $CCEStudents_view->lDisplayRecs, $CCEStudents_view->lTotalRecs) ?>
<?php if ($CCEStudents_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 ($CCEStudents_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $CCEStudents_view->PageUrl() ?>start=<?php echo $CCEStudents_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 ($CCEStudents_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $CCEStudents_view->PageUrl() ?>start=<?php echo $CCEStudents_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 $CCEStudents_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($CCEStudents_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $CCEStudents_view->PageUrl() ?>start=<?php echo $CCEStudents_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 ($CCEStudents_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $CCEStudents_view->PageUrl() ?>start=<?php echo $CCEStudents_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 $CCEStudents_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($CCEStudents_view->sSrchWhere == "0=101") { ?>
<span class="phpmaker"><?php echo $Language->Phrase("EnterSearchCriteria") ?></span>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoRecord") ?></span>
<?php } ?>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoPermission") ?></span>
<?php } ?>
<?php } ?>
</td>
</tr>
</table>
</form>
<br>
<?php } ?>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<?php if ($CCEStudents->Title->Visible) { // Title ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Title->FldCaption() ?></td>
<td<?php echo $CCEStudents->Title->CellAttributes() ?>>
<div<?php echo $CCEStudents->Title->ViewAttributes() ?>><?php echo $CCEStudents->Title->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->KnownAs->FldCaption() ?></td>
<td<?php echo $CCEStudents->KnownAs->CellAttributes() ?>>
<div<?php echo $CCEStudents->KnownAs->ViewAttributes() ?>><?php echo $CCEStudents->KnownAs->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->FirstName->Visible) { // FirstName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->FirstName->FldCaption() ?></td>
<td<?php echo $CCEStudents->FirstName->CellAttributes() ?>>
<div<?php echo $CCEStudents->FirstName->ViewAttributes() ?>><?php echo $CCEStudents->FirstName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Surname->Visible) { // Surname ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Surname->FldCaption() ?></td>
<td<?php echo $CCEStudents->Surname->CellAttributes() ?>>
<div<?php echo $CCEStudents->Surname->ViewAttributes() ?>><?php echo $CCEStudents->Surname->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Organisation->Visible) { // Organisation ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Organisation->FldCaption() ?></td>
<td<?php echo $CCEStudents->Organisation->CellAttributes() ?>>
<div<?php echo $CCEStudents->Organisation->ViewAttributes() ?>><?php echo $CCEStudents->Organisation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OrganisationType->Visible) { // OrganisationType ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OrganisationType->FldCaption() ?></td>
<td<?php echo $CCEStudents->OrganisationType->CellAttributes() ?>>
<div<?php echo $CCEStudents->OrganisationType->ViewAttributes() ?>><?php echo $CCEStudents->OrganisationType->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Designation->Visible) { // Designation ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Designation->FldCaption() ?></td>
<td<?php echo $CCEStudents->Designation->CellAttributes() ?>>
<div<?php echo $CCEStudents->Designation->ViewAttributes() ?>><?php echo $CCEStudents->Designation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Department->Visible) { // Department ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Department->FldCaption() ?></td>
<td<?php echo $CCEStudents->Department->CellAttributes() ?>>
<div<?php echo $CCEStudents->Department->ViewAttributes() ?>><?php echo $CCEStudents->Department->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->StudentNumber->Visible) { // StudentNumber ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->StudentNumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->StudentNumber->CellAttributes() ?>>
<div<?php echo $CCEStudents->StudentNumber->ViewAttributes() ?>><?php echo $CCEStudents->StudentNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->CCEFacilitatorID->Visible) { // CCEFacilitatorID ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CCEFacilitatorID->FldCaption() ?></td>
<td<?php echo $CCEStudents->CCEFacilitatorID->CellAttributes() ?>>
<div<?php echo $CCEStudents->CCEFacilitatorID->ViewAttributes() ?>><?php echo $CCEStudents->CCEFacilitatorID->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Project->Visible) { // Project ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Project->FldCaption() ?></td>
<td<?php echo $CCEStudents->Project->CellAttributes() ?>>
<div<?php echo $CCEStudents->Project->ViewAttributes() ?>><?php echo $CCEStudents->Project->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ProjectDiscipline->FldCaption() ?></td>
<td<?php echo $CCEStudents->ProjectDiscipline->CellAttributes() ?>>
<div<?php echo $CCEStudents->ProjectDiscipline->ViewAttributes() ?>><?php echo $CCEStudents->ProjectDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ProjectCode->Visible) { // ProjectCode ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ProjectCode->FldCaption() ?></td>
<td<?php echo $CCEStudents->ProjectCode->CellAttributes() ?>>
<div<?php echo $CCEStudents->ProjectCode->ViewAttributes() ?>><?php echo $CCEStudents->ProjectCode->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->IDNumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->IDNumber->CellAttributes() ?>>
<div<?php echo $CCEStudents->IDNumber->ViewAttributes() ?>><?php echo $CCEStudents->IDNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ECSARegistered->Visible) { // ECSARegistered ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ECSARegistered->FldCaption() ?></td>
<td<?php echo $CCEStudents->ECSARegistered->CellAttributes() ?>>
<div<?php echo $CCEStudents->ECSARegistered->ViewAttributes() ?>><?php echo $CCEStudents->ECSARegistered->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ECSACategory->Visible) { // ECSACategory ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ECSACategory->FldCaption() ?></td>
<td<?php echo $CCEStudents->ECSACategory->CellAttributes() ?>>
<div<?php echo $CCEStudents->ECSACategory->ViewAttributes() ?>><?php echo $CCEStudents->ECSACategory->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ECSANumber->Visible) { // ECSANumber ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ECSANumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->ECSANumber->CellAttributes() ?>>
<div<?php echo $CCEStudents->ECSANumber->ViewAttributes() ?>><?php echo $CCEStudents->ECSANumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherStatutoryBodyRegistered->Visible) { // OtherStatutoryBodyRegistered ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyRegistered->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyRegistered->CellAttributes() ?>>
<div<?php echo $CCEStudents->OtherStatutoryBodyRegistered->ViewAttributes() ?>><?php echo $CCEStudents->OtherStatutoryBodyRegistered->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherStatutoryBodyName->Visible) { // OtherStatutoryBodyName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyName->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyName->CellAttributes() ?>>
<div<?php echo $CCEStudents->OtherStatutoryBodyName->ViewAttributes() ?>><?php echo $CCEStudents->OtherStatutoryBodyName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherStatutoryBodyNumber->Visible) { // OtherStatutoryBodyNumber ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyNumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyNumber->CellAttributes() ?>>
<div<?php echo $CCEStudents->OtherStatutoryBodyNumber->ViewAttributes() ?>><?php echo $CCEStudents->OtherStatutoryBodyNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherStatutoryBodyCategory->Visible) { // OtherStatutoryBodyCategory ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyCategory->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyCategory->CellAttributes() ?>>
<div<?php echo $CCEStudents->OtherStatutoryBodyCategory->ViewAttributes() ?>><?php echo $CCEStudents->OtherStatutoryBodyCategory->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->CESAMemberFirm->Visible) { // CESAMemberFirm ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CESAMemberFirm->FldCaption() ?></td>
<td<?php echo $CCEStudents->CESAMemberFirm->CellAttributes() ?>>
<div<?php echo $CCEStudents->CESAMemberFirm->ViewAttributes() ?>><?php echo $CCEStudents->CESAMemberFirm->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherCEFirms->Visible) { // OtherCEFirms ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherCEFirms->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherCEFirms->CellAttributes() ?>>
<div<?php echo $CCEStudents->OtherCEFirms->ViewAttributes() ?>><?php echo $CCEStudents->OtherCEFirms->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Age->Visible) { // Age ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Age->FldCaption() ?></td>
<td<?php echo $CCEStudents->Age->CellAttributes() ?>>
<div<?php echo $CCEStudents->Age->ViewAttributes() ?>><?php echo $CCEStudents->Age->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HighestQual->Visible) { // HighestQual ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HighestQual->FldCaption() ?></td>
<td<?php echo $CCEStudents->HighestQual->CellAttributes() ?>>
<div<?php echo $CCEStudents->HighestQual->ViewAttributes() ?>><?php echo $CCEStudents->HighestQual->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->AreaDiscipline->Visible) { // AreaDiscipline ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->AreaDiscipline->FldCaption() ?></td>
<td<?php echo $CCEStudents->AreaDiscipline->CellAttributes() ?>>
<div<?php echo $CCEStudents->AreaDiscipline->ViewAttributes() ?>><?php echo $CCEStudents->AreaDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Telephone->Visible) { // Telephone ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Telephone->FldCaption() ?></td>
<td<?php echo $CCEStudents->Telephone->CellAttributes() ?>>
<div<?php echo $CCEStudents->Telephone->ViewAttributes() ?>><?php echo $CCEStudents->Telephone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Cellphone->FldCaption() ?></td>
<td<?php echo $CCEStudents->Cellphone->CellAttributes() ?>>
<div<?php echo $CCEStudents->Cellphone->ViewAttributes() ?>><?php echo $CCEStudents->Cellphone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->EmailAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->EmailAddress->CellAttributes() ?>>
<div<?php echo $CCEStudents->EmailAddress->ViewAttributes() ?>><?php echo $CCEStudents->EmailAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->EmailAddress2->Visible) { // EmailAddress2 ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->EmailAddress2->FldCaption() ?></td>
<td<?php echo $CCEStudents->EmailAddress2->CellAttributes() ?>>
<div<?php echo $CCEStudents->EmailAddress2->ViewAttributes() ?>><?php echo $CCEStudents->EmailAddress2->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HomeAddress->Visible) { // HomeAddress ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HomeAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->HomeAddress->CellAttributes() ?>>
<div<?php echo $CCEStudents->HomeAddress->ViewAttributes() ?>><?php echo $CCEStudents->HomeAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->WorkAddress->Visible) { // WorkAddress ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->WorkAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->WorkAddress->CellAttributes() ?>>
<div<?php echo $CCEStudents->WorkAddress->ViewAttributes() ?>><?php echo $CCEStudents->WorkAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->PostalAddress->Visible) { // PostalAddress ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->PostalAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->PostalAddress->CellAttributes() ?>>
<div<?php echo $CCEStudents->PostalAddress->ViewAttributes() ?>><?php echo $CCEStudents->PostalAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->PreferredCourierAddress->Visible) { // PreferredCourierAddress ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->PreferredCourierAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->PreferredCourierAddress->CellAttributes() ?>>
<div<?php echo $CCEStudents->PreferredCourierAddress->ViewAttributes() ?>><?php echo $CCEStudents->PreferredCourierAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->CESAAccountNo->Visible) { // CESAAccountNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CESAAccountNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->CESAAccountNo->CellAttributes() ?>>
<div<?php echo $CCEStudents->CESAAccountNo->ViewAttributes() ?>><?php echo $CCEStudents->CESAAccountNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->VATNo->Visible) { // VATNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->VATNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->VATNo->CellAttributes() ?>>
<div<?php echo $CCEStudents->VATNo->ViewAttributes() ?>><?php echo $CCEStudents->VATNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->DietaryRequirements->Visible) { // DietaryRequirements ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->DietaryRequirements->FldCaption() ?></td>
<td<?php echo $CCEStudents->DietaryRequirements->CellAttributes() ?>>
<div<?php echo $CCEStudents->DietaryRequirements->ViewAttributes() ?>><?php echo $CCEStudents->DietaryRequirements->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->CVFile->Visible) { // CVFile ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CVFile->FldCaption() ?></td>
<td<?php echo $CCEStudents->CVFile->CellAttributes() ?>>
<?php if ($CCEStudents->CVFile->HrefValue <> "" || $CCEStudents->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->CVFile->HrefValue ?>"><?php echo $CCEStudents->CVFile->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->CVFile->Upload->DbValue)) { ?>
<?php echo $CCEStudents->CVFile->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->IDFile->Visible) { // IDFile ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->IDFile->FldCaption() ?></td>
<td<?php echo $CCEStudents->IDFile->CellAttributes() ?>>
<?php if ($CCEStudents->IDFile->HrefValue <> "" || $CCEStudents->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->IDFile->HrefValue ?>"><?php echo $CCEStudents->IDFile->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->IDFile->Upload->DbValue)) { ?>
<?php echo $CCEStudents->IDFile->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->QualCertificate1->Visible) { // QualCertificate1 ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->QualCertificate1->FldCaption() ?></td>
<td<?php echo $CCEStudents->QualCertificate1->CellAttributes() ?>>
<?php if ($CCEStudents->QualCertificate1->HrefValue <> "" || $CCEStudents->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->QualCertificate1->HrefValue ?>"><?php echo $CCEStudents->QualCertificate1->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $CCEStudents->QualCertificate1->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->QualCertificate2->Visible) { // QualCertificate2 ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->QualCertificate2->FldCaption() ?></td>
<td<?php echo $CCEStudents->QualCertificate2->CellAttributes() ?>>
<?php if ($CCEStudents->QualCertificate2->HrefValue <> "" || $CCEStudents->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->QualCertificate2->HrefValue ?>"><?php echo $CCEStudents->QualCertificate2->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $CCEStudents->QualCertificate2->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->QualCertificate3->Visible) { // QualCertificate3 ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->QualCertificate3->FldCaption() ?></td>
<td<?php echo $CCEStudents->QualCertificate3->CellAttributes() ?>>
<?php if ($CCEStudents->QualCertificate3->HrefValue <> "" || $CCEStudents->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->QualCertificate3->HrefValue ?>"><?php echo $CCEStudents->QualCertificate3->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $CCEStudents->QualCertificate3->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->AgreementFile->Visible) { // AgreementFile ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->AgreementFile->FldCaption() ?></td>
<td<?php echo $CCEStudents->AgreementFile->CellAttributes() ?>>
<?php if ($CCEStudents->AgreementFile->HrefValue <> "" || $CCEStudents->AgreementFile->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->AgreementFile->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->AgreementFile->HrefValue ?>"><?php echo $CCEStudents->AgreementFile->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->AgreementFile->Upload->DbValue)) { ?>
<?php echo $CCEStudents->AgreementFile->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MotivationalLetter->Visible) { // MotivationalLetter ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MotivationalLetter->FldCaption() ?></td>
<td<?php echo $CCEStudents->MotivationalLetter->CellAttributes() ?>>
<?php if ($CCEStudents->MotivationalLetter->HrefValue <> "" || $CCEStudents->MotivationalLetter->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->MotivationalLetter->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->MotivationalLetter->HrefValue ?>"><?php echo $CCEStudents->MotivationalLetter->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->MotivationalLetter->Upload->DbValue)) { ?>
<?php echo $CCEStudents->MotivationalLetter->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->PhotoFile->Visible) { // PhotoFile ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->PhotoFile->FldCaption() ?></td>
<td<?php echo $CCEStudents->PhotoFile->CellAttributes() ?>>
<?php if ($CCEStudents->PhotoFile->HrefValue <> "" || $CCEStudents->PhotoFile->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->PhotoFile->Upload->DbValue)) { ?>
<img src="<?php echo ew_UploadPathEx(FALSE, $CCEStudents->PhotoFile->UploadPath) . $CCEStudents->PhotoFile->Upload->DbValue ?>" border=0<?php echo $CCEStudents->PhotoFile->ViewAttributes() ?>>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->PhotoFile->Upload->DbValue)) { ?>
<img src="<?php echo ew_UploadPathEx(FALSE, $CCEStudents->PhotoFile->UploadPath) . $CCEStudents->PhotoFile->Upload->DbValue ?>" border=0<?php echo $CCEStudents->PhotoFile->ViewAttributes() ?>>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OrderNo->Visible) { // OrderNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OrderNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->OrderNo->CellAttributes() ?>>
<div<?php echo $CCEStudents->OrderNo->ViewAttributes() ?>><?php echo $CCEStudents->OrderNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByName->Visible) { // BookedByName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByName->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByName->CellAttributes() ?>>
<div<?php echo $CCEStudents->BookedByName->ViewAttributes() ?>><?php echo $CCEStudents->BookedByName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByDesignation->Visible) { // BookedByDesignation ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByDesignation->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByDesignation->CellAttributes() ?>>
<div<?php echo $CCEStudents->BookedByDesignation->ViewAttributes() ?>><?php echo $CCEStudents->BookedByDesignation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByTelNo->Visible) { // BookedByTelNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByTelNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByTelNo->CellAttributes() ?>>
<div<?php echo $CCEStudents->BookedByTelNo->ViewAttributes() ?>><?php echo $CCEStudents->BookedByTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByFaxNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByFaxNo->CellAttributes() ?>>
<div<?php echo $CCEStudents->BookedByFaxNo->ViewAttributes() ?>><?php echo $CCEStudents->BookedByFaxNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByCellNo->Visible) { // BookedByCellNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByCellNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByCellNo->CellAttributes() ?>>
<div<?php echo $CCEStudents->BookedByCellNo->ViewAttributes() ?>><?php echo $CCEStudents->BookedByCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByEmail->Visible) { // BookedByEmail ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByEmail->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByEmail->CellAttributes() ?>>
<div<?php echo $CCEStudents->BookedByEmail->ViewAttributes() ?>><?php echo $CCEStudents->BookedByEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->WebUsername->FldCaption() ?></td>
<td<?php echo $CCEStudents->WebUsername->CellAttributes() ?>>
<div<?php echo $CCEStudents->WebUsername->ViewAttributes() ?>><?php echo $CCEStudents->WebUsername->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->WebPassword->FldCaption() ?></td>
<td<?php echo $CCEStudents->WebPassword->CellAttributes() ?>>
<div<?php echo $CCEStudents->WebPassword->ViewAttributes() ?>><?php echo $CCEStudents->WebPassword->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorFirstName->Visible) { // MentorFirstName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorFirstName->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorFirstName->CellAttributes() ?>>
<div<?php echo $CCEStudents->MentorFirstName->ViewAttributes() ?>><?php echo $CCEStudents->MentorFirstName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorSurname->Visible) { // MentorSurname ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorSurname->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorSurname->CellAttributes() ?>>
<div<?php echo $CCEStudents->MentorSurname->ViewAttributes() ?>><?php echo $CCEStudents->MentorSurname->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorCompany->Visible) { // MentorCompany ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorCompany->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorCompany->CellAttributes() ?>>
<div<?php echo $CCEStudents->MentorCompany->ViewAttributes() ?>><?php echo $CCEStudents->MentorCompany->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorDesig->Visible) { // MentorDesig ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorDesig->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorDesig->CellAttributes() ?>>
<div<?php echo $CCEStudents->MentorDesig->ViewAttributes() ?>><?php echo $CCEStudents->MentorDesig->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorTel->Visible) { // MentorTel ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorTel->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorTel->CellAttributes() ?>>
<div<?php echo $CCEStudents->MentorTel->ViewAttributes() ?>><?php echo $CCEStudents->MentorTel->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorCell->Visible) { // MentorCell ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorCell->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorCell->CellAttributes() ?>>
<div<?php echo $CCEStudents->MentorCell->ViewAttributes() ?>><?php echo $CCEStudents->MentorCell->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorEmail->Visible) { // MentorEmail ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorEmail->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorEmail->CellAttributes() ?>>
<div<?php echo $CCEStudents->MentorEmail->ViewAttributes() ?>><?php echo $CCEStudents->MentorEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerName->Visible) { // HRManagerName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerName->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerName->CellAttributes() ?>>
<div<?php echo $CCEStudents->HRManagerName->ViewAttributes() ?>><?php echo $CCEStudents->HRManagerName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerDesignation->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerDesignation->CellAttributes() ?>>
<div<?php echo $CCEStudents->HRManagerDesignation->ViewAttributes() ?>><?php echo $CCEStudents->HRManagerDesignation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerTelNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerTelNo->CellAttributes() ?>>
<div<?php echo $CCEStudents->HRManagerTelNo->ViewAttributes() ?>><?php echo $CCEStudents->HRManagerTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerCellNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerCellNo->CellAttributes() ?>>
<div<?php echo $CCEStudents->HRManagerCellNo->ViewAttributes() ?>><?php echo $CCEStudents->HRManagerCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerEmail->Visible) { // HRManagerEmail ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerEmail->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerEmail->CellAttributes() ?>>
<div<?php echo $CCEStudents->HRManagerEmail->ViewAttributes() ?>><?php echo $CCEStudents->HRManagerEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->LengthEmploy->Visible) { // LengthEmploy ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->LengthEmploy->FldCaption() ?></td>
<td<?php echo $CCEStudents->LengthEmploy->CellAttributes() ?>>
<div<?php echo $CCEStudents->LengthEmploy->ViewAttributes() ?>><?php echo $CCEStudents->LengthEmploy->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ResponsiblePayment->Visible) { // ResponsiblePayment ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResponsiblePayment->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResponsiblePayment->CellAttributes() ?>>
<div<?php echo $CCEStudents->ResponsiblePayment->ViewAttributes() ?>><?php echo $CCEStudents->ResponsiblePayment->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BlockAccess->Visible) { // BlockAccess ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BlockAccess->FldCaption() ?></td>
<td<?php echo $CCEStudents->BlockAccess->CellAttributes() ?>>
<div<?php echo $CCEStudents->BlockAccess->ViewAttributes() ?>><?php echo $CCEStudents->BlockAccess->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Accepted->Visible) { // Accepted ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Accepted->FldCaption() ?></td>
<td<?php echo $CCEStudents->Accepted->CellAttributes() ?>>
<div<?php echo $CCEStudents->Accepted->ViewAttributes() ?>><?php echo $CCEStudents->Accepted->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Archived->Visible) { // Archived ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Archived->FldCaption() ?></td>
<td<?php echo $CCEStudents->Archived->CellAttributes() ?>>
<div<?php echo $CCEStudents->Archived->ViewAttributes() ?>><?php echo $CCEStudents->Archived->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Achieved->Visible) { // Achieved ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Achieved->FldCaption() ?></td>
<td<?php echo $CCEStudents->Achieved->CellAttributes() ?>>
<div<?php echo $CCEStudents->Achieved->ViewAttributes() ?>><?php echo $CCEStudents->Achieved->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ResultLetter->Visible) { // ResultLetter ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResultLetter->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResultLetter->CellAttributes() ?>>
<?php if ($CCEStudents->ResultLetter->HrefValue <> "" || $CCEStudents->ResultLetter->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->ResultLetter->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->ResultLetter->HrefValue ?>"><?php echo $CCEStudents->ResultLetter->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->ResultLetter->Upload->DbValue)) { ?>
<?php echo $CCEStudents->ResultLetter->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ReasonForLeaving->Visible) { // ReasonForLeaving ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ReasonForLeaving->FldCaption() ?></td>
<td<?php echo $CCEStudents->ReasonForLeaving->CellAttributes() ?>>
<div<?php echo $CCEStudents->ReasonForLeaving->ViewAttributes() ?>><?php echo $CCEStudents->ReasonForLeaving->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ReasonNotAccepted->Visible) { // ReasonNotAccepted ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ReasonNotAccepted->FldCaption() ?></td>
<td<?php echo $CCEStudents->ReasonNotAccepted->CellAttributes() ?>>
<div<?php echo $CCEStudents->ReasonNotAccepted->ViewAttributes() ?>><?php echo $CCEStudents->ReasonNotAccepted->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ResultComments->Visible) { // ResultComments ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResultComments->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResultComments->CellAttributes() ?>>
<div<?php echo $CCEStudents->ResultComments->ViewAttributes() ?>><?php echo $CCEStudents->ResultComments->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ResultStatus->Visible) { // ResultStatus ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResultStatus->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResultStatus->CellAttributes() ?>>
<div<?php echo $CCEStudents->ResultStatus->ViewAttributes() ?>><?php echo $CCEStudents->ResultStatus->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ModulesEnrolled->Visible) { // ModulesEnrolled ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ModulesEnrolled->FldCaption() ?></td>
<td<?php echo $CCEStudents->ModulesEnrolled->CellAttributes() ?>>
<div<?php echo $CCEStudents->ModulesEnrolled->ViewAttributes() ?>><?php echo $CCEStudents->ModulesEnrolled->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ModulesExcluded->Visible) { // ModulesExcluded ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ModulesExcluded->FldCaption() ?></td>
<td<?php echo $CCEStudents->ModulesExcluded->CellAttributes() ?>>
<div<?php echo $CCEStudents->ModulesExcluded->ViewAttributes() ?>><?php echo $CCEStudents->ModulesExcluded->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Cancelled->Visible) { // Cancelled ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Cancelled->FldCaption() ?></td>
<td<?php echo $CCEStudents->Cancelled->CellAttributes() ?>>
<div<?php echo $CCEStudents->Cancelled->ViewAttributes() ?>><?php echo $CCEStudents->Cancelled->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->CancelledReason->Visible) { // CancelledReason ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CancelledReason->FldCaption() ?></td>
<td<?php echo $CCEStudents->CancelledReason->CellAttributes() ?>>
<div<?php echo $CCEStudents->CancelledReason->ViewAttributes() ?>><?php echo $CCEStudents->CancelledReason->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Trimester1Report->Visible) { // Trimester1Report ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Trimester1Report->FldCaption() ?></td>
<td<?php echo $CCEStudents->Trimester1Report->CellAttributes() ?>>
<?php if ($CCEStudents->Trimester1Report->HrefValue <> "" || $CCEStudents->Trimester1Report->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->Trimester1Report->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->Trimester1Report->HrefValue ?>"><?php echo $CCEStudents->Trimester1Report->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->Trimester1Report->Upload->DbValue)) { ?>
<?php echo $CCEStudents->Trimester1Report->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Trimester2Report->Visible) { // Trimester2Report ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Trimester2Report->FldCaption() ?></td>
<td<?php echo $CCEStudents->Trimester2Report->CellAttributes() ?>>
<?php if ($CCEStudents->Trimester2Report->HrefValue <> "" || $CCEStudents->Trimester2Report->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->Trimester2Report->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->Trimester2Report->HrefValue ?>"><?php echo $CCEStudents->Trimester2Report->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->Trimester2Report->Upload->DbValue)) { ?>
<?php echo $CCEStudents->Trimester2Report->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Trimester3Report->Visible) { // Trimester3Report ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Trimester3Report->FldCaption() ?></td>
<td<?php echo $CCEStudents->Trimester3Report->CellAttributes() ?>>
<?php if ($CCEStudents->Trimester3Report->HrefValue <> "" || $CCEStudents->Trimester3Report->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->Trimester3Report->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->Trimester3Report->HrefValue ?>"><?php echo $CCEStudents->Trimester3Report->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->Trimester3Report->Upload->DbValue)) { ?>
<?php echo $CCEStudents->Trimester3Report->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ExamResultLetter->Visible) { // ExamResultLetter ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ExamResultLetter->FldCaption() ?></td>
<td<?php echo $CCEStudents->ExamResultLetter->CellAttributes() ?>>
<?php if ($CCEStudents->ExamResultLetter->HrefValue <> "" || $CCEStudents->ExamResultLetter->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->ExamResultLetter->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->ExamResultLetter->HrefValue ?>"><?php echo $CCEStudents->ExamResultLetter->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->ExamResultLetter->Upload->DbValue)) { ?>
<?php echo $CCEStudents->ExamResultLetter->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->SupplementalExamLetter->Visible) { // SupplementalExamLetter ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->SupplementalExamLetter->FldCaption() ?></td>
<td<?php echo $CCEStudents->SupplementalExamLetter->CellAttributes() ?>>
<?php if ($CCEStudents->SupplementalExamLetter->HrefValue <> "" || $CCEStudents->SupplementalExamLetter->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->SupplementalExamLetter->HrefValue ?>"><?php echo $CCEStudents->SupplementalExamLetter->ViewValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) { ?>
<?php echo $CCEStudents->SupplementalExamLetter->ViewValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MarketingSource->Visible) { // MarketingSource ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MarketingSource->FldCaption() ?></td>
<td<?php echo $CCEStudents->MarketingSource->CellAttributes() ?>>
<div<?php echo $CCEStudents->MarketingSource->ViewAttributes() ?>><?php echo $CCEStudents->MarketingSource->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MarketingSourceOther->Visible) { // MarketingSourceOther ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MarketingSourceOther->FldCaption() ?></td>
<td<?php echo $CCEStudents->MarketingSourceOther->CellAttributes() ?>>
<div<?php echo $CCEStudents->MarketingSourceOther->ViewAttributes() ?>><?php echo $CCEStudents->MarketingSourceOther->ViewValue ?></div></td>
</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<?php if ($CCEStudents->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($CCEStudents_view->Pager)) $CCEStudents_view->Pager = new cPrevNextPager($CCEStudents_view->lStartRec, $CCEStudents_view->lDisplayRecs, $CCEStudents_view->lTotalRecs) ?>
<?php if ($CCEStudents_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 ($CCEStudents_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $CCEStudents_view->PageUrl() ?>start=<?php echo $CCEStudents_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 ($CCEStudents_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $CCEStudents_view->PageUrl() ?>start=<?php echo $CCEStudents_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 $CCEStudents_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($CCEStudents_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $CCEStudents_view->PageUrl() ?>start=<?php echo $CCEStudents_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 ($CCEStudents_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $CCEStudents_view->PageUrl() ?>start=<?php echo $CCEStudents_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 $CCEStudents_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($CCEStudents_view->sSrchWhere == "0=101") { ?>
<span class="phpmaker"><?php echo $Language->Phrase("EnterSearchCriteria") ?></span>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoRecord") ?></span>
<?php } ?>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoPermission") ?></span>
<?php } ?>
<?php } ?>
</td>
</tr>
</table>
</form>
<?php } ?>
<p>
<?php if ($CCEStudents->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
$CCEStudents_view->Page_Terminate();
?>
<?php
//
// Page class
//
class cCCEStudents_view {
// Page ID
var $PageID = 'view';
// Table name
var $TableName = 'CCEStudents';
// Page object name
var $PageObjName = 'CCEStudents_view';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $CCEStudents;
if ($CCEStudents->UseTokenInUrl) $PageUrl .= "t=" . $CCEStudents->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, $CCEStudents;
if ($CCEStudents->UseTokenInUrl) {
if ($objForm)
return ($CCEStudents->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($CCEStudents->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function __construct() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (CCEStudents)
$GLOBALS["CCEStudents"] = new cCCEStudents();
// Table object (CCEUsers)
$GLOBALS['CCEUsers'] = new cCCEUsers();
// Page ID
if (!defined("EW_PAGE_ID"))
define("EW_PAGE_ID", 'view', TRUE);
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME"))
define("EW_TABLE_NAME", 'CCEStudents', 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 $CCEStudents;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) $Security->AutoLogin();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->TableName);
$Security->TablePermission_Loaded();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
if (!$Security->CanView()) {
$Security->SaveLastUrl();
$this->Page_Terminate("CCEStudentslist.php");
}
// Get export parameters
if (@$_GET["export"] <> "") {
$CCEStudents->Export = $_GET["export"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] <> "")
$CCEStudents->Export = $_POST["exporttype"];
} else {
$CCEStudents->setExportReturnUrl(ew_CurrentUrl());
}
$gsExport = $CCEStudents->Export; // Get export parameter, used in header
$gsExportFile = $CCEStudents->TableVar; // Get export file, used in header
if (@$_GET["CCEStudentID"] <> "") {
if ($gsExportFile <> "") $gsExportFile .= "_";
$gsExportFile .= ew_StripSlashes($_GET["CCEStudentID"]);
}
if ($CCEStudents->Export == "excel") {
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=' . $gsExportFile .'.xls');
}
if ($CCEStudents->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, $CCEStudents;
// Load current record
$bLoadCurrentRecord = FALSE;
$sReturnUrl = "";
$bMatchRecord = FALSE;
if ($this->IsPageRequest()) { // Validate request
if (@$_GET["CCEStudentID"] <> "") {
$CCEStudents->CCEStudentID->setQueryStringValue($_GET["CCEStudentID"]);
$this->arRecKey["CCEStudentID"] = $CCEStudents->CCEStudentID->QueryStringValue;
} else {
$bLoadCurrentRecord = TRUE;
}
// Get action
$CCEStudents->CurrentAction = "I"; // Display form
switch ($CCEStudents->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("CCEStudentslist.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($CCEStudents->CCEStudentID->CurrentValue) == strval($rs->fields('CCEStudentID'))) {
$CCEStudents->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 = "CCEStudentslist.php"; // No matching record, return to list
} else {
$this->LoadRowValues($rs); // Load row values
}
}
// Export data only
if (in_array($CCEStudents->Export, array("html","word","excel","xml","csv","email"))) {
$this->ExportData();
if ($CCEStudents->Export <> "email")
$this->Page_Terminate(); // Terminate response
exit();
}
} else {
$sReturnUrl = "CCEStudentslist.php"; // Not page request, return to list
}
if ($sReturnUrl <> "")
$this->Page_Terminate($sReturnUrl);
// Render row
$CCEStudents->RowType = EW_ROWTYPE_VIEW;
$this->RenderRow();
}
// Set up starting record parameters
function SetUpStartRec() {
global $CCEStudents;
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];
$CCEStudents->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;
}
$CCEStudents->setStartRecordNumber($this->lStartRec);
}
}
}
$this->lStartRec = $CCEStudents->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
$CCEStudents->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
$CCEStudents->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
$CCEStudents->setStartRecordNumber($this->lStartRec);
}
}
// Load recordset
function LoadRecordset($offset = -1, $rowcnt = -1) {
global $conn, $CCEStudents;
// Call Recordset Selecting event
$CCEStudents->Recordset_Selecting($CCEStudents->CurrentFilter);
// Load List page SQL
$sSql = $CCEStudents->SelectSQL();
if ($offset > -1 && $rowcnt > -1)
$sSql .= " LIMIT $offset, $rowcnt";
// Load recordset
$rs = ew_LoadRecordset($sSql);
// Call Recordset Selected event
$CCEStudents->Recordset_Selected($rs);
return $rs;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $CCEStudents;
$sFilter = $CCEStudents->KeyFilter();
// Call Row Selecting event
$CCEStudents->Row_Selecting($sFilter);
// Load SQL based on filter
$CCEStudents->CurrentFilter = $sFilter;
$sSql = $CCEStudents->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$CCEStudents->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $CCEStudents;
$CCEStudents->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
$CCEStudents->Title->setDbValue($rs->fields('Title'));
$CCEStudents->KnownAs->setDbValue($rs->fields('KnownAs'));
$CCEStudents->FirstName->setDbValue($rs->fields('FirstName'));
$CCEStudents->Surname->setDbValue($rs->fields('Surname'));
$CCEStudents->Organisation->setDbValue($rs->fields('Organisation'));
$CCEStudents->OrganisationType->setDbValue($rs->fields('OrganisationType'));
$CCEStudents->Designation->setDbValue($rs->fields('Designation'));
$CCEStudents->Department->setDbValue($rs->fields('Department'));
$CCEStudents->StudentNumber->setDbValue($rs->fields('StudentNumber'));
$CCEStudents->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
$CCEStudents->Project->setDbValue($rs->fields('Project'));
$CCEStudents->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
$CCEStudents->ProjectCode->setDbValue($rs->fields('ProjectCode'));
$CCEStudents->IDNumber->setDbValue($rs->fields('IDNumber'));
$CCEStudents->ECSARegistered->setDbValue($rs->fields('ECSARegistered'));
$CCEStudents->ECSACategory->setDbValue($rs->fields('ECSACategory'));
$CCEStudents->ECSANumber->setDbValue($rs->fields('ECSANumber'));
$CCEStudents->OtherStatutoryBodyRegistered->setDbValue($rs->fields('OtherStatutoryBodyRegistered'));
$CCEStudents->OtherStatutoryBodyName->setDbValue($rs->fields('OtherStatutoryBodyName'));
$CCEStudents->OtherStatutoryBodyNumber->setDbValue($rs->fields('OtherStatutoryBodyNumber'));
$CCEStudents->OtherStatutoryBodyCategory->setDbValue($rs->fields('OtherStatutoryBodyCategory'));
$CCEStudents->CESAMemberFirm->setDbValue($rs->fields('CESAMemberFirm'));
$CCEStudents->SABTACOMemberFirm->setDbValue($rs->fields('SABTACOMemberFirm'));
$CCEStudents->OtherCEFirms->setDbValue($rs->fields('OtherCEFirms'));
$CCEStudents->Age->setDbValue($rs->fields('Age'));
$CCEStudents->HighestQual->setDbValue($rs->fields('HighestQual'));
$CCEStudents->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
$CCEStudents->Telephone->setDbValue($rs->fields('Telephone'));
$CCEStudents->Cellphone->setDbValue($rs->fields('Cellphone'));
$CCEStudents->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$CCEStudents->EmailAddress2->setDbValue($rs->fields('EmailAddress2'));
$CCEStudents->HomeAddress->setDbValue($rs->fields('HomeAddress'));
$CCEStudents->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$CCEStudents->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$CCEStudents->PreferredCourierAddress->setDbValue($rs->fields('PreferredCourierAddress'));
$CCEStudents->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
$CCEStudents->VATNo->setDbValue($rs->fields('VATNo'));
$CCEStudents->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
$CCEStudents->CVFile->Upload->DbValue = $rs->fields('CVFile');
$CCEStudents->IDFile->Upload->DbValue = $rs->fields('IDFile');
$CCEStudents->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
$CCEStudents->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
$CCEStudents->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
$CCEStudents->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
$CCEStudents->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
$CCEStudents->MotivationalLetter->Upload->DbValue = $rs->fields('MotivationalLetter');
$CCEStudents->PhotoFile->Upload->DbValue = $rs->fields('PhotoFile');
$CCEStudents->OrderNo->setDbValue($rs->fields('OrderNo'));
$CCEStudents->BookedByName->setDbValue($rs->fields('BookedByName'));
$CCEStudents->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
$CCEStudents->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
$CCEStudents->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
$CCEStudents->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
$CCEStudents->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
$CCEStudents->WebUsername->setDbValue($rs->fields('WebUsername'));
$CCEStudents->WebPassword->setDbValue($rs->fields('WebPassword'));
$CCEStudents->MentorFirstName->setDbValue($rs->fields('MentorFirstName'));
$CCEStudents->MentorSurname->setDbValue($rs->fields('MentorSurname'));
$CCEStudents->MentorCompany->setDbValue($rs->fields('MentorCompany'));
$CCEStudents->MentorDesig->setDbValue($rs->fields('MentorDesig'));
$CCEStudents->MentorTel->setDbValue($rs->fields('MentorTel'));
$CCEStudents->MentorCell->setDbValue($rs->fields('MentorCell'));
$CCEStudents->MentorEmail->setDbValue($rs->fields('MentorEmail'));
$CCEStudents->HRManagerName->setDbValue($rs->fields('HRManagerName'));
$CCEStudents->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
$CCEStudents->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
$CCEStudents->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
$CCEStudents->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
$CCEStudents->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
$CCEStudents->ResponsiblePayment->setDbValue($rs->fields('ResponsiblePayment'));
$CCEStudents->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$CCEStudents->Accepted->setDbValue($rs->fields('Accepted'));
$CCEStudents->Archived->setDbValue($rs->fields('Archived'));
$CCEStudents->Achieved->setDbValue($rs->fields('Achieved'));
$CCEStudents->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter');
$CCEStudents->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
$CCEStudents->ReasonNotAccepted->setDbValue($rs->fields('ReasonNotAccepted'));
$CCEStudents->MentorName->setDbValue($rs->fields('MentorName'));
$CCEStudents->ResultComments->setDbValue($rs->fields('ResultComments'));
$CCEStudents->ResultStatus->setDbValue($rs->fields('ResultStatus'));
$CCEStudents->ModulesEnrolled->setDbValue($rs->fields('ModulesEnrolled'));
$CCEStudents->ModulesExcluded->setDbValue($rs->fields('ModulesExcluded'));
$CCEStudents->Cancelled->setDbValue($rs->fields('Cancelled'));
$CCEStudents->CancelledReason->setDbValue($rs->fields('CancelledReason'));
$CCEStudents->Trimester1Report->Upload->DbValue = $rs->fields('Trimester1Report');
$CCEStudents->Trimester2Report->Upload->DbValue = $rs->fields('Trimester2Report');
$CCEStudents->Trimester3Report->Upload->DbValue = $rs->fields('Trimester3Report');
$CCEStudents->ExamResultLetter->Upload->DbValue = $rs->fields('ExamResultLetter');
$CCEStudents->SupplementalExamLetter->Upload->DbValue = $rs->fields('SupplementalExamLetter');
$CCEStudents->MarketingSource->setDbValue($rs->fields('MarketingSource'));
$CCEStudents->MarketingSourceOther->setDbValue($rs->fields('MarketingSourceOther'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $CCEStudents;
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print&" . "CCEStudentID=" . urlencode($CCEStudents->CCEStudentID->CurrentValue);
$this->ExportHtmlUrl = $this->PageUrl() . "export=html&" . "CCEStudentID=" . urlencode($CCEStudents->CCEStudentID->CurrentValue);
$this->ExportExcelUrl = $this->PageUrl() . "export=excel&" . "CCEStudentID=" . urlencode($CCEStudents->CCEStudentID->CurrentValue);
$this->ExportWordUrl = $this->PageUrl() . "export=word&" . "CCEStudentID=" . urlencode($CCEStudents->CCEStudentID->CurrentValue);
$this->ExportXmlUrl = $this->PageUrl() . "export=xml&" . "CCEStudentID=" . urlencode($CCEStudents->CCEStudentID->CurrentValue);
$this->ExportCsvUrl = $this->PageUrl() . "export=csv&" . "CCEStudentID=" . urlencode($CCEStudents->CCEStudentID->CurrentValue);
$this->AddUrl = $CCEStudents->AddUrl();
$this->EditUrl = $CCEStudents->EditUrl();
$this->CopyUrl = $CCEStudents->CopyUrl();
$this->DeleteUrl = $CCEStudents->DeleteUrl();
$this->ListUrl = $CCEStudents->ListUrl();
// Call Row_Rendering event
$CCEStudents->Row_Rendering();
// Common render codes for all row types
// Title
$CCEStudents->Title->CellCssStyle = ""; $CCEStudents->Title->CellCssClass = "";
$CCEStudents->Title->CellAttrs = array(); $CCEStudents->Title->ViewAttrs = array(); $CCEStudents->Title->EditAttrs = array();
// KnownAs
$CCEStudents->KnownAs->CellCssStyle = ""; $CCEStudents->KnownAs->CellCssClass = "";
$CCEStudents->KnownAs->CellAttrs = array(); $CCEStudents->KnownAs->ViewAttrs = array(); $CCEStudents->KnownAs->EditAttrs = array();
// FirstName
$CCEStudents->FirstName->CellCssStyle = ""; $CCEStudents->FirstName->CellCssClass = "";
$CCEStudents->FirstName->CellAttrs = array(); $CCEStudents->FirstName->ViewAttrs = array(); $CCEStudents->FirstName->EditAttrs = array();
// Surname
$CCEStudents->Surname->CellCssStyle = ""; $CCEStudents->Surname->CellCssClass = "";
$CCEStudents->Surname->CellAttrs = array(); $CCEStudents->Surname->ViewAttrs = array(); $CCEStudents->Surname->EditAttrs = array();
// Organisation
$CCEStudents->Organisation->CellCssStyle = ""; $CCEStudents->Organisation->CellCssClass = "";
$CCEStudents->Organisation->CellAttrs = array(); $CCEStudents->Organisation->ViewAttrs = array(); $CCEStudents->Organisation->EditAttrs = array();
// OrganisationType
$CCEStudents->OrganisationType->CellCssStyle = ""; $CCEStudents->OrganisationType->CellCssClass = "";
$CCEStudents->OrganisationType->CellAttrs = array(); $CCEStudents->OrganisationType->ViewAttrs = array(); $CCEStudents->OrganisationType->EditAttrs = array();
// Designation
$CCEStudents->Designation->CellCssStyle = ""; $CCEStudents->Designation->CellCssClass = "";
$CCEStudents->Designation->CellAttrs = array(); $CCEStudents->Designation->ViewAttrs = array(); $CCEStudents->Designation->EditAttrs = array();
// Department
$CCEStudents->Department->CellCssStyle = ""; $CCEStudents->Department->CellCssClass = "";
$CCEStudents->Department->CellAttrs = array(); $CCEStudents->Department->ViewAttrs = array(); $CCEStudents->Department->EditAttrs = array();
// StudentNumber
$CCEStudents->StudentNumber->CellCssStyle = ""; $CCEStudents->StudentNumber->CellCssClass = "";
$CCEStudents->StudentNumber->CellAttrs = array(); $CCEStudents->StudentNumber->ViewAttrs = array(); $CCEStudents->StudentNumber->EditAttrs = array();
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->CellCssStyle = ""; $CCEStudents->CCEFacilitatorID->CellCssClass = "";
$CCEStudents->CCEFacilitatorID->CellAttrs = array(); $CCEStudents->CCEFacilitatorID->ViewAttrs = array(); $CCEStudents->CCEFacilitatorID->EditAttrs = array();
// Project
$CCEStudents->Project->CellCssStyle = ""; $CCEStudents->Project->CellCssClass = "";
$CCEStudents->Project->CellAttrs = array(); $CCEStudents->Project->ViewAttrs = array(); $CCEStudents->Project->EditAttrs = array();
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->CellCssStyle = ""; $CCEStudents->ProjectDiscipline->CellCssClass = "";
$CCEStudents->ProjectDiscipline->CellAttrs = array(); $CCEStudents->ProjectDiscipline->ViewAttrs = array(); $CCEStudents->ProjectDiscipline->EditAttrs = array();
// ProjectCode
$CCEStudents->ProjectCode->CellCssStyle = ""; $CCEStudents->ProjectCode->CellCssClass = "";
$CCEStudents->ProjectCode->CellAttrs = array(); $CCEStudents->ProjectCode->ViewAttrs = array(); $CCEStudents->ProjectCode->EditAttrs = array();
// IDNumber
$CCEStudents->IDNumber->CellCssStyle = ""; $CCEStudents->IDNumber->CellCssClass = "";
$CCEStudents->IDNumber->CellAttrs = array(); $CCEStudents->IDNumber->ViewAttrs = array(); $CCEStudents->IDNumber->EditAttrs = array();
// ECSARegistered
$CCEStudents->ECSARegistered->CellCssStyle = ""; $CCEStudents->ECSARegistered->CellCssClass = "";
$CCEStudents->ECSARegistered->CellAttrs = array(); $CCEStudents->ECSARegistered->ViewAttrs = array(); $CCEStudents->ECSARegistered->EditAttrs = array();
// ECSACategory
$CCEStudents->ECSACategory->CellCssStyle = ""; $CCEStudents->ECSACategory->CellCssClass = "";
$CCEStudents->ECSACategory->CellAttrs = array(); $CCEStudents->ECSACategory->ViewAttrs = array(); $CCEStudents->ECSACategory->EditAttrs = array();
// ECSANumber
$CCEStudents->ECSANumber->CellCssStyle = ""; $CCEStudents->ECSANumber->CellCssClass = "";
$CCEStudents->ECSANumber->CellAttrs = array(); $CCEStudents->ECSANumber->ViewAttrs = array(); $CCEStudents->ECSANumber->EditAttrs = array();
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyRegistered->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyRegistered->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyRegistered->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyRegistered->EditAttrs = array();
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyName->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyName->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyName->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyName->EditAttrs = array();
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyNumber->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyNumber->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyNumber->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyNumber->EditAttrs = array();
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyCategory->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyCategory->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyCategory->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyCategory->EditAttrs = array();
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->CellCssStyle = ""; $CCEStudents->CESAMemberFirm->CellCssClass = "";
$CCEStudents->CESAMemberFirm->CellAttrs = array(); $CCEStudents->CESAMemberFirm->ViewAttrs = array(); $CCEStudents->CESAMemberFirm->EditAttrs = array();
// OtherCEFirms
$CCEStudents->OtherCEFirms->CellCssStyle = ""; $CCEStudents->OtherCEFirms->CellCssClass = "";
$CCEStudents->OtherCEFirms->CellAttrs = array(); $CCEStudents->OtherCEFirms->ViewAttrs = array(); $CCEStudents->OtherCEFirms->EditAttrs = array();
// Age
$CCEStudents->Age->CellCssStyle = ""; $CCEStudents->Age->CellCssClass = "";
$CCEStudents->Age->CellAttrs = array(); $CCEStudents->Age->ViewAttrs = array(); $CCEStudents->Age->EditAttrs = array();
// HighestQual
$CCEStudents->HighestQual->CellCssStyle = ""; $CCEStudents->HighestQual->CellCssClass = "";
$CCEStudents->HighestQual->CellAttrs = array(); $CCEStudents->HighestQual->ViewAttrs = array(); $CCEStudents->HighestQual->EditAttrs = array();
// AreaDiscipline
$CCEStudents->AreaDiscipline->CellCssStyle = ""; $CCEStudents->AreaDiscipline->CellCssClass = "";
$CCEStudents->AreaDiscipline->CellAttrs = array(); $CCEStudents->AreaDiscipline->ViewAttrs = array(); $CCEStudents->AreaDiscipline->EditAttrs = array();
// Telephone
$CCEStudents->Telephone->CellCssStyle = ""; $CCEStudents->Telephone->CellCssClass = "";
$CCEStudents->Telephone->CellAttrs = array(); $CCEStudents->Telephone->ViewAttrs = array(); $CCEStudents->Telephone->EditAttrs = array();
// Cellphone
$CCEStudents->Cellphone->CellCssStyle = ""; $CCEStudents->Cellphone->CellCssClass = "";
$CCEStudents->Cellphone->CellAttrs = array(); $CCEStudents->Cellphone->ViewAttrs = array(); $CCEStudents->Cellphone->EditAttrs = array();
// EmailAddress
$CCEStudents->EmailAddress->CellCssStyle = ""; $CCEStudents->EmailAddress->CellCssClass = "";
$CCEStudents->EmailAddress->CellAttrs = array(); $CCEStudents->EmailAddress->ViewAttrs = array(); $CCEStudents->EmailAddress->EditAttrs = array();
// EmailAddress2
$CCEStudents->EmailAddress2->CellCssStyle = ""; $CCEStudents->EmailAddress2->CellCssClass = "";
$CCEStudents->EmailAddress2->CellAttrs = array(); $CCEStudents->EmailAddress2->ViewAttrs = array(); $CCEStudents->EmailAddress2->EditAttrs = array();
// HomeAddress
$CCEStudents->HomeAddress->CellCssStyle = ""; $CCEStudents->HomeAddress->CellCssClass = "";
$CCEStudents->HomeAddress->CellAttrs = array(); $CCEStudents->HomeAddress->ViewAttrs = array(); $CCEStudents->HomeAddress->EditAttrs = array();
// WorkAddress
$CCEStudents->WorkAddress->CellCssStyle = ""; $CCEStudents->WorkAddress->CellCssClass = "";
$CCEStudents->WorkAddress->CellAttrs = array(); $CCEStudents->WorkAddress->ViewAttrs = array(); $CCEStudents->WorkAddress->EditAttrs = array();
// PostalAddress
$CCEStudents->PostalAddress->CellCssStyle = ""; $CCEStudents->PostalAddress->CellCssClass = "";
$CCEStudents->PostalAddress->CellAttrs = array(); $CCEStudents->PostalAddress->ViewAttrs = array(); $CCEStudents->PostalAddress->EditAttrs = array();
// PreferredCourierAddress
$CCEStudents->PreferredCourierAddress->CellCssStyle = ""; $CCEStudents->PreferredCourierAddress->CellCssClass = "";
$CCEStudents->PreferredCourierAddress->CellAttrs = array(); $CCEStudents->PreferredCourierAddress->ViewAttrs = array(); $CCEStudents->PreferredCourierAddress->EditAttrs = array();
// CESAAccountNo
$CCEStudents->CESAAccountNo->CellCssStyle = ""; $CCEStudents->CESAAccountNo->CellCssClass = "";
$CCEStudents->CESAAccountNo->CellAttrs = array(); $CCEStudents->CESAAccountNo->ViewAttrs = array(); $CCEStudents->CESAAccountNo->EditAttrs = array();
// VATNo
$CCEStudents->VATNo->CellCssStyle = ""; $CCEStudents->VATNo->CellCssClass = "";
$CCEStudents->VATNo->CellAttrs = array(); $CCEStudents->VATNo->ViewAttrs = array(); $CCEStudents->VATNo->EditAttrs = array();
// DietaryRequirements
$CCEStudents->DietaryRequirements->CellCssStyle = ""; $CCEStudents->DietaryRequirements->CellCssClass = "";
$CCEStudents->DietaryRequirements->CellAttrs = array(); $CCEStudents->DietaryRequirements->ViewAttrs = array(); $CCEStudents->DietaryRequirements->EditAttrs = array();
// CVFile
$CCEStudents->CVFile->CellCssStyle = ""; $CCEStudents->CVFile->CellCssClass = "";
$CCEStudents->CVFile->CellAttrs = array(); $CCEStudents->CVFile->ViewAttrs = array(); $CCEStudents->CVFile->EditAttrs = array();
// IDFile
$CCEStudents->IDFile->CellCssStyle = ""; $CCEStudents->IDFile->CellCssClass = "";
$CCEStudents->IDFile->CellAttrs = array(); $CCEStudents->IDFile->ViewAttrs = array(); $CCEStudents->IDFile->EditAttrs = array();
// QualCertificate1
$CCEStudents->QualCertificate1->CellCssStyle = ""; $CCEStudents->QualCertificate1->CellCssClass = "";
$CCEStudents->QualCertificate1->CellAttrs = array(); $CCEStudents->QualCertificate1->ViewAttrs = array(); $CCEStudents->QualCertificate1->EditAttrs = array();
// QualCertificate2
$CCEStudents->QualCertificate2->CellCssStyle = ""; $CCEStudents->QualCertificate2->CellCssClass = "";
$CCEStudents->QualCertificate2->CellAttrs = array(); $CCEStudents->QualCertificate2->ViewAttrs = array(); $CCEStudents->QualCertificate2->EditAttrs = array();
// QualCertificate3
$CCEStudents->QualCertificate3->CellCssStyle = ""; $CCEStudents->QualCertificate3->CellCssClass = "";
$CCEStudents->QualCertificate3->CellAttrs = array(); $CCEStudents->QualCertificate3->ViewAttrs = array(); $CCEStudents->QualCertificate3->EditAttrs = array();
// AgreementFile
$CCEStudents->AgreementFile->CellCssStyle = ""; $CCEStudents->AgreementFile->CellCssClass = "";
$CCEStudents->AgreementFile->CellAttrs = array(); $CCEStudents->AgreementFile->ViewAttrs = array(); $CCEStudents->AgreementFile->EditAttrs = array();
// MotivationalLetter
$CCEStudents->MotivationalLetter->CellCssStyle = ""; $CCEStudents->MotivationalLetter->CellCssClass = "";
$CCEStudents->MotivationalLetter->CellAttrs = array(); $CCEStudents->MotivationalLetter->ViewAttrs = array(); $CCEStudents->MotivationalLetter->EditAttrs = array();
// PhotoFile
$CCEStudents->PhotoFile->CellCssStyle = ""; $CCEStudents->PhotoFile->CellCssClass = "";
$CCEStudents->PhotoFile->CellAttrs = array(); $CCEStudents->PhotoFile->ViewAttrs = array(); $CCEStudents->PhotoFile->EditAttrs = array();
// OrderNo
$CCEStudents->OrderNo->CellCssStyle = ""; $CCEStudents->OrderNo->CellCssClass = "";
$CCEStudents->OrderNo->CellAttrs = array(); $CCEStudents->OrderNo->ViewAttrs = array(); $CCEStudents->OrderNo->EditAttrs = array();
// BookedByName
$CCEStudents->BookedByName->CellCssStyle = ""; $CCEStudents->BookedByName->CellCssClass = "";
$CCEStudents->BookedByName->CellAttrs = array(); $CCEStudents->BookedByName->ViewAttrs = array(); $CCEStudents->BookedByName->EditAttrs = array();
// BookedByDesignation
$CCEStudents->BookedByDesignation->CellCssStyle = ""; $CCEStudents->BookedByDesignation->CellCssClass = "";
$CCEStudents->BookedByDesignation->CellAttrs = array(); $CCEStudents->BookedByDesignation->ViewAttrs = array(); $CCEStudents->BookedByDesignation->EditAttrs = array();
// BookedByTelNo
$CCEStudents->BookedByTelNo->CellCssStyle = ""; $CCEStudents->BookedByTelNo->CellCssClass = "";
$CCEStudents->BookedByTelNo->CellAttrs = array(); $CCEStudents->BookedByTelNo->ViewAttrs = array(); $CCEStudents->BookedByTelNo->EditAttrs = array();
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->CellCssStyle = ""; $CCEStudents->BookedByFaxNo->CellCssClass = "";
$CCEStudents->BookedByFaxNo->CellAttrs = array(); $CCEStudents->BookedByFaxNo->ViewAttrs = array(); $CCEStudents->BookedByFaxNo->EditAttrs = array();
// BookedByCellNo
$CCEStudents->BookedByCellNo->CellCssStyle = ""; $CCEStudents->BookedByCellNo->CellCssClass = "";
$CCEStudents->BookedByCellNo->CellAttrs = array(); $CCEStudents->BookedByCellNo->ViewAttrs = array(); $CCEStudents->BookedByCellNo->EditAttrs = array();
// BookedByEmail
$CCEStudents->BookedByEmail->CellCssStyle = ""; $CCEStudents->BookedByEmail->CellCssClass = "";
$CCEStudents->BookedByEmail->CellAttrs = array(); $CCEStudents->BookedByEmail->ViewAttrs = array(); $CCEStudents->BookedByEmail->EditAttrs = array();
// WebUsername
$CCEStudents->WebUsername->CellCssStyle = ""; $CCEStudents->WebUsername->CellCssClass = "";
$CCEStudents->WebUsername->CellAttrs = array(); $CCEStudents->WebUsername->ViewAttrs = array(); $CCEStudents->WebUsername->EditAttrs = array();
// WebPassword
$CCEStudents->WebPassword->CellCssStyle = ""; $CCEStudents->WebPassword->CellCssClass = "";
$CCEStudents->WebPassword->CellAttrs = array(); $CCEStudents->WebPassword->ViewAttrs = array(); $CCEStudents->WebPassword->EditAttrs = array();
// MentorFirstName
$CCEStudents->MentorFirstName->CellCssStyle = ""; $CCEStudents->MentorFirstName->CellCssClass = "";
$CCEStudents->MentorFirstName->CellAttrs = array(); $CCEStudents->MentorFirstName->ViewAttrs = array(); $CCEStudents->MentorFirstName->EditAttrs = array();
// MentorSurname
$CCEStudents->MentorSurname->CellCssStyle = ""; $CCEStudents->MentorSurname->CellCssClass = "";
$CCEStudents->MentorSurname->CellAttrs = array(); $CCEStudents->MentorSurname->ViewAttrs = array(); $CCEStudents->MentorSurname->EditAttrs = array();
// MentorCompany
$CCEStudents->MentorCompany->CellCssStyle = ""; $CCEStudents->MentorCompany->CellCssClass = "";
$CCEStudents->MentorCompany->CellAttrs = array(); $CCEStudents->MentorCompany->ViewAttrs = array(); $CCEStudents->MentorCompany->EditAttrs = array();
// MentorDesig
$CCEStudents->MentorDesig->CellCssStyle = ""; $CCEStudents->MentorDesig->CellCssClass = "";
$CCEStudents->MentorDesig->CellAttrs = array(); $CCEStudents->MentorDesig->ViewAttrs = array(); $CCEStudents->MentorDesig->EditAttrs = array();
// MentorTel
$CCEStudents->MentorTel->CellCssStyle = ""; $CCEStudents->MentorTel->CellCssClass = "";
$CCEStudents->MentorTel->CellAttrs = array(); $CCEStudents->MentorTel->ViewAttrs = array(); $CCEStudents->MentorTel->EditAttrs = array();
// MentorCell
$CCEStudents->MentorCell->CellCssStyle = ""; $CCEStudents->MentorCell->CellCssClass = "";
$CCEStudents->MentorCell->CellAttrs = array(); $CCEStudents->MentorCell->ViewAttrs = array(); $CCEStudents->MentorCell->EditAttrs = array();
// MentorEmail
$CCEStudents->MentorEmail->CellCssStyle = ""; $CCEStudents->MentorEmail->CellCssClass = "";
$CCEStudents->MentorEmail->CellAttrs = array(); $CCEStudents->MentorEmail->ViewAttrs = array(); $CCEStudents->MentorEmail->EditAttrs = array();
// HRManagerName
$CCEStudents->HRManagerName->CellCssStyle = ""; $CCEStudents->HRManagerName->CellCssClass = "";
$CCEStudents->HRManagerName->CellAttrs = array(); $CCEStudents->HRManagerName->ViewAttrs = array(); $CCEStudents->HRManagerName->EditAttrs = array();
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->CellCssStyle = ""; $CCEStudents->HRManagerDesignation->CellCssClass = "";
$CCEStudents->HRManagerDesignation->CellAttrs = array(); $CCEStudents->HRManagerDesignation->ViewAttrs = array(); $CCEStudents->HRManagerDesignation->EditAttrs = array();
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->CellCssStyle = ""; $CCEStudents->HRManagerTelNo->CellCssClass = "";
$CCEStudents->HRManagerTelNo->CellAttrs = array(); $CCEStudents->HRManagerTelNo->ViewAttrs = array(); $CCEStudents->HRManagerTelNo->EditAttrs = array();
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->CellCssStyle = ""; $CCEStudents->HRManagerCellNo->CellCssClass = "";
$CCEStudents->HRManagerCellNo->CellAttrs = array(); $CCEStudents->HRManagerCellNo->ViewAttrs = array(); $CCEStudents->HRManagerCellNo->EditAttrs = array();
// HRManagerEmail
$CCEStudents->HRManagerEmail->CellCssStyle = ""; $CCEStudents->HRManagerEmail->CellCssClass = "";
$CCEStudents->HRManagerEmail->CellAttrs = array(); $CCEStudents->HRManagerEmail->ViewAttrs = array(); $CCEStudents->HRManagerEmail->EditAttrs = array();
// LengthEmploy
$CCEStudents->LengthEmploy->CellCssStyle = ""; $CCEStudents->LengthEmploy->CellCssClass = "";
$CCEStudents->LengthEmploy->CellAttrs = array(); $CCEStudents->LengthEmploy->ViewAttrs = array(); $CCEStudents->LengthEmploy->EditAttrs = array();
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->CellCssStyle = ""; $CCEStudents->ResponsiblePayment->CellCssClass = "";
$CCEStudents->ResponsiblePayment->CellAttrs = array(); $CCEStudents->ResponsiblePayment->ViewAttrs = array(); $CCEStudents->ResponsiblePayment->EditAttrs = array();
// BlockAccess
$CCEStudents->BlockAccess->CellCssStyle = ""; $CCEStudents->BlockAccess->CellCssClass = "";
$CCEStudents->BlockAccess->CellAttrs = array(); $CCEStudents->BlockAccess->ViewAttrs = array(); $CCEStudents->BlockAccess->EditAttrs = array();
// Accepted
$CCEStudents->Accepted->CellCssStyle = ""; $CCEStudents->Accepted->CellCssClass = "";
$CCEStudents->Accepted->CellAttrs = array(); $CCEStudents->Accepted->ViewAttrs = array(); $CCEStudents->Accepted->EditAttrs = array();
// Archived
$CCEStudents->Archived->CellCssStyle = ""; $CCEStudents->Archived->CellCssClass = "";
$CCEStudents->Archived->CellAttrs = array(); $CCEStudents->Archived->ViewAttrs = array(); $CCEStudents->Archived->EditAttrs = array();
// Achieved
$CCEStudents->Achieved->CellCssStyle = ""; $CCEStudents->Achieved->CellCssClass = "";
$CCEStudents->Achieved->CellAttrs = array(); $CCEStudents->Achieved->ViewAttrs = array(); $CCEStudents->Achieved->EditAttrs = array();
// ResultLetter
$CCEStudents->ResultLetter->CellCssStyle = ""; $CCEStudents->ResultLetter->CellCssClass = "";
$CCEStudents->ResultLetter->CellAttrs = array(); $CCEStudents->ResultLetter->ViewAttrs = array(); $CCEStudents->ResultLetter->EditAttrs = array();
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->CellCssStyle = ""; $CCEStudents->ReasonForLeaving->CellCssClass = "";
$CCEStudents->ReasonForLeaving->CellAttrs = array(); $CCEStudents->ReasonForLeaving->ViewAttrs = array(); $CCEStudents->ReasonForLeaving->EditAttrs = array();
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->CellCssStyle = ""; $CCEStudents->ReasonNotAccepted->CellCssClass = "";
$CCEStudents->ReasonNotAccepted->CellAttrs = array(); $CCEStudents->ReasonNotAccepted->ViewAttrs = array(); $CCEStudents->ReasonNotAccepted->EditAttrs = array();
// ResultComments
$CCEStudents->ResultComments->CellCssStyle = ""; $CCEStudents->ResultComments->CellCssClass = "";
$CCEStudents->ResultComments->CellAttrs = array(); $CCEStudents->ResultComments->ViewAttrs = array(); $CCEStudents->ResultComments->EditAttrs = array();
// ResultStatus
$CCEStudents->ResultStatus->CellCssStyle = ""; $CCEStudents->ResultStatus->CellCssClass = "";
$CCEStudents->ResultStatus->CellAttrs = array(); $CCEStudents->ResultStatus->ViewAttrs = array(); $CCEStudents->ResultStatus->EditAttrs = array();
// ModulesEnrolled
$CCEStudents->ModulesEnrolled->CellCssStyle = ""; $CCEStudents->ModulesEnrolled->CellCssClass = "";
$CCEStudents->ModulesEnrolled->CellAttrs = array(); $CCEStudents->ModulesEnrolled->ViewAttrs = array(); $CCEStudents->ModulesEnrolled->EditAttrs = array();
// ModulesExcluded
$CCEStudents->ModulesExcluded->CellCssStyle = ""; $CCEStudents->ModulesExcluded->CellCssClass = "";
$CCEStudents->ModulesExcluded->CellAttrs = array(); $CCEStudents->ModulesExcluded->ViewAttrs = array(); $CCEStudents->ModulesExcluded->EditAttrs = array();
// Cancelled
$CCEStudents->Cancelled->CellCssStyle = ""; $CCEStudents->Cancelled->CellCssClass = "";
$CCEStudents->Cancelled->CellAttrs = array(); $CCEStudents->Cancelled->ViewAttrs = array(); $CCEStudents->Cancelled->EditAttrs = array();
// CancelledReason
$CCEStudents->CancelledReason->CellCssStyle = ""; $CCEStudents->CancelledReason->CellCssClass = "";
$CCEStudents->CancelledReason->CellAttrs = array(); $CCEStudents->CancelledReason->ViewAttrs = array(); $CCEStudents->CancelledReason->EditAttrs = array();
// Trimester1Report
$CCEStudents->Trimester1Report->CellCssStyle = ""; $CCEStudents->Trimester1Report->CellCssClass = "";
$CCEStudents->Trimester1Report->CellAttrs = array(); $CCEStudents->Trimester1Report->ViewAttrs = array(); $CCEStudents->Trimester1Report->EditAttrs = array();
// Trimester2Report
$CCEStudents->Trimester2Report->CellCssStyle = ""; $CCEStudents->Trimester2Report->CellCssClass = "";
$CCEStudents->Trimester2Report->CellAttrs = array(); $CCEStudents->Trimester2Report->ViewAttrs = array(); $CCEStudents->Trimester2Report->EditAttrs = array();
// Trimester3Report
$CCEStudents->Trimester3Report->CellCssStyle = ""; $CCEStudents->Trimester3Report->CellCssClass = "";
$CCEStudents->Trimester3Report->CellAttrs = array(); $CCEStudents->Trimester3Report->ViewAttrs = array(); $CCEStudents->Trimester3Report->EditAttrs = array();
// ExamResultLetter
$CCEStudents->ExamResultLetter->CellCssStyle = ""; $CCEStudents->ExamResultLetter->CellCssClass = "";
$CCEStudents->ExamResultLetter->CellAttrs = array(); $CCEStudents->ExamResultLetter->ViewAttrs = array(); $CCEStudents->ExamResultLetter->EditAttrs = array();
// SupplementalExamLetter
$CCEStudents->SupplementalExamLetter->CellCssStyle = ""; $CCEStudents->SupplementalExamLetter->CellCssClass = "";
$CCEStudents->SupplementalExamLetter->CellAttrs = array(); $CCEStudents->SupplementalExamLetter->ViewAttrs = array(); $CCEStudents->SupplementalExamLetter->EditAttrs = array();
// MarketingSource
$CCEStudents->MarketingSource->CellCssStyle = ""; $CCEStudents->MarketingSource->CellCssClass = "";
$CCEStudents->MarketingSource->CellAttrs = array(); $CCEStudents->MarketingSource->ViewAttrs = array(); $CCEStudents->MarketingSource->EditAttrs = array();
// MarketingSourceOther
$CCEStudents->MarketingSourceOther->CellCssStyle = ""; $CCEStudents->MarketingSourceOther->CellCssClass = "";
$CCEStudents->MarketingSourceOther->CellAttrs = array(); $CCEStudents->MarketingSourceOther->ViewAttrs = array(); $CCEStudents->MarketingSourceOther->EditAttrs = array();
if ($CCEStudents->RowType == EW_ROWTYPE_VIEW) { // View row
// Title
$CCEStudents->Title->ViewValue = $CCEStudents->Title->CurrentValue;
$CCEStudents->Title->CssStyle = "";
$CCEStudents->Title->CssClass = "";
$CCEStudents->Title->ViewCustomAttributes = "";
// KnownAs
$CCEStudents->KnownAs->ViewValue = $CCEStudents->KnownAs->CurrentValue;
$CCEStudents->KnownAs->CssStyle = "";
$CCEStudents->KnownAs->CssClass = "";
$CCEStudents->KnownAs->ViewCustomAttributes = "";
// FirstName
$CCEStudents->FirstName->ViewValue = $CCEStudents->FirstName->CurrentValue;
$CCEStudents->FirstName->CssStyle = "";
$CCEStudents->FirstName->CssClass = "";
$CCEStudents->FirstName->ViewCustomAttributes = "";
// Surname
$CCEStudents->Surname->ViewValue = $CCEStudents->Surname->CurrentValue;
$CCEStudents->Surname->CssStyle = "";
$CCEStudents->Surname->CssClass = "";
$CCEStudents->Surname->ViewCustomAttributes = "";
// Organisation
$CCEStudents->Organisation->ViewValue = $CCEStudents->Organisation->CurrentValue;
$CCEStudents->Organisation->CssStyle = "";
$CCEStudents->Organisation->CssClass = "";
$CCEStudents->Organisation->ViewCustomAttributes = "";
// OrganisationType
$CCEStudents->OrganisationType->ViewValue = $CCEStudents->OrganisationType->CurrentValue;
$CCEStudents->OrganisationType->CssStyle = "";
$CCEStudents->OrganisationType->CssClass = "";
$CCEStudents->OrganisationType->ViewCustomAttributes = "";
// Designation
$CCEStudents->Designation->ViewValue = $CCEStudents->Designation->CurrentValue;
$CCEStudents->Designation->CssStyle = "";
$CCEStudents->Designation->CssClass = "";
$CCEStudents->Designation->ViewCustomAttributes = "";
// Department
$CCEStudents->Department->ViewValue = $CCEStudents->Department->CurrentValue;
$CCEStudents->Department->CssStyle = "";
$CCEStudents->Department->CssClass = "";
$CCEStudents->Department->ViewCustomAttributes = "";
// StudentNumber
$CCEStudents->StudentNumber->ViewValue = $CCEStudents->StudentNumber->CurrentValue;
$CCEStudents->StudentNumber->CssStyle = "";
$CCEStudents->StudentNumber->CssClass = "";
$CCEStudents->StudentNumber->ViewCustomAttributes = "";
// CCEFacilitatorID
if (strval($CCEStudents->CCEFacilitatorID->CurrentValue) <> "") {
$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($CCEStudents->CCEFacilitatorID->CurrentValue) . "";
$sSqlWrk = "SELECT `FacilitatorName` FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "Archived=0" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
$rswrk->Close();
} else {
$CCEStudents->CCEFacilitatorID->ViewValue = $CCEStudents->CCEFacilitatorID->CurrentValue;
}
} else {
$CCEStudents->CCEFacilitatorID->ViewValue = NULL;
}
$CCEStudents->CCEFacilitatorID->CssStyle = "";
$CCEStudents->CCEFacilitatorID->CssClass = "";
$CCEStudents->CCEFacilitatorID->ViewCustomAttributes = "";
// Project
if (strval($CCEStudents->Project->CurrentValue) <> "") {
$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($CCEStudents->Project->CurrentValue) . "";
$sSqlWrk = "SELECT `Project` FROM `CCEProjects`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->Project->ViewValue = $rswrk->fields('Project');
$rswrk->Close();
} else {
$CCEStudents->Project->ViewValue = $CCEStudents->Project->CurrentValue;
}
} else {
$CCEStudents->Project->ViewValue = NULL;
}
$CCEStudents->Project->CssStyle = "";
$CCEStudents->Project->CssClass = "";
$CCEStudents->Project->ViewCustomAttributes = "";
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->ViewValue = $CCEStudents->ProjectDiscipline->CurrentValue;
$CCEStudents->ProjectDiscipline->CssStyle = "";
$CCEStudents->ProjectDiscipline->CssClass = "";
$CCEStudents->ProjectDiscipline->ViewCustomAttributes = "";
// ProjectCode
$CCEStudents->ProjectCode->ViewValue = $CCEStudents->ProjectCode->CurrentValue;
$CCEStudents->ProjectCode->CssStyle = "";
$CCEStudents->ProjectCode->CssClass = "";
$CCEStudents->ProjectCode->ViewCustomAttributes = "";
// IDNumber
$CCEStudents->IDNumber->ViewValue = $CCEStudents->IDNumber->CurrentValue;
$CCEStudents->IDNumber->CssStyle = "";
$CCEStudents->IDNumber->CssClass = "";
$CCEStudents->IDNumber->ViewCustomAttributes = "mso-number-format:General";
// ECSARegistered
if (strval($CCEStudents->ECSARegistered->CurrentValue) <> "") {
switch ($CCEStudents->ECSARegistered->CurrentValue) {
case "y":
$CCEStudents->ECSARegistered->ViewValue = "Yes";
break;
case "n":
$CCEStudents->ECSARegistered->ViewValue = "No";
break;
default:
$CCEStudents->ECSARegistered->ViewValue = $CCEStudents->ECSARegistered->CurrentValue;
}
} else {
$CCEStudents->ECSARegistered->ViewValue = NULL;
}
$CCEStudents->ECSARegistered->CssStyle = "";
$CCEStudents->ECSARegistered->CssClass = "";
$CCEStudents->ECSARegistered->ViewCustomAttributes = "";
// ECSACategory
if (strval($CCEStudents->ECSACategory->CurrentValue) <> "") {
$sFilterWrk = "`PicklistValue` = '" . ew_AdjustSql($CCEStudents->ECSACategory->CurrentValue) . "'";
$sSqlWrk = "SELECT `PicklistLabel` FROM `Picklists`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "`Picklists`.`PicklistType` = 'ECSA Registration Categories'" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->ECSACategory->ViewValue = $rswrk->fields('PicklistLabel');
$rswrk->Close();
} else {
$CCEStudents->ECSACategory->ViewValue = $CCEStudents->ECSACategory->CurrentValue;
}
} else {
$CCEStudents->ECSACategory->ViewValue = NULL;
}
$CCEStudents->ECSACategory->CssStyle = "";
$CCEStudents->ECSACategory->CssClass = "";
$CCEStudents->ECSACategory->ViewCustomAttributes = "";
// ECSANumber
$CCEStudents->ECSANumber->ViewValue = $CCEStudents->ECSANumber->CurrentValue;
$CCEStudents->ECSANumber->CssStyle = "";
$CCEStudents->ECSANumber->CssClass = "";
$CCEStudents->ECSANumber->ViewCustomAttributes = "";
// OtherStatutoryBodyRegistered
if (strval($CCEStudents->OtherStatutoryBodyRegistered->CurrentValue) <> "") {
switch ($CCEStudents->OtherStatutoryBodyRegistered->CurrentValue) {
case "1":
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = "Yes";
break;
case "0":
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = "No";
break;
default:
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = $CCEStudents->OtherStatutoryBodyRegistered->CurrentValue;
}
} else {
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = NULL;
}
$CCEStudents->OtherStatutoryBodyRegistered->CssStyle = "";
$CCEStudents->OtherStatutoryBodyRegistered->CssClass = "";
$CCEStudents->OtherStatutoryBodyRegistered->ViewCustomAttributes = "";
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->ViewValue = $CCEStudents->OtherStatutoryBodyName->CurrentValue;
$CCEStudents->OtherStatutoryBodyName->CssStyle = "";
$CCEStudents->OtherStatutoryBodyName->CssClass = "";
$CCEStudents->OtherStatutoryBodyName->ViewCustomAttributes = "";
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->ViewValue = $CCEStudents->OtherStatutoryBodyNumber->CurrentValue;
$CCEStudents->OtherStatutoryBodyNumber->CssStyle = "";
$CCEStudents->OtherStatutoryBodyNumber->CssClass = "";
$CCEStudents->OtherStatutoryBodyNumber->ViewCustomAttributes = "";
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->ViewValue = $CCEStudents->OtherStatutoryBodyCategory->CurrentValue;
$CCEStudents->OtherStatutoryBodyCategory->CssStyle = "";
$CCEStudents->OtherStatutoryBodyCategory->CssClass = "";
$CCEStudents->OtherStatutoryBodyCategory->ViewCustomAttributes = "";
// CESAMemberFirm
if (strval($CCEStudents->CESAMemberFirm->CurrentValue) <> "") {
switch ($CCEStudents->CESAMemberFirm->CurrentValue) {
case "y":
$CCEStudents->CESAMemberFirm->ViewValue = "Yes";
break;
case "n":
$CCEStudents->CESAMemberFirm->ViewValue = "No";
break;
default:
$CCEStudents->CESAMemberFirm->ViewValue = $CCEStudents->CESAMemberFirm->CurrentValue;
}
} else {
$CCEStudents->CESAMemberFirm->ViewValue = NULL;
}
$CCEStudents->CESAMemberFirm->CssStyle = "";
$CCEStudents->CESAMemberFirm->CssClass = "";
$CCEStudents->CESAMemberFirm->ViewCustomAttributes = "";
// OtherCEFirms
$CCEStudents->OtherCEFirms->ViewValue = $CCEStudents->OtherCEFirms->CurrentValue;
$CCEStudents->OtherCEFirms->CssStyle = "";
$CCEStudents->OtherCEFirms->CssClass = "";
$CCEStudents->OtherCEFirms->ViewCustomAttributes = "";
// Age
$CCEStudents->Age->ViewValue = $CCEStudents->Age->CurrentValue;
$CCEStudents->Age->CssStyle = "";
$CCEStudents->Age->CssClass = "";
$CCEStudents->Age->ViewCustomAttributes = "";
// HighestQual
$CCEStudents->HighestQual->ViewValue = $CCEStudents->HighestQual->CurrentValue;
$CCEStudents->HighestQual->CssStyle = "";
$CCEStudents->HighestQual->CssClass = "";
$CCEStudents->HighestQual->ViewCustomAttributes = "";
// AreaDiscipline
$CCEStudents->AreaDiscipline->ViewValue = $CCEStudents->AreaDiscipline->CurrentValue;
$CCEStudents->AreaDiscipline->CssStyle = "";
$CCEStudents->AreaDiscipline->CssClass = "";
$CCEStudents->AreaDiscipline->ViewCustomAttributes = "";
// Telephone
$CCEStudents->Telephone->ViewValue = $CCEStudents->Telephone->CurrentValue;
$CCEStudents->Telephone->CssStyle = "";
$CCEStudents->Telephone->CssClass = "";
$CCEStudents->Telephone->ViewCustomAttributes = "mso-number-format:General";
// Cellphone
$CCEStudents->Cellphone->ViewValue = $CCEStudents->Cellphone->CurrentValue;
$CCEStudents->Cellphone->CssStyle = "";
$CCEStudents->Cellphone->CssClass = "";
$CCEStudents->Cellphone->ViewCustomAttributes = "mso-number-format:General";
// EmailAddress
$CCEStudents->EmailAddress->ViewValue = $CCEStudents->EmailAddress->CurrentValue;
$CCEStudents->EmailAddress->CssStyle = "";
$CCEStudents->EmailAddress->CssClass = "";
$CCEStudents->EmailAddress->ViewCustomAttributes = "";
// EmailAddress2
$CCEStudents->EmailAddress2->ViewValue = $CCEStudents->EmailAddress2->CurrentValue;
$CCEStudents->EmailAddress2->CssStyle = "";
$CCEStudents->EmailAddress2->CssClass = "";
$CCEStudents->EmailAddress2->ViewCustomAttributes = "";
// HomeAddress
$CCEStudents->HomeAddress->ViewValue = $CCEStudents->HomeAddress->CurrentValue;
$CCEStudents->HomeAddress->CssStyle = "";
$CCEStudents->HomeAddress->CssClass = "";
$CCEStudents->HomeAddress->ViewCustomAttributes = "";
// WorkAddress
$CCEStudents->WorkAddress->ViewValue = $CCEStudents->WorkAddress->CurrentValue;
$CCEStudents->WorkAddress->CssStyle = "";
$CCEStudents->WorkAddress->CssClass = "";
$CCEStudents->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$CCEStudents->PostalAddress->ViewValue = $CCEStudents->PostalAddress->CurrentValue;
$CCEStudents->PostalAddress->CssStyle = "";
$CCEStudents->PostalAddress->CssClass = "";
$CCEStudents->PostalAddress->ViewCustomAttributes = "";
// PreferredCourierAddress
if (strval($CCEStudents->PreferredCourierAddress->CurrentValue) <> "") {
switch ($CCEStudents->PreferredCourierAddress->CurrentValue) {
case "Home":
$CCEStudents->PreferredCourierAddress->ViewValue = "Home";
break;
case "Work":
$CCEStudents->PreferredCourierAddress->ViewValue = "Work";
break;
default:
$CCEStudents->PreferredCourierAddress->ViewValue = $CCEStudents->PreferredCourierAddress->CurrentValue;
}
} else {
$CCEStudents->PreferredCourierAddress->ViewValue = NULL;
}
$CCEStudents->PreferredCourierAddress->CssStyle = "";
$CCEStudents->PreferredCourierAddress->CssClass = "";
$CCEStudents->PreferredCourierAddress->ViewCustomAttributes = "";
// CESAAccountNo
$CCEStudents->CESAAccountNo->ViewValue = $CCEStudents->CESAAccountNo->CurrentValue;
$CCEStudents->CESAAccountNo->CssStyle = "";
$CCEStudents->CESAAccountNo->CssClass = "";
$CCEStudents->CESAAccountNo->ViewCustomAttributes = "";
// VATNo
$CCEStudents->VATNo->ViewValue = $CCEStudents->VATNo->CurrentValue;
$CCEStudents->VATNo->CssStyle = "";
$CCEStudents->VATNo->CssClass = "";
$CCEStudents->VATNo->ViewCustomAttributes = "mso-number-format:General";
// DietaryRequirements
$CCEStudents->DietaryRequirements->ViewValue = $CCEStudents->DietaryRequirements->CurrentValue;
$CCEStudents->DietaryRequirements->CssStyle = "";
$CCEStudents->DietaryRequirements->CssClass = "";
$CCEStudents->DietaryRequirements->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($CCEStudents->CVFile->Upload->DbValue)) {
$CCEStudents->CVFile->ViewValue = $CCEStudents->CVFile->Upload->DbValue;
} else {
$CCEStudents->CVFile->ViewValue = "";
}
$CCEStudents->CVFile->CssStyle = "";
$CCEStudents->CVFile->CssClass = "";
$CCEStudents->CVFile->ViewCustomAttributes = "";
// IDFile
if (!ew_Empty($CCEStudents->IDFile->Upload->DbValue)) {
$CCEStudents->IDFile->ViewValue = $CCEStudents->IDFile->Upload->DbValue;
} else {
$CCEStudents->IDFile->ViewValue = "";
}
$CCEStudents->IDFile->CssStyle = "";
$CCEStudents->IDFile->CssClass = "";
$CCEStudents->IDFile->ViewCustomAttributes = "";
// QualCertificate1
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->DbValue)) {
$CCEStudents->QualCertificate1->ViewValue = $CCEStudents->QualCertificate1->Upload->DbValue;
} else {
$CCEStudents->QualCertificate1->ViewValue = "";
}
$CCEStudents->QualCertificate1->CssStyle = "";
$CCEStudents->QualCertificate1->CssClass = "";
$CCEStudents->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->DbValue)) {
$CCEStudents->QualCertificate2->ViewValue = $CCEStudents->QualCertificate2->Upload->DbValue;
} else {
$CCEStudents->QualCertificate2->ViewValue = "";
}
$CCEStudents->QualCertificate2->CssStyle = "";
$CCEStudents->QualCertificate2->CssClass = "";
$CCEStudents->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->DbValue)) {
$CCEStudents->QualCertificate3->ViewValue = $CCEStudents->QualCertificate3->Upload->DbValue;
} else {
$CCEStudents->QualCertificate3->ViewValue = "";
}
$CCEStudents->QualCertificate3->CssStyle = "";
$CCEStudents->QualCertificate3->CssClass = "";
$CCEStudents->QualCertificate3->ViewCustomAttributes = "";
// AgreementFile
if (!ew_Empty($CCEStudents->AgreementFile->Upload->DbValue)) {
$CCEStudents->AgreementFile->ViewValue = $CCEStudents->AgreementFile->Upload->DbValue;
} else {
$CCEStudents->AgreementFile->ViewValue = "";
}
$CCEStudents->AgreementFile->CssStyle = "";
$CCEStudents->AgreementFile->CssClass = "";
$CCEStudents->AgreementFile->ViewCustomAttributes = "";
// MotivationalLetter
if (!ew_Empty($CCEStudents->MotivationalLetter->Upload->DbValue)) {
$CCEStudents->MotivationalLetter->ViewValue = $CCEStudents->MotivationalLetter->Upload->DbValue;
} else {
$CCEStudents->MotivationalLetter->ViewValue = "";
}
$CCEStudents->MotivationalLetter->CssStyle = "";
$CCEStudents->MotivationalLetter->CssClass = "";
$CCEStudents->MotivationalLetter->ViewCustomAttributes = "";
// PhotoFile
if (!ew_Empty($CCEStudents->PhotoFile->Upload->DbValue)) {
$CCEStudents->PhotoFile->ViewValue = $CCEStudents->PhotoFile->Upload->DbValue;
$CCEStudents->PhotoFile->ImageWidth = 200;
$CCEStudents->PhotoFile->ImageHeight = 0;
$CCEStudents->PhotoFile->ImageAlt = $CCEStudents->PhotoFile->FldAlt();
} else {
$CCEStudents->PhotoFile->ViewValue = "";
}
$CCEStudents->PhotoFile->CssStyle = "";
$CCEStudents->PhotoFile->CssClass = "";
$CCEStudents->PhotoFile->ViewCustomAttributes = "";
// OrderNo
$CCEStudents->OrderNo->ViewValue = $CCEStudents->OrderNo->CurrentValue;
$CCEStudents->OrderNo->CssStyle = "";
$CCEStudents->OrderNo->CssClass = "";
$CCEStudents->OrderNo->ViewCustomAttributes = "";
// BookedByName
$CCEStudents->BookedByName->ViewValue = $CCEStudents->BookedByName->CurrentValue;
$CCEStudents->BookedByName->CssStyle = "";
$CCEStudents->BookedByName->CssClass = "";
$CCEStudents->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$CCEStudents->BookedByDesignation->ViewValue = $CCEStudents->BookedByDesignation->CurrentValue;
$CCEStudents->BookedByDesignation->CssStyle = "";
$CCEStudents->BookedByDesignation->CssClass = "";
$CCEStudents->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$CCEStudents->BookedByTelNo->ViewValue = $CCEStudents->BookedByTelNo->CurrentValue;
$CCEStudents->BookedByTelNo->CssStyle = "";
$CCEStudents->BookedByTelNo->CssClass = "";
$CCEStudents->BookedByTelNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->ViewValue = $CCEStudents->BookedByFaxNo->CurrentValue;
$CCEStudents->BookedByFaxNo->CssStyle = "";
$CCEStudents->BookedByFaxNo->CssClass = "";
$CCEStudents->BookedByFaxNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByCellNo
$CCEStudents->BookedByCellNo->ViewValue = $CCEStudents->BookedByCellNo->CurrentValue;
$CCEStudents->BookedByCellNo->CssStyle = "";
$CCEStudents->BookedByCellNo->CssClass = "";
$CCEStudents->BookedByCellNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByEmail
$CCEStudents->BookedByEmail->ViewValue = $CCEStudents->BookedByEmail->CurrentValue;
$CCEStudents->BookedByEmail->CssStyle = "";
$CCEStudents->BookedByEmail->CssClass = "";
$CCEStudents->BookedByEmail->ViewCustomAttributes = "";
// WebUsername
$CCEStudents->WebUsername->ViewValue = $CCEStudents->WebUsername->CurrentValue;
$CCEStudents->WebUsername->CssStyle = "";
$CCEStudents->WebUsername->CssClass = "";
$CCEStudents->WebUsername->ViewCustomAttributes = "";
// WebPassword
$CCEStudents->WebPassword->ViewValue = $CCEStudents->WebPassword->CurrentValue;
$CCEStudents->WebPassword->CssStyle = "";
$CCEStudents->WebPassword->CssClass = "";
$CCEStudents->WebPassword->ViewCustomAttributes = "";
// MentorFirstName
$CCEStudents->MentorFirstName->ViewValue = $CCEStudents->MentorFirstName->CurrentValue;
$CCEStudents->MentorFirstName->CssStyle = "";
$CCEStudents->MentorFirstName->CssClass = "";
$CCEStudents->MentorFirstName->ViewCustomAttributes = "";
// MentorSurname
$CCEStudents->MentorSurname->ViewValue = $CCEStudents->MentorSurname->CurrentValue;
$CCEStudents->MentorSurname->CssStyle = "";
$CCEStudents->MentorSurname->CssClass = "";
$CCEStudents->MentorSurname->ViewCustomAttributes = "";
// MentorCompany
$CCEStudents->MentorCompany->ViewValue = $CCEStudents->MentorCompany->CurrentValue;
$CCEStudents->MentorCompany->CssStyle = "";
$CCEStudents->MentorCompany->CssClass = "";
$CCEStudents->MentorCompany->ViewCustomAttributes = "";
// MentorDesig
$CCEStudents->MentorDesig->ViewValue = $CCEStudents->MentorDesig->CurrentValue;
$CCEStudents->MentorDesig->CssStyle = "";
$CCEStudents->MentorDesig->CssClass = "";
$CCEStudents->MentorDesig->ViewCustomAttributes = "";
// MentorTel
$CCEStudents->MentorTel->ViewValue = $CCEStudents->MentorTel->CurrentValue;
$CCEStudents->MentorTel->CssStyle = "";
$CCEStudents->MentorTel->CssClass = "";
$CCEStudents->MentorTel->ViewCustomAttributes = "";
// MentorCell
$CCEStudents->MentorCell->ViewValue = $CCEStudents->MentorCell->CurrentValue;
$CCEStudents->MentorCell->CssStyle = "";
$CCEStudents->MentorCell->CssClass = "";
$CCEStudents->MentorCell->ViewCustomAttributes = "";
// MentorEmail
$CCEStudents->MentorEmail->ViewValue = $CCEStudents->MentorEmail->CurrentValue;
$CCEStudents->MentorEmail->CssStyle = "";
$CCEStudents->MentorEmail->CssClass = "";
$CCEStudents->MentorEmail->ViewCustomAttributes = "";
// HRManagerName
$CCEStudents->HRManagerName->ViewValue = $CCEStudents->HRManagerName->CurrentValue;
$CCEStudents->HRManagerName->CssStyle = "";
$CCEStudents->HRManagerName->CssClass = "";
$CCEStudents->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->ViewValue = $CCEStudents->HRManagerDesignation->CurrentValue;
$CCEStudents->HRManagerDesignation->CssStyle = "";
$CCEStudents->HRManagerDesignation->CssClass = "";
$CCEStudents->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->ViewValue = $CCEStudents->HRManagerTelNo->CurrentValue;
$CCEStudents->HRManagerTelNo->CssStyle = "";
$CCEStudents->HRManagerTelNo->CssClass = "";
$CCEStudents->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->ViewValue = $CCEStudents->HRManagerCellNo->CurrentValue;
$CCEStudents->HRManagerCellNo->CssStyle = "";
$CCEStudents->HRManagerCellNo->CssClass = "";
$CCEStudents->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$CCEStudents->HRManagerEmail->ViewValue = $CCEStudents->HRManagerEmail->CurrentValue;
$CCEStudents->HRManagerEmail->CssStyle = "";
$CCEStudents->HRManagerEmail->CssClass = "";
$CCEStudents->HRManagerEmail->ViewCustomAttributes = "";
// LengthEmploy
$CCEStudents->LengthEmploy->ViewValue = $CCEStudents->LengthEmploy->CurrentValue;
$CCEStudents->LengthEmploy->CssStyle = "";
$CCEStudents->LengthEmploy->CssClass = "";
$CCEStudents->LengthEmploy->ViewCustomAttributes = "";
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->ViewValue = $CCEStudents->ResponsiblePayment->CurrentValue;
$CCEStudents->ResponsiblePayment->CssStyle = "";
$CCEStudents->ResponsiblePayment->CssClass = "";
$CCEStudents->ResponsiblePayment->ViewCustomAttributes = "";
// BlockAccess
if (strval($CCEStudents->BlockAccess->CurrentValue) <> "") {
switch ($CCEStudents->BlockAccess->CurrentValue) {
case "y":
$CCEStudents->BlockAccess->ViewValue = "Yes";
break;
case "n":
$CCEStudents->BlockAccess->ViewValue = "No";
break;
default:
$CCEStudents->BlockAccess->ViewValue = $CCEStudents->BlockAccess->CurrentValue;
}
} else {
$CCEStudents->BlockAccess->ViewValue = NULL;
}
$CCEStudents->BlockAccess->CssStyle = "";
$CCEStudents->BlockAccess->CssClass = "";
$CCEStudents->BlockAccess->ViewCustomAttributes = "";
// Accepted
if (strval($CCEStudents->Accepted->CurrentValue) <> "") {
switch ($CCEStudents->Accepted->CurrentValue) {
case "1":
$CCEStudents->Accepted->ViewValue = "Yes";
break;
case "0":
$CCEStudents->Accepted->ViewValue = "No";
break;
default:
$CCEStudents->Accepted->ViewValue = $CCEStudents->Accepted->CurrentValue;
}
} else {
$CCEStudents->Accepted->ViewValue = NULL;
}
$CCEStudents->Accepted->CssStyle = "";
$CCEStudents->Accepted->CssClass = "";
$CCEStudents->Accepted->ViewCustomAttributes = "";
// Archived
if (strval($CCEStudents->Archived->CurrentValue) <> "") {
switch ($CCEStudents->Archived->CurrentValue) {
case "1":
$CCEStudents->Archived->ViewValue = "Yes";
break;
case "0":
$CCEStudents->Archived->ViewValue = "No";
break;
default:
$CCEStudents->Archived->ViewValue = $CCEStudents->Archived->CurrentValue;
}
} else {
$CCEStudents->Archived->ViewValue = NULL;
}
$CCEStudents->Archived->CssStyle = "";
$CCEStudents->Archived->CssClass = "";
$CCEStudents->Archived->ViewCustomAttributes = "";
// Achieved
if (strval($CCEStudents->Achieved->CurrentValue) <> "") {
switch ($CCEStudents->Achieved->CurrentValue) {
case "1":
$CCEStudents->Achieved->ViewValue = "Yes";
break;
case "0":
$CCEStudents->Achieved->ViewValue = "No";
break;
default:
$CCEStudents->Achieved->ViewValue = $CCEStudents->Achieved->CurrentValue;
}
} else {
$CCEStudents->Achieved->ViewValue = NULL;
}
$CCEStudents->Achieved->CssStyle = "";
$CCEStudents->Achieved->CssClass = "";
$CCEStudents->Achieved->ViewCustomAttributes = "";
// ResultLetter
if (!ew_Empty($CCEStudents->ResultLetter->Upload->DbValue)) {
$CCEStudents->ResultLetter->ViewValue = $CCEStudents->ResultLetter->Upload->DbValue;
} else {
$CCEStudents->ResultLetter->ViewValue = "";
}
$CCEStudents->ResultLetter->CssStyle = "";
$CCEStudents->ResultLetter->CssClass = "";
$CCEStudents->ResultLetter->ViewCustomAttributes = "";
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->ViewValue = $CCEStudents->ReasonForLeaving->CurrentValue;
$CCEStudents->ReasonForLeaving->CssStyle = "";
$CCEStudents->ReasonForLeaving->CssClass = "";
$CCEStudents->ReasonForLeaving->ViewCustomAttributes = "";
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->ViewValue = $CCEStudents->ReasonNotAccepted->CurrentValue;
$CCEStudents->ReasonNotAccepted->CssStyle = "";
$CCEStudents->ReasonNotAccepted->CssClass = "";
$CCEStudents->ReasonNotAccepted->ViewCustomAttributes = "";
// ResultComments
$CCEStudents->ResultComments->ViewValue = $CCEStudents->ResultComments->CurrentValue;
$CCEStudents->ResultComments->CssStyle = "";
$CCEStudents->ResultComments->CssClass = "";
$CCEStudents->ResultComments->ViewCustomAttributes = "";
// ResultStatus
if (strval($CCEStudents->ResultStatus->CurrentValue) <> "") {
switch ($CCEStudents->ResultStatus->CurrentValue) {
case "":
$CCEStudents->ResultStatus->ViewValue = "No Result Yet";
break;
case "P":
$CCEStudents->ResultStatus->ViewValue = "Passed";
break;
case "S":
$CCEStudents->ResultStatus->ViewValue = "Pending Supplementary Exams";
break;
default:
$CCEStudents->ResultStatus->ViewValue = $CCEStudents->ResultStatus->CurrentValue;
}
} else {
$CCEStudents->ResultStatus->ViewValue = NULL;
}
$CCEStudents->ResultStatus->CssStyle = "";
$CCEStudents->ResultStatus->CssClass = "";
$CCEStudents->ResultStatus->ViewCustomAttributes = "";
// ModulesEnrolled
if (strval($CCEStudents->ModulesEnrolled->CurrentValue) <> "") {
$arwrk = explode(",", $CCEStudents->ModulesEnrolled->CurrentValue);
$sFilterWrk = "";
foreach ($arwrk as $wrk) {
if ($sFilterWrk <> "") $sFilterWrk .= " OR ";
$sFilterWrk .= "`CCEModuleID` = " . ew_AdjustSql(trim($wrk)) . "";
}
$sSqlWrk = "SELECT `ModuleNum`, `ModuleName` FROM `CCEModules`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `ModuleNum`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->ModulesEnrolled->ViewValue = "";
$ari = 0;
while (!$rswrk->EOF) {
$CCEStudents->ModulesEnrolled->ViewValue .= $rswrk->fields('ModuleNum');
$CCEStudents->ModulesEnrolled->ViewValue .= ew_ValueSeparator($ari) . $rswrk->fields('ModuleName');
$rswrk->MoveNext();
if (!$rswrk->EOF) $CCEStudents->ModulesEnrolled->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options
$ari++;
}
$rswrk->Close();
} else {
$CCEStudents->ModulesEnrolled->ViewValue = $CCEStudents->ModulesEnrolled->CurrentValue;
}
} else {
$CCEStudents->ModulesEnrolled->ViewValue = NULL;
}
$CCEStudents->ModulesEnrolled->CssStyle = "";
$CCEStudents->ModulesEnrolled->CssClass = "";
$CCEStudents->ModulesEnrolled->ViewCustomAttributes = "";
// ModulesExcluded
if (strval($CCEStudents->ModulesExcluded->CurrentValue) <> "") {
$arwrk = explode(",", $CCEStudents->ModulesExcluded->CurrentValue);
$sFilterWrk = "";
foreach ($arwrk as $wrk) {
if ($sFilterWrk <> "") $sFilterWrk .= " OR ";
$sFilterWrk .= "`CCEModuleID` = " . ew_AdjustSql(trim($wrk)) . "";
}
$sSqlWrk = "SELECT `ModuleNum`, `ModuleName` FROM `CCEModules`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `ModuleNum`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->ModulesExcluded->ViewValue = "";
$ari = 0;
while (!$rswrk->EOF) {
$CCEStudents->ModulesExcluded->ViewValue .= $rswrk->fields('ModuleNum');
$CCEStudents->ModulesExcluded->ViewValue .= ew_ValueSeparator($ari) . $rswrk->fields('ModuleName');
$rswrk->MoveNext();
if (!$rswrk->EOF) $CCEStudents->ModulesExcluded->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options
$ari++;
}
$rswrk->Close();
} else {
$CCEStudents->ModulesExcluded->ViewValue = $CCEStudents->ModulesExcluded->CurrentValue;
}
} else {
$CCEStudents->ModulesExcluded->ViewValue = NULL;
}
$CCEStudents->ModulesExcluded->CssStyle = "";
$CCEStudents->ModulesExcluded->CssClass = "";
$CCEStudents->ModulesExcluded->ViewCustomAttributes = "";
// Cancelled
if (strval($CCEStudents->Cancelled->CurrentValue) <> "") {
switch ($CCEStudents->Cancelled->CurrentValue) {
case "1":
$CCEStudents->Cancelled->ViewValue = "Cancelled";
break;
case "0":
$CCEStudents->Cancelled->ViewValue = "Not Cancelled";
break;
default:
$CCEStudents->Cancelled->ViewValue = $CCEStudents->Cancelled->CurrentValue;
}
} else {
$CCEStudents->Cancelled->ViewValue = NULL;
}
$CCEStudents->Cancelled->CssStyle = "";
$CCEStudents->Cancelled->CssClass = "";
$CCEStudents->Cancelled->ViewCustomAttributes = "";
// CancelledReason
$CCEStudents->CancelledReason->ViewValue = $CCEStudents->CancelledReason->CurrentValue;
$CCEStudents->CancelledReason->CssStyle = "";
$CCEStudents->CancelledReason->CssClass = "";
$CCEStudents->CancelledReason->ViewCustomAttributes = "";
// Trimester1Report
if (!ew_Empty($CCEStudents->Trimester1Report->Upload->DbValue)) {
$CCEStudents->Trimester1Report->ViewValue = $CCEStudents->Trimester1Report->Upload->DbValue;
} else {
$CCEStudents->Trimester1Report->ViewValue = "";
}
$CCEStudents->Trimester1Report->CssStyle = "";
$CCEStudents->Trimester1Report->CssClass = "";
$CCEStudents->Trimester1Report->ViewCustomAttributes = "";
// Trimester2Report
if (!ew_Empty($CCEStudents->Trimester2Report->Upload->DbValue)) {
$CCEStudents->Trimester2Report->ViewValue = $CCEStudents->Trimester2Report->Upload->DbValue;
} else {
$CCEStudents->Trimester2Report->ViewValue = "";
}
$CCEStudents->Trimester2Report->CssStyle = "";
$CCEStudents->Trimester2Report->CssClass = "";
$CCEStudents->Trimester2Report->ViewCustomAttributes = "";
// Trimester3Report
if (!ew_Empty($CCEStudents->Trimester3Report->Upload->DbValue)) {
$CCEStudents->Trimester3Report->ViewValue = $CCEStudents->Trimester3Report->Upload->DbValue;
} else {
$CCEStudents->Trimester3Report->ViewValue = "";
}
$CCEStudents->Trimester3Report->CssStyle = "";
$CCEStudents->Trimester3Report->CssClass = "";
$CCEStudents->Trimester3Report->ViewCustomAttributes = "";
// ExamResultLetter
if (!ew_Empty($CCEStudents->ExamResultLetter->Upload->DbValue)) {
$CCEStudents->ExamResultLetter->ViewValue = $CCEStudents->ExamResultLetter->Upload->DbValue;
} else {
$CCEStudents->ExamResultLetter->ViewValue = "";
}
$CCEStudents->ExamResultLetter->CssStyle = "";
$CCEStudents->ExamResultLetter->CssClass = "";
$CCEStudents->ExamResultLetter->ViewCustomAttributes = "";
// SupplementalExamLetter
if (!ew_Empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) {
$CCEStudents->SupplementalExamLetter->ViewValue = $CCEStudents->SupplementalExamLetter->Upload->DbValue;
} else {
$CCEStudents->SupplementalExamLetter->ViewValue = "";
}
$CCEStudents->SupplementalExamLetter->CssStyle = "";
$CCEStudents->SupplementalExamLetter->CssClass = "";
$CCEStudents->SupplementalExamLetter->ViewCustomAttributes = "";
// MarketingSource
if (strval($CCEStudents->MarketingSource->CurrentValue) <> "") {
switch ($CCEStudents->MarketingSource->CurrentValue) {
case "CESA.co.za":
$CCEStudents->MarketingSource->ViewValue = "CESA.co.za";
break;
case "E-mail advertisement":
$CCEStudents->MarketingSource->ViewValue = "E-mail advertisement";
break;
case "Word of Mouth":
$CCEStudents->MarketingSource->ViewValue = "Word of Mouth";
break;
case "Other":
$CCEStudents->MarketingSource->ViewValue = "Other";
break;
default:
$CCEStudents->MarketingSource->ViewValue = $CCEStudents->MarketingSource->CurrentValue;
}
} else {
$CCEStudents->MarketingSource->ViewValue = NULL;
}
$CCEStudents->MarketingSource->CssStyle = "";
$CCEStudents->MarketingSource->CssClass = "";
$CCEStudents->MarketingSource->ViewCustomAttributes = "";
// MarketingSourceOther
$CCEStudents->MarketingSourceOther->ViewValue = $CCEStudents->MarketingSourceOther->CurrentValue;
$CCEStudents->MarketingSourceOther->CssStyle = "";
$CCEStudents->MarketingSourceOther->CssClass = "";
$CCEStudents->MarketingSourceOther->ViewCustomAttributes = "";
// Title
$CCEStudents->Title->HrefValue = "";
$CCEStudents->Title->TooltipValue = "";
// KnownAs
$CCEStudents->KnownAs->HrefValue = "";
$CCEStudents->KnownAs->TooltipValue = "";
// FirstName
$CCEStudents->FirstName->HrefValue = "";
$CCEStudents->FirstName->TooltipValue = "";
// Surname
$CCEStudents->Surname->HrefValue = "";
$CCEStudents->Surname->TooltipValue = "";
// Organisation
$CCEStudents->Organisation->HrefValue = "";
$CCEStudents->Organisation->TooltipValue = "";
// OrganisationType
$CCEStudents->OrganisationType->HrefValue = "";
$CCEStudents->OrganisationType->TooltipValue = "";
// Designation
$CCEStudents->Designation->HrefValue = "";
$CCEStudents->Designation->TooltipValue = "";
// Department
$CCEStudents->Department->HrefValue = "";
$CCEStudents->Department->TooltipValue = "";
// StudentNumber
$CCEStudents->StudentNumber->HrefValue = "";
$CCEStudents->StudentNumber->TooltipValue = "";
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->HrefValue = "";
$CCEStudents->CCEFacilitatorID->TooltipValue = "";
// Project
$CCEStudents->Project->HrefValue = "";
$CCEStudents->Project->TooltipValue = "";
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->HrefValue = "";
$CCEStudents->ProjectDiscipline->TooltipValue = "";
// ProjectCode
$CCEStudents->ProjectCode->HrefValue = "";
$CCEStudents->ProjectCode->TooltipValue = "";
// IDNumber
$CCEStudents->IDNumber->HrefValue = "";
$CCEStudents->IDNumber->TooltipValue = "";
// ECSARegistered
$CCEStudents->ECSARegistered->HrefValue = "";
$CCEStudents->ECSARegistered->TooltipValue = "";
// ECSACategory
$CCEStudents->ECSACategory->HrefValue = "";
$CCEStudents->ECSACategory->TooltipValue = "";
// ECSANumber
$CCEStudents->ECSANumber->HrefValue = "";
$CCEStudents->ECSANumber->TooltipValue = "";
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->HrefValue = "";
$CCEStudents->OtherStatutoryBodyRegistered->TooltipValue = "";
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->HrefValue = "";
$CCEStudents->OtherStatutoryBodyName->TooltipValue = "";
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->HrefValue = "";
$CCEStudents->OtherStatutoryBodyNumber->TooltipValue = "";
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->HrefValue = "";
$CCEStudents->OtherStatutoryBodyCategory->TooltipValue = "";
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->HrefValue = "";
$CCEStudents->CESAMemberFirm->TooltipValue = "";
// OtherCEFirms
$CCEStudents->OtherCEFirms->HrefValue = "";
$CCEStudents->OtherCEFirms->TooltipValue = "";
// Age
$CCEStudents->Age->HrefValue = "";
$CCEStudents->Age->TooltipValue = "";
// HighestQual
$CCEStudents->HighestQual->HrefValue = "";
$CCEStudents->HighestQual->TooltipValue = "";
// AreaDiscipline
$CCEStudents->AreaDiscipline->HrefValue = "";
$CCEStudents->AreaDiscipline->TooltipValue = "";
// Telephone
$CCEStudents->Telephone->HrefValue = "";
$CCEStudents->Telephone->TooltipValue = "";
// Cellphone
$CCEStudents->Cellphone->HrefValue = "";
$CCEStudents->Cellphone->TooltipValue = "";
// EmailAddress
$CCEStudents->EmailAddress->HrefValue = "";
$CCEStudents->EmailAddress->TooltipValue = "";
// EmailAddress2
$CCEStudents->EmailAddress2->HrefValue = "";
$CCEStudents->EmailAddress2->TooltipValue = "";
// HomeAddress
$CCEStudents->HomeAddress->HrefValue = "";
$CCEStudents->HomeAddress->TooltipValue = "";
// WorkAddress
$CCEStudents->WorkAddress->HrefValue = "";
$CCEStudents->WorkAddress->TooltipValue = "";
// PostalAddress
$CCEStudents->PostalAddress->HrefValue = "";
$CCEStudents->PostalAddress->TooltipValue = "";
// PreferredCourierAddress
$CCEStudents->PreferredCourierAddress->HrefValue = "";
$CCEStudents->PreferredCourierAddress->TooltipValue = "";
// CESAAccountNo
$CCEStudents->CESAAccountNo->HrefValue = "";
$CCEStudents->CESAAccountNo->TooltipValue = "";
// VATNo
$CCEStudents->VATNo->HrefValue = "";
$CCEStudents->VATNo->TooltipValue = "";
// DietaryRequirements
$CCEStudents->DietaryRequirements->HrefValue = "";
$CCEStudents->DietaryRequirements->TooltipValue = "";
// CVFile
if (!ew_Empty($CCEStudents->CVFile->Upload->DbValue)) {
$CCEStudents->CVFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->CVFile->UploadPath) . ((!empty($CCEStudents->CVFile->ViewValue)) ? $CCEStudents->CVFile->ViewValue : $CCEStudents->CVFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->CVFile->HrefValue = ew_ConvertFullUrl($CCEStudents->CVFile->HrefValue);
} else {
$CCEStudents->CVFile->HrefValue = "";
}
$CCEStudents->CVFile->TooltipValue = "";
// IDFile
if (!ew_Empty($CCEStudents->IDFile->Upload->DbValue)) {
$CCEStudents->IDFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->IDFile->UploadPath) . ((!empty($CCEStudents->IDFile->ViewValue)) ? $CCEStudents->IDFile->ViewValue : $CCEStudents->IDFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->IDFile->HrefValue = ew_ConvertFullUrl($CCEStudents->IDFile->HrefValue);
} else {
$CCEStudents->IDFile->HrefValue = "";
}
$CCEStudents->IDFile->TooltipValue = "";
// QualCertificate1
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->DbValue)) {
$CCEStudents->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate1->UploadPath) . ((!empty($CCEStudents->QualCertificate1->ViewValue)) ? $CCEStudents->QualCertificate1->ViewValue : $CCEStudents->QualCertificate1->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate1->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate1->HrefValue);
} else {
$CCEStudents->QualCertificate1->HrefValue = "";
}
$CCEStudents->QualCertificate1->TooltipValue = "";
// QualCertificate2
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->DbValue)) {
$CCEStudents->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate2->UploadPath) . ((!empty($CCEStudents->QualCertificate2->ViewValue)) ? $CCEStudents->QualCertificate2->ViewValue : $CCEStudents->QualCertificate2->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate2->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate2->HrefValue);
} else {
$CCEStudents->QualCertificate2->HrefValue = "";
}
$CCEStudents->QualCertificate2->TooltipValue = "";
// QualCertificate3
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->DbValue)) {
$CCEStudents->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate3->UploadPath) . ((!empty($CCEStudents->QualCertificate3->ViewValue)) ? $CCEStudents->QualCertificate3->ViewValue : $CCEStudents->QualCertificate3->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate3->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate3->HrefValue);
} else {
$CCEStudents->QualCertificate3->HrefValue = "";
}
$CCEStudents->QualCertificate3->TooltipValue = "";
// AgreementFile
if (!ew_Empty($CCEStudents->AgreementFile->Upload->DbValue)) {
$CCEStudents->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->AgreementFile->UploadPath) . ((!empty($CCEStudents->AgreementFile->ViewValue)) ? $CCEStudents->AgreementFile->ViewValue : $CCEStudents->AgreementFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->AgreementFile->HrefValue = ew_ConvertFullUrl($CCEStudents->AgreementFile->HrefValue);
} else {
$CCEStudents->AgreementFile->HrefValue = "";
}
$CCEStudents->AgreementFile->TooltipValue = "";
// MotivationalLetter
if (!ew_Empty($CCEStudents->MotivationalLetter->Upload->DbValue)) {
$CCEStudents->MotivationalLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->MotivationalLetter->UploadPath) . ((!empty($CCEStudents->MotivationalLetter->ViewValue)) ? $CCEStudents->MotivationalLetter->ViewValue : $CCEStudents->MotivationalLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->MotivationalLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->MotivationalLetter->HrefValue);
} else {
$CCEStudents->MotivationalLetter->HrefValue = "";
}
$CCEStudents->MotivationalLetter->TooltipValue = "";
// PhotoFile
$CCEStudents->PhotoFile->HrefValue = "";
$CCEStudents->PhotoFile->TooltipValue = "";
// OrderNo
$CCEStudents->OrderNo->HrefValue = "";
$CCEStudents->OrderNo->TooltipValue = "";
// BookedByName
$CCEStudents->BookedByName->HrefValue = "";
$CCEStudents->BookedByName->TooltipValue = "";
// BookedByDesignation
$CCEStudents->BookedByDesignation->HrefValue = "";
$CCEStudents->BookedByDesignation->TooltipValue = "";
// BookedByTelNo
$CCEStudents->BookedByTelNo->HrefValue = "";
$CCEStudents->BookedByTelNo->TooltipValue = "";
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->HrefValue = "";
$CCEStudents->BookedByFaxNo->TooltipValue = "";
// BookedByCellNo
$CCEStudents->BookedByCellNo->HrefValue = "";
$CCEStudents->BookedByCellNo->TooltipValue = "";
// BookedByEmail
$CCEStudents->BookedByEmail->HrefValue = "";
$CCEStudents->BookedByEmail->TooltipValue = "";
// WebUsername
$CCEStudents->WebUsername->HrefValue = "";
$CCEStudents->WebUsername->TooltipValue = "";
// WebPassword
$CCEStudents->WebPassword->HrefValue = "";
$CCEStudents->WebPassword->TooltipValue = "";
// MentorFirstName
$CCEStudents->MentorFirstName->HrefValue = "";
$CCEStudents->MentorFirstName->TooltipValue = "";
// MentorSurname
$CCEStudents->MentorSurname->HrefValue = "";
$CCEStudents->MentorSurname->TooltipValue = "";
// MentorCompany
$CCEStudents->MentorCompany->HrefValue = "";
$CCEStudents->MentorCompany->TooltipValue = "";
// MentorDesig
$CCEStudents->MentorDesig->HrefValue = "";
$CCEStudents->MentorDesig->TooltipValue = "";
// MentorTel
$CCEStudents->MentorTel->HrefValue = "";
$CCEStudents->MentorTel->TooltipValue = "";
// MentorCell
$CCEStudents->MentorCell->HrefValue = "";
$CCEStudents->MentorCell->TooltipValue = "";
// MentorEmail
$CCEStudents->MentorEmail->HrefValue = "";
$CCEStudents->MentorEmail->TooltipValue = "";
// HRManagerName
$CCEStudents->HRManagerName->HrefValue = "";
$CCEStudents->HRManagerName->TooltipValue = "";
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->HrefValue = "";
$CCEStudents->HRManagerDesignation->TooltipValue = "";
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->HrefValue = "";
$CCEStudents->HRManagerTelNo->TooltipValue = "";
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->HrefValue = "";
$CCEStudents->HRManagerCellNo->TooltipValue = "";
// HRManagerEmail
$CCEStudents->HRManagerEmail->HrefValue = "";
$CCEStudents->HRManagerEmail->TooltipValue = "";
// LengthEmploy
$CCEStudents->LengthEmploy->HrefValue = "";
$CCEStudents->LengthEmploy->TooltipValue = "";
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->HrefValue = "";
$CCEStudents->ResponsiblePayment->TooltipValue = "";
// BlockAccess
$CCEStudents->BlockAccess->HrefValue = "";
$CCEStudents->BlockAccess->TooltipValue = "";
// Accepted
$CCEStudents->Accepted->HrefValue = "";
$CCEStudents->Accepted->TooltipValue = "";
// Archived
$CCEStudents->Archived->HrefValue = "";
$CCEStudents->Archived->TooltipValue = "";
// Achieved
$CCEStudents->Achieved->HrefValue = "";
$CCEStudents->Achieved->TooltipValue = "";
// ResultLetter
if (!ew_Empty($CCEStudents->ResultLetter->Upload->DbValue)) {
$CCEStudents->ResultLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->ResultLetter->UploadPath) . ((!empty($CCEStudents->ResultLetter->ViewValue)) ? $CCEStudents->ResultLetter->ViewValue : $CCEStudents->ResultLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->ResultLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->ResultLetter->HrefValue);
} else {
$CCEStudents->ResultLetter->HrefValue = "";
}
$CCEStudents->ResultLetter->TooltipValue = "";
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->HrefValue = "";
$CCEStudents->ReasonForLeaving->TooltipValue = "";
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->HrefValue = "";
$CCEStudents->ReasonNotAccepted->TooltipValue = "";
// ResultComments
$CCEStudents->ResultComments->HrefValue = "";
$CCEStudents->ResultComments->TooltipValue = "";
// ResultStatus
$CCEStudents->ResultStatus->HrefValue = "";
$CCEStudents->ResultStatus->TooltipValue = "";
// ModulesEnrolled
$CCEStudents->ModulesEnrolled->HrefValue = "";
$CCEStudents->ModulesEnrolled->TooltipValue = "";
// ModulesExcluded
$CCEStudents->ModulesExcluded->HrefValue = "";
$CCEStudents->ModulesExcluded->TooltipValue = "";
// Cancelled
$CCEStudents->Cancelled->HrefValue = "";
$CCEStudents->Cancelled->TooltipValue = "";
// CancelledReason
$CCEStudents->CancelledReason->HrefValue = "";
$CCEStudents->CancelledReason->TooltipValue = "";
// Trimester1Report
if (!ew_Empty($CCEStudents->Trimester1Report->Upload->DbValue)) {
$CCEStudents->Trimester1Report->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->Trimester1Report->UploadPath) . ((!empty($CCEStudents->Trimester1Report->ViewValue)) ? $CCEStudents->Trimester1Report->ViewValue : $CCEStudents->Trimester1Report->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->Trimester1Report->HrefValue = ew_ConvertFullUrl($CCEStudents->Trimester1Report->HrefValue);
} else {
$CCEStudents->Trimester1Report->HrefValue = "";
}
$CCEStudents->Trimester1Report->TooltipValue = "";
// Trimester2Report
if (!ew_Empty($CCEStudents->Trimester2Report->Upload->DbValue)) {
$CCEStudents->Trimester2Report->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->Trimester2Report->UploadPath) . ((!empty($CCEStudents->Trimester2Report->ViewValue)) ? $CCEStudents->Trimester2Report->ViewValue : $CCEStudents->Trimester2Report->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->Trimester2Report->HrefValue = ew_ConvertFullUrl($CCEStudents->Trimester2Report->HrefValue);
} else {
$CCEStudents->Trimester2Report->HrefValue = "";
}
$CCEStudents->Trimester2Report->TooltipValue = "";
// Trimester3Report
if (!ew_Empty($CCEStudents->Trimester3Report->Upload->DbValue)) {
$CCEStudents->Trimester3Report->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->Trimester3Report->UploadPath) . ((!empty($CCEStudents->Trimester3Report->ViewValue)) ? $CCEStudents->Trimester3Report->ViewValue : $CCEStudents->Trimester3Report->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->Trimester3Report->HrefValue = ew_ConvertFullUrl($CCEStudents->Trimester3Report->HrefValue);
} else {
$CCEStudents->Trimester3Report->HrefValue = "";
}
$CCEStudents->Trimester3Report->TooltipValue = "";
// ExamResultLetter
if (!ew_Empty($CCEStudents->ExamResultLetter->Upload->DbValue)) {
$CCEStudents->ExamResultLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->ExamResultLetter->UploadPath) . ((!empty($CCEStudents->ExamResultLetter->ViewValue)) ? $CCEStudents->ExamResultLetter->ViewValue : $CCEStudents->ExamResultLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->ExamResultLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->ExamResultLetter->HrefValue);
} else {
$CCEStudents->ExamResultLetter->HrefValue = "";
}
$CCEStudents->ExamResultLetter->TooltipValue = "";
// SupplementalExamLetter
if (!ew_Empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) {
$CCEStudents->SupplementalExamLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->SupplementalExamLetter->UploadPath) . ((!empty($CCEStudents->SupplementalExamLetter->ViewValue)) ? $CCEStudents->SupplementalExamLetter->ViewValue : $CCEStudents->SupplementalExamLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->SupplementalExamLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->SupplementalExamLetter->HrefValue);
} else {
$CCEStudents->SupplementalExamLetter->HrefValue = "";
}
$CCEStudents->SupplementalExamLetter->TooltipValue = "";
// MarketingSource
$CCEStudents->MarketingSource->HrefValue = "";
$CCEStudents->MarketingSource->TooltipValue = "";
// MarketingSourceOther
$CCEStudents->MarketingSourceOther->HrefValue = "";
$CCEStudents->MarketingSourceOther->TooltipValue = "";
}
// Call Row Rendered event
if ($CCEStudents->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$CCEStudents->Row_Rendered();
}
// Export data in HTML/CSV/Word/Excel/XML/Email format
function ExportData() {
global $CCEStudents;
$utf8 = FALSE;
$bSelectLimit = FALSE;
// Load recordset
if ($bSelectLimit) {
$this->lTotalRecs = $CCEStudents->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 ($CCEStudents->Export == "xml") {
$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
$XmlDoc->AddRoot();
} else {
$ExportDoc = new cExportDocument($CCEStudents, "v");
$ExportDoc->ExportHeader();
if ($ExportDoc->Horizontal) { // Horizontal format, write header
$ExportDoc->BeginExportRow();
$ExportDoc->ExportCaption($CCEStudents->Title);
$ExportDoc->ExportCaption($CCEStudents->KnownAs);
$ExportDoc->ExportCaption($CCEStudents->FirstName);
$ExportDoc->ExportCaption($CCEStudents->Surname);
$ExportDoc->ExportCaption($CCEStudents->Organisation);
$ExportDoc->ExportCaption($CCEStudents->OrganisationType);
$ExportDoc->ExportCaption($CCEStudents->Designation);
$ExportDoc->ExportCaption($CCEStudents->Department);
$ExportDoc->ExportCaption($CCEStudents->StudentNumber);
$ExportDoc->ExportCaption($CCEStudents->CCEFacilitatorID);
$ExportDoc->ExportCaption($CCEStudents->Project);
$ExportDoc->ExportCaption($CCEStudents->ProjectDiscipline);
$ExportDoc->ExportCaption($CCEStudents->ProjectCode);
$ExportDoc->ExportCaption($CCEStudents->IDNumber);
$ExportDoc->ExportCaption($CCEStudents->ECSARegistered);
$ExportDoc->ExportCaption($CCEStudents->ECSACategory);
$ExportDoc->ExportCaption($CCEStudents->ECSANumber);
$ExportDoc->ExportCaption($CCEStudents->OtherStatutoryBodyRegistered);
$ExportDoc->ExportCaption($CCEStudents->OtherStatutoryBodyName);
$ExportDoc->ExportCaption($CCEStudents->OtherStatutoryBodyNumber);
$ExportDoc->ExportCaption($CCEStudents->OtherStatutoryBodyCategory);
$ExportDoc->ExportCaption($CCEStudents->CESAMemberFirm);
$ExportDoc->ExportCaption($CCEStudents->Age);
$ExportDoc->ExportCaption($CCEStudents->HighestQual);
$ExportDoc->ExportCaption($CCEStudents->AreaDiscipline);
$ExportDoc->ExportCaption($CCEStudents->Telephone);
$ExportDoc->ExportCaption($CCEStudents->Cellphone);
$ExportDoc->ExportCaption($CCEStudents->EmailAddress);
$ExportDoc->ExportCaption($CCEStudents->EmailAddress2);
$ExportDoc->ExportCaption($CCEStudents->HomeAddress);
$ExportDoc->ExportCaption($CCEStudents->WorkAddress);
$ExportDoc->ExportCaption($CCEStudents->PostalAddress);
$ExportDoc->ExportCaption($CCEStudents->PreferredCourierAddress);
$ExportDoc->ExportCaption($CCEStudents->CESAAccountNo);
$ExportDoc->ExportCaption($CCEStudents->VATNo);
$ExportDoc->ExportCaption($CCEStudents->DietaryRequirements);
$ExportDoc->ExportCaption($CCEStudents->CVFile);
$ExportDoc->ExportCaption($CCEStudents->IDFile);
$ExportDoc->ExportCaption($CCEStudents->QualCertificate1);
$ExportDoc->ExportCaption($CCEStudents->QualCertificate2);
$ExportDoc->ExportCaption($CCEStudents->QualCertificate3);
$ExportDoc->ExportCaption($CCEStudents->AgreementFile);
$ExportDoc->ExportCaption($CCEStudents->MotivationalLetter);
$ExportDoc->ExportCaption($CCEStudents->PhotoFile);
$ExportDoc->ExportCaption($CCEStudents->OrderNo);
$ExportDoc->ExportCaption($CCEStudents->BookedByName);
$ExportDoc->ExportCaption($CCEStudents->BookedByDesignation);
$ExportDoc->ExportCaption($CCEStudents->BookedByTelNo);
$ExportDoc->ExportCaption($CCEStudents->BookedByFaxNo);
$ExportDoc->ExportCaption($CCEStudents->BookedByCellNo);
$ExportDoc->ExportCaption($CCEStudents->BookedByEmail);
$ExportDoc->ExportCaption($CCEStudents->WebUsername);
$ExportDoc->ExportCaption($CCEStudents->WebPassword);
$ExportDoc->ExportCaption($CCEStudents->MentorFirstName);
$ExportDoc->ExportCaption($CCEStudents->MentorSurname);
$ExportDoc->ExportCaption($CCEStudents->MentorCompany);
$ExportDoc->ExportCaption($CCEStudents->MentorDesig);
$ExportDoc->ExportCaption($CCEStudents->MentorTel);
$ExportDoc->ExportCaption($CCEStudents->MentorCell);
$ExportDoc->ExportCaption($CCEStudents->MentorEmail);
$ExportDoc->ExportCaption($CCEStudents->HRManagerName);
$ExportDoc->ExportCaption($CCEStudents->HRManagerDesignation);
$ExportDoc->ExportCaption($CCEStudents->HRManagerTelNo);
$ExportDoc->ExportCaption($CCEStudents->HRManagerCellNo);
$ExportDoc->ExportCaption($CCEStudents->HRManagerEmail);
$ExportDoc->ExportCaption($CCEStudents->LengthEmploy);
$ExportDoc->ExportCaption($CCEStudents->ResponsiblePayment);
$ExportDoc->ExportCaption($CCEStudents->BlockAccess);
$ExportDoc->ExportCaption($CCEStudents->Accepted);
$ExportDoc->ExportCaption($CCEStudents->Archived);
$ExportDoc->ExportCaption($CCEStudents->Achieved);
$ExportDoc->ExportCaption($CCEStudents->ResultLetter);
$ExportDoc->ExportCaption($CCEStudents->ResultStatus);
$ExportDoc->ExportCaption($CCEStudents->ModulesEnrolled);
$ExportDoc->ExportCaption($CCEStudents->ModulesExcluded);
$ExportDoc->ExportCaption($CCEStudents->Cancelled);
$ExportDoc->ExportCaption($CCEStudents->CancelledReason);
$ExportDoc->ExportCaption($CCEStudents->Trimester1Report);
$ExportDoc->ExportCaption($CCEStudents->Trimester2Report);
$ExportDoc->ExportCaption($CCEStudents->Trimester3Report);
$ExportDoc->ExportCaption($CCEStudents->ExamResultLetter);
$ExportDoc->ExportCaption($CCEStudents->SupplementalExamLetter);
$ExportDoc->ExportCaption($CCEStudents->MarketingSource);
$ExportDoc->ExportCaption($CCEStudents->MarketingSourceOther);
$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
$CCEStudents->CssClass = "";
$CCEStudents->CssStyle = "";
$CCEStudents->RowType = EW_ROWTYPE_VIEW; // Render view
$this->RenderRow();
if ($CCEStudents->Export == "xml") {
$XmlDoc->AddRow();
$XmlDoc->AddField('Title', $CCEStudents->Title->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('KnownAs', $CCEStudents->KnownAs->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('FirstName', $CCEStudents->FirstName->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Surname', $CCEStudents->Surname->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Organisation', $CCEStudents->Organisation->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('OrganisationType', $CCEStudents->OrganisationType->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Designation', $CCEStudents->Designation->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Department', $CCEStudents->Department->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('StudentNumber', $CCEStudents->StudentNumber->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('CCEFacilitatorID', $CCEStudents->CCEFacilitatorID->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Project', $CCEStudents->Project->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ProjectDiscipline', $CCEStudents->ProjectDiscipline->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ProjectCode', $CCEStudents->ProjectCode->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('IDNumber', $CCEStudents->IDNumber->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ECSARegistered', $CCEStudents->ECSARegistered->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ECSACategory', $CCEStudents->ECSACategory->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ECSANumber', $CCEStudents->ECSANumber->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('OtherStatutoryBodyRegistered', $CCEStudents->OtherStatutoryBodyRegistered->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('OtherStatutoryBodyName', $CCEStudents->OtherStatutoryBodyName->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('OtherStatutoryBodyNumber', $CCEStudents->OtherStatutoryBodyNumber->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('OtherStatutoryBodyCategory', $CCEStudents->OtherStatutoryBodyCategory->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('CESAMemberFirm', $CCEStudents->CESAMemberFirm->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Age', $CCEStudents->Age->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('HighestQual', $CCEStudents->HighestQual->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('AreaDiscipline', $CCEStudents->AreaDiscipline->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Telephone', $CCEStudents->Telephone->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Cellphone', $CCEStudents->Cellphone->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('EmailAddress', $CCEStudents->EmailAddress->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('EmailAddress2', $CCEStudents->EmailAddress2->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('HomeAddress', $CCEStudents->HomeAddress->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('WorkAddress', $CCEStudents->WorkAddress->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('PostalAddress', $CCEStudents->PostalAddress->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('PreferredCourierAddress', $CCEStudents->PreferredCourierAddress->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('CESAAccountNo', $CCEStudents->CESAAccountNo->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('VATNo', $CCEStudents->VATNo->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('DietaryRequirements', $CCEStudents->DietaryRequirements->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('CVFile', $CCEStudents->CVFile->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('IDFile', $CCEStudents->IDFile->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate1', $CCEStudents->QualCertificate1->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate2', $CCEStudents->QualCertificate2->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate3', $CCEStudents->QualCertificate3->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('AgreementFile', $CCEStudents->AgreementFile->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MotivationalLetter', $CCEStudents->MotivationalLetter->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('PhotoFile', $CCEStudents->PhotoFile->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('OrderNo', $CCEStudents->OrderNo->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByName', $CCEStudents->BookedByName->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByDesignation', $CCEStudents->BookedByDesignation->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByTelNo', $CCEStudents->BookedByTelNo->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByFaxNo', $CCEStudents->BookedByFaxNo->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByCellNo', $CCEStudents->BookedByCellNo->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByEmail', $CCEStudents->BookedByEmail->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('WebUsername', $CCEStudents->WebUsername->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('WebPassword', $CCEStudents->WebPassword->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorFirstName', $CCEStudents->MentorFirstName->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorSurname', $CCEStudents->MentorSurname->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorCompany', $CCEStudents->MentorCompany->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorDesig', $CCEStudents->MentorDesig->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorTel', $CCEStudents->MentorTel->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorCell', $CCEStudents->MentorCell->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorEmail', $CCEStudents->MentorEmail->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerName', $CCEStudents->HRManagerName->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerDesignation', $CCEStudents->HRManagerDesignation->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerTelNo', $CCEStudents->HRManagerTelNo->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerCellNo', $CCEStudents->HRManagerCellNo->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerEmail', $CCEStudents->HRManagerEmail->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('LengthEmploy', $CCEStudents->LengthEmploy->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ResponsiblePayment', $CCEStudents->ResponsiblePayment->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('BlockAccess', $CCEStudents->BlockAccess->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Accepted', $CCEStudents->Accepted->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Archived', $CCEStudents->Archived->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Achieved', $CCEStudents->Achieved->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ResultLetter', $CCEStudents->ResultLetter->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ResultStatus', $CCEStudents->ResultStatus->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ModulesEnrolled', $CCEStudents->ModulesEnrolled->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ModulesExcluded', $CCEStudents->ModulesExcluded->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Cancelled', $CCEStudents->Cancelled->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('CancelledReason', $CCEStudents->CancelledReason->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Trimester1Report', $CCEStudents->Trimester1Report->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Trimester2Report', $CCEStudents->Trimester2Report->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('Trimester3Report', $CCEStudents->Trimester3Report->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('ExamResultLetter', $CCEStudents->ExamResultLetter->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('SupplementalExamLetter', $CCEStudents->SupplementalExamLetter->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MarketingSource', $CCEStudents->MarketingSource->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
$XmlDoc->AddField('MarketingSourceOther', $CCEStudents->MarketingSourceOther->ExportValue($CCEStudents->Export, $CCEStudents->ExportOriginalValue));
} else {
$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
$ExportDoc->ExportField($CCEStudents->Title);
$ExportDoc->ExportField($CCEStudents->KnownAs);
$ExportDoc->ExportField($CCEStudents->FirstName);
$ExportDoc->ExportField($CCEStudents->Surname);
$ExportDoc->ExportField($CCEStudents->Organisation);
$ExportDoc->ExportField($CCEStudents->OrganisationType);
$ExportDoc->ExportField($CCEStudents->Designation);
$ExportDoc->ExportField($CCEStudents->Department);
$ExportDoc->ExportField($CCEStudents->StudentNumber);
$ExportDoc->ExportField($CCEStudents->CCEFacilitatorID);
$ExportDoc->ExportField($CCEStudents->Project);
$ExportDoc->ExportField($CCEStudents->ProjectDiscipline);
$ExportDoc->ExportField($CCEStudents->ProjectCode);
$ExportDoc->ExportField($CCEStudents->IDNumber);
$ExportDoc->ExportField($CCEStudents->ECSARegistered);
$ExportDoc->ExportField($CCEStudents->ECSACategory);
$ExportDoc->ExportField($CCEStudents->ECSANumber);
$ExportDoc->ExportField($CCEStudents->OtherStatutoryBodyRegistered);
$ExportDoc->ExportField($CCEStudents->OtherStatutoryBodyName);
$ExportDoc->ExportField($CCEStudents->OtherStatutoryBodyNumber);
$ExportDoc->ExportField($CCEStudents->OtherStatutoryBodyCategory);
$ExportDoc->ExportField($CCEStudents->CESAMemberFirm);
$ExportDoc->ExportField($CCEStudents->Age);
$ExportDoc->ExportField($CCEStudents->HighestQual);
$ExportDoc->ExportField($CCEStudents->AreaDiscipline);
$ExportDoc->ExportField($CCEStudents->Telephone);
$ExportDoc->ExportField($CCEStudents->Cellphone);
$ExportDoc->ExportField($CCEStudents->EmailAddress);
$ExportDoc->ExportField($CCEStudents->EmailAddress2);
$ExportDoc->ExportField($CCEStudents->HomeAddress);
$ExportDoc->ExportField($CCEStudents->WorkAddress);
$ExportDoc->ExportField($CCEStudents->PostalAddress);
$ExportDoc->ExportField($CCEStudents->PreferredCourierAddress);
$ExportDoc->ExportField($CCEStudents->CESAAccountNo);
$ExportDoc->ExportField($CCEStudents->VATNo);
$ExportDoc->ExportField($CCEStudents->DietaryRequirements);
$ExportDoc->ExportField($CCEStudents->CVFile);
$ExportDoc->ExportField($CCEStudents->IDFile);
$ExportDoc->ExportField($CCEStudents->QualCertificate1);
$ExportDoc->ExportField($CCEStudents->QualCertificate2);
$ExportDoc->ExportField($CCEStudents->QualCertificate3);
$ExportDoc->ExportField($CCEStudents->AgreementFile);
$ExportDoc->ExportField($CCEStudents->MotivationalLetter);
$ExportDoc->ExportField($CCEStudents->PhotoFile);
$ExportDoc->ExportField($CCEStudents->OrderNo);
$ExportDoc->ExportField($CCEStudents->BookedByName);
$ExportDoc->ExportField($CCEStudents->BookedByDesignation);
$ExportDoc->ExportField($CCEStudents->BookedByTelNo);
$ExportDoc->ExportField($CCEStudents->BookedByFaxNo);
$ExportDoc->ExportField($CCEStudents->BookedByCellNo);
$ExportDoc->ExportField($CCEStudents->BookedByEmail);
$ExportDoc->ExportField($CCEStudents->WebUsername);
$ExportDoc->ExportField($CCEStudents->WebPassword);
$ExportDoc->ExportField($CCEStudents->MentorFirstName);
$ExportDoc->ExportField($CCEStudents->MentorSurname);
$ExportDoc->ExportField($CCEStudents->MentorCompany);
$ExportDoc->ExportField($CCEStudents->MentorDesig);
$ExportDoc->ExportField($CCEStudents->MentorTel);
$ExportDoc->ExportField($CCEStudents->MentorCell);
$ExportDoc->ExportField($CCEStudents->MentorEmail);
$ExportDoc->ExportField($CCEStudents->HRManagerName);
$ExportDoc->ExportField($CCEStudents->HRManagerDesignation);
$ExportDoc->ExportField($CCEStudents->HRManagerTelNo);
$ExportDoc->ExportField($CCEStudents->HRManagerCellNo);
$ExportDoc->ExportField($CCEStudents->HRManagerEmail);
$ExportDoc->ExportField($CCEStudents->LengthEmploy);
$ExportDoc->ExportField($CCEStudents->ResponsiblePayment);
$ExportDoc->ExportField($CCEStudents->BlockAccess);
$ExportDoc->ExportField($CCEStudents->Accepted);
$ExportDoc->ExportField($CCEStudents->Archived);
$ExportDoc->ExportField($CCEStudents->Achieved);
$ExportDoc->ExportField($CCEStudents->ResultLetter);
$ExportDoc->ExportField($CCEStudents->ResultStatus);
$ExportDoc->ExportField($CCEStudents->ModulesEnrolled);
$ExportDoc->ExportField($CCEStudents->ModulesExcluded);
$ExportDoc->ExportField($CCEStudents->Cancelled);
$ExportDoc->ExportField($CCEStudents->CancelledReason);
$ExportDoc->ExportField($CCEStudents->Trimester1Report);
$ExportDoc->ExportField($CCEStudents->Trimester2Report);
$ExportDoc->ExportField($CCEStudents->Trimester3Report);
$ExportDoc->ExportField($CCEStudents->ExamResultLetter);
$ExportDoc->ExportField($CCEStudents->SupplementalExamLetter);
$ExportDoc->ExportField($CCEStudents->MarketingSource);
$ExportDoc->ExportField($CCEStudents->MarketingSourceOther);
$ExportDoc->EndExportRow();
}
}
$rs->MoveNext();
}
if ($CCEStudents->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($CCEStudents->Export, array("email", "xml")))
echo "\xEF\xBB\xBF";
// Write debug message if enabled
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
// Output data
if ($CCEStudents->Export == "xml") {
header("Content-Type: text/xml");
echo $XmlDoc->XML();
} elseif ($CCEStudents->Export == "email") {
$this->ExportEmail($ExportDoc->Text);
$this->Page_Terminate($CCEStudents->ExportReturnUrl());
} else {
echo $ExportDoc->Text;
}
}
// Export email
function ExportEmail($EmailContent) {
global $Language, $CCEStudents;
$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 ($CCEStudents->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 $CCEStudents;
// Initialize
$sQry = "export=html";
// Add record key QueryString
$sQry .= "&" . substr($CCEStudents->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";
}
}
?>