| Current Path : /var/www/cesa.co.za/echasl23/ |
| Current File : /var/www/cesa.co.za/echasl23/CCEStudentsadd.php |
<?php
session_start(); // Initialize Session data
ob_start(); // Turn on output buffering
?>
<?php include "ewcfg7.php" ?>
<?php include "ewmysql7.php" ?>
<?php include "phpfn7.php" ?>
<?php include "CCEStudentsinfo.php" ?>
<?php include "adminusersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
// Create page object
$CCEStudents_add = new cCCEStudents_add();
$Page =& $CCEStudents_add;
// Page init
$CCEStudents_add->Page_Init();
// Page main
$CCEStudents_add->Page_Main();
?>
<?php include "header.php" ?>
<script type="text/javascript">
<!--
// Create page object
var CCEStudents_add = new ew_Page("CCEStudents_add");
// page properties
CCEStudents_add.PageID = "add"; // page ID
CCEStudents_add.FormID = "fCCEStudentsadd"; // form ID
var EW_PAGE_ID = CCEStudents_add.PageID; // for backward compatibility
// extend page with ValidateForm function
CCEStudents_add.ValidateForm = function(fobj) {
ew_PostAutoSuggest(fobj);
if (!this.ValidateRequired)
return true; // ignore validation
if (fobj.a_confirm && fobj.a_confirm.value == "F")
return true;
var i, elm, aelm, infix;
var rowcnt = (fobj.key_count) ? Number(fobj.key_count.value) : 1;
for (i=0; i<rowcnt; i++) {
infix = (fobj.key_count) ? String(i+1) : "";
elm = fobj.elements["x" + infix + "_FirstName"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php echo ew_JsEncode2($CCEStudents->FirstName->FldCaption()) ?>");
elm = fobj.elements["x" + infix + "_Surname"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php echo ew_JsEncode2($CCEStudents->Surname->FldCaption()) ?>");
elm = fobj.elements["x" + infix + "_CCEFacilitatorID"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "<?php echo ew_JsEncode2($CCEStudents->CCEFacilitatorID->FldErrMsg()) ?>");
elm = fobj.elements["x" + infix + "_Project"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "<?php echo ew_JsEncode2($CCEStudents->Project->FldErrMsg()) ?>");
elm = fobj.elements["x" + infix + "_Age"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "<?php echo ew_JsEncode2($CCEStudents->Age->FldErrMsg()) ?>");
elm = fobj.elements["x" + infix + "_Trimester1Report"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_Trimester2Report"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_Trimester3Report"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_ExamResultLetter"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_SupplementalExamLetter"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
// Call Form Custom Validate event
if (!this.Form_CustomValidate(fobj)) return false;
}
return true;
}
// extend page with Form_CustomValidate function
CCEStudents_add.Form_CustomValidate =
function(fobj) { // DO NOT CHANGE THIS LINE!
// Your custom validation code here, return false if invalid.
return true;
}
<?php if (EW_CLIENT_VALIDATE) { ?>
CCEStudents_add.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
CCEStudents_add.ValidateRequired = false; // no JavaScript validation
<?php } ?>
//-->
</script>
<script type="text/javascript">
<!--
var ew_DHTMLEditors = [];
//-->
</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>
<p><span class="phpmaker"><?php echo $Language->Phrase("Add") ?> <?php echo $Language->Phrase("TblTypeTABLE") ?><?php echo $CCEStudents->TableCaption() ?><br><br>
<a href="<?php echo $CCEStudents->getReturnUrl() ?>"><?php echo $Language->Phrase("GoBack") ?></a></span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$CCEStudents_add->ShowMessage();
?>
<form name="fCCEStudentsadd" id="fCCEStudentsadd" action="<?php echo ew_CurrentPage() ?>" method="post" enctype="multipart/form-data" onsubmit="return CCEStudents_add.ValidateForm(this);">
<p>
<input type="hidden" name="t" id="t" value="CCEStudents">
<input type="hidden" name="a_add" id="a_add" value="A">
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<?php if ($CCEStudents->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->KnownAs->FldCaption() ?></td>
<td<?php echo $CCEStudents->KnownAs->CellAttributes() ?>><span id="el_KnownAs">
<input type="text" name="x_KnownAs" id="x_KnownAs" title="<?php echo $CCEStudents->KnownAs->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->KnownAs->EditValue ?>"<?php echo $CCEStudents->KnownAs->EditAttributes() ?>>
</span><?php echo $CCEStudents->KnownAs->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->FirstName->Visible) { // FirstName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->FirstName->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $CCEStudents->FirstName->CellAttributes() ?>><span id="el_FirstName">
<input type="text" name="x_FirstName" id="x_FirstName" title="<?php echo $CCEStudents->FirstName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->FirstName->EditValue ?>"<?php echo $CCEStudents->FirstName->EditAttributes() ?>>
</span><?php echo $CCEStudents->FirstName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Surname->Visible) { // Surname ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Surname->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $CCEStudents->Surname->CellAttributes() ?>><span id="el_Surname">
<input type="text" name="x_Surname" id="x_Surname" title="<?php echo $CCEStudents->Surname->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Surname->EditValue ?>"<?php echo $CCEStudents->Surname->EditAttributes() ?>>
</span><?php echo $CCEStudents->Surname->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Organisation->Visible) { // Organisation ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Organisation->FldCaption() ?></td>
<td<?php echo $CCEStudents->Organisation->CellAttributes() ?>><span id="el_Organisation">
<input type="text" name="x_Organisation" id="x_Organisation" title="<?php echo $CCEStudents->Organisation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Organisation->EditValue ?>"<?php echo $CCEStudents->Organisation->EditAttributes() ?>>
</span><?php echo $CCEStudents->Organisation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OrganisationType->Visible) { // OrganisationType ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OrganisationType->FldCaption() ?></td>
<td<?php echo $CCEStudents->OrganisationType->CellAttributes() ?>><span id="el_OrganisationType">
<input type="text" name="x_OrganisationType" id="x_OrganisationType" title="<?php echo $CCEStudents->OrganisationType->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->OrganisationType->EditValue ?>"<?php echo $CCEStudents->OrganisationType->EditAttributes() ?>>
</span><?php echo $CCEStudents->OrganisationType->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Designation->Visible) { // Designation ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Designation->FldCaption() ?></td>
<td<?php echo $CCEStudents->Designation->CellAttributes() ?>><span id="el_Designation">
<input type="text" name="x_Designation" id="x_Designation" title="<?php echo $CCEStudents->Designation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Designation->EditValue ?>"<?php echo $CCEStudents->Designation->EditAttributes() ?>>
</span><?php echo $CCEStudents->Designation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Department->Visible) { // Department ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Department->FldCaption() ?></td>
<td<?php echo $CCEStudents->Department->CellAttributes() ?>><span id="el_Department">
<input type="text" name="x_Department" id="x_Department" title="<?php echo $CCEStudents->Department->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Department->EditValue ?>"<?php echo $CCEStudents->Department->EditAttributes() ?>>
</span><?php echo $CCEStudents->Department->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->StudentNumber->Visible) { // StudentNumber ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->StudentNumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->StudentNumber->CellAttributes() ?>><span id="el_StudentNumber">
<input type="text" name="x_StudentNumber" id="x_StudentNumber" title="<?php echo $CCEStudents->StudentNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->StudentNumber->EditValue ?>"<?php echo $CCEStudents->StudentNumber->EditAttributes() ?>>
</span><?php echo $CCEStudents->StudentNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->CCEFacilitatorID->Visible) { // CCEFacilitatorID ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CCEFacilitatorID->FldCaption() ?></td>
<td<?php echo $CCEStudents->CCEFacilitatorID->CellAttributes() ?>><span id="el_CCEFacilitatorID">
<div id="as_x_CCEFacilitatorID" style="z-index: 8900">
<input type="text" name="sv_x_CCEFacilitatorID" id="sv_x_CCEFacilitatorID" value="<?php echo $CCEStudents->CCEFacilitatorID->EditValue ?>" title="<?php echo $CCEStudents->CCEFacilitatorID->FldTitle() ?>" size="30"<?php echo $CCEStudents->CCEFacilitatorID->EditAttributes() ?>> <span id="em_x_CCEFacilitatorID" class="ewMessage" style="display: none"><?php echo $Language->Phrase("UnmatchedValue") ?></span>
<div id="sc_x_CCEFacilitatorID"></div>
</div>
<input type="hidden" name="x_CCEFacilitatorID" id="x_CCEFacilitatorID" value="<?php echo $CCEStudents->CCEFacilitatorID->CurrentValue ?>">
<?php
$sSqlWrk = "SELECT `FacilitatorID`, `FacilitatorName` FROM `CCEFacilitators`";
$sWhereWrk = "`FacilitatorName` LIKE '{query_value}%'";
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName` Asc";
$sSqlWrk = TEAencrypt($sSqlWrk, EW_RANDOM_KEY);
?>
<input type="hidden" name="s_x_CCEFacilitatorID" id="s_x_CCEFacilitatorID" value="<?php echo $sSqlWrk ?>">
<script type="text/javascript">
<!--
var oas_x_CCEFacilitatorID = new ew_AutoSuggest("sv_x_CCEFacilitatorID", "sc_x_CCEFacilitatorID", "s_x_CCEFacilitatorID", "em_x_CCEFacilitatorID", "x_CCEFacilitatorID", "", false);
oas_x_CCEFacilitatorID.formatResult = function(ar) {
var df1 = ar[1];
return df1;
};
oas_x_CCEFacilitatorID.ac.typeAhead = false;
//-->
</script>
</span><?php echo $CCEStudents->CCEFacilitatorID->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Project->Visible) { // Project ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Project->FldCaption() ?></td>
<td<?php echo $CCEStudents->Project->CellAttributes() ?>><span id="el_Project">
<div id="as_x_Project" style="z-index: 8890">
<input type="text" name="sv_x_Project" id="sv_x_Project" value="<?php echo $CCEStudents->Project->EditValue ?>" title="<?php echo $CCEStudents->Project->FldTitle() ?>" size="30"<?php echo $CCEStudents->Project->EditAttributes() ?>> <span id="em_x_Project" class="ewMessage" style="display: none"><?php echo $Language->Phrase("UnmatchedValue") ?></span>
<div id="sc_x_Project"></div>
</div>
<input type="hidden" name="x_Project" id="x_Project" value="<?php echo $CCEStudents->Project->CurrentValue ?>">
<?php
$sSqlWrk = "SELECT `CCEProjectID`, `Project` FROM `CCEProjects`";
$sWhereWrk = "`Project` LIKE '{query_value}%'";
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder` Asc";
$sSqlWrk = TEAencrypt($sSqlWrk, EW_RANDOM_KEY);
?>
<input type="hidden" name="s_x_Project" id="s_x_Project" value="<?php echo $sSqlWrk ?>">
<script type="text/javascript">
<!--
var oas_x_Project = new ew_AutoSuggest("sv_x_Project", "sc_x_Project", "s_x_Project", "em_x_Project", "x_Project", "", false);
oas_x_Project.formatResult = function(ar) {
var df1 = ar[1];
return df1;
};
oas_x_Project.ac.typeAhead = false;
//-->
</script>
</span><?php echo $CCEStudents->Project->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ProjectDiscipline->FldCaption() ?></td>
<td<?php echo $CCEStudents->ProjectDiscipline->CellAttributes() ?>><span id="el_ProjectDiscipline">
<input type="text" name="x_ProjectDiscipline" id="x_ProjectDiscipline" title="<?php echo $CCEStudents->ProjectDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->ProjectDiscipline->EditValue ?>"<?php echo $CCEStudents->ProjectDiscipline->EditAttributes() ?>>
</span><?php echo $CCEStudents->ProjectDiscipline->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ProjectCode->Visible) { // ProjectCode ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ProjectCode->FldCaption() ?></td>
<td<?php echo $CCEStudents->ProjectCode->CellAttributes() ?>><span id="el_ProjectCode">
<input type="text" name="x_ProjectCode" id="x_ProjectCode" title="<?php echo $CCEStudents->ProjectCode->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->ProjectCode->EditValue ?>"<?php echo $CCEStudents->ProjectCode->EditAttributes() ?>>
</span><?php echo $CCEStudents->ProjectCode->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->IDNumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->IDNumber->CellAttributes() ?>><span id="el_IDNumber">
<input type="text" name="x_IDNumber" id="x_IDNumber" title="<?php echo $CCEStudents->IDNumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->IDNumber->EditValue ?>"<?php echo $CCEStudents->IDNumber->EditAttributes() ?>>
</span><?php echo $CCEStudents->IDNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ECSARegistered->Visible) { // ECSARegistered ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ECSARegistered->FldCaption() ?></td>
<td<?php echo $CCEStudents->ECSARegistered->CellAttributes() ?>><span id="el_ECSARegistered">
<div id="tp_x_ECSARegistered" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_ECSARegistered" id="x_ECSARegistered" title="<?php echo $CCEStudents->ECSARegistered->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->ECSARegistered->EditAttributes() ?>></label></div>
<div id="dsl_x_ECSARegistered" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->ECSARegistered->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->ECSARegistered->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_ECSARegistered" id="x_ECSARegistered" title="<?php echo $CCEStudents->ECSARegistered->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->ECSARegistered->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $CCEStudents->ECSARegistered->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ECSACategory->Visible) { // ECSACategory ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ECSACategory->FldCaption() ?></td>
<td<?php echo $CCEStudents->ECSACategory->CellAttributes() ?>><span id="el_ECSACategory">
<select id="x_ECSACategory" name="x_ECSACategory" title="<?php echo $CCEStudents->ECSACategory->FldTitle() ?>"<?php echo $CCEStudents->ECSACategory->EditAttributes() ?>>
<?php
if (is_array($CCEStudents->ECSACategory->EditValue)) {
$arwrk = $CCEStudents->ECSACategory->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->ECSACategory->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
</option>
<?php
}
}
?>
</select>
</span><?php echo $CCEStudents->ECSACategory->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ECSANumber->Visible) { // ECSANumber ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ECSANumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->ECSANumber->CellAttributes() ?>><span id="el_ECSANumber">
<input type="text" name="x_ECSANumber" id="x_ECSANumber" title="<?php echo $CCEStudents->ECSANumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->ECSANumber->EditValue ?>"<?php echo $CCEStudents->ECSANumber->EditAttributes() ?>>
</span><?php echo $CCEStudents->ECSANumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherStatutoryBodyRegistered->Visible) { // OtherStatutoryBodyRegistered ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyRegistered->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyRegistered->CellAttributes() ?>><span id="el_OtherStatutoryBodyRegistered">
<div id="tp_x_OtherStatutoryBodyRegistered" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_OtherStatutoryBodyRegistered" id="x_OtherStatutoryBodyRegistered" title="<?php echo $CCEStudents->OtherStatutoryBodyRegistered->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->OtherStatutoryBodyRegistered->EditAttributes() ?>></label></div>
<div id="dsl_x_OtherStatutoryBodyRegistered" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->OtherStatutoryBodyRegistered->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->OtherStatutoryBodyRegistered->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_OtherStatutoryBodyRegistered" id="x_OtherStatutoryBodyRegistered" title="<?php echo $CCEStudents->OtherStatutoryBodyRegistered->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->OtherStatutoryBodyRegistered->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $CCEStudents->OtherStatutoryBodyRegistered->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherStatutoryBodyName->Visible) { // OtherStatutoryBodyName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyName->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyName->CellAttributes() ?>><span id="el_OtherStatutoryBodyName">
<input type="text" name="x_OtherStatutoryBodyName" id="x_OtherStatutoryBodyName" title="<?php echo $CCEStudents->OtherStatutoryBodyName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->OtherStatutoryBodyName->EditValue ?>"<?php echo $CCEStudents->OtherStatutoryBodyName->EditAttributes() ?>>
</span><?php echo $CCEStudents->OtherStatutoryBodyName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherStatutoryBodyNumber->Visible) { // OtherStatutoryBodyNumber ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyNumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyNumber->CellAttributes() ?>><span id="el_OtherStatutoryBodyNumber">
<input type="text" name="x_OtherStatutoryBodyNumber" id="x_OtherStatutoryBodyNumber" title="<?php echo $CCEStudents->OtherStatutoryBodyNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->OtherStatutoryBodyNumber->EditValue ?>"<?php echo $CCEStudents->OtherStatutoryBodyNumber->EditAttributes() ?>>
</span><?php echo $CCEStudents->OtherStatutoryBodyNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherStatutoryBodyCategory->Visible) { // OtherStatutoryBodyCategory ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyCategory->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyCategory->CellAttributes() ?>><span id="el_OtherStatutoryBodyCategory">
<input type="text" name="x_OtherStatutoryBodyCategory" id="x_OtherStatutoryBodyCategory" title="<?php echo $CCEStudents->OtherStatutoryBodyCategory->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->OtherStatutoryBodyCategory->EditValue ?>"<?php echo $CCEStudents->OtherStatutoryBodyCategory->EditAttributes() ?>>
</span><?php echo $CCEStudents->OtherStatutoryBodyCategory->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->CESAMemberFirm->Visible) { // CESAMemberFirm ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CESAMemberFirm->FldCaption() ?></td>
<td<?php echo $CCEStudents->CESAMemberFirm->CellAttributes() ?>><span id="el_CESAMemberFirm">
<div id="tp_x_CESAMemberFirm" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_CESAMemberFirm" id="x_CESAMemberFirm" title="<?php echo $CCEStudents->CESAMemberFirm->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->CESAMemberFirm->EditAttributes() ?>></label></div>
<div id="dsl_x_CESAMemberFirm" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->CESAMemberFirm->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->CESAMemberFirm->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_CESAMemberFirm" id="x_CESAMemberFirm" title="<?php echo $CCEStudents->CESAMemberFirm->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->CESAMemberFirm->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $CCEStudents->CESAMemberFirm->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OtherCEFirms->Visible) { // OtherCEFirms ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherCEFirms->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherCEFirms->CellAttributes() ?>><span id="el_OtherCEFirms">
<textarea name="x_OtherCEFirms" id="x_OtherCEFirms" title="<?php echo $CCEStudents->OtherCEFirms->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->OtherCEFirms->EditAttributes() ?>><?php echo $CCEStudents->OtherCEFirms->EditValue ?></textarea>
</span><?php echo $CCEStudents->OtherCEFirms->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Age->Visible) { // Age ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Age->FldCaption() ?></td>
<td<?php echo $CCEStudents->Age->CellAttributes() ?>><span id="el_Age">
<input type="text" name="x_Age" id="x_Age" title="<?php echo $CCEStudents->Age->FldTitle() ?>" size="30" value="<?php echo $CCEStudents->Age->EditValue ?>"<?php echo $CCEStudents->Age->EditAttributes() ?>>
</span><?php echo $CCEStudents->Age->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HighestQual->Visible) { // HighestQual ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HighestQual->FldCaption() ?></td>
<td<?php echo $CCEStudents->HighestQual->CellAttributes() ?>><span id="el_HighestQual">
<input type="text" name="x_HighestQual" id="x_HighestQual" title="<?php echo $CCEStudents->HighestQual->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HighestQual->EditValue ?>"<?php echo $CCEStudents->HighestQual->EditAttributes() ?>>
</span><?php echo $CCEStudents->HighestQual->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->AreaDiscipline->Visible) { // AreaDiscipline ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->AreaDiscipline->FldCaption() ?></td>
<td<?php echo $CCEStudents->AreaDiscipline->CellAttributes() ?>><span id="el_AreaDiscipline">
<input type="text" name="x_AreaDiscipline" id="x_AreaDiscipline" title="<?php echo $CCEStudents->AreaDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->AreaDiscipline->EditValue ?>"<?php echo $CCEStudents->AreaDiscipline->EditAttributes() ?>>
</span><?php echo $CCEStudents->AreaDiscipline->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Telephone->Visible) { // Telephone ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Telephone->FldCaption() ?></td>
<td<?php echo $CCEStudents->Telephone->CellAttributes() ?>><span id="el_Telephone">
<input type="text" name="x_Telephone" id="x_Telephone" title="<?php echo $CCEStudents->Telephone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Telephone->EditValue ?>"<?php echo $CCEStudents->Telephone->EditAttributes() ?>>
</span><?php echo $CCEStudents->Telephone->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Cellphone->FldCaption() ?></td>
<td<?php echo $CCEStudents->Cellphone->CellAttributes() ?>><span id="el_Cellphone">
<input type="text" name="x_Cellphone" id="x_Cellphone" title="<?php echo $CCEStudents->Cellphone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Cellphone->EditValue ?>"<?php echo $CCEStudents->Cellphone->EditAttributes() ?>>
</span><?php echo $CCEStudents->Cellphone->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->EmailAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->EmailAddress->CellAttributes() ?>><span id="el_EmailAddress">
<input type="text" name="x_EmailAddress" id="x_EmailAddress" title="<?php echo $CCEStudents->EmailAddress->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->EmailAddress->EditValue ?>"<?php echo $CCEStudents->EmailAddress->EditAttributes() ?>>
</span><?php echo $CCEStudents->EmailAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->EmailAddress2->Visible) { // EmailAddress2 ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->EmailAddress2->FldCaption() ?></td>
<td<?php echo $CCEStudents->EmailAddress2->CellAttributes() ?>><span id="el_EmailAddress2">
<input type="text" name="x_EmailAddress2" id="x_EmailAddress2" title="<?php echo $CCEStudents->EmailAddress2->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->EmailAddress2->EditValue ?>"<?php echo $CCEStudents->EmailAddress2->EditAttributes() ?>>
</span><?php echo $CCEStudents->EmailAddress2->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HomeAddress->Visible) { // HomeAddress ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HomeAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->HomeAddress->CellAttributes() ?>><span id="el_HomeAddress">
<textarea name="x_HomeAddress" id="x_HomeAddress" title="<?php echo $CCEStudents->HomeAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->HomeAddress->EditAttributes() ?>><?php echo $CCEStudents->HomeAddress->EditValue ?></textarea>
</span><?php echo $CCEStudents->HomeAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->WorkAddress->Visible) { // WorkAddress ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->WorkAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->WorkAddress->CellAttributes() ?>><span id="el_WorkAddress">
<textarea name="x_WorkAddress" id="x_WorkAddress" title="<?php echo $CCEStudents->WorkAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->WorkAddress->EditAttributes() ?>><?php echo $CCEStudents->WorkAddress->EditValue ?></textarea>
</span><?php echo $CCEStudents->WorkAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->PostalAddress->Visible) { // PostalAddress ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->PostalAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->PostalAddress->CellAttributes() ?>><span id="el_PostalAddress">
<textarea name="x_PostalAddress" id="x_PostalAddress" title="<?php echo $CCEStudents->PostalAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->PostalAddress->EditAttributes() ?>><?php echo $CCEStudents->PostalAddress->EditValue ?></textarea>
</span><?php echo $CCEStudents->PostalAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->CESAAccountNo->Visible) { // CESAAccountNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CESAAccountNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->CESAAccountNo->CellAttributes() ?>><span id="el_CESAAccountNo">
<input type="text" name="x_CESAAccountNo" id="x_CESAAccountNo" title="<?php echo $CCEStudents->CESAAccountNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->CESAAccountNo->EditValue ?>"<?php echo $CCEStudents->CESAAccountNo->EditAttributes() ?>>
</span><?php echo $CCEStudents->CESAAccountNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->VATNo->Visible) { // VATNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->VATNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->VATNo->CellAttributes() ?>><span id="el_VATNo">
<input type="text" name="x_VATNo" id="x_VATNo" title="<?php echo $CCEStudents->VATNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->VATNo->EditValue ?>"<?php echo $CCEStudents->VATNo->EditAttributes() ?>>
</span><?php echo $CCEStudents->VATNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->DietaryRequirements->Visible) { // DietaryRequirements ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->DietaryRequirements->FldCaption() ?></td>
<td<?php echo $CCEStudents->DietaryRequirements->CellAttributes() ?>><span id="el_DietaryRequirements">
<input type="text" name="x_DietaryRequirements" id="x_DietaryRequirements" title="<?php echo $CCEStudents->DietaryRequirements->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->DietaryRequirements->EditValue ?>"<?php echo $CCEStudents->DietaryRequirements->EditAttributes() ?>>
</span><?php echo $CCEStudents->DietaryRequirements->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OrderNo->Visible) { // OrderNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OrderNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->OrderNo->CellAttributes() ?>><span id="el_OrderNo">
<input type="text" name="x_OrderNo" id="x_OrderNo" title="<?php echo $CCEStudents->OrderNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->OrderNo->EditValue ?>"<?php echo $CCEStudents->OrderNo->EditAttributes() ?>>
</span><?php echo $CCEStudents->OrderNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByName->Visible) { // BookedByName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByName->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByName->CellAttributes() ?>><span id="el_BookedByName">
<input type="text" name="x_BookedByName" id="x_BookedByName" title="<?php echo $CCEStudents->BookedByName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByName->EditValue ?>"<?php echo $CCEStudents->BookedByName->EditAttributes() ?>>
</span><?php echo $CCEStudents->BookedByName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByDesignation->Visible) { // BookedByDesignation ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByDesignation->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByDesignation->CellAttributes() ?>><span id="el_BookedByDesignation">
<input type="text" name="x_BookedByDesignation" id="x_BookedByDesignation" title="<?php echo $CCEStudents->BookedByDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByDesignation->EditValue ?>"<?php echo $CCEStudents->BookedByDesignation->EditAttributes() ?>>
</span><?php echo $CCEStudents->BookedByDesignation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByTelNo->Visible) { // BookedByTelNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByTelNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByTelNo->CellAttributes() ?>><span id="el_BookedByTelNo">
<input type="text" name="x_BookedByTelNo" id="x_BookedByTelNo" title="<?php echo $CCEStudents->BookedByTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByTelNo->EditValue ?>"<?php echo $CCEStudents->BookedByTelNo->EditAttributes() ?>>
</span><?php echo $CCEStudents->BookedByTelNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByFaxNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByFaxNo->CellAttributes() ?>><span id="el_BookedByFaxNo">
<input type="text" name="x_BookedByFaxNo" id="x_BookedByFaxNo" title="<?php echo $CCEStudents->BookedByFaxNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByFaxNo->EditValue ?>"<?php echo $CCEStudents->BookedByFaxNo->EditAttributes() ?>>
</span><?php echo $CCEStudents->BookedByFaxNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByCellNo->Visible) { // BookedByCellNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByCellNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByCellNo->CellAttributes() ?>><span id="el_BookedByCellNo">
<input type="text" name="x_BookedByCellNo" id="x_BookedByCellNo" title="<?php echo $CCEStudents->BookedByCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByCellNo->EditValue ?>"<?php echo $CCEStudents->BookedByCellNo->EditAttributes() ?>>
</span><?php echo $CCEStudents->BookedByCellNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BookedByEmail->Visible) { // BookedByEmail ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByEmail->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByEmail->CellAttributes() ?>><span id="el_BookedByEmail">
<input type="text" name="x_BookedByEmail" id="x_BookedByEmail" title="<?php echo $CCEStudents->BookedByEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByEmail->EditValue ?>"<?php echo $CCEStudents->BookedByEmail->EditAttributes() ?>>
</span><?php echo $CCEStudents->BookedByEmail->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->WebUsername->FldCaption() ?></td>
<td<?php echo $CCEStudents->WebUsername->CellAttributes() ?>><span id="el_WebUsername">
<input type="text" name="x_WebUsername" id="x_WebUsername" title="<?php echo $CCEStudents->WebUsername->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCEStudents->WebUsername->EditValue ?>"<?php echo $CCEStudents->WebUsername->EditAttributes() ?>>
</span><?php echo $CCEStudents->WebUsername->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->WebPassword->FldCaption() ?></td>
<td<?php echo $CCEStudents->WebPassword->CellAttributes() ?>><span id="el_WebPassword">
<input type="text" name="x_WebPassword" id="x_WebPassword" title="<?php echo $CCEStudents->WebPassword->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCEStudents->WebPassword->EditValue ?>"<?php echo $CCEStudents->WebPassword->EditAttributes() ?>>
</span><?php echo $CCEStudents->WebPassword->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorFirstName->Visible) { // MentorFirstName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorFirstName->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorFirstName->CellAttributes() ?>><span id="el_MentorFirstName">
<input type="text" name="x_MentorFirstName" id="x_MentorFirstName" title="<?php echo $CCEStudents->MentorFirstName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorFirstName->EditValue ?>"<?php echo $CCEStudents->MentorFirstName->EditAttributes() ?>>
</span><?php echo $CCEStudents->MentorFirstName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorSurname->Visible) { // MentorSurname ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorSurname->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorSurname->CellAttributes() ?>><span id="el_MentorSurname">
<input type="text" name="x_MentorSurname" id="x_MentorSurname" title="<?php echo $CCEStudents->MentorSurname->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorSurname->EditValue ?>"<?php echo $CCEStudents->MentorSurname->EditAttributes() ?>>
</span><?php echo $CCEStudents->MentorSurname->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorCompany->Visible) { // MentorCompany ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorCompany->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorCompany->CellAttributes() ?>><span id="el_MentorCompany">
<input type="text" name="x_MentorCompany" id="x_MentorCompany" title="<?php echo $CCEStudents->MentorCompany->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorCompany->EditValue ?>"<?php echo $CCEStudents->MentorCompany->EditAttributes() ?>>
</span><?php echo $CCEStudents->MentorCompany->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorDesig->Visible) { // MentorDesig ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorDesig->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorDesig->CellAttributes() ?>><span id="el_MentorDesig">
<input type="text" name="x_MentorDesig" id="x_MentorDesig" title="<?php echo $CCEStudents->MentorDesig->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorDesig->EditValue ?>"<?php echo $CCEStudents->MentorDesig->EditAttributes() ?>>
</span><?php echo $CCEStudents->MentorDesig->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorTel->Visible) { // MentorTel ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorTel->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorTel->CellAttributes() ?>><span id="el_MentorTel">
<input type="text" name="x_MentorTel" id="x_MentorTel" title="<?php echo $CCEStudents->MentorTel->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorTel->EditValue ?>"<?php echo $CCEStudents->MentorTel->EditAttributes() ?>>
</span><?php echo $CCEStudents->MentorTel->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorCell->Visible) { // MentorCell ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorCell->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorCell->CellAttributes() ?>><span id="el_MentorCell">
<input type="text" name="x_MentorCell" id="x_MentorCell" title="<?php echo $CCEStudents->MentorCell->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorCell->EditValue ?>"<?php echo $CCEStudents->MentorCell->EditAttributes() ?>>
</span><?php echo $CCEStudents->MentorCell->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorEmail->Visible) { // MentorEmail ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorEmail->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorEmail->CellAttributes() ?>><span id="el_MentorEmail">
<input type="text" name="x_MentorEmail" id="x_MentorEmail" title="<?php echo $CCEStudents->MentorEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorEmail->EditValue ?>"<?php echo $CCEStudents->MentorEmail->EditAttributes() ?>>
</span><?php echo $CCEStudents->MentorEmail->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerName->Visible) { // HRManagerName ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerName->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerName->CellAttributes() ?>><span id="el_HRManagerName">
<input type="text" name="x_HRManagerName" id="x_HRManagerName" title="<?php echo $CCEStudents->HRManagerName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerName->EditValue ?>"<?php echo $CCEStudents->HRManagerName->EditAttributes() ?>>
</span><?php echo $CCEStudents->HRManagerName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerDesignation->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerDesignation->CellAttributes() ?>><span id="el_HRManagerDesignation">
<input type="text" name="x_HRManagerDesignation" id="x_HRManagerDesignation" title="<?php echo $CCEStudents->HRManagerDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerDesignation->EditValue ?>"<?php echo $CCEStudents->HRManagerDesignation->EditAttributes() ?>>
</span><?php echo $CCEStudents->HRManagerDesignation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerTelNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerTelNo->CellAttributes() ?>><span id="el_HRManagerTelNo">
<input type="text" name="x_HRManagerTelNo" id="x_HRManagerTelNo" title="<?php echo $CCEStudents->HRManagerTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerTelNo->EditValue ?>"<?php echo $CCEStudents->HRManagerTelNo->EditAttributes() ?>>
</span><?php echo $CCEStudents->HRManagerTelNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerCellNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerCellNo->CellAttributes() ?>><span id="el_HRManagerCellNo">
<input type="text" name="x_HRManagerCellNo" id="x_HRManagerCellNo" title="<?php echo $CCEStudents->HRManagerCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerCellNo->EditValue ?>"<?php echo $CCEStudents->HRManagerCellNo->EditAttributes() ?>>
</span><?php echo $CCEStudents->HRManagerCellNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->HRManagerEmail->Visible) { // HRManagerEmail ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerEmail->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerEmail->CellAttributes() ?>><span id="el_HRManagerEmail">
<input type="text" name="x_HRManagerEmail" id="x_HRManagerEmail" title="<?php echo $CCEStudents->HRManagerEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerEmail->EditValue ?>"<?php echo $CCEStudents->HRManagerEmail->EditAttributes() ?>>
</span><?php echo $CCEStudents->HRManagerEmail->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->LengthEmploy->Visible) { // LengthEmploy ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->LengthEmploy->FldCaption() ?></td>
<td<?php echo $CCEStudents->LengthEmploy->CellAttributes() ?>><span id="el_LengthEmploy">
<input type="text" name="x_LengthEmploy" id="x_LengthEmploy" title="<?php echo $CCEStudents->LengthEmploy->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->LengthEmploy->EditValue ?>"<?php echo $CCEStudents->LengthEmploy->EditAttributes() ?>>
</span><?php echo $CCEStudents->LengthEmploy->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ResponsiblePayment->Visible) { // ResponsiblePayment ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResponsiblePayment->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResponsiblePayment->CellAttributes() ?>><span id="el_ResponsiblePayment">
<input type="text" name="x_ResponsiblePayment" id="x_ResponsiblePayment" title="<?php echo $CCEStudents->ResponsiblePayment->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->ResponsiblePayment->EditValue ?>"<?php echo $CCEStudents->ResponsiblePayment->EditAttributes() ?>>
</span><?php echo $CCEStudents->ResponsiblePayment->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->BlockAccess->Visible) { // BlockAccess ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BlockAccess->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $CCEStudents->BlockAccess->CellAttributes() ?>><span id="el_BlockAccess">
<div id="tp_x_BlockAccess" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_BlockAccess" id="x_BlockAccess" title="<?php echo $CCEStudents->BlockAccess->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->BlockAccess->EditAttributes() ?>></label></div>
<div id="dsl_x_BlockAccess" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->BlockAccess->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->BlockAccess->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_BlockAccess" id="x_BlockAccess" title="<?php echo $CCEStudents->BlockAccess->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->BlockAccess->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $CCEStudents->BlockAccess->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Accepted->Visible) { // Accepted ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Accepted->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $CCEStudents->Accepted->CellAttributes() ?>><span id="el_Accepted">
<div id="tp_x_Accepted" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Accepted" id="x_Accepted" title="<?php echo $CCEStudents->Accepted->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->Accepted->EditAttributes() ?>></label></div>
<div id="dsl_x_Accepted" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->Accepted->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->Accepted->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Accepted" id="x_Accepted" title="<?php echo $CCEStudents->Accepted->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->Accepted->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $CCEStudents->Accepted->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Archived->Visible) { // Archived ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Archived->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $CCEStudents->Archived->CellAttributes() ?>><span id="el_Archived">
<div id="tp_x_Archived" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Archived" id="x_Archived" title="<?php echo $CCEStudents->Archived->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->Archived->EditAttributes() ?>></label></div>
<div id="dsl_x_Archived" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->Archived->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->Archived->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Archived" id="x_Archived" title="<?php echo $CCEStudents->Archived->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->Archived->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $CCEStudents->Archived->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Achieved->Visible) { // Achieved ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Achieved->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $CCEStudents->Achieved->CellAttributes() ?>><span id="el_Achieved">
<div id="tp_x_Achieved" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Achieved" id="x_Achieved" title="<?php echo $CCEStudents->Achieved->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->Achieved->EditAttributes() ?>></label></div>
<div id="dsl_x_Achieved" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->Achieved->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->Achieved->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Achieved" id="x_Achieved" title="<?php echo $CCEStudents->Achieved->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->Achieved->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $CCEStudents->Achieved->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ReasonForLeaving->Visible) { // ReasonForLeaving ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ReasonForLeaving->FldCaption() ?></td>
<td<?php echo $CCEStudents->ReasonForLeaving->CellAttributes() ?>><span id="el_ReasonForLeaving">
<textarea name="x_ReasonForLeaving" id="x_ReasonForLeaving" title="<?php echo $CCEStudents->ReasonForLeaving->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->ReasonForLeaving->EditAttributes() ?>><?php echo $CCEStudents->ReasonForLeaving->EditValue ?></textarea>
</span><?php echo $CCEStudents->ReasonForLeaving->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ReasonNotAccepted->Visible) { // ReasonNotAccepted ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ReasonNotAccepted->FldCaption() ?></td>
<td<?php echo $CCEStudents->ReasonNotAccepted->CellAttributes() ?>><span id="el_ReasonNotAccepted">
<textarea name="x_ReasonNotAccepted" id="x_ReasonNotAccepted" title="<?php echo $CCEStudents->ReasonNotAccepted->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->ReasonNotAccepted->EditAttributes() ?>><?php echo $CCEStudents->ReasonNotAccepted->EditValue ?></textarea>
</span><?php echo $CCEStudents->ReasonNotAccepted->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ResultComments->Visible) { // ResultComments ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResultComments->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResultComments->CellAttributes() ?>><span id="el_ResultComments">
<textarea name="x_ResultComments" id="x_ResultComments" title="<?php echo $CCEStudents->ResultComments->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->ResultComments->EditAttributes() ?>><?php echo $CCEStudents->ResultComments->EditValue ?></textarea>
</span><?php echo $CCEStudents->ResultComments->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ResultStatus->Visible) { // ResultStatus ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResultStatus->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResultStatus->CellAttributes() ?>><span id="el_ResultStatus">
<div id="tp_x_ResultStatus" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_ResultStatus" id="x_ResultStatus" title="<?php echo $CCEStudents->ResultStatus->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->ResultStatus->EditAttributes() ?>></label></div>
<div id="dsl_x_ResultStatus" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->ResultStatus->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->ResultStatus->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_ResultStatus" id="x_ResultStatus" title="<?php echo $CCEStudents->ResultStatus->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->ResultStatus->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $CCEStudents->ResultStatus->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Cancelled->Visible) { // Cancelled ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Cancelled->FldCaption() ?></td>
<td<?php echo $CCEStudents->Cancelled->CellAttributes() ?>><span id="el_Cancelled">
<div id="tp_x_Cancelled" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Cancelled" id="x_Cancelled" title="<?php echo $CCEStudents->Cancelled->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->Cancelled->EditAttributes() ?>></label></div>
<div id="dsl_x_Cancelled" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->Cancelled->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->Cancelled->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Cancelled" id="x_Cancelled" title="<?php echo $CCEStudents->Cancelled->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->Cancelled->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $CCEStudents->Cancelled->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->CancelledReason->Visible) { // CancelledReason ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CancelledReason->FldCaption() ?></td>
<td<?php echo $CCEStudents->CancelledReason->CellAttributes() ?>><span id="el_CancelledReason">
<input type="text" name="x_CancelledReason" id="x_CancelledReason" title="<?php echo $CCEStudents->CancelledReason->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->CancelledReason->EditValue ?>"<?php echo $CCEStudents->CancelledReason->EditAttributes() ?>>
</span><?php echo $CCEStudents->CancelledReason->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Trimester1Report->Visible) { // Trimester1Report ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Trimester1Report->FldCaption() ?></td>
<td<?php echo $CCEStudents->Trimester1Report->CellAttributes() ?>><span id="el_Trimester1Report">
<input type="file" name="x_Trimester1Report" id="x_Trimester1Report" title="<?php echo $CCEStudents->Trimester1Report->FldTitle() ?>" size="30"<?php echo $CCEStudents->Trimester1Report->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->Trimester1Report->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Trimester2Report->Visible) { // Trimester2Report ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Trimester2Report->FldCaption() ?></td>
<td<?php echo $CCEStudents->Trimester2Report->CellAttributes() ?>><span id="el_Trimester2Report">
<input type="file" name="x_Trimester2Report" id="x_Trimester2Report" title="<?php echo $CCEStudents->Trimester2Report->FldTitle() ?>" size="30"<?php echo $CCEStudents->Trimester2Report->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->Trimester2Report->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Trimester3Report->Visible) { // Trimester3Report ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Trimester3Report->FldCaption() ?></td>
<td<?php echo $CCEStudents->Trimester3Report->CellAttributes() ?>><span id="el_Trimester3Report">
<input type="file" name="x_Trimester3Report" id="x_Trimester3Report" title="<?php echo $CCEStudents->Trimester3Report->FldTitle() ?>" size="30"<?php echo $CCEStudents->Trimester3Report->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->Trimester3Report->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ExamResultLetter->Visible) { // ExamResultLetter ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ExamResultLetter->FldCaption() ?></td>
<td<?php echo $CCEStudents->ExamResultLetter->CellAttributes() ?>><span id="el_ExamResultLetter">
<input type="file" name="x_ExamResultLetter" id="x_ExamResultLetter" title="<?php echo $CCEStudents->ExamResultLetter->FldTitle() ?>" size="30"<?php echo $CCEStudents->ExamResultLetter->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->ExamResultLetter->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->SupplementalExamLetter->Visible) { // SupplementalExamLetter ?>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->SupplementalExamLetter->FldCaption() ?></td>
<td<?php echo $CCEStudents->SupplementalExamLetter->CellAttributes() ?>><span id="el_SupplementalExamLetter">
<input type="file" name="x_SupplementalExamLetter" id="x_SupplementalExamLetter" title="<?php echo $CCEStudents->SupplementalExamLetter->FldTitle() ?>" size="30"<?php echo $CCEStudents->SupplementalExamLetter->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->SupplementalExamLetter->CustomMsg ?></td>
</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<p>
<input type="submit" name="btnAction" id="btnAction" value="<?php echo ew_BtnCaption($Language->Phrase("AddBtn")) ?>">
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
<?php include "footer.php" ?>
<?php
$CCEStudents_add->Page_Terminate();
?>
<?php
//
// Page class
//
class cCCEStudents_add {
// Page ID
var $PageID = 'add';
// Table name
var $TableName = 'CCEStudents';
// Page object name
var $PageObjName = 'CCEStudents_add';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $CCEStudents;
if ($CCEStudents->UseTokenInUrl) $PageUrl .= "t=" . $CCEStudents->TableVar . "&"; // Add page token
return $PageUrl;
}
// Page URLs
var $AddUrl;
var $EditUrl;
var $CopyUrl;
var $DeleteUrl;
var $ViewUrl;
var $ListUrl;
// Export URLs
var $ExportPrintUrl;
var $ExportHtmlUrl;
var $ExportExcelUrl;
var $ExportWordUrl;
var $ExportXmlUrl;
var $ExportCsvUrl;
// Update URLs
var $InlineAddUrl;
var $InlineCopyUrl;
var $InlineEditUrl;
var $GridAddUrl;
var $GridEditUrl;
var $MultiDeleteUrl;
var $MultiUpdateUrl;
// Message
function getMessage() {
return @$_SESSION[EW_SESSION_MESSAGE];
}
function setMessage($v) {
if (@$_SESSION[EW_SESSION_MESSAGE] <> "") { // Append
$_SESSION[EW_SESSION_MESSAGE] .= "<br>" . $v;
} else {
$_SESSION[EW_SESSION_MESSAGE] = $v;
}
}
// Show message
function ShowMessage() {
$sMessage = $this->getMessage();
$this->Message_Showing($sMessage);
if ($sMessage <> "") { // Message in Session, display
echo "<p><span class=\"ewMessage\">" . $sMessage . "</span></p>";
$_SESSION[EW_SESSION_MESSAGE] = ""; // Clear message in Session
}
}
// Validate page request
function IsPageRequest() {
global $objForm, $CCEStudents;
if ($CCEStudents->UseTokenInUrl) {
if ($objForm)
return ($CCEStudents->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($CCEStudents->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function __construct() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (CCEStudents)
$GLOBALS["CCEStudents"] = new cCCEStudents();
// Table object (adminusers)
$GLOBALS['adminusers'] = new cadminusers();
// Page ID
if (!defined("EW_PAGE_ID"))
define("EW_PAGE_ID", 'add', TRUE);
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME"))
define("EW_TABLE_NAME", 'CCEStudents', TRUE);
// Start timer
$GLOBALS["gsTimer"] = new cTimer();
// Open connection
$conn = ew_Connect();
}
//
// Page_Init
//
function Page_Init() {
global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
global $CCEStudents;
// User profile
$UserProfile = new cUserProfile();
$UserProfile->LoadProfile(@$_SESSION[EW_SESSION_USER_PROFILE]);
// Security
$Security = new cAdvancedSecurity();
if (IsPasswordExpired())
$this->Page_Terminate("changepwd.php");
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->CanAdd()) {
$Security->SaveLastUrl();
$this->Page_Terminate("CCEStudentslist.php");
}
$Security->UserID_Loading();
if ($Security->IsLoggedIn()) $Security->LoadUserID();
$Security->UserID_Loaded();
// Create form object
$objForm = new cFormObj();
// 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 $sDbMasterFilter = "";
var $sDbDetailFilter = "";
var $lPriv = 0;
//
// Page main
//
function Page_Main() {
global $objForm, $Language, $gsFormError, $CCEStudents;
// Load key values from QueryString
$bCopy = TRUE;
if (@$_GET["CCEStudentID"] != "") {
$CCEStudents->CCEStudentID->setQueryStringValue($_GET["CCEStudentID"]);
} else {
$bCopy = FALSE;
}
// Process form if post back
if (@$_POST["a_add"] <> "") {
$CCEStudents->CurrentAction = $_POST["a_add"]; // Get form action
$this->GetUploadFiles(); // Get upload files
$this->LoadFormValues(); // Load form values
// Validate form
if (!$this->ValidateForm()) {
$CCEStudents->CurrentAction = "I"; // Form error, reset action
$this->setMessage($gsFormError);
}
} else { // Not post back
if ($bCopy) {
$CCEStudents->CurrentAction = "C"; // Copy record
} else {
$CCEStudents->CurrentAction = "I"; // Display blank record
$this->LoadDefaultValues(); // Load default values
}
}
// Perform action based on action code
switch ($CCEStudents->CurrentAction) {
case "I": // Blank record, no action required
break;
case "C": // Copy an existing record
if (!$this->LoadRow()) { // Load record based on key
$this->setMessage($Language->Phrase("NoRecord")); // No record found
$this->Page_Terminate("CCEStudentslist.php"); // No matching record, return to list
}
break;
case "A": // ' Add new record
$CCEStudents->SendEmail = TRUE; // Send email on add success
if ($this->AddRow()) { // Add successful
$this->setMessage($Language->Phrase("AddSuccess")); // Set up success message
$sReturnUrl = $CCEStudents->getReturnUrl();
if (ew_GetPageName($sReturnUrl) == "CCEStudentsview.php")
$sReturnUrl = $CCEStudents->ViewUrl(); // View paging, return to view page with keyurl directly
$this->Page_Terminate($sReturnUrl); // Clean up and return
} else {
$this->RestoreFormValues(); // Add failed, restore form values
}
}
// Render row based on row type
$CCEStudents->RowType = EW_ROWTYPE_ADD; // Render add type
// Render row
$this->RenderRow();
}
// Get upload files
function GetUploadFiles() {
global $objForm, $CCEStudents;
// Get upload data
if ($CCEStudents->Trimester1Report->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->Trimester1Report->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($CCEStudents->Trimester2Report->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->Trimester2Report->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($CCEStudents->Trimester3Report->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->Trimester3Report->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($CCEStudents->ExamResultLetter->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->ExamResultLetter->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($CCEStudents->SupplementalExamLetter->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->SupplementalExamLetter->Upload->Message;
$this->Page_Terminate();
exit();
}
}
// Load default values
function LoadDefaultValues() {
global $CCEStudents;
$CCEStudents->ECSARegistered->CurrentValue = "n";
$CCEStudents->OtherStatutoryBodyRegistered->CurrentValue = 0;
$CCEStudents->BlockAccess->CurrentValue = "n";
$CCEStudents->Accepted->CurrentValue = 1;
$CCEStudents->Archived->CurrentValue = 0;
$CCEStudents->Achieved->CurrentValue = 0;
$CCEStudents->Cancelled->CurrentValue = 0;
$CCEStudents->Trimester1Report->CurrentValue = NULL; // Clear file related field
$CCEStudents->Trimester2Report->CurrentValue = NULL; // Clear file related field
$CCEStudents->Trimester3Report->CurrentValue = NULL; // Clear file related field
$CCEStudents->ExamResultLetter->CurrentValue = NULL; // Clear file related field
$CCEStudents->SupplementalExamLetter->CurrentValue = NULL; // Clear file related field
}
// Load form values
function LoadFormValues() {
// Load from form
global $objForm, $CCEStudents;
$CCEStudents->KnownAs->setFormValue($objForm->GetValue("x_KnownAs"));
$CCEStudents->FirstName->setFormValue($objForm->GetValue("x_FirstName"));
$CCEStudents->Surname->setFormValue($objForm->GetValue("x_Surname"));
$CCEStudents->Organisation->setFormValue($objForm->GetValue("x_Organisation"));
$CCEStudents->OrganisationType->setFormValue($objForm->GetValue("x_OrganisationType"));
$CCEStudents->Designation->setFormValue($objForm->GetValue("x_Designation"));
$CCEStudents->Department->setFormValue($objForm->GetValue("x_Department"));
$CCEStudents->StudentNumber->setFormValue($objForm->GetValue("x_StudentNumber"));
$CCEStudents->CCEFacilitatorID->setFormValue($objForm->GetValue("x_CCEFacilitatorID"));
$CCEStudents->Project->setFormValue($objForm->GetValue("x_Project"));
$CCEStudents->ProjectDiscipline->setFormValue($objForm->GetValue("x_ProjectDiscipline"));
$CCEStudents->ProjectCode->setFormValue($objForm->GetValue("x_ProjectCode"));
$CCEStudents->IDNumber->setFormValue($objForm->GetValue("x_IDNumber"));
$CCEStudents->ECSARegistered->setFormValue($objForm->GetValue("x_ECSARegistered"));
$CCEStudents->ECSACategory->setFormValue($objForm->GetValue("x_ECSACategory"));
$CCEStudents->ECSANumber->setFormValue($objForm->GetValue("x_ECSANumber"));
$CCEStudents->OtherStatutoryBodyRegistered->setFormValue($objForm->GetValue("x_OtherStatutoryBodyRegistered"));
$CCEStudents->OtherStatutoryBodyName->setFormValue($objForm->GetValue("x_OtherStatutoryBodyName"));
$CCEStudents->OtherStatutoryBodyNumber->setFormValue($objForm->GetValue("x_OtherStatutoryBodyNumber"));
$CCEStudents->OtherStatutoryBodyCategory->setFormValue($objForm->GetValue("x_OtherStatutoryBodyCategory"));
$CCEStudents->CESAMemberFirm->setFormValue($objForm->GetValue("x_CESAMemberFirm"));
$CCEStudents->OtherCEFirms->setFormValue($objForm->GetValue("x_OtherCEFirms"));
$CCEStudents->Age->setFormValue($objForm->GetValue("x_Age"));
$CCEStudents->HighestQual->setFormValue($objForm->GetValue("x_HighestQual"));
$CCEStudents->AreaDiscipline->setFormValue($objForm->GetValue("x_AreaDiscipline"));
$CCEStudents->Telephone->setFormValue($objForm->GetValue("x_Telephone"));
$CCEStudents->Cellphone->setFormValue($objForm->GetValue("x_Cellphone"));
$CCEStudents->EmailAddress->setFormValue($objForm->GetValue("x_EmailAddress"));
$CCEStudents->EmailAddress2->setFormValue($objForm->GetValue("x_EmailAddress2"));
$CCEStudents->HomeAddress->setFormValue($objForm->GetValue("x_HomeAddress"));
$CCEStudents->WorkAddress->setFormValue($objForm->GetValue("x_WorkAddress"));
$CCEStudents->PostalAddress->setFormValue($objForm->GetValue("x_PostalAddress"));
$CCEStudents->CESAAccountNo->setFormValue($objForm->GetValue("x_CESAAccountNo"));
$CCEStudents->VATNo->setFormValue($objForm->GetValue("x_VATNo"));
$CCEStudents->DietaryRequirements->setFormValue($objForm->GetValue("x_DietaryRequirements"));
$CCEStudents->OrderNo->setFormValue($objForm->GetValue("x_OrderNo"));
$CCEStudents->BookedByName->setFormValue($objForm->GetValue("x_BookedByName"));
$CCEStudents->BookedByDesignation->setFormValue($objForm->GetValue("x_BookedByDesignation"));
$CCEStudents->BookedByTelNo->setFormValue($objForm->GetValue("x_BookedByTelNo"));
$CCEStudents->BookedByFaxNo->setFormValue($objForm->GetValue("x_BookedByFaxNo"));
$CCEStudents->BookedByCellNo->setFormValue($objForm->GetValue("x_BookedByCellNo"));
$CCEStudents->BookedByEmail->setFormValue($objForm->GetValue("x_BookedByEmail"));
$CCEStudents->WebUsername->setFormValue($objForm->GetValue("x_WebUsername"));
$CCEStudents->WebPassword->setFormValue($objForm->GetValue("x_WebPassword"));
$CCEStudents->MentorFirstName->setFormValue($objForm->GetValue("x_MentorFirstName"));
$CCEStudents->MentorSurname->setFormValue($objForm->GetValue("x_MentorSurname"));
$CCEStudents->MentorCompany->setFormValue($objForm->GetValue("x_MentorCompany"));
$CCEStudents->MentorDesig->setFormValue($objForm->GetValue("x_MentorDesig"));
$CCEStudents->MentorTel->setFormValue($objForm->GetValue("x_MentorTel"));
$CCEStudents->MentorCell->setFormValue($objForm->GetValue("x_MentorCell"));
$CCEStudents->MentorEmail->setFormValue($objForm->GetValue("x_MentorEmail"));
$CCEStudents->HRManagerName->setFormValue($objForm->GetValue("x_HRManagerName"));
$CCEStudents->HRManagerDesignation->setFormValue($objForm->GetValue("x_HRManagerDesignation"));
$CCEStudents->HRManagerTelNo->setFormValue($objForm->GetValue("x_HRManagerTelNo"));
$CCEStudents->HRManagerCellNo->setFormValue($objForm->GetValue("x_HRManagerCellNo"));
$CCEStudents->HRManagerEmail->setFormValue($objForm->GetValue("x_HRManagerEmail"));
$CCEStudents->LengthEmploy->setFormValue($objForm->GetValue("x_LengthEmploy"));
$CCEStudents->ResponsiblePayment->setFormValue($objForm->GetValue("x_ResponsiblePayment"));
$CCEStudents->BlockAccess->setFormValue($objForm->GetValue("x_BlockAccess"));
$CCEStudents->Accepted->setFormValue($objForm->GetValue("x_Accepted"));
$CCEStudents->Archived->setFormValue($objForm->GetValue("x_Archived"));
$CCEStudents->Achieved->setFormValue($objForm->GetValue("x_Achieved"));
$CCEStudents->ReasonForLeaving->setFormValue($objForm->GetValue("x_ReasonForLeaving"));
$CCEStudents->ReasonNotAccepted->setFormValue($objForm->GetValue("x_ReasonNotAccepted"));
$CCEStudents->ResultComments->setFormValue($objForm->GetValue("x_ResultComments"));
$CCEStudents->ResultStatus->setFormValue($objForm->GetValue("x_ResultStatus"));
$CCEStudents->Cancelled->setFormValue($objForm->GetValue("x_Cancelled"));
$CCEStudents->CancelledReason->setFormValue($objForm->GetValue("x_CancelledReason"));
$CCEStudents->CCEStudentID->setFormValue($objForm->GetValue("x_CCEStudentID"));
}
// Restore form values
function RestoreFormValues() {
global $objForm, $CCEStudents;
$CCEStudents->CCEStudentID->CurrentValue = $CCEStudents->CCEStudentID->FormValue;
$CCEStudents->KnownAs->CurrentValue = $CCEStudents->KnownAs->FormValue;
$CCEStudents->FirstName->CurrentValue = $CCEStudents->FirstName->FormValue;
$CCEStudents->Surname->CurrentValue = $CCEStudents->Surname->FormValue;
$CCEStudents->Organisation->CurrentValue = $CCEStudents->Organisation->FormValue;
$CCEStudents->OrganisationType->CurrentValue = $CCEStudents->OrganisationType->FormValue;
$CCEStudents->Designation->CurrentValue = $CCEStudents->Designation->FormValue;
$CCEStudents->Department->CurrentValue = $CCEStudents->Department->FormValue;
$CCEStudents->StudentNumber->CurrentValue = $CCEStudents->StudentNumber->FormValue;
$CCEStudents->CCEFacilitatorID->CurrentValue = $CCEStudents->CCEFacilitatorID->FormValue;
$CCEStudents->Project->CurrentValue = $CCEStudents->Project->FormValue;
$CCEStudents->ProjectDiscipline->CurrentValue = $CCEStudents->ProjectDiscipline->FormValue;
$CCEStudents->ProjectCode->CurrentValue = $CCEStudents->ProjectCode->FormValue;
$CCEStudents->IDNumber->CurrentValue = $CCEStudents->IDNumber->FormValue;
$CCEStudents->ECSARegistered->CurrentValue = $CCEStudents->ECSARegistered->FormValue;
$CCEStudents->ECSACategory->CurrentValue = $CCEStudents->ECSACategory->FormValue;
$CCEStudents->ECSANumber->CurrentValue = $CCEStudents->ECSANumber->FormValue;
$CCEStudents->OtherStatutoryBodyRegistered->CurrentValue = $CCEStudents->OtherStatutoryBodyRegistered->FormValue;
$CCEStudents->OtherStatutoryBodyName->CurrentValue = $CCEStudents->OtherStatutoryBodyName->FormValue;
$CCEStudents->OtherStatutoryBodyNumber->CurrentValue = $CCEStudents->OtherStatutoryBodyNumber->FormValue;
$CCEStudents->OtherStatutoryBodyCategory->CurrentValue = $CCEStudents->OtherStatutoryBodyCategory->FormValue;
$CCEStudents->CESAMemberFirm->CurrentValue = $CCEStudents->CESAMemberFirm->FormValue;
$CCEStudents->OtherCEFirms->CurrentValue = $CCEStudents->OtherCEFirms->FormValue;
$CCEStudents->Age->CurrentValue = $CCEStudents->Age->FormValue;
$CCEStudents->HighestQual->CurrentValue = $CCEStudents->HighestQual->FormValue;
$CCEStudents->AreaDiscipline->CurrentValue = $CCEStudents->AreaDiscipline->FormValue;
$CCEStudents->Telephone->CurrentValue = $CCEStudents->Telephone->FormValue;
$CCEStudents->Cellphone->CurrentValue = $CCEStudents->Cellphone->FormValue;
$CCEStudents->EmailAddress->CurrentValue = $CCEStudents->EmailAddress->FormValue;
$CCEStudents->EmailAddress2->CurrentValue = $CCEStudents->EmailAddress2->FormValue;
$CCEStudents->HomeAddress->CurrentValue = $CCEStudents->HomeAddress->FormValue;
$CCEStudents->WorkAddress->CurrentValue = $CCEStudents->WorkAddress->FormValue;
$CCEStudents->PostalAddress->CurrentValue = $CCEStudents->PostalAddress->FormValue;
$CCEStudents->CESAAccountNo->CurrentValue = $CCEStudents->CESAAccountNo->FormValue;
$CCEStudents->VATNo->CurrentValue = $CCEStudents->VATNo->FormValue;
$CCEStudents->DietaryRequirements->CurrentValue = $CCEStudents->DietaryRequirements->FormValue;
$CCEStudents->OrderNo->CurrentValue = $CCEStudents->OrderNo->FormValue;
$CCEStudents->BookedByName->CurrentValue = $CCEStudents->BookedByName->FormValue;
$CCEStudents->BookedByDesignation->CurrentValue = $CCEStudents->BookedByDesignation->FormValue;
$CCEStudents->BookedByTelNo->CurrentValue = $CCEStudents->BookedByTelNo->FormValue;
$CCEStudents->BookedByFaxNo->CurrentValue = $CCEStudents->BookedByFaxNo->FormValue;
$CCEStudents->BookedByCellNo->CurrentValue = $CCEStudents->BookedByCellNo->FormValue;
$CCEStudents->BookedByEmail->CurrentValue = $CCEStudents->BookedByEmail->FormValue;
$CCEStudents->WebUsername->CurrentValue = $CCEStudents->WebUsername->FormValue;
$CCEStudents->WebPassword->CurrentValue = $CCEStudents->WebPassword->FormValue;
$CCEStudents->MentorFirstName->CurrentValue = $CCEStudents->MentorFirstName->FormValue;
$CCEStudents->MentorSurname->CurrentValue = $CCEStudents->MentorSurname->FormValue;
$CCEStudents->MentorCompany->CurrentValue = $CCEStudents->MentorCompany->FormValue;
$CCEStudents->MentorDesig->CurrentValue = $CCEStudents->MentorDesig->FormValue;
$CCEStudents->MentorTel->CurrentValue = $CCEStudents->MentorTel->FormValue;
$CCEStudents->MentorCell->CurrentValue = $CCEStudents->MentorCell->FormValue;
$CCEStudents->MentorEmail->CurrentValue = $CCEStudents->MentorEmail->FormValue;
$CCEStudents->HRManagerName->CurrentValue = $CCEStudents->HRManagerName->FormValue;
$CCEStudents->HRManagerDesignation->CurrentValue = $CCEStudents->HRManagerDesignation->FormValue;
$CCEStudents->HRManagerTelNo->CurrentValue = $CCEStudents->HRManagerTelNo->FormValue;
$CCEStudents->HRManagerCellNo->CurrentValue = $CCEStudents->HRManagerCellNo->FormValue;
$CCEStudents->HRManagerEmail->CurrentValue = $CCEStudents->HRManagerEmail->FormValue;
$CCEStudents->LengthEmploy->CurrentValue = $CCEStudents->LengthEmploy->FormValue;
$CCEStudents->ResponsiblePayment->CurrentValue = $CCEStudents->ResponsiblePayment->FormValue;
$CCEStudents->BlockAccess->CurrentValue = $CCEStudents->BlockAccess->FormValue;
$CCEStudents->Accepted->CurrentValue = $CCEStudents->Accepted->FormValue;
$CCEStudents->Archived->CurrentValue = $CCEStudents->Archived->FormValue;
$CCEStudents->Achieved->CurrentValue = $CCEStudents->Achieved->FormValue;
$CCEStudents->ReasonForLeaving->CurrentValue = $CCEStudents->ReasonForLeaving->FormValue;
$CCEStudents->ReasonNotAccepted->CurrentValue = $CCEStudents->ReasonNotAccepted->FormValue;
$CCEStudents->ResultComments->CurrentValue = $CCEStudents->ResultComments->FormValue;
$CCEStudents->ResultStatus->CurrentValue = $CCEStudents->ResultStatus->FormValue;
$CCEStudents->Cancelled->CurrentValue = $CCEStudents->Cancelled->FormValue;
$CCEStudents->CancelledReason->CurrentValue = $CCEStudents->CancelledReason->FormValue;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $CCEStudents;
$sFilter = $CCEStudents->KeyFilter();
// Call Row Selecting event
$CCEStudents->Row_Selecting($sFilter);
// Load SQL based on filter
$CCEStudents->CurrentFilter = $sFilter;
$sSql = $CCEStudents->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$CCEStudents->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $CCEStudents;
$CCEStudents->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
$CCEStudents->KnownAs->setDbValue($rs->fields('KnownAs'));
$CCEStudents->FirstName->setDbValue($rs->fields('FirstName'));
$CCEStudents->Surname->setDbValue($rs->fields('Surname'));
$CCEStudents->Organisation->setDbValue($rs->fields('Organisation'));
$CCEStudents->OrganisationType->setDbValue($rs->fields('OrganisationType'));
$CCEStudents->Designation->setDbValue($rs->fields('Designation'));
$CCEStudents->Department->setDbValue($rs->fields('Department'));
$CCEStudents->StudentNumber->setDbValue($rs->fields('StudentNumber'));
$CCEStudents->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
$CCEStudents->Project->setDbValue($rs->fields('Project'));
$CCEStudents->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
$CCEStudents->ProjectCode->setDbValue($rs->fields('ProjectCode'));
$CCEStudents->IDNumber->setDbValue($rs->fields('IDNumber'));
$CCEStudents->ECSARegistered->setDbValue($rs->fields('ECSARegistered'));
$CCEStudents->ECSACategory->setDbValue($rs->fields('ECSACategory'));
$CCEStudents->ECSANumber->setDbValue($rs->fields('ECSANumber'));
$CCEStudents->OtherStatutoryBodyRegistered->setDbValue($rs->fields('OtherStatutoryBodyRegistered'));
$CCEStudents->OtherStatutoryBodyName->setDbValue($rs->fields('OtherStatutoryBodyName'));
$CCEStudents->OtherStatutoryBodyNumber->setDbValue($rs->fields('OtherStatutoryBodyNumber'));
$CCEStudents->OtherStatutoryBodyCategory->setDbValue($rs->fields('OtherStatutoryBodyCategory'));
$CCEStudents->CESAMemberFirm->setDbValue($rs->fields('CESAMemberFirm'));
$CCEStudents->OtherCEFirms->setDbValue($rs->fields('OtherCEFirms'));
$CCEStudents->Age->setDbValue($rs->fields('Age'));
$CCEStudents->HighestQual->setDbValue($rs->fields('HighestQual'));
$CCEStudents->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
$CCEStudents->Telephone->setDbValue($rs->fields('Telephone'));
$CCEStudents->Cellphone->setDbValue($rs->fields('Cellphone'));
$CCEStudents->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$CCEStudents->EmailAddress2->setDbValue($rs->fields('EmailAddress2'));
$CCEStudents->HomeAddress->setDbValue($rs->fields('HomeAddress'));
$CCEStudents->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$CCEStudents->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$CCEStudents->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
$CCEStudents->VATNo->setDbValue($rs->fields('VATNo'));
$CCEStudents->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
$CCEStudents->OrderNo->setDbValue($rs->fields('OrderNo'));
$CCEStudents->BookedByName->setDbValue($rs->fields('BookedByName'));
$CCEStudents->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
$CCEStudents->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
$CCEStudents->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
$CCEStudents->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
$CCEStudents->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
$CCEStudents->WebUsername->setDbValue($rs->fields('WebUsername'));
$CCEStudents->WebPassword->setDbValue($rs->fields('WebPassword'));
$CCEStudents->MentorFirstName->setDbValue($rs->fields('MentorFirstName'));
$CCEStudents->MentorSurname->setDbValue($rs->fields('MentorSurname'));
$CCEStudents->MentorCompany->setDbValue($rs->fields('MentorCompany'));
$CCEStudents->MentorDesig->setDbValue($rs->fields('MentorDesig'));
$CCEStudents->MentorTel->setDbValue($rs->fields('MentorTel'));
$CCEStudents->MentorCell->setDbValue($rs->fields('MentorCell'));
$CCEStudents->MentorEmail->setDbValue($rs->fields('MentorEmail'));
$CCEStudents->HRManagerName->setDbValue($rs->fields('HRManagerName'));
$CCEStudents->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
$CCEStudents->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
$CCEStudents->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
$CCEStudents->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
$CCEStudents->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
$CCEStudents->ResponsiblePayment->setDbValue($rs->fields('ResponsiblePayment'));
$CCEStudents->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$CCEStudents->Accepted->setDbValue($rs->fields('Accepted'));
$CCEStudents->Archived->setDbValue($rs->fields('Archived'));
$CCEStudents->Achieved->setDbValue($rs->fields('Achieved'));
$CCEStudents->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
$CCEStudents->ReasonNotAccepted->setDbValue($rs->fields('ReasonNotAccepted'));
$CCEStudents->ResultComments->setDbValue($rs->fields('ResultComments'));
$CCEStudents->ResultStatus->setDbValue($rs->fields('ResultStatus'));
$CCEStudents->Cancelled->setDbValue($rs->fields('Cancelled'));
$CCEStudents->CancelledReason->setDbValue($rs->fields('CancelledReason'));
$CCEStudents->CVFile->Upload->DbValue = $rs->fields('CVFile');
$CCEStudents->Title->setDbValue($rs->fields('Title'));
$CCEStudents->QualCertificate1->setDbValue($rs->fields('QualCertificate1'));
$CCEStudents->QualCertificate2->setDbValue($rs->fields('QualCertificate2'));
$CCEStudents->QualCertificate3->setDbValue($rs->fields('QualCertificate3'));
$CCEStudents->MemorandumFile->setDbValue($rs->fields('MemorandumFile'));
$CCEStudents->AgreementFile->setDbValue($rs->fields('AgreementFile'));
$CCEStudents->ResultLetter->setDbValue($rs->fields('ResultLetter'));
$CCEStudents->IDFile->setDbValue($rs->fields('IDFile'));
$CCEStudents->PhotoFile->setDbValue($rs->fields('PhotoFile'));
$CCEStudents->SABTACOMemberFirm->setDbValue($rs->fields('SABTACOMemberFirm'));
$CCEStudents->PreferredCourierAddress->setDbValue($rs->fields('PreferredCourierAddress'));
$CCEStudents->MotivationalLetter->setDbValue($rs->fields('MotivationalLetter'));
$CCEStudents->MentorName->setDbValue($rs->fields('MentorName'));
$CCEStudents->ModulesEnrolled->setDbValue($rs->fields('ModulesEnrolled'));
$CCEStudents->Trimester1Report->Upload->DbValue = $rs->fields('Trimester1Report');
$CCEStudents->Trimester2Report->Upload->DbValue = $rs->fields('Trimester2Report');
$CCEStudents->Trimester3Report->Upload->DbValue = $rs->fields('Trimester3Report');
$CCEStudents->ExamResultLetter->Upload->DbValue = $rs->fields('ExamResultLetter');
$CCEStudents->SupplementalExamLetter->Upload->DbValue = $rs->fields('SupplementalExamLetter');
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $CCEStudents;
// Initialize URLs
// Call Row_Rendering event
$CCEStudents->Row_Rendering();
// Common render codes for all row types
// KnownAs
$CCEStudents->KnownAs->CellCssStyle = ""; $CCEStudents->KnownAs->CellCssClass = "";
$CCEStudents->KnownAs->CellAttrs = array(); $CCEStudents->KnownAs->ViewAttrs = array(); $CCEStudents->KnownAs->EditAttrs = array();
// FirstName
$CCEStudents->FirstName->CellCssStyle = ""; $CCEStudents->FirstName->CellCssClass = "";
$CCEStudents->FirstName->CellAttrs = array(); $CCEStudents->FirstName->ViewAttrs = array(); $CCEStudents->FirstName->EditAttrs = array();
// Surname
$CCEStudents->Surname->CellCssStyle = ""; $CCEStudents->Surname->CellCssClass = "";
$CCEStudents->Surname->CellAttrs = array(); $CCEStudents->Surname->ViewAttrs = array(); $CCEStudents->Surname->EditAttrs = array();
// Organisation
$CCEStudents->Organisation->CellCssStyle = ""; $CCEStudents->Organisation->CellCssClass = "";
$CCEStudents->Organisation->CellAttrs = array(); $CCEStudents->Organisation->ViewAttrs = array(); $CCEStudents->Organisation->EditAttrs = array();
// OrganisationType
$CCEStudents->OrganisationType->CellCssStyle = ""; $CCEStudents->OrganisationType->CellCssClass = "";
$CCEStudents->OrganisationType->CellAttrs = array(); $CCEStudents->OrganisationType->ViewAttrs = array(); $CCEStudents->OrganisationType->EditAttrs = array();
// Designation
$CCEStudents->Designation->CellCssStyle = ""; $CCEStudents->Designation->CellCssClass = "";
$CCEStudents->Designation->CellAttrs = array(); $CCEStudents->Designation->ViewAttrs = array(); $CCEStudents->Designation->EditAttrs = array();
// Department
$CCEStudents->Department->CellCssStyle = ""; $CCEStudents->Department->CellCssClass = "";
$CCEStudents->Department->CellAttrs = array(); $CCEStudents->Department->ViewAttrs = array(); $CCEStudents->Department->EditAttrs = array();
// StudentNumber
$CCEStudents->StudentNumber->CellCssStyle = ""; $CCEStudents->StudentNumber->CellCssClass = "";
$CCEStudents->StudentNumber->CellAttrs = array(); $CCEStudents->StudentNumber->ViewAttrs = array(); $CCEStudents->StudentNumber->EditAttrs = array();
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->CellCssStyle = ""; $CCEStudents->CCEFacilitatorID->CellCssClass = "";
$CCEStudents->CCEFacilitatorID->CellAttrs = array(); $CCEStudents->CCEFacilitatorID->ViewAttrs = array(); $CCEStudents->CCEFacilitatorID->EditAttrs = array();
// Project
$CCEStudents->Project->CellCssStyle = ""; $CCEStudents->Project->CellCssClass = "";
$CCEStudents->Project->CellAttrs = array(); $CCEStudents->Project->ViewAttrs = array(); $CCEStudents->Project->EditAttrs = array();
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->CellCssStyle = ""; $CCEStudents->ProjectDiscipline->CellCssClass = "";
$CCEStudents->ProjectDiscipline->CellAttrs = array(); $CCEStudents->ProjectDiscipline->ViewAttrs = array(); $CCEStudents->ProjectDiscipline->EditAttrs = array();
// ProjectCode
$CCEStudents->ProjectCode->CellCssStyle = ""; $CCEStudents->ProjectCode->CellCssClass = "";
$CCEStudents->ProjectCode->CellAttrs = array(); $CCEStudents->ProjectCode->ViewAttrs = array(); $CCEStudents->ProjectCode->EditAttrs = array();
// IDNumber
$CCEStudents->IDNumber->CellCssStyle = ""; $CCEStudents->IDNumber->CellCssClass = "";
$CCEStudents->IDNumber->CellAttrs = array(); $CCEStudents->IDNumber->ViewAttrs = array(); $CCEStudents->IDNumber->EditAttrs = array();
// ECSARegistered
$CCEStudents->ECSARegistered->CellCssStyle = ""; $CCEStudents->ECSARegistered->CellCssClass = "";
$CCEStudents->ECSARegistered->CellAttrs = array(); $CCEStudents->ECSARegistered->ViewAttrs = array(); $CCEStudents->ECSARegistered->EditAttrs = array();
// ECSACategory
$CCEStudents->ECSACategory->CellCssStyle = ""; $CCEStudents->ECSACategory->CellCssClass = "";
$CCEStudents->ECSACategory->CellAttrs = array(); $CCEStudents->ECSACategory->ViewAttrs = array(); $CCEStudents->ECSACategory->EditAttrs = array();
// ECSANumber
$CCEStudents->ECSANumber->CellCssStyle = ""; $CCEStudents->ECSANumber->CellCssClass = "";
$CCEStudents->ECSANumber->CellAttrs = array(); $CCEStudents->ECSANumber->ViewAttrs = array(); $CCEStudents->ECSANumber->EditAttrs = array();
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyRegistered->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyRegistered->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyRegistered->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyRegistered->EditAttrs = array();
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyName->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyName->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyName->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyName->EditAttrs = array();
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyNumber->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyNumber->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyNumber->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyNumber->EditAttrs = array();
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyCategory->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyCategory->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyCategory->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyCategory->EditAttrs = array();
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->CellCssStyle = ""; $CCEStudents->CESAMemberFirm->CellCssClass = "";
$CCEStudents->CESAMemberFirm->CellAttrs = array(); $CCEStudents->CESAMemberFirm->ViewAttrs = array(); $CCEStudents->CESAMemberFirm->EditAttrs = array();
// OtherCEFirms
$CCEStudents->OtherCEFirms->CellCssStyle = ""; $CCEStudents->OtherCEFirms->CellCssClass = "";
$CCEStudents->OtherCEFirms->CellAttrs = array(); $CCEStudents->OtherCEFirms->ViewAttrs = array(); $CCEStudents->OtherCEFirms->EditAttrs = array();
// Age
$CCEStudents->Age->CellCssStyle = ""; $CCEStudents->Age->CellCssClass = "";
$CCEStudents->Age->CellAttrs = array(); $CCEStudents->Age->ViewAttrs = array(); $CCEStudents->Age->EditAttrs = array();
// HighestQual
$CCEStudents->HighestQual->CellCssStyle = ""; $CCEStudents->HighestQual->CellCssClass = "";
$CCEStudents->HighestQual->CellAttrs = array(); $CCEStudents->HighestQual->ViewAttrs = array(); $CCEStudents->HighestQual->EditAttrs = array();
// AreaDiscipline
$CCEStudents->AreaDiscipline->CellCssStyle = ""; $CCEStudents->AreaDiscipline->CellCssClass = "";
$CCEStudents->AreaDiscipline->CellAttrs = array(); $CCEStudents->AreaDiscipline->ViewAttrs = array(); $CCEStudents->AreaDiscipline->EditAttrs = array();
// Telephone
$CCEStudents->Telephone->CellCssStyle = ""; $CCEStudents->Telephone->CellCssClass = "";
$CCEStudents->Telephone->CellAttrs = array(); $CCEStudents->Telephone->ViewAttrs = array(); $CCEStudents->Telephone->EditAttrs = array();
// Cellphone
$CCEStudents->Cellphone->CellCssStyle = ""; $CCEStudents->Cellphone->CellCssClass = "";
$CCEStudents->Cellphone->CellAttrs = array(); $CCEStudents->Cellphone->ViewAttrs = array(); $CCEStudents->Cellphone->EditAttrs = array();
// EmailAddress
$CCEStudents->EmailAddress->CellCssStyle = ""; $CCEStudents->EmailAddress->CellCssClass = "";
$CCEStudents->EmailAddress->CellAttrs = array(); $CCEStudents->EmailAddress->ViewAttrs = array(); $CCEStudents->EmailAddress->EditAttrs = array();
// EmailAddress2
$CCEStudents->EmailAddress2->CellCssStyle = ""; $CCEStudents->EmailAddress2->CellCssClass = "";
$CCEStudents->EmailAddress2->CellAttrs = array(); $CCEStudents->EmailAddress2->ViewAttrs = array(); $CCEStudents->EmailAddress2->EditAttrs = array();
// HomeAddress
$CCEStudents->HomeAddress->CellCssStyle = ""; $CCEStudents->HomeAddress->CellCssClass = "";
$CCEStudents->HomeAddress->CellAttrs = array(); $CCEStudents->HomeAddress->ViewAttrs = array(); $CCEStudents->HomeAddress->EditAttrs = array();
// WorkAddress
$CCEStudents->WorkAddress->CellCssStyle = ""; $CCEStudents->WorkAddress->CellCssClass = "";
$CCEStudents->WorkAddress->CellAttrs = array(); $CCEStudents->WorkAddress->ViewAttrs = array(); $CCEStudents->WorkAddress->EditAttrs = array();
// PostalAddress
$CCEStudents->PostalAddress->CellCssStyle = ""; $CCEStudents->PostalAddress->CellCssClass = "";
$CCEStudents->PostalAddress->CellAttrs = array(); $CCEStudents->PostalAddress->ViewAttrs = array(); $CCEStudents->PostalAddress->EditAttrs = array();
// CESAAccountNo
$CCEStudents->CESAAccountNo->CellCssStyle = ""; $CCEStudents->CESAAccountNo->CellCssClass = "";
$CCEStudents->CESAAccountNo->CellAttrs = array(); $CCEStudents->CESAAccountNo->ViewAttrs = array(); $CCEStudents->CESAAccountNo->EditAttrs = array();
// VATNo
$CCEStudents->VATNo->CellCssStyle = ""; $CCEStudents->VATNo->CellCssClass = "";
$CCEStudents->VATNo->CellAttrs = array(); $CCEStudents->VATNo->ViewAttrs = array(); $CCEStudents->VATNo->EditAttrs = array();
// DietaryRequirements
$CCEStudents->DietaryRequirements->CellCssStyle = ""; $CCEStudents->DietaryRequirements->CellCssClass = "";
$CCEStudents->DietaryRequirements->CellAttrs = array(); $CCEStudents->DietaryRequirements->ViewAttrs = array(); $CCEStudents->DietaryRequirements->EditAttrs = array();
// OrderNo
$CCEStudents->OrderNo->CellCssStyle = ""; $CCEStudents->OrderNo->CellCssClass = "";
$CCEStudents->OrderNo->CellAttrs = array(); $CCEStudents->OrderNo->ViewAttrs = array(); $CCEStudents->OrderNo->EditAttrs = array();
// BookedByName
$CCEStudents->BookedByName->CellCssStyle = ""; $CCEStudents->BookedByName->CellCssClass = "";
$CCEStudents->BookedByName->CellAttrs = array(); $CCEStudents->BookedByName->ViewAttrs = array(); $CCEStudents->BookedByName->EditAttrs = array();
// BookedByDesignation
$CCEStudents->BookedByDesignation->CellCssStyle = ""; $CCEStudents->BookedByDesignation->CellCssClass = "";
$CCEStudents->BookedByDesignation->CellAttrs = array(); $CCEStudents->BookedByDesignation->ViewAttrs = array(); $CCEStudents->BookedByDesignation->EditAttrs = array();
// BookedByTelNo
$CCEStudents->BookedByTelNo->CellCssStyle = ""; $CCEStudents->BookedByTelNo->CellCssClass = "";
$CCEStudents->BookedByTelNo->CellAttrs = array(); $CCEStudents->BookedByTelNo->ViewAttrs = array(); $CCEStudents->BookedByTelNo->EditAttrs = array();
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->CellCssStyle = ""; $CCEStudents->BookedByFaxNo->CellCssClass = "";
$CCEStudents->BookedByFaxNo->CellAttrs = array(); $CCEStudents->BookedByFaxNo->ViewAttrs = array(); $CCEStudents->BookedByFaxNo->EditAttrs = array();
// BookedByCellNo
$CCEStudents->BookedByCellNo->CellCssStyle = ""; $CCEStudents->BookedByCellNo->CellCssClass = "";
$CCEStudents->BookedByCellNo->CellAttrs = array(); $CCEStudents->BookedByCellNo->ViewAttrs = array(); $CCEStudents->BookedByCellNo->EditAttrs = array();
// BookedByEmail
$CCEStudents->BookedByEmail->CellCssStyle = ""; $CCEStudents->BookedByEmail->CellCssClass = "";
$CCEStudents->BookedByEmail->CellAttrs = array(); $CCEStudents->BookedByEmail->ViewAttrs = array(); $CCEStudents->BookedByEmail->EditAttrs = array();
// WebUsername
$CCEStudents->WebUsername->CellCssStyle = ""; $CCEStudents->WebUsername->CellCssClass = "";
$CCEStudents->WebUsername->CellAttrs = array(); $CCEStudents->WebUsername->ViewAttrs = array(); $CCEStudents->WebUsername->EditAttrs = array();
// WebPassword
$CCEStudents->WebPassword->CellCssStyle = ""; $CCEStudents->WebPassword->CellCssClass = "";
$CCEStudents->WebPassword->CellAttrs = array(); $CCEStudents->WebPassword->ViewAttrs = array(); $CCEStudents->WebPassword->EditAttrs = array();
// MentorFirstName
$CCEStudents->MentorFirstName->CellCssStyle = ""; $CCEStudents->MentorFirstName->CellCssClass = "";
$CCEStudents->MentorFirstName->CellAttrs = array(); $CCEStudents->MentorFirstName->ViewAttrs = array(); $CCEStudents->MentorFirstName->EditAttrs = array();
// MentorSurname
$CCEStudents->MentorSurname->CellCssStyle = ""; $CCEStudents->MentorSurname->CellCssClass = "";
$CCEStudents->MentorSurname->CellAttrs = array(); $CCEStudents->MentorSurname->ViewAttrs = array(); $CCEStudents->MentorSurname->EditAttrs = array();
// MentorCompany
$CCEStudents->MentorCompany->CellCssStyle = ""; $CCEStudents->MentorCompany->CellCssClass = "";
$CCEStudents->MentorCompany->CellAttrs = array(); $CCEStudents->MentorCompany->ViewAttrs = array(); $CCEStudents->MentorCompany->EditAttrs = array();
// MentorDesig
$CCEStudents->MentorDesig->CellCssStyle = ""; $CCEStudents->MentorDesig->CellCssClass = "";
$CCEStudents->MentorDesig->CellAttrs = array(); $CCEStudents->MentorDesig->ViewAttrs = array(); $CCEStudents->MentorDesig->EditAttrs = array();
// MentorTel
$CCEStudents->MentorTel->CellCssStyle = ""; $CCEStudents->MentorTel->CellCssClass = "";
$CCEStudents->MentorTel->CellAttrs = array(); $CCEStudents->MentorTel->ViewAttrs = array(); $CCEStudents->MentorTel->EditAttrs = array();
// MentorCell
$CCEStudents->MentorCell->CellCssStyle = ""; $CCEStudents->MentorCell->CellCssClass = "";
$CCEStudents->MentorCell->CellAttrs = array(); $CCEStudents->MentorCell->ViewAttrs = array(); $CCEStudents->MentorCell->EditAttrs = array();
// MentorEmail
$CCEStudents->MentorEmail->CellCssStyle = ""; $CCEStudents->MentorEmail->CellCssClass = "";
$CCEStudents->MentorEmail->CellAttrs = array(); $CCEStudents->MentorEmail->ViewAttrs = array(); $CCEStudents->MentorEmail->EditAttrs = array();
// HRManagerName
$CCEStudents->HRManagerName->CellCssStyle = ""; $CCEStudents->HRManagerName->CellCssClass = "";
$CCEStudents->HRManagerName->CellAttrs = array(); $CCEStudents->HRManagerName->ViewAttrs = array(); $CCEStudents->HRManagerName->EditAttrs = array();
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->CellCssStyle = ""; $CCEStudents->HRManagerDesignation->CellCssClass = "";
$CCEStudents->HRManagerDesignation->CellAttrs = array(); $CCEStudents->HRManagerDesignation->ViewAttrs = array(); $CCEStudents->HRManagerDesignation->EditAttrs = array();
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->CellCssStyle = ""; $CCEStudents->HRManagerTelNo->CellCssClass = "";
$CCEStudents->HRManagerTelNo->CellAttrs = array(); $CCEStudents->HRManagerTelNo->ViewAttrs = array(); $CCEStudents->HRManagerTelNo->EditAttrs = array();
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->CellCssStyle = ""; $CCEStudents->HRManagerCellNo->CellCssClass = "";
$CCEStudents->HRManagerCellNo->CellAttrs = array(); $CCEStudents->HRManagerCellNo->ViewAttrs = array(); $CCEStudents->HRManagerCellNo->EditAttrs = array();
// HRManagerEmail
$CCEStudents->HRManagerEmail->CellCssStyle = ""; $CCEStudents->HRManagerEmail->CellCssClass = "";
$CCEStudents->HRManagerEmail->CellAttrs = array(); $CCEStudents->HRManagerEmail->ViewAttrs = array(); $CCEStudents->HRManagerEmail->EditAttrs = array();
// LengthEmploy
$CCEStudents->LengthEmploy->CellCssStyle = ""; $CCEStudents->LengthEmploy->CellCssClass = "";
$CCEStudents->LengthEmploy->CellAttrs = array(); $CCEStudents->LengthEmploy->ViewAttrs = array(); $CCEStudents->LengthEmploy->EditAttrs = array();
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->CellCssStyle = ""; $CCEStudents->ResponsiblePayment->CellCssClass = "";
$CCEStudents->ResponsiblePayment->CellAttrs = array(); $CCEStudents->ResponsiblePayment->ViewAttrs = array(); $CCEStudents->ResponsiblePayment->EditAttrs = array();
// BlockAccess
$CCEStudents->BlockAccess->CellCssStyle = ""; $CCEStudents->BlockAccess->CellCssClass = "";
$CCEStudents->BlockAccess->CellAttrs = array(); $CCEStudents->BlockAccess->ViewAttrs = array(); $CCEStudents->BlockAccess->EditAttrs = array();
// Accepted
$CCEStudents->Accepted->CellCssStyle = ""; $CCEStudents->Accepted->CellCssClass = "";
$CCEStudents->Accepted->CellAttrs = array(); $CCEStudents->Accepted->ViewAttrs = array(); $CCEStudents->Accepted->EditAttrs = array();
// Archived
$CCEStudents->Archived->CellCssStyle = ""; $CCEStudents->Archived->CellCssClass = "";
$CCEStudents->Archived->CellAttrs = array(); $CCEStudents->Archived->ViewAttrs = array(); $CCEStudents->Archived->EditAttrs = array();
// Achieved
$CCEStudents->Achieved->CellCssStyle = ""; $CCEStudents->Achieved->CellCssClass = "";
$CCEStudents->Achieved->CellAttrs = array(); $CCEStudents->Achieved->ViewAttrs = array(); $CCEStudents->Achieved->EditAttrs = array();
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->CellCssStyle = ""; $CCEStudents->ReasonForLeaving->CellCssClass = "";
$CCEStudents->ReasonForLeaving->CellAttrs = array(); $CCEStudents->ReasonForLeaving->ViewAttrs = array(); $CCEStudents->ReasonForLeaving->EditAttrs = array();
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->CellCssStyle = ""; $CCEStudents->ReasonNotAccepted->CellCssClass = "";
$CCEStudents->ReasonNotAccepted->CellAttrs = array(); $CCEStudents->ReasonNotAccepted->ViewAttrs = array(); $CCEStudents->ReasonNotAccepted->EditAttrs = array();
// ResultComments
$CCEStudents->ResultComments->CellCssStyle = ""; $CCEStudents->ResultComments->CellCssClass = "";
$CCEStudents->ResultComments->CellAttrs = array(); $CCEStudents->ResultComments->ViewAttrs = array(); $CCEStudents->ResultComments->EditAttrs = array();
// ResultStatus
$CCEStudents->ResultStatus->CellCssStyle = ""; $CCEStudents->ResultStatus->CellCssClass = "";
$CCEStudents->ResultStatus->CellAttrs = array(); $CCEStudents->ResultStatus->ViewAttrs = array(); $CCEStudents->ResultStatus->EditAttrs = array();
// Cancelled
$CCEStudents->Cancelled->CellCssStyle = ""; $CCEStudents->Cancelled->CellCssClass = "";
$CCEStudents->Cancelled->CellAttrs = array(); $CCEStudents->Cancelled->ViewAttrs = array(); $CCEStudents->Cancelled->EditAttrs = array();
// CancelledReason
$CCEStudents->CancelledReason->CellCssStyle = ""; $CCEStudents->CancelledReason->CellCssClass = "";
$CCEStudents->CancelledReason->CellAttrs = array(); $CCEStudents->CancelledReason->ViewAttrs = array(); $CCEStudents->CancelledReason->EditAttrs = array();
// Trimester1Report
$CCEStudents->Trimester1Report->CellCssStyle = ""; $CCEStudents->Trimester1Report->CellCssClass = "";
$CCEStudents->Trimester1Report->CellAttrs = array(); $CCEStudents->Trimester1Report->ViewAttrs = array(); $CCEStudents->Trimester1Report->EditAttrs = array();
// Trimester2Report
$CCEStudents->Trimester2Report->CellCssStyle = ""; $CCEStudents->Trimester2Report->CellCssClass = "";
$CCEStudents->Trimester2Report->CellAttrs = array(); $CCEStudents->Trimester2Report->ViewAttrs = array(); $CCEStudents->Trimester2Report->EditAttrs = array();
// Trimester3Report
$CCEStudents->Trimester3Report->CellCssStyle = ""; $CCEStudents->Trimester3Report->CellCssClass = "";
$CCEStudents->Trimester3Report->CellAttrs = array(); $CCEStudents->Trimester3Report->ViewAttrs = array(); $CCEStudents->Trimester3Report->EditAttrs = array();
// ExamResultLetter
$CCEStudents->ExamResultLetter->CellCssStyle = ""; $CCEStudents->ExamResultLetter->CellCssClass = "";
$CCEStudents->ExamResultLetter->CellAttrs = array(); $CCEStudents->ExamResultLetter->ViewAttrs = array(); $CCEStudents->ExamResultLetter->EditAttrs = array();
// SupplementalExamLetter
$CCEStudents->SupplementalExamLetter->CellCssStyle = ""; $CCEStudents->SupplementalExamLetter->CellCssClass = "";
$CCEStudents->SupplementalExamLetter->CellAttrs = array(); $CCEStudents->SupplementalExamLetter->ViewAttrs = array(); $CCEStudents->SupplementalExamLetter->EditAttrs = array();
if ($CCEStudents->RowType == EW_ROWTYPE_VIEW) { // View row
// CCEStudentID
$CCEStudents->CCEStudentID->ViewValue = $CCEStudents->CCEStudentID->CurrentValue;
$CCEStudents->CCEStudentID->CssStyle = "";
$CCEStudents->CCEStudentID->CssClass = "";
$CCEStudents->CCEStudentID->ViewCustomAttributes = "";
// KnownAs
$CCEStudents->KnownAs->ViewValue = $CCEStudents->KnownAs->CurrentValue;
$CCEStudents->KnownAs->CssStyle = "";
$CCEStudents->KnownAs->CssClass = "";
$CCEStudents->KnownAs->ViewCustomAttributes = "";
// FirstName
$CCEStudents->FirstName->ViewValue = $CCEStudents->FirstName->CurrentValue;
$CCEStudents->FirstName->CssStyle = "";
$CCEStudents->FirstName->CssClass = "";
$CCEStudents->FirstName->ViewCustomAttributes = "";
// Surname
$CCEStudents->Surname->ViewValue = $CCEStudents->Surname->CurrentValue;
$CCEStudents->Surname->CssStyle = "";
$CCEStudents->Surname->CssClass = "";
$CCEStudents->Surname->ViewCustomAttributes = "";
// Organisation
$CCEStudents->Organisation->ViewValue = $CCEStudents->Organisation->CurrentValue;
$CCEStudents->Organisation->CssStyle = "";
$CCEStudents->Organisation->CssClass = "";
$CCEStudents->Organisation->ViewCustomAttributes = "";
// OrganisationType
$CCEStudents->OrganisationType->ViewValue = $CCEStudents->OrganisationType->CurrentValue;
$CCEStudents->OrganisationType->CssStyle = "";
$CCEStudents->OrganisationType->CssClass = "";
$CCEStudents->OrganisationType->ViewCustomAttributes = "";
// Designation
$CCEStudents->Designation->ViewValue = $CCEStudents->Designation->CurrentValue;
$CCEStudents->Designation->CssStyle = "";
$CCEStudents->Designation->CssClass = "";
$CCEStudents->Designation->ViewCustomAttributes = "";
// Department
$CCEStudents->Department->ViewValue = $CCEStudents->Department->CurrentValue;
$CCEStudents->Department->CssStyle = "";
$CCEStudents->Department->CssClass = "";
$CCEStudents->Department->ViewCustomAttributes = "";
// StudentNumber
$CCEStudents->StudentNumber->ViewValue = $CCEStudents->StudentNumber->CurrentValue;
$CCEStudents->StudentNumber->CssStyle = "";
$CCEStudents->StudentNumber->CssClass = "";
$CCEStudents->StudentNumber->ViewCustomAttributes = "";
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->ViewValue = $CCEStudents->CCEFacilitatorID->CurrentValue;
if (strval($CCEStudents->CCEFacilitatorID->CurrentValue) <> "") {
$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($CCEStudents->CCEFacilitatorID->CurrentValue) . "";
$sSqlWrk = "SELECT `FacilitatorName` FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
$rswrk->Close();
} else {
$CCEStudents->CCEFacilitatorID->ViewValue = $CCEStudents->CCEFacilitatorID->CurrentValue;
}
} else {
$CCEStudents->CCEFacilitatorID->ViewValue = NULL;
}
$CCEStudents->CCEFacilitatorID->CssStyle = "";
$CCEStudents->CCEFacilitatorID->CssClass = "";
$CCEStudents->CCEFacilitatorID->ViewCustomAttributes = "";
// Project
$CCEStudents->Project->ViewValue = $CCEStudents->Project->CurrentValue;
if (strval($CCEStudents->Project->CurrentValue) <> "") {
$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($CCEStudents->Project->CurrentValue) . "";
$sSqlWrk = "SELECT `Project` FROM `CCEProjects`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->Project->ViewValue = $rswrk->fields('Project');
$rswrk->Close();
} else {
$CCEStudents->Project->ViewValue = $CCEStudents->Project->CurrentValue;
}
} else {
$CCEStudents->Project->ViewValue = NULL;
}
$CCEStudents->Project->CssStyle = "";
$CCEStudents->Project->CssClass = "";
$CCEStudents->Project->ViewCustomAttributes = "";
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->ViewValue = $CCEStudents->ProjectDiscipline->CurrentValue;
$CCEStudents->ProjectDiscipline->CssStyle = "";
$CCEStudents->ProjectDiscipline->CssClass = "";
$CCEStudents->ProjectDiscipline->ViewCustomAttributes = "";
// ProjectCode
$CCEStudents->ProjectCode->ViewValue = $CCEStudents->ProjectCode->CurrentValue;
$CCEStudents->ProjectCode->CssStyle = "";
$CCEStudents->ProjectCode->CssClass = "";
$CCEStudents->ProjectCode->ViewCustomAttributes = "";
// IDNumber
$CCEStudents->IDNumber->ViewValue = $CCEStudents->IDNumber->CurrentValue;
$CCEStudents->IDNumber->CssStyle = "";
$CCEStudents->IDNumber->CssClass = "";
$CCEStudents->IDNumber->ViewCustomAttributes = "";
// ECSARegistered
if (strval($CCEStudents->ECSARegistered->CurrentValue) <> "") {
switch ($CCEStudents->ECSARegistered->CurrentValue) {
case "n":
$CCEStudents->ECSARegistered->ViewValue = "No";
break;
case "y":
$CCEStudents->ECSARegistered->ViewValue = "Yes";
break;
default:
$CCEStudents->ECSARegistered->ViewValue = $CCEStudents->ECSARegistered->CurrentValue;
}
} else {
$CCEStudents->ECSARegistered->ViewValue = NULL;
}
$CCEStudents->ECSARegistered->CssStyle = "";
$CCEStudents->ECSARegistered->CssClass = "";
$CCEStudents->ECSARegistered->ViewCustomAttributes = "";
// ECSACategory
if (strval($CCEStudents->ECSACategory->CurrentValue) <> "") {
$sFilterWrk = "`PicklistValue` = '" . ew_AdjustSql($CCEStudents->ECSACategory->CurrentValue) . "'";
$sSqlWrk = "SELECT `PicklistLabel` FROM `Picklists`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "`Picklists`.`PicklistType` = 'ECSA Registration Categories'" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->ECSACategory->ViewValue = $rswrk->fields('PicklistLabel');
$rswrk->Close();
} else {
$CCEStudents->ECSACategory->ViewValue = $CCEStudents->ECSACategory->CurrentValue;
}
} else {
$CCEStudents->ECSACategory->ViewValue = NULL;
}
$CCEStudents->ECSACategory->CssStyle = "";
$CCEStudents->ECSACategory->CssClass = "";
$CCEStudents->ECSACategory->ViewCustomAttributes = "";
// ECSANumber
$CCEStudents->ECSANumber->ViewValue = $CCEStudents->ECSANumber->CurrentValue;
$CCEStudents->ECSANumber->CssStyle = "";
$CCEStudents->ECSANumber->CssClass = "";
$CCEStudents->ECSANumber->ViewCustomAttributes = "";
// OtherStatutoryBodyRegistered
if (strval($CCEStudents->OtherStatutoryBodyRegistered->CurrentValue) <> "") {
switch ($CCEStudents->OtherStatutoryBodyRegistered->CurrentValue) {
case "1":
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = "Yes";
break;
case "0":
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = "No";
break;
default:
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = $CCEStudents->OtherStatutoryBodyRegistered->CurrentValue;
}
} else {
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = NULL;
}
$CCEStudents->OtherStatutoryBodyRegistered->CssStyle = "";
$CCEStudents->OtherStatutoryBodyRegistered->CssClass = "";
$CCEStudents->OtherStatutoryBodyRegistered->ViewCustomAttributes = "";
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->ViewValue = $CCEStudents->OtherStatutoryBodyName->CurrentValue;
$CCEStudents->OtherStatutoryBodyName->CssStyle = "";
$CCEStudents->OtherStatutoryBodyName->CssClass = "";
$CCEStudents->OtherStatutoryBodyName->ViewCustomAttributes = "";
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->ViewValue = $CCEStudents->OtherStatutoryBodyNumber->CurrentValue;
$CCEStudents->OtherStatutoryBodyNumber->CssStyle = "";
$CCEStudents->OtherStatutoryBodyNumber->CssClass = "";
$CCEStudents->OtherStatutoryBodyNumber->ViewCustomAttributes = "";
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->ViewValue = $CCEStudents->OtherStatutoryBodyCategory->CurrentValue;
$CCEStudents->OtherStatutoryBodyCategory->CssStyle = "";
$CCEStudents->OtherStatutoryBodyCategory->CssClass = "";
$CCEStudents->OtherStatutoryBodyCategory->ViewCustomAttributes = "";
// CESAMemberFirm
if (strval($CCEStudents->CESAMemberFirm->CurrentValue) <> "") {
switch ($CCEStudents->CESAMemberFirm->CurrentValue) {
case "n":
$CCEStudents->CESAMemberFirm->ViewValue = "No";
break;
case "y":
$CCEStudents->CESAMemberFirm->ViewValue = "Yes";
break;
default:
$CCEStudents->CESAMemberFirm->ViewValue = $CCEStudents->CESAMemberFirm->CurrentValue;
}
} else {
$CCEStudents->CESAMemberFirm->ViewValue = NULL;
}
$CCEStudents->CESAMemberFirm->CssStyle = "";
$CCEStudents->CESAMemberFirm->CssClass = "";
$CCEStudents->CESAMemberFirm->ViewCustomAttributes = "";
// OtherCEFirms
$CCEStudents->OtherCEFirms->ViewValue = $CCEStudents->OtherCEFirms->CurrentValue;
$CCEStudents->OtherCEFirms->CssStyle = "";
$CCEStudents->OtherCEFirms->CssClass = "";
$CCEStudents->OtherCEFirms->ViewCustomAttributes = "";
// Age
$CCEStudents->Age->ViewValue = $CCEStudents->Age->CurrentValue;
$CCEStudents->Age->CssStyle = "";
$CCEStudents->Age->CssClass = "";
$CCEStudents->Age->ViewCustomAttributes = "";
// HighestQual
$CCEStudents->HighestQual->ViewValue = $CCEStudents->HighestQual->CurrentValue;
$CCEStudents->HighestQual->CssStyle = "";
$CCEStudents->HighestQual->CssClass = "";
$CCEStudents->HighestQual->ViewCustomAttributes = "";
// AreaDiscipline
$CCEStudents->AreaDiscipline->ViewValue = $CCEStudents->AreaDiscipline->CurrentValue;
$CCEStudents->AreaDiscipline->CssStyle = "";
$CCEStudents->AreaDiscipline->CssClass = "";
$CCEStudents->AreaDiscipline->ViewCustomAttributes = "";
// Telephone
$CCEStudents->Telephone->ViewValue = $CCEStudents->Telephone->CurrentValue;
$CCEStudents->Telephone->CssStyle = "";
$CCEStudents->Telephone->CssClass = "";
$CCEStudents->Telephone->ViewCustomAttributes = "";
// Cellphone
$CCEStudents->Cellphone->ViewValue = $CCEStudents->Cellphone->CurrentValue;
$CCEStudents->Cellphone->CssStyle = "";
$CCEStudents->Cellphone->CssClass = "";
$CCEStudents->Cellphone->ViewCustomAttributes = "";
// EmailAddress
$CCEStudents->EmailAddress->ViewValue = $CCEStudents->EmailAddress->CurrentValue;
$CCEStudents->EmailAddress->CssStyle = "";
$CCEStudents->EmailAddress->CssClass = "";
$CCEStudents->EmailAddress->ViewCustomAttributes = "";
// EmailAddress2
$CCEStudents->EmailAddress2->ViewValue = $CCEStudents->EmailAddress2->CurrentValue;
$CCEStudents->EmailAddress2->CssStyle = "";
$CCEStudents->EmailAddress2->CssClass = "";
$CCEStudents->EmailAddress2->ViewCustomAttributes = "";
// HomeAddress
$CCEStudents->HomeAddress->ViewValue = $CCEStudents->HomeAddress->CurrentValue;
$CCEStudents->HomeAddress->CssStyle = "";
$CCEStudents->HomeAddress->CssClass = "";
$CCEStudents->HomeAddress->ViewCustomAttributes = "";
// WorkAddress
$CCEStudents->WorkAddress->ViewValue = $CCEStudents->WorkAddress->CurrentValue;
$CCEStudents->WorkAddress->CssStyle = "";
$CCEStudents->WorkAddress->CssClass = "";
$CCEStudents->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$CCEStudents->PostalAddress->ViewValue = $CCEStudents->PostalAddress->CurrentValue;
$CCEStudents->PostalAddress->CssStyle = "";
$CCEStudents->PostalAddress->CssClass = "";
$CCEStudents->PostalAddress->ViewCustomAttributes = "";
// CESAAccountNo
$CCEStudents->CESAAccountNo->ViewValue = $CCEStudents->CESAAccountNo->CurrentValue;
$CCEStudents->CESAAccountNo->CssStyle = "";
$CCEStudents->CESAAccountNo->CssClass = "";
$CCEStudents->CESAAccountNo->ViewCustomAttributes = "";
// VATNo
$CCEStudents->VATNo->ViewValue = $CCEStudents->VATNo->CurrentValue;
$CCEStudents->VATNo->CssStyle = "";
$CCEStudents->VATNo->CssClass = "";
$CCEStudents->VATNo->ViewCustomAttributes = "";
// DietaryRequirements
$CCEStudents->DietaryRequirements->ViewValue = $CCEStudents->DietaryRequirements->CurrentValue;
$CCEStudents->DietaryRequirements->CssStyle = "";
$CCEStudents->DietaryRequirements->CssClass = "";
$CCEStudents->DietaryRequirements->ViewCustomAttributes = "";
// OrderNo
$CCEStudents->OrderNo->ViewValue = $CCEStudents->OrderNo->CurrentValue;
$CCEStudents->OrderNo->CssStyle = "";
$CCEStudents->OrderNo->CssClass = "";
$CCEStudents->OrderNo->ViewCustomAttributes = "";
// BookedByName
$CCEStudents->BookedByName->ViewValue = $CCEStudents->BookedByName->CurrentValue;
$CCEStudents->BookedByName->CssStyle = "";
$CCEStudents->BookedByName->CssClass = "";
$CCEStudents->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$CCEStudents->BookedByDesignation->ViewValue = $CCEStudents->BookedByDesignation->CurrentValue;
$CCEStudents->BookedByDesignation->CssStyle = "";
$CCEStudents->BookedByDesignation->CssClass = "";
$CCEStudents->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$CCEStudents->BookedByTelNo->ViewValue = $CCEStudents->BookedByTelNo->CurrentValue;
$CCEStudents->BookedByTelNo->CssStyle = "";
$CCEStudents->BookedByTelNo->CssClass = "";
$CCEStudents->BookedByTelNo->ViewCustomAttributes = "";
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->ViewValue = $CCEStudents->BookedByFaxNo->CurrentValue;
$CCEStudents->BookedByFaxNo->CssStyle = "";
$CCEStudents->BookedByFaxNo->CssClass = "";
$CCEStudents->BookedByFaxNo->ViewCustomAttributes = "";
// BookedByCellNo
$CCEStudents->BookedByCellNo->ViewValue = $CCEStudents->BookedByCellNo->CurrentValue;
$CCEStudents->BookedByCellNo->CssStyle = "";
$CCEStudents->BookedByCellNo->CssClass = "";
$CCEStudents->BookedByCellNo->ViewCustomAttributes = "";
// BookedByEmail
$CCEStudents->BookedByEmail->ViewValue = $CCEStudents->BookedByEmail->CurrentValue;
$CCEStudents->BookedByEmail->CssStyle = "";
$CCEStudents->BookedByEmail->CssClass = "";
$CCEStudents->BookedByEmail->ViewCustomAttributes = "";
// WebUsername
$CCEStudents->WebUsername->ViewValue = $CCEStudents->WebUsername->CurrentValue;
$CCEStudents->WebUsername->CssStyle = "";
$CCEStudents->WebUsername->CssClass = "";
$CCEStudents->WebUsername->ViewCustomAttributes = "";
// WebPassword
$CCEStudents->WebPassword->ViewValue = $CCEStudents->WebPassword->CurrentValue;
$CCEStudents->WebPassword->CssStyle = "";
$CCEStudents->WebPassword->CssClass = "";
$CCEStudents->WebPassword->ViewCustomAttributes = "";
// MentorFirstName
$CCEStudents->MentorFirstName->ViewValue = $CCEStudents->MentorFirstName->CurrentValue;
$CCEStudents->MentorFirstName->CssStyle = "";
$CCEStudents->MentorFirstName->CssClass = "";
$CCEStudents->MentorFirstName->ViewCustomAttributes = "";
// MentorSurname
$CCEStudents->MentorSurname->ViewValue = $CCEStudents->MentorSurname->CurrentValue;
$CCEStudents->MentorSurname->CssStyle = "";
$CCEStudents->MentorSurname->CssClass = "";
$CCEStudents->MentorSurname->ViewCustomAttributes = "";
// MentorCompany
$CCEStudents->MentorCompany->ViewValue = $CCEStudents->MentorCompany->CurrentValue;
$CCEStudents->MentorCompany->CssStyle = "";
$CCEStudents->MentorCompany->CssClass = "";
$CCEStudents->MentorCompany->ViewCustomAttributes = "";
// MentorDesig
$CCEStudents->MentorDesig->ViewValue = $CCEStudents->MentorDesig->CurrentValue;
$CCEStudents->MentorDesig->CssStyle = "";
$CCEStudents->MentorDesig->CssClass = "";
$CCEStudents->MentorDesig->ViewCustomAttributes = "";
// MentorTel
$CCEStudents->MentorTel->ViewValue = $CCEStudents->MentorTel->CurrentValue;
$CCEStudents->MentorTel->CssStyle = "";
$CCEStudents->MentorTel->CssClass = "";
$CCEStudents->MentorTel->ViewCustomAttributes = "";
// MentorCell
$CCEStudents->MentorCell->ViewValue = $CCEStudents->MentorCell->CurrentValue;
$CCEStudents->MentorCell->CssStyle = "";
$CCEStudents->MentorCell->CssClass = "";
$CCEStudents->MentorCell->ViewCustomAttributes = "";
// MentorEmail
$CCEStudents->MentorEmail->ViewValue = $CCEStudents->MentorEmail->CurrentValue;
$CCEStudents->MentorEmail->CssStyle = "";
$CCEStudents->MentorEmail->CssClass = "";
$CCEStudents->MentorEmail->ViewCustomAttributes = "";
// HRManagerName
$CCEStudents->HRManagerName->ViewValue = $CCEStudents->HRManagerName->CurrentValue;
$CCEStudents->HRManagerName->CssStyle = "";
$CCEStudents->HRManagerName->CssClass = "";
$CCEStudents->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->ViewValue = $CCEStudents->HRManagerDesignation->CurrentValue;
$CCEStudents->HRManagerDesignation->CssStyle = "";
$CCEStudents->HRManagerDesignation->CssClass = "";
$CCEStudents->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->ViewValue = $CCEStudents->HRManagerTelNo->CurrentValue;
$CCEStudents->HRManagerTelNo->CssStyle = "";
$CCEStudents->HRManagerTelNo->CssClass = "";
$CCEStudents->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->ViewValue = $CCEStudents->HRManagerCellNo->CurrentValue;
$CCEStudents->HRManagerCellNo->CssStyle = "";
$CCEStudents->HRManagerCellNo->CssClass = "";
$CCEStudents->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$CCEStudents->HRManagerEmail->ViewValue = $CCEStudents->HRManagerEmail->CurrentValue;
$CCEStudents->HRManagerEmail->CssStyle = "";
$CCEStudents->HRManagerEmail->CssClass = "";
$CCEStudents->HRManagerEmail->ViewCustomAttributes = "";
// LengthEmploy
$CCEStudents->LengthEmploy->ViewValue = $CCEStudents->LengthEmploy->CurrentValue;
$CCEStudents->LengthEmploy->CssStyle = "";
$CCEStudents->LengthEmploy->CssClass = "";
$CCEStudents->LengthEmploy->ViewCustomAttributes = "";
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->ViewValue = $CCEStudents->ResponsiblePayment->CurrentValue;
$CCEStudents->ResponsiblePayment->CssStyle = "";
$CCEStudents->ResponsiblePayment->CssClass = "";
$CCEStudents->ResponsiblePayment->ViewCustomAttributes = "";
// BlockAccess
if (strval($CCEStudents->BlockAccess->CurrentValue) <> "") {
switch ($CCEStudents->BlockAccess->CurrentValue) {
case "y":
$CCEStudents->BlockAccess->ViewValue = "Yes";
break;
case "n":
$CCEStudents->BlockAccess->ViewValue = "No";
break;
default:
$CCEStudents->BlockAccess->ViewValue = $CCEStudents->BlockAccess->CurrentValue;
}
} else {
$CCEStudents->BlockAccess->ViewValue = NULL;
}
$CCEStudents->BlockAccess->CssStyle = "";
$CCEStudents->BlockAccess->CssClass = "";
$CCEStudents->BlockAccess->ViewCustomAttributes = "";
// Accepted
if (strval($CCEStudents->Accepted->CurrentValue) <> "") {
switch ($CCEStudents->Accepted->CurrentValue) {
case "1":
$CCEStudents->Accepted->ViewValue = "Yes";
break;
case "0":
$CCEStudents->Accepted->ViewValue = "No";
break;
default:
$CCEStudents->Accepted->ViewValue = $CCEStudents->Accepted->CurrentValue;
}
} else {
$CCEStudents->Accepted->ViewValue = NULL;
}
$CCEStudents->Accepted->CssStyle = "";
$CCEStudents->Accepted->CssClass = "";
$CCEStudents->Accepted->ViewCustomAttributes = "";
// Archived
if (strval($CCEStudents->Archived->CurrentValue) <> "") {
switch ($CCEStudents->Archived->CurrentValue) {
case "1":
$CCEStudents->Archived->ViewValue = "Yes";
break;
case "0":
$CCEStudents->Archived->ViewValue = "No";
break;
default:
$CCEStudents->Archived->ViewValue = $CCEStudents->Archived->CurrentValue;
}
} else {
$CCEStudents->Archived->ViewValue = NULL;
}
$CCEStudents->Archived->CssStyle = "";
$CCEStudents->Archived->CssClass = "";
$CCEStudents->Archived->ViewCustomAttributes = "";
// Achieved
if (strval($CCEStudents->Achieved->CurrentValue) <> "") {
switch ($CCEStudents->Achieved->CurrentValue) {
case "1":
$CCEStudents->Achieved->ViewValue = "Yes";
break;
case "0":
$CCEStudents->Achieved->ViewValue = "No";
break;
default:
$CCEStudents->Achieved->ViewValue = $CCEStudents->Achieved->CurrentValue;
}
} else {
$CCEStudents->Achieved->ViewValue = NULL;
}
$CCEStudents->Achieved->CssStyle = "";
$CCEStudents->Achieved->CssClass = "";
$CCEStudents->Achieved->ViewCustomAttributes = "";
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->ViewValue = $CCEStudents->ReasonForLeaving->CurrentValue;
$CCEStudents->ReasonForLeaving->CssStyle = "";
$CCEStudents->ReasonForLeaving->CssClass = "";
$CCEStudents->ReasonForLeaving->ViewCustomAttributes = "";
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->ViewValue = $CCEStudents->ReasonNotAccepted->CurrentValue;
$CCEStudents->ReasonNotAccepted->CssStyle = "";
$CCEStudents->ReasonNotAccepted->CssClass = "";
$CCEStudents->ReasonNotAccepted->ViewCustomAttributes = "";
// ResultComments
$CCEStudents->ResultComments->ViewValue = $CCEStudents->ResultComments->CurrentValue;
$CCEStudents->ResultComments->CssStyle = "";
$CCEStudents->ResultComments->CssClass = "";
$CCEStudents->ResultComments->ViewCustomAttributes = "";
// ResultStatus
if (strval($CCEStudents->ResultStatus->CurrentValue) <> "") {
switch ($CCEStudents->ResultStatus->CurrentValue) {
case "":
$CCEStudents->ResultStatus->ViewValue = "No Result Yet";
break;
case "P":
$CCEStudents->ResultStatus->ViewValue = "Passed";
break;
case "S":
$CCEStudents->ResultStatus->ViewValue = "Pending Supplementary Exams";
break;
default:
$CCEStudents->ResultStatus->ViewValue = $CCEStudents->ResultStatus->CurrentValue;
}
} else {
$CCEStudents->ResultStatus->ViewValue = NULL;
}
$CCEStudents->ResultStatus->CssStyle = "";
$CCEStudents->ResultStatus->CssClass = "";
$CCEStudents->ResultStatus->ViewCustomAttributes = "";
// Cancelled
if (strval($CCEStudents->Cancelled->CurrentValue) <> "") {
switch ($CCEStudents->Cancelled->CurrentValue) {
case "1":
$CCEStudents->Cancelled->ViewValue = "Cancelled";
break;
case "0":
$CCEStudents->Cancelled->ViewValue = "Not Cancelled";
break;
default:
$CCEStudents->Cancelled->ViewValue = $CCEStudents->Cancelled->CurrentValue;
}
} else {
$CCEStudents->Cancelled->ViewValue = NULL;
}
$CCEStudents->Cancelled->CssStyle = "";
$CCEStudents->Cancelled->CssClass = "";
$CCEStudents->Cancelled->ViewCustomAttributes = "";
// CancelledReason
$CCEStudents->CancelledReason->ViewValue = $CCEStudents->CancelledReason->CurrentValue;
$CCEStudents->CancelledReason->CssStyle = "";
$CCEStudents->CancelledReason->CssClass = "";
$CCEStudents->CancelledReason->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($CCEStudents->CVFile->Upload->DbValue)) {
$CCEStudents->CVFile->ViewValue = $CCEStudents->CVFile->Upload->DbValue;
} else {
$CCEStudents->CVFile->ViewValue = "";
}
$CCEStudents->CVFile->CssStyle = "";
$CCEStudents->CVFile->CssClass = "";
$CCEStudents->CVFile->ViewCustomAttributes = "";
// Title
$CCEStudents->Title->ViewValue = $CCEStudents->Title->CurrentValue;
$CCEStudents->Title->CssStyle = "";
$CCEStudents->Title->CssClass = "";
$CCEStudents->Title->ViewCustomAttributes = "";
// QualCertificate1
$CCEStudents->QualCertificate1->ViewValue = $CCEStudents->QualCertificate1->CurrentValue;
$CCEStudents->QualCertificate1->CssStyle = "";
$CCEStudents->QualCertificate1->CssClass = "";
$CCEStudents->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
$CCEStudents->QualCertificate2->ViewValue = $CCEStudents->QualCertificate2->CurrentValue;
$CCEStudents->QualCertificate2->CssStyle = "";
$CCEStudents->QualCertificate2->CssClass = "";
$CCEStudents->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
$CCEStudents->QualCertificate3->ViewValue = $CCEStudents->QualCertificate3->CurrentValue;
$CCEStudents->QualCertificate3->CssStyle = "";
$CCEStudents->QualCertificate3->CssClass = "";
$CCEStudents->QualCertificate3->ViewCustomAttributes = "";
// MemorandumFile
$CCEStudents->MemorandumFile->ViewValue = $CCEStudents->MemorandumFile->CurrentValue;
$CCEStudents->MemorandumFile->CssStyle = "";
$CCEStudents->MemorandumFile->CssClass = "";
$CCEStudents->MemorandumFile->ViewCustomAttributes = "";
// AgreementFile
$CCEStudents->AgreementFile->ViewValue = $CCEStudents->AgreementFile->CurrentValue;
$CCEStudents->AgreementFile->CssStyle = "";
$CCEStudents->AgreementFile->CssClass = "";
$CCEStudents->AgreementFile->ViewCustomAttributes = "";
// ResultLetter
$CCEStudents->ResultLetter->ViewValue = $CCEStudents->ResultLetter->CurrentValue;
$CCEStudents->ResultLetter->CssStyle = "";
$CCEStudents->ResultLetter->CssClass = "";
$CCEStudents->ResultLetter->ViewCustomAttributes = "";
// IDFile
$CCEStudents->IDFile->ViewValue = $CCEStudents->IDFile->CurrentValue;
$CCEStudents->IDFile->CssStyle = "";
$CCEStudents->IDFile->CssClass = "";
$CCEStudents->IDFile->ViewCustomAttributes = "";
// PhotoFile
$CCEStudents->PhotoFile->ViewValue = $CCEStudents->PhotoFile->CurrentValue;
$CCEStudents->PhotoFile->CssStyle = "";
$CCEStudents->PhotoFile->CssClass = "";
$CCEStudents->PhotoFile->ViewCustomAttributes = "";
// SABTACOMemberFirm
$CCEStudents->SABTACOMemberFirm->ViewValue = $CCEStudents->SABTACOMemberFirm->CurrentValue;
$CCEStudents->SABTACOMemberFirm->CssStyle = "";
$CCEStudents->SABTACOMemberFirm->CssClass = "";
$CCEStudents->SABTACOMemberFirm->ViewCustomAttributes = "";
// PreferredCourierAddress
$CCEStudents->PreferredCourierAddress->ViewValue = $CCEStudents->PreferredCourierAddress->CurrentValue;
$CCEStudents->PreferredCourierAddress->CssStyle = "";
$CCEStudents->PreferredCourierAddress->CssClass = "";
$CCEStudents->PreferredCourierAddress->ViewCustomAttributes = "";
// MotivationalLetter
$CCEStudents->MotivationalLetter->ViewValue = $CCEStudents->MotivationalLetter->CurrentValue;
$CCEStudents->MotivationalLetter->CssStyle = "";
$CCEStudents->MotivationalLetter->CssClass = "";
$CCEStudents->MotivationalLetter->ViewCustomAttributes = "";
// MentorName
$CCEStudents->MentorName->ViewValue = $CCEStudents->MentorName->CurrentValue;
$CCEStudents->MentorName->CssStyle = "";
$CCEStudents->MentorName->CssClass = "";
$CCEStudents->MentorName->ViewCustomAttributes = "";
// ModulesEnrolled
$CCEStudents->ModulesEnrolled->ViewValue = $CCEStudents->ModulesEnrolled->CurrentValue;
$CCEStudents->ModulesEnrolled->CssStyle = "";
$CCEStudents->ModulesEnrolled->CssClass = "";
$CCEStudents->ModulesEnrolled->ViewCustomAttributes = "";
// Trimester1Report
if (!ew_Empty($CCEStudents->Trimester1Report->Upload->DbValue)) {
$CCEStudents->Trimester1Report->ViewValue = $CCEStudents->Trimester1Report->Upload->DbValue;
} else {
$CCEStudents->Trimester1Report->ViewValue = "";
}
$CCEStudents->Trimester1Report->CssStyle = "";
$CCEStudents->Trimester1Report->CssClass = "";
$CCEStudents->Trimester1Report->ViewCustomAttributes = "";
// Trimester2Report
if (!ew_Empty($CCEStudents->Trimester2Report->Upload->DbValue)) {
$CCEStudents->Trimester2Report->ViewValue = $CCEStudents->Trimester2Report->Upload->DbValue;
} else {
$CCEStudents->Trimester2Report->ViewValue = "";
}
$CCEStudents->Trimester2Report->CssStyle = "";
$CCEStudents->Trimester2Report->CssClass = "";
$CCEStudents->Trimester2Report->ViewCustomAttributes = "";
// Trimester3Report
if (!ew_Empty($CCEStudents->Trimester3Report->Upload->DbValue)) {
$CCEStudents->Trimester3Report->ViewValue = $CCEStudents->Trimester3Report->Upload->DbValue;
} else {
$CCEStudents->Trimester3Report->ViewValue = "";
}
$CCEStudents->Trimester3Report->CssStyle = "";
$CCEStudents->Trimester3Report->CssClass = "";
$CCEStudents->Trimester3Report->ViewCustomAttributes = "";
// ExamResultLetter
if (!ew_Empty($CCEStudents->ExamResultLetter->Upload->DbValue)) {
$CCEStudents->ExamResultLetter->ViewValue = $CCEStudents->ExamResultLetter->Upload->DbValue;
} else {
$CCEStudents->ExamResultLetter->ViewValue = "";
}
$CCEStudents->ExamResultLetter->CssStyle = "";
$CCEStudents->ExamResultLetter->CssClass = "";
$CCEStudents->ExamResultLetter->ViewCustomAttributes = "";
// SupplementalExamLetter
if (!ew_Empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) {
$CCEStudents->SupplementalExamLetter->ViewValue = $CCEStudents->SupplementalExamLetter->Upload->DbValue;
} else {
$CCEStudents->SupplementalExamLetter->ViewValue = "";
}
$CCEStudents->SupplementalExamLetter->CssStyle = "";
$CCEStudents->SupplementalExamLetter->CssClass = "";
$CCEStudents->SupplementalExamLetter->ViewCustomAttributes = "";
// KnownAs
$CCEStudents->KnownAs->HrefValue = "";
$CCEStudents->KnownAs->TooltipValue = "";
// FirstName
$CCEStudents->FirstName->HrefValue = "";
$CCEStudents->FirstName->TooltipValue = "";
// Surname
$CCEStudents->Surname->HrefValue = "";
$CCEStudents->Surname->TooltipValue = "";
// Organisation
$CCEStudents->Organisation->HrefValue = "";
$CCEStudents->Organisation->TooltipValue = "";
// OrganisationType
$CCEStudents->OrganisationType->HrefValue = "";
$CCEStudents->OrganisationType->TooltipValue = "";
// Designation
$CCEStudents->Designation->HrefValue = "";
$CCEStudents->Designation->TooltipValue = "";
// Department
$CCEStudents->Department->HrefValue = "";
$CCEStudents->Department->TooltipValue = "";
// StudentNumber
$CCEStudents->StudentNumber->HrefValue = "";
$CCEStudents->StudentNumber->TooltipValue = "";
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->HrefValue = "";
$CCEStudents->CCEFacilitatorID->TooltipValue = "";
// Project
$CCEStudents->Project->HrefValue = "";
$CCEStudents->Project->TooltipValue = "";
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->HrefValue = "";
$CCEStudents->ProjectDiscipline->TooltipValue = "";
// ProjectCode
$CCEStudents->ProjectCode->HrefValue = "";
$CCEStudents->ProjectCode->TooltipValue = "";
// IDNumber
$CCEStudents->IDNumber->HrefValue = "";
$CCEStudents->IDNumber->TooltipValue = "";
// ECSARegistered
$CCEStudents->ECSARegistered->HrefValue = "";
$CCEStudents->ECSARegistered->TooltipValue = "";
// ECSACategory
$CCEStudents->ECSACategory->HrefValue = "";
$CCEStudents->ECSACategory->TooltipValue = "";
// ECSANumber
$CCEStudents->ECSANumber->HrefValue = "";
$CCEStudents->ECSANumber->TooltipValue = "";
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->HrefValue = "";
$CCEStudents->OtherStatutoryBodyRegistered->TooltipValue = "";
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->HrefValue = "";
$CCEStudents->OtherStatutoryBodyName->TooltipValue = "";
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->HrefValue = "";
$CCEStudents->OtherStatutoryBodyNumber->TooltipValue = "";
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->HrefValue = "";
$CCEStudents->OtherStatutoryBodyCategory->TooltipValue = "";
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->HrefValue = "";
$CCEStudents->CESAMemberFirm->TooltipValue = "";
// OtherCEFirms
$CCEStudents->OtherCEFirms->HrefValue = "";
$CCEStudents->OtherCEFirms->TooltipValue = "";
// Age
$CCEStudents->Age->HrefValue = "";
$CCEStudents->Age->TooltipValue = "";
// HighestQual
$CCEStudents->HighestQual->HrefValue = "";
$CCEStudents->HighestQual->TooltipValue = "";
// AreaDiscipline
$CCEStudents->AreaDiscipline->HrefValue = "";
$CCEStudents->AreaDiscipline->TooltipValue = "";
// Telephone
$CCEStudents->Telephone->HrefValue = "";
$CCEStudents->Telephone->TooltipValue = "";
// Cellphone
$CCEStudents->Cellphone->HrefValue = "";
$CCEStudents->Cellphone->TooltipValue = "";
// EmailAddress
$CCEStudents->EmailAddress->HrefValue = "";
$CCEStudents->EmailAddress->TooltipValue = "";
// EmailAddress2
$CCEStudents->EmailAddress2->HrefValue = "";
$CCEStudents->EmailAddress2->TooltipValue = "";
// HomeAddress
$CCEStudents->HomeAddress->HrefValue = "";
$CCEStudents->HomeAddress->TooltipValue = "";
// WorkAddress
$CCEStudents->WorkAddress->HrefValue = "";
$CCEStudents->WorkAddress->TooltipValue = "";
// PostalAddress
$CCEStudents->PostalAddress->HrefValue = "";
$CCEStudents->PostalAddress->TooltipValue = "";
// CESAAccountNo
$CCEStudents->CESAAccountNo->HrefValue = "";
$CCEStudents->CESAAccountNo->TooltipValue = "";
// VATNo
$CCEStudents->VATNo->HrefValue = "";
$CCEStudents->VATNo->TooltipValue = "";
// DietaryRequirements
$CCEStudents->DietaryRequirements->HrefValue = "";
$CCEStudents->DietaryRequirements->TooltipValue = "";
// OrderNo
$CCEStudents->OrderNo->HrefValue = "";
$CCEStudents->OrderNo->TooltipValue = "";
// BookedByName
$CCEStudents->BookedByName->HrefValue = "";
$CCEStudents->BookedByName->TooltipValue = "";
// BookedByDesignation
$CCEStudents->BookedByDesignation->HrefValue = "";
$CCEStudents->BookedByDesignation->TooltipValue = "";
// BookedByTelNo
$CCEStudents->BookedByTelNo->HrefValue = "";
$CCEStudents->BookedByTelNo->TooltipValue = "";
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->HrefValue = "";
$CCEStudents->BookedByFaxNo->TooltipValue = "";
// BookedByCellNo
$CCEStudents->BookedByCellNo->HrefValue = "";
$CCEStudents->BookedByCellNo->TooltipValue = "";
// BookedByEmail
$CCEStudents->BookedByEmail->HrefValue = "";
$CCEStudents->BookedByEmail->TooltipValue = "";
// WebUsername
$CCEStudents->WebUsername->HrefValue = "";
$CCEStudents->WebUsername->TooltipValue = "";
// WebPassword
$CCEStudents->WebPassword->HrefValue = "";
$CCEStudents->WebPassword->TooltipValue = "";
// MentorFirstName
$CCEStudents->MentorFirstName->HrefValue = "";
$CCEStudents->MentorFirstName->TooltipValue = "";
// MentorSurname
$CCEStudents->MentorSurname->HrefValue = "";
$CCEStudents->MentorSurname->TooltipValue = "";
// MentorCompany
$CCEStudents->MentorCompany->HrefValue = "";
$CCEStudents->MentorCompany->TooltipValue = "";
// MentorDesig
$CCEStudents->MentorDesig->HrefValue = "";
$CCEStudents->MentorDesig->TooltipValue = "";
// MentorTel
$CCEStudents->MentorTel->HrefValue = "";
$CCEStudents->MentorTel->TooltipValue = "";
// MentorCell
$CCEStudents->MentorCell->HrefValue = "";
$CCEStudents->MentorCell->TooltipValue = "";
// MentorEmail
$CCEStudents->MentorEmail->HrefValue = "";
$CCEStudents->MentorEmail->TooltipValue = "";
// HRManagerName
$CCEStudents->HRManagerName->HrefValue = "";
$CCEStudents->HRManagerName->TooltipValue = "";
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->HrefValue = "";
$CCEStudents->HRManagerDesignation->TooltipValue = "";
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->HrefValue = "";
$CCEStudents->HRManagerTelNo->TooltipValue = "";
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->HrefValue = "";
$CCEStudents->HRManagerCellNo->TooltipValue = "";
// HRManagerEmail
$CCEStudents->HRManagerEmail->HrefValue = "";
$CCEStudents->HRManagerEmail->TooltipValue = "";
// LengthEmploy
$CCEStudents->LengthEmploy->HrefValue = "";
$CCEStudents->LengthEmploy->TooltipValue = "";
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->HrefValue = "";
$CCEStudents->ResponsiblePayment->TooltipValue = "";
// BlockAccess
$CCEStudents->BlockAccess->HrefValue = "";
$CCEStudents->BlockAccess->TooltipValue = "";
// Accepted
$CCEStudents->Accepted->HrefValue = "";
$CCEStudents->Accepted->TooltipValue = "";
// Archived
$CCEStudents->Archived->HrefValue = "";
$CCEStudents->Archived->TooltipValue = "";
// Achieved
$CCEStudents->Achieved->HrefValue = "";
$CCEStudents->Achieved->TooltipValue = "";
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->HrefValue = "";
$CCEStudents->ReasonForLeaving->TooltipValue = "";
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->HrefValue = "";
$CCEStudents->ReasonNotAccepted->TooltipValue = "";
// ResultComments
$CCEStudents->ResultComments->HrefValue = "";
$CCEStudents->ResultComments->TooltipValue = "";
// ResultStatus
$CCEStudents->ResultStatus->HrefValue = "";
$CCEStudents->ResultStatus->TooltipValue = "";
// Cancelled
$CCEStudents->Cancelled->HrefValue = "";
$CCEStudents->Cancelled->TooltipValue = "";
// CancelledReason
$CCEStudents->CancelledReason->HrefValue = "";
$CCEStudents->CancelledReason->TooltipValue = "";
// Trimester1Report
if (!ew_Empty($CCEStudents->Trimester1Report->Upload->DbValue)) {
$CCEStudents->Trimester1Report->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->Trimester1Report->UploadPath) . ((!empty($CCEStudents->Trimester1Report->ViewValue)) ? $CCEStudents->Trimester1Report->ViewValue : $CCEStudents->Trimester1Report->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->Trimester1Report->HrefValue = ew_ConvertFullUrl($CCEStudents->Trimester1Report->HrefValue);
} else {
$CCEStudents->Trimester1Report->HrefValue = "";
}
$CCEStudents->Trimester1Report->TooltipValue = "";
// Trimester2Report
if (!ew_Empty($CCEStudents->Trimester2Report->Upload->DbValue)) {
$CCEStudents->Trimester2Report->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->Trimester2Report->UploadPath) . ((!empty($CCEStudents->Trimester2Report->ViewValue)) ? $CCEStudents->Trimester2Report->ViewValue : $CCEStudents->Trimester2Report->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->Trimester2Report->HrefValue = ew_ConvertFullUrl($CCEStudents->Trimester2Report->HrefValue);
} else {
$CCEStudents->Trimester2Report->HrefValue = "";
}
$CCEStudents->Trimester2Report->TooltipValue = "";
// Trimester3Report
if (!ew_Empty($CCEStudents->Trimester3Report->Upload->DbValue)) {
$CCEStudents->Trimester3Report->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->Trimester3Report->UploadPath) . ((!empty($CCEStudents->Trimester3Report->ViewValue)) ? $CCEStudents->Trimester3Report->ViewValue : $CCEStudents->Trimester3Report->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->Trimester3Report->HrefValue = ew_ConvertFullUrl($CCEStudents->Trimester3Report->HrefValue);
} else {
$CCEStudents->Trimester3Report->HrefValue = "";
}
$CCEStudents->Trimester3Report->TooltipValue = "";
// ExamResultLetter
if (!ew_Empty($CCEStudents->ExamResultLetter->Upload->DbValue)) {
$CCEStudents->ExamResultLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->ExamResultLetter->UploadPath) . ((!empty($CCEStudents->ExamResultLetter->ViewValue)) ? $CCEStudents->ExamResultLetter->ViewValue : $CCEStudents->ExamResultLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->ExamResultLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->ExamResultLetter->HrefValue);
} else {
$CCEStudents->ExamResultLetter->HrefValue = "";
}
$CCEStudents->ExamResultLetter->TooltipValue = "";
// SupplementalExamLetter
if (!ew_Empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) {
$CCEStudents->SupplementalExamLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->SupplementalExamLetter->UploadPath) . ((!empty($CCEStudents->SupplementalExamLetter->ViewValue)) ? $CCEStudents->SupplementalExamLetter->ViewValue : $CCEStudents->SupplementalExamLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->SupplementalExamLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->SupplementalExamLetter->HrefValue);
} else {
$CCEStudents->SupplementalExamLetter->HrefValue = "";
}
$CCEStudents->SupplementalExamLetter->TooltipValue = "";
} elseif ($CCEStudents->RowType == EW_ROWTYPE_ADD) { // Add row
// KnownAs
$CCEStudents->KnownAs->EditCustomAttributes = "";
$CCEStudents->KnownAs->EditValue = ew_HtmlEncode($CCEStudents->KnownAs->CurrentValue);
// FirstName
$CCEStudents->FirstName->EditCustomAttributes = "";
$CCEStudents->FirstName->EditValue = ew_HtmlEncode($CCEStudents->FirstName->CurrentValue);
// Surname
$CCEStudents->Surname->EditCustomAttributes = "";
$CCEStudents->Surname->EditValue = ew_HtmlEncode($CCEStudents->Surname->CurrentValue);
// Organisation
$CCEStudents->Organisation->EditCustomAttributes = "";
$CCEStudents->Organisation->EditValue = ew_HtmlEncode($CCEStudents->Organisation->CurrentValue);
// OrganisationType
$CCEStudents->OrganisationType->EditCustomAttributes = "";
$CCEStudents->OrganisationType->EditValue = ew_HtmlEncode($CCEStudents->OrganisationType->CurrentValue);
// Designation
$CCEStudents->Designation->EditCustomAttributes = "";
$CCEStudents->Designation->EditValue = ew_HtmlEncode($CCEStudents->Designation->CurrentValue);
// Department
$CCEStudents->Department->EditCustomAttributes = "";
$CCEStudents->Department->EditValue = ew_HtmlEncode($CCEStudents->Department->CurrentValue);
// StudentNumber
$CCEStudents->StudentNumber->EditCustomAttributes = "";
$CCEStudents->StudentNumber->EditValue = ew_HtmlEncode($CCEStudents->StudentNumber->CurrentValue);
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->EditCustomAttributes = "";
$CCEStudents->CCEFacilitatorID->EditValue = ew_HtmlEncode($CCEStudents->CCEFacilitatorID->CurrentValue);
if (strval($CCEStudents->CCEFacilitatorID->CurrentValue) <> "") {
$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($CCEStudents->CCEFacilitatorID->CurrentValue) . "";
$sSqlWrk = "SELECT `FacilitatorName` FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->CCEFacilitatorID->EditValue = $rswrk->fields('FacilitatorName');
$rswrk->Close();
} else {
$CCEStudents->CCEFacilitatorID->EditValue = $CCEStudents->CCEFacilitatorID->CurrentValue;
}
} else {
$CCEStudents->CCEFacilitatorID->EditValue = NULL;
}
// Project
$CCEStudents->Project->EditCustomAttributes = "";
$CCEStudents->Project->EditValue = ew_HtmlEncode($CCEStudents->Project->CurrentValue);
if (strval($CCEStudents->Project->CurrentValue) <> "") {
$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($CCEStudents->Project->CurrentValue) . "";
$sSqlWrk = "SELECT `Project` FROM `CCEProjects`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->Project->EditValue = $rswrk->fields('Project');
$rswrk->Close();
} else {
$CCEStudents->Project->EditValue = $CCEStudents->Project->CurrentValue;
}
} else {
$CCEStudents->Project->EditValue = NULL;
}
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->EditCustomAttributes = "";
$CCEStudents->ProjectDiscipline->EditValue = ew_HtmlEncode($CCEStudents->ProjectDiscipline->CurrentValue);
// ProjectCode
$CCEStudents->ProjectCode->EditCustomAttributes = "";
$CCEStudents->ProjectCode->EditValue = ew_HtmlEncode($CCEStudents->ProjectCode->CurrentValue);
// IDNumber
$CCEStudents->IDNumber->EditCustomAttributes = "";
$CCEStudents->IDNumber->EditValue = ew_HtmlEncode($CCEStudents->IDNumber->CurrentValue);
// ECSARegistered
$CCEStudents->ECSARegistered->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("n", "No");
$arwrk[] = array("y", "Yes");
$CCEStudents->ECSARegistered->EditValue = $arwrk;
// ECSACategory
$CCEStudents->ECSACategory->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `PicklistValue`, `PicklistLabel`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `Picklists`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "`Picklists`.`PicklistType` = 'ECSA Registration Categories'" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder` Asc";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
$CCEStudents->ECSACategory->EditValue = $arwrk;
// ECSANumber
$CCEStudents->ECSANumber->EditCustomAttributes = "";
$CCEStudents->ECSANumber->EditValue = ew_HtmlEncode($CCEStudents->ECSANumber->CurrentValue);
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$CCEStudents->OtherStatutoryBodyRegistered->EditValue = $arwrk;
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->EditCustomAttributes = "";
$CCEStudents->OtherStatutoryBodyName->EditValue = ew_HtmlEncode($CCEStudents->OtherStatutoryBodyName->CurrentValue);
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->EditCustomAttributes = "";
$CCEStudents->OtherStatutoryBodyNumber->EditValue = ew_HtmlEncode($CCEStudents->OtherStatutoryBodyNumber->CurrentValue);
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->EditCustomAttributes = "";
$CCEStudents->OtherStatutoryBodyCategory->EditValue = ew_HtmlEncode($CCEStudents->OtherStatutoryBodyCategory->CurrentValue);
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("n", "No");
$arwrk[] = array("y", "Yes");
$CCEStudents->CESAMemberFirm->EditValue = $arwrk;
// OtherCEFirms
$CCEStudents->OtherCEFirms->EditCustomAttributes = "";
$CCEStudents->OtherCEFirms->EditValue = ew_HtmlEncode($CCEStudents->OtherCEFirms->CurrentValue);
// Age
$CCEStudents->Age->EditCustomAttributes = "";
$CCEStudents->Age->EditValue = ew_HtmlEncode($CCEStudents->Age->CurrentValue);
// HighestQual
$CCEStudents->HighestQual->EditCustomAttributes = "";
$CCEStudents->HighestQual->EditValue = ew_HtmlEncode($CCEStudents->HighestQual->CurrentValue);
// AreaDiscipline
$CCEStudents->AreaDiscipline->EditCustomAttributes = "";
$CCEStudents->AreaDiscipline->EditValue = ew_HtmlEncode($CCEStudents->AreaDiscipline->CurrentValue);
// Telephone
$CCEStudents->Telephone->EditCustomAttributes = "";
$CCEStudents->Telephone->EditValue = ew_HtmlEncode($CCEStudents->Telephone->CurrentValue);
// Cellphone
$CCEStudents->Cellphone->EditCustomAttributes = "";
$CCEStudents->Cellphone->EditValue = ew_HtmlEncode($CCEStudents->Cellphone->CurrentValue);
// EmailAddress
$CCEStudents->EmailAddress->EditCustomAttributes = "";
$CCEStudents->EmailAddress->EditValue = ew_HtmlEncode($CCEStudents->EmailAddress->CurrentValue);
// EmailAddress2
$CCEStudents->EmailAddress2->EditCustomAttributes = "";
$CCEStudents->EmailAddress2->EditValue = ew_HtmlEncode($CCEStudents->EmailAddress2->CurrentValue);
// HomeAddress
$CCEStudents->HomeAddress->EditCustomAttributes = "";
$CCEStudents->HomeAddress->EditValue = ew_HtmlEncode($CCEStudents->HomeAddress->CurrentValue);
// WorkAddress
$CCEStudents->WorkAddress->EditCustomAttributes = "";
$CCEStudents->WorkAddress->EditValue = ew_HtmlEncode($CCEStudents->WorkAddress->CurrentValue);
// PostalAddress
$CCEStudents->PostalAddress->EditCustomAttributes = "";
$CCEStudents->PostalAddress->EditValue = ew_HtmlEncode($CCEStudents->PostalAddress->CurrentValue);
// CESAAccountNo
$CCEStudents->CESAAccountNo->EditCustomAttributes = "";
$CCEStudents->CESAAccountNo->EditValue = ew_HtmlEncode($CCEStudents->CESAAccountNo->CurrentValue);
// VATNo
$CCEStudents->VATNo->EditCustomAttributes = "";
$CCEStudents->VATNo->EditValue = ew_HtmlEncode($CCEStudents->VATNo->CurrentValue);
// DietaryRequirements
$CCEStudents->DietaryRequirements->EditCustomAttributes = "";
$CCEStudents->DietaryRequirements->EditValue = ew_HtmlEncode($CCEStudents->DietaryRequirements->CurrentValue);
// OrderNo
$CCEStudents->OrderNo->EditCustomAttributes = "";
$CCEStudents->OrderNo->EditValue = ew_HtmlEncode($CCEStudents->OrderNo->CurrentValue);
// BookedByName
$CCEStudents->BookedByName->EditCustomAttributes = "";
$CCEStudents->BookedByName->EditValue = ew_HtmlEncode($CCEStudents->BookedByName->CurrentValue);
// BookedByDesignation
$CCEStudents->BookedByDesignation->EditCustomAttributes = "";
$CCEStudents->BookedByDesignation->EditValue = ew_HtmlEncode($CCEStudents->BookedByDesignation->CurrentValue);
// BookedByTelNo
$CCEStudents->BookedByTelNo->EditCustomAttributes = "";
$CCEStudents->BookedByTelNo->EditValue = ew_HtmlEncode($CCEStudents->BookedByTelNo->CurrentValue);
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->EditCustomAttributes = "";
$CCEStudents->BookedByFaxNo->EditValue = ew_HtmlEncode($CCEStudents->BookedByFaxNo->CurrentValue);
// BookedByCellNo
$CCEStudents->BookedByCellNo->EditCustomAttributes = "";
$CCEStudents->BookedByCellNo->EditValue = ew_HtmlEncode($CCEStudents->BookedByCellNo->CurrentValue);
// BookedByEmail
$CCEStudents->BookedByEmail->EditCustomAttributes = "";
$CCEStudents->BookedByEmail->EditValue = ew_HtmlEncode($CCEStudents->BookedByEmail->CurrentValue);
// WebUsername
$CCEStudents->WebUsername->EditCustomAttributes = "";
$CCEStudents->WebUsername->EditValue = ew_HtmlEncode($CCEStudents->WebUsername->CurrentValue);
// WebPassword
$CCEStudents->WebPassword->EditCustomAttributes = "";
$CCEStudents->WebPassword->EditValue = ew_HtmlEncode($CCEStudents->WebPassword->CurrentValue);
// MentorFirstName
$CCEStudents->MentorFirstName->EditCustomAttributes = "";
$CCEStudents->MentorFirstName->EditValue = ew_HtmlEncode($CCEStudents->MentorFirstName->CurrentValue);
// MentorSurname
$CCEStudents->MentorSurname->EditCustomAttributes = "";
$CCEStudents->MentorSurname->EditValue = ew_HtmlEncode($CCEStudents->MentorSurname->CurrentValue);
// MentorCompany
$CCEStudents->MentorCompany->EditCustomAttributes = "";
$CCEStudents->MentorCompany->EditValue = ew_HtmlEncode($CCEStudents->MentorCompany->CurrentValue);
// MentorDesig
$CCEStudents->MentorDesig->EditCustomAttributes = "";
$CCEStudents->MentorDesig->EditValue = ew_HtmlEncode($CCEStudents->MentorDesig->CurrentValue);
// MentorTel
$CCEStudents->MentorTel->EditCustomAttributes = "";
$CCEStudents->MentorTel->EditValue = ew_HtmlEncode($CCEStudents->MentorTel->CurrentValue);
// MentorCell
$CCEStudents->MentorCell->EditCustomAttributes = "";
$CCEStudents->MentorCell->EditValue = ew_HtmlEncode($CCEStudents->MentorCell->CurrentValue);
// MentorEmail
$CCEStudents->MentorEmail->EditCustomAttributes = "";
$CCEStudents->MentorEmail->EditValue = ew_HtmlEncode($CCEStudents->MentorEmail->CurrentValue);
// HRManagerName
$CCEStudents->HRManagerName->EditCustomAttributes = "";
$CCEStudents->HRManagerName->EditValue = ew_HtmlEncode($CCEStudents->HRManagerName->CurrentValue);
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->EditCustomAttributes = "";
$CCEStudents->HRManagerDesignation->EditValue = ew_HtmlEncode($CCEStudents->HRManagerDesignation->CurrentValue);
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->EditCustomAttributes = "";
$CCEStudents->HRManagerTelNo->EditValue = ew_HtmlEncode($CCEStudents->HRManagerTelNo->CurrentValue);
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->EditCustomAttributes = "";
$CCEStudents->HRManagerCellNo->EditValue = ew_HtmlEncode($CCEStudents->HRManagerCellNo->CurrentValue);
// HRManagerEmail
$CCEStudents->HRManagerEmail->EditCustomAttributes = "";
$CCEStudents->HRManagerEmail->EditValue = ew_HtmlEncode($CCEStudents->HRManagerEmail->CurrentValue);
// LengthEmploy
$CCEStudents->LengthEmploy->EditCustomAttributes = "";
$CCEStudents->LengthEmploy->EditValue = ew_HtmlEncode($CCEStudents->LengthEmploy->CurrentValue);
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->EditCustomAttributes = "";
$CCEStudents->ResponsiblePayment->EditValue = ew_HtmlEncode($CCEStudents->ResponsiblePayment->CurrentValue);
// BlockAccess
$CCEStudents->BlockAccess->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("y", "Yes");
$arwrk[] = array("n", "No");
$CCEStudents->BlockAccess->EditValue = $arwrk;
// Accepted
$CCEStudents->Accepted->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$CCEStudents->Accepted->EditValue = $arwrk;
// Archived
$CCEStudents->Archived->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$CCEStudents->Archived->EditValue = $arwrk;
// Achieved
$CCEStudents->Achieved->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$CCEStudents->Achieved->EditValue = $arwrk;
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->EditCustomAttributes = "";
$CCEStudents->ReasonForLeaving->EditValue = ew_HtmlEncode($CCEStudents->ReasonForLeaving->CurrentValue);
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->EditCustomAttributes = "";
$CCEStudents->ReasonNotAccepted->EditValue = ew_HtmlEncode($CCEStudents->ReasonNotAccepted->CurrentValue);
// ResultComments
$CCEStudents->ResultComments->EditCustomAttributes = "";
$CCEStudents->ResultComments->EditValue = ew_HtmlEncode($CCEStudents->ResultComments->CurrentValue);
// ResultStatus
$CCEStudents->ResultStatus->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("", "No Result Yet");
$arwrk[] = array("P", "Passed");
$arwrk[] = array("S", "Pending Supplementary Exams");
$CCEStudents->ResultStatus->EditValue = $arwrk;
// Cancelled
$CCEStudents->Cancelled->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Cancelled");
$arwrk[] = array("0", "Not Cancelled");
$CCEStudents->Cancelled->EditValue = $arwrk;
// CancelledReason
$CCEStudents->CancelledReason->EditCustomAttributes = "";
$CCEStudents->CancelledReason->EditValue = ew_HtmlEncode($CCEStudents->CancelledReason->CurrentValue);
// Trimester1Report
$CCEStudents->Trimester1Report->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->Trimester1Report->Upload->DbValue)) {
$CCEStudents->Trimester1Report->EditValue = $CCEStudents->Trimester1Report->Upload->DbValue;
} else {
$CCEStudents->Trimester1Report->EditValue = "";
}
// Trimester2Report
$CCEStudents->Trimester2Report->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->Trimester2Report->Upload->DbValue)) {
$CCEStudents->Trimester2Report->EditValue = $CCEStudents->Trimester2Report->Upload->DbValue;
} else {
$CCEStudents->Trimester2Report->EditValue = "";
}
// Trimester3Report
$CCEStudents->Trimester3Report->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->Trimester3Report->Upload->DbValue)) {
$CCEStudents->Trimester3Report->EditValue = $CCEStudents->Trimester3Report->Upload->DbValue;
} else {
$CCEStudents->Trimester3Report->EditValue = "";
}
// ExamResultLetter
$CCEStudents->ExamResultLetter->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->ExamResultLetter->Upload->DbValue)) {
$CCEStudents->ExamResultLetter->EditValue = $CCEStudents->ExamResultLetter->Upload->DbValue;
} else {
$CCEStudents->ExamResultLetter->EditValue = "";
}
// SupplementalExamLetter
$CCEStudents->SupplementalExamLetter->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) {
$CCEStudents->SupplementalExamLetter->EditValue = $CCEStudents->SupplementalExamLetter->Upload->DbValue;
} else {
$CCEStudents->SupplementalExamLetter->EditValue = "";
}
}
// Call Row Rendered event
if ($CCEStudents->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$CCEStudents->Row_Rendered();
}
// Validate form
function ValidateForm() {
global $Language, $gsFormError, $CCEStudents;
// Initialize form error message
$gsFormError = "";
if (!ew_CheckFileType($CCEStudents->Trimester1Report->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->Trimester1Report->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->Trimester1Report->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->Trimester1Report->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->Trimester1Report->Upload->Error);
}
if (!ew_CheckFileType($CCEStudents->Trimester2Report->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->Trimester2Report->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->Trimester2Report->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->Trimester2Report->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->Trimester2Report->Upload->Error);
}
if (!ew_CheckFileType($CCEStudents->Trimester3Report->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->Trimester3Report->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->Trimester3Report->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->Trimester3Report->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->Trimester3Report->Upload->Error);
}
if (!ew_CheckFileType($CCEStudents->ExamResultLetter->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->ExamResultLetter->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->ExamResultLetter->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->ExamResultLetter->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->ExamResultLetter->Upload->Error);
}
if (!ew_CheckFileType($CCEStudents->SupplementalExamLetter->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->SupplementalExamLetter->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->SupplementalExamLetter->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->SupplementalExamLetter->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->SupplementalExamLetter->Upload->Error);
}
// Check if validation required
if (!EW_SERVER_VALIDATE)
return ($gsFormError == "");
if (!is_null($CCEStudents->FirstName->FormValue) && $CCEStudents->FirstName->FormValue == "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $CCEStudents->FirstName->FldCaption();
}
if (!is_null($CCEStudents->Surname->FormValue) && $CCEStudents->Surname->FormValue == "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $CCEStudents->Surname->FldCaption();
}
if (!ew_CheckInteger($CCEStudents->CCEFacilitatorID->FormValue)) {
if ($gsFormError <> "") $gsFormError .= "<br>";
$gsFormError .= $CCEStudents->CCEFacilitatorID->FldErrMsg();
}
if (!ew_CheckInteger($CCEStudents->Project->FormValue)) {
if ($gsFormError <> "") $gsFormError .= "<br>";
$gsFormError .= $CCEStudents->Project->FldErrMsg();
}
if (!ew_CheckInteger($CCEStudents->Age->FormValue)) {
if ($gsFormError <> "") $gsFormError .= "<br>";
$gsFormError .= $CCEStudents->Age->FldErrMsg();
}
// Return validate result
$ValidateForm = ($gsFormError == "");
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError <> "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $sFormCustomError;
}
return $ValidateForm;
}
// Add record
function AddRow() {
global $conn, $Language, $Security, $CCEStudents;
$rsnew = array();
// KnownAs
$CCEStudents->KnownAs->SetDbValueDef($rsnew, $CCEStudents->KnownAs->CurrentValue, NULL, FALSE);
// FirstName
$CCEStudents->FirstName->SetDbValueDef($rsnew, $CCEStudents->FirstName->CurrentValue, "", FALSE);
// Surname
$CCEStudents->Surname->SetDbValueDef($rsnew, $CCEStudents->Surname->CurrentValue, "", FALSE);
// Organisation
$CCEStudents->Organisation->SetDbValueDef($rsnew, $CCEStudents->Organisation->CurrentValue, NULL, FALSE);
// OrganisationType
$CCEStudents->OrganisationType->SetDbValueDef($rsnew, $CCEStudents->OrganisationType->CurrentValue, NULL, FALSE);
// Designation
$CCEStudents->Designation->SetDbValueDef($rsnew, $CCEStudents->Designation->CurrentValue, NULL, FALSE);
// Department
$CCEStudents->Department->SetDbValueDef($rsnew, $CCEStudents->Department->CurrentValue, NULL, FALSE);
// StudentNumber
$CCEStudents->StudentNumber->SetDbValueDef($rsnew, $CCEStudents->StudentNumber->CurrentValue, NULL, FALSE);
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->SetDbValueDef($rsnew, $CCEStudents->CCEFacilitatorID->CurrentValue, NULL, FALSE);
// Project
$CCEStudents->Project->SetDbValueDef($rsnew, $CCEStudents->Project->CurrentValue, NULL, FALSE);
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->SetDbValueDef($rsnew, $CCEStudents->ProjectDiscipline->CurrentValue, NULL, FALSE);
// ProjectCode
$CCEStudents->ProjectCode->SetDbValueDef($rsnew, $CCEStudents->ProjectCode->CurrentValue, NULL, FALSE);
// IDNumber
$CCEStudents->IDNumber->SetDbValueDef($rsnew, $CCEStudents->IDNumber->CurrentValue, NULL, FALSE);
// ECSARegistered
$CCEStudents->ECSARegistered->SetDbValueDef($rsnew, $CCEStudents->ECSARegistered->CurrentValue, NULL, TRUE);
// ECSACategory
$CCEStudents->ECSACategory->SetDbValueDef($rsnew, $CCEStudents->ECSACategory->CurrentValue, NULL, FALSE);
// ECSANumber
$CCEStudents->ECSANumber->SetDbValueDef($rsnew, $CCEStudents->ECSANumber->CurrentValue, NULL, FALSE);
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->SetDbValueDef($rsnew, $CCEStudents->OtherStatutoryBodyRegistered->CurrentValue, 0, TRUE);
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->SetDbValueDef($rsnew, $CCEStudents->OtherStatutoryBodyName->CurrentValue, NULL, FALSE);
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->SetDbValueDef($rsnew, $CCEStudents->OtherStatutoryBodyNumber->CurrentValue, NULL, FALSE);
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->SetDbValueDef($rsnew, $CCEStudents->OtherStatutoryBodyCategory->CurrentValue, NULL, FALSE);
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->SetDbValueDef($rsnew, $CCEStudents->CESAMemberFirm->CurrentValue, NULL, FALSE);
// OtherCEFirms
$CCEStudents->OtherCEFirms->SetDbValueDef($rsnew, $CCEStudents->OtherCEFirms->CurrentValue, NULL, FALSE);
// Age
$CCEStudents->Age->SetDbValueDef($rsnew, $CCEStudents->Age->CurrentValue, NULL, FALSE);
// HighestQual
$CCEStudents->HighestQual->SetDbValueDef($rsnew, $CCEStudents->HighestQual->CurrentValue, NULL, FALSE);
// AreaDiscipline
$CCEStudents->AreaDiscipline->SetDbValueDef($rsnew, $CCEStudents->AreaDiscipline->CurrentValue, NULL, FALSE);
// Telephone
$CCEStudents->Telephone->SetDbValueDef($rsnew, $CCEStudents->Telephone->CurrentValue, NULL, FALSE);
// Cellphone
$CCEStudents->Cellphone->SetDbValueDef($rsnew, $CCEStudents->Cellphone->CurrentValue, NULL, FALSE);
// EmailAddress
$CCEStudents->EmailAddress->SetDbValueDef($rsnew, $CCEStudents->EmailAddress->CurrentValue, NULL, FALSE);
// EmailAddress2
$CCEStudents->EmailAddress2->SetDbValueDef($rsnew, $CCEStudents->EmailAddress2->CurrentValue, NULL, FALSE);
// HomeAddress
$CCEStudents->HomeAddress->SetDbValueDef($rsnew, $CCEStudents->HomeAddress->CurrentValue, NULL, FALSE);
// WorkAddress
$CCEStudents->WorkAddress->SetDbValueDef($rsnew, $CCEStudents->WorkAddress->CurrentValue, NULL, FALSE);
// PostalAddress
$CCEStudents->PostalAddress->SetDbValueDef($rsnew, $CCEStudents->PostalAddress->CurrentValue, NULL, FALSE);
// CESAAccountNo
$CCEStudents->CESAAccountNo->SetDbValueDef($rsnew, $CCEStudents->CESAAccountNo->CurrentValue, NULL, FALSE);
// VATNo
$CCEStudents->VATNo->SetDbValueDef($rsnew, $CCEStudents->VATNo->CurrentValue, NULL, FALSE);
// DietaryRequirements
$CCEStudents->DietaryRequirements->SetDbValueDef($rsnew, $CCEStudents->DietaryRequirements->CurrentValue, NULL, FALSE);
// OrderNo
$CCEStudents->OrderNo->SetDbValueDef($rsnew, $CCEStudents->OrderNo->CurrentValue, NULL, FALSE);
// BookedByName
$CCEStudents->BookedByName->SetDbValueDef($rsnew, $CCEStudents->BookedByName->CurrentValue, NULL, FALSE);
// BookedByDesignation
$CCEStudents->BookedByDesignation->SetDbValueDef($rsnew, $CCEStudents->BookedByDesignation->CurrentValue, NULL, FALSE);
// BookedByTelNo
$CCEStudents->BookedByTelNo->SetDbValueDef($rsnew, $CCEStudents->BookedByTelNo->CurrentValue, NULL, FALSE);
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->SetDbValueDef($rsnew, $CCEStudents->BookedByFaxNo->CurrentValue, NULL, FALSE);
// BookedByCellNo
$CCEStudents->BookedByCellNo->SetDbValueDef($rsnew, $CCEStudents->BookedByCellNo->CurrentValue, NULL, FALSE);
// BookedByEmail
$CCEStudents->BookedByEmail->SetDbValueDef($rsnew, $CCEStudents->BookedByEmail->CurrentValue, NULL, FALSE);
// WebUsername
$CCEStudents->WebUsername->SetDbValueDef($rsnew, $CCEStudents->WebUsername->CurrentValue, NULL, FALSE);
// WebPassword
$CCEStudents->WebPassword->SetDbValueDef($rsnew, $CCEStudents->WebPassword->CurrentValue, NULL, FALSE);
// MentorFirstName
$CCEStudents->MentorFirstName->SetDbValueDef($rsnew, $CCEStudents->MentorFirstName->CurrentValue, NULL, FALSE);
// MentorSurname
$CCEStudents->MentorSurname->SetDbValueDef($rsnew, $CCEStudents->MentorSurname->CurrentValue, NULL, FALSE);
// MentorCompany
$CCEStudents->MentorCompany->SetDbValueDef($rsnew, $CCEStudents->MentorCompany->CurrentValue, NULL, FALSE);
// MentorDesig
$CCEStudents->MentorDesig->SetDbValueDef($rsnew, $CCEStudents->MentorDesig->CurrentValue, NULL, FALSE);
// MentorTel
$CCEStudents->MentorTel->SetDbValueDef($rsnew, $CCEStudents->MentorTel->CurrentValue, NULL, FALSE);
// MentorCell
$CCEStudents->MentorCell->SetDbValueDef($rsnew, $CCEStudents->MentorCell->CurrentValue, NULL, FALSE);
// MentorEmail
$CCEStudents->MentorEmail->SetDbValueDef($rsnew, $CCEStudents->MentorEmail->CurrentValue, NULL, FALSE);
// HRManagerName
$CCEStudents->HRManagerName->SetDbValueDef($rsnew, $CCEStudents->HRManagerName->CurrentValue, NULL, FALSE);
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->SetDbValueDef($rsnew, $CCEStudents->HRManagerDesignation->CurrentValue, NULL, FALSE);
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->SetDbValueDef($rsnew, $CCEStudents->HRManagerTelNo->CurrentValue, NULL, FALSE);
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->SetDbValueDef($rsnew, $CCEStudents->HRManagerCellNo->CurrentValue, NULL, FALSE);
// HRManagerEmail
$CCEStudents->HRManagerEmail->SetDbValueDef($rsnew, $CCEStudents->HRManagerEmail->CurrentValue, NULL, FALSE);
// LengthEmploy
$CCEStudents->LengthEmploy->SetDbValueDef($rsnew, $CCEStudents->LengthEmploy->CurrentValue, NULL, FALSE);
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->SetDbValueDef($rsnew, $CCEStudents->ResponsiblePayment->CurrentValue, NULL, FALSE);
// BlockAccess
$CCEStudents->BlockAccess->SetDbValueDef($rsnew, $CCEStudents->BlockAccess->CurrentValue, "", TRUE);
// Accepted
$CCEStudents->Accepted->SetDbValueDef($rsnew, $CCEStudents->Accepted->CurrentValue, 0, TRUE);
// Archived
$CCEStudents->Archived->SetDbValueDef($rsnew, $CCEStudents->Archived->CurrentValue, 0, TRUE);
// Achieved
$CCEStudents->Achieved->SetDbValueDef($rsnew, $CCEStudents->Achieved->CurrentValue, 0, TRUE);
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->SetDbValueDef($rsnew, $CCEStudents->ReasonForLeaving->CurrentValue, NULL, FALSE);
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->SetDbValueDef($rsnew, $CCEStudents->ReasonNotAccepted->CurrentValue, NULL, FALSE);
// ResultComments
$CCEStudents->ResultComments->SetDbValueDef($rsnew, $CCEStudents->ResultComments->CurrentValue, NULL, FALSE);
// ResultStatus
$CCEStudents->ResultStatus->SetDbValueDef($rsnew, $CCEStudents->ResultStatus->CurrentValue, NULL, FALSE);
// Cancelled
$CCEStudents->Cancelled->SetDbValueDef($rsnew, $CCEStudents->Cancelled->CurrentValue, NULL, TRUE);
// CancelledReason
$CCEStudents->CancelledReason->SetDbValueDef($rsnew, $CCEStudents->CancelledReason->CurrentValue, NULL, FALSE);
// Trimester1Report
$CCEStudents->Trimester1Report->Upload->SaveToSession(); // Save file value to Session
if (is_null($CCEStudents->Trimester1Report->Upload->Value)) {
$rsnew['Trimester1Report'] = NULL;
} else {
$rsnew['Trimester1Report'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->Trimester1Report->UploadPath), $CCEStudents->Trimester1Report->Upload->FileName);
}
// Trimester2Report
$CCEStudents->Trimester2Report->Upload->SaveToSession(); // Save file value to Session
if (is_null($CCEStudents->Trimester2Report->Upload->Value)) {
$rsnew['Trimester2Report'] = NULL;
} else {
$rsnew['Trimester2Report'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->Trimester2Report->UploadPath), $CCEStudents->Trimester2Report->Upload->FileName);
}
// Trimester3Report
$CCEStudents->Trimester3Report->Upload->SaveToSession(); // Save file value to Session
if (is_null($CCEStudents->Trimester3Report->Upload->Value)) {
$rsnew['Trimester3Report'] = NULL;
} else {
$rsnew['Trimester3Report'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->Trimester3Report->UploadPath), $CCEStudents->Trimester3Report->Upload->FileName);
}
// ExamResultLetter
$CCEStudents->ExamResultLetter->Upload->SaveToSession(); // Save file value to Session
if (is_null($CCEStudents->ExamResultLetter->Upload->Value)) {
$rsnew['ExamResultLetter'] = NULL;
} else {
$rsnew['ExamResultLetter'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->ExamResultLetter->UploadPath), $CCEStudents->ExamResultLetter->Upload->FileName);
}
// SupplementalExamLetter
$CCEStudents->SupplementalExamLetter->Upload->SaveToSession(); // Save file value to Session
if (is_null($CCEStudents->SupplementalExamLetter->Upload->Value)) {
$rsnew['SupplementalExamLetter'] = NULL;
} else {
$rsnew['SupplementalExamLetter'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->SupplementalExamLetter->UploadPath), $CCEStudents->SupplementalExamLetter->Upload->FileName);
}
// Call Row Inserting event
$bInsertRow = $CCEStudents->Row_Inserting($rsnew);
if ($bInsertRow) {
if (!ew_Empty($CCEStudents->Trimester1Report->Upload->Value)) {
if ($CCEStudents->Trimester1Report->Upload->FileName == $CCEStudents->Trimester1Report->Upload->DbValue) { // Overwrite if same file name
$CCEStudents->Trimester1Report->Upload->SaveToFile($CCEStudents->Trimester1Report->UploadPath, $rsnew['Trimester1Report'], TRUE);
$CCEStudents->Trimester1Report->Upload->DbValue = ""; // No need to delete any more
} else {
$CCEStudents->Trimester1Report->Upload->SaveToFile($CCEStudents->Trimester1Report->UploadPath, $rsnew['Trimester1Report'], FALSE);
}
}
if ($CCEStudents->Trimester1Report->Upload->Action == "2" || $CCEStudents->Trimester1Report->Upload->Action == "3") { // Update/Remove
if ($CCEStudents->Trimester1Report->Upload->DbValue <> "")
@unlink(ew_UploadPathEx(TRUE, $CCEStudents->Trimester1Report->UploadPath) . $CCEStudents->Trimester1Report->Upload->DbValue);
}
if (!ew_Empty($CCEStudents->Trimester2Report->Upload->Value)) {
if ($CCEStudents->Trimester2Report->Upload->FileName == $CCEStudents->Trimester2Report->Upload->DbValue) { // Overwrite if same file name
$CCEStudents->Trimester2Report->Upload->SaveToFile($CCEStudents->Trimester2Report->UploadPath, $rsnew['Trimester2Report'], TRUE);
$CCEStudents->Trimester2Report->Upload->DbValue = ""; // No need to delete any more
} else {
$CCEStudents->Trimester2Report->Upload->SaveToFile($CCEStudents->Trimester2Report->UploadPath, $rsnew['Trimester2Report'], FALSE);
}
}
if ($CCEStudents->Trimester2Report->Upload->Action == "2" || $CCEStudents->Trimester2Report->Upload->Action == "3") { // Update/Remove
if ($CCEStudents->Trimester2Report->Upload->DbValue <> "")
@unlink(ew_UploadPathEx(TRUE, $CCEStudents->Trimester2Report->UploadPath) . $CCEStudents->Trimester2Report->Upload->DbValue);
}
if (!ew_Empty($CCEStudents->Trimester3Report->Upload->Value)) {
if ($CCEStudents->Trimester3Report->Upload->FileName == $CCEStudents->Trimester3Report->Upload->DbValue) { // Overwrite if same file name
$CCEStudents->Trimester3Report->Upload->SaveToFile($CCEStudents->Trimester3Report->UploadPath, $rsnew['Trimester3Report'], TRUE);
$CCEStudents->Trimester3Report->Upload->DbValue = ""; // No need to delete any more
} else {
$CCEStudents->Trimester3Report->Upload->SaveToFile($CCEStudents->Trimester3Report->UploadPath, $rsnew['Trimester3Report'], FALSE);
}
}
if ($CCEStudents->Trimester3Report->Upload->Action == "2" || $CCEStudents->Trimester3Report->Upload->Action == "3") { // Update/Remove
if ($CCEStudents->Trimester3Report->Upload->DbValue <> "")
@unlink(ew_UploadPathEx(TRUE, $CCEStudents->Trimester3Report->UploadPath) . $CCEStudents->Trimester3Report->Upload->DbValue);
}
if (!ew_Empty($CCEStudents->ExamResultLetter->Upload->Value)) {
if ($CCEStudents->ExamResultLetter->Upload->FileName == $CCEStudents->ExamResultLetter->Upload->DbValue) { // Overwrite if same file name
$CCEStudents->ExamResultLetter->Upload->SaveToFile($CCEStudents->ExamResultLetter->UploadPath, $rsnew['ExamResultLetter'], TRUE);
$CCEStudents->ExamResultLetter->Upload->DbValue = ""; // No need to delete any more
} else {
$CCEStudents->ExamResultLetter->Upload->SaveToFile($CCEStudents->ExamResultLetter->UploadPath, $rsnew['ExamResultLetter'], FALSE);
}
}
if ($CCEStudents->ExamResultLetter->Upload->Action == "2" || $CCEStudents->ExamResultLetter->Upload->Action == "3") { // Update/Remove
if ($CCEStudents->ExamResultLetter->Upload->DbValue <> "")
@unlink(ew_UploadPathEx(TRUE, $CCEStudents->ExamResultLetter->UploadPath) . $CCEStudents->ExamResultLetter->Upload->DbValue);
}
if (!ew_Empty($CCEStudents->SupplementalExamLetter->Upload->Value)) {
if ($CCEStudents->SupplementalExamLetter->Upload->FileName == $CCEStudents->SupplementalExamLetter->Upload->DbValue) { // Overwrite if same file name
$CCEStudents->SupplementalExamLetter->Upload->SaveToFile($CCEStudents->SupplementalExamLetter->UploadPath, $rsnew['SupplementalExamLetter'], TRUE);
$CCEStudents->SupplementalExamLetter->Upload->DbValue = ""; // No need to delete any more
} else {
$CCEStudents->SupplementalExamLetter->Upload->SaveToFile($CCEStudents->SupplementalExamLetter->UploadPath, $rsnew['SupplementalExamLetter'], FALSE);
}
}
if ($CCEStudents->SupplementalExamLetter->Upload->Action == "2" || $CCEStudents->SupplementalExamLetter->Upload->Action == "3") { // Update/Remove
if ($CCEStudents->SupplementalExamLetter->Upload->DbValue <> "")
@unlink(ew_UploadPathEx(TRUE, $CCEStudents->SupplementalExamLetter->UploadPath) . $CCEStudents->SupplementalExamLetter->Upload->DbValue);
}
$conn->raiseErrorFn = 'ew_ErrorFn';
$AddRow = $conn->Execute($CCEStudents->InsertSQL($rsnew));
$conn->raiseErrorFn = '';
} else {
if ($CCEStudents->CancelMessage <> "") {
$this->setMessage($CCEStudents->CancelMessage);
$CCEStudents->CancelMessage = "";
} else {
$this->setMessage($Language->Phrase("InsertCancelled"));
}
$AddRow = FALSE;
}
if ($AddRow) {
$CCEStudents->CCEStudentID->setDbValue($conn->Insert_ID());
$rsnew['CCEStudentID'] = $CCEStudents->CCEStudentID->DbValue;
// Call Row Inserted event
$CCEStudents->Row_Inserted($rsnew);
}
// Trimester1Report
$CCEStudents->Trimester1Report->Upload->RemoveFromSession(); // Remove file value from Session
// Trimester2Report
$CCEStudents->Trimester2Report->Upload->RemoveFromSession(); // Remove file value from Session
// Trimester3Report
$CCEStudents->Trimester3Report->Upload->RemoveFromSession(); // Remove file value from Session
// ExamResultLetter
$CCEStudents->ExamResultLetter->Upload->RemoveFromSession(); // Remove file value from Session
// SupplementalExamLetter
$CCEStudents->SupplementalExamLetter->Upload->RemoveFromSession(); // Remove file value from Session
return $AddRow;
}
// 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";
}
// Form Custom Validate event
function Form_CustomValidate(&$CustomError) {
// Return error message in CustomError
return TRUE;
}
}
?>