| Current Path : /var/www/cesa.co.za/ccmadmin/ |
| Current File : /var/www/cesa.co.za/ccmadmin/CCMStudentsview.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 "CCMStudentsinfo.php" ?>
<?php include "CCMUsersinfo.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
$CCMStudents_view = new cCCMStudents_view();
$Page =& $CCMStudents_view;
// Page init
$CCMStudents_view->Page_Init();
// Page main
$CCMStudents_view->Page_Main();
?>
<?php include "header.php" ?>
<?php if ($CCMStudents->Export == "") { ?>
<script type="text/javascript">
<!--
// Create page object
var CCMStudents_view = new ew_Page("CCMStudents_view");
// page properties
CCMStudents_view.PageID = "view"; // page ID
CCMStudents_view.FormID = "fCCMStudentsview"; // form ID
var EW_PAGE_ID = CCMStudents_view.PageID; // for backward compatibility
// extend page with Form_CustomValidate function
CCMStudents_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) { ?>
CCMStudents_view.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
CCMStudents_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 $CCMStudents->TableCaption() ?>
<?php if ($CCMStudents->Export == "") { ?>
<a href="<?php echo $CCMStudents_view->ExportPrintUrl ?>"><img src="images/print.gif" alt="<?php echo ew_HtmlEncode($Language->Phrase("PrinterFriendly")) ?>" title="<?php echo ew_HtmlEncode($Language->Phrase("PrinterFriendly")) ?>" width="16" height="16" border="0"></a>
<a href="<?php echo $CCMStudents_view->ExportExcelUrl ?>"><img src='images/exportxls.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToExcel")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToExcel")) ?>' width='16' height='16' border='0'></a>
<a href="<?php echo $CCMStudents_view->ExportWordUrl ?>"><img src='images/exportdoc.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToWord")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToWord")) ?>' width='16' height='16' border='0'></a>
<a name="emf_CCMStudents" id="emf_CCMStudents" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_CCMStudents',hdr:ewLanguage.Phrase('ExportToEmail'),key:<?php echo ew_ArrayToJsonAttr($CCMStudents_view->arRecKey) ?>,sel:false});"><img src='images/exportemail.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToEmail")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToEmail")) ?>' width='16' height='16' border='0'></a>
<?php } ?>
<br><br>
<?php if ($CCMStudents->Export == "") { ?>
<a href="<?php echo $CCMStudents_view->ListUrl ?>"><?php echo $Language->Phrase("BackToList") ?></a>
<?php if ($Security->CanAdd()) { ?>
<a href="<?php echo $CCMStudents_view->AddUrl ?>"><?php echo $Language->Phrase("ViewPageAddLink") ?></a>
<?php } ?>
<?php if ($Security->CanEdit()) { ?>
<a href="<?php echo $CCMStudents_view->EditUrl ?>"><?php echo $Language->Phrase("ViewPageEditLink") ?></a>
<?php } ?>
<?php if ($Security->CanAdd()) { ?>
<a href="<?php echo $CCMStudents_view->CopyUrl ?>"><?php echo $Language->Phrase("ViewPageCopyLink") ?></a>
<?php } ?>
<?php if ($Security->CanDelete()) { ?>
<a href="<?php echo $CCMStudents_view->DeleteUrl ?>"><?php echo $Language->Phrase("ViewPageDeleteLink") ?></a>
<?php } ?>
<?php if ($Security->AllowList('CCMMilestones')) { ?>
<a href="CCMMilestoneslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=CCMStudents&CCMStudentID=<?php echo urlencode(strval($CCMStudents->CCMStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCMMilestones", "TblCaption") ?>
</a>
<?php } ?>
<?php if ($Security->AllowList('CCMStudentProgress')) { ?>
<a href="CCMStudentProgresslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=CCMStudents&CCMStudentID=<?php echo urlencode(strval($CCMStudents->CCMStudentID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCMStudentProgress", "TblCaption") ?>
</a>
<?php } ?>
<?php } ?>
</span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$CCMStudents_view->ShowMessage();
?>
<p>
<?php if ($CCMStudents->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($CCMStudents_view->Pager)) $CCMStudents_view->Pager = new cPrevNextPager($CCMStudents_view->lStartRec, $CCMStudents_view->lDisplayRecs, $CCMStudents_view->lTotalRecs) ?>
<?php if ($CCMStudents_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 ($CCMStudents_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $CCMStudents_view->PageUrl() ?>start=<?php echo $CCMStudents_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 ($CCMStudents_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $CCMStudents_view->PageUrl() ?>start=<?php echo $CCMStudents_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 $CCMStudents_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($CCMStudents_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $CCMStudents_view->PageUrl() ?>start=<?php echo $CCMStudents_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 ($CCMStudents_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $CCMStudents_view->PageUrl() ?>start=<?php echo $CCMStudents_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 $CCMStudents_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($CCMStudents_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 ($CCMStudents->SelectionCategory->Visible) { // SelectionCategory ?>
<tr<?php echo $CCMStudents->SelectionCategory->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->SelectionCategory->FldCaption() ?></td>
<td<?php echo $CCMStudents->SelectionCategory->CellAttributes() ?>>
<div<?php echo $CCMStudents->SelectionCategory->ViewAttributes() ?>><?php echo $CCMStudents->SelectionCategory->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Title->Visible) { // Title ?>
<tr<?php echo $CCMStudents->Title->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Title->FldCaption() ?></td>
<td<?php echo $CCMStudents->Title->CellAttributes() ?>>
<div<?php echo $CCMStudents->Title->ViewAttributes() ?>><?php echo $CCMStudents->Title->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Initials->Visible) { // Initials ?>
<tr<?php echo $CCMStudents->Initials->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Initials->FldCaption() ?></td>
<td<?php echo $CCMStudents->Initials->CellAttributes() ?>>
<div<?php echo $CCMStudents->Initials->ViewAttributes() ?>><?php echo $CCMStudents->Initials->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->FirstName->Visible) { // FirstName ?>
<tr<?php echo $CCMStudents->FirstName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->FirstName->FldCaption() ?></td>
<td<?php echo $CCMStudents->FirstName->CellAttributes() ?>>
<div<?php echo $CCMStudents->FirstName->ViewAttributes() ?>><?php echo $CCMStudents->FirstName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Surname->Visible) { // Surname ?>
<tr<?php echo $CCMStudents->Surname->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Surname->FldCaption() ?></td>
<td<?php echo $CCMStudents->Surname->CellAttributes() ?>>
<div<?php echo $CCMStudents->Surname->ViewAttributes() ?>><?php echo $CCMStudents->Surname->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $CCMStudents->KnownAs->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->KnownAs->FldCaption() ?></td>
<td<?php echo $CCMStudents->KnownAs->CellAttributes() ?>>
<div<?php echo $CCMStudents->KnownAs->ViewAttributes() ?>><?php echo $CCMStudents->KnownAs->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $CCMStudents->IDNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->IDNumber->FldCaption() ?></td>
<td<?php echo $CCMStudents->IDNumber->CellAttributes() ?>>
<div<?php echo $CCMStudents->IDNumber->ViewAttributes() ?>><?php echo $CCMStudents->IDNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Telephone->Visible) { // Telephone ?>
<tr<?php echo $CCMStudents->Telephone->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Telephone->FldCaption() ?></td>
<td<?php echo $CCMStudents->Telephone->CellAttributes() ?>>
<div<?php echo $CCMStudents->Telephone->ViewAttributes() ?>><?php echo $CCMStudents->Telephone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $CCMStudents->Cellphone->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Cellphone->FldCaption() ?></td>
<td<?php echo $CCMStudents->Cellphone->CellAttributes() ?>>
<div<?php echo $CCMStudents->Cellphone->ViewAttributes() ?>><?php echo $CCMStudents->Cellphone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $CCMStudents->EmailAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->EmailAddress->FldCaption() ?></td>
<td<?php echo $CCMStudents->EmailAddress->CellAttributes() ?>>
<div<?php echo $CCMStudents->EmailAddress->ViewAttributes() ?>><?php echo $CCMStudents->EmailAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->WorkAddress->Visible) { // WorkAddress ?>
<tr<?php echo $CCMStudents->WorkAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->WorkAddress->FldCaption() ?></td>
<td<?php echo $CCMStudents->WorkAddress->CellAttributes() ?>>
<div<?php echo $CCMStudents->WorkAddress->ViewAttributes() ?>><?php echo $CCMStudents->WorkAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->PostalAddress->Visible) { // PostalAddress ?>
<tr<?php echo $CCMStudents->PostalAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->PostalAddress->FldCaption() ?></td>
<td<?php echo $CCMStudents->PostalAddress->CellAttributes() ?>>
<div<?php echo $CCMStudents->PostalAddress->ViewAttributes() ?>><?php echo $CCMStudents->PostalAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Department->Visible) { // Department ?>
<tr<?php echo $CCMStudents->Department->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Department->FldCaption() ?></td>
<td<?php echo $CCMStudents->Department->CellAttributes() ?>>
<div<?php echo $CCMStudents->Department->ViewAttributes() ?>><?php echo $CCMStudents->Department->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Organisation->Visible) { // Organisation ?>
<tr<?php echo $CCMStudents->Organisation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Organisation->FldCaption() ?></td>
<td<?php echo $CCMStudents->Organisation->CellAttributes() ?>>
<div<?php echo $CCMStudents->Organisation->ViewAttributes() ?>><?php echo $CCMStudents->Organisation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->VATNo->Visible) { // VATNo ?>
<tr<?php echo $CCMStudents->VATNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->VATNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->VATNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->VATNo->ViewAttributes() ?>><?php echo $CCMStudents->VATNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->JobTitle->Visible) { // JobTitle ?>
<tr<?php echo $CCMStudents->JobTitle->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->JobTitle->FldCaption() ?></td>
<td<?php echo $CCMStudents->JobTitle->CellAttributes() ?>>
<div<?php echo $CCMStudents->JobTitle->ViewAttributes() ?>><?php echo $CCMStudents->JobTitle->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->DateofBirth->Visible) { // DateofBirth ?>
<tr<?php echo $CCMStudents->DateofBirth->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->DateofBirth->FldCaption() ?></td>
<td<?php echo $CCMStudents->DateofBirth->CellAttributes() ?>>
<div<?php echo $CCMStudents->DateofBirth->ViewAttributes() ?>><?php echo $CCMStudents->DateofBirth->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->PlaceofBirth->Visible) { // PlaceofBirth ?>
<tr<?php echo $CCMStudents->PlaceofBirth->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->PlaceofBirth->FldCaption() ?></td>
<td<?php echo $CCMStudents->PlaceofBirth->CellAttributes() ?>>
<div<?php echo $CCMStudents->PlaceofBirth->ViewAttributes() ?>><?php echo $CCMStudents->PlaceofBirth->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->CountryofBirth->Visible) { // CountryofBirth ?>
<tr<?php echo $CCMStudents->CountryofBirth->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->CountryofBirth->FldCaption() ?></td>
<td<?php echo $CCMStudents->CountryofBirth->CellAttributes() ?>>
<div<?php echo $CCMStudents->CountryofBirth->ViewAttributes() ?>><?php echo $CCMStudents->CountryofBirth->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Province->Visible) { // Province ?>
<tr<?php echo $CCMStudents->Province->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Province->FldCaption() ?></td>
<td<?php echo $CCMStudents->Province->CellAttributes() ?>>
<div<?php echo $CCMStudents->Province->ViewAttributes() ?>><?php echo $CCMStudents->Province->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->MaleorFemale->Visible) { // MaleorFemale ?>
<tr<?php echo $CCMStudents->MaleorFemale->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->MaleorFemale->FldCaption() ?></td>
<td<?php echo $CCMStudents->MaleorFemale->CellAttributes() ?>>
<div<?php echo $CCMStudents->MaleorFemale->ViewAttributes() ?>><?php echo $CCMStudents->MaleorFemale->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->RaceGroup->Visible) { // RaceGroup ?>
<tr<?php echo $CCMStudents->RaceGroup->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->RaceGroup->FldCaption() ?></td>
<td<?php echo $CCMStudents->RaceGroup->CellAttributes() ?>>
<div<?php echo $CCMStudents->RaceGroup->ViewAttributes() ?>><?php echo $CCMStudents->RaceGroup->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Disability->Visible) { // Disability ?>
<tr<?php echo $CCMStudents->Disability->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Disability->FldCaption() ?></td>
<td<?php echo $CCMStudents->Disability->CellAttributes() ?>>
<div<?php echo $CCMStudents->Disability->ViewAttributes() ?>><?php echo $CCMStudents->Disability->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->DisabilityNature->Visible) { // DisabilityNature ?>
<tr<?php echo $CCMStudents->DisabilityNature->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->DisabilityNature->FldCaption() ?></td>
<td<?php echo $CCMStudents->DisabilityNature->CellAttributes() ?>>
<div<?php echo $CCMStudents->DisabilityNature->ViewAttributes() ?>><?php echo $CCMStudents->DisabilityNature->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->DisabilityCertificate->Visible) { // DisabilityCertificate ?>
<tr<?php echo $CCMStudents->DisabilityCertificate->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->DisabilityCertificate->FldCaption() ?></td>
<td<?php echo $CCMStudents->DisabilityCertificate->CellAttributes() ?>>
<?php if ($CCMStudents->DisabilityCertificate->HrefValue <> "" || $CCMStudents->DisabilityCertificate->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->DisabilityCertificate->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->DisabilityCertificate->HrefValue ?>"><?php echo $CCMStudents->DisabilityCertificate->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->DisabilityCertificate->Upload->DbValue)) { ?>
<?php echo $CCMStudents->DisabilityCertificate->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->ProfessionalCouncil->Visible) { // ProfessionalCouncil ?>
<tr<?php echo $CCMStudents->ProfessionalCouncil->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->ProfessionalCouncil->FldCaption() ?></td>
<td<?php echo $CCMStudents->ProfessionalCouncil->CellAttributes() ?>>
<div<?php echo $CCMStudents->ProfessionalCouncil->ViewAttributes() ?>><?php echo $CCMStudents->ProfessionalCouncil->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->CategoryReg->Visible) { // CategoryReg ?>
<tr<?php echo $CCMStudents->CategoryReg->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->CategoryReg->FldCaption() ?></td>
<td<?php echo $CCMStudents->CategoryReg->CellAttributes() ?>>
<div<?php echo $CCMStudents->CategoryReg->ViewAttributes() ?>><?php echo $CCMStudents->CategoryReg->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->CouncilRegNumber->Visible) { // CouncilRegNumber ?>
<tr<?php echo $CCMStudents->CouncilRegNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->CouncilRegNumber->FldCaption() ?></td>
<td<?php echo $CCMStudents->CouncilRegNumber->CellAttributes() ?>>
<div<?php echo $CCMStudents->CouncilRegNumber->ViewAttributes() ?>><?php echo $CCMStudents->CouncilRegNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->LengthCandidateReg->Visible) { // LengthCandidateReg ?>
<tr<?php echo $CCMStudents->LengthCandidateReg->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->LengthCandidateReg->FldCaption() ?></td>
<td<?php echo $CCMStudents->LengthCandidateReg->CellAttributes() ?>>
<div<?php echo $CCMStudents->LengthCandidateReg->ViewAttributes() ?>><?php echo $CCMStudents->LengthCandidateReg->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->YearsToProfReg->Visible) { // YearsToProfReg ?>
<tr<?php echo $CCMStudents->YearsToProfReg->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->YearsToProfReg->FldCaption() ?></td>
<td<?php echo $CCMStudents->YearsToProfReg->CellAttributes() ?>>
<div<?php echo $CCMStudents->YearsToProfReg->ViewAttributes() ?>><?php echo $CCMStudents->YearsToProfReg->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->FirstJobStart->Visible) { // FirstJobStart ?>
<tr<?php echo $CCMStudents->FirstJobStart->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->FirstJobStart->FldCaption() ?></td>
<td<?php echo $CCMStudents->FirstJobStart->CellAttributes() ?>>
<div<?php echo $CCMStudents->FirstJobStart->ViewAttributes() ?>><?php echo $CCMStudents->FirstJobStart->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->VolAssociations->Visible) { // VolAssociations ?>
<tr<?php echo $CCMStudents->VolAssociations->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->VolAssociations->FldCaption() ?></td>
<td<?php echo $CCMStudents->VolAssociations->CellAttributes() ?>>
<div<?php echo $CCMStudents->VolAssociations->ViewAttributes() ?>><?php echo $CCMStudents->VolAssociations->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BelongsTo->Visible) { // BelongsTo ?>
<tr<?php echo $CCMStudents->BelongsTo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BelongsTo->FldCaption() ?></td>
<td<?php echo $CCMStudents->BelongsTo->CellAttributes() ?>>
<div<?php echo $CCMStudents->BelongsTo->ViewAttributes() ?>><?php echo $CCMStudents->BelongsTo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->CESA_SABTACO_MemNum->Visible) { // CESA_SABTACO_MemNum ?>
<tr<?php echo $CCMStudents->CESA_SABTACO_MemNum->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->CESA_SABTACO_MemNum->FldCaption() ?></td>
<td<?php echo $CCMStudents->CESA_SABTACO_MemNum->CellAttributes() ?>>
<div<?php echo $CCMStudents->CESA_SABTACO_MemNum->ViewAttributes() ?>><?php echo $CCMStudents->CESA_SABTACO_MemNum->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->AreaDiscipline->Visible) { // AreaDiscipline ?>
<tr<?php echo $CCMStudents->AreaDiscipline->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->AreaDiscipline->FldCaption() ?></td>
<td<?php echo $CCMStudents->AreaDiscipline->CellAttributes() ?>>
<div<?php echo $CCMStudents->AreaDiscipline->ViewAttributes() ?>><?php echo $CCMStudents->AreaDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->AreaSubDiscipline->Visible) { // AreaSubDiscipline ?>
<tr<?php echo $CCMStudents->AreaSubDiscipline->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->AreaSubDiscipline->FldCaption() ?></td>
<td<?php echo $CCMStudents->AreaSubDiscipline->CellAttributes() ?>>
<div<?php echo $CCMStudents->AreaSubDiscipline->ViewAttributes() ?>><?php echo $CCMStudents->AreaSubDiscipline->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Salary->Visible) { // Salary ?>
<tr<?php echo $CCMStudents->Salary->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Salary->FldCaption() ?></td>
<td<?php echo $CCMStudents->Salary->CellAttributes() ?>>
<div<?php echo $CCMStudents->Salary->ViewAttributes() ?>><?php echo $CCMStudents->Salary->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Payslip->Visible) { // Payslip ?>
<tr<?php echo $CCMStudents->Payslip->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Payslip->FldCaption() ?></td>
<td<?php echo $CCMStudents->Payslip->CellAttributes() ?>>
<?php if ($CCMStudents->Payslip->HrefValue <> "" || $CCMStudents->Payslip->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->Payslip->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->Payslip->HrefValue ?>"><?php echo $CCMStudents->Payslip->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->Payslip->Upload->DbValue)) { ?>
<?php echo $CCMStudents->Payslip->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountName->Visible) { // BankAccountName ?>
<tr<?php echo $CCMStudents->BankAccountName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountName->FldCaption() ?></td>
<td<?php echo $CCMStudents->BankAccountName->CellAttributes() ?>>
<div<?php echo $CCMStudents->BankAccountName->ViewAttributes() ?>><?php echo $CCMStudents->BankAccountName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountBank->Visible) { // BankAccountBank ?>
<tr<?php echo $CCMStudents->BankAccountBank->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountBank->FldCaption() ?></td>
<td<?php echo $CCMStudents->BankAccountBank->CellAttributes() ?>>
<div<?php echo $CCMStudents->BankAccountBank->ViewAttributes() ?>><?php echo $CCMStudents->BankAccountBank->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountBranch->Visible) { // BankAccountBranch ?>
<tr<?php echo $CCMStudents->BankAccountBranch->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountBranch->FldCaption() ?></td>
<td<?php echo $CCMStudents->BankAccountBranch->CellAttributes() ?>>
<div<?php echo $CCMStudents->BankAccountBranch->ViewAttributes() ?>><?php echo $CCMStudents->BankAccountBranch->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountNo->Visible) { // BankAccountNo ?>
<tr<?php echo $CCMStudents->BankAccountNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->BankAccountNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->BankAccountNo->ViewAttributes() ?>><?php echo $CCMStudents->BankAccountNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountProof->Visible) { // BankAccountProof ?>
<tr<?php echo $CCMStudents->BankAccountProof->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountProof->FldCaption() ?></td>
<td<?php echo $CCMStudents->BankAccountProof->CellAttributes() ?>>
<?php if ($CCMStudents->BankAccountProof->HrefValue <> "" || $CCMStudents->BankAccountProof->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->BankAccountProof->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->BankAccountProof->HrefValue ?>"><?php echo $CCMStudents->BankAccountProof->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->BankAccountProof->Upload->DbValue)) { ?>
<?php echo $CCMStudents->BankAccountProof->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Funding->Visible) { // Funding ?>
<tr<?php echo $CCMStudents->Funding->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Funding->FldCaption() ?></td>
<td<?php echo $CCMStudents->Funding->CellAttributes() ?>>
<div<?php echo $CCMStudents->Funding->ViewAttributes() ?>><?php echo $CCMStudents->Funding->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->CWDTP->Visible) { // CWDTP ?>
<tr<?php echo $CCMStudents->CWDTP->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->CWDTP->FldCaption() ?></td>
<td<?php echo $CCMStudents->CWDTP->CellAttributes() ?>>
<div<?php echo $CCMStudents->CWDTP->ViewAttributes() ?>><?php echo $CCMStudents->CWDTP->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByName->Visible) { // BookedByName ?>
<tr<?php echo $CCMStudents->BookedByName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BookedByName->FldCaption() ?></td>
<td<?php echo $CCMStudents->BookedByName->CellAttributes() ?>>
<div<?php echo $CCMStudents->BookedByName->ViewAttributes() ?>><?php echo $CCMStudents->BookedByName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByDesignation->Visible) { // BookedByDesignation ?>
<tr<?php echo $CCMStudents->BookedByDesignation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BookedByDesignation->FldCaption() ?></td>
<td<?php echo $CCMStudents->BookedByDesignation->CellAttributes() ?>>
<div<?php echo $CCMStudents->BookedByDesignation->ViewAttributes() ?>><?php echo $CCMStudents->BookedByDesignation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByTelNo->Visible) { // BookedByTelNo ?>
<tr<?php echo $CCMStudents->BookedByTelNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BookedByTelNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->BookedByTelNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->BookedByTelNo->ViewAttributes() ?>><?php echo $CCMStudents->BookedByTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
<tr<?php echo $CCMStudents->BookedByFaxNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BookedByFaxNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->BookedByFaxNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->BookedByFaxNo->ViewAttributes() ?>><?php echo $CCMStudents->BookedByFaxNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByCellNo->Visible) { // BookedByCellNo ?>
<tr<?php echo $CCMStudents->BookedByCellNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BookedByCellNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->BookedByCellNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->BookedByCellNo->ViewAttributes() ?>><?php echo $CCMStudents->BookedByCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByEmail->Visible) { // BookedByEmail ?>
<tr<?php echo $CCMStudents->BookedByEmail->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BookedByEmail->FldCaption() ?></td>
<td<?php echo $CCMStudents->BookedByEmail->CellAttributes() ?>>
<div<?php echo $CCMStudents->BookedByEmail->ViewAttributes() ?>><?php echo $CCMStudents->BookedByEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->MentorID->Visible) { // MentorID ?>
<tr<?php echo $CCMStudents->MentorID->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->MentorID->FldCaption() ?></td>
<td<?php echo $CCMStudents->MentorID->CellAttributes() ?>>
<div<?php echo $CCMStudents->MentorID->ViewAttributes() ?>><?php echo $CCMStudents->MentorID->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->EmployerID->Visible) { // EmployerID ?>
<tr<?php echo $CCMStudents->EmployerID->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->EmployerID->FldCaption() ?></td>
<td<?php echo $CCMStudents->EmployerID->CellAttributes() ?>>
<div<?php echo $CCMStudents->EmployerID->ViewAttributes() ?>><?php echo $CCMStudents->EmployerID->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerName->Visible) { // HRManagerName ?>
<tr<?php echo $CCMStudents->HRManagerName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerName->FldCaption() ?></td>
<td<?php echo $CCMStudents->HRManagerName->CellAttributes() ?>>
<div<?php echo $CCMStudents->HRManagerName->ViewAttributes() ?>><?php echo $CCMStudents->HRManagerName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
<tr<?php echo $CCMStudents->HRManagerDesignation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerDesignation->FldCaption() ?></td>
<td<?php echo $CCMStudents->HRManagerDesignation->CellAttributes() ?>>
<div<?php echo $CCMStudents->HRManagerDesignation->ViewAttributes() ?>><?php echo $CCMStudents->HRManagerDesignation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
<tr<?php echo $CCMStudents->HRManagerTelNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerTelNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->HRManagerTelNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->HRManagerTelNo->ViewAttributes() ?>><?php echo $CCMStudents->HRManagerTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
<tr<?php echo $CCMStudents->HRManagerCellNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerCellNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->HRManagerCellNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->HRManagerCellNo->ViewAttributes() ?>><?php echo $CCMStudents->HRManagerCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerEmail->Visible) { // HRManagerEmail ?>
<tr<?php echo $CCMStudents->HRManagerEmail->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerEmail->FldCaption() ?></td>
<td<?php echo $CCMStudents->HRManagerEmail->CellAttributes() ?>>
<div<?php echo $CCMStudents->HRManagerEmail->ViewAttributes() ?>><?php echo $CCMStudents->HRManagerEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorName->Visible) { // SupervisorName ?>
<tr<?php echo $CCMStudents->SupervisorName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorName->FldCaption() ?></td>
<td<?php echo $CCMStudents->SupervisorName->CellAttributes() ?>>
<div<?php echo $CCMStudents->SupervisorName->ViewAttributes() ?>><?php echo $CCMStudents->SupervisorName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorDesig->Visible) { // SupervisorDesig ?>
<tr<?php echo $CCMStudents->SupervisorDesig->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorDesig->FldCaption() ?></td>
<td<?php echo $CCMStudents->SupervisorDesig->CellAttributes() ?>>
<div<?php echo $CCMStudents->SupervisorDesig->ViewAttributes() ?>><?php echo $CCMStudents->SupervisorDesig->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorProfRegNo->Visible) { // SupervisorProfRegNo ?>
<tr<?php echo $CCMStudents->SupervisorProfRegNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorProfRegNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->SupervisorProfRegNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->SupervisorProfRegNo->ViewAttributes() ?>><?php echo $CCMStudents->SupervisorProfRegNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorTelNo->Visible) { // SupervisorTelNo ?>
<tr<?php echo $CCMStudents->SupervisorTelNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorTelNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->SupervisorTelNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->SupervisorTelNo->ViewAttributes() ?>><?php echo $CCMStudents->SupervisorTelNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorCellNo->Visible) { // SupervisorCellNo ?>
<tr<?php echo $CCMStudents->SupervisorCellNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorCellNo->FldCaption() ?></td>
<td<?php echo $CCMStudents->SupervisorCellNo->CellAttributes() ?>>
<div<?php echo $CCMStudents->SupervisorCellNo->ViewAttributes() ?>><?php echo $CCMStudents->SupervisorCellNo->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorEmail->Visible) { // SupervisorEmail ?>
<tr<?php echo $CCMStudents->SupervisorEmail->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorEmail->FldCaption() ?></td>
<td<?php echo $CCMStudents->SupervisorEmail->CellAttributes() ?>>
<div<?php echo $CCMStudents->SupervisorEmail->ViewAttributes() ?>><?php echo $CCMStudents->SupervisorEmail->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->EducationalInst->Visible) { // EducationalInst ?>
<tr<?php echo $CCMStudents->EducationalInst->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->EducationalInst->FldCaption() ?></td>
<td<?php echo $CCMStudents->EducationalInst->CellAttributes() ?>>
<div<?php echo $CCMStudents->EducationalInst->ViewAttributes() ?>><?php echo $CCMStudents->EducationalInst->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Qualifications->Visible) { // Qualifications ?>
<tr<?php echo $CCMStudents->Qualifications->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Qualifications->FldCaption() ?></td>
<td<?php echo $CCMStudents->Qualifications->CellAttributes() ?>>
<div<?php echo $CCMStudents->Qualifications->ViewAttributes() ?>><?php echo $CCMStudents->Qualifications->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->DateFinalExam->Visible) { // DateFinalExam ?>
<tr<?php echo $CCMStudents->DateFinalExam->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->DateFinalExam->FldCaption() ?></td>
<td<?php echo $CCMStudents->DateFinalExam->CellAttributes() ?>>
<div<?php echo $CCMStudents->DateFinalExam->ViewAttributes() ?>><?php echo $CCMStudents->DateFinalExam->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->IDFile->Visible) { // IDFile ?>
<tr<?php echo $CCMStudents->IDFile->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->IDFile->FldCaption() ?></td>
<td<?php echo $CCMStudents->IDFile->CellAttributes() ?>>
<?php if ($CCMStudents->IDFile->HrefValue <> "" || $CCMStudents->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->IDFile->HrefValue ?>"><?php echo $CCMStudents->IDFile->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->IDFile->Upload->DbValue)) { ?>
<?php echo $CCMStudents->IDFile->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->CVFile->Visible) { // CVFile ?>
<tr<?php echo $CCMStudents->CVFile->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->CVFile->FldCaption() ?></td>
<td<?php echo $CCMStudents->CVFile->CellAttributes() ?>>
<?php if ($CCMStudents->CVFile->HrefValue <> "" || $CCMStudents->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->CVFile->HrefValue ?>"><?php echo $CCMStudents->CVFile->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->CVFile->Upload->DbValue)) { ?>
<?php echo $CCMStudents->CVFile->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->QualCertificate1->Visible) { // QualCertificate1 ?>
<tr<?php echo $CCMStudents->QualCertificate1->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->QualCertificate1->FldCaption() ?></td>
<td<?php echo $CCMStudents->QualCertificate1->CellAttributes() ?>>
<?php if ($CCMStudents->QualCertificate1->HrefValue <> "" || $CCMStudents->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->QualCertificate1->HrefValue ?>"><?php echo $CCMStudents->QualCertificate1->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $CCMStudents->QualCertificate1->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->QualCertificate2->Visible) { // QualCertificate2 ?>
<tr<?php echo $CCMStudents->QualCertificate2->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->QualCertificate2->FldCaption() ?></td>
<td<?php echo $CCMStudents->QualCertificate2->CellAttributes() ?>>
<?php if ($CCMStudents->QualCertificate2->HrefValue <> "" || $CCMStudents->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->QualCertificate2->HrefValue ?>"><?php echo $CCMStudents->QualCertificate2->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $CCMStudents->QualCertificate2->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->QualCertificate3->Visible) { // QualCertificate3 ?>
<tr<?php echo $CCMStudents->QualCertificate3->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->QualCertificate3->FldCaption() ?></td>
<td<?php echo $CCMStudents->QualCertificate3->CellAttributes() ?>>
<?php if ($CCMStudents->QualCertificate3->HrefValue <> "" || $CCMStudents->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->QualCertificate3->HrefValue ?>"><?php echo $CCMStudents->QualCertificate3->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $CCMStudents->QualCertificate3->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->MentorUndertaking->Visible) { // MentorUndertaking ?>
<tr<?php echo $CCMStudents->MentorUndertaking->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->MentorUndertaking->FldCaption() ?></td>
<td<?php echo $CCMStudents->MentorUndertaking->CellAttributes() ?>>
<?php if ($CCMStudents->MentorUndertaking->HrefValue <> "" || $CCMStudents->MentorUndertaking->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->MentorUndertaking->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->MentorUndertaking->HrefValue ?>"><?php echo $CCMStudents->MentorUndertaking->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->MentorUndertaking->Upload->DbValue)) { ?>
<?php echo $CCMStudents->MentorUndertaking->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->CandUUndertaking->Visible) { // CandUUndertaking ?>
<tr<?php echo $CCMStudents->CandUUndertaking->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->CandUUndertaking->FldCaption() ?></td>
<td<?php echo $CCMStudents->CandUUndertaking->CellAttributes() ?>>
<?php if ($CCMStudents->CandUUndertaking->HrefValue <> "" || $CCMStudents->CandUUndertaking->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->CandUUndertaking->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->CandUUndertaking->HrefValue ?>"><?php echo $CCMStudents->CandUUndertaking->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->CandUUndertaking->Upload->DbValue)) { ?>
<?php echo $CCMStudents->CandUUndertaking->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->CompanyCandidatePolicy->Visible) { // CompanyCandidatePolicy ?>
<tr<?php echo $CCMStudents->CompanyCandidatePolicy->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->CompanyCandidatePolicy->FldCaption() ?></td>
<td<?php echo $CCMStudents->CompanyCandidatePolicy->CellAttributes() ?>>
<?php if ($CCMStudents->CompanyCandidatePolicy->HrefValue <> "" || $CCMStudents->CompanyCandidatePolicy->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->CompanyCandidatePolicy->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->CompanyCandidatePolicy->HrefValue ?>"><?php echo $CCMStudents->CompanyCandidatePolicy->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->CompanyCandidatePolicy->Upload->DbValue)) { ?>
<?php echo $CCMStudents->CompanyCandidatePolicy->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->ResidenceProof->Visible) { // ResidenceProof ?>
<tr<?php echo $CCMStudents->ResidenceProof->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->ResidenceProof->FldCaption() ?></td>
<td<?php echo $CCMStudents->ResidenceProof->CellAttributes() ?>>
<?php if ($CCMStudents->ResidenceProof->HrefValue <> "" || $CCMStudents->ResidenceProof->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->ResidenceProof->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->ResidenceProof->HrefValue ?>"><?php echo $CCMStudents->ResidenceProof->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->ResidenceProof->Upload->DbValue)) { ?>
<?php echo $CCMStudents->ResidenceProof->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->SignedAppForm->Visible) { // SignedAppForm ?>
<tr<?php echo $CCMStudents->SignedAppForm->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->SignedAppForm->FldCaption() ?></td>
<td<?php echo $CCMStudents->SignedAppForm->CellAttributes() ?>>
<?php if ($CCMStudents->SignedAppForm->HrefValue <> "" || $CCMStudents->SignedAppForm->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->SignedAppForm->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->SignedAppForm->HrefValue ?>"><?php echo $CCMStudents->SignedAppForm->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->SignedAppForm->Upload->DbValue)) { ?>
<?php echo $CCMStudents->SignedAppForm->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Photograph->Visible) { // Photograph ?>
<tr<?php echo $CCMStudents->Photograph->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Photograph->FldCaption() ?></td>
<td<?php echo $CCMStudents->Photograph->CellAttributes() ?>>
<?php if ($CCMStudents->Photograph->HrefValue <> "" || $CCMStudents->Photograph->TooltipValue <> "") { ?>
<?php if (!empty($CCMStudents->Photograph->Upload->DbValue)) { ?>
<a href="<?php echo $CCMStudents->Photograph->HrefValue ?>"><?php echo $CCMStudents->Photograph->ViewValue ?></a>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCMStudents->Photograph->Upload->DbValue)) { ?>
<?php echo $CCMStudents->Photograph->ViewValue ?>
<?php } elseif (!in_array($CCMStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($CCMStudents->StudentNumber->Visible) { // StudentNumber ?>
<tr<?php echo $CCMStudents->StudentNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->StudentNumber->FldCaption() ?></td>
<td<?php echo $CCMStudents->StudentNumber->CellAttributes() ?>>
<div<?php echo $CCMStudents->StudentNumber->ViewAttributes() ?>><?php echo $CCMStudents->StudentNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $CCMStudents->WebUsername->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->WebUsername->FldCaption() ?></td>
<td<?php echo $CCMStudents->WebUsername->CellAttributes() ?>>
<div<?php echo $CCMStudents->WebUsername->ViewAttributes() ?>><?php echo $CCMStudents->WebUsername->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $CCMStudents->WebPassword->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->WebPassword->FldCaption() ?></td>
<td<?php echo $CCMStudents->WebPassword->CellAttributes() ?>>
<div<?php echo $CCMStudents->WebPassword->ViewAttributes() ?>><?php echo $CCMStudents->WebPassword->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->BlockAccess->Visible) { // BlockAccess ?>
<tr<?php echo $CCMStudents->BlockAccess->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->BlockAccess->FldCaption() ?></td>
<td<?php echo $CCMStudents->BlockAccess->CellAttributes() ?>>
<div<?php echo $CCMStudents->BlockAccess->ViewAttributes() ?>><?php echo $CCMStudents->BlockAccess->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMStudents->Archived->Visible) { // Archived ?>
<tr<?php echo $CCMStudents->Archived->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMStudents->Archived->FldCaption() ?></td>
<td<?php echo $CCMStudents->Archived->CellAttributes() ?>>
<div<?php echo $CCMStudents->Archived->ViewAttributes() ?>><?php echo $CCMStudents->Archived->ViewValue ?></div></td>
</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<?php if ($CCMStudents->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($CCMStudents_view->Pager)) $CCMStudents_view->Pager = new cPrevNextPager($CCMStudents_view->lStartRec, $CCMStudents_view->lDisplayRecs, $CCMStudents_view->lTotalRecs) ?>
<?php if ($CCMStudents_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 ($CCMStudents_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $CCMStudents_view->PageUrl() ?>start=<?php echo $CCMStudents_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 ($CCMStudents_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $CCMStudents_view->PageUrl() ?>start=<?php echo $CCMStudents_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 $CCMStudents_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($CCMStudents_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $CCMStudents_view->PageUrl() ?>start=<?php echo $CCMStudents_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 ($CCMStudents_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $CCMStudents_view->PageUrl() ?>start=<?php echo $CCMStudents_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 $CCMStudents_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($CCMStudents_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 ($CCMStudents->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
$CCMStudents_view->Page_Terminate();
?>
<?php
//
// Page class
//
class cCCMStudents_view {
// Page ID
var $PageID = 'view';
// Table name
var $TableName = 'CCMStudents';
// Page object name
var $PageObjName = 'CCMStudents_view';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $CCMStudents;
if ($CCMStudents->UseTokenInUrl) $PageUrl .= "t=" . $CCMStudents->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, $CCMStudents;
if ($CCMStudents->UseTokenInUrl) {
if ($objForm)
return ($CCMStudents->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($CCMStudents->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function cCCMStudents_view() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (CCMStudents)
$GLOBALS["CCMStudents"] = new cCCMStudents();
// Table object (CCMUsers)
$GLOBALS['CCMUsers'] = new cCCMUsers();
// 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", 'CCMStudents', 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 $CCMStudents;
// 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("CCMStudentslist.php");
}
// Get export parameters
if (@$_GET["export"] <> "") {
$CCMStudents->Export = $_GET["export"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] <> "")
$CCMStudents->Export = $_POST["exporttype"];
} else {
$CCMStudents->setExportReturnUrl(ew_CurrentUrl());
}
$gsExport = $CCMStudents->Export; // Get export parameter, used in header
$gsExportFile = $CCMStudents->TableVar; // Get export file, used in header
if (@$_GET["CCMStudentID"] <> "") {
if ($gsExportFile <> "") $gsExportFile .= "_";
$gsExportFile .= ew_StripSlashes($_GET["CCMStudentID"]);
}
if ($CCMStudents->Export == "excel") {
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=' . $gsExportFile .'.xls');
}
if ($CCMStudents->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, $CCMStudents;
// Load current record
$bLoadCurrentRecord = FALSE;
$sReturnUrl = "";
$bMatchRecord = FALSE;
if ($this->IsPageRequest()) { // Validate request
if (@$_GET["CCMStudentID"] <> "") {
$CCMStudents->CCMStudentID->setQueryStringValue($_GET["CCMStudentID"]);
$this->arRecKey["CCMStudentID"] = $CCMStudents->CCMStudentID->QueryStringValue;
} else {
$bLoadCurrentRecord = TRUE;
}
// Get action
$CCMStudents->CurrentAction = "I"; // Display form
switch ($CCMStudents->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("CCMStudentslist.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($CCMStudents->CCMStudentID->CurrentValue) == strval($rs->fields('CCMStudentID'))) {
$CCMStudents->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 = "CCMStudentslist.php"; // No matching record, return to list
} else {
$this->LoadRowValues($rs); // Load row values
}
}
// Export data only
if (in_array($CCMStudents->Export, array("html","word","excel","xml","csv","email"))) {
$this->ExportData();
if ($CCMStudents->Export <> "email")
$this->Page_Terminate(); // Terminate response
exit();
}
} else {
$sReturnUrl = "CCMStudentslist.php"; // Not page request, return to list
}
if ($sReturnUrl <> "")
$this->Page_Terminate($sReturnUrl);
// Render row
$CCMStudents->RowType = EW_ROWTYPE_VIEW;
$this->RenderRow();
}
// Set up starting record parameters
function SetUpStartRec() {
global $CCMStudents;
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];
$CCMStudents->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;
}
$CCMStudents->setStartRecordNumber($this->lStartRec);
}
}
}
$this->lStartRec = $CCMStudents->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
$CCMStudents->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
$CCMStudents->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
$CCMStudents->setStartRecordNumber($this->lStartRec);
}
}
// Load recordset
function LoadRecordset($offset = -1, $rowcnt = -1) {
global $conn, $CCMStudents;
// Call Recordset Selecting event
$CCMStudents->Recordset_Selecting($CCMStudents->CurrentFilter);
// Load List page SQL
$sSql = $CCMStudents->SelectSQL();
if ($offset > -1 && $rowcnt > -1)
$sSql .= " LIMIT $offset, $rowcnt";
// Load recordset
$rs = ew_LoadRecordset($sSql);
// Call Recordset Selected event
$CCMStudents->Recordset_Selected($rs);
return $rs;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $CCMStudents;
$sFilter = $CCMStudents->KeyFilter();
// Call Row Selecting event
$CCMStudents->Row_Selecting($sFilter);
// Load SQL based on filter
$CCMStudents->CurrentFilter = $sFilter;
$sSql = $CCMStudents->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$CCMStudents->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $CCMStudents;
$CCMStudents->CCMStudentID->setDbValue($rs->fields('CCMStudentID'));
$CCMStudents->SelectionCategory->setDbValue($rs->fields('SelectionCategory'));
$CCMStudents->Title->setDbValue($rs->fields('Title'));
$CCMStudents->Initials->setDbValue($rs->fields('Initials'));
$CCMStudents->FirstName->setDbValue($rs->fields('FirstName'));
$CCMStudents->Surname->setDbValue($rs->fields('Surname'));
$CCMStudents->KnownAs->setDbValue($rs->fields('KnownAs'));
$CCMStudents->IDNumber->setDbValue($rs->fields('IDNumber'));
$CCMStudents->Telephone->setDbValue($rs->fields('Telephone'));
$CCMStudents->Cellphone->setDbValue($rs->fields('Cellphone'));
$CCMStudents->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$CCMStudents->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$CCMStudents->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$CCMStudents->Department->setDbValue($rs->fields('Department'));
$CCMStudents->Organisation->setDbValue($rs->fields('Organisation'));
$CCMStudents->VATNo->setDbValue($rs->fields('VATNo'));
$CCMStudents->JobTitle->setDbValue($rs->fields('JobTitle'));
$CCMStudents->DateofBirth->setDbValue($rs->fields('DateofBirth'));
$CCMStudents->PlaceofBirth->setDbValue($rs->fields('PlaceofBirth'));
$CCMStudents->CountryofBirth->setDbValue($rs->fields('CountryofBirth'));
$CCMStudents->Province->setDbValue($rs->fields('Province'));
$CCMStudents->MaleorFemale->setDbValue($rs->fields('MaleorFemale'));
$CCMStudents->RaceGroup->setDbValue($rs->fields('RaceGroup'));
$CCMStudents->Disability->setDbValue($rs->fields('Disability'));
$CCMStudents->DisabilityNature->setDbValue($rs->fields('DisabilityNature'));
$CCMStudents->DisabilityCertificate->Upload->DbValue = $rs->fields('DisabilityCertificate');
$CCMStudents->ProfessionalCouncil->setDbValue($rs->fields('ProfessionalCouncil'));
$CCMStudents->CategoryReg->setDbValue($rs->fields('CategoryReg'));
$CCMStudents->CouncilRegNumber->setDbValue($rs->fields('CouncilRegNumber'));
$CCMStudents->LengthCandidateReg->setDbValue($rs->fields('LengthCandidateReg'));
$CCMStudents->YearsToProfReg->setDbValue($rs->fields('YearsToProfReg'));
$CCMStudents->FirstJobStart->setDbValue($rs->fields('FirstJobStart'));
$CCMStudents->VolAssociations->setDbValue($rs->fields('VolAssociations'));
$CCMStudents->BelongsTo->setDbValue($rs->fields('BelongsTo'));
$CCMStudents->CESA_SABTACO_MemNum->setDbValue($rs->fields('CESA_SABTACO_MemNum'));
$CCMStudents->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
$CCMStudents->AreaSubDiscipline->setDbValue($rs->fields('AreaSubDiscipline'));
$CCMStudents->Salary->setDbValue($rs->fields('Salary'));
$CCMStudents->Payslip->Upload->DbValue = $rs->fields('Payslip');
$CCMStudents->BankAccountName->setDbValue($rs->fields('BankAccountName'));
$CCMStudents->BankAccountBank->setDbValue($rs->fields('BankAccountBank'));
$CCMStudents->BankAccountBranch->setDbValue($rs->fields('BankAccountBranch'));
$CCMStudents->BankAccountNo->setDbValue($rs->fields('BankAccountNo'));
$CCMStudents->BankAccountProof->Upload->DbValue = $rs->fields('BankAccountProof');
$CCMStudents->Funding->setDbValue($rs->fields('Funding'));
$CCMStudents->CWDTP->setDbValue($rs->fields('CWDTP'));
$CCMStudents->BookedByName->setDbValue($rs->fields('BookedByName'));
$CCMStudents->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
$CCMStudents->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
$CCMStudents->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
$CCMStudents->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
$CCMStudents->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
$CCMStudents->MentorID->setDbValue($rs->fields('MentorID'));
$CCMStudents->MentorName->setDbValue($rs->fields('MentorName'));
$CCMStudents->MentorDesig->setDbValue($rs->fields('MentorDesig'));
$CCMStudents->MentorProfRegNo->setDbValue($rs->fields('MentorProfRegNo'));
$CCMStudents->MentorRegNo->setDbValue($rs->fields('MentorRegNo'));
$CCMStudents->MentorTel->setDbValue($rs->fields('MentorTel'));
$CCMStudents->MentorCell->setDbValue($rs->fields('MentorCell'));
$CCMStudents->MentorEmail->setDbValue($rs->fields('MentorEmail'));
$CCMStudents->EmployerID->setDbValue($rs->fields('EmployerID'));
$CCMStudents->HRManagerName->setDbValue($rs->fields('HRManagerName'));
$CCMStudents->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
$CCMStudents->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
$CCMStudents->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
$CCMStudents->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
$CCMStudents->SupervisorName->setDbValue($rs->fields('SupervisorName'));
$CCMStudents->SupervisorDesig->setDbValue($rs->fields('SupervisorDesig'));
$CCMStudents->SupervisorProfRegNo->setDbValue($rs->fields('SupervisorProfRegNo'));
$CCMStudents->SupervisorTelNo->setDbValue($rs->fields('SupervisorTelNo'));
$CCMStudents->SupervisorCellNo->setDbValue($rs->fields('SupervisorCellNo'));
$CCMStudents->SupervisorEmail->setDbValue($rs->fields('SupervisorEmail'));
$CCMStudents->EducationalInst->setDbValue($rs->fields('EducationalInst'));
$CCMStudents->Qualifications->setDbValue($rs->fields('Qualifications'));
$CCMStudents->DateFinalExam->setDbValue($rs->fields('DateFinalExam'));
$CCMStudents->IDFile->Upload->DbValue = $rs->fields('IDFile');
$CCMStudents->CVFile->Upload->DbValue = $rs->fields('CVFile');
$CCMStudents->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
$CCMStudents->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
$CCMStudents->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
$CCMStudents->MentorUndertaking->Upload->DbValue = $rs->fields('MentorUndertaking');
$CCMStudents->CandUUndertaking->Upload->DbValue = $rs->fields('CandUUndertaking');
$CCMStudents->CompanyCandidatePolicy->Upload->DbValue = $rs->fields('CompanyCandidatePolicy');
$CCMStudents->ResidenceProof->Upload->DbValue = $rs->fields('ResidenceProof');
$CCMStudents->SignedAppForm->Upload->DbValue = $rs->fields('SignedAppForm');
$CCMStudents->Photograph->Upload->DbValue = $rs->fields('Photograph');
$CCMStudents->StudentNumber->setDbValue($rs->fields('StudentNumber'));
$CCMStudents->WebUsername->setDbValue($rs->fields('WebUsername'));
$CCMStudents->WebPassword->setDbValue($rs->fields('WebPassword'));
$CCMStudents->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$CCMStudents->SABTACO->setDbValue($rs->fields('SABTACO'));
$CCMStudents->CESA->setDbValue($rs->fields('CESA'));
$CCMStudents->Archived->setDbValue($rs->fields('Archived'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $CCMStudents;
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print&" . "CCMStudentID=" . urlencode($CCMStudents->CCMStudentID->CurrentValue);
$this->ExportHtmlUrl = $this->PageUrl() . "export=html&" . "CCMStudentID=" . urlencode($CCMStudents->CCMStudentID->CurrentValue);
$this->ExportExcelUrl = $this->PageUrl() . "export=excel&" . "CCMStudentID=" . urlencode($CCMStudents->CCMStudentID->CurrentValue);
$this->ExportWordUrl = $this->PageUrl() . "export=word&" . "CCMStudentID=" . urlencode($CCMStudents->CCMStudentID->CurrentValue);
$this->ExportXmlUrl = $this->PageUrl() . "export=xml&" . "CCMStudentID=" . urlencode($CCMStudents->CCMStudentID->CurrentValue);
$this->ExportCsvUrl = $this->PageUrl() . "export=csv&" . "CCMStudentID=" . urlencode($CCMStudents->CCMStudentID->CurrentValue);
$this->AddUrl = $CCMStudents->AddUrl();
$this->EditUrl = $CCMStudents->EditUrl();
$this->CopyUrl = $CCMStudents->CopyUrl();
$this->DeleteUrl = $CCMStudents->DeleteUrl();
$this->ListUrl = $CCMStudents->ListUrl();
// Call Row_Rendering event
$CCMStudents->Row_Rendering();
// Common render codes for all row types
// SelectionCategory
$CCMStudents->SelectionCategory->CellCssStyle = ""; $CCMStudents->SelectionCategory->CellCssClass = "";
$CCMStudents->SelectionCategory->CellAttrs = array(); $CCMStudents->SelectionCategory->ViewAttrs = array(); $CCMStudents->SelectionCategory->EditAttrs = array();
// Title
$CCMStudents->Title->CellCssStyle = ""; $CCMStudents->Title->CellCssClass = "";
$CCMStudents->Title->CellAttrs = array(); $CCMStudents->Title->ViewAttrs = array(); $CCMStudents->Title->EditAttrs = array();
// Initials
$CCMStudents->Initials->CellCssStyle = ""; $CCMStudents->Initials->CellCssClass = "";
$CCMStudents->Initials->CellAttrs = array(); $CCMStudents->Initials->ViewAttrs = array(); $CCMStudents->Initials->EditAttrs = array();
// FirstName
$CCMStudents->FirstName->CellCssStyle = ""; $CCMStudents->FirstName->CellCssClass = "";
$CCMStudents->FirstName->CellAttrs = array(); $CCMStudents->FirstName->ViewAttrs = array(); $CCMStudents->FirstName->EditAttrs = array();
// Surname
$CCMStudents->Surname->CellCssStyle = ""; $CCMStudents->Surname->CellCssClass = "";
$CCMStudents->Surname->CellAttrs = array(); $CCMStudents->Surname->ViewAttrs = array(); $CCMStudents->Surname->EditAttrs = array();
// KnownAs
$CCMStudents->KnownAs->CellCssStyle = ""; $CCMStudents->KnownAs->CellCssClass = "";
$CCMStudents->KnownAs->CellAttrs = array(); $CCMStudents->KnownAs->ViewAttrs = array(); $CCMStudents->KnownAs->EditAttrs = array();
// IDNumber
$CCMStudents->IDNumber->CellCssStyle = ""; $CCMStudents->IDNumber->CellCssClass = "";
$CCMStudents->IDNumber->CellAttrs = array(); $CCMStudents->IDNumber->ViewAttrs = array(); $CCMStudents->IDNumber->EditAttrs = array();
// Telephone
$CCMStudents->Telephone->CellCssStyle = ""; $CCMStudents->Telephone->CellCssClass = "";
$CCMStudents->Telephone->CellAttrs = array(); $CCMStudents->Telephone->ViewAttrs = array(); $CCMStudents->Telephone->EditAttrs = array();
// Cellphone
$CCMStudents->Cellphone->CellCssStyle = ""; $CCMStudents->Cellphone->CellCssClass = "";
$CCMStudents->Cellphone->CellAttrs = array(); $CCMStudents->Cellphone->ViewAttrs = array(); $CCMStudents->Cellphone->EditAttrs = array();
// EmailAddress
$CCMStudents->EmailAddress->CellCssStyle = ""; $CCMStudents->EmailAddress->CellCssClass = "";
$CCMStudents->EmailAddress->CellAttrs = array(); $CCMStudents->EmailAddress->ViewAttrs = array(); $CCMStudents->EmailAddress->EditAttrs = array();
// WorkAddress
$CCMStudents->WorkAddress->CellCssStyle = ""; $CCMStudents->WorkAddress->CellCssClass = "";
$CCMStudents->WorkAddress->CellAttrs = array(); $CCMStudents->WorkAddress->ViewAttrs = array(); $CCMStudents->WorkAddress->EditAttrs = array();
// PostalAddress
$CCMStudents->PostalAddress->CellCssStyle = ""; $CCMStudents->PostalAddress->CellCssClass = "";
$CCMStudents->PostalAddress->CellAttrs = array(); $CCMStudents->PostalAddress->ViewAttrs = array(); $CCMStudents->PostalAddress->EditAttrs = array();
// Department
$CCMStudents->Department->CellCssStyle = ""; $CCMStudents->Department->CellCssClass = "";
$CCMStudents->Department->CellAttrs = array(); $CCMStudents->Department->ViewAttrs = array(); $CCMStudents->Department->EditAttrs = array();
// Organisation
$CCMStudents->Organisation->CellCssStyle = ""; $CCMStudents->Organisation->CellCssClass = "";
$CCMStudents->Organisation->CellAttrs = array(); $CCMStudents->Organisation->ViewAttrs = array(); $CCMStudents->Organisation->EditAttrs = array();
// VATNo
$CCMStudents->VATNo->CellCssStyle = ""; $CCMStudents->VATNo->CellCssClass = "";
$CCMStudents->VATNo->CellAttrs = array(); $CCMStudents->VATNo->ViewAttrs = array(); $CCMStudents->VATNo->EditAttrs = array();
// JobTitle
$CCMStudents->JobTitle->CellCssStyle = ""; $CCMStudents->JobTitle->CellCssClass = "";
$CCMStudents->JobTitle->CellAttrs = array(); $CCMStudents->JobTitle->ViewAttrs = array(); $CCMStudents->JobTitle->EditAttrs = array();
// DateofBirth
$CCMStudents->DateofBirth->CellCssStyle = ""; $CCMStudents->DateofBirth->CellCssClass = "";
$CCMStudents->DateofBirth->CellAttrs = array(); $CCMStudents->DateofBirth->ViewAttrs = array(); $CCMStudents->DateofBirth->EditAttrs = array();
// PlaceofBirth
$CCMStudents->PlaceofBirth->CellCssStyle = ""; $CCMStudents->PlaceofBirth->CellCssClass = "";
$CCMStudents->PlaceofBirth->CellAttrs = array(); $CCMStudents->PlaceofBirth->ViewAttrs = array(); $CCMStudents->PlaceofBirth->EditAttrs = array();
// CountryofBirth
$CCMStudents->CountryofBirth->CellCssStyle = ""; $CCMStudents->CountryofBirth->CellCssClass = "";
$CCMStudents->CountryofBirth->CellAttrs = array(); $CCMStudents->CountryofBirth->ViewAttrs = array(); $CCMStudents->CountryofBirth->EditAttrs = array();
// Province
$CCMStudents->Province->CellCssStyle = ""; $CCMStudents->Province->CellCssClass = "";
$CCMStudents->Province->CellAttrs = array(); $CCMStudents->Province->ViewAttrs = array(); $CCMStudents->Province->EditAttrs = array();
// MaleorFemale
$CCMStudents->MaleorFemale->CellCssStyle = ""; $CCMStudents->MaleorFemale->CellCssClass = "";
$CCMStudents->MaleorFemale->CellAttrs = array(); $CCMStudents->MaleorFemale->ViewAttrs = array(); $CCMStudents->MaleorFemale->EditAttrs = array();
// RaceGroup
$CCMStudents->RaceGroup->CellCssStyle = ""; $CCMStudents->RaceGroup->CellCssClass = "";
$CCMStudents->RaceGroup->CellAttrs = array(); $CCMStudents->RaceGroup->ViewAttrs = array(); $CCMStudents->RaceGroup->EditAttrs = array();
// Disability
$CCMStudents->Disability->CellCssStyle = ""; $CCMStudents->Disability->CellCssClass = "";
$CCMStudents->Disability->CellAttrs = array(); $CCMStudents->Disability->ViewAttrs = array(); $CCMStudents->Disability->EditAttrs = array();
// DisabilityNature
$CCMStudents->DisabilityNature->CellCssStyle = ""; $CCMStudents->DisabilityNature->CellCssClass = "";
$CCMStudents->DisabilityNature->CellAttrs = array(); $CCMStudents->DisabilityNature->ViewAttrs = array(); $CCMStudents->DisabilityNature->EditAttrs = array();
// DisabilityCertificate
$CCMStudents->DisabilityCertificate->CellCssStyle = ""; $CCMStudents->DisabilityCertificate->CellCssClass = "";
$CCMStudents->DisabilityCertificate->CellAttrs = array(); $CCMStudents->DisabilityCertificate->ViewAttrs = array(); $CCMStudents->DisabilityCertificate->EditAttrs = array();
// ProfessionalCouncil
$CCMStudents->ProfessionalCouncil->CellCssStyle = ""; $CCMStudents->ProfessionalCouncil->CellCssClass = "";
$CCMStudents->ProfessionalCouncil->CellAttrs = array(); $CCMStudents->ProfessionalCouncil->ViewAttrs = array(); $CCMStudents->ProfessionalCouncil->EditAttrs = array();
// CategoryReg
$CCMStudents->CategoryReg->CellCssStyle = ""; $CCMStudents->CategoryReg->CellCssClass = "";
$CCMStudents->CategoryReg->CellAttrs = array(); $CCMStudents->CategoryReg->ViewAttrs = array(); $CCMStudents->CategoryReg->EditAttrs = array();
// CouncilRegNumber
$CCMStudents->CouncilRegNumber->CellCssStyle = ""; $CCMStudents->CouncilRegNumber->CellCssClass = "";
$CCMStudents->CouncilRegNumber->CellAttrs = array(); $CCMStudents->CouncilRegNumber->ViewAttrs = array(); $CCMStudents->CouncilRegNumber->EditAttrs = array();
// LengthCandidateReg
$CCMStudents->LengthCandidateReg->CellCssStyle = ""; $CCMStudents->LengthCandidateReg->CellCssClass = "";
$CCMStudents->LengthCandidateReg->CellAttrs = array(); $CCMStudents->LengthCandidateReg->ViewAttrs = array(); $CCMStudents->LengthCandidateReg->EditAttrs = array();
// YearsToProfReg
$CCMStudents->YearsToProfReg->CellCssStyle = ""; $CCMStudents->YearsToProfReg->CellCssClass = "";
$CCMStudents->YearsToProfReg->CellAttrs = array(); $CCMStudents->YearsToProfReg->ViewAttrs = array(); $CCMStudents->YearsToProfReg->EditAttrs = array();
// FirstJobStart
$CCMStudents->FirstJobStart->CellCssStyle = ""; $CCMStudents->FirstJobStart->CellCssClass = "";
$CCMStudents->FirstJobStart->CellAttrs = array(); $CCMStudents->FirstJobStart->ViewAttrs = array(); $CCMStudents->FirstJobStart->EditAttrs = array();
// VolAssociations
$CCMStudents->VolAssociations->CellCssStyle = ""; $CCMStudents->VolAssociations->CellCssClass = "";
$CCMStudents->VolAssociations->CellAttrs = array(); $CCMStudents->VolAssociations->ViewAttrs = array(); $CCMStudents->VolAssociations->EditAttrs = array();
// BelongsTo
$CCMStudents->BelongsTo->CellCssStyle = ""; $CCMStudents->BelongsTo->CellCssClass = "";
$CCMStudents->BelongsTo->CellAttrs = array(); $CCMStudents->BelongsTo->ViewAttrs = array(); $CCMStudents->BelongsTo->EditAttrs = array();
// CESA_SABTACO_MemNum
$CCMStudents->CESA_SABTACO_MemNum->CellCssStyle = ""; $CCMStudents->CESA_SABTACO_MemNum->CellCssClass = "";
$CCMStudents->CESA_SABTACO_MemNum->CellAttrs = array(); $CCMStudents->CESA_SABTACO_MemNum->ViewAttrs = array(); $CCMStudents->CESA_SABTACO_MemNum->EditAttrs = array();
// AreaDiscipline
$CCMStudents->AreaDiscipline->CellCssStyle = ""; $CCMStudents->AreaDiscipline->CellCssClass = "";
$CCMStudents->AreaDiscipline->CellAttrs = array(); $CCMStudents->AreaDiscipline->ViewAttrs = array(); $CCMStudents->AreaDiscipline->EditAttrs = array();
// AreaSubDiscipline
$CCMStudents->AreaSubDiscipline->CellCssStyle = ""; $CCMStudents->AreaSubDiscipline->CellCssClass = "";
$CCMStudents->AreaSubDiscipline->CellAttrs = array(); $CCMStudents->AreaSubDiscipline->ViewAttrs = array(); $CCMStudents->AreaSubDiscipline->EditAttrs = array();
// Salary
$CCMStudents->Salary->CellCssStyle = ""; $CCMStudents->Salary->CellCssClass = "";
$CCMStudents->Salary->CellAttrs = array(); $CCMStudents->Salary->ViewAttrs = array(); $CCMStudents->Salary->EditAttrs = array();
// Payslip
$CCMStudents->Payslip->CellCssStyle = ""; $CCMStudents->Payslip->CellCssClass = "";
$CCMStudents->Payslip->CellAttrs = array(); $CCMStudents->Payslip->ViewAttrs = array(); $CCMStudents->Payslip->EditAttrs = array();
// BankAccountName
$CCMStudents->BankAccountName->CellCssStyle = ""; $CCMStudents->BankAccountName->CellCssClass = "";
$CCMStudents->BankAccountName->CellAttrs = array(); $CCMStudents->BankAccountName->ViewAttrs = array(); $CCMStudents->BankAccountName->EditAttrs = array();
// BankAccountBank
$CCMStudents->BankAccountBank->CellCssStyle = ""; $CCMStudents->BankAccountBank->CellCssClass = "";
$CCMStudents->BankAccountBank->CellAttrs = array(); $CCMStudents->BankAccountBank->ViewAttrs = array(); $CCMStudents->BankAccountBank->EditAttrs = array();
// BankAccountBranch
$CCMStudents->BankAccountBranch->CellCssStyle = ""; $CCMStudents->BankAccountBranch->CellCssClass = "";
$CCMStudents->BankAccountBranch->CellAttrs = array(); $CCMStudents->BankAccountBranch->ViewAttrs = array(); $CCMStudents->BankAccountBranch->EditAttrs = array();
// BankAccountNo
$CCMStudents->BankAccountNo->CellCssStyle = ""; $CCMStudents->BankAccountNo->CellCssClass = "";
$CCMStudents->BankAccountNo->CellAttrs = array(); $CCMStudents->BankAccountNo->ViewAttrs = array(); $CCMStudents->BankAccountNo->EditAttrs = array();
// BankAccountProof
$CCMStudents->BankAccountProof->CellCssStyle = ""; $CCMStudents->BankAccountProof->CellCssClass = "";
$CCMStudents->BankAccountProof->CellAttrs = array(); $CCMStudents->BankAccountProof->ViewAttrs = array(); $CCMStudents->BankAccountProof->EditAttrs = array();
// Funding
$CCMStudents->Funding->CellCssStyle = ""; $CCMStudents->Funding->CellCssClass = "";
$CCMStudents->Funding->CellAttrs = array(); $CCMStudents->Funding->ViewAttrs = array(); $CCMStudents->Funding->EditAttrs = array();
// CWDTP
$CCMStudents->CWDTP->CellCssStyle = ""; $CCMStudents->CWDTP->CellCssClass = "";
$CCMStudents->CWDTP->CellAttrs = array(); $CCMStudents->CWDTP->ViewAttrs = array(); $CCMStudents->CWDTP->EditAttrs = array();
// BookedByName
$CCMStudents->BookedByName->CellCssStyle = ""; $CCMStudents->BookedByName->CellCssClass = "";
$CCMStudents->BookedByName->CellAttrs = array(); $CCMStudents->BookedByName->ViewAttrs = array(); $CCMStudents->BookedByName->EditAttrs = array();
// BookedByDesignation
$CCMStudents->BookedByDesignation->CellCssStyle = ""; $CCMStudents->BookedByDesignation->CellCssClass = "";
$CCMStudents->BookedByDesignation->CellAttrs = array(); $CCMStudents->BookedByDesignation->ViewAttrs = array(); $CCMStudents->BookedByDesignation->EditAttrs = array();
// BookedByTelNo
$CCMStudents->BookedByTelNo->CellCssStyle = ""; $CCMStudents->BookedByTelNo->CellCssClass = "";
$CCMStudents->BookedByTelNo->CellAttrs = array(); $CCMStudents->BookedByTelNo->ViewAttrs = array(); $CCMStudents->BookedByTelNo->EditAttrs = array();
// BookedByFaxNo
$CCMStudents->BookedByFaxNo->CellCssStyle = ""; $CCMStudents->BookedByFaxNo->CellCssClass = "";
$CCMStudents->BookedByFaxNo->CellAttrs = array(); $CCMStudents->BookedByFaxNo->ViewAttrs = array(); $CCMStudents->BookedByFaxNo->EditAttrs = array();
// BookedByCellNo
$CCMStudents->BookedByCellNo->CellCssStyle = ""; $CCMStudents->BookedByCellNo->CellCssClass = "";
$CCMStudents->BookedByCellNo->CellAttrs = array(); $CCMStudents->BookedByCellNo->ViewAttrs = array(); $CCMStudents->BookedByCellNo->EditAttrs = array();
// BookedByEmail
$CCMStudents->BookedByEmail->CellCssStyle = ""; $CCMStudents->BookedByEmail->CellCssClass = "";
$CCMStudents->BookedByEmail->CellAttrs = array(); $CCMStudents->BookedByEmail->ViewAttrs = array(); $CCMStudents->BookedByEmail->EditAttrs = array();
// MentorID
$CCMStudents->MentorID->CellCssStyle = ""; $CCMStudents->MentorID->CellCssClass = "";
$CCMStudents->MentorID->CellAttrs = array(); $CCMStudents->MentorID->ViewAttrs = array(); $CCMStudents->MentorID->EditAttrs = array();
// EmployerID
$CCMStudents->EmployerID->CellCssStyle = ""; $CCMStudents->EmployerID->CellCssClass = "";
$CCMStudents->EmployerID->CellAttrs = array(); $CCMStudents->EmployerID->ViewAttrs = array(); $CCMStudents->EmployerID->EditAttrs = array();
// HRManagerName
$CCMStudents->HRManagerName->CellCssStyle = ""; $CCMStudents->HRManagerName->CellCssClass = "";
$CCMStudents->HRManagerName->CellAttrs = array(); $CCMStudents->HRManagerName->ViewAttrs = array(); $CCMStudents->HRManagerName->EditAttrs = array();
// HRManagerDesignation
$CCMStudents->HRManagerDesignation->CellCssStyle = ""; $CCMStudents->HRManagerDesignation->CellCssClass = "";
$CCMStudents->HRManagerDesignation->CellAttrs = array(); $CCMStudents->HRManagerDesignation->ViewAttrs = array(); $CCMStudents->HRManagerDesignation->EditAttrs = array();
// HRManagerTelNo
$CCMStudents->HRManagerTelNo->CellCssStyle = ""; $CCMStudents->HRManagerTelNo->CellCssClass = "";
$CCMStudents->HRManagerTelNo->CellAttrs = array(); $CCMStudents->HRManagerTelNo->ViewAttrs = array(); $CCMStudents->HRManagerTelNo->EditAttrs = array();
// HRManagerCellNo
$CCMStudents->HRManagerCellNo->CellCssStyle = ""; $CCMStudents->HRManagerCellNo->CellCssClass = "";
$CCMStudents->HRManagerCellNo->CellAttrs = array(); $CCMStudents->HRManagerCellNo->ViewAttrs = array(); $CCMStudents->HRManagerCellNo->EditAttrs = array();
// HRManagerEmail
$CCMStudents->HRManagerEmail->CellCssStyle = ""; $CCMStudents->HRManagerEmail->CellCssClass = "";
$CCMStudents->HRManagerEmail->CellAttrs = array(); $CCMStudents->HRManagerEmail->ViewAttrs = array(); $CCMStudents->HRManagerEmail->EditAttrs = array();
// SupervisorName
$CCMStudents->SupervisorName->CellCssStyle = ""; $CCMStudents->SupervisorName->CellCssClass = "";
$CCMStudents->SupervisorName->CellAttrs = array(); $CCMStudents->SupervisorName->ViewAttrs = array(); $CCMStudents->SupervisorName->EditAttrs = array();
// SupervisorDesig
$CCMStudents->SupervisorDesig->CellCssStyle = ""; $CCMStudents->SupervisorDesig->CellCssClass = "";
$CCMStudents->SupervisorDesig->CellAttrs = array(); $CCMStudents->SupervisorDesig->ViewAttrs = array(); $CCMStudents->SupervisorDesig->EditAttrs = array();
// SupervisorProfRegNo
$CCMStudents->SupervisorProfRegNo->CellCssStyle = ""; $CCMStudents->SupervisorProfRegNo->CellCssClass = "";
$CCMStudents->SupervisorProfRegNo->CellAttrs = array(); $CCMStudents->SupervisorProfRegNo->ViewAttrs = array(); $CCMStudents->SupervisorProfRegNo->EditAttrs = array();
// SupervisorTelNo
$CCMStudents->SupervisorTelNo->CellCssStyle = ""; $CCMStudents->SupervisorTelNo->CellCssClass = "";
$CCMStudents->SupervisorTelNo->CellAttrs = array(); $CCMStudents->SupervisorTelNo->ViewAttrs = array(); $CCMStudents->SupervisorTelNo->EditAttrs = array();
// SupervisorCellNo
$CCMStudents->SupervisorCellNo->CellCssStyle = ""; $CCMStudents->SupervisorCellNo->CellCssClass = "";
$CCMStudents->SupervisorCellNo->CellAttrs = array(); $CCMStudents->SupervisorCellNo->ViewAttrs = array(); $CCMStudents->SupervisorCellNo->EditAttrs = array();
// SupervisorEmail
$CCMStudents->SupervisorEmail->CellCssStyle = ""; $CCMStudents->SupervisorEmail->CellCssClass = "";
$CCMStudents->SupervisorEmail->CellAttrs = array(); $CCMStudents->SupervisorEmail->ViewAttrs = array(); $CCMStudents->SupervisorEmail->EditAttrs = array();
// EducationalInst
$CCMStudents->EducationalInst->CellCssStyle = ""; $CCMStudents->EducationalInst->CellCssClass = "";
$CCMStudents->EducationalInst->CellAttrs = array(); $CCMStudents->EducationalInst->ViewAttrs = array(); $CCMStudents->EducationalInst->EditAttrs = array();
// Qualifications
$CCMStudents->Qualifications->CellCssStyle = ""; $CCMStudents->Qualifications->CellCssClass = "";
$CCMStudents->Qualifications->CellAttrs = array(); $CCMStudents->Qualifications->ViewAttrs = array(); $CCMStudents->Qualifications->EditAttrs = array();
// DateFinalExam
$CCMStudents->DateFinalExam->CellCssStyle = ""; $CCMStudents->DateFinalExam->CellCssClass = "";
$CCMStudents->DateFinalExam->CellAttrs = array(); $CCMStudents->DateFinalExam->ViewAttrs = array(); $CCMStudents->DateFinalExam->EditAttrs = array();
// IDFile
$CCMStudents->IDFile->CellCssStyle = ""; $CCMStudents->IDFile->CellCssClass = "";
$CCMStudents->IDFile->CellAttrs = array(); $CCMStudents->IDFile->ViewAttrs = array(); $CCMStudents->IDFile->EditAttrs = array();
// CVFile
$CCMStudents->CVFile->CellCssStyle = ""; $CCMStudents->CVFile->CellCssClass = "";
$CCMStudents->CVFile->CellAttrs = array(); $CCMStudents->CVFile->ViewAttrs = array(); $CCMStudents->CVFile->EditAttrs = array();
// QualCertificate1
$CCMStudents->QualCertificate1->CellCssStyle = ""; $CCMStudents->QualCertificate1->CellCssClass = "";
$CCMStudents->QualCertificate1->CellAttrs = array(); $CCMStudents->QualCertificate1->ViewAttrs = array(); $CCMStudents->QualCertificate1->EditAttrs = array();
// QualCertificate2
$CCMStudents->QualCertificate2->CellCssStyle = ""; $CCMStudents->QualCertificate2->CellCssClass = "";
$CCMStudents->QualCertificate2->CellAttrs = array(); $CCMStudents->QualCertificate2->ViewAttrs = array(); $CCMStudents->QualCertificate2->EditAttrs = array();
// QualCertificate3
$CCMStudents->QualCertificate3->CellCssStyle = ""; $CCMStudents->QualCertificate3->CellCssClass = "";
$CCMStudents->QualCertificate3->CellAttrs = array(); $CCMStudents->QualCertificate3->ViewAttrs = array(); $CCMStudents->QualCertificate3->EditAttrs = array();
// MentorUndertaking
$CCMStudents->MentorUndertaking->CellCssStyle = ""; $CCMStudents->MentorUndertaking->CellCssClass = "";
$CCMStudents->MentorUndertaking->CellAttrs = array(); $CCMStudents->MentorUndertaking->ViewAttrs = array(); $CCMStudents->MentorUndertaking->EditAttrs = array();
// CandUUndertaking
$CCMStudents->CandUUndertaking->CellCssStyle = ""; $CCMStudents->CandUUndertaking->CellCssClass = "";
$CCMStudents->CandUUndertaking->CellAttrs = array(); $CCMStudents->CandUUndertaking->ViewAttrs = array(); $CCMStudents->CandUUndertaking->EditAttrs = array();
// CompanyCandidatePolicy
$CCMStudents->CompanyCandidatePolicy->CellCssStyle = ""; $CCMStudents->CompanyCandidatePolicy->CellCssClass = "";
$CCMStudents->CompanyCandidatePolicy->CellAttrs = array(); $CCMStudents->CompanyCandidatePolicy->ViewAttrs = array(); $CCMStudents->CompanyCandidatePolicy->EditAttrs = array();
// ResidenceProof
$CCMStudents->ResidenceProof->CellCssStyle = ""; $CCMStudents->ResidenceProof->CellCssClass = "";
$CCMStudents->ResidenceProof->CellAttrs = array(); $CCMStudents->ResidenceProof->ViewAttrs = array(); $CCMStudents->ResidenceProof->EditAttrs = array();
// SignedAppForm
$CCMStudents->SignedAppForm->CellCssStyle = ""; $CCMStudents->SignedAppForm->CellCssClass = "";
$CCMStudents->SignedAppForm->CellAttrs = array(); $CCMStudents->SignedAppForm->ViewAttrs = array(); $CCMStudents->SignedAppForm->EditAttrs = array();
// Photograph
$CCMStudents->Photograph->CellCssStyle = ""; $CCMStudents->Photograph->CellCssClass = "";
$CCMStudents->Photograph->CellAttrs = array(); $CCMStudents->Photograph->ViewAttrs = array(); $CCMStudents->Photograph->EditAttrs = array();
// StudentNumber
$CCMStudents->StudentNumber->CellCssStyle = ""; $CCMStudents->StudentNumber->CellCssClass = "";
$CCMStudents->StudentNumber->CellAttrs = array(); $CCMStudents->StudentNumber->ViewAttrs = array(); $CCMStudents->StudentNumber->EditAttrs = array();
// WebUsername
$CCMStudents->WebUsername->CellCssStyle = ""; $CCMStudents->WebUsername->CellCssClass = "";
$CCMStudents->WebUsername->CellAttrs = array(); $CCMStudents->WebUsername->ViewAttrs = array(); $CCMStudents->WebUsername->EditAttrs = array();
// WebPassword
$CCMStudents->WebPassword->CellCssStyle = ""; $CCMStudents->WebPassword->CellCssClass = "";
$CCMStudents->WebPassword->CellAttrs = array(); $CCMStudents->WebPassword->ViewAttrs = array(); $CCMStudents->WebPassword->EditAttrs = array();
// BlockAccess
$CCMStudents->BlockAccess->CellCssStyle = ""; $CCMStudents->BlockAccess->CellCssClass = "";
$CCMStudents->BlockAccess->CellAttrs = array(); $CCMStudents->BlockAccess->ViewAttrs = array(); $CCMStudents->BlockAccess->EditAttrs = array();
// Archived
$CCMStudents->Archived->CellCssStyle = ""; $CCMStudents->Archived->CellCssClass = "";
$CCMStudents->Archived->CellAttrs = array(); $CCMStudents->Archived->ViewAttrs = array(); $CCMStudents->Archived->EditAttrs = array();
if ($CCMStudents->RowType == EW_ROWTYPE_VIEW) { // View row
// SelectionCategory
$CCMStudents->SelectionCategory->ViewValue = $CCMStudents->SelectionCategory->CurrentValue;
$CCMStudents->SelectionCategory->CssStyle = "";
$CCMStudents->SelectionCategory->CssClass = "";
$CCMStudents->SelectionCategory->ViewCustomAttributes = "";
// Title
$CCMStudents->Title->ViewValue = $CCMStudents->Title->CurrentValue;
$CCMStudents->Title->CssStyle = "";
$CCMStudents->Title->CssClass = "";
$CCMStudents->Title->ViewCustomAttributes = "";
// Initials
$CCMStudents->Initials->ViewValue = $CCMStudents->Initials->CurrentValue;
$CCMStudents->Initials->CssStyle = "";
$CCMStudents->Initials->CssClass = "";
$CCMStudents->Initials->ViewCustomAttributes = "";
// FirstName
$CCMStudents->FirstName->ViewValue = $CCMStudents->FirstName->CurrentValue;
$CCMStudents->FirstName->CssStyle = "";
$CCMStudents->FirstName->CssClass = "";
$CCMStudents->FirstName->ViewCustomAttributes = "";
// Surname
$CCMStudents->Surname->ViewValue = $CCMStudents->Surname->CurrentValue;
$CCMStudents->Surname->CssStyle = "";
$CCMStudents->Surname->CssClass = "";
$CCMStudents->Surname->ViewCustomAttributes = "";
// KnownAs
$CCMStudents->KnownAs->ViewValue = $CCMStudents->KnownAs->CurrentValue;
$CCMStudents->KnownAs->CssStyle = "";
$CCMStudents->KnownAs->CssClass = "";
$CCMStudents->KnownAs->ViewCustomAttributes = "";
// IDNumber
$CCMStudents->IDNumber->ViewValue = $CCMStudents->IDNumber->CurrentValue;
$CCMStudents->IDNumber->CssStyle = "";
$CCMStudents->IDNumber->CssClass = "";
$CCMStudents->IDNumber->ViewCustomAttributes = "mso-number-format:General";
// Telephone
$CCMStudents->Telephone->ViewValue = $CCMStudents->Telephone->CurrentValue;
$CCMStudents->Telephone->CssStyle = "";
$CCMStudents->Telephone->CssClass = "";
$CCMStudents->Telephone->ViewCustomAttributes = "mso-number-format:General";
// Cellphone
$CCMStudents->Cellphone->ViewValue = $CCMStudents->Cellphone->CurrentValue;
$CCMStudents->Cellphone->CssStyle = "";
$CCMStudents->Cellphone->CssClass = "";
$CCMStudents->Cellphone->ViewCustomAttributes = "mso-number-format:General";
// EmailAddress
$CCMStudents->EmailAddress->ViewValue = $CCMStudents->EmailAddress->CurrentValue;
$CCMStudents->EmailAddress->CssStyle = "";
$CCMStudents->EmailAddress->CssClass = "";
$CCMStudents->EmailAddress->ViewCustomAttributes = "";
// WorkAddress
$CCMStudents->WorkAddress->ViewValue = $CCMStudents->WorkAddress->CurrentValue;
$CCMStudents->WorkAddress->CssStyle = "";
$CCMStudents->WorkAddress->CssClass = "";
$CCMStudents->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$CCMStudents->PostalAddress->ViewValue = $CCMStudents->PostalAddress->CurrentValue;
$CCMStudents->PostalAddress->CssStyle = "";
$CCMStudents->PostalAddress->CssClass = "";
$CCMStudents->PostalAddress->ViewCustomAttributes = "";
// Department
$CCMStudents->Department->ViewValue = $CCMStudents->Department->CurrentValue;
$CCMStudents->Department->CssStyle = "";
$CCMStudents->Department->CssClass = "";
$CCMStudents->Department->ViewCustomAttributes = "";
// Organisation
$CCMStudents->Organisation->ViewValue = $CCMStudents->Organisation->CurrentValue;
$CCMStudents->Organisation->CssStyle = "";
$CCMStudents->Organisation->CssClass = "";
$CCMStudents->Organisation->ViewCustomAttributes = "";
// VATNo
$CCMStudents->VATNo->ViewValue = $CCMStudents->VATNo->CurrentValue;
$CCMStudents->VATNo->CssStyle = "";
$CCMStudents->VATNo->CssClass = "";
$CCMStudents->VATNo->ViewCustomAttributes = "";
// JobTitle
$CCMStudents->JobTitle->ViewValue = $CCMStudents->JobTitle->CurrentValue;
$CCMStudents->JobTitle->CssStyle = "";
$CCMStudents->JobTitle->CssClass = "";
$CCMStudents->JobTitle->ViewCustomAttributes = "";
// DateofBirth
$CCMStudents->DateofBirth->ViewValue = $CCMStudents->DateofBirth->CurrentValue;
$CCMStudents->DateofBirth->ViewValue = ew_FormatDateTime($CCMStudents->DateofBirth->ViewValue, 5);
$CCMStudents->DateofBirth->CssStyle = "";
$CCMStudents->DateofBirth->CssClass = "";
$CCMStudents->DateofBirth->ViewCustomAttributes = "";
// PlaceofBirth
$CCMStudents->PlaceofBirth->ViewValue = $CCMStudents->PlaceofBirth->CurrentValue;
$CCMStudents->PlaceofBirth->CssStyle = "";
$CCMStudents->PlaceofBirth->CssClass = "";
$CCMStudents->PlaceofBirth->ViewCustomAttributes = "";
// CountryofBirth
$CCMStudents->CountryofBirth->ViewValue = $CCMStudents->CountryofBirth->CurrentValue;
$CCMStudents->CountryofBirth->CssStyle = "";
$CCMStudents->CountryofBirth->CssClass = "";
$CCMStudents->CountryofBirth->ViewCustomAttributes = "";
// Province
if (strval($CCMStudents->Province->CurrentValue) <> "") {
$sFilterWrk = "`LookupValue` = '" . ew_AdjustSql($CCMStudents->Province->CurrentValue) . "'";
$sSqlWrk = "SELECT `LookupValue` FROM `Lookups`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "LookupName='Province'" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `LookupValue`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCMStudents->Province->ViewValue = $rswrk->fields('LookupValue');
$rswrk->Close();
} else {
$CCMStudents->Province->ViewValue = $CCMStudents->Province->CurrentValue;
}
} else {
$CCMStudents->Province->ViewValue = NULL;
}
$CCMStudents->Province->CssStyle = "";
$CCMStudents->Province->CssClass = "";
$CCMStudents->Province->ViewCustomAttributes = "";
// MaleorFemale
$CCMStudents->MaleorFemale->ViewValue = $CCMStudents->MaleorFemale->CurrentValue;
$CCMStudents->MaleorFemale->CssStyle = "";
$CCMStudents->MaleorFemale->CssClass = "";
$CCMStudents->MaleorFemale->ViewCustomAttributes = "";
// RaceGroup
$CCMStudents->RaceGroup->ViewValue = $CCMStudents->RaceGroup->CurrentValue;
$CCMStudents->RaceGroup->CssStyle = "";
$CCMStudents->RaceGroup->CssClass = "";
$CCMStudents->RaceGroup->ViewCustomAttributes = "";
// Disability
if (strval($CCMStudents->Disability->CurrentValue) <> "") {
switch ($CCMStudents->Disability->CurrentValue) {
case "y":
$CCMStudents->Disability->ViewValue = "Yes";
break;
case "n":
$CCMStudents->Disability->ViewValue = "No";
break;
default:
$CCMStudents->Disability->ViewValue = $CCMStudents->Disability->CurrentValue;
}
} else {
$CCMStudents->Disability->ViewValue = NULL;
}
$CCMStudents->Disability->CssStyle = "";
$CCMStudents->Disability->CssClass = "";
$CCMStudents->Disability->ViewCustomAttributes = "";
// DisabilityNature
$CCMStudents->DisabilityNature->ViewValue = $CCMStudents->DisabilityNature->CurrentValue;
$CCMStudents->DisabilityNature->CssStyle = "";
$CCMStudents->DisabilityNature->CssClass = "";
$CCMStudents->DisabilityNature->ViewCustomAttributes = "";
// DisabilityCertificate
if (!ew_Empty($CCMStudents->DisabilityCertificate->Upload->DbValue)) {
$CCMStudents->DisabilityCertificate->ViewValue = $CCMStudents->DisabilityCertificate->Upload->DbValue;
} else {
$CCMStudents->DisabilityCertificate->ViewValue = "";
}
$CCMStudents->DisabilityCertificate->CssStyle = "";
$CCMStudents->DisabilityCertificate->CssClass = "";
$CCMStudents->DisabilityCertificate->ViewCustomAttributes = "";
// ProfessionalCouncil
$CCMStudents->ProfessionalCouncil->ViewValue = $CCMStudents->ProfessionalCouncil->CurrentValue;
$CCMStudents->ProfessionalCouncil->CssStyle = "";
$CCMStudents->ProfessionalCouncil->CssClass = "";
$CCMStudents->ProfessionalCouncil->ViewCustomAttributes = "";
// CategoryReg
$CCMStudents->CategoryReg->ViewValue = $CCMStudents->CategoryReg->CurrentValue;
$CCMStudents->CategoryReg->CssStyle = "";
$CCMStudents->CategoryReg->CssClass = "";
$CCMStudents->CategoryReg->ViewCustomAttributes = "";
// CouncilRegNumber
$CCMStudents->CouncilRegNumber->ViewValue = $CCMStudents->CouncilRegNumber->CurrentValue;
$CCMStudents->CouncilRegNumber->CssStyle = "";
$CCMStudents->CouncilRegNumber->CssClass = "";
$CCMStudents->CouncilRegNumber->ViewCustomAttributes = "";
// LengthCandidateReg
$CCMStudents->LengthCandidateReg->ViewValue = $CCMStudents->LengthCandidateReg->CurrentValue;
$CCMStudents->LengthCandidateReg->CssStyle = "";
$CCMStudents->LengthCandidateReg->CssClass = "";
$CCMStudents->LengthCandidateReg->ViewCustomAttributes = "";
// YearsToProfReg
$CCMStudents->YearsToProfReg->ViewValue = $CCMStudents->YearsToProfReg->CurrentValue;
$CCMStudents->YearsToProfReg->CssStyle = "";
$CCMStudents->YearsToProfReg->CssClass = "";
$CCMStudents->YearsToProfReg->ViewCustomAttributes = "";
// FirstJobStart
$CCMStudents->FirstJobStart->ViewValue = $CCMStudents->FirstJobStart->CurrentValue;
$CCMStudents->FirstJobStart->CssStyle = "";
$CCMStudents->FirstJobStart->CssClass = "";
$CCMStudents->FirstJobStart->ViewCustomAttributes = "";
// VolAssociations
$CCMStudents->VolAssociations->ViewValue = $CCMStudents->VolAssociations->CurrentValue;
$CCMStudents->VolAssociations->CssStyle = "";
$CCMStudents->VolAssociations->CssClass = "";
$CCMStudents->VolAssociations->ViewCustomAttributes = "";
// BelongsTo
$CCMStudents->BelongsTo->ViewValue = $CCMStudents->BelongsTo->CurrentValue;
$CCMStudents->BelongsTo->CssStyle = "";
$CCMStudents->BelongsTo->CssClass = "";
$CCMStudents->BelongsTo->ViewCustomAttributes = "";
// CESA_SABTACO_MemNum
$CCMStudents->CESA_SABTACO_MemNum->ViewValue = $CCMStudents->CESA_SABTACO_MemNum->CurrentValue;
$CCMStudents->CESA_SABTACO_MemNum->CssStyle = "";
$CCMStudents->CESA_SABTACO_MemNum->CssClass = "";
$CCMStudents->CESA_SABTACO_MemNum->ViewCustomAttributes = "";
// AreaDiscipline
$CCMStudents->AreaDiscipline->ViewValue = $CCMStudents->AreaDiscipline->CurrentValue;
$CCMStudents->AreaDiscipline->CssStyle = "";
$CCMStudents->AreaDiscipline->CssClass = "";
$CCMStudents->AreaDiscipline->ViewCustomAttributes = "";
// AreaSubDiscipline
$CCMStudents->AreaSubDiscipline->ViewValue = $CCMStudents->AreaSubDiscipline->CurrentValue;
$CCMStudents->AreaSubDiscipline->CssStyle = "";
$CCMStudents->AreaSubDiscipline->CssClass = "";
$CCMStudents->AreaSubDiscipline->ViewCustomAttributes = "";
// Salary
$CCMStudents->Salary->ViewValue = $CCMStudents->Salary->CurrentValue;
$CCMStudents->Salary->CssStyle = "";
$CCMStudents->Salary->CssClass = "";
$CCMStudents->Salary->ViewCustomAttributes = "";
// Payslip
if (!ew_Empty($CCMStudents->Payslip->Upload->DbValue)) {
$CCMStudents->Payslip->ViewValue = $CCMStudents->Payslip->Upload->DbValue;
} else {
$CCMStudents->Payslip->ViewValue = "";
}
$CCMStudents->Payslip->CssStyle = "";
$CCMStudents->Payslip->CssClass = "";
$CCMStudents->Payslip->ViewCustomAttributes = "";
// BankAccountName
$CCMStudents->BankAccountName->ViewValue = $CCMStudents->BankAccountName->CurrentValue;
$CCMStudents->BankAccountName->CssStyle = "";
$CCMStudents->BankAccountName->CssClass = "";
$CCMStudents->BankAccountName->ViewCustomAttributes = "";
// BankAccountBank
$CCMStudents->BankAccountBank->ViewValue = $CCMStudents->BankAccountBank->CurrentValue;
$CCMStudents->BankAccountBank->CssStyle = "";
$CCMStudents->BankAccountBank->CssClass = "";
$CCMStudents->BankAccountBank->ViewCustomAttributes = "";
// BankAccountBranch
$CCMStudents->BankAccountBranch->ViewValue = $CCMStudents->BankAccountBranch->CurrentValue;
$CCMStudents->BankAccountBranch->CssStyle = "";
$CCMStudents->BankAccountBranch->CssClass = "";
$CCMStudents->BankAccountBranch->ViewCustomAttributes = "";
// BankAccountNo
$CCMStudents->BankAccountNo->ViewValue = $CCMStudents->BankAccountNo->CurrentValue;
$CCMStudents->BankAccountNo->CssStyle = "";
$CCMStudents->BankAccountNo->CssClass = "";
$CCMStudents->BankAccountNo->ViewCustomAttributes = "";
// BankAccountProof
if (!ew_Empty($CCMStudents->BankAccountProof->Upload->DbValue)) {
$CCMStudents->BankAccountProof->ViewValue = $CCMStudents->BankAccountProof->Upload->DbValue;
} else {
$CCMStudents->BankAccountProof->ViewValue = "";
}
$CCMStudents->BankAccountProof->CssStyle = "";
$CCMStudents->BankAccountProof->CssClass = "";
$CCMStudents->BankAccountProof->ViewCustomAttributes = "";
// Funding
$CCMStudents->Funding->ViewValue = $CCMStudents->Funding->CurrentValue;
$CCMStudents->Funding->CssStyle = "";
$CCMStudents->Funding->CssClass = "";
$CCMStudents->Funding->ViewCustomAttributes = "";
// CWDTP
$CCMStudents->CWDTP->ViewValue = $CCMStudents->CWDTP->CurrentValue;
$CCMStudents->CWDTP->CssStyle = "";
$CCMStudents->CWDTP->CssClass = "";
$CCMStudents->CWDTP->ViewCustomAttributes = "";
// BookedByName
$CCMStudents->BookedByName->ViewValue = $CCMStudents->BookedByName->CurrentValue;
$CCMStudents->BookedByName->CssStyle = "";
$CCMStudents->BookedByName->CssClass = "";
$CCMStudents->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$CCMStudents->BookedByDesignation->ViewValue = $CCMStudents->BookedByDesignation->CurrentValue;
$CCMStudents->BookedByDesignation->CssStyle = "";
$CCMStudents->BookedByDesignation->CssClass = "";
$CCMStudents->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$CCMStudents->BookedByTelNo->ViewValue = $CCMStudents->BookedByTelNo->CurrentValue;
$CCMStudents->BookedByTelNo->CssStyle = "";
$CCMStudents->BookedByTelNo->CssClass = "";
$CCMStudents->BookedByTelNo->ViewCustomAttributes = "";
// BookedByFaxNo
$CCMStudents->BookedByFaxNo->ViewValue = $CCMStudents->BookedByFaxNo->CurrentValue;
$CCMStudents->BookedByFaxNo->CssStyle = "";
$CCMStudents->BookedByFaxNo->CssClass = "";
$CCMStudents->BookedByFaxNo->ViewCustomAttributes = "";
// BookedByCellNo
$CCMStudents->BookedByCellNo->ViewValue = $CCMStudents->BookedByCellNo->CurrentValue;
$CCMStudents->BookedByCellNo->CssStyle = "";
$CCMStudents->BookedByCellNo->CssClass = "";
$CCMStudents->BookedByCellNo->ViewCustomAttributes = "";
// BookedByEmail
$CCMStudents->BookedByEmail->ViewValue = $CCMStudents->BookedByEmail->CurrentValue;
$CCMStudents->BookedByEmail->CssStyle = "";
$CCMStudents->BookedByEmail->CssClass = "";
$CCMStudents->BookedByEmail->ViewCustomAttributes = "";
// MentorID
if (strval($CCMStudents->MentorID->CurrentValue) <> "") {
$sFilterWrk = "`CCMMentorID` = " . ew_AdjustSql($CCMStudents->MentorID->CurrentValue) . "";
$sSqlWrk = "SELECT `Surname`, `FirstName` FROM `CCMMentors`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FirstName`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCMStudents->MentorID->ViewValue = $rswrk->fields('Surname');
$CCMStudents->MentorID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('FirstName');
$rswrk->Close();
} else {
$CCMStudents->MentorID->ViewValue = $CCMStudents->MentorID->CurrentValue;
}
} else {
$CCMStudents->MentorID->ViewValue = NULL;
}
$CCMStudents->MentorID->CssStyle = "";
$CCMStudents->MentorID->CssClass = "";
$CCMStudents->MentorID->ViewCustomAttributes = "";
// MentorName
$CCMStudents->MentorName->ViewValue = $CCMStudents->MentorName->CurrentValue;
$CCMStudents->MentorName->CssStyle = "";
$CCMStudents->MentorName->CssClass = "";
$CCMStudents->MentorName->ViewCustomAttributes = "";
// MentorDesig
$CCMStudents->MentorDesig->ViewValue = $CCMStudents->MentorDesig->CurrentValue;
$CCMStudents->MentorDesig->CssStyle = "";
$CCMStudents->MentorDesig->CssClass = "";
$CCMStudents->MentorDesig->ViewCustomAttributes = "";
// MentorProfRegNo
$CCMStudents->MentorProfRegNo->ViewValue = $CCMStudents->MentorProfRegNo->CurrentValue;
$CCMStudents->MentorProfRegNo->CssStyle = "";
$CCMStudents->MentorProfRegNo->CssClass = "";
$CCMStudents->MentorProfRegNo->ViewCustomAttributes = "";
// MentorRegNo
$CCMStudents->MentorRegNo->ViewValue = $CCMStudents->MentorRegNo->CurrentValue;
$CCMStudents->MentorRegNo->CssStyle = "";
$CCMStudents->MentorRegNo->CssClass = "";
$CCMStudents->MentorRegNo->ViewCustomAttributes = "";
// MentorTel
$CCMStudents->MentorTel->ViewValue = $CCMStudents->MentorTel->CurrentValue;
$CCMStudents->MentorTel->CssStyle = "";
$CCMStudents->MentorTel->CssClass = "";
$CCMStudents->MentorTel->ViewCustomAttributes = "";
// MentorCell
$CCMStudents->MentorCell->ViewValue = $CCMStudents->MentorCell->CurrentValue;
$CCMStudents->MentorCell->CssStyle = "";
$CCMStudents->MentorCell->CssClass = "";
$CCMStudents->MentorCell->ViewCustomAttributes = "";
// MentorEmail
$CCMStudents->MentorEmail->ViewValue = $CCMStudents->MentorEmail->CurrentValue;
$CCMStudents->MentorEmail->CssStyle = "";
$CCMStudents->MentorEmail->CssClass = "";
$CCMStudents->MentorEmail->ViewCustomAttributes = "";
// EmployerID
if (strval($CCMStudents->EmployerID->CurrentValue) <> "") {
$sFilterWrk = "`CCMEmployerID` = " . ew_AdjustSql($CCMStudents->EmployerID->CurrentValue) . "";
$sSqlWrk = "SELECT `Organisation`, `Surname` FROM `CCMEmployers`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `Organisation`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCMStudents->EmployerID->ViewValue = $rswrk->fields('Organisation');
$CCMStudents->EmployerID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('Surname');
$rswrk->Close();
} else {
$CCMStudents->EmployerID->ViewValue = $CCMStudents->EmployerID->CurrentValue;
}
} else {
$CCMStudents->EmployerID->ViewValue = NULL;
}
$CCMStudents->EmployerID->CssStyle = "";
$CCMStudents->EmployerID->CssClass = "";
$CCMStudents->EmployerID->ViewCustomAttributes = "";
// HRManagerName
$CCMStudents->HRManagerName->ViewValue = $CCMStudents->HRManagerName->CurrentValue;
$CCMStudents->HRManagerName->CssStyle = "";
$CCMStudents->HRManagerName->CssClass = "";
$CCMStudents->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$CCMStudents->HRManagerDesignation->ViewValue = $CCMStudents->HRManagerDesignation->CurrentValue;
$CCMStudents->HRManagerDesignation->CssStyle = "";
$CCMStudents->HRManagerDesignation->CssClass = "";
$CCMStudents->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$CCMStudents->HRManagerTelNo->ViewValue = $CCMStudents->HRManagerTelNo->CurrentValue;
$CCMStudents->HRManagerTelNo->CssStyle = "";
$CCMStudents->HRManagerTelNo->CssClass = "";
$CCMStudents->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$CCMStudents->HRManagerCellNo->ViewValue = $CCMStudents->HRManagerCellNo->CurrentValue;
$CCMStudents->HRManagerCellNo->CssStyle = "";
$CCMStudents->HRManagerCellNo->CssClass = "";
$CCMStudents->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$CCMStudents->HRManagerEmail->ViewValue = $CCMStudents->HRManagerEmail->CurrentValue;
$CCMStudents->HRManagerEmail->CssStyle = "";
$CCMStudents->HRManagerEmail->CssClass = "";
$CCMStudents->HRManagerEmail->ViewCustomAttributes = "";
// SupervisorName
$CCMStudents->SupervisorName->ViewValue = $CCMStudents->SupervisorName->CurrentValue;
$CCMStudents->SupervisorName->CssStyle = "";
$CCMStudents->SupervisorName->CssClass = "";
$CCMStudents->SupervisorName->ViewCustomAttributes = "";
// SupervisorDesig
$CCMStudents->SupervisorDesig->ViewValue = $CCMStudents->SupervisorDesig->CurrentValue;
$CCMStudents->SupervisorDesig->CssStyle = "";
$CCMStudents->SupervisorDesig->CssClass = "";
$CCMStudents->SupervisorDesig->ViewCustomAttributes = "";
// SupervisorProfRegNo
$CCMStudents->SupervisorProfRegNo->ViewValue = $CCMStudents->SupervisorProfRegNo->CurrentValue;
$CCMStudents->SupervisorProfRegNo->CssStyle = "";
$CCMStudents->SupervisorProfRegNo->CssClass = "";
$CCMStudents->SupervisorProfRegNo->ViewCustomAttributes = "";
// SupervisorTelNo
$CCMStudents->SupervisorTelNo->ViewValue = $CCMStudents->SupervisorTelNo->CurrentValue;
$CCMStudents->SupervisorTelNo->CssStyle = "";
$CCMStudents->SupervisorTelNo->CssClass = "";
$CCMStudents->SupervisorTelNo->ViewCustomAttributes = "";
// SupervisorCellNo
$CCMStudents->SupervisorCellNo->ViewValue = $CCMStudents->SupervisorCellNo->CurrentValue;
$CCMStudents->SupervisorCellNo->CssStyle = "";
$CCMStudents->SupervisorCellNo->CssClass = "";
$CCMStudents->SupervisorCellNo->ViewCustomAttributes = "";
// SupervisorEmail
$CCMStudents->SupervisorEmail->ViewValue = $CCMStudents->SupervisorEmail->CurrentValue;
$CCMStudents->SupervisorEmail->CssStyle = "";
$CCMStudents->SupervisorEmail->CssClass = "";
$CCMStudents->SupervisorEmail->ViewCustomAttributes = "";
// EducationalInst
$CCMStudents->EducationalInst->ViewValue = $CCMStudents->EducationalInst->CurrentValue;
$CCMStudents->EducationalInst->CssStyle = "";
$CCMStudents->EducationalInst->CssClass = "";
$CCMStudents->EducationalInst->ViewCustomAttributes = "";
// Qualifications
$CCMStudents->Qualifications->ViewValue = $CCMStudents->Qualifications->CurrentValue;
$CCMStudents->Qualifications->CssStyle = "";
$CCMStudents->Qualifications->CssClass = "";
$CCMStudents->Qualifications->ViewCustomAttributes = "";
// DateFinalExam
$CCMStudents->DateFinalExam->ViewValue = $CCMStudents->DateFinalExam->CurrentValue;
$CCMStudents->DateFinalExam->CssStyle = "";
$CCMStudents->DateFinalExam->CssClass = "";
$CCMStudents->DateFinalExam->ViewCustomAttributes = "";
// IDFile
if (!ew_Empty($CCMStudents->IDFile->Upload->DbValue)) {
$CCMStudents->IDFile->ViewValue = $CCMStudents->IDFile->Upload->DbValue;
} else {
$CCMStudents->IDFile->ViewValue = "";
}
$CCMStudents->IDFile->CssStyle = "";
$CCMStudents->IDFile->CssClass = "";
$CCMStudents->IDFile->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($CCMStudents->CVFile->Upload->DbValue)) {
$CCMStudents->CVFile->ViewValue = $CCMStudents->CVFile->Upload->DbValue;
} else {
$CCMStudents->CVFile->ViewValue = "";
}
$CCMStudents->CVFile->CssStyle = "";
$CCMStudents->CVFile->CssClass = "";
$CCMStudents->CVFile->ViewCustomAttributes = "";
// QualCertificate1
if (!ew_Empty($CCMStudents->QualCertificate1->Upload->DbValue)) {
$CCMStudents->QualCertificate1->ViewValue = $CCMStudents->QualCertificate1->Upload->DbValue;
} else {
$CCMStudents->QualCertificate1->ViewValue = "";
}
$CCMStudents->QualCertificate1->CssStyle = "";
$CCMStudents->QualCertificate1->CssClass = "";
$CCMStudents->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($CCMStudents->QualCertificate2->Upload->DbValue)) {
$CCMStudents->QualCertificate2->ViewValue = $CCMStudents->QualCertificate2->Upload->DbValue;
} else {
$CCMStudents->QualCertificate2->ViewValue = "";
}
$CCMStudents->QualCertificate2->CssStyle = "";
$CCMStudents->QualCertificate2->CssClass = "";
$CCMStudents->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($CCMStudents->QualCertificate3->Upload->DbValue)) {
$CCMStudents->QualCertificate3->ViewValue = $CCMStudents->QualCertificate3->Upload->DbValue;
} else {
$CCMStudents->QualCertificate3->ViewValue = "";
}
$CCMStudents->QualCertificate3->CssStyle = "";
$CCMStudents->QualCertificate3->CssClass = "";
$CCMStudents->QualCertificate3->ViewCustomAttributes = "";
// MentorUndertaking
if (!ew_Empty($CCMStudents->MentorUndertaking->Upload->DbValue)) {
$CCMStudents->MentorUndertaking->ViewValue = $CCMStudents->MentorUndertaking->Upload->DbValue;
} else {
$CCMStudents->MentorUndertaking->ViewValue = "";
}
$CCMStudents->MentorUndertaking->CssStyle = "";
$CCMStudents->MentorUndertaking->CssClass = "";
$CCMStudents->MentorUndertaking->ViewCustomAttributes = "";
// CandUUndertaking
if (!ew_Empty($CCMStudents->CandUUndertaking->Upload->DbValue)) {
$CCMStudents->CandUUndertaking->ViewValue = $CCMStudents->CandUUndertaking->Upload->DbValue;
} else {
$CCMStudents->CandUUndertaking->ViewValue = "";
}
$CCMStudents->CandUUndertaking->CssStyle = "";
$CCMStudents->CandUUndertaking->CssClass = "";
$CCMStudents->CandUUndertaking->ViewCustomAttributes = "";
// CompanyCandidatePolicy
if (!ew_Empty($CCMStudents->CompanyCandidatePolicy->Upload->DbValue)) {
$CCMStudents->CompanyCandidatePolicy->ViewValue = $CCMStudents->CompanyCandidatePolicy->Upload->DbValue;
} else {
$CCMStudents->CompanyCandidatePolicy->ViewValue = "";
}
$CCMStudents->CompanyCandidatePolicy->CssStyle = "";
$CCMStudents->CompanyCandidatePolicy->CssClass = "";
$CCMStudents->CompanyCandidatePolicy->ViewCustomAttributes = "";
// ResidenceProof
if (!ew_Empty($CCMStudents->ResidenceProof->Upload->DbValue)) {
$CCMStudents->ResidenceProof->ViewValue = $CCMStudents->ResidenceProof->Upload->DbValue;
} else {
$CCMStudents->ResidenceProof->ViewValue = "";
}
$CCMStudents->ResidenceProof->CssStyle = "";
$CCMStudents->ResidenceProof->CssClass = "";
$CCMStudents->ResidenceProof->ViewCustomAttributes = "";
// SignedAppForm
if (!ew_Empty($CCMStudents->SignedAppForm->Upload->DbValue)) {
$CCMStudents->SignedAppForm->ViewValue = $CCMStudents->SignedAppForm->Upload->DbValue;
} else {
$CCMStudents->SignedAppForm->ViewValue = "";
}
$CCMStudents->SignedAppForm->CssStyle = "";
$CCMStudents->SignedAppForm->CssClass = "";
$CCMStudents->SignedAppForm->ViewCustomAttributes = "";
// Photograph
if (!ew_Empty($CCMStudents->Photograph->Upload->DbValue)) {
$CCMStudents->Photograph->ViewValue = $CCMStudents->Photograph->Upload->DbValue;
} else {
$CCMStudents->Photograph->ViewValue = "";
}
$CCMStudents->Photograph->CssStyle = "";
$CCMStudents->Photograph->CssClass = "";
$CCMStudents->Photograph->ViewCustomAttributes = "";
// StudentNumber
$CCMStudents->StudentNumber->ViewValue = $CCMStudents->StudentNumber->CurrentValue;
$CCMStudents->StudentNumber->CssStyle = "";
$CCMStudents->StudentNumber->CssClass = "";
$CCMStudents->StudentNumber->ViewCustomAttributes = "";
// WebUsername
$CCMStudents->WebUsername->ViewValue = $CCMStudents->WebUsername->CurrentValue;
$CCMStudents->WebUsername->CssStyle = "";
$CCMStudents->WebUsername->CssClass = "";
$CCMStudents->WebUsername->ViewCustomAttributes = "";
// WebPassword
$CCMStudents->WebPassword->ViewValue = $CCMStudents->WebPassword->CurrentValue;
$CCMStudents->WebPassword->CssStyle = "";
$CCMStudents->WebPassword->CssClass = "";
$CCMStudents->WebPassword->ViewCustomAttributes = "";
// BlockAccess
if (strval($CCMStudents->BlockAccess->CurrentValue) <> "") {
switch ($CCMStudents->BlockAccess->CurrentValue) {
case "y":
$CCMStudents->BlockAccess->ViewValue = "Yes";
break;
case "n":
$CCMStudents->BlockAccess->ViewValue = "No";
break;
default:
$CCMStudents->BlockAccess->ViewValue = $CCMStudents->BlockAccess->CurrentValue;
}
} else {
$CCMStudents->BlockAccess->ViewValue = NULL;
}
$CCMStudents->BlockAccess->CssStyle = "";
$CCMStudents->BlockAccess->CssClass = "";
$CCMStudents->BlockAccess->ViewCustomAttributes = "";
// SABTACO
$CCMStudents->SABTACO->ViewValue = $CCMStudents->SABTACO->CurrentValue;
$CCMStudents->SABTACO->CssStyle = "";
$CCMStudents->SABTACO->CssClass = "";
$CCMStudents->SABTACO->ViewCustomAttributes = "";
// CESA
$CCMStudents->CESA->ViewValue = $CCMStudents->CESA->CurrentValue;
$CCMStudents->CESA->CssStyle = "";
$CCMStudents->CESA->CssClass = "";
$CCMStudents->CESA->ViewCustomAttributes = "";
// Archived
if (strval($CCMStudents->Archived->CurrentValue) <> "") {
switch ($CCMStudents->Archived->CurrentValue) {
case "1":
$CCMStudents->Archived->ViewValue = "Yes";
break;
case "0":
$CCMStudents->Archived->ViewValue = "No";
break;
default:
$CCMStudents->Archived->ViewValue = $CCMStudents->Archived->CurrentValue;
}
} else {
$CCMStudents->Archived->ViewValue = NULL;
}
$CCMStudents->Archived->CssStyle = "";
$CCMStudents->Archived->CssClass = "";
$CCMStudents->Archived->ViewCustomAttributes = "";
// SelectionCategory
$CCMStudents->SelectionCategory->HrefValue = "";
$CCMStudents->SelectionCategory->TooltipValue = "";
// Title
$CCMStudents->Title->HrefValue = "";
$CCMStudents->Title->TooltipValue = "";
// Initials
$CCMStudents->Initials->HrefValue = "";
$CCMStudents->Initials->TooltipValue = "";
// FirstName
$CCMStudents->FirstName->HrefValue = "";
$CCMStudents->FirstName->TooltipValue = "";
// Surname
$CCMStudents->Surname->HrefValue = "";
$CCMStudents->Surname->TooltipValue = "";
// KnownAs
$CCMStudents->KnownAs->HrefValue = "";
$CCMStudents->KnownAs->TooltipValue = "";
// IDNumber
$CCMStudents->IDNumber->HrefValue = "";
$CCMStudents->IDNumber->TooltipValue = "";
// Telephone
$CCMStudents->Telephone->HrefValue = "";
$CCMStudents->Telephone->TooltipValue = "";
// Cellphone
$CCMStudents->Cellphone->HrefValue = "";
$CCMStudents->Cellphone->TooltipValue = "";
// EmailAddress
$CCMStudents->EmailAddress->HrefValue = "";
$CCMStudents->EmailAddress->TooltipValue = "";
// WorkAddress
$CCMStudents->WorkAddress->HrefValue = "";
$CCMStudents->WorkAddress->TooltipValue = "";
// PostalAddress
$CCMStudents->PostalAddress->HrefValue = "";
$CCMStudents->PostalAddress->TooltipValue = "";
// Department
$CCMStudents->Department->HrefValue = "";
$CCMStudents->Department->TooltipValue = "";
// Organisation
$CCMStudents->Organisation->HrefValue = "";
$CCMStudents->Organisation->TooltipValue = "";
// VATNo
$CCMStudents->VATNo->HrefValue = "";
$CCMStudents->VATNo->TooltipValue = "";
// JobTitle
$CCMStudents->JobTitle->HrefValue = "";
$CCMStudents->JobTitle->TooltipValue = "";
// DateofBirth
$CCMStudents->DateofBirth->HrefValue = "";
$CCMStudents->DateofBirth->TooltipValue = "";
// PlaceofBirth
$CCMStudents->PlaceofBirth->HrefValue = "";
$CCMStudents->PlaceofBirth->TooltipValue = "";
// CountryofBirth
$CCMStudents->CountryofBirth->HrefValue = "";
$CCMStudents->CountryofBirth->TooltipValue = "";
// Province
$CCMStudents->Province->HrefValue = "";
$CCMStudents->Province->TooltipValue = "";
// MaleorFemale
$CCMStudents->MaleorFemale->HrefValue = "";
$CCMStudents->MaleorFemale->TooltipValue = "";
// RaceGroup
$CCMStudents->RaceGroup->HrefValue = "";
$CCMStudents->RaceGroup->TooltipValue = "";
// Disability
$CCMStudents->Disability->HrefValue = "";
$CCMStudents->Disability->TooltipValue = "";
// DisabilityNature
$CCMStudents->DisabilityNature->HrefValue = "";
$CCMStudents->DisabilityNature->TooltipValue = "";
// DisabilityCertificate
if (!ew_Empty($CCMStudents->DisabilityCertificate->Upload->DbValue)) {
$CCMStudents->DisabilityCertificate->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->DisabilityCertificate->UploadPath) . ((!empty($CCMStudents->DisabilityCertificate->ViewValue)) ? $CCMStudents->DisabilityCertificate->ViewValue : $CCMStudents->DisabilityCertificate->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->DisabilityCertificate->HrefValue = ew_ConvertFullUrl($CCMStudents->DisabilityCertificate->HrefValue);
} else {
$CCMStudents->DisabilityCertificate->HrefValue = "";
}
$CCMStudents->DisabilityCertificate->TooltipValue = "";
// ProfessionalCouncil
$CCMStudents->ProfessionalCouncil->HrefValue = "";
$CCMStudents->ProfessionalCouncil->TooltipValue = "";
// CategoryReg
$CCMStudents->CategoryReg->HrefValue = "";
$CCMStudents->CategoryReg->TooltipValue = "";
// CouncilRegNumber
$CCMStudents->CouncilRegNumber->HrefValue = "";
$CCMStudents->CouncilRegNumber->TooltipValue = "";
// LengthCandidateReg
$CCMStudents->LengthCandidateReg->HrefValue = "";
$CCMStudents->LengthCandidateReg->TooltipValue = "";
// YearsToProfReg
$CCMStudents->YearsToProfReg->HrefValue = "";
$CCMStudents->YearsToProfReg->TooltipValue = "";
// FirstJobStart
$CCMStudents->FirstJobStart->HrefValue = "";
$CCMStudents->FirstJobStart->TooltipValue = "";
// VolAssociations
$CCMStudents->VolAssociations->HrefValue = "";
$CCMStudents->VolAssociations->TooltipValue = "";
// BelongsTo
$CCMStudents->BelongsTo->HrefValue = "";
$CCMStudents->BelongsTo->TooltipValue = "";
// CESA_SABTACO_MemNum
$CCMStudents->CESA_SABTACO_MemNum->HrefValue = "";
$CCMStudents->CESA_SABTACO_MemNum->TooltipValue = "";
// AreaDiscipline
$CCMStudents->AreaDiscipline->HrefValue = "";
$CCMStudents->AreaDiscipline->TooltipValue = "";
// AreaSubDiscipline
$CCMStudents->AreaSubDiscipline->HrefValue = "";
$CCMStudents->AreaSubDiscipline->TooltipValue = "";
// Salary
$CCMStudents->Salary->HrefValue = "";
$CCMStudents->Salary->TooltipValue = "";
// Payslip
if (!ew_Empty($CCMStudents->Payslip->Upload->DbValue)) {
$CCMStudents->Payslip->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->Payslip->UploadPath) . ((!empty($CCMStudents->Payslip->ViewValue)) ? $CCMStudents->Payslip->ViewValue : $CCMStudents->Payslip->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->Payslip->HrefValue = ew_ConvertFullUrl($CCMStudents->Payslip->HrefValue);
} else {
$CCMStudents->Payslip->HrefValue = "";
}
$CCMStudents->Payslip->TooltipValue = "";
// BankAccountName
$CCMStudents->BankAccountName->HrefValue = "";
$CCMStudents->BankAccountName->TooltipValue = "";
// BankAccountBank
$CCMStudents->BankAccountBank->HrefValue = "";
$CCMStudents->BankAccountBank->TooltipValue = "";
// BankAccountBranch
$CCMStudents->BankAccountBranch->HrefValue = "";
$CCMStudents->BankAccountBranch->TooltipValue = "";
// BankAccountNo
$CCMStudents->BankAccountNo->HrefValue = "";
$CCMStudents->BankAccountNo->TooltipValue = "";
// BankAccountProof
if (!ew_Empty($CCMStudents->BankAccountProof->Upload->DbValue)) {
$CCMStudents->BankAccountProof->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->BankAccountProof->UploadPath) . ((!empty($CCMStudents->BankAccountProof->ViewValue)) ? $CCMStudents->BankAccountProof->ViewValue : $CCMStudents->BankAccountProof->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->BankAccountProof->HrefValue = ew_ConvertFullUrl($CCMStudents->BankAccountProof->HrefValue);
} else {
$CCMStudents->BankAccountProof->HrefValue = "";
}
$CCMStudents->BankAccountProof->TooltipValue = "";
// Funding
$CCMStudents->Funding->HrefValue = "";
$CCMStudents->Funding->TooltipValue = "";
// CWDTP
$CCMStudents->CWDTP->HrefValue = "";
$CCMStudents->CWDTP->TooltipValue = "";
// BookedByName
$CCMStudents->BookedByName->HrefValue = "";
$CCMStudents->BookedByName->TooltipValue = "";
// BookedByDesignation
$CCMStudents->BookedByDesignation->HrefValue = "";
$CCMStudents->BookedByDesignation->TooltipValue = "";
// BookedByTelNo
$CCMStudents->BookedByTelNo->HrefValue = "";
$CCMStudents->BookedByTelNo->TooltipValue = "";
// BookedByFaxNo
$CCMStudents->BookedByFaxNo->HrefValue = "";
$CCMStudents->BookedByFaxNo->TooltipValue = "";
// BookedByCellNo
$CCMStudents->BookedByCellNo->HrefValue = "";
$CCMStudents->BookedByCellNo->TooltipValue = "";
// BookedByEmail
$CCMStudents->BookedByEmail->HrefValue = "";
$CCMStudents->BookedByEmail->TooltipValue = "";
// MentorID
$CCMStudents->MentorID->HrefValue = "";
$CCMStudents->MentorID->TooltipValue = "";
// EmployerID
$CCMStudents->EmployerID->HrefValue = "";
$CCMStudents->EmployerID->TooltipValue = "";
// HRManagerName
$CCMStudents->HRManagerName->HrefValue = "";
$CCMStudents->HRManagerName->TooltipValue = "";
// HRManagerDesignation
$CCMStudents->HRManagerDesignation->HrefValue = "";
$CCMStudents->HRManagerDesignation->TooltipValue = "";
// HRManagerTelNo
$CCMStudents->HRManagerTelNo->HrefValue = "";
$CCMStudents->HRManagerTelNo->TooltipValue = "";
// HRManagerCellNo
$CCMStudents->HRManagerCellNo->HrefValue = "";
$CCMStudents->HRManagerCellNo->TooltipValue = "";
// HRManagerEmail
$CCMStudents->HRManagerEmail->HrefValue = "";
$CCMStudents->HRManagerEmail->TooltipValue = "";
// SupervisorName
$CCMStudents->SupervisorName->HrefValue = "";
$CCMStudents->SupervisorName->TooltipValue = "";
// SupervisorDesig
$CCMStudents->SupervisorDesig->HrefValue = "";
$CCMStudents->SupervisorDesig->TooltipValue = "";
// SupervisorProfRegNo
$CCMStudents->SupervisorProfRegNo->HrefValue = "";
$CCMStudents->SupervisorProfRegNo->TooltipValue = "";
// SupervisorTelNo
$CCMStudents->SupervisorTelNo->HrefValue = "";
$CCMStudents->SupervisorTelNo->TooltipValue = "";
// SupervisorCellNo
$CCMStudents->SupervisorCellNo->HrefValue = "";
$CCMStudents->SupervisorCellNo->TooltipValue = "";
// SupervisorEmail
$CCMStudents->SupervisorEmail->HrefValue = "";
$CCMStudents->SupervisorEmail->TooltipValue = "";
// EducationalInst
$CCMStudents->EducationalInst->HrefValue = "";
$CCMStudents->EducationalInst->TooltipValue = "";
// Qualifications
$CCMStudents->Qualifications->HrefValue = "";
$CCMStudents->Qualifications->TooltipValue = "";
// DateFinalExam
$CCMStudents->DateFinalExam->HrefValue = "";
$CCMStudents->DateFinalExam->TooltipValue = "";
// IDFile
if (!ew_Empty($CCMStudents->IDFile->Upload->DbValue)) {
$CCMStudents->IDFile->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->IDFile->UploadPath) . ((!empty($CCMStudents->IDFile->ViewValue)) ? $CCMStudents->IDFile->ViewValue : $CCMStudents->IDFile->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->IDFile->HrefValue = ew_ConvertFullUrl($CCMStudents->IDFile->HrefValue);
} else {
$CCMStudents->IDFile->HrefValue = "";
}
$CCMStudents->IDFile->TooltipValue = "";
// CVFile
if (!ew_Empty($CCMStudents->CVFile->Upload->DbValue)) {
$CCMStudents->CVFile->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->CVFile->UploadPath) . ((!empty($CCMStudents->CVFile->ViewValue)) ? $CCMStudents->CVFile->ViewValue : $CCMStudents->CVFile->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->CVFile->HrefValue = ew_ConvertFullUrl($CCMStudents->CVFile->HrefValue);
} else {
$CCMStudents->CVFile->HrefValue = "";
}
$CCMStudents->CVFile->TooltipValue = "";
// QualCertificate1
if (!ew_Empty($CCMStudents->QualCertificate1->Upload->DbValue)) {
$CCMStudents->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->QualCertificate1->UploadPath) . ((!empty($CCMStudents->QualCertificate1->ViewValue)) ? $CCMStudents->QualCertificate1->ViewValue : $CCMStudents->QualCertificate1->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->QualCertificate1->HrefValue = ew_ConvertFullUrl($CCMStudents->QualCertificate1->HrefValue);
} else {
$CCMStudents->QualCertificate1->HrefValue = "";
}
$CCMStudents->QualCertificate1->TooltipValue = "";
// QualCertificate2
if (!ew_Empty($CCMStudents->QualCertificate2->Upload->DbValue)) {
$CCMStudents->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->QualCertificate2->UploadPath) . ((!empty($CCMStudents->QualCertificate2->ViewValue)) ? $CCMStudents->QualCertificate2->ViewValue : $CCMStudents->QualCertificate2->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->QualCertificate2->HrefValue = ew_ConvertFullUrl($CCMStudents->QualCertificate2->HrefValue);
} else {
$CCMStudents->QualCertificate2->HrefValue = "";
}
$CCMStudents->QualCertificate2->TooltipValue = "";
// QualCertificate3
if (!ew_Empty($CCMStudents->QualCertificate3->Upload->DbValue)) {
$CCMStudents->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->QualCertificate3->UploadPath) . ((!empty($CCMStudents->QualCertificate3->ViewValue)) ? $CCMStudents->QualCertificate3->ViewValue : $CCMStudents->QualCertificate3->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->QualCertificate3->HrefValue = ew_ConvertFullUrl($CCMStudents->QualCertificate3->HrefValue);
} else {
$CCMStudents->QualCertificate3->HrefValue = "";
}
$CCMStudents->QualCertificate3->TooltipValue = "";
// MentorUndertaking
if (!ew_Empty($CCMStudents->MentorUndertaking->Upload->DbValue)) {
$CCMStudents->MentorUndertaking->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->MentorUndertaking->UploadPath) . ((!empty($CCMStudents->MentorUndertaking->ViewValue)) ? $CCMStudents->MentorUndertaking->ViewValue : $CCMStudents->MentorUndertaking->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->MentorUndertaking->HrefValue = ew_ConvertFullUrl($CCMStudents->MentorUndertaking->HrefValue);
} else {
$CCMStudents->MentorUndertaking->HrefValue = "";
}
$CCMStudents->MentorUndertaking->TooltipValue = "";
// CandUUndertaking
if (!ew_Empty($CCMStudents->CandUUndertaking->Upload->DbValue)) {
$CCMStudents->CandUUndertaking->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->CandUUndertaking->UploadPath) . ((!empty($CCMStudents->CandUUndertaking->ViewValue)) ? $CCMStudents->CandUUndertaking->ViewValue : $CCMStudents->CandUUndertaking->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->CandUUndertaking->HrefValue = ew_ConvertFullUrl($CCMStudents->CandUUndertaking->HrefValue);
} else {
$CCMStudents->CandUUndertaking->HrefValue = "";
}
$CCMStudents->CandUUndertaking->TooltipValue = "";
// CompanyCandidatePolicy
if (!ew_Empty($CCMStudents->CompanyCandidatePolicy->Upload->DbValue)) {
$CCMStudents->CompanyCandidatePolicy->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->CompanyCandidatePolicy->UploadPath) . ((!empty($CCMStudents->CompanyCandidatePolicy->ViewValue)) ? $CCMStudents->CompanyCandidatePolicy->ViewValue : $CCMStudents->CompanyCandidatePolicy->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->CompanyCandidatePolicy->HrefValue = ew_ConvertFullUrl($CCMStudents->CompanyCandidatePolicy->HrefValue);
} else {
$CCMStudents->CompanyCandidatePolicy->HrefValue = "";
}
$CCMStudents->CompanyCandidatePolicy->TooltipValue = "";
// ResidenceProof
if (!ew_Empty($CCMStudents->ResidenceProof->Upload->DbValue)) {
$CCMStudents->ResidenceProof->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->ResidenceProof->UploadPath) . ((!empty($CCMStudents->ResidenceProof->ViewValue)) ? $CCMStudents->ResidenceProof->ViewValue : $CCMStudents->ResidenceProof->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->ResidenceProof->HrefValue = ew_ConvertFullUrl($CCMStudents->ResidenceProof->HrefValue);
} else {
$CCMStudents->ResidenceProof->HrefValue = "";
}
$CCMStudents->ResidenceProof->TooltipValue = "";
// SignedAppForm
if (!ew_Empty($CCMStudents->SignedAppForm->Upload->DbValue)) {
$CCMStudents->SignedAppForm->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->SignedAppForm->UploadPath) . ((!empty($CCMStudents->SignedAppForm->ViewValue)) ? $CCMStudents->SignedAppForm->ViewValue : $CCMStudents->SignedAppForm->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->SignedAppForm->HrefValue = ew_ConvertFullUrl($CCMStudents->SignedAppForm->HrefValue);
} else {
$CCMStudents->SignedAppForm->HrefValue = "";
}
$CCMStudents->SignedAppForm->TooltipValue = "";
// Photograph
if (!ew_Empty($CCMStudents->Photograph->Upload->DbValue)) {
$CCMStudents->Photograph->HrefValue = ew_UploadPathEx(FALSE, $CCMStudents->Photograph->UploadPath) . ((!empty($CCMStudents->Photograph->ViewValue)) ? $CCMStudents->Photograph->ViewValue : $CCMStudents->Photograph->CurrentValue);
if ($CCMStudents->Export <> "") $CCMStudents->Photograph->HrefValue = ew_ConvertFullUrl($CCMStudents->Photograph->HrefValue);
} else {
$CCMStudents->Photograph->HrefValue = "";
}
$CCMStudents->Photograph->TooltipValue = "";
// StudentNumber
$CCMStudents->StudentNumber->HrefValue = "";
$CCMStudents->StudentNumber->TooltipValue = "";
// WebUsername
$CCMStudents->WebUsername->HrefValue = "";
$CCMStudents->WebUsername->TooltipValue = "";
// WebPassword
$CCMStudents->WebPassword->HrefValue = "";
$CCMStudents->WebPassword->TooltipValue = "";
// BlockAccess
$CCMStudents->BlockAccess->HrefValue = "";
$CCMStudents->BlockAccess->TooltipValue = "";
// Archived
$CCMStudents->Archived->HrefValue = "";
$CCMStudents->Archived->TooltipValue = "";
}
// Call Row Rendered event
if ($CCMStudents->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$CCMStudents->Row_Rendered();
}
// Export data in HTML/CSV/Word/Excel/XML/Email format
function ExportData() {
global $CCMStudents;
$utf8 = FALSE;
$bSelectLimit = FALSE;
// Load recordset
if ($bSelectLimit) {
$this->lTotalRecs = $CCMStudents->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 ($CCMStudents->Export == "xml") {
$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
$XmlDoc->AddRoot();
} else {
$ExportDoc = new cExportDocument($CCMStudents, "v");
$ExportDoc->ExportHeader();
if ($ExportDoc->Horizontal) { // Horizontal format, write header
$ExportDoc->BeginExportRow();
$ExportDoc->ExportCaption($CCMStudents->SelectionCategory);
$ExportDoc->ExportCaption($CCMStudents->Title);
$ExportDoc->ExportCaption($CCMStudents->Initials);
$ExportDoc->ExportCaption($CCMStudents->FirstName);
$ExportDoc->ExportCaption($CCMStudents->Surname);
$ExportDoc->ExportCaption($CCMStudents->KnownAs);
$ExportDoc->ExportCaption($CCMStudents->IDNumber);
$ExportDoc->ExportCaption($CCMStudents->Telephone);
$ExportDoc->ExportCaption($CCMStudents->Cellphone);
$ExportDoc->ExportCaption($CCMStudents->EmailAddress);
$ExportDoc->ExportCaption($CCMStudents->WorkAddress);
$ExportDoc->ExportCaption($CCMStudents->PostalAddress);
$ExportDoc->ExportCaption($CCMStudents->Department);
$ExportDoc->ExportCaption($CCMStudents->Organisation);
$ExportDoc->ExportCaption($CCMStudents->VATNo);
$ExportDoc->ExportCaption($CCMStudents->JobTitle);
$ExportDoc->ExportCaption($CCMStudents->DateofBirth);
$ExportDoc->ExportCaption($CCMStudents->PlaceofBirth);
$ExportDoc->ExportCaption($CCMStudents->CountryofBirth);
$ExportDoc->ExportCaption($CCMStudents->Province);
$ExportDoc->ExportCaption($CCMStudents->MaleorFemale);
$ExportDoc->ExportCaption($CCMStudents->RaceGroup);
$ExportDoc->ExportCaption($CCMStudents->Disability);
$ExportDoc->ExportCaption($CCMStudents->DisabilityNature);
$ExportDoc->ExportCaption($CCMStudents->DisabilityCertificate);
$ExportDoc->ExportCaption($CCMStudents->ProfessionalCouncil);
$ExportDoc->ExportCaption($CCMStudents->CategoryReg);
$ExportDoc->ExportCaption($CCMStudents->CouncilRegNumber);
$ExportDoc->ExportCaption($CCMStudents->LengthCandidateReg);
$ExportDoc->ExportCaption($CCMStudents->YearsToProfReg);
$ExportDoc->ExportCaption($CCMStudents->FirstJobStart);
$ExportDoc->ExportCaption($CCMStudents->VolAssociations);
$ExportDoc->ExportCaption($CCMStudents->BelongsTo);
$ExportDoc->ExportCaption($CCMStudents->CESA_SABTACO_MemNum);
$ExportDoc->ExportCaption($CCMStudents->AreaDiscipline);
$ExportDoc->ExportCaption($CCMStudents->AreaSubDiscipline);
$ExportDoc->ExportCaption($CCMStudents->Salary);
$ExportDoc->ExportCaption($CCMStudents->Payslip);
$ExportDoc->ExportCaption($CCMStudents->BankAccountName);
$ExportDoc->ExportCaption($CCMStudents->BankAccountBank);
$ExportDoc->ExportCaption($CCMStudents->BankAccountBranch);
$ExportDoc->ExportCaption($CCMStudents->BankAccountNo);
$ExportDoc->ExportCaption($CCMStudents->BankAccountProof);
$ExportDoc->ExportCaption($CCMStudents->Funding);
$ExportDoc->ExportCaption($CCMStudents->CWDTP);
$ExportDoc->ExportCaption($CCMStudents->BookedByName);
$ExportDoc->ExportCaption($CCMStudents->BookedByDesignation);
$ExportDoc->ExportCaption($CCMStudents->BookedByTelNo);
$ExportDoc->ExportCaption($CCMStudents->BookedByFaxNo);
$ExportDoc->ExportCaption($CCMStudents->BookedByCellNo);
$ExportDoc->ExportCaption($CCMStudents->BookedByEmail);
$ExportDoc->ExportCaption($CCMStudents->MentorID);
$ExportDoc->ExportCaption($CCMStudents->MentorName);
$ExportDoc->ExportCaption($CCMStudents->MentorDesig);
$ExportDoc->ExportCaption($CCMStudents->MentorProfRegNo);
$ExportDoc->ExportCaption($CCMStudents->MentorRegNo);
$ExportDoc->ExportCaption($CCMStudents->MentorTel);
$ExportDoc->ExportCaption($CCMStudents->MentorCell);
$ExportDoc->ExportCaption($CCMStudents->MentorEmail);
$ExportDoc->ExportCaption($CCMStudents->EmployerID);
$ExportDoc->ExportCaption($CCMStudents->HRManagerName);
$ExportDoc->ExportCaption($CCMStudents->HRManagerDesignation);
$ExportDoc->ExportCaption($CCMStudents->HRManagerTelNo);
$ExportDoc->ExportCaption($CCMStudents->HRManagerCellNo);
$ExportDoc->ExportCaption($CCMStudents->HRManagerEmail);
$ExportDoc->ExportCaption($CCMStudents->SupervisorName);
$ExportDoc->ExportCaption($CCMStudents->SupervisorDesig);
$ExportDoc->ExportCaption($CCMStudents->SupervisorProfRegNo);
$ExportDoc->ExportCaption($CCMStudents->SupervisorTelNo);
$ExportDoc->ExportCaption($CCMStudents->SupervisorCellNo);
$ExportDoc->ExportCaption($CCMStudents->SupervisorEmail);
$ExportDoc->ExportCaption($CCMStudents->EducationalInst);
$ExportDoc->ExportCaption($CCMStudents->Qualifications);
$ExportDoc->ExportCaption($CCMStudents->DateFinalExam);
$ExportDoc->ExportCaption($CCMStudents->IDFile);
$ExportDoc->ExportCaption($CCMStudents->CVFile);
$ExportDoc->ExportCaption($CCMStudents->QualCertificate1);
$ExportDoc->ExportCaption($CCMStudents->QualCertificate2);
$ExportDoc->ExportCaption($CCMStudents->QualCertificate3);
$ExportDoc->ExportCaption($CCMStudents->MentorUndertaking);
$ExportDoc->ExportCaption($CCMStudents->CandUUndertaking);
$ExportDoc->ExportCaption($CCMStudents->CompanyCandidatePolicy);
$ExportDoc->ExportCaption($CCMStudents->ResidenceProof);
$ExportDoc->ExportCaption($CCMStudents->SignedAppForm);
$ExportDoc->ExportCaption($CCMStudents->Photograph);
$ExportDoc->ExportCaption($CCMStudents->StudentNumber);
$ExportDoc->ExportCaption($CCMStudents->WebUsername);
$ExportDoc->ExportCaption($CCMStudents->WebPassword);
$ExportDoc->ExportCaption($CCMStudents->BlockAccess);
$ExportDoc->ExportCaption($CCMStudents->SABTACO);
$ExportDoc->ExportCaption($CCMStudents->CESA);
$ExportDoc->ExportCaption($CCMStudents->Archived);
$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
$CCMStudents->CssClass = "";
$CCMStudents->CssStyle = "";
$CCMStudents->RowType = EW_ROWTYPE_VIEW; // Render view
$this->RenderRow();
if ($CCMStudents->Export == "xml") {
$XmlDoc->AddRow();
$XmlDoc->AddField('SelectionCategory', $CCMStudents->SelectionCategory->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Title', $CCMStudents->Title->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Initials', $CCMStudents->Initials->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('FirstName', $CCMStudents->FirstName->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Surname', $CCMStudents->Surname->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('KnownAs', $CCMStudents->KnownAs->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('IDNumber', $CCMStudents->IDNumber->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Telephone', $CCMStudents->Telephone->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Cellphone', $CCMStudents->Cellphone->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('EmailAddress', $CCMStudents->EmailAddress->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('WorkAddress', $CCMStudents->WorkAddress->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('PostalAddress', $CCMStudents->PostalAddress->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Department', $CCMStudents->Department->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Organisation', $CCMStudents->Organisation->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('VATNo', $CCMStudents->VATNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('JobTitle', $CCMStudents->JobTitle->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('DateofBirth', $CCMStudents->DateofBirth->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('PlaceofBirth', $CCMStudents->PlaceofBirth->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('CountryofBirth', $CCMStudents->CountryofBirth->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Province', $CCMStudents->Province->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MaleorFemale', $CCMStudents->MaleorFemale->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('RaceGroup', $CCMStudents->RaceGroup->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Disability', $CCMStudents->Disability->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('DisabilityNature', $CCMStudents->DisabilityNature->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('DisabilityCertificate', $CCMStudents->DisabilityCertificate->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('ProfessionalCouncil', $CCMStudents->ProfessionalCouncil->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('CategoryReg', $CCMStudents->CategoryReg->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('CouncilRegNumber', $CCMStudents->CouncilRegNumber->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('LengthCandidateReg', $CCMStudents->LengthCandidateReg->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('YearsToProfReg', $CCMStudents->YearsToProfReg->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('FirstJobStart', $CCMStudents->FirstJobStart->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('VolAssociations', $CCMStudents->VolAssociations->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BelongsTo', $CCMStudents->BelongsTo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('CESA_SABTACO_MemNum', $CCMStudents->CESA_SABTACO_MemNum->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('AreaDiscipline', $CCMStudents->AreaDiscipline->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('AreaSubDiscipline', $CCMStudents->AreaSubDiscipline->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Salary', $CCMStudents->Salary->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Payslip', $CCMStudents->Payslip->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BankAccountName', $CCMStudents->BankAccountName->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BankAccountBank', $CCMStudents->BankAccountBank->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BankAccountBranch', $CCMStudents->BankAccountBranch->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BankAccountNo', $CCMStudents->BankAccountNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BankAccountProof', $CCMStudents->BankAccountProof->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Funding', $CCMStudents->Funding->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('CWDTP', $CCMStudents->CWDTP->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByName', $CCMStudents->BookedByName->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByDesignation', $CCMStudents->BookedByDesignation->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByTelNo', $CCMStudents->BookedByTelNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByFaxNo', $CCMStudents->BookedByFaxNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByCellNo', $CCMStudents->BookedByCellNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BookedByEmail', $CCMStudents->BookedByEmail->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorID', $CCMStudents->MentorID->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorName', $CCMStudents->MentorName->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorDesig', $CCMStudents->MentorDesig->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorProfRegNo', $CCMStudents->MentorProfRegNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorRegNo', $CCMStudents->MentorRegNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorTel', $CCMStudents->MentorTel->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorCell', $CCMStudents->MentorCell->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorEmail', $CCMStudents->MentorEmail->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('EmployerID', $CCMStudents->EmployerID->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerName', $CCMStudents->HRManagerName->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerDesignation', $CCMStudents->HRManagerDesignation->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerTelNo', $CCMStudents->HRManagerTelNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerCellNo', $CCMStudents->HRManagerCellNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('HRManagerEmail', $CCMStudents->HRManagerEmail->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('SupervisorName', $CCMStudents->SupervisorName->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('SupervisorDesig', $CCMStudents->SupervisorDesig->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('SupervisorProfRegNo', $CCMStudents->SupervisorProfRegNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('SupervisorTelNo', $CCMStudents->SupervisorTelNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('SupervisorCellNo', $CCMStudents->SupervisorCellNo->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('SupervisorEmail', $CCMStudents->SupervisorEmail->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('EducationalInst', $CCMStudents->EducationalInst->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Qualifications', $CCMStudents->Qualifications->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('DateFinalExam', $CCMStudents->DateFinalExam->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('IDFile', $CCMStudents->IDFile->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('CVFile', $CCMStudents->CVFile->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate1', $CCMStudents->QualCertificate1->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate2', $CCMStudents->QualCertificate2->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate3', $CCMStudents->QualCertificate3->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('MentorUndertaking', $CCMStudents->MentorUndertaking->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('CandUUndertaking', $CCMStudents->CandUUndertaking->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('CompanyCandidatePolicy', $CCMStudents->CompanyCandidatePolicy->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('ResidenceProof', $CCMStudents->ResidenceProof->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('SignedAppForm', $CCMStudents->SignedAppForm->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Photograph', $CCMStudents->Photograph->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('StudentNumber', $CCMStudents->StudentNumber->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('WebUsername', $CCMStudents->WebUsername->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('WebPassword', $CCMStudents->WebPassword->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('BlockAccess', $CCMStudents->BlockAccess->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('SABTACO', $CCMStudents->SABTACO->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('CESA', $CCMStudents->CESA->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
$XmlDoc->AddField('Archived', $CCMStudents->Archived->ExportValue($CCMStudents->Export, $CCMStudents->ExportOriginalValue));
} else {
$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
$ExportDoc->ExportField($CCMStudents->SelectionCategory);
$ExportDoc->ExportField($CCMStudents->Title);
$ExportDoc->ExportField($CCMStudents->Initials);
$ExportDoc->ExportField($CCMStudents->FirstName);
$ExportDoc->ExportField($CCMStudents->Surname);
$ExportDoc->ExportField($CCMStudents->KnownAs);
$ExportDoc->ExportField($CCMStudents->IDNumber);
$ExportDoc->ExportField($CCMStudents->Telephone);
$ExportDoc->ExportField($CCMStudents->Cellphone);
$ExportDoc->ExportField($CCMStudents->EmailAddress);
$ExportDoc->ExportField($CCMStudents->WorkAddress);
$ExportDoc->ExportField($CCMStudents->PostalAddress);
$ExportDoc->ExportField($CCMStudents->Department);
$ExportDoc->ExportField($CCMStudents->Organisation);
$ExportDoc->ExportField($CCMStudents->VATNo);
$ExportDoc->ExportField($CCMStudents->JobTitle);
$ExportDoc->ExportField($CCMStudents->DateofBirth);
$ExportDoc->ExportField($CCMStudents->PlaceofBirth);
$ExportDoc->ExportField($CCMStudents->CountryofBirth);
$ExportDoc->ExportField($CCMStudents->Province);
$ExportDoc->ExportField($CCMStudents->MaleorFemale);
$ExportDoc->ExportField($CCMStudents->RaceGroup);
$ExportDoc->ExportField($CCMStudents->Disability);
$ExportDoc->ExportField($CCMStudents->DisabilityNature);
$ExportDoc->ExportField($CCMStudents->DisabilityCertificate);
$ExportDoc->ExportField($CCMStudents->ProfessionalCouncil);
$ExportDoc->ExportField($CCMStudents->CategoryReg);
$ExportDoc->ExportField($CCMStudents->CouncilRegNumber);
$ExportDoc->ExportField($CCMStudents->LengthCandidateReg);
$ExportDoc->ExportField($CCMStudents->YearsToProfReg);
$ExportDoc->ExportField($CCMStudents->FirstJobStart);
$ExportDoc->ExportField($CCMStudents->VolAssociations);
$ExportDoc->ExportField($CCMStudents->BelongsTo);
$ExportDoc->ExportField($CCMStudents->CESA_SABTACO_MemNum);
$ExportDoc->ExportField($CCMStudents->AreaDiscipline);
$ExportDoc->ExportField($CCMStudents->AreaSubDiscipline);
$ExportDoc->ExportField($CCMStudents->Salary);
$ExportDoc->ExportField($CCMStudents->Payslip);
$ExportDoc->ExportField($CCMStudents->BankAccountName);
$ExportDoc->ExportField($CCMStudents->BankAccountBank);
$ExportDoc->ExportField($CCMStudents->BankAccountBranch);
$ExportDoc->ExportField($CCMStudents->BankAccountNo);
$ExportDoc->ExportField($CCMStudents->BankAccountProof);
$ExportDoc->ExportField($CCMStudents->Funding);
$ExportDoc->ExportField($CCMStudents->CWDTP);
$ExportDoc->ExportField($CCMStudents->BookedByName);
$ExportDoc->ExportField($CCMStudents->BookedByDesignation);
$ExportDoc->ExportField($CCMStudents->BookedByTelNo);
$ExportDoc->ExportField($CCMStudents->BookedByFaxNo);
$ExportDoc->ExportField($CCMStudents->BookedByCellNo);
$ExportDoc->ExportField($CCMStudents->BookedByEmail);
$ExportDoc->ExportField($CCMStudents->MentorID);
$ExportDoc->ExportField($CCMStudents->MentorName);
$ExportDoc->ExportField($CCMStudents->MentorDesig);
$ExportDoc->ExportField($CCMStudents->MentorProfRegNo);
$ExportDoc->ExportField($CCMStudents->MentorRegNo);
$ExportDoc->ExportField($CCMStudents->MentorTel);
$ExportDoc->ExportField($CCMStudents->MentorCell);
$ExportDoc->ExportField($CCMStudents->MentorEmail);
$ExportDoc->ExportField($CCMStudents->EmployerID);
$ExportDoc->ExportField($CCMStudents->HRManagerName);
$ExportDoc->ExportField($CCMStudents->HRManagerDesignation);
$ExportDoc->ExportField($CCMStudents->HRManagerTelNo);
$ExportDoc->ExportField($CCMStudents->HRManagerCellNo);
$ExportDoc->ExportField($CCMStudents->HRManagerEmail);
$ExportDoc->ExportField($CCMStudents->SupervisorName);
$ExportDoc->ExportField($CCMStudents->SupervisorDesig);
$ExportDoc->ExportField($CCMStudents->SupervisorProfRegNo);
$ExportDoc->ExportField($CCMStudents->SupervisorTelNo);
$ExportDoc->ExportField($CCMStudents->SupervisorCellNo);
$ExportDoc->ExportField($CCMStudents->SupervisorEmail);
$ExportDoc->ExportField($CCMStudents->EducationalInst);
$ExportDoc->ExportField($CCMStudents->Qualifications);
$ExportDoc->ExportField($CCMStudents->DateFinalExam);
$ExportDoc->ExportField($CCMStudents->IDFile);
$ExportDoc->ExportField($CCMStudents->CVFile);
$ExportDoc->ExportField($CCMStudents->QualCertificate1);
$ExportDoc->ExportField($CCMStudents->QualCertificate2);
$ExportDoc->ExportField($CCMStudents->QualCertificate3);
$ExportDoc->ExportField($CCMStudents->MentorUndertaking);
$ExportDoc->ExportField($CCMStudents->CandUUndertaking);
$ExportDoc->ExportField($CCMStudents->CompanyCandidatePolicy);
$ExportDoc->ExportField($CCMStudents->ResidenceProof);
$ExportDoc->ExportField($CCMStudents->SignedAppForm);
$ExportDoc->ExportField($CCMStudents->Photograph);
$ExportDoc->ExportField($CCMStudents->StudentNumber);
$ExportDoc->ExportField($CCMStudents->WebUsername);
$ExportDoc->ExportField($CCMStudents->WebPassword);
$ExportDoc->ExportField($CCMStudents->BlockAccess);
$ExportDoc->ExportField($CCMStudents->SABTACO);
$ExportDoc->ExportField($CCMStudents->CESA);
$ExportDoc->ExportField($CCMStudents->Archived);
$ExportDoc->EndExportRow();
}
}
$rs->MoveNext();
}
if ($CCMStudents->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($CCMStudents->Export, array("email", "xml")))
echo "\xEF\xBB\xBF";
// Write debug message if enabled
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
// Output data
if ($CCMStudents->Export == "xml") {
header("Content-Type: text/xml");
echo $XmlDoc->XML();
} elseif ($CCMStudents->Export == "email") {
$this->ExportEmail($ExportDoc->Text);
$this->Page_Terminate($CCMStudents->ExportReturnUrl());
} else {
echo $ExportDoc->Text;
}
}
// Export email
function ExportEmail($EmailContent) {
global $Language, $CCMStudents;
$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 ($CCMStudents->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 $CCMStudents;
// Initialize
$sQry = "export=html";
// Add record key QueryString
$sQry .= "&" . substr($CCMStudents->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";
}
}
?>