| Current Path : /var/www/cesa.co.za/cceconvenors/ |
| Current File : /var/www/cesa.co.za/cceconvenors/CCEStudentsedit.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 "CCEFacilitatorUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
// Create page object
$CCEStudents_edit = new cCCEStudents_edit();
$Page =& $CCEStudents_edit;
// Page init
$CCEStudents_edit->Page_Init();
// Page main
$CCEStudents_edit->Page_Main();
?>
<?php include "header.php" ?>
<script type="text/javascript">
<!--
// Create page object
var CCEStudents_edit = new ew_Page("CCEStudents_edit");
// page properties
CCEStudents_edit.PageID = "edit"; // page ID
CCEStudents_edit.FormID = "fCCEStudentsedit"; // form ID
var EW_PAGE_ID = CCEStudents_edit.PageID; // for backward compatibility
// extend page with ValidateForm function
CCEStudents_edit.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 + "_CVFile"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_QualCertificate1"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_QualCertificate2"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_QualCertificate3"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_MemorandumFile"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_AgreementFile"];
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_edit.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_edit.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
CCEStudents_edit.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("Edit") ?> <?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_edit->ShowMessage();
?>
<form name="fCCEStudentsedit" id="fCCEStudentsedit" action="<?php echo ew_CurrentPage() ?>" method="post" enctype="multipart/form-data" onsubmit="return CCEStudents_edit.ValidateForm(this);">
<p>
<input type="hidden" name="a_table" id="a_table" value="CCEStudents">
<input type="hidden" name="a_edit" id="a_edit" value="U">
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<input type="hidden" name="x_CCEStudentID" id="x_CCEStudentID" value="<?php echo ew_HtmlEncode($CCEStudents->CCEStudentID->CurrentValue) ?>">
<?php if ($CCEStudents->Title->Visible) { // Title ?>
<tr<?php echo $CCEStudents->Title->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Title->FldCaption() ?></td>
<td<?php echo $CCEStudents->Title->CellAttributes() ?>><span id="el_Title">
<input type="text" name="x_Title" id="x_Title" title="<?php echo $CCEStudents->Title->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCEStudents->Title->EditValue ?>"<?php echo $CCEStudents->Title->EditAttributes() ?>>
</span><?php echo $CCEStudents->Title->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->FirstName->Visible) { // FirstName ?>
<tr<?php echo $CCEStudents->FirstName->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->Surname->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->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $CCEStudents->KnownAs->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->StudentNumber->Visible) { // StudentNumber ?>
<tr<?php echo $CCEStudents->StudentNumber->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->CCEFacilitatorID->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CCEFacilitatorID->FldCaption() ?></td>
<td<?php echo $CCEStudents->CCEFacilitatorID->CellAttributes() ?>><span id="el_CCEFacilitatorID">
<input type="text" name="x_CCEFacilitatorID" id="x_CCEFacilitatorID" title="<?php echo $CCEStudents->CCEFacilitatorID->FldTitle() ?>" size="30" value="<?php echo $CCEStudents->CCEFacilitatorID->EditValue ?>"<?php echo $CCEStudents->CCEFacilitatorID->EditAttributes() ?>>
</span><?php echo $CCEStudents->CCEFacilitatorID->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->Project->Visible) { // Project ?>
<tr<?php echo $CCEStudents->Project->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Project->FldCaption() ?></td>
<td<?php echo $CCEStudents->Project->CellAttributes() ?>><span id="el_Project">
<input type="text" name="x_Project" id="x_Project" title="<?php echo $CCEStudents->Project->FldTitle() ?>" size="30" value="<?php echo $CCEStudents->Project->EditValue ?>"<?php echo $CCEStudents->Project->EditAttributes() ?>>
</span><?php echo $CCEStudents->Project->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
<tr<?php echo $CCEStudents->ProjectDiscipline->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->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $CCEStudents->IDNumber->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->ECSANumber->Visible) { // ECSANumber ?>
<tr<?php echo $CCEStudents->ECSANumber->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->Age->Visible) { // Age ?>
<tr<?php echo $CCEStudents->Age->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->HighestQual->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->AreaDiscipline->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->Telephone->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->Cellphone->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->EmailAddress->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->HomeAddress->Visible) { // HomeAddress ?>
<tr<?php echo $CCEStudents->HomeAddress->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->WorkAddress->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->PostalAddress->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->Designation->Visible) { // Designation ?>
<tr<?php echo $CCEStudents->Designation->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->Department->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->Organisation->Visible) { // Organisation ?>
<tr<?php echo $CCEStudents->Organisation->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->OrganisationType->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->CESAAccountNo->Visible) { // CESAAccountNo ?>
<tr<?php echo $CCEStudents->CESAAccountNo->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->VATNo->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->DietaryRequirements->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->CVFile->Visible) { // CVFile ?>
<tr<?php echo $CCEStudents->CVFile->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CVFile->FldCaption() ?></td>
<td<?php echo $CCEStudents->CVFile->CellAttributes() ?>><span id="el_CVFile">
<div id="old_x_CVFile">
<?php if ($CCEStudents->CVFile->HrefValue <> "" || $CCEStudents->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->CVFile->HrefValue ?>"><?php echo $CCEStudents->CVFile->EditValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->CVFile->Upload->DbValue)) { ?>
<?php echo $CCEStudents->CVFile->EditValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_CVFile">
<?php if (!empty($CCEStudents->CVFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_CVFile" id="a_CVFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_CVFile" id="a_CVFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_CVFile" id="a_CVFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $CCEStudents->CVFile->EditAttrs["onchange"] = "this.form.a_CVFile[2].checked=true;" . @$CCEStudents->CVFile->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_CVFile" id="a_CVFile" value="3">
<?php } ?>
<input type="file" name="x_CVFile" id="x_CVFile" title="<?php echo $CCEStudents->CVFile->FldTitle() ?>" size="30"<?php echo $CCEStudents->CVFile->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->CVFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->QualCertificate1->Visible) { // QualCertificate1 ?>
<tr<?php echo $CCEStudents->QualCertificate1->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->QualCertificate1->FldCaption() ?></td>
<td<?php echo $CCEStudents->QualCertificate1->CellAttributes() ?>><span id="el_QualCertificate1">
<div id="old_x_QualCertificate1">
<?php if ($CCEStudents->QualCertificate1->HrefValue <> "" || $CCEStudents->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->QualCertificate1->HrefValue ?>"><?php echo $CCEStudents->QualCertificate1->EditValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $CCEStudents->QualCertificate1->EditValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate1">
<?php if (!empty($CCEStudents->QualCertificate1->Upload->DbValue)) { ?>
<label><input type="radio" name="a_QualCertificate1" id="a_QualCertificate1" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_QualCertificate1" id="a_QualCertificate1" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_QualCertificate1" id="a_QualCertificate1" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $CCEStudents->QualCertificate1->EditAttrs["onchange"] = "this.form.a_QualCertificate1[2].checked=true;" . @$CCEStudents->QualCertificate1->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_QualCertificate1" id="a_QualCertificate1" value="3">
<?php } ?>
<input type="file" name="x_QualCertificate1" id="x_QualCertificate1" title="<?php echo $CCEStudents->QualCertificate1->FldTitle() ?>" size="30"<?php echo $CCEStudents->QualCertificate1->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->QualCertificate1->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->QualCertificate2->Visible) { // QualCertificate2 ?>
<tr<?php echo $CCEStudents->QualCertificate2->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->QualCertificate2->FldCaption() ?></td>
<td<?php echo $CCEStudents->QualCertificate2->CellAttributes() ?>><span id="el_QualCertificate2">
<div id="old_x_QualCertificate2">
<?php if ($CCEStudents->QualCertificate2->HrefValue <> "" || $CCEStudents->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->QualCertificate2->HrefValue ?>"><?php echo $CCEStudents->QualCertificate2->EditValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $CCEStudents->QualCertificate2->EditValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate2">
<?php if (!empty($CCEStudents->QualCertificate2->Upload->DbValue)) { ?>
<label><input type="radio" name="a_QualCertificate2" id="a_QualCertificate2" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_QualCertificate2" id="a_QualCertificate2" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_QualCertificate2" id="a_QualCertificate2" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $CCEStudents->QualCertificate2->EditAttrs["onchange"] = "this.form.a_QualCertificate2[2].checked=true;" . @$CCEStudents->QualCertificate2->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_QualCertificate2" id="a_QualCertificate2" value="3">
<?php } ?>
<input type="file" name="x_QualCertificate2" id="x_QualCertificate2" title="<?php echo $CCEStudents->QualCertificate2->FldTitle() ?>" size="30"<?php echo $CCEStudents->QualCertificate2->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->QualCertificate2->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->QualCertificate3->Visible) { // QualCertificate3 ?>
<tr<?php echo $CCEStudents->QualCertificate3->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->QualCertificate3->FldCaption() ?></td>
<td<?php echo $CCEStudents->QualCertificate3->CellAttributes() ?>><span id="el_QualCertificate3">
<div id="old_x_QualCertificate3">
<?php if ($CCEStudents->QualCertificate3->HrefValue <> "" || $CCEStudents->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->QualCertificate3->HrefValue ?>"><?php echo $CCEStudents->QualCertificate3->EditValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $CCEStudents->QualCertificate3->EditValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate3">
<?php if (!empty($CCEStudents->QualCertificate3->Upload->DbValue)) { ?>
<label><input type="radio" name="a_QualCertificate3" id="a_QualCertificate3" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_QualCertificate3" id="a_QualCertificate3" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_QualCertificate3" id="a_QualCertificate3" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $CCEStudents->QualCertificate3->EditAttrs["onchange"] = "this.form.a_QualCertificate3[2].checked=true;" . @$CCEStudents->QualCertificate3->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_QualCertificate3" id="a_QualCertificate3" value="3">
<?php } ?>
<input type="file" name="x_QualCertificate3" id="x_QualCertificate3" title="<?php echo $CCEStudents->QualCertificate3->FldTitle() ?>" size="30"<?php echo $CCEStudents->QualCertificate3->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->QualCertificate3->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MemorandumFile->Visible) { // MemorandumFile ?>
<tr<?php echo $CCEStudents->MemorandumFile->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MemorandumFile->FldCaption() ?></td>
<td<?php echo $CCEStudents->MemorandumFile->CellAttributes() ?>><span id="el_MemorandumFile">
<div id="old_x_MemorandumFile">
<?php if ($CCEStudents->MemorandumFile->HrefValue <> "" || $CCEStudents->MemorandumFile->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->MemorandumFile->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->MemorandumFile->HrefValue ?>"><?php echo $CCEStudents->MemorandumFile->EditValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->MemorandumFile->Upload->DbValue)) { ?>
<?php echo $CCEStudents->MemorandumFile->EditValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_MemorandumFile">
<?php if (!empty($CCEStudents->MemorandumFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_MemorandumFile" id="a_MemorandumFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_MemorandumFile" id="a_MemorandumFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_MemorandumFile" id="a_MemorandumFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $CCEStudents->MemorandumFile->EditAttrs["onchange"] = "this.form.a_MemorandumFile[2].checked=true;" . @$CCEStudents->MemorandumFile->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_MemorandumFile" id="a_MemorandumFile" value="3">
<?php } ?>
<input type="file" name="x_MemorandumFile" id="x_MemorandumFile" title="<?php echo $CCEStudents->MemorandumFile->FldTitle() ?>" size="30"<?php echo $CCEStudents->MemorandumFile->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->MemorandumFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->AgreementFile->Visible) { // AgreementFile ?>
<tr<?php echo $CCEStudents->AgreementFile->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->AgreementFile->FldCaption() ?></td>
<td<?php echo $CCEStudents->AgreementFile->CellAttributes() ?>><span id="el_AgreementFile">
<div id="old_x_AgreementFile">
<?php if ($CCEStudents->AgreementFile->HrefValue <> "" || $CCEStudents->AgreementFile->TooltipValue <> "") { ?>
<?php if (!empty($CCEStudents->AgreementFile->Upload->DbValue)) { ?>
<a href="<?php echo $CCEStudents->AgreementFile->HrefValue ?>"><?php echo $CCEStudents->AgreementFile->EditValue ?></a>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($CCEStudents->AgreementFile->Upload->DbValue)) { ?>
<?php echo $CCEStudents->AgreementFile->EditValue ?>
<?php } elseif (!in_array($CCEStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_AgreementFile">
<?php if (!empty($CCEStudents->AgreementFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_AgreementFile" id="a_AgreementFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_AgreementFile" id="a_AgreementFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_AgreementFile" id="a_AgreementFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $CCEStudents->AgreementFile->EditAttrs["onchange"] = "this.form.a_AgreementFile[2].checked=true;" . @$CCEStudents->AgreementFile->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_AgreementFile" id="a_AgreementFile" value="3">
<?php } ?>
<input type="file" name="x_AgreementFile" id="x_AgreementFile" title="<?php echo $CCEStudents->AgreementFile->FldTitle() ?>" size="30"<?php echo $CCEStudents->AgreementFile->EditAttributes() ?>>
</div>
</span><?php echo $CCEStudents->AgreementFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->OrderNo->Visible) { // OrderNo ?>
<tr<?php echo $CCEStudents->OrderNo->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->BookedByName->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->BookedByDesignation->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->BookedByTelNo->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->BookedByFaxNo->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->BookedByCellNo->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->BookedByEmail->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->WebUsername->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->WebPassword->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->MentorName->Visible) { // MentorName ?>
<tr<?php echo $CCEStudents->MentorName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorName->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorName->CellAttributes() ?>><span id="el_MentorName">
<input type="text" name="x_MentorName" id="x_MentorName" title="<?php echo $CCEStudents->MentorName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorName->EditValue ?>"<?php echo $CCEStudents->MentorName->EditAttributes() ?>>
</span><?php echo $CCEStudents->MentorName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($CCEStudents->MentorDesig->Visible) { // MentorDesig ?>
<tr<?php echo $CCEStudents->MentorDesig->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->MentorTel->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->MentorCell->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->MentorEmail->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 } ?>
</table>
</div>
</td></tr></table>
<p>
<input type="submit" name="btnAction" id="btnAction" value="<?php echo ew_BtnCaption($Language->Phrase("EditBtn")) ?>">
</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_edit->Page_Terminate();
?>
<?php
//
// Page class
//
class cCCEStudents_edit {
// Page ID
var $PageID = 'edit';
// Table name
var $TableName = 'CCEStudents';
// Page object name
var $PageObjName = 'CCEStudents_edit';
// 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 (CCEFacilitatorUsers)
$GLOBALS['CCEFacilitatorUsers'] = new cCCEFacilitatorUsers();
// Page ID
if (!defined("EW_PAGE_ID"))
define("EW_PAGE_ID", 'edit', TRUE);
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME"))
define("EW_TABLE_NAME", 'CCEStudents', TRUE);
// Start timer
$GLOBALS["gsTimer"] = new cTimer();
// Open connection
$conn = ew_Connect();
}
//
// Page_Init
//
function Page_Init() {
global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
global $CCEStudents;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) $Security->AutoLogin();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
// 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;
//
// Page main
//
function Page_Main() {
global $objForm, $Language, $gsFormError, $CCEStudents;
// Load key from QueryString
if (@$_GET["CCEStudentID"] <> "")
$CCEStudents->CCEStudentID->setQueryStringValue($_GET["CCEStudentID"]);
if (@$_POST["a_edit"] <> "") {
$CCEStudents->CurrentAction = $_POST["a_edit"]; // Get action code
$this->GetUploadFiles(); // Get upload files
$this->LoadFormValues(); // Get form values
// Validate form
if (!$this->ValidateForm()) {
$CCEStudents->CurrentAction = ""; // Form error, reset action
$this->setMessage($gsFormError);
$CCEStudents->EventCancelled = TRUE; // Event cancelled
$this->RestoreFormValues();
}
} else {
$CCEStudents->CurrentAction = "I"; // Default action is display
}
// Check if valid key
if ($CCEStudents->CCEStudentID->CurrentValue == "")
$this->Page_Terminate("CCEStudentslist.php"); // Invalid key, return to list
switch ($CCEStudents->CurrentAction) {
case "I": // Get a record to display
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 "U": // Update
$CCEStudents->SendEmail = TRUE; // Send email on update success
if ($this->EditRow()) { // Update record based on key
$this->setMessage($Language->Phrase("UpdateSuccess")); // Update success
$sReturnUrl = $CCEStudents->getReturnUrl();
if (ew_GetPageName($sReturnUrl) == "CCEStudentsview.php")
$sReturnUrl = $CCEStudents->ViewUrl(); // View paging, return to View page directly
$this->Page_Terminate($sReturnUrl); // Return to caller
} else {
$CCEStudents->EventCancelled = TRUE; // Event cancelled
$this->RestoreFormValues(); // Restore form values if update failed
}
}
// Render the record
$CCEStudents->RowType = EW_ROWTYPE_EDIT; // Render as Edit
$this->RenderRow();
}
// Get upload files
function GetUploadFiles() {
global $objForm, $CCEStudents;
// Get upload data
if ($CCEStudents->CVFile->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->CVFile->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($CCEStudents->QualCertificate1->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->QualCertificate1->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($CCEStudents->QualCertificate2->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->QualCertificate2->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($CCEStudents->QualCertificate3->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->QualCertificate3->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($CCEStudents->MemorandumFile->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->MemorandumFile->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($CCEStudents->AgreementFile->Upload->UploadFile()) {
// No action required
} else {
echo $CCEStudents->AgreementFile->Upload->Message;
$this->Page_Terminate();
exit();
}
}
// Load form values
function LoadFormValues() {
// Load from form
global $objForm, $CCEStudents;
$CCEStudents->CCEStudentID->setFormValue($objForm->GetValue("x_CCEStudentID"));
$CCEStudents->Title->setFormValue($objForm->GetValue("x_Title"));
$CCEStudents->FirstName->setFormValue($objForm->GetValue("x_FirstName"));
$CCEStudents->Surname->setFormValue($objForm->GetValue("x_Surname"));
$CCEStudents->KnownAs->setFormValue($objForm->GetValue("x_KnownAs"));
$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->IDNumber->setFormValue($objForm->GetValue("x_IDNumber"));
$CCEStudents->ECSANumber->setFormValue($objForm->GetValue("x_ECSANumber"));
$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->HomeAddress->setFormValue($objForm->GetValue("x_HomeAddress"));
$CCEStudents->WorkAddress->setFormValue($objForm->GetValue("x_WorkAddress"));
$CCEStudents->PostalAddress->setFormValue($objForm->GetValue("x_PostalAddress"));
$CCEStudents->Designation->setFormValue($objForm->GetValue("x_Designation"));
$CCEStudents->Department->setFormValue($objForm->GetValue("x_Department"));
$CCEStudents->Organisation->setFormValue($objForm->GetValue("x_Organisation"));
$CCEStudents->OrganisationType->setFormValue($objForm->GetValue("x_OrganisationType"));
$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->MentorName->setFormValue($objForm->GetValue("x_MentorName"));
$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"));
}
// Restore form values
function RestoreFormValues() {
global $objForm, $CCEStudents;
$this->LoadRow();
$CCEStudents->CCEStudentID->CurrentValue = $CCEStudents->CCEStudentID->FormValue;
$CCEStudents->Title->CurrentValue = $CCEStudents->Title->FormValue;
$CCEStudents->FirstName->CurrentValue = $CCEStudents->FirstName->FormValue;
$CCEStudents->Surname->CurrentValue = $CCEStudents->Surname->FormValue;
$CCEStudents->KnownAs->CurrentValue = $CCEStudents->KnownAs->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->IDNumber->CurrentValue = $CCEStudents->IDNumber->FormValue;
$CCEStudents->ECSANumber->CurrentValue = $CCEStudents->ECSANumber->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->HomeAddress->CurrentValue = $CCEStudents->HomeAddress->FormValue;
$CCEStudents->WorkAddress->CurrentValue = $CCEStudents->WorkAddress->FormValue;
$CCEStudents->PostalAddress->CurrentValue = $CCEStudents->PostalAddress->FormValue;
$CCEStudents->Designation->CurrentValue = $CCEStudents->Designation->FormValue;
$CCEStudents->Department->CurrentValue = $CCEStudents->Department->FormValue;
$CCEStudents->Organisation->CurrentValue = $CCEStudents->Organisation->FormValue;
$CCEStudents->OrganisationType->CurrentValue = $CCEStudents->OrganisationType->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->MentorName->CurrentValue = $CCEStudents->MentorName->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;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $CCEStudents;
$sFilter = $CCEStudents->KeyFilter();
// Call Row Selecting event
$CCEStudents->Row_Selecting($sFilter);
// Load SQL based on filter
$CCEStudents->CurrentFilter = $sFilter;
$sSql = $CCEStudents->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$CCEStudents->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $CCEStudents;
$CCEStudents->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
$CCEStudents->Title->setDbValue($rs->fields('Title'));
$CCEStudents->FirstName->setDbValue($rs->fields('FirstName'));
$CCEStudents->Surname->setDbValue($rs->fields('Surname'));
$CCEStudents->KnownAs->setDbValue($rs->fields('KnownAs'));
$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->IDNumber->setDbValue($rs->fields('IDNumber'));
$CCEStudents->ECSANumber->setDbValue($rs->fields('ECSANumber'));
$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->HomeAddress->setDbValue($rs->fields('HomeAddress'));
$CCEStudents->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$CCEStudents->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$CCEStudents->Designation->setDbValue($rs->fields('Designation'));
$CCEStudents->Department->setDbValue($rs->fields('Department'));
$CCEStudents->Organisation->setDbValue($rs->fields('Organisation'));
$CCEStudents->OrganisationType->setDbValue($rs->fields('OrganisationType'));
$CCEStudents->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
$CCEStudents->VATNo->setDbValue($rs->fields('VATNo'));
$CCEStudents->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
$CCEStudents->CVFile->Upload->DbValue = $rs->fields('CVFile');
$CCEStudents->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
$CCEStudents->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
$CCEStudents->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
$CCEStudents->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
$CCEStudents->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
$CCEStudents->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->MentorName->setDbValue($rs->fields('MentorName'));
$CCEStudents->MentorDesig->setDbValue($rs->fields('MentorDesig'));
$CCEStudents->MentorTel->setDbValue($rs->fields('MentorTel'));
$CCEStudents->MentorCell->setDbValue($rs->fields('MentorCell'));
$CCEStudents->MentorEmail->setDbValue($rs->fields('MentorEmail'));
}
// 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
// CCEStudentID
$CCEStudents->CCEStudentID->CellCssStyle = ""; $CCEStudents->CCEStudentID->CellCssClass = "";
$CCEStudents->CCEStudentID->CellAttrs = array(); $CCEStudents->CCEStudentID->ViewAttrs = array(); $CCEStudents->CCEStudentID->EditAttrs = array();
// Title
$CCEStudents->Title->CellCssStyle = ""; $CCEStudents->Title->CellCssClass = "";
$CCEStudents->Title->CellAttrs = array(); $CCEStudents->Title->ViewAttrs = array(); $CCEStudents->Title->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();
// KnownAs
$CCEStudents->KnownAs->CellCssStyle = ""; $CCEStudents->KnownAs->CellCssClass = "";
$CCEStudents->KnownAs->CellAttrs = array(); $CCEStudents->KnownAs->ViewAttrs = array(); $CCEStudents->KnownAs->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();
// IDNumber
$CCEStudents->IDNumber->CellCssStyle = ""; $CCEStudents->IDNumber->CellCssClass = "";
$CCEStudents->IDNumber->CellAttrs = array(); $CCEStudents->IDNumber->ViewAttrs = array(); $CCEStudents->IDNumber->EditAttrs = array();
// ECSANumber
$CCEStudents->ECSANumber->CellCssStyle = ""; $CCEStudents->ECSANumber->CellCssClass = "";
$CCEStudents->ECSANumber->CellAttrs = array(); $CCEStudents->ECSANumber->ViewAttrs = array(); $CCEStudents->ECSANumber->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();
// 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();
// 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();
// 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();
// CESAAccountNo
$CCEStudents->CESAAccountNo->CellCssStyle = ""; $CCEStudents->CESAAccountNo->CellCssClass = "";
$CCEStudents->CESAAccountNo->CellAttrs = array(); $CCEStudents->CESAAccountNo->ViewAttrs = array(); $CCEStudents->CESAAccountNo->EditAttrs = array();
// VATNo
$CCEStudents->VATNo->CellCssStyle = ""; $CCEStudents->VATNo->CellCssClass = "";
$CCEStudents->VATNo->CellAttrs = array(); $CCEStudents->VATNo->ViewAttrs = array(); $CCEStudents->VATNo->EditAttrs = array();
// DietaryRequirements
$CCEStudents->DietaryRequirements->CellCssStyle = ""; $CCEStudents->DietaryRequirements->CellCssClass = "";
$CCEStudents->DietaryRequirements->CellAttrs = array(); $CCEStudents->DietaryRequirements->ViewAttrs = array(); $CCEStudents->DietaryRequirements->EditAttrs = array();
// CVFile
$CCEStudents->CVFile->CellCssStyle = ""; $CCEStudents->CVFile->CellCssClass = "";
$CCEStudents->CVFile->CellAttrs = array(); $CCEStudents->CVFile->ViewAttrs = array(); $CCEStudents->CVFile->EditAttrs = array();
// QualCertificate1
$CCEStudents->QualCertificate1->CellCssStyle = ""; $CCEStudents->QualCertificate1->CellCssClass = "";
$CCEStudents->QualCertificate1->CellAttrs = array(); $CCEStudents->QualCertificate1->ViewAttrs = array(); $CCEStudents->QualCertificate1->EditAttrs = array();
// QualCertificate2
$CCEStudents->QualCertificate2->CellCssStyle = ""; $CCEStudents->QualCertificate2->CellCssClass = "";
$CCEStudents->QualCertificate2->CellAttrs = array(); $CCEStudents->QualCertificate2->ViewAttrs = array(); $CCEStudents->QualCertificate2->EditAttrs = array();
// QualCertificate3
$CCEStudents->QualCertificate3->CellCssStyle = ""; $CCEStudents->QualCertificate3->CellCssClass = "";
$CCEStudents->QualCertificate3->CellAttrs = array(); $CCEStudents->QualCertificate3->ViewAttrs = array(); $CCEStudents->QualCertificate3->EditAttrs = array();
// MemorandumFile
$CCEStudents->MemorandumFile->CellCssStyle = ""; $CCEStudents->MemorandumFile->CellCssClass = "";
$CCEStudents->MemorandumFile->CellAttrs = array(); $CCEStudents->MemorandumFile->ViewAttrs = array(); $CCEStudents->MemorandumFile->EditAttrs = array();
// AgreementFile
$CCEStudents->AgreementFile->CellCssStyle = ""; $CCEStudents->AgreementFile->CellCssClass = "";
$CCEStudents->AgreementFile->CellAttrs = array(); $CCEStudents->AgreementFile->ViewAttrs = array(); $CCEStudents->AgreementFile->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();
// MentorName
$CCEStudents->MentorName->CellCssStyle = ""; $CCEStudents->MentorName->CellCssClass = "";
$CCEStudents->MentorName->CellAttrs = array(); $CCEStudents->MentorName->ViewAttrs = array(); $CCEStudents->MentorName->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();
if ($CCEStudents->RowType == EW_ROWTYPE_VIEW) { // View row
// CCEStudentID
$CCEStudents->CCEStudentID->ViewValue = $CCEStudents->CCEStudentID->CurrentValue;
$CCEStudents->CCEStudentID->CssStyle = "";
$CCEStudents->CCEStudentID->CssClass = "";
$CCEStudents->CCEStudentID->ViewCustomAttributes = "";
// Title
$CCEStudents->Title->ViewValue = $CCEStudents->Title->CurrentValue;
$CCEStudents->Title->CssStyle = "";
$CCEStudents->Title->CssClass = "";
$CCEStudents->Title->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 = "";
// KnownAs
$CCEStudents->KnownAs->ViewValue = $CCEStudents->KnownAs->CurrentValue;
$CCEStudents->KnownAs->CssStyle = "";
$CCEStudents->KnownAs->CssClass = "";
$CCEStudents->KnownAs->ViewCustomAttributes = "";
// StudentNumber
$CCEStudents->StudentNumber->ViewValue = $CCEStudents->StudentNumber->CurrentValue;
$CCEStudents->StudentNumber->CssStyle = "";
$CCEStudents->StudentNumber->CssClass = "";
$CCEStudents->StudentNumber->ViewCustomAttributes = "";
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->ViewValue = $CCEStudents->CCEFacilitatorID->CurrentValue;
$CCEStudents->CCEFacilitatorID->CssStyle = "";
$CCEStudents->CCEFacilitatorID->CssClass = "";
$CCEStudents->CCEFacilitatorID->ViewCustomAttributes = "";
// Project
$CCEStudents->Project->ViewValue = $CCEStudents->Project->CurrentValue;
$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 = "";
// IDNumber
$CCEStudents->IDNumber->ViewValue = $CCEStudents->IDNumber->CurrentValue;
$CCEStudents->IDNumber->CssStyle = "";
$CCEStudents->IDNumber->CssClass = "";
$CCEStudents->IDNumber->ViewCustomAttributes = "";
// ECSANumber
$CCEStudents->ECSANumber->ViewValue = $CCEStudents->ECSANumber->CurrentValue;
$CCEStudents->ECSANumber->CssStyle = "";
$CCEStudents->ECSANumber->CssClass = "";
$CCEStudents->ECSANumber->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 = "";
// 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 = "";
// 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 = "";
// 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 = "";
// 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 = "";
// 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 = "";
// QualCertificate1
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->DbValue)) {
$CCEStudents->QualCertificate1->ViewValue = $CCEStudents->QualCertificate1->Upload->DbValue;
} else {
$CCEStudents->QualCertificate1->ViewValue = "";
}
$CCEStudents->QualCertificate1->CssStyle = "";
$CCEStudents->QualCertificate1->CssClass = "";
$CCEStudents->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->DbValue)) {
$CCEStudents->QualCertificate2->ViewValue = $CCEStudents->QualCertificate2->Upload->DbValue;
} else {
$CCEStudents->QualCertificate2->ViewValue = "";
}
$CCEStudents->QualCertificate2->CssStyle = "";
$CCEStudents->QualCertificate2->CssClass = "";
$CCEStudents->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->DbValue)) {
$CCEStudents->QualCertificate3->ViewValue = $CCEStudents->QualCertificate3->Upload->DbValue;
} else {
$CCEStudents->QualCertificate3->ViewValue = "";
}
$CCEStudents->QualCertificate3->CssStyle = "";
$CCEStudents->QualCertificate3->CssClass = "";
$CCEStudents->QualCertificate3->ViewCustomAttributes = "";
// MemorandumFile
if (!ew_Empty($CCEStudents->MemorandumFile->Upload->DbValue)) {
$CCEStudents->MemorandumFile->ViewValue = $CCEStudents->MemorandumFile->Upload->DbValue;
} else {
$CCEStudents->MemorandumFile->ViewValue = "";
}
$CCEStudents->MemorandumFile->CssStyle = "";
$CCEStudents->MemorandumFile->CssClass = "";
$CCEStudents->MemorandumFile->ViewCustomAttributes = "";
// AgreementFile
if (!ew_Empty($CCEStudents->AgreementFile->Upload->DbValue)) {
$CCEStudents->AgreementFile->ViewValue = $CCEStudents->AgreementFile->Upload->DbValue;
} else {
$CCEStudents->AgreementFile->ViewValue = "";
}
$CCEStudents->AgreementFile->CssStyle = "";
$CCEStudents->AgreementFile->CssClass = "";
$CCEStudents->AgreementFile->ViewCustomAttributes = "";
// 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 = "";
// MentorName
$CCEStudents->MentorName->ViewValue = $CCEStudents->MentorName->CurrentValue;
$CCEStudents->MentorName->CssStyle = "";
$CCEStudents->MentorName->CssClass = "";
$CCEStudents->MentorName->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 = "";
// CCEStudentID
$CCEStudents->CCEStudentID->HrefValue = "";
$CCEStudents->CCEStudentID->TooltipValue = "";
// Title
$CCEStudents->Title->HrefValue = "";
$CCEStudents->Title->TooltipValue = "";
// FirstName
$CCEStudents->FirstName->HrefValue = "";
$CCEStudents->FirstName->TooltipValue = "";
// Surname
$CCEStudents->Surname->HrefValue = "";
$CCEStudents->Surname->TooltipValue = "";
// KnownAs
$CCEStudents->KnownAs->HrefValue = "";
$CCEStudents->KnownAs->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 = "";
// IDNumber
$CCEStudents->IDNumber->HrefValue = "";
$CCEStudents->IDNumber->TooltipValue = "";
// ECSANumber
$CCEStudents->ECSANumber->HrefValue = "";
$CCEStudents->ECSANumber->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 = "";
// HomeAddress
$CCEStudents->HomeAddress->HrefValue = "";
$CCEStudents->HomeAddress->TooltipValue = "";
// WorkAddress
$CCEStudents->WorkAddress->HrefValue = "";
$CCEStudents->WorkAddress->TooltipValue = "";
// PostalAddress
$CCEStudents->PostalAddress->HrefValue = "";
$CCEStudents->PostalAddress->TooltipValue = "";
// Designation
$CCEStudents->Designation->HrefValue = "";
$CCEStudents->Designation->TooltipValue = "";
// Department
$CCEStudents->Department->HrefValue = "";
$CCEStudents->Department->TooltipValue = "";
// Organisation
$CCEStudents->Organisation->HrefValue = "";
$CCEStudents->Organisation->TooltipValue = "";
// OrganisationType
$CCEStudents->OrganisationType->HrefValue = "";
$CCEStudents->OrganisationType->TooltipValue = "";
// CESAAccountNo
$CCEStudents->CESAAccountNo->HrefValue = "";
$CCEStudents->CESAAccountNo->TooltipValue = "";
// VATNo
$CCEStudents->VATNo->HrefValue = "";
$CCEStudents->VATNo->TooltipValue = "";
// DietaryRequirements
$CCEStudents->DietaryRequirements->HrefValue = "";
$CCEStudents->DietaryRequirements->TooltipValue = "";
// CVFile
if (!ew_Empty($CCEStudents->CVFile->Upload->DbValue)) {
$CCEStudents->CVFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->CVFile->UploadPath) . ((!empty($CCEStudents->CVFile->ViewValue)) ? $CCEStudents->CVFile->ViewValue : $CCEStudents->CVFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->CVFile->HrefValue = ew_ConvertFullUrl($CCEStudents->CVFile->HrefValue);
} else {
$CCEStudents->CVFile->HrefValue = "";
}
$CCEStudents->CVFile->TooltipValue = "";
// QualCertificate1
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->DbValue)) {
$CCEStudents->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate1->UploadPath) . ((!empty($CCEStudents->QualCertificate1->ViewValue)) ? $CCEStudents->QualCertificate1->ViewValue : $CCEStudents->QualCertificate1->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate1->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate1->HrefValue);
} else {
$CCEStudents->QualCertificate1->HrefValue = "";
}
$CCEStudents->QualCertificate1->TooltipValue = "";
// QualCertificate2
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->DbValue)) {
$CCEStudents->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate2->UploadPath) . ((!empty($CCEStudents->QualCertificate2->ViewValue)) ? $CCEStudents->QualCertificate2->ViewValue : $CCEStudents->QualCertificate2->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate2->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate2->HrefValue);
} else {
$CCEStudents->QualCertificate2->HrefValue = "";
}
$CCEStudents->QualCertificate2->TooltipValue = "";
// QualCertificate3
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->DbValue)) {
$CCEStudents->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate3->UploadPath) . ((!empty($CCEStudents->QualCertificate3->ViewValue)) ? $CCEStudents->QualCertificate3->ViewValue : $CCEStudents->QualCertificate3->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate3->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate3->HrefValue);
} else {
$CCEStudents->QualCertificate3->HrefValue = "";
}
$CCEStudents->QualCertificate3->TooltipValue = "";
// MemorandumFile
if (!ew_Empty($CCEStudents->MemorandumFile->Upload->DbValue)) {
$CCEStudents->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->MemorandumFile->UploadPath) . ((!empty($CCEStudents->MemorandumFile->ViewValue)) ? $CCEStudents->MemorandumFile->ViewValue : $CCEStudents->MemorandumFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->MemorandumFile->HrefValue = ew_ConvertFullUrl($CCEStudents->MemorandumFile->HrefValue);
} else {
$CCEStudents->MemorandumFile->HrefValue = "";
}
$CCEStudents->MemorandumFile->TooltipValue = "";
// AgreementFile
if (!ew_Empty($CCEStudents->AgreementFile->Upload->DbValue)) {
$CCEStudents->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->AgreementFile->UploadPath) . ((!empty($CCEStudents->AgreementFile->ViewValue)) ? $CCEStudents->AgreementFile->ViewValue : $CCEStudents->AgreementFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->AgreementFile->HrefValue = ew_ConvertFullUrl($CCEStudents->AgreementFile->HrefValue);
} else {
$CCEStudents->AgreementFile->HrefValue = "";
}
$CCEStudents->AgreementFile->TooltipValue = "";
// 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 = "";
// MentorName
$CCEStudents->MentorName->HrefValue = "";
$CCEStudents->MentorName->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 = "";
} elseif ($CCEStudents->RowType == EW_ROWTYPE_EDIT) { // Edit row
// CCEStudentID
$CCEStudents->CCEStudentID->EditCustomAttributes = "";
// Title
$CCEStudents->Title->EditCustomAttributes = "";
$CCEStudents->Title->EditValue = ew_HtmlEncode($CCEStudents->Title->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);
// KnownAs
$CCEStudents->KnownAs->EditCustomAttributes = "";
$CCEStudents->KnownAs->EditValue = ew_HtmlEncode($CCEStudents->KnownAs->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);
// Project
$CCEStudents->Project->EditCustomAttributes = "";
$CCEStudents->Project->EditValue = ew_HtmlEncode($CCEStudents->Project->CurrentValue);
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->EditCustomAttributes = "";
$CCEStudents->ProjectDiscipline->EditValue = ew_HtmlEncode($CCEStudents->ProjectDiscipline->CurrentValue);
// IDNumber
$CCEStudents->IDNumber->EditCustomAttributes = "";
$CCEStudents->IDNumber->EditValue = ew_HtmlEncode($CCEStudents->IDNumber->CurrentValue);
// ECSANumber
$CCEStudents->ECSANumber->EditCustomAttributes = "";
$CCEStudents->ECSANumber->EditValue = ew_HtmlEncode($CCEStudents->ECSANumber->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);
// 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);
// Designation
$CCEStudents->Designation->EditCustomAttributes = "";
$CCEStudents->Designation->EditValue = ew_HtmlEncode($CCEStudents->Designation->CurrentValue);
// Department
$CCEStudents->Department->EditCustomAttributes = "";
$CCEStudents->Department->EditValue = ew_HtmlEncode($CCEStudents->Department->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);
// 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);
// CVFile
$CCEStudents->CVFile->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->CVFile->Upload->DbValue)) {
$CCEStudents->CVFile->EditValue = $CCEStudents->CVFile->Upload->DbValue;
} else {
$CCEStudents->CVFile->EditValue = "";
}
// QualCertificate1
$CCEStudents->QualCertificate1->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->DbValue)) {
$CCEStudents->QualCertificate1->EditValue = $CCEStudents->QualCertificate1->Upload->DbValue;
} else {
$CCEStudents->QualCertificate1->EditValue = "";
}
// QualCertificate2
$CCEStudents->QualCertificate2->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->DbValue)) {
$CCEStudents->QualCertificate2->EditValue = $CCEStudents->QualCertificate2->Upload->DbValue;
} else {
$CCEStudents->QualCertificate2->EditValue = "";
}
// QualCertificate3
$CCEStudents->QualCertificate3->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->DbValue)) {
$CCEStudents->QualCertificate3->EditValue = $CCEStudents->QualCertificate3->Upload->DbValue;
} else {
$CCEStudents->QualCertificate3->EditValue = "";
}
// MemorandumFile
$CCEStudents->MemorandumFile->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->MemorandumFile->Upload->DbValue)) {
$CCEStudents->MemorandumFile->EditValue = $CCEStudents->MemorandumFile->Upload->DbValue;
} else {
$CCEStudents->MemorandumFile->EditValue = "";
}
// AgreementFile
$CCEStudents->AgreementFile->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->AgreementFile->Upload->DbValue)) {
$CCEStudents->AgreementFile->EditValue = $CCEStudents->AgreementFile->Upload->DbValue;
} else {
$CCEStudents->AgreementFile->EditValue = "";
}
// 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);
// MentorName
$CCEStudents->MentorName->EditCustomAttributes = "";
$CCEStudents->MentorName->EditValue = ew_HtmlEncode($CCEStudents->MentorName->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);
// Edit refer script
// CCEStudentID
$CCEStudents->CCEStudentID->HrefValue = "";
// Title
$CCEStudents->Title->HrefValue = "";
// FirstName
$CCEStudents->FirstName->HrefValue = "";
// Surname
$CCEStudents->Surname->HrefValue = "";
// KnownAs
$CCEStudents->KnownAs->HrefValue = "";
// StudentNumber
$CCEStudents->StudentNumber->HrefValue = "";
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->HrefValue = "";
// Project
$CCEStudents->Project->HrefValue = "";
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->HrefValue = "";
// IDNumber
$CCEStudents->IDNumber->HrefValue = "";
// ECSANumber
$CCEStudents->ECSANumber->HrefValue = "";
// Age
$CCEStudents->Age->HrefValue = "";
// HighestQual
$CCEStudents->HighestQual->HrefValue = "";
// AreaDiscipline
$CCEStudents->AreaDiscipline->HrefValue = "";
// Telephone
$CCEStudents->Telephone->HrefValue = "";
// Cellphone
$CCEStudents->Cellphone->HrefValue = "";
// EmailAddress
$CCEStudents->EmailAddress->HrefValue = "";
// HomeAddress
$CCEStudents->HomeAddress->HrefValue = "";
// WorkAddress
$CCEStudents->WorkAddress->HrefValue = "";
// PostalAddress
$CCEStudents->PostalAddress->HrefValue = "";
// Designation
$CCEStudents->Designation->HrefValue = "";
// Department
$CCEStudents->Department->HrefValue = "";
// Organisation
$CCEStudents->Organisation->HrefValue = "";
// OrganisationType
$CCEStudents->OrganisationType->HrefValue = "";
// CESAAccountNo
$CCEStudents->CESAAccountNo->HrefValue = "";
// VATNo
$CCEStudents->VATNo->HrefValue = "";
// DietaryRequirements
$CCEStudents->DietaryRequirements->HrefValue = "";
// CVFile
if (!ew_Empty($CCEStudents->CVFile->Upload->DbValue)) {
$CCEStudents->CVFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->CVFile->UploadPath) . ((!empty($CCEStudents->CVFile->EditValue)) ? $CCEStudents->CVFile->EditValue : $CCEStudents->CVFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->CVFile->HrefValue = ew_ConvertFullUrl($CCEStudents->CVFile->HrefValue);
} else {
$CCEStudents->CVFile->HrefValue = "";
}
// QualCertificate1
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->DbValue)) {
$CCEStudents->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate1->UploadPath) . ((!empty($CCEStudents->QualCertificate1->EditValue)) ? $CCEStudents->QualCertificate1->EditValue : $CCEStudents->QualCertificate1->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate1->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate1->HrefValue);
} else {
$CCEStudents->QualCertificate1->HrefValue = "";
}
// QualCertificate2
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->DbValue)) {
$CCEStudents->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate2->UploadPath) . ((!empty($CCEStudents->QualCertificate2->EditValue)) ? $CCEStudents->QualCertificate2->EditValue : $CCEStudents->QualCertificate2->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate2->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate2->HrefValue);
} else {
$CCEStudents->QualCertificate2->HrefValue = "";
}
// QualCertificate3
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->DbValue)) {
$CCEStudents->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate3->UploadPath) . ((!empty($CCEStudents->QualCertificate3->EditValue)) ? $CCEStudents->QualCertificate3->EditValue : $CCEStudents->QualCertificate3->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate3->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate3->HrefValue);
} else {
$CCEStudents->QualCertificate3->HrefValue = "";
}
// MemorandumFile
if (!ew_Empty($CCEStudents->MemorandumFile->Upload->DbValue)) {
$CCEStudents->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->MemorandumFile->UploadPath) . ((!empty($CCEStudents->MemorandumFile->EditValue)) ? $CCEStudents->MemorandumFile->EditValue : $CCEStudents->MemorandumFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->MemorandumFile->HrefValue = ew_ConvertFullUrl($CCEStudents->MemorandumFile->HrefValue);
} else {
$CCEStudents->MemorandumFile->HrefValue = "";
}
// AgreementFile
if (!ew_Empty($CCEStudents->AgreementFile->Upload->DbValue)) {
$CCEStudents->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->AgreementFile->UploadPath) . ((!empty($CCEStudents->AgreementFile->EditValue)) ? $CCEStudents->AgreementFile->EditValue : $CCEStudents->AgreementFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->AgreementFile->HrefValue = ew_ConvertFullUrl($CCEStudents->AgreementFile->HrefValue);
} else {
$CCEStudents->AgreementFile->HrefValue = "";
}
// OrderNo
$CCEStudents->OrderNo->HrefValue = "";
// BookedByName
$CCEStudents->BookedByName->HrefValue = "";
// BookedByDesignation
$CCEStudents->BookedByDesignation->HrefValue = "";
// BookedByTelNo
$CCEStudents->BookedByTelNo->HrefValue = "";
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->HrefValue = "";
// BookedByCellNo
$CCEStudents->BookedByCellNo->HrefValue = "";
// BookedByEmail
$CCEStudents->BookedByEmail->HrefValue = "";
// WebUsername
$CCEStudents->WebUsername->HrefValue = "";
// WebPassword
$CCEStudents->WebPassword->HrefValue = "";
// MentorName
$CCEStudents->MentorName->HrefValue = "";
// MentorDesig
$CCEStudents->MentorDesig->HrefValue = "";
// MentorTel
$CCEStudents->MentorTel->HrefValue = "";
// MentorCell
$CCEStudents->MentorCell->HrefValue = "";
// MentorEmail
$CCEStudents->MentorEmail->HrefValue = "";
}
// 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->CVFile->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->CVFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->CVFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->CVFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->CVFile->Upload->Error);
}
if (!ew_CheckFileType($CCEStudents->QualCertificate1->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->QualCertificate1->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->QualCertificate1->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->QualCertificate1->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->QualCertificate1->Upload->Error);
}
if (!ew_CheckFileType($CCEStudents->QualCertificate2->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->QualCertificate2->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->QualCertificate2->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->QualCertificate2->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->QualCertificate2->Upload->Error);
}
if (!ew_CheckFileType($CCEStudents->QualCertificate3->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->QualCertificate3->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->QualCertificate3->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->QualCertificate3->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->QualCertificate3->Upload->Error);
}
if (!ew_CheckFileType($CCEStudents->MemorandumFile->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->MemorandumFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->MemorandumFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->MemorandumFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->MemorandumFile->Upload->Error);
}
if (!ew_CheckFileType($CCEStudents->AgreementFile->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($CCEStudents->AgreementFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCEStudents->AgreementFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($CCEStudents->AgreementFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCEStudents->AgreementFile->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;
}
// Update record based on key values
function EditRow() {
global $conn, $Security, $Language, $CCEStudents;
$sFilter = $CCEStudents->KeyFilter();
$CCEStudents->CurrentFilter = $sFilter;
$sSql = $CCEStudents->SQL();
$conn->raiseErrorFn = 'ew_ErrorFn';
$rs = $conn->Execute($sSql);
$conn->raiseErrorFn = '';
if ($rs === FALSE)
return FALSE;
if ($rs->EOF) {
$EditRow = FALSE; // Update Failed
} else {
// Save old values
$rsold =& $rs->fields;
$rsnew = array();
// Title
$CCEStudents->Title->SetDbValueDef($rsnew, $CCEStudents->Title->CurrentValue, NULL, FALSE);
// FirstName
$CCEStudents->FirstName->SetDbValueDef($rsnew, $CCEStudents->FirstName->CurrentValue, "", FALSE);
// Surname
$CCEStudents->Surname->SetDbValueDef($rsnew, $CCEStudents->Surname->CurrentValue, "", FALSE);
// KnownAs
$CCEStudents->KnownAs->SetDbValueDef($rsnew, $CCEStudents->KnownAs->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);
// IDNumber
$CCEStudents->IDNumber->SetDbValueDef($rsnew, $CCEStudents->IDNumber->CurrentValue, NULL, FALSE);
// ECSANumber
$CCEStudents->ECSANumber->SetDbValueDef($rsnew, $CCEStudents->ECSANumber->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);
// 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);
// Designation
$CCEStudents->Designation->SetDbValueDef($rsnew, $CCEStudents->Designation->CurrentValue, NULL, FALSE);
// Department
$CCEStudents->Department->SetDbValueDef($rsnew, $CCEStudents->Department->CurrentValue, NULL, FALSE);
// Organisation
$CCEStudents->Organisation->SetDbValueDef($rsnew, $CCEStudents->Organisation->CurrentValue, NULL, FALSE);
// OrganisationType
$CCEStudents->OrganisationType->SetDbValueDef($rsnew, $CCEStudents->OrganisationType->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);
// CVFile
$CCEStudents->CVFile->Upload->SaveToSession(); // Save file value to Session
if ($CCEStudents->CVFile->Upload->Action == "2" || $CCEStudents->CVFile->Upload->Action == "3") { // Update/Remove
$CCEStudents->CVFile->Upload->DbValue = $rs->fields('CVFile'); // Get original value
if (is_null($CCEStudents->CVFile->Upload->Value)) {
$rsnew['CVFile'] = NULL;
} else {
$rsnew['CVFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->CVFile->UploadPath), $CCEStudents->CVFile->Upload->FileName);
}
}
// QualCertificate1
$CCEStudents->QualCertificate1->Upload->SaveToSession(); // Save file value to Session
if ($CCEStudents->QualCertificate1->Upload->Action == "2" || $CCEStudents->QualCertificate1->Upload->Action == "3") { // Update/Remove
$CCEStudents->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1'); // Get original value
if (is_null($CCEStudents->QualCertificate1->Upload->Value)) {
$rsnew['QualCertificate1'] = NULL;
} else {
$rsnew['QualCertificate1'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->QualCertificate1->UploadPath), $CCEStudents->QualCertificate1->Upload->FileName);
}
}
// QualCertificate2
$CCEStudents->QualCertificate2->Upload->SaveToSession(); // Save file value to Session
if ($CCEStudents->QualCertificate2->Upload->Action == "2" || $CCEStudents->QualCertificate2->Upload->Action == "3") { // Update/Remove
$CCEStudents->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2'); // Get original value
if (is_null($CCEStudents->QualCertificate2->Upload->Value)) {
$rsnew['QualCertificate2'] = NULL;
} else {
$rsnew['QualCertificate2'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->QualCertificate2->UploadPath), $CCEStudents->QualCertificate2->Upload->FileName);
}
}
// QualCertificate3
$CCEStudents->QualCertificate3->Upload->SaveToSession(); // Save file value to Session
if ($CCEStudents->QualCertificate3->Upload->Action == "2" || $CCEStudents->QualCertificate3->Upload->Action == "3") { // Update/Remove
$CCEStudents->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3'); // Get original value
if (is_null($CCEStudents->QualCertificate3->Upload->Value)) {
$rsnew['QualCertificate3'] = NULL;
} else {
$rsnew['QualCertificate3'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->QualCertificate3->UploadPath), $CCEStudents->QualCertificate3->Upload->FileName);
}
}
// MemorandumFile
$CCEStudents->MemorandumFile->Upload->SaveToSession(); // Save file value to Session
if ($CCEStudents->MemorandumFile->Upload->Action == "2" || $CCEStudents->MemorandumFile->Upload->Action == "3") { // Update/Remove
$CCEStudents->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile'); // Get original value
if (is_null($CCEStudents->MemorandumFile->Upload->Value)) {
$rsnew['MemorandumFile'] = NULL;
} else {
$rsnew['MemorandumFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->MemorandumFile->UploadPath), $CCEStudents->MemorandumFile->Upload->FileName);
}
}
// AgreementFile
$CCEStudents->AgreementFile->Upload->SaveToSession(); // Save file value to Session
if ($CCEStudents->AgreementFile->Upload->Action == "2" || $CCEStudents->AgreementFile->Upload->Action == "3") { // Update/Remove
$CCEStudents->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile'); // Get original value
if (is_null($CCEStudents->AgreementFile->Upload->Value)) {
$rsnew['AgreementFile'] = NULL;
} else {
$rsnew['AgreementFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCEStudents->AgreementFile->UploadPath), $CCEStudents->AgreementFile->Upload->FileName);
}
}
// 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);
// MentorName
$CCEStudents->MentorName->SetDbValueDef($rsnew, $CCEStudents->MentorName->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);
// Call Row Updating event
$bUpdateRow = $CCEStudents->Row_Updating($rsold, $rsnew);
if ($bUpdateRow) {
if (!ew_Empty($CCEStudents->CVFile->Upload->Value)) {
$CCEStudents->CVFile->Upload->SaveToFile($CCEStudents->CVFile->UploadPath, $rsnew['CVFile'], FALSE);
}
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->Value)) {
$CCEStudents->QualCertificate1->Upload->SaveToFile($CCEStudents->QualCertificate1->UploadPath, $rsnew['QualCertificate1'], FALSE);
}
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->Value)) {
$CCEStudents->QualCertificate2->Upload->SaveToFile($CCEStudents->QualCertificate2->UploadPath, $rsnew['QualCertificate2'], FALSE);
}
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->Value)) {
$CCEStudents->QualCertificate3->Upload->SaveToFile($CCEStudents->QualCertificate3->UploadPath, $rsnew['QualCertificate3'], FALSE);
}
if (!ew_Empty($CCEStudents->MemorandumFile->Upload->Value)) {
$CCEStudents->MemorandumFile->Upload->SaveToFile($CCEStudents->MemorandumFile->UploadPath, $rsnew['MemorandumFile'], FALSE);
}
if (!ew_Empty($CCEStudents->AgreementFile->Upload->Value)) {
$CCEStudents->AgreementFile->Upload->SaveToFile($CCEStudents->AgreementFile->UploadPath, $rsnew['AgreementFile'], FALSE);
}
$conn->raiseErrorFn = 'ew_ErrorFn';
$EditRow = $conn->Execute($CCEStudents->UpdateSQL($rsnew));
$conn->raiseErrorFn = '';
} else {
if ($CCEStudents->CancelMessage <> "") {
$this->setMessage($CCEStudents->CancelMessage);
$CCEStudents->CancelMessage = "";
} else {
$this->setMessage($Language->Phrase("UpdateCancelled"));
}
$EditRow = FALSE;
}
}
// Call Row_Updated event
if ($EditRow)
$CCEStudents->Row_Updated($rsold, $rsnew);
$rs->Close();
// CVFile
$CCEStudents->CVFile->Upload->RemoveFromSession(); // Remove file value from Session
// QualCertificate1
$CCEStudents->QualCertificate1->Upload->RemoveFromSession(); // Remove file value from Session
// QualCertificate2
$CCEStudents->QualCertificate2->Upload->RemoveFromSession(); // Remove file value from Session
// QualCertificate3
$CCEStudents->QualCertificate3->Upload->RemoveFromSession(); // Remove file value from Session
// MemorandumFile
$CCEStudents->MemorandumFile->Upload->RemoveFromSession(); // Remove file value from Session
// AgreementFile
$CCEStudents->AgreementFile->Upload->RemoveFromSession(); // Remove file value from Session
return $EditRow;
}
// 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;
}
}
?>