| Current Path : /var/www/cesa.co.za/ccmadmin/ |
| Current File : /var/www/cesa.co.za/ccmadmin/cstArchivedStudentsedit.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 "cstArchivedStudentsinfo.php" ?>
<?php include "CCMUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
// Create page object
$cstArchivedStudents_edit = new ccstArchivedStudents_edit();
$Page =& $cstArchivedStudents_edit;
// Page init
$cstArchivedStudents_edit->Page_Init();
// Page main
$cstArchivedStudents_edit->Page_Main();
?>
<?php include "header.php" ?>
<script type="text/javascript">
<!--
// Create page object
var cstArchivedStudents_edit = new ew_Page("cstArchivedStudents_edit");
// page properties
cstArchivedStudents_edit.PageID = "edit"; // page ID
cstArchivedStudents_edit.FormID = "fcstArchivedStudentsedit"; // form ID
var EW_PAGE_ID = cstArchivedStudents_edit.PageID; // for backward compatibility
// extend page with ValidateForm function
cstArchivedStudents_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($cstArchivedStudents->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($cstArchivedStudents->Surname->FldCaption()) ?>");
elm = fobj.elements["x" + infix + "_DateofBirth"];
if (elm && !ew_CheckDate(elm.value))
return ew_OnError(this, elm, "<?php echo ew_JsEncode2($cstArchivedStudents->DateofBirth->FldErrMsg()) ?>");
elm = fobj.elements["x" + infix + "_DisabilityCertificate"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_Payslip"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_BankAccountProof"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_IDFile"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
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 + "_MentorUndertaking"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_CandUUndertaking"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_CompanyCandidatePolicy"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_ResidenceProof"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_SignedAppForm"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_Photograph"];
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
cstArchivedStudents_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) { ?>
cstArchivedStudents_edit.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudents_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("TblTypeCUSTOMVIEW") ?><?php echo $cstArchivedStudents->TableCaption() ?><br><br>
<a href="<?php echo $cstArchivedStudents->getReturnUrl() ?>"><?php echo $Language->Phrase("GoBack") ?></a></span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$cstArchivedStudents_edit->ShowMessage();
?>
<form name="fcstArchivedStudentsedit" id="fcstArchivedStudentsedit" action="<?php echo ew_CurrentPage() ?>" method="post" enctype="multipart/form-data" onsubmit="return cstArchivedStudents_edit.ValidateForm(this);">
<p>
<input type="hidden" name="a_table" id="a_table" value="cstArchivedStudents">
<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">
<?php if ($cstArchivedStudents->Archived->Visible) { // Archived ?>
<tr<?php echo $cstArchivedStudents->Archived->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Archived->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents->Archived->CellAttributes() ?>><span id="el_Archived">
<div id="tp_x_Archived" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Archived" id="x_Archived" title="<?php echo $cstArchivedStudents->Archived->FldTitle() ?>" value="{value}"<?php echo $cstArchivedStudents->Archived->EditAttributes() ?>></label></div>
<div id="dsl_x_Archived" repeatcolumn="5">
<?php
$arwrk = $cstArchivedStudents->Archived->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedStudents->Archived->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Archived" id="x_Archived" title="<?php echo $cstArchivedStudents->Archived->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedStudents->Archived->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $cstArchivedStudents->Archived->CustomMsg ?></td>
</tr>
<?php } ?>
<input type="hidden" name="x_CCMStudentID" id="x_CCMStudentID" value="<?php echo ew_HtmlEncode($cstArchivedStudents->CCMStudentID->CurrentValue) ?>">
<?php if ($cstArchivedStudents->SelectionCategory->Visible) { // SelectionCategory ?>
<tr<?php echo $cstArchivedStudents->SelectionCategory->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->SelectionCategory->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->SelectionCategory->CellAttributes() ?>><span id="el_SelectionCategory">
<input type="text" name="x_SelectionCategory" id="x_SelectionCategory" title="<?php echo $cstArchivedStudents->SelectionCategory->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->SelectionCategory->EditValue ?>"<?php echo $cstArchivedStudents->SelectionCategory->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->SelectionCategory->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Title->Visible) { // Title ?>
<tr<?php echo $cstArchivedStudents->Title->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Title->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Title->CellAttributes() ?>><span id="el_Title">
<input type="text" name="x_Title" id="x_Title" title="<?php echo $cstArchivedStudents->Title->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents->Title->EditValue ?>"<?php echo $cstArchivedStudents->Title->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->Title->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Initials->Visible) { // Initials ?>
<tr<?php echo $cstArchivedStudents->Initials->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Initials->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Initials->CellAttributes() ?>><span id="el_Initials">
<input type="text" name="x_Initials" id="x_Initials" title="<?php echo $cstArchivedStudents->Initials->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents->Initials->EditValue ?>"<?php echo $cstArchivedStudents->Initials->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->Initials->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->FirstName->Visible) { // FirstName ?>
<tr<?php echo $cstArchivedStudents->FirstName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->FirstName->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents->FirstName->CellAttributes() ?>><span id="el_FirstName">
<input type="text" name="x_FirstName" id="x_FirstName" title="<?php echo $cstArchivedStudents->FirstName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->FirstName->EditValue ?>"<?php echo $cstArchivedStudents->FirstName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->FirstName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Surname->Visible) { // Surname ?>
<tr<?php echo $cstArchivedStudents->Surname->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Surname->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents->Surname->CellAttributes() ?>><span id="el_Surname">
<input type="text" name="x_Surname" id="x_Surname" title="<?php echo $cstArchivedStudents->Surname->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->Surname->EditValue ?>"<?php echo $cstArchivedStudents->Surname->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->Surname->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $cstArchivedStudents->KnownAs->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->KnownAs->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->KnownAs->CellAttributes() ?>><span id="el_KnownAs">
<input type="text" name="x_KnownAs" id="x_KnownAs" title="<?php echo $cstArchivedStudents->KnownAs->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->KnownAs->EditValue ?>"<?php echo $cstArchivedStudents->KnownAs->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->KnownAs->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $cstArchivedStudents->IDNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->IDNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->IDNumber->CellAttributes() ?>><span id="el_IDNumber">
<input type="text" name="x_IDNumber" id="x_IDNumber" title="<?php echo $cstArchivedStudents->IDNumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents->IDNumber->EditValue ?>"<?php echo $cstArchivedStudents->IDNumber->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->IDNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Telephone->Visible) { // Telephone ?>
<tr<?php echo $cstArchivedStudents->Telephone->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Telephone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Telephone->CellAttributes() ?>><span id="el_Telephone">
<input type="text" name="x_Telephone" id="x_Telephone" title="<?php echo $cstArchivedStudents->Telephone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->Telephone->EditValue ?>"<?php echo $cstArchivedStudents->Telephone->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->Telephone->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $cstArchivedStudents->Cellphone->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Cellphone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Cellphone->CellAttributes() ?>><span id="el_Cellphone">
<input type="text" name="x_Cellphone" id="x_Cellphone" title="<?php echo $cstArchivedStudents->Cellphone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->Cellphone->EditValue ?>"<?php echo $cstArchivedStudents->Cellphone->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->Cellphone->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $cstArchivedStudents->EmailAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->EmailAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->EmailAddress->CellAttributes() ?>><span id="el_EmailAddress">
<input type="text" name="x_EmailAddress" id="x_EmailAddress" title="<?php echo $cstArchivedStudents->EmailAddress->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->EmailAddress->EditValue ?>"<?php echo $cstArchivedStudents->EmailAddress->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->EmailAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->WorkAddress->Visible) { // WorkAddress ?>
<tr<?php echo $cstArchivedStudents->WorkAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->WorkAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->WorkAddress->CellAttributes() ?>><span id="el_WorkAddress">
<textarea name="x_WorkAddress" id="x_WorkAddress" title="<?php echo $cstArchivedStudents->WorkAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents->WorkAddress->EditAttributes() ?>><?php echo $cstArchivedStudents->WorkAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents->WorkAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->PostalAddress->Visible) { // PostalAddress ?>
<tr<?php echo $cstArchivedStudents->PostalAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->PostalAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->PostalAddress->CellAttributes() ?>><span id="el_PostalAddress">
<textarea name="x_PostalAddress" id="x_PostalAddress" title="<?php echo $cstArchivedStudents->PostalAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents->PostalAddress->EditAttributes() ?>><?php echo $cstArchivedStudents->PostalAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents->PostalAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Department->Visible) { // Department ?>
<tr<?php echo $cstArchivedStudents->Department->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Department->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Department->CellAttributes() ?>><span id="el_Department">
<input type="text" name="x_Department" id="x_Department" title="<?php echo $cstArchivedStudents->Department->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->Department->EditValue ?>"<?php echo $cstArchivedStudents->Department->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->Department->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Organisation->Visible) { // Organisation ?>
<tr<?php echo $cstArchivedStudents->Organisation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Organisation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Organisation->CellAttributes() ?>><span id="el_Organisation">
<input type="text" name="x_Organisation" id="x_Organisation" title="<?php echo $cstArchivedStudents->Organisation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->Organisation->EditValue ?>"<?php echo $cstArchivedStudents->Organisation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->Organisation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->VATNo->Visible) { // VATNo ?>
<tr<?php echo $cstArchivedStudents->VATNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->VATNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->VATNo->CellAttributes() ?>><span id="el_VATNo">
<input type="text" name="x_VATNo" id="x_VATNo" title="<?php echo $cstArchivedStudents->VATNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents->VATNo->EditValue ?>"<?php echo $cstArchivedStudents->VATNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->VATNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->JobTitle->Visible) { // JobTitle ?>
<tr<?php echo $cstArchivedStudents->JobTitle->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->JobTitle->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->JobTitle->CellAttributes() ?>><span id="el_JobTitle">
<input type="text" name="x_JobTitle" id="x_JobTitle" title="<?php echo $cstArchivedStudents->JobTitle->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->JobTitle->EditValue ?>"<?php echo $cstArchivedStudents->JobTitle->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->JobTitle->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->DateofBirth->Visible) { // DateofBirth ?>
<tr<?php echo $cstArchivedStudents->DateofBirth->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->DateofBirth->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->DateofBirth->CellAttributes() ?>><span id="el_DateofBirth">
<input type="text" name="x_DateofBirth" id="x_DateofBirth" title="<?php echo $cstArchivedStudents->DateofBirth->FldTitle() ?>" value="<?php echo $cstArchivedStudents->DateofBirth->EditValue ?>"<?php echo $cstArchivedStudents->DateofBirth->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->DateofBirth->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->PlaceofBirth->Visible) { // PlaceofBirth ?>
<tr<?php echo $cstArchivedStudents->PlaceofBirth->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->PlaceofBirth->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->PlaceofBirth->CellAttributes() ?>><span id="el_PlaceofBirth">
<input type="text" name="x_PlaceofBirth" id="x_PlaceofBirth" title="<?php echo $cstArchivedStudents->PlaceofBirth->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->PlaceofBirth->EditValue ?>"<?php echo $cstArchivedStudents->PlaceofBirth->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->PlaceofBirth->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CountryofBirth->Visible) { // CountryofBirth ?>
<tr<?php echo $cstArchivedStudents->CountryofBirth->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->CountryofBirth->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->CountryofBirth->CellAttributes() ?>><span id="el_CountryofBirth">
<input type="text" name="x_CountryofBirth" id="x_CountryofBirth" title="<?php echo $cstArchivedStudents->CountryofBirth->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->CountryofBirth->EditValue ?>"<?php echo $cstArchivedStudents->CountryofBirth->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->CountryofBirth->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Province->Visible) { // Province ?>
<tr<?php echo $cstArchivedStudents->Province->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Province->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Province->CellAttributes() ?>><span id="el_Province">
<select id="x_Province" name="x_Province" title="<?php echo $cstArchivedStudents->Province->FldTitle() ?>"<?php echo $cstArchivedStudents->Province->EditAttributes() ?>>
<?php
if (is_array($cstArchivedStudents->Province->EditValue)) {
$arwrk = $cstArchivedStudents->Province->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedStudents->Province->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
</option>
<?php
}
}
?>
</select>
</span><?php echo $cstArchivedStudents->Province->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->MaleorFemale->Visible) { // MaleorFemale ?>
<tr<?php echo $cstArchivedStudents->MaleorFemale->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->MaleorFemale->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->MaleorFemale->CellAttributes() ?>><span id="el_MaleorFemale">
<input type="text" name="x_MaleorFemale" id="x_MaleorFemale" title="<?php echo $cstArchivedStudents->MaleorFemale->FldTitle() ?>" size="30" maxlength="1" value="<?php echo $cstArchivedStudents->MaleorFemale->EditValue ?>"<?php echo $cstArchivedStudents->MaleorFemale->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->MaleorFemale->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->RaceGroup->Visible) { // RaceGroup ?>
<tr<?php echo $cstArchivedStudents->RaceGroup->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->RaceGroup->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->RaceGroup->CellAttributes() ?>><span id="el_RaceGroup">
<input type="text" name="x_RaceGroup" id="x_RaceGroup" title="<?php echo $cstArchivedStudents->RaceGroup->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->RaceGroup->EditValue ?>"<?php echo $cstArchivedStudents->RaceGroup->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->RaceGroup->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Disability->Visible) { // Disability ?>
<tr<?php echo $cstArchivedStudents->Disability->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Disability->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents->Disability->CellAttributes() ?>><span id="el_Disability">
<div id="tp_x_Disability" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Disability" id="x_Disability" title="<?php echo $cstArchivedStudents->Disability->FldTitle() ?>" value="{value}"<?php echo $cstArchivedStudents->Disability->EditAttributes() ?>></label></div>
<div id="dsl_x_Disability" repeatcolumn="5">
<?php
$arwrk = $cstArchivedStudents->Disability->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedStudents->Disability->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Disability" id="x_Disability" title="<?php echo $cstArchivedStudents->Disability->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedStudents->Disability->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $cstArchivedStudents->Disability->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->DisabilityNature->Visible) { // DisabilityNature ?>
<tr<?php echo $cstArchivedStudents->DisabilityNature->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->DisabilityNature->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->DisabilityNature->CellAttributes() ?>><span id="el_DisabilityNature">
<input type="text" name="x_DisabilityNature" id="x_DisabilityNature" title="<?php echo $cstArchivedStudents->DisabilityNature->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->DisabilityNature->EditValue ?>"<?php echo $cstArchivedStudents->DisabilityNature->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->DisabilityNature->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->DisabilityCertificate->Visible) { // DisabilityCertificate ?>
<tr<?php echo $cstArchivedStudents->DisabilityCertificate->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->DisabilityCertificate->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->DisabilityCertificate->CellAttributes() ?>><span id="el_DisabilityCertificate">
<div id="old_x_DisabilityCertificate">
<?php if ($cstArchivedStudents->DisabilityCertificate->HrefValue <> "" || $cstArchivedStudents->DisabilityCertificate->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->DisabilityCertificate->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->DisabilityCertificate->HrefValue ?>"><?php echo $cstArchivedStudents->DisabilityCertificate->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->DisabilityCertificate->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->DisabilityCertificate->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_DisabilityCertificate">
<?php if (!empty($cstArchivedStudents->DisabilityCertificate->Upload->DbValue)) { ?>
<label><input type="radio" name="a_DisabilityCertificate" id="a_DisabilityCertificate" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_DisabilityCertificate" id="a_DisabilityCertificate" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_DisabilityCertificate" id="a_DisabilityCertificate" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->DisabilityCertificate->EditAttrs["onchange"] = "this.form.a_DisabilityCertificate[2].checked=true;" . @$cstArchivedStudents->DisabilityCertificate->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_DisabilityCertificate" id="a_DisabilityCertificate" value="3">
<?php } ?>
<input type="file" name="x_DisabilityCertificate" id="x_DisabilityCertificate" title="<?php echo $cstArchivedStudents->DisabilityCertificate->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->DisabilityCertificate->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->DisabilityCertificate->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->ProfessionalCouncil->Visible) { // ProfessionalCouncil ?>
<tr<?php echo $cstArchivedStudents->ProfessionalCouncil->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->ProfessionalCouncil->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->ProfessionalCouncil->CellAttributes() ?>><span id="el_ProfessionalCouncil">
<input type="text" name="x_ProfessionalCouncil" id="x_ProfessionalCouncil" title="<?php echo $cstArchivedStudents->ProfessionalCouncil->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->ProfessionalCouncil->EditValue ?>"<?php echo $cstArchivedStudents->ProfessionalCouncil->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->ProfessionalCouncil->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CategoryReg->Visible) { // CategoryReg ?>
<tr<?php echo $cstArchivedStudents->CategoryReg->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->CategoryReg->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->CategoryReg->CellAttributes() ?>><span id="el_CategoryReg">
<input type="text" name="x_CategoryReg" id="x_CategoryReg" title="<?php echo $cstArchivedStudents->CategoryReg->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->CategoryReg->EditValue ?>"<?php echo $cstArchivedStudents->CategoryReg->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->CategoryReg->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CouncilRegNumber->Visible) { // CouncilRegNumber ?>
<tr<?php echo $cstArchivedStudents->CouncilRegNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->CouncilRegNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->CouncilRegNumber->CellAttributes() ?>><span id="el_CouncilRegNumber">
<input type="text" name="x_CouncilRegNumber" id="x_CouncilRegNumber" title="<?php echo $cstArchivedStudents->CouncilRegNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->CouncilRegNumber->EditValue ?>"<?php echo $cstArchivedStudents->CouncilRegNumber->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->CouncilRegNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->LengthCandidateReg->Visible) { // LengthCandidateReg ?>
<tr<?php echo $cstArchivedStudents->LengthCandidateReg->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->LengthCandidateReg->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->LengthCandidateReg->CellAttributes() ?>><span id="el_LengthCandidateReg">
<input type="text" name="x_LengthCandidateReg" id="x_LengthCandidateReg" title="<?php echo $cstArchivedStudents->LengthCandidateReg->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->LengthCandidateReg->EditValue ?>"<?php echo $cstArchivedStudents->LengthCandidateReg->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->LengthCandidateReg->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->YearsToProfReg->Visible) { // YearsToProfReg ?>
<tr<?php echo $cstArchivedStudents->YearsToProfReg->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->YearsToProfReg->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->YearsToProfReg->CellAttributes() ?>><span id="el_YearsToProfReg">
<input type="text" name="x_YearsToProfReg" id="x_YearsToProfReg" title="<?php echo $cstArchivedStudents->YearsToProfReg->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->YearsToProfReg->EditValue ?>"<?php echo $cstArchivedStudents->YearsToProfReg->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->YearsToProfReg->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->FirstJobStart->Visible) { // FirstJobStart ?>
<tr<?php echo $cstArchivedStudents->FirstJobStart->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->FirstJobStart->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->FirstJobStart->CellAttributes() ?>><span id="el_FirstJobStart">
<input type="text" name="x_FirstJobStart" id="x_FirstJobStart" title="<?php echo $cstArchivedStudents->FirstJobStart->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->FirstJobStart->EditValue ?>"<?php echo $cstArchivedStudents->FirstJobStart->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->FirstJobStart->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->VolAssociations->Visible) { // VolAssociations ?>
<tr<?php echo $cstArchivedStudents->VolAssociations->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->VolAssociations->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->VolAssociations->CellAttributes() ?>><span id="el_VolAssociations">
<input type="text" name="x_VolAssociations" id="x_VolAssociations" title="<?php echo $cstArchivedStudents->VolAssociations->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->VolAssociations->EditValue ?>"<?php echo $cstArchivedStudents->VolAssociations->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->VolAssociations->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BelongsTo->Visible) { // BelongsTo ?>
<tr<?php echo $cstArchivedStudents->BelongsTo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BelongsTo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BelongsTo->CellAttributes() ?>><span id="el_BelongsTo">
<input type="text" name="x_BelongsTo" id="x_BelongsTo" title="<?php echo $cstArchivedStudents->BelongsTo->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents->BelongsTo->EditValue ?>"<?php echo $cstArchivedStudents->BelongsTo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BelongsTo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CESA_SABTACO_MemNum->Visible) { // CESA_SABTACO_MemNum ?>
<tr<?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->CellAttributes() ?>><span id="el_CESA_SABTACO_MemNum">
<input type="text" name="x_CESA_SABTACO_MemNum" id="x_CESA_SABTACO_MemNum" title="<?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->EditValue ?>"<?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->CESA_SABTACO_MemNum->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->AreaDiscipline->Visible) { // AreaDiscipline ?>
<tr<?php echo $cstArchivedStudents->AreaDiscipline->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->AreaDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->AreaDiscipline->CellAttributes() ?>><span id="el_AreaDiscipline">
<input type="text" name="x_AreaDiscipline" id="x_AreaDiscipline" title="<?php echo $cstArchivedStudents->AreaDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->AreaDiscipline->EditValue ?>"<?php echo $cstArchivedStudents->AreaDiscipline->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->AreaDiscipline->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->AreaSubDiscipline->Visible) { // AreaSubDiscipline ?>
<tr<?php echo $cstArchivedStudents->AreaSubDiscipline->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->AreaSubDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->AreaSubDiscipline->CellAttributes() ?>><span id="el_AreaSubDiscipline">
<input type="text" name="x_AreaSubDiscipline" id="x_AreaSubDiscipline" title="<?php echo $cstArchivedStudents->AreaSubDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->AreaSubDiscipline->EditValue ?>"<?php echo $cstArchivedStudents->AreaSubDiscipline->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->AreaSubDiscipline->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Salary->Visible) { // Salary ?>
<tr<?php echo $cstArchivedStudents->Salary->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Salary->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Salary->CellAttributes() ?>><span id="el_Salary">
<input type="text" name="x_Salary" id="x_Salary" title="<?php echo $cstArchivedStudents->Salary->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->Salary->EditValue ?>"<?php echo $cstArchivedStudents->Salary->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->Salary->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Payslip->Visible) { // Payslip ?>
<tr<?php echo $cstArchivedStudents->Payslip->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Payslip->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Payslip->CellAttributes() ?>><span id="el_Payslip">
<div id="old_x_Payslip">
<?php if ($cstArchivedStudents->Payslip->HrefValue <> "" || $cstArchivedStudents->Payslip->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->Payslip->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->Payslip->HrefValue ?>"><?php echo $cstArchivedStudents->Payslip->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->Payslip->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->Payslip->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_Payslip">
<?php if (!empty($cstArchivedStudents->Payslip->Upload->DbValue)) { ?>
<label><input type="radio" name="a_Payslip" id="a_Payslip" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_Payslip" id="a_Payslip" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_Payslip" id="a_Payslip" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->Payslip->EditAttrs["onchange"] = "this.form.a_Payslip[2].checked=true;" . @$cstArchivedStudents->Payslip->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_Payslip" id="a_Payslip" value="3">
<?php } ?>
<input type="file" name="x_Payslip" id="x_Payslip" title="<?php echo $cstArchivedStudents->Payslip->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->Payslip->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->Payslip->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountName->Visible) { // BankAccountName ?>
<tr<?php echo $cstArchivedStudents->BankAccountName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BankAccountName->CellAttributes() ?>><span id="el_BankAccountName">
<input type="text" name="x_BankAccountName" id="x_BankAccountName" title="<?php echo $cstArchivedStudents->BankAccountName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BankAccountName->EditValue ?>"<?php echo $cstArchivedStudents->BankAccountName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BankAccountName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountBank->Visible) { // BankAccountBank ?>
<tr<?php echo $cstArchivedStudents->BankAccountBank->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountBank->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BankAccountBank->CellAttributes() ?>><span id="el_BankAccountBank">
<input type="text" name="x_BankAccountBank" id="x_BankAccountBank" title="<?php echo $cstArchivedStudents->BankAccountBank->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BankAccountBank->EditValue ?>"<?php echo $cstArchivedStudents->BankAccountBank->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BankAccountBank->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountBranch->Visible) { // BankAccountBranch ?>
<tr<?php echo $cstArchivedStudents->BankAccountBranch->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountBranch->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BankAccountBranch->CellAttributes() ?>><span id="el_BankAccountBranch">
<input type="text" name="x_BankAccountBranch" id="x_BankAccountBranch" title="<?php echo $cstArchivedStudents->BankAccountBranch->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BankAccountBranch->EditValue ?>"<?php echo $cstArchivedStudents->BankAccountBranch->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BankAccountBranch->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountNo->Visible) { // BankAccountNo ?>
<tr<?php echo $cstArchivedStudents->BankAccountNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BankAccountNo->CellAttributes() ?>><span id="el_BankAccountNo">
<input type="text" name="x_BankAccountNo" id="x_BankAccountNo" title="<?php echo $cstArchivedStudents->BankAccountNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BankAccountNo->EditValue ?>"<?php echo $cstArchivedStudents->BankAccountNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BankAccountNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BankAccountProof->Visible) { // BankAccountProof ?>
<tr<?php echo $cstArchivedStudents->BankAccountProof->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BankAccountProof->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BankAccountProof->CellAttributes() ?>><span id="el_BankAccountProof">
<div id="old_x_BankAccountProof">
<?php if ($cstArchivedStudents->BankAccountProof->HrefValue <> "" || $cstArchivedStudents->BankAccountProof->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->BankAccountProof->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->BankAccountProof->HrefValue ?>"><?php echo $cstArchivedStudents->BankAccountProof->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->BankAccountProof->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->BankAccountProof->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_BankAccountProof">
<?php if (!empty($cstArchivedStudents->BankAccountProof->Upload->DbValue)) { ?>
<label><input type="radio" name="a_BankAccountProof" id="a_BankAccountProof" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_BankAccountProof" id="a_BankAccountProof" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_BankAccountProof" id="a_BankAccountProof" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->BankAccountProof->EditAttrs["onchange"] = "this.form.a_BankAccountProof[2].checked=true;" . @$cstArchivedStudents->BankAccountProof->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_BankAccountProof" id="a_BankAccountProof" value="3">
<?php } ?>
<input type="file" name="x_BankAccountProof" id="x_BankAccountProof" title="<?php echo $cstArchivedStudents->BankAccountProof->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->BankAccountProof->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->BankAccountProof->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Funding->Visible) { // Funding ?>
<tr<?php echo $cstArchivedStudents->Funding->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Funding->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Funding->CellAttributes() ?>><span id="el_Funding">
<input type="text" name="x_Funding" id="x_Funding" title="<?php echo $cstArchivedStudents->Funding->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->Funding->EditValue ?>"<?php echo $cstArchivedStudents->Funding->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->Funding->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CWDTP->Visible) { // CWDTP ?>
<tr<?php echo $cstArchivedStudents->CWDTP->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->CWDTP->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents->CWDTP->CellAttributes() ?>><span id="el_CWDTP">
<input type="text" name="x_CWDTP" id="x_CWDTP" title="<?php echo $cstArchivedStudents->CWDTP->FldTitle() ?>" size="30" maxlength="1" value="<?php echo $cstArchivedStudents->CWDTP->EditValue ?>"<?php echo $cstArchivedStudents->CWDTP->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->CWDTP->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByName->Visible) { // BookedByName ?>
<tr<?php echo $cstArchivedStudents->BookedByName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BookedByName->CellAttributes() ?>><span id="el_BookedByName">
<input type="text" name="x_BookedByName" id="x_BookedByName" title="<?php echo $cstArchivedStudents->BookedByName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BookedByName->EditValue ?>"<?php echo $cstArchivedStudents->BookedByName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BookedByName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByDesignation->Visible) { // BookedByDesignation ?>
<tr<?php echo $cstArchivedStudents->BookedByDesignation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByDesignation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BookedByDesignation->CellAttributes() ?>><span id="el_BookedByDesignation">
<input type="text" name="x_BookedByDesignation" id="x_BookedByDesignation" title="<?php echo $cstArchivedStudents->BookedByDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BookedByDesignation->EditValue ?>"<?php echo $cstArchivedStudents->BookedByDesignation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BookedByDesignation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByTelNo->Visible) { // BookedByTelNo ?>
<tr<?php echo $cstArchivedStudents->BookedByTelNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BookedByTelNo->CellAttributes() ?>><span id="el_BookedByTelNo">
<input type="text" name="x_BookedByTelNo" id="x_BookedByTelNo" title="<?php echo $cstArchivedStudents->BookedByTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BookedByTelNo->EditValue ?>"<?php echo $cstArchivedStudents->BookedByTelNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BookedByTelNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
<tr<?php echo $cstArchivedStudents->BookedByFaxNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByFaxNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BookedByFaxNo->CellAttributes() ?>><span id="el_BookedByFaxNo">
<input type="text" name="x_BookedByFaxNo" id="x_BookedByFaxNo" title="<?php echo $cstArchivedStudents->BookedByFaxNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BookedByFaxNo->EditValue ?>"<?php echo $cstArchivedStudents->BookedByFaxNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BookedByFaxNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByCellNo->Visible) { // BookedByCellNo ?>
<tr<?php echo $cstArchivedStudents->BookedByCellNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BookedByCellNo->CellAttributes() ?>><span id="el_BookedByCellNo">
<input type="text" name="x_BookedByCellNo" id="x_BookedByCellNo" title="<?php echo $cstArchivedStudents->BookedByCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BookedByCellNo->EditValue ?>"<?php echo $cstArchivedStudents->BookedByCellNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BookedByCellNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BookedByEmail->Visible) { // BookedByEmail ?>
<tr<?php echo $cstArchivedStudents->BookedByEmail->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BookedByEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->BookedByEmail->CellAttributes() ?>><span id="el_BookedByEmail">
<input type="text" name="x_BookedByEmail" id="x_BookedByEmail" title="<?php echo $cstArchivedStudents->BookedByEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->BookedByEmail->EditValue ?>"<?php echo $cstArchivedStudents->BookedByEmail->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BookedByEmail->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->MentorID->Visible) { // MentorID ?>
<tr<?php echo $cstArchivedStudents->MentorID->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->MentorID->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->MentorID->CellAttributes() ?>><span id="el_MentorID">
<select id="x_MentorID" name="x_MentorID" title="<?php echo $cstArchivedStudents->MentorID->FldTitle() ?>"<?php echo $cstArchivedStudents->MentorID->EditAttributes() ?>>
<?php
if (is_array($cstArchivedStudents->MentorID->EditValue)) {
$arwrk = $cstArchivedStudents->MentorID->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedStudents->MentorID->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
<?php if ($arwrk[$rowcntwrk][2] <> "") { ?>
<?php echo ew_ValueSeparator($rowcntwrk) ?><?php echo $arwrk[$rowcntwrk][2] ?>
<?php } ?>
</option>
<?php
}
}
?>
</select>
</span><?php echo $cstArchivedStudents->MentorID->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->EmployerID->Visible) { // EmployerID ?>
<tr<?php echo $cstArchivedStudents->EmployerID->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->EmployerID->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->EmployerID->CellAttributes() ?>><span id="el_EmployerID">
<select id="x_EmployerID" name="x_EmployerID" title="<?php echo $cstArchivedStudents->EmployerID->FldTitle() ?>"<?php echo $cstArchivedStudents->EmployerID->EditAttributes() ?>>
<?php
if (is_array($cstArchivedStudents->EmployerID->EditValue)) {
$arwrk = $cstArchivedStudents->EmployerID->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedStudents->EmployerID->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
<?php if ($arwrk[$rowcntwrk][2] <> "") { ?>
<?php echo ew_ValueSeparator($rowcntwrk) ?><?php echo $arwrk[$rowcntwrk][2] ?>
<?php } ?>
</option>
<?php
}
}
?>
</select>
</span><?php echo $cstArchivedStudents->EmployerID->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerName->Visible) { // HRManagerName ?>
<tr<?php echo $cstArchivedStudents->HRManagerName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->HRManagerName->CellAttributes() ?>><span id="el_HRManagerName">
<input type="text" name="x_HRManagerName" id="x_HRManagerName" title="<?php echo $cstArchivedStudents->HRManagerName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->HRManagerName->EditValue ?>"<?php echo $cstArchivedStudents->HRManagerName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->HRManagerName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
<tr<?php echo $cstArchivedStudents->HRManagerDesignation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerDesignation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->HRManagerDesignation->CellAttributes() ?>><span id="el_HRManagerDesignation">
<input type="text" name="x_HRManagerDesignation" id="x_HRManagerDesignation" title="<?php echo $cstArchivedStudents->HRManagerDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->HRManagerDesignation->EditValue ?>"<?php echo $cstArchivedStudents->HRManagerDesignation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->HRManagerDesignation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
<tr<?php echo $cstArchivedStudents->HRManagerTelNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->HRManagerTelNo->CellAttributes() ?>><span id="el_HRManagerTelNo">
<input type="text" name="x_HRManagerTelNo" id="x_HRManagerTelNo" title="<?php echo $cstArchivedStudents->HRManagerTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->HRManagerTelNo->EditValue ?>"<?php echo $cstArchivedStudents->HRManagerTelNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->HRManagerTelNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
<tr<?php echo $cstArchivedStudents->HRManagerCellNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->HRManagerCellNo->CellAttributes() ?>><span id="el_HRManagerCellNo">
<input type="text" name="x_HRManagerCellNo" id="x_HRManagerCellNo" title="<?php echo $cstArchivedStudents->HRManagerCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->HRManagerCellNo->EditValue ?>"<?php echo $cstArchivedStudents->HRManagerCellNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->HRManagerCellNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->HRManagerEmail->Visible) { // HRManagerEmail ?>
<tr<?php echo $cstArchivedStudents->HRManagerEmail->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->HRManagerEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->HRManagerEmail->CellAttributes() ?>><span id="el_HRManagerEmail">
<input type="text" name="x_HRManagerEmail" id="x_HRManagerEmail" title="<?php echo $cstArchivedStudents->HRManagerEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->HRManagerEmail->EditValue ?>"<?php echo $cstArchivedStudents->HRManagerEmail->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->HRManagerEmail->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorName->Visible) { // SupervisorName ?>
<tr<?php echo $cstArchivedStudents->SupervisorName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->SupervisorName->CellAttributes() ?>><span id="el_SupervisorName">
<input type="text" name="x_SupervisorName" id="x_SupervisorName" title="<?php echo $cstArchivedStudents->SupervisorName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->SupervisorName->EditValue ?>"<?php echo $cstArchivedStudents->SupervisorName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->SupervisorName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorDesig->Visible) { // SupervisorDesig ?>
<tr<?php echo $cstArchivedStudents->SupervisorDesig->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorDesig->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->SupervisorDesig->CellAttributes() ?>><span id="el_SupervisorDesig">
<input type="text" name="x_SupervisorDesig" id="x_SupervisorDesig" title="<?php echo $cstArchivedStudents->SupervisorDesig->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->SupervisorDesig->EditValue ?>"<?php echo $cstArchivedStudents->SupervisorDesig->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->SupervisorDesig->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorProfRegNo->Visible) { // SupervisorProfRegNo ?>
<tr<?php echo $cstArchivedStudents->SupervisorProfRegNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorProfRegNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->SupervisorProfRegNo->CellAttributes() ?>><span id="el_SupervisorProfRegNo">
<input type="text" name="x_SupervisorProfRegNo" id="x_SupervisorProfRegNo" title="<?php echo $cstArchivedStudents->SupervisorProfRegNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->SupervisorProfRegNo->EditValue ?>"<?php echo $cstArchivedStudents->SupervisorProfRegNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->SupervisorProfRegNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorTelNo->Visible) { // SupervisorTelNo ?>
<tr<?php echo $cstArchivedStudents->SupervisorTelNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->SupervisorTelNo->CellAttributes() ?>><span id="el_SupervisorTelNo">
<input type="text" name="x_SupervisorTelNo" id="x_SupervisorTelNo" title="<?php echo $cstArchivedStudents->SupervisorTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->SupervisorTelNo->EditValue ?>"<?php echo $cstArchivedStudents->SupervisorTelNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->SupervisorTelNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorCellNo->Visible) { // SupervisorCellNo ?>
<tr<?php echo $cstArchivedStudents->SupervisorCellNo->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->SupervisorCellNo->CellAttributes() ?>><span id="el_SupervisorCellNo">
<input type="text" name="x_SupervisorCellNo" id="x_SupervisorCellNo" title="<?php echo $cstArchivedStudents->SupervisorCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->SupervisorCellNo->EditValue ?>"<?php echo $cstArchivedStudents->SupervisorCellNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->SupervisorCellNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SupervisorEmail->Visible) { // SupervisorEmail ?>
<tr<?php echo $cstArchivedStudents->SupervisorEmail->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->SupervisorEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->SupervisorEmail->CellAttributes() ?>><span id="el_SupervisorEmail">
<input type="text" name="x_SupervisorEmail" id="x_SupervisorEmail" title="<?php echo $cstArchivedStudents->SupervisorEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->SupervisorEmail->EditValue ?>"<?php echo $cstArchivedStudents->SupervisorEmail->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->SupervisorEmail->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->EducationalInst->Visible) { // EducationalInst ?>
<tr<?php echo $cstArchivedStudents->EducationalInst->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->EducationalInst->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->EducationalInst->CellAttributes() ?>><span id="el_EducationalInst">
<input type="text" name="x_EducationalInst" id="x_EducationalInst" title="<?php echo $cstArchivedStudents->EducationalInst->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->EducationalInst->EditValue ?>"<?php echo $cstArchivedStudents->EducationalInst->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->EducationalInst->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Qualifications->Visible) { // Qualifications ?>
<tr<?php echo $cstArchivedStudents->Qualifications->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Qualifications->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Qualifications->CellAttributes() ?>><span id="el_Qualifications">
<textarea name="x_Qualifications" id="x_Qualifications" title="<?php echo $cstArchivedStudents->Qualifications->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents->Qualifications->EditAttributes() ?>><?php echo $cstArchivedStudents->Qualifications->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents->Qualifications->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->DateFinalExam->Visible) { // DateFinalExam ?>
<tr<?php echo $cstArchivedStudents->DateFinalExam->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->DateFinalExam->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->DateFinalExam->CellAttributes() ?>><span id="el_DateFinalExam">
<input type="text" name="x_DateFinalExam" id="x_DateFinalExam" title="<?php echo $cstArchivedStudents->DateFinalExam->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->DateFinalExam->EditValue ?>"<?php echo $cstArchivedStudents->DateFinalExam->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->DateFinalExam->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->IDFile->Visible) { // IDFile ?>
<tr<?php echo $cstArchivedStudents->IDFile->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->IDFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->IDFile->CellAttributes() ?>><span id="el_IDFile">
<div id="old_x_IDFile">
<?php if ($cstArchivedStudents->IDFile->HrefValue <> "" || $cstArchivedStudents->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->IDFile->HrefValue ?>"><?php echo $cstArchivedStudents->IDFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->IDFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->IDFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_IDFile">
<?php if (!empty($cstArchivedStudents->IDFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_IDFile" id="a_IDFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_IDFile" id="a_IDFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_IDFile" id="a_IDFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->IDFile->EditAttrs["onchange"] = "this.form.a_IDFile[2].checked=true;" . @$cstArchivedStudents->IDFile->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_IDFile" id="a_IDFile" value="3">
<?php } ?>
<input type="file" name="x_IDFile" id="x_IDFile" title="<?php echo $cstArchivedStudents->IDFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->IDFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->IDFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CVFile->Visible) { // CVFile ?>
<tr<?php echo $cstArchivedStudents->CVFile->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->CVFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->CVFile->CellAttributes() ?>><span id="el_CVFile">
<div id="old_x_CVFile">
<?php if ($cstArchivedStudents->CVFile->HrefValue <> "" || $cstArchivedStudents->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->CVFile->HrefValue ?>"><?php echo $cstArchivedStudents->CVFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->CVFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->CVFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_CVFile">
<?php if (!empty($cstArchivedStudents->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 $cstArchivedStudents->CVFile->EditAttrs["onchange"] = "this.form.a_CVFile[2].checked=true;" . @$cstArchivedStudents->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 $cstArchivedStudents->CVFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->CVFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->CVFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->QualCertificate1->Visible) { // QualCertificate1 ?>
<tr<?php echo $cstArchivedStudents->QualCertificate1->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->QualCertificate1->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->QualCertificate1->CellAttributes() ?>><span id="el_QualCertificate1">
<div id="old_x_QualCertificate1">
<?php if ($cstArchivedStudents->QualCertificate1->HrefValue <> "" || $cstArchivedStudents->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->QualCertificate1->HrefValue ?>"><?php echo $cstArchivedStudents->QualCertificate1->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->QualCertificate1->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate1">
<?php if (!empty($cstArchivedStudents->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 $cstArchivedStudents->QualCertificate1->EditAttrs["onchange"] = "this.form.a_QualCertificate1[2].checked=true;" . @$cstArchivedStudents->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 $cstArchivedStudents->QualCertificate1->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->QualCertificate1->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->QualCertificate1->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->QualCertificate2->Visible) { // QualCertificate2 ?>
<tr<?php echo $cstArchivedStudents->QualCertificate2->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->QualCertificate2->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->QualCertificate2->CellAttributes() ?>><span id="el_QualCertificate2">
<div id="old_x_QualCertificate2">
<?php if ($cstArchivedStudents->QualCertificate2->HrefValue <> "" || $cstArchivedStudents->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->QualCertificate2->HrefValue ?>"><?php echo $cstArchivedStudents->QualCertificate2->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->QualCertificate2->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate2">
<?php if (!empty($cstArchivedStudents->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 $cstArchivedStudents->QualCertificate2->EditAttrs["onchange"] = "this.form.a_QualCertificate2[2].checked=true;" . @$cstArchivedStudents->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 $cstArchivedStudents->QualCertificate2->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->QualCertificate2->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->QualCertificate2->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->QualCertificate3->Visible) { // QualCertificate3 ?>
<tr<?php echo $cstArchivedStudents->QualCertificate3->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->QualCertificate3->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->QualCertificate3->CellAttributes() ?>><span id="el_QualCertificate3">
<div id="old_x_QualCertificate3">
<?php if ($cstArchivedStudents->QualCertificate3->HrefValue <> "" || $cstArchivedStudents->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->QualCertificate3->HrefValue ?>"><?php echo $cstArchivedStudents->QualCertificate3->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->QualCertificate3->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate3">
<?php if (!empty($cstArchivedStudents->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 $cstArchivedStudents->QualCertificate3->EditAttrs["onchange"] = "this.form.a_QualCertificate3[2].checked=true;" . @$cstArchivedStudents->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 $cstArchivedStudents->QualCertificate3->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->QualCertificate3->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->QualCertificate3->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->MentorUndertaking->Visible) { // MentorUndertaking ?>
<tr<?php echo $cstArchivedStudents->MentorUndertaking->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->MentorUndertaking->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->MentorUndertaking->CellAttributes() ?>><span id="el_MentorUndertaking">
<div id="old_x_MentorUndertaking">
<?php if ($cstArchivedStudents->MentorUndertaking->HrefValue <> "" || $cstArchivedStudents->MentorUndertaking->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->MentorUndertaking->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->MentorUndertaking->HrefValue ?>"><?php echo $cstArchivedStudents->MentorUndertaking->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->MentorUndertaking->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->MentorUndertaking->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_MentorUndertaking">
<?php if (!empty($cstArchivedStudents->MentorUndertaking->Upload->DbValue)) { ?>
<label><input type="radio" name="a_MentorUndertaking" id="a_MentorUndertaking" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_MentorUndertaking" id="a_MentorUndertaking" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_MentorUndertaking" id="a_MentorUndertaking" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->MentorUndertaking->EditAttrs["onchange"] = "this.form.a_MentorUndertaking[2].checked=true;" . @$cstArchivedStudents->MentorUndertaking->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_MentorUndertaking" id="a_MentorUndertaking" value="3">
<?php } ?>
<input type="file" name="x_MentorUndertaking" id="x_MentorUndertaking" title="<?php echo $cstArchivedStudents->MentorUndertaking->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->MentorUndertaking->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->MentorUndertaking->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CandUUndertaking->Visible) { // CandUUndertaking ?>
<tr<?php echo $cstArchivedStudents->CandUUndertaking->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->CandUUndertaking->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->CandUUndertaking->CellAttributes() ?>><span id="el_CandUUndertaking">
<div id="old_x_CandUUndertaking">
<?php if ($cstArchivedStudents->CandUUndertaking->HrefValue <> "" || $cstArchivedStudents->CandUUndertaking->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->CandUUndertaking->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->CandUUndertaking->HrefValue ?>"><?php echo $cstArchivedStudents->CandUUndertaking->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->CandUUndertaking->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->CandUUndertaking->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_CandUUndertaking">
<?php if (!empty($cstArchivedStudents->CandUUndertaking->Upload->DbValue)) { ?>
<label><input type="radio" name="a_CandUUndertaking" id="a_CandUUndertaking" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_CandUUndertaking" id="a_CandUUndertaking" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_CandUUndertaking" id="a_CandUUndertaking" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->CandUUndertaking->EditAttrs["onchange"] = "this.form.a_CandUUndertaking[2].checked=true;" . @$cstArchivedStudents->CandUUndertaking->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_CandUUndertaking" id="a_CandUUndertaking" value="3">
<?php } ?>
<input type="file" name="x_CandUUndertaking" id="x_CandUUndertaking" title="<?php echo $cstArchivedStudents->CandUUndertaking->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->CandUUndertaking->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->CandUUndertaking->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->CompanyCandidatePolicy->Visible) { // CompanyCandidatePolicy ?>
<tr<?php echo $cstArchivedStudents->CompanyCandidatePolicy->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->CompanyCandidatePolicy->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->CompanyCandidatePolicy->CellAttributes() ?>><span id="el_CompanyCandidatePolicy">
<div id="old_x_CompanyCandidatePolicy">
<?php if ($cstArchivedStudents->CompanyCandidatePolicy->HrefValue <> "" || $cstArchivedStudents->CompanyCandidatePolicy->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->CompanyCandidatePolicy->HrefValue ?>"><?php echo $cstArchivedStudents->CompanyCandidatePolicy->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->CompanyCandidatePolicy->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_CompanyCandidatePolicy">
<?php if (!empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue)) { ?>
<label><input type="radio" name="a_CompanyCandidatePolicy" id="a_CompanyCandidatePolicy" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_CompanyCandidatePolicy" id="a_CompanyCandidatePolicy" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_CompanyCandidatePolicy" id="a_CompanyCandidatePolicy" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->CompanyCandidatePolicy->EditAttrs["onchange"] = "this.form.a_CompanyCandidatePolicy[2].checked=true;" . @$cstArchivedStudents->CompanyCandidatePolicy->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_CompanyCandidatePolicy" id="a_CompanyCandidatePolicy" value="3">
<?php } ?>
<input type="file" name="x_CompanyCandidatePolicy" id="x_CompanyCandidatePolicy" title="<?php echo $cstArchivedStudents->CompanyCandidatePolicy->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->CompanyCandidatePolicy->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->CompanyCandidatePolicy->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->ResidenceProof->Visible) { // ResidenceProof ?>
<tr<?php echo $cstArchivedStudents->ResidenceProof->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->ResidenceProof->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->ResidenceProof->CellAttributes() ?>><span id="el_ResidenceProof">
<div id="old_x_ResidenceProof">
<?php if ($cstArchivedStudents->ResidenceProof->HrefValue <> "" || $cstArchivedStudents->ResidenceProof->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->ResidenceProof->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->ResidenceProof->HrefValue ?>"><?php echo $cstArchivedStudents->ResidenceProof->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->ResidenceProof->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->ResidenceProof->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_ResidenceProof">
<?php if (!empty($cstArchivedStudents->ResidenceProof->Upload->DbValue)) { ?>
<label><input type="radio" name="a_ResidenceProof" id="a_ResidenceProof" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_ResidenceProof" id="a_ResidenceProof" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_ResidenceProof" id="a_ResidenceProof" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->ResidenceProof->EditAttrs["onchange"] = "this.form.a_ResidenceProof[2].checked=true;" . @$cstArchivedStudents->ResidenceProof->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_ResidenceProof" id="a_ResidenceProof" value="3">
<?php } ?>
<input type="file" name="x_ResidenceProof" id="x_ResidenceProof" title="<?php echo $cstArchivedStudents->ResidenceProof->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->ResidenceProof->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->ResidenceProof->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->SignedAppForm->Visible) { // SignedAppForm ?>
<tr<?php echo $cstArchivedStudents->SignedAppForm->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->SignedAppForm->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->SignedAppForm->CellAttributes() ?>><span id="el_SignedAppForm">
<div id="old_x_SignedAppForm">
<?php if ($cstArchivedStudents->SignedAppForm->HrefValue <> "" || $cstArchivedStudents->SignedAppForm->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->SignedAppForm->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->SignedAppForm->HrefValue ?>"><?php echo $cstArchivedStudents->SignedAppForm->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->SignedAppForm->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->SignedAppForm->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_SignedAppForm">
<?php if (!empty($cstArchivedStudents->SignedAppForm->Upload->DbValue)) { ?>
<label><input type="radio" name="a_SignedAppForm" id="a_SignedAppForm" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_SignedAppForm" id="a_SignedAppForm" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_SignedAppForm" id="a_SignedAppForm" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->SignedAppForm->EditAttrs["onchange"] = "this.form.a_SignedAppForm[2].checked=true;" . @$cstArchivedStudents->SignedAppForm->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_SignedAppForm" id="a_SignedAppForm" value="3">
<?php } ?>
<input type="file" name="x_SignedAppForm" id="x_SignedAppForm" title="<?php echo $cstArchivedStudents->SignedAppForm->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->SignedAppForm->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->SignedAppForm->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->Photograph->Visible) { // Photograph ?>
<tr<?php echo $cstArchivedStudents->Photograph->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->Photograph->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->Photograph->CellAttributes() ?>><span id="el_Photograph">
<div id="old_x_Photograph">
<?php if ($cstArchivedStudents->Photograph->HrefValue <> "" || $cstArchivedStudents->Photograph->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents->Photograph->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents->Photograph->HrefValue ?>"><?php echo $cstArchivedStudents->Photograph->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents->Photograph->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents->Photograph->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_Photograph">
<?php if (!empty($cstArchivedStudents->Photograph->Upload->DbValue)) { ?>
<label><input type="radio" name="a_Photograph" id="a_Photograph" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_Photograph" id="a_Photograph" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_Photograph" id="a_Photograph" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents->Photograph->EditAttrs["onchange"] = "this.form.a_Photograph[2].checked=true;" . @$cstArchivedStudents->Photograph->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_Photograph" id="a_Photograph" value="3">
<?php } ?>
<input type="file" name="x_Photograph" id="x_Photograph" title="<?php echo $cstArchivedStudents->Photograph->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents->Photograph->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents->Photograph->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->StudentNumber->Visible) { // StudentNumber ?>
<tr<?php echo $cstArchivedStudents->StudentNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->StudentNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->StudentNumber->CellAttributes() ?>><span id="el_StudentNumber">
<input type="text" name="x_StudentNumber" id="x_StudentNumber" title="<?php echo $cstArchivedStudents->StudentNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents->StudentNumber->EditValue ?>"<?php echo $cstArchivedStudents->StudentNumber->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->StudentNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $cstArchivedStudents->WebUsername->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->WebUsername->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->WebUsername->CellAttributes() ?>><span id="el_WebUsername">
<input type="text" name="x_WebUsername" id="x_WebUsername" title="<?php echo $cstArchivedStudents->WebUsername->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents->WebUsername->EditValue ?>"<?php echo $cstArchivedStudents->WebUsername->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->WebUsername->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $cstArchivedStudents->WebPassword->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->WebPassword->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents->WebPassword->CellAttributes() ?>><span id="el_WebPassword">
<input type="text" name="x_WebPassword" id="x_WebPassword" title="<?php echo $cstArchivedStudents->WebPassword->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents->WebPassword->EditValue ?>"<?php echo $cstArchivedStudents->WebPassword->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->WebPassword->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents->BlockAccess->Visible) { // BlockAccess ?>
<tr<?php echo $cstArchivedStudents->BlockAccess->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents->BlockAccess->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents->BlockAccess->CellAttributes() ?>><span id="el_BlockAccess">
<input type="text" name="x_BlockAccess" id="x_BlockAccess" title="<?php echo $cstArchivedStudents->BlockAccess->FldTitle() ?>" size="30" maxlength="1" value="<?php echo $cstArchivedStudents->BlockAccess->EditValue ?>"<?php echo $cstArchivedStudents->BlockAccess->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents->BlockAccess->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
$cstArchivedStudents_edit->Page_Terminate();
?>
<?php
//
// Page class
//
class ccstArchivedStudents_edit {
// Page ID
var $PageID = 'edit';
// Table name
var $TableName = 'cstArchivedStudents';
// Page object name
var $PageObjName = 'cstArchivedStudents_edit';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $cstArchivedStudents;
if ($cstArchivedStudents->UseTokenInUrl) $PageUrl .= "t=" . $cstArchivedStudents->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, $cstArchivedStudents;
if ($cstArchivedStudents->UseTokenInUrl) {
if ($objForm)
return ($cstArchivedStudents->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($cstArchivedStudents->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function ccstArchivedStudents_edit() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (cstArchivedStudents)
$GLOBALS["cstArchivedStudents"] = new ccstArchivedStudents();
// Table object (CCMUsers)
$GLOBALS['CCMUsers'] = new cCCMUsers();
// 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", 'cstArchivedStudents', 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 $cstArchivedStudents;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) $Security->AutoLogin();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->TableName);
$Security->TablePermission_Loaded();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
if (!$Security->CanEdit()) {
$Security->SaveLastUrl();
$this->Page_Terminate("cstArchivedStudentslist.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, $cstArchivedStudents;
// Load key from QueryString
if (@$_GET["CCMStudentID"] <> "")
$cstArchivedStudents->CCMStudentID->setQueryStringValue($_GET["CCMStudentID"]);
if (@$_POST["a_edit"] <> "") {
$cstArchivedStudents->CurrentAction = $_POST["a_edit"]; // Get action code
$this->GetUploadFiles(); // Get upload files
$this->LoadFormValues(); // Get form values
// Validate form
if (!$this->ValidateForm()) {
$cstArchivedStudents->CurrentAction = ""; // Form error, reset action
$this->setMessage($gsFormError);
$cstArchivedStudents->EventCancelled = TRUE; // Event cancelled
$this->RestoreFormValues();
}
} else {
$cstArchivedStudents->CurrentAction = "I"; // Default action is display
}
// Check if valid key
if ($cstArchivedStudents->CCMStudentID->CurrentValue == "")
$this->Page_Terminate("cstArchivedStudentslist.php"); // Invalid key, return to list
switch ($cstArchivedStudents->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("cstArchivedStudentslist.php"); // No matching record, return to list
}
break;
Case "U": // Update
$cstArchivedStudents->SendEmail = TRUE; // Send email on update success
if ($this->EditRow()) { // Update record based on key
$this->setMessage($Language->Phrase("UpdateSuccess")); // Update success
$sReturnUrl = $cstArchivedStudents->getReturnUrl();
if (ew_GetPageName($sReturnUrl) == "cstArchivedStudentsview.php")
$sReturnUrl = $cstArchivedStudents->ViewUrl(); // View paging, return to View page directly
$this->Page_Terminate($sReturnUrl); // Return to caller
} else {
$cstArchivedStudents->EventCancelled = TRUE; // Event cancelled
$this->RestoreFormValues(); // Restore form values if update failed
}
}
// Render the record
$cstArchivedStudents->RowType = EW_ROWTYPE_EDIT; // Render as Edit
$this->RenderRow();
}
// Get upload files
function GetUploadFiles() {
global $objForm, $cstArchivedStudents;
// Get upload data
if ($cstArchivedStudents->DisabilityCertificate->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->DisabilityCertificate->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->Payslip->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->Payslip->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->BankAccountProof->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->BankAccountProof->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->IDFile->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->IDFile->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->CVFile->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->CVFile->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->QualCertificate1->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->QualCertificate1->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->QualCertificate2->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->QualCertificate2->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->QualCertificate3->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->QualCertificate3->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->MentorUndertaking->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->MentorUndertaking->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->CandUUndertaking->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->CandUUndertaking->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->CompanyCandidatePolicy->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->CompanyCandidatePolicy->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->ResidenceProof->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->ResidenceProof->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->SignedAppForm->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->SignedAppForm->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents->Photograph->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents->Photograph->Upload->Message;
$this->Page_Terminate();
exit();
}
}
// Load form values
function LoadFormValues() {
// Load from form
global $objForm, $cstArchivedStudents;
$cstArchivedStudents->Archived->setFormValue($objForm->GetValue("x_Archived"));
$cstArchivedStudents->CCMStudentID->setFormValue($objForm->GetValue("x_CCMStudentID"));
$cstArchivedStudents->SelectionCategory->setFormValue($objForm->GetValue("x_SelectionCategory"));
$cstArchivedStudents->Title->setFormValue($objForm->GetValue("x_Title"));
$cstArchivedStudents->Initials->setFormValue($objForm->GetValue("x_Initials"));
$cstArchivedStudents->FirstName->setFormValue($objForm->GetValue("x_FirstName"));
$cstArchivedStudents->Surname->setFormValue($objForm->GetValue("x_Surname"));
$cstArchivedStudents->KnownAs->setFormValue($objForm->GetValue("x_KnownAs"));
$cstArchivedStudents->IDNumber->setFormValue($objForm->GetValue("x_IDNumber"));
$cstArchivedStudents->Telephone->setFormValue($objForm->GetValue("x_Telephone"));
$cstArchivedStudents->Cellphone->setFormValue($objForm->GetValue("x_Cellphone"));
$cstArchivedStudents->EmailAddress->setFormValue($objForm->GetValue("x_EmailAddress"));
$cstArchivedStudents->WorkAddress->setFormValue($objForm->GetValue("x_WorkAddress"));
$cstArchivedStudents->PostalAddress->setFormValue($objForm->GetValue("x_PostalAddress"));
$cstArchivedStudents->Department->setFormValue($objForm->GetValue("x_Department"));
$cstArchivedStudents->Organisation->setFormValue($objForm->GetValue("x_Organisation"));
$cstArchivedStudents->VATNo->setFormValue($objForm->GetValue("x_VATNo"));
$cstArchivedStudents->JobTitle->setFormValue($objForm->GetValue("x_JobTitle"));
$cstArchivedStudents->DateofBirth->setFormValue($objForm->GetValue("x_DateofBirth"));
$cstArchivedStudents->DateofBirth->CurrentValue = ew_UnFormatDateTime($cstArchivedStudents->DateofBirth->CurrentValue, 5);
$cstArchivedStudents->PlaceofBirth->setFormValue($objForm->GetValue("x_PlaceofBirth"));
$cstArchivedStudents->CountryofBirth->setFormValue($objForm->GetValue("x_CountryofBirth"));
$cstArchivedStudents->Province->setFormValue($objForm->GetValue("x_Province"));
$cstArchivedStudents->MaleorFemale->setFormValue($objForm->GetValue("x_MaleorFemale"));
$cstArchivedStudents->RaceGroup->setFormValue($objForm->GetValue("x_RaceGroup"));
$cstArchivedStudents->Disability->setFormValue($objForm->GetValue("x_Disability"));
$cstArchivedStudents->DisabilityNature->setFormValue($objForm->GetValue("x_DisabilityNature"));
$cstArchivedStudents->ProfessionalCouncil->setFormValue($objForm->GetValue("x_ProfessionalCouncil"));
$cstArchivedStudents->CategoryReg->setFormValue($objForm->GetValue("x_CategoryReg"));
$cstArchivedStudents->CouncilRegNumber->setFormValue($objForm->GetValue("x_CouncilRegNumber"));
$cstArchivedStudents->LengthCandidateReg->setFormValue($objForm->GetValue("x_LengthCandidateReg"));
$cstArchivedStudents->YearsToProfReg->setFormValue($objForm->GetValue("x_YearsToProfReg"));
$cstArchivedStudents->FirstJobStart->setFormValue($objForm->GetValue("x_FirstJobStart"));
$cstArchivedStudents->VolAssociations->setFormValue($objForm->GetValue("x_VolAssociations"));
$cstArchivedStudents->BelongsTo->setFormValue($objForm->GetValue("x_BelongsTo"));
$cstArchivedStudents->CESA_SABTACO_MemNum->setFormValue($objForm->GetValue("x_CESA_SABTACO_MemNum"));
$cstArchivedStudents->AreaDiscipline->setFormValue($objForm->GetValue("x_AreaDiscipline"));
$cstArchivedStudents->AreaSubDiscipline->setFormValue($objForm->GetValue("x_AreaSubDiscipline"));
$cstArchivedStudents->Salary->setFormValue($objForm->GetValue("x_Salary"));
$cstArchivedStudents->BankAccountName->setFormValue($objForm->GetValue("x_BankAccountName"));
$cstArchivedStudents->BankAccountBank->setFormValue($objForm->GetValue("x_BankAccountBank"));
$cstArchivedStudents->BankAccountBranch->setFormValue($objForm->GetValue("x_BankAccountBranch"));
$cstArchivedStudents->BankAccountNo->setFormValue($objForm->GetValue("x_BankAccountNo"));
$cstArchivedStudents->Funding->setFormValue($objForm->GetValue("x_Funding"));
$cstArchivedStudents->CWDTP->setFormValue($objForm->GetValue("x_CWDTP"));
$cstArchivedStudents->BookedByName->setFormValue($objForm->GetValue("x_BookedByName"));
$cstArchivedStudents->BookedByDesignation->setFormValue($objForm->GetValue("x_BookedByDesignation"));
$cstArchivedStudents->BookedByTelNo->setFormValue($objForm->GetValue("x_BookedByTelNo"));
$cstArchivedStudents->BookedByFaxNo->setFormValue($objForm->GetValue("x_BookedByFaxNo"));
$cstArchivedStudents->BookedByCellNo->setFormValue($objForm->GetValue("x_BookedByCellNo"));
$cstArchivedStudents->BookedByEmail->setFormValue($objForm->GetValue("x_BookedByEmail"));
$cstArchivedStudents->MentorID->setFormValue($objForm->GetValue("x_MentorID"));
$cstArchivedStudents->EmployerID->setFormValue($objForm->GetValue("x_EmployerID"));
$cstArchivedStudents->HRManagerName->setFormValue($objForm->GetValue("x_HRManagerName"));
$cstArchivedStudents->HRManagerDesignation->setFormValue($objForm->GetValue("x_HRManagerDesignation"));
$cstArchivedStudents->HRManagerTelNo->setFormValue($objForm->GetValue("x_HRManagerTelNo"));
$cstArchivedStudents->HRManagerCellNo->setFormValue($objForm->GetValue("x_HRManagerCellNo"));
$cstArchivedStudents->HRManagerEmail->setFormValue($objForm->GetValue("x_HRManagerEmail"));
$cstArchivedStudents->SupervisorName->setFormValue($objForm->GetValue("x_SupervisorName"));
$cstArchivedStudents->SupervisorDesig->setFormValue($objForm->GetValue("x_SupervisorDesig"));
$cstArchivedStudents->SupervisorProfRegNo->setFormValue($objForm->GetValue("x_SupervisorProfRegNo"));
$cstArchivedStudents->SupervisorTelNo->setFormValue($objForm->GetValue("x_SupervisorTelNo"));
$cstArchivedStudents->SupervisorCellNo->setFormValue($objForm->GetValue("x_SupervisorCellNo"));
$cstArchivedStudents->SupervisorEmail->setFormValue($objForm->GetValue("x_SupervisorEmail"));
$cstArchivedStudents->EducationalInst->setFormValue($objForm->GetValue("x_EducationalInst"));
$cstArchivedStudents->Qualifications->setFormValue($objForm->GetValue("x_Qualifications"));
$cstArchivedStudents->DateFinalExam->setFormValue($objForm->GetValue("x_DateFinalExam"));
$cstArchivedStudents->StudentNumber->setFormValue($objForm->GetValue("x_StudentNumber"));
$cstArchivedStudents->WebUsername->setFormValue($objForm->GetValue("x_WebUsername"));
$cstArchivedStudents->WebPassword->setFormValue($objForm->GetValue("x_WebPassword"));
$cstArchivedStudents->BlockAccess->setFormValue($objForm->GetValue("x_BlockAccess"));
}
// Restore form values
function RestoreFormValues() {
global $objForm, $cstArchivedStudents;
$this->LoadRow();
$cstArchivedStudents->Archived->CurrentValue = $cstArchivedStudents->Archived->FormValue;
$cstArchivedStudents->CCMStudentID->CurrentValue = $cstArchivedStudents->CCMStudentID->FormValue;
$cstArchivedStudents->SelectionCategory->CurrentValue = $cstArchivedStudents->SelectionCategory->FormValue;
$cstArchivedStudents->Title->CurrentValue = $cstArchivedStudents->Title->FormValue;
$cstArchivedStudents->Initials->CurrentValue = $cstArchivedStudents->Initials->FormValue;
$cstArchivedStudents->FirstName->CurrentValue = $cstArchivedStudents->FirstName->FormValue;
$cstArchivedStudents->Surname->CurrentValue = $cstArchivedStudents->Surname->FormValue;
$cstArchivedStudents->KnownAs->CurrentValue = $cstArchivedStudents->KnownAs->FormValue;
$cstArchivedStudents->IDNumber->CurrentValue = $cstArchivedStudents->IDNumber->FormValue;
$cstArchivedStudents->Telephone->CurrentValue = $cstArchivedStudents->Telephone->FormValue;
$cstArchivedStudents->Cellphone->CurrentValue = $cstArchivedStudents->Cellphone->FormValue;
$cstArchivedStudents->EmailAddress->CurrentValue = $cstArchivedStudents->EmailAddress->FormValue;
$cstArchivedStudents->WorkAddress->CurrentValue = $cstArchivedStudents->WorkAddress->FormValue;
$cstArchivedStudents->PostalAddress->CurrentValue = $cstArchivedStudents->PostalAddress->FormValue;
$cstArchivedStudents->Department->CurrentValue = $cstArchivedStudents->Department->FormValue;
$cstArchivedStudents->Organisation->CurrentValue = $cstArchivedStudents->Organisation->FormValue;
$cstArchivedStudents->VATNo->CurrentValue = $cstArchivedStudents->VATNo->FormValue;
$cstArchivedStudents->JobTitle->CurrentValue = $cstArchivedStudents->JobTitle->FormValue;
$cstArchivedStudents->DateofBirth->CurrentValue = $cstArchivedStudents->DateofBirth->FormValue;
$cstArchivedStudents->DateofBirth->CurrentValue = ew_UnFormatDateTime($cstArchivedStudents->DateofBirth->CurrentValue, 5);
$cstArchivedStudents->PlaceofBirth->CurrentValue = $cstArchivedStudents->PlaceofBirth->FormValue;
$cstArchivedStudents->CountryofBirth->CurrentValue = $cstArchivedStudents->CountryofBirth->FormValue;
$cstArchivedStudents->Province->CurrentValue = $cstArchivedStudents->Province->FormValue;
$cstArchivedStudents->MaleorFemale->CurrentValue = $cstArchivedStudents->MaleorFemale->FormValue;
$cstArchivedStudents->RaceGroup->CurrentValue = $cstArchivedStudents->RaceGroup->FormValue;
$cstArchivedStudents->Disability->CurrentValue = $cstArchivedStudents->Disability->FormValue;
$cstArchivedStudents->DisabilityNature->CurrentValue = $cstArchivedStudents->DisabilityNature->FormValue;
$cstArchivedStudents->ProfessionalCouncil->CurrentValue = $cstArchivedStudents->ProfessionalCouncil->FormValue;
$cstArchivedStudents->CategoryReg->CurrentValue = $cstArchivedStudents->CategoryReg->FormValue;
$cstArchivedStudents->CouncilRegNumber->CurrentValue = $cstArchivedStudents->CouncilRegNumber->FormValue;
$cstArchivedStudents->LengthCandidateReg->CurrentValue = $cstArchivedStudents->LengthCandidateReg->FormValue;
$cstArchivedStudents->YearsToProfReg->CurrentValue = $cstArchivedStudents->YearsToProfReg->FormValue;
$cstArchivedStudents->FirstJobStart->CurrentValue = $cstArchivedStudents->FirstJobStart->FormValue;
$cstArchivedStudents->VolAssociations->CurrentValue = $cstArchivedStudents->VolAssociations->FormValue;
$cstArchivedStudents->BelongsTo->CurrentValue = $cstArchivedStudents->BelongsTo->FormValue;
$cstArchivedStudents->CESA_SABTACO_MemNum->CurrentValue = $cstArchivedStudents->CESA_SABTACO_MemNum->FormValue;
$cstArchivedStudents->AreaDiscipline->CurrentValue = $cstArchivedStudents->AreaDiscipline->FormValue;
$cstArchivedStudents->AreaSubDiscipline->CurrentValue = $cstArchivedStudents->AreaSubDiscipline->FormValue;
$cstArchivedStudents->Salary->CurrentValue = $cstArchivedStudents->Salary->FormValue;
$cstArchivedStudents->BankAccountName->CurrentValue = $cstArchivedStudents->BankAccountName->FormValue;
$cstArchivedStudents->BankAccountBank->CurrentValue = $cstArchivedStudents->BankAccountBank->FormValue;
$cstArchivedStudents->BankAccountBranch->CurrentValue = $cstArchivedStudents->BankAccountBranch->FormValue;
$cstArchivedStudents->BankAccountNo->CurrentValue = $cstArchivedStudents->BankAccountNo->FormValue;
$cstArchivedStudents->Funding->CurrentValue = $cstArchivedStudents->Funding->FormValue;
$cstArchivedStudents->CWDTP->CurrentValue = $cstArchivedStudents->CWDTP->FormValue;
$cstArchivedStudents->BookedByName->CurrentValue = $cstArchivedStudents->BookedByName->FormValue;
$cstArchivedStudents->BookedByDesignation->CurrentValue = $cstArchivedStudents->BookedByDesignation->FormValue;
$cstArchivedStudents->BookedByTelNo->CurrentValue = $cstArchivedStudents->BookedByTelNo->FormValue;
$cstArchivedStudents->BookedByFaxNo->CurrentValue = $cstArchivedStudents->BookedByFaxNo->FormValue;
$cstArchivedStudents->BookedByCellNo->CurrentValue = $cstArchivedStudents->BookedByCellNo->FormValue;
$cstArchivedStudents->BookedByEmail->CurrentValue = $cstArchivedStudents->BookedByEmail->FormValue;
$cstArchivedStudents->MentorID->CurrentValue = $cstArchivedStudents->MentorID->FormValue;
$cstArchivedStudents->EmployerID->CurrentValue = $cstArchivedStudents->EmployerID->FormValue;
$cstArchivedStudents->HRManagerName->CurrentValue = $cstArchivedStudents->HRManagerName->FormValue;
$cstArchivedStudents->HRManagerDesignation->CurrentValue = $cstArchivedStudents->HRManagerDesignation->FormValue;
$cstArchivedStudents->HRManagerTelNo->CurrentValue = $cstArchivedStudents->HRManagerTelNo->FormValue;
$cstArchivedStudents->HRManagerCellNo->CurrentValue = $cstArchivedStudents->HRManagerCellNo->FormValue;
$cstArchivedStudents->HRManagerEmail->CurrentValue = $cstArchivedStudents->HRManagerEmail->FormValue;
$cstArchivedStudents->SupervisorName->CurrentValue = $cstArchivedStudents->SupervisorName->FormValue;
$cstArchivedStudents->SupervisorDesig->CurrentValue = $cstArchivedStudents->SupervisorDesig->FormValue;
$cstArchivedStudents->SupervisorProfRegNo->CurrentValue = $cstArchivedStudents->SupervisorProfRegNo->FormValue;
$cstArchivedStudents->SupervisorTelNo->CurrentValue = $cstArchivedStudents->SupervisorTelNo->FormValue;
$cstArchivedStudents->SupervisorCellNo->CurrentValue = $cstArchivedStudents->SupervisorCellNo->FormValue;
$cstArchivedStudents->SupervisorEmail->CurrentValue = $cstArchivedStudents->SupervisorEmail->FormValue;
$cstArchivedStudents->EducationalInst->CurrentValue = $cstArchivedStudents->EducationalInst->FormValue;
$cstArchivedStudents->Qualifications->CurrentValue = $cstArchivedStudents->Qualifications->FormValue;
$cstArchivedStudents->DateFinalExam->CurrentValue = $cstArchivedStudents->DateFinalExam->FormValue;
$cstArchivedStudents->StudentNumber->CurrentValue = $cstArchivedStudents->StudentNumber->FormValue;
$cstArchivedStudents->WebUsername->CurrentValue = $cstArchivedStudents->WebUsername->FormValue;
$cstArchivedStudents->WebPassword->CurrentValue = $cstArchivedStudents->WebPassword->FormValue;
$cstArchivedStudents->BlockAccess->CurrentValue = $cstArchivedStudents->BlockAccess->FormValue;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $cstArchivedStudents;
$sFilter = $cstArchivedStudents->KeyFilter();
// Call Row Selecting event
$cstArchivedStudents->Row_Selecting($sFilter);
// Load SQL based on filter
$cstArchivedStudents->CurrentFilter = $sFilter;
$sSql = $cstArchivedStudents->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$cstArchivedStudents->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $cstArchivedStudents;
$cstArchivedStudents->Archived->setDbValue($rs->fields('Archived'));
$cstArchivedStudents->CCMStudentID->setDbValue($rs->fields('CCMStudentID'));
$cstArchivedStudents->SelectionCategory->setDbValue($rs->fields('SelectionCategory'));
$cstArchivedStudents->Title->setDbValue($rs->fields('Title'));
$cstArchivedStudents->Initials->setDbValue($rs->fields('Initials'));
$cstArchivedStudents->FirstName->setDbValue($rs->fields('FirstName'));
$cstArchivedStudents->Surname->setDbValue($rs->fields('Surname'));
$cstArchivedStudents->KnownAs->setDbValue($rs->fields('KnownAs'));
$cstArchivedStudents->IDNumber->setDbValue($rs->fields('IDNumber'));
$cstArchivedStudents->Telephone->setDbValue($rs->fields('Telephone'));
$cstArchivedStudents->Cellphone->setDbValue($rs->fields('Cellphone'));
$cstArchivedStudents->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$cstArchivedStudents->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$cstArchivedStudents->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$cstArchivedStudents->Department->setDbValue($rs->fields('Department'));
$cstArchivedStudents->Organisation->setDbValue($rs->fields('Organisation'));
$cstArchivedStudents->VATNo->setDbValue($rs->fields('VATNo'));
$cstArchivedStudents->JobTitle->setDbValue($rs->fields('JobTitle'));
$cstArchivedStudents->DateofBirth->setDbValue($rs->fields('DateofBirth'));
$cstArchivedStudents->PlaceofBirth->setDbValue($rs->fields('PlaceofBirth'));
$cstArchivedStudents->CountryofBirth->setDbValue($rs->fields('CountryofBirth'));
$cstArchivedStudents->Province->setDbValue($rs->fields('Province'));
$cstArchivedStudents->MaleorFemale->setDbValue($rs->fields('MaleorFemale'));
$cstArchivedStudents->RaceGroup->setDbValue($rs->fields('RaceGroup'));
$cstArchivedStudents->Disability->setDbValue($rs->fields('Disability'));
$cstArchivedStudents->DisabilityNature->setDbValue($rs->fields('DisabilityNature'));
$cstArchivedStudents->DisabilityCertificate->Upload->DbValue = $rs->fields('DisabilityCertificate');
$cstArchivedStudents->ProfessionalCouncil->setDbValue($rs->fields('ProfessionalCouncil'));
$cstArchivedStudents->CategoryReg->setDbValue($rs->fields('CategoryReg'));
$cstArchivedStudents->CouncilRegNumber->setDbValue($rs->fields('CouncilRegNumber'));
$cstArchivedStudents->LengthCandidateReg->setDbValue($rs->fields('LengthCandidateReg'));
$cstArchivedStudents->YearsToProfReg->setDbValue($rs->fields('YearsToProfReg'));
$cstArchivedStudents->FirstJobStart->setDbValue($rs->fields('FirstJobStart'));
$cstArchivedStudents->VolAssociations->setDbValue($rs->fields('VolAssociations'));
$cstArchivedStudents->BelongsTo->setDbValue($rs->fields('BelongsTo'));
$cstArchivedStudents->CESA_SABTACO_MemNum->setDbValue($rs->fields('CESA_SABTACO_MemNum'));
$cstArchivedStudents->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
$cstArchivedStudents->AreaSubDiscipline->setDbValue($rs->fields('AreaSubDiscipline'));
$cstArchivedStudents->Salary->setDbValue($rs->fields('Salary'));
$cstArchivedStudents->Payslip->Upload->DbValue = $rs->fields('Payslip');
$cstArchivedStudents->BankAccountName->setDbValue($rs->fields('BankAccountName'));
$cstArchivedStudents->BankAccountBank->setDbValue($rs->fields('BankAccountBank'));
$cstArchivedStudents->BankAccountBranch->setDbValue($rs->fields('BankAccountBranch'));
$cstArchivedStudents->BankAccountNo->setDbValue($rs->fields('BankAccountNo'));
$cstArchivedStudents->BankAccountProof->Upload->DbValue = $rs->fields('BankAccountProof');
$cstArchivedStudents->Funding->setDbValue($rs->fields('Funding'));
$cstArchivedStudents->CWDTP->setDbValue($rs->fields('CWDTP'));
$cstArchivedStudents->BookedByName->setDbValue($rs->fields('BookedByName'));
$cstArchivedStudents->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
$cstArchivedStudents->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
$cstArchivedStudents->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
$cstArchivedStudents->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
$cstArchivedStudents->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
$cstArchivedStudents->MentorID->setDbValue($rs->fields('MentorID'));
$cstArchivedStudents->EmployerID->setDbValue($rs->fields('EmployerID'));
$cstArchivedStudents->HRManagerName->setDbValue($rs->fields('HRManagerName'));
$cstArchivedStudents->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
$cstArchivedStudents->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
$cstArchivedStudents->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
$cstArchivedStudents->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
$cstArchivedStudents->SupervisorName->setDbValue($rs->fields('SupervisorName'));
$cstArchivedStudents->SupervisorDesig->setDbValue($rs->fields('SupervisorDesig'));
$cstArchivedStudents->SupervisorProfRegNo->setDbValue($rs->fields('SupervisorProfRegNo'));
$cstArchivedStudents->SupervisorTelNo->setDbValue($rs->fields('SupervisorTelNo'));
$cstArchivedStudents->SupervisorCellNo->setDbValue($rs->fields('SupervisorCellNo'));
$cstArchivedStudents->SupervisorEmail->setDbValue($rs->fields('SupervisorEmail'));
$cstArchivedStudents->EducationalInst->setDbValue($rs->fields('EducationalInst'));
$cstArchivedStudents->Qualifications->setDbValue($rs->fields('Qualifications'));
$cstArchivedStudents->DateFinalExam->setDbValue($rs->fields('DateFinalExam'));
$cstArchivedStudents->IDFile->Upload->DbValue = $rs->fields('IDFile');
$cstArchivedStudents->CVFile->Upload->DbValue = $rs->fields('CVFile');
$cstArchivedStudents->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
$cstArchivedStudents->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
$cstArchivedStudents->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
$cstArchivedStudents->MentorUndertaking->Upload->DbValue = $rs->fields('MentorUndertaking');
$cstArchivedStudents->CandUUndertaking->Upload->DbValue = $rs->fields('CandUUndertaking');
$cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue = $rs->fields('CompanyCandidatePolicy');
$cstArchivedStudents->ResidenceProof->Upload->DbValue = $rs->fields('ResidenceProof');
$cstArchivedStudents->SignedAppForm->Upload->DbValue = $rs->fields('SignedAppForm');
$cstArchivedStudents->Photograph->Upload->DbValue = $rs->fields('Photograph');
$cstArchivedStudents->StudentNumber->setDbValue($rs->fields('StudentNumber'));
$cstArchivedStudents->WebUsername->setDbValue($rs->fields('WebUsername'));
$cstArchivedStudents->WebPassword->setDbValue($rs->fields('WebPassword'));
$cstArchivedStudents->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$cstArchivedStudents->SABTACO->setDbValue($rs->fields('SABTACO'));
$cstArchivedStudents->CESA->setDbValue($rs->fields('CESA'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $cstArchivedStudents;
// Initialize URLs
// Call Row_Rendering event
$cstArchivedStudents->Row_Rendering();
// Common render codes for all row types
// Archived
$cstArchivedStudents->Archived->CellCssStyle = ""; $cstArchivedStudents->Archived->CellCssClass = "";
$cstArchivedStudents->Archived->CellAttrs = array(); $cstArchivedStudents->Archived->ViewAttrs = array(); $cstArchivedStudents->Archived->EditAttrs = array();
// CCMStudentID
$cstArchivedStudents->CCMStudentID->CellCssStyle = ""; $cstArchivedStudents->CCMStudentID->CellCssClass = "";
$cstArchivedStudents->CCMStudentID->CellAttrs = array(); $cstArchivedStudents->CCMStudentID->ViewAttrs = array(); $cstArchivedStudents->CCMStudentID->EditAttrs = array();
// SelectionCategory
$cstArchivedStudents->SelectionCategory->CellCssStyle = ""; $cstArchivedStudents->SelectionCategory->CellCssClass = "";
$cstArchivedStudents->SelectionCategory->CellAttrs = array(); $cstArchivedStudents->SelectionCategory->ViewAttrs = array(); $cstArchivedStudents->SelectionCategory->EditAttrs = array();
// Title
$cstArchivedStudents->Title->CellCssStyle = ""; $cstArchivedStudents->Title->CellCssClass = "";
$cstArchivedStudents->Title->CellAttrs = array(); $cstArchivedStudents->Title->ViewAttrs = array(); $cstArchivedStudents->Title->EditAttrs = array();
// Initials
$cstArchivedStudents->Initials->CellCssStyle = ""; $cstArchivedStudents->Initials->CellCssClass = "";
$cstArchivedStudents->Initials->CellAttrs = array(); $cstArchivedStudents->Initials->ViewAttrs = array(); $cstArchivedStudents->Initials->EditAttrs = array();
// FirstName
$cstArchivedStudents->FirstName->CellCssStyle = ""; $cstArchivedStudents->FirstName->CellCssClass = "";
$cstArchivedStudents->FirstName->CellAttrs = array(); $cstArchivedStudents->FirstName->ViewAttrs = array(); $cstArchivedStudents->FirstName->EditAttrs = array();
// Surname
$cstArchivedStudents->Surname->CellCssStyle = ""; $cstArchivedStudents->Surname->CellCssClass = "";
$cstArchivedStudents->Surname->CellAttrs = array(); $cstArchivedStudents->Surname->ViewAttrs = array(); $cstArchivedStudents->Surname->EditAttrs = array();
// KnownAs
$cstArchivedStudents->KnownAs->CellCssStyle = ""; $cstArchivedStudents->KnownAs->CellCssClass = "";
$cstArchivedStudents->KnownAs->CellAttrs = array(); $cstArchivedStudents->KnownAs->ViewAttrs = array(); $cstArchivedStudents->KnownAs->EditAttrs = array();
// IDNumber
$cstArchivedStudents->IDNumber->CellCssStyle = ""; $cstArchivedStudents->IDNumber->CellCssClass = "";
$cstArchivedStudents->IDNumber->CellAttrs = array(); $cstArchivedStudents->IDNumber->ViewAttrs = array(); $cstArchivedStudents->IDNumber->EditAttrs = array();
// Telephone
$cstArchivedStudents->Telephone->CellCssStyle = ""; $cstArchivedStudents->Telephone->CellCssClass = "";
$cstArchivedStudents->Telephone->CellAttrs = array(); $cstArchivedStudents->Telephone->ViewAttrs = array(); $cstArchivedStudents->Telephone->EditAttrs = array();
// Cellphone
$cstArchivedStudents->Cellphone->CellCssStyle = ""; $cstArchivedStudents->Cellphone->CellCssClass = "";
$cstArchivedStudents->Cellphone->CellAttrs = array(); $cstArchivedStudents->Cellphone->ViewAttrs = array(); $cstArchivedStudents->Cellphone->EditAttrs = array();
// EmailAddress
$cstArchivedStudents->EmailAddress->CellCssStyle = ""; $cstArchivedStudents->EmailAddress->CellCssClass = "";
$cstArchivedStudents->EmailAddress->CellAttrs = array(); $cstArchivedStudents->EmailAddress->ViewAttrs = array(); $cstArchivedStudents->EmailAddress->EditAttrs = array();
// WorkAddress
$cstArchivedStudents->WorkAddress->CellCssStyle = ""; $cstArchivedStudents->WorkAddress->CellCssClass = "";
$cstArchivedStudents->WorkAddress->CellAttrs = array(); $cstArchivedStudents->WorkAddress->ViewAttrs = array(); $cstArchivedStudents->WorkAddress->EditAttrs = array();
// PostalAddress
$cstArchivedStudents->PostalAddress->CellCssStyle = ""; $cstArchivedStudents->PostalAddress->CellCssClass = "";
$cstArchivedStudents->PostalAddress->CellAttrs = array(); $cstArchivedStudents->PostalAddress->ViewAttrs = array(); $cstArchivedStudents->PostalAddress->EditAttrs = array();
// Department
$cstArchivedStudents->Department->CellCssStyle = ""; $cstArchivedStudents->Department->CellCssClass = "";
$cstArchivedStudents->Department->CellAttrs = array(); $cstArchivedStudents->Department->ViewAttrs = array(); $cstArchivedStudents->Department->EditAttrs = array();
// Organisation
$cstArchivedStudents->Organisation->CellCssStyle = ""; $cstArchivedStudents->Organisation->CellCssClass = "";
$cstArchivedStudents->Organisation->CellAttrs = array(); $cstArchivedStudents->Organisation->ViewAttrs = array(); $cstArchivedStudents->Organisation->EditAttrs = array();
// VATNo
$cstArchivedStudents->VATNo->CellCssStyle = ""; $cstArchivedStudents->VATNo->CellCssClass = "";
$cstArchivedStudents->VATNo->CellAttrs = array(); $cstArchivedStudents->VATNo->ViewAttrs = array(); $cstArchivedStudents->VATNo->EditAttrs = array();
// JobTitle
$cstArchivedStudents->JobTitle->CellCssStyle = ""; $cstArchivedStudents->JobTitle->CellCssClass = "";
$cstArchivedStudents->JobTitle->CellAttrs = array(); $cstArchivedStudents->JobTitle->ViewAttrs = array(); $cstArchivedStudents->JobTitle->EditAttrs = array();
// DateofBirth
$cstArchivedStudents->DateofBirth->CellCssStyle = ""; $cstArchivedStudents->DateofBirth->CellCssClass = "";
$cstArchivedStudents->DateofBirth->CellAttrs = array(); $cstArchivedStudents->DateofBirth->ViewAttrs = array(); $cstArchivedStudents->DateofBirth->EditAttrs = array();
// PlaceofBirth
$cstArchivedStudents->PlaceofBirth->CellCssStyle = ""; $cstArchivedStudents->PlaceofBirth->CellCssClass = "";
$cstArchivedStudents->PlaceofBirth->CellAttrs = array(); $cstArchivedStudents->PlaceofBirth->ViewAttrs = array(); $cstArchivedStudents->PlaceofBirth->EditAttrs = array();
// CountryofBirth
$cstArchivedStudents->CountryofBirth->CellCssStyle = ""; $cstArchivedStudents->CountryofBirth->CellCssClass = "";
$cstArchivedStudents->CountryofBirth->CellAttrs = array(); $cstArchivedStudents->CountryofBirth->ViewAttrs = array(); $cstArchivedStudents->CountryofBirth->EditAttrs = array();
// Province
$cstArchivedStudents->Province->CellCssStyle = ""; $cstArchivedStudents->Province->CellCssClass = "";
$cstArchivedStudents->Province->CellAttrs = array(); $cstArchivedStudents->Province->ViewAttrs = array(); $cstArchivedStudents->Province->EditAttrs = array();
// MaleorFemale
$cstArchivedStudents->MaleorFemale->CellCssStyle = ""; $cstArchivedStudents->MaleorFemale->CellCssClass = "";
$cstArchivedStudents->MaleorFemale->CellAttrs = array(); $cstArchivedStudents->MaleorFemale->ViewAttrs = array(); $cstArchivedStudents->MaleorFemale->EditAttrs = array();
// RaceGroup
$cstArchivedStudents->RaceGroup->CellCssStyle = ""; $cstArchivedStudents->RaceGroup->CellCssClass = "";
$cstArchivedStudents->RaceGroup->CellAttrs = array(); $cstArchivedStudents->RaceGroup->ViewAttrs = array(); $cstArchivedStudents->RaceGroup->EditAttrs = array();
// Disability
$cstArchivedStudents->Disability->CellCssStyle = ""; $cstArchivedStudents->Disability->CellCssClass = "";
$cstArchivedStudents->Disability->CellAttrs = array(); $cstArchivedStudents->Disability->ViewAttrs = array(); $cstArchivedStudents->Disability->EditAttrs = array();
// DisabilityNature
$cstArchivedStudents->DisabilityNature->CellCssStyle = ""; $cstArchivedStudents->DisabilityNature->CellCssClass = "";
$cstArchivedStudents->DisabilityNature->CellAttrs = array(); $cstArchivedStudents->DisabilityNature->ViewAttrs = array(); $cstArchivedStudents->DisabilityNature->EditAttrs = array();
// DisabilityCertificate
$cstArchivedStudents->DisabilityCertificate->CellCssStyle = ""; $cstArchivedStudents->DisabilityCertificate->CellCssClass = "";
$cstArchivedStudents->DisabilityCertificate->CellAttrs = array(); $cstArchivedStudents->DisabilityCertificate->ViewAttrs = array(); $cstArchivedStudents->DisabilityCertificate->EditAttrs = array();
// ProfessionalCouncil
$cstArchivedStudents->ProfessionalCouncil->CellCssStyle = ""; $cstArchivedStudents->ProfessionalCouncil->CellCssClass = "";
$cstArchivedStudents->ProfessionalCouncil->CellAttrs = array(); $cstArchivedStudents->ProfessionalCouncil->ViewAttrs = array(); $cstArchivedStudents->ProfessionalCouncil->EditAttrs = array();
// CategoryReg
$cstArchivedStudents->CategoryReg->CellCssStyle = ""; $cstArchivedStudents->CategoryReg->CellCssClass = "";
$cstArchivedStudents->CategoryReg->CellAttrs = array(); $cstArchivedStudents->CategoryReg->ViewAttrs = array(); $cstArchivedStudents->CategoryReg->EditAttrs = array();
// CouncilRegNumber
$cstArchivedStudents->CouncilRegNumber->CellCssStyle = ""; $cstArchivedStudents->CouncilRegNumber->CellCssClass = "";
$cstArchivedStudents->CouncilRegNumber->CellAttrs = array(); $cstArchivedStudents->CouncilRegNumber->ViewAttrs = array(); $cstArchivedStudents->CouncilRegNumber->EditAttrs = array();
// LengthCandidateReg
$cstArchivedStudents->LengthCandidateReg->CellCssStyle = ""; $cstArchivedStudents->LengthCandidateReg->CellCssClass = "";
$cstArchivedStudents->LengthCandidateReg->CellAttrs = array(); $cstArchivedStudents->LengthCandidateReg->ViewAttrs = array(); $cstArchivedStudents->LengthCandidateReg->EditAttrs = array();
// YearsToProfReg
$cstArchivedStudents->YearsToProfReg->CellCssStyle = ""; $cstArchivedStudents->YearsToProfReg->CellCssClass = "";
$cstArchivedStudents->YearsToProfReg->CellAttrs = array(); $cstArchivedStudents->YearsToProfReg->ViewAttrs = array(); $cstArchivedStudents->YearsToProfReg->EditAttrs = array();
// FirstJobStart
$cstArchivedStudents->FirstJobStart->CellCssStyle = ""; $cstArchivedStudents->FirstJobStart->CellCssClass = "";
$cstArchivedStudents->FirstJobStart->CellAttrs = array(); $cstArchivedStudents->FirstJobStart->ViewAttrs = array(); $cstArchivedStudents->FirstJobStart->EditAttrs = array();
// VolAssociations
$cstArchivedStudents->VolAssociations->CellCssStyle = ""; $cstArchivedStudents->VolAssociations->CellCssClass = "";
$cstArchivedStudents->VolAssociations->CellAttrs = array(); $cstArchivedStudents->VolAssociations->ViewAttrs = array(); $cstArchivedStudents->VolAssociations->EditAttrs = array();
// BelongsTo
$cstArchivedStudents->BelongsTo->CellCssStyle = ""; $cstArchivedStudents->BelongsTo->CellCssClass = "";
$cstArchivedStudents->BelongsTo->CellAttrs = array(); $cstArchivedStudents->BelongsTo->ViewAttrs = array(); $cstArchivedStudents->BelongsTo->EditAttrs = array();
// CESA_SABTACO_MemNum
$cstArchivedStudents->CESA_SABTACO_MemNum->CellCssStyle = ""; $cstArchivedStudents->CESA_SABTACO_MemNum->CellCssClass = "";
$cstArchivedStudents->CESA_SABTACO_MemNum->CellAttrs = array(); $cstArchivedStudents->CESA_SABTACO_MemNum->ViewAttrs = array(); $cstArchivedStudents->CESA_SABTACO_MemNum->EditAttrs = array();
// AreaDiscipline
$cstArchivedStudents->AreaDiscipline->CellCssStyle = ""; $cstArchivedStudents->AreaDiscipline->CellCssClass = "";
$cstArchivedStudents->AreaDiscipline->CellAttrs = array(); $cstArchivedStudents->AreaDiscipline->ViewAttrs = array(); $cstArchivedStudents->AreaDiscipline->EditAttrs = array();
// AreaSubDiscipline
$cstArchivedStudents->AreaSubDiscipline->CellCssStyle = ""; $cstArchivedStudents->AreaSubDiscipline->CellCssClass = "";
$cstArchivedStudents->AreaSubDiscipline->CellAttrs = array(); $cstArchivedStudents->AreaSubDiscipline->ViewAttrs = array(); $cstArchivedStudents->AreaSubDiscipline->EditAttrs = array();
// Salary
$cstArchivedStudents->Salary->CellCssStyle = ""; $cstArchivedStudents->Salary->CellCssClass = "";
$cstArchivedStudents->Salary->CellAttrs = array(); $cstArchivedStudents->Salary->ViewAttrs = array(); $cstArchivedStudents->Salary->EditAttrs = array();
// Payslip
$cstArchivedStudents->Payslip->CellCssStyle = ""; $cstArchivedStudents->Payslip->CellCssClass = "";
$cstArchivedStudents->Payslip->CellAttrs = array(); $cstArchivedStudents->Payslip->ViewAttrs = array(); $cstArchivedStudents->Payslip->EditAttrs = array();
// BankAccountName
$cstArchivedStudents->BankAccountName->CellCssStyle = ""; $cstArchivedStudents->BankAccountName->CellCssClass = "";
$cstArchivedStudents->BankAccountName->CellAttrs = array(); $cstArchivedStudents->BankAccountName->ViewAttrs = array(); $cstArchivedStudents->BankAccountName->EditAttrs = array();
// BankAccountBank
$cstArchivedStudents->BankAccountBank->CellCssStyle = ""; $cstArchivedStudents->BankAccountBank->CellCssClass = "";
$cstArchivedStudents->BankAccountBank->CellAttrs = array(); $cstArchivedStudents->BankAccountBank->ViewAttrs = array(); $cstArchivedStudents->BankAccountBank->EditAttrs = array();
// BankAccountBranch
$cstArchivedStudents->BankAccountBranch->CellCssStyle = ""; $cstArchivedStudents->BankAccountBranch->CellCssClass = "";
$cstArchivedStudents->BankAccountBranch->CellAttrs = array(); $cstArchivedStudents->BankAccountBranch->ViewAttrs = array(); $cstArchivedStudents->BankAccountBranch->EditAttrs = array();
// BankAccountNo
$cstArchivedStudents->BankAccountNo->CellCssStyle = ""; $cstArchivedStudents->BankAccountNo->CellCssClass = "";
$cstArchivedStudents->BankAccountNo->CellAttrs = array(); $cstArchivedStudents->BankAccountNo->ViewAttrs = array(); $cstArchivedStudents->BankAccountNo->EditAttrs = array();
// BankAccountProof
$cstArchivedStudents->BankAccountProof->CellCssStyle = ""; $cstArchivedStudents->BankAccountProof->CellCssClass = "";
$cstArchivedStudents->BankAccountProof->CellAttrs = array(); $cstArchivedStudents->BankAccountProof->ViewAttrs = array(); $cstArchivedStudents->BankAccountProof->EditAttrs = array();
// Funding
$cstArchivedStudents->Funding->CellCssStyle = ""; $cstArchivedStudents->Funding->CellCssClass = "";
$cstArchivedStudents->Funding->CellAttrs = array(); $cstArchivedStudents->Funding->ViewAttrs = array(); $cstArchivedStudents->Funding->EditAttrs = array();
// CWDTP
$cstArchivedStudents->CWDTP->CellCssStyle = ""; $cstArchivedStudents->CWDTP->CellCssClass = "";
$cstArchivedStudents->CWDTP->CellAttrs = array(); $cstArchivedStudents->CWDTP->ViewAttrs = array(); $cstArchivedStudents->CWDTP->EditAttrs = array();
// BookedByName
$cstArchivedStudents->BookedByName->CellCssStyle = ""; $cstArchivedStudents->BookedByName->CellCssClass = "";
$cstArchivedStudents->BookedByName->CellAttrs = array(); $cstArchivedStudents->BookedByName->ViewAttrs = array(); $cstArchivedStudents->BookedByName->EditAttrs = array();
// BookedByDesignation
$cstArchivedStudents->BookedByDesignation->CellCssStyle = ""; $cstArchivedStudents->BookedByDesignation->CellCssClass = "";
$cstArchivedStudents->BookedByDesignation->CellAttrs = array(); $cstArchivedStudents->BookedByDesignation->ViewAttrs = array(); $cstArchivedStudents->BookedByDesignation->EditAttrs = array();
// BookedByTelNo
$cstArchivedStudents->BookedByTelNo->CellCssStyle = ""; $cstArchivedStudents->BookedByTelNo->CellCssClass = "";
$cstArchivedStudents->BookedByTelNo->CellAttrs = array(); $cstArchivedStudents->BookedByTelNo->ViewAttrs = array(); $cstArchivedStudents->BookedByTelNo->EditAttrs = array();
// BookedByFaxNo
$cstArchivedStudents->BookedByFaxNo->CellCssStyle = ""; $cstArchivedStudents->BookedByFaxNo->CellCssClass = "";
$cstArchivedStudents->BookedByFaxNo->CellAttrs = array(); $cstArchivedStudents->BookedByFaxNo->ViewAttrs = array(); $cstArchivedStudents->BookedByFaxNo->EditAttrs = array();
// BookedByCellNo
$cstArchivedStudents->BookedByCellNo->CellCssStyle = ""; $cstArchivedStudents->BookedByCellNo->CellCssClass = "";
$cstArchivedStudents->BookedByCellNo->CellAttrs = array(); $cstArchivedStudents->BookedByCellNo->ViewAttrs = array(); $cstArchivedStudents->BookedByCellNo->EditAttrs = array();
// BookedByEmail
$cstArchivedStudents->BookedByEmail->CellCssStyle = ""; $cstArchivedStudents->BookedByEmail->CellCssClass = "";
$cstArchivedStudents->BookedByEmail->CellAttrs = array(); $cstArchivedStudents->BookedByEmail->ViewAttrs = array(); $cstArchivedStudents->BookedByEmail->EditAttrs = array();
// MentorID
$cstArchivedStudents->MentorID->CellCssStyle = ""; $cstArchivedStudents->MentorID->CellCssClass = "";
$cstArchivedStudents->MentorID->CellAttrs = array(); $cstArchivedStudents->MentorID->ViewAttrs = array(); $cstArchivedStudents->MentorID->EditAttrs = array();
// EmployerID
$cstArchivedStudents->EmployerID->CellCssStyle = ""; $cstArchivedStudents->EmployerID->CellCssClass = "";
$cstArchivedStudents->EmployerID->CellAttrs = array(); $cstArchivedStudents->EmployerID->ViewAttrs = array(); $cstArchivedStudents->EmployerID->EditAttrs = array();
// HRManagerName
$cstArchivedStudents->HRManagerName->CellCssStyle = ""; $cstArchivedStudents->HRManagerName->CellCssClass = "";
$cstArchivedStudents->HRManagerName->CellAttrs = array(); $cstArchivedStudents->HRManagerName->ViewAttrs = array(); $cstArchivedStudents->HRManagerName->EditAttrs = array();
// HRManagerDesignation
$cstArchivedStudents->HRManagerDesignation->CellCssStyle = ""; $cstArchivedStudents->HRManagerDesignation->CellCssClass = "";
$cstArchivedStudents->HRManagerDesignation->CellAttrs = array(); $cstArchivedStudents->HRManagerDesignation->ViewAttrs = array(); $cstArchivedStudents->HRManagerDesignation->EditAttrs = array();
// HRManagerTelNo
$cstArchivedStudents->HRManagerTelNo->CellCssStyle = ""; $cstArchivedStudents->HRManagerTelNo->CellCssClass = "";
$cstArchivedStudents->HRManagerTelNo->CellAttrs = array(); $cstArchivedStudents->HRManagerTelNo->ViewAttrs = array(); $cstArchivedStudents->HRManagerTelNo->EditAttrs = array();
// HRManagerCellNo
$cstArchivedStudents->HRManagerCellNo->CellCssStyle = ""; $cstArchivedStudents->HRManagerCellNo->CellCssClass = "";
$cstArchivedStudents->HRManagerCellNo->CellAttrs = array(); $cstArchivedStudents->HRManagerCellNo->ViewAttrs = array(); $cstArchivedStudents->HRManagerCellNo->EditAttrs = array();
// HRManagerEmail
$cstArchivedStudents->HRManagerEmail->CellCssStyle = ""; $cstArchivedStudents->HRManagerEmail->CellCssClass = "";
$cstArchivedStudents->HRManagerEmail->CellAttrs = array(); $cstArchivedStudents->HRManagerEmail->ViewAttrs = array(); $cstArchivedStudents->HRManagerEmail->EditAttrs = array();
// SupervisorName
$cstArchivedStudents->SupervisorName->CellCssStyle = ""; $cstArchivedStudents->SupervisorName->CellCssClass = "";
$cstArchivedStudents->SupervisorName->CellAttrs = array(); $cstArchivedStudents->SupervisorName->ViewAttrs = array(); $cstArchivedStudents->SupervisorName->EditAttrs = array();
// SupervisorDesig
$cstArchivedStudents->SupervisorDesig->CellCssStyle = ""; $cstArchivedStudents->SupervisorDesig->CellCssClass = "";
$cstArchivedStudents->SupervisorDesig->CellAttrs = array(); $cstArchivedStudents->SupervisorDesig->ViewAttrs = array(); $cstArchivedStudents->SupervisorDesig->EditAttrs = array();
// SupervisorProfRegNo
$cstArchivedStudents->SupervisorProfRegNo->CellCssStyle = ""; $cstArchivedStudents->SupervisorProfRegNo->CellCssClass = "";
$cstArchivedStudents->SupervisorProfRegNo->CellAttrs = array(); $cstArchivedStudents->SupervisorProfRegNo->ViewAttrs = array(); $cstArchivedStudents->SupervisorProfRegNo->EditAttrs = array();
// SupervisorTelNo
$cstArchivedStudents->SupervisorTelNo->CellCssStyle = ""; $cstArchivedStudents->SupervisorTelNo->CellCssClass = "";
$cstArchivedStudents->SupervisorTelNo->CellAttrs = array(); $cstArchivedStudents->SupervisorTelNo->ViewAttrs = array(); $cstArchivedStudents->SupervisorTelNo->EditAttrs = array();
// SupervisorCellNo
$cstArchivedStudents->SupervisorCellNo->CellCssStyle = ""; $cstArchivedStudents->SupervisorCellNo->CellCssClass = "";
$cstArchivedStudents->SupervisorCellNo->CellAttrs = array(); $cstArchivedStudents->SupervisorCellNo->ViewAttrs = array(); $cstArchivedStudents->SupervisorCellNo->EditAttrs = array();
// SupervisorEmail
$cstArchivedStudents->SupervisorEmail->CellCssStyle = ""; $cstArchivedStudents->SupervisorEmail->CellCssClass = "";
$cstArchivedStudents->SupervisorEmail->CellAttrs = array(); $cstArchivedStudents->SupervisorEmail->ViewAttrs = array(); $cstArchivedStudents->SupervisorEmail->EditAttrs = array();
// EducationalInst
$cstArchivedStudents->EducationalInst->CellCssStyle = ""; $cstArchivedStudents->EducationalInst->CellCssClass = "";
$cstArchivedStudents->EducationalInst->CellAttrs = array(); $cstArchivedStudents->EducationalInst->ViewAttrs = array(); $cstArchivedStudents->EducationalInst->EditAttrs = array();
// Qualifications
$cstArchivedStudents->Qualifications->CellCssStyle = ""; $cstArchivedStudents->Qualifications->CellCssClass = "";
$cstArchivedStudents->Qualifications->CellAttrs = array(); $cstArchivedStudents->Qualifications->ViewAttrs = array(); $cstArchivedStudents->Qualifications->EditAttrs = array();
// DateFinalExam
$cstArchivedStudents->DateFinalExam->CellCssStyle = ""; $cstArchivedStudents->DateFinalExam->CellCssClass = "";
$cstArchivedStudents->DateFinalExam->CellAttrs = array(); $cstArchivedStudents->DateFinalExam->ViewAttrs = array(); $cstArchivedStudents->DateFinalExam->EditAttrs = array();
// IDFile
$cstArchivedStudents->IDFile->CellCssStyle = ""; $cstArchivedStudents->IDFile->CellCssClass = "";
$cstArchivedStudents->IDFile->CellAttrs = array(); $cstArchivedStudents->IDFile->ViewAttrs = array(); $cstArchivedStudents->IDFile->EditAttrs = array();
// CVFile
$cstArchivedStudents->CVFile->CellCssStyle = ""; $cstArchivedStudents->CVFile->CellCssClass = "";
$cstArchivedStudents->CVFile->CellAttrs = array(); $cstArchivedStudents->CVFile->ViewAttrs = array(); $cstArchivedStudents->CVFile->EditAttrs = array();
// QualCertificate1
$cstArchivedStudents->QualCertificate1->CellCssStyle = ""; $cstArchivedStudents->QualCertificate1->CellCssClass = "";
$cstArchivedStudents->QualCertificate1->CellAttrs = array(); $cstArchivedStudents->QualCertificate1->ViewAttrs = array(); $cstArchivedStudents->QualCertificate1->EditAttrs = array();
// QualCertificate2
$cstArchivedStudents->QualCertificate2->CellCssStyle = ""; $cstArchivedStudents->QualCertificate2->CellCssClass = "";
$cstArchivedStudents->QualCertificate2->CellAttrs = array(); $cstArchivedStudents->QualCertificate2->ViewAttrs = array(); $cstArchivedStudents->QualCertificate2->EditAttrs = array();
// QualCertificate3
$cstArchivedStudents->QualCertificate3->CellCssStyle = ""; $cstArchivedStudents->QualCertificate3->CellCssClass = "";
$cstArchivedStudents->QualCertificate3->CellAttrs = array(); $cstArchivedStudents->QualCertificate3->ViewAttrs = array(); $cstArchivedStudents->QualCertificate3->EditAttrs = array();
// MentorUndertaking
$cstArchivedStudents->MentorUndertaking->CellCssStyle = ""; $cstArchivedStudents->MentorUndertaking->CellCssClass = "";
$cstArchivedStudents->MentorUndertaking->CellAttrs = array(); $cstArchivedStudents->MentorUndertaking->ViewAttrs = array(); $cstArchivedStudents->MentorUndertaking->EditAttrs = array();
// CandUUndertaking
$cstArchivedStudents->CandUUndertaking->CellCssStyle = ""; $cstArchivedStudents->CandUUndertaking->CellCssClass = "";
$cstArchivedStudents->CandUUndertaking->CellAttrs = array(); $cstArchivedStudents->CandUUndertaking->ViewAttrs = array(); $cstArchivedStudents->CandUUndertaking->EditAttrs = array();
// CompanyCandidatePolicy
$cstArchivedStudents->CompanyCandidatePolicy->CellCssStyle = ""; $cstArchivedStudents->CompanyCandidatePolicy->CellCssClass = "";
$cstArchivedStudents->CompanyCandidatePolicy->CellAttrs = array(); $cstArchivedStudents->CompanyCandidatePolicy->ViewAttrs = array(); $cstArchivedStudents->CompanyCandidatePolicy->EditAttrs = array();
// ResidenceProof
$cstArchivedStudents->ResidenceProof->CellCssStyle = ""; $cstArchivedStudents->ResidenceProof->CellCssClass = "";
$cstArchivedStudents->ResidenceProof->CellAttrs = array(); $cstArchivedStudents->ResidenceProof->ViewAttrs = array(); $cstArchivedStudents->ResidenceProof->EditAttrs = array();
// SignedAppForm
$cstArchivedStudents->SignedAppForm->CellCssStyle = ""; $cstArchivedStudents->SignedAppForm->CellCssClass = "";
$cstArchivedStudents->SignedAppForm->CellAttrs = array(); $cstArchivedStudents->SignedAppForm->ViewAttrs = array(); $cstArchivedStudents->SignedAppForm->EditAttrs = array();
// Photograph
$cstArchivedStudents->Photograph->CellCssStyle = ""; $cstArchivedStudents->Photograph->CellCssClass = "";
$cstArchivedStudents->Photograph->CellAttrs = array(); $cstArchivedStudents->Photograph->ViewAttrs = array(); $cstArchivedStudents->Photograph->EditAttrs = array();
// StudentNumber
$cstArchivedStudents->StudentNumber->CellCssStyle = ""; $cstArchivedStudents->StudentNumber->CellCssClass = "";
$cstArchivedStudents->StudentNumber->CellAttrs = array(); $cstArchivedStudents->StudentNumber->ViewAttrs = array(); $cstArchivedStudents->StudentNumber->EditAttrs = array();
// WebUsername
$cstArchivedStudents->WebUsername->CellCssStyle = ""; $cstArchivedStudents->WebUsername->CellCssClass = "";
$cstArchivedStudents->WebUsername->CellAttrs = array(); $cstArchivedStudents->WebUsername->ViewAttrs = array(); $cstArchivedStudents->WebUsername->EditAttrs = array();
// WebPassword
$cstArchivedStudents->WebPassword->CellCssStyle = ""; $cstArchivedStudents->WebPassword->CellCssClass = "";
$cstArchivedStudents->WebPassword->CellAttrs = array(); $cstArchivedStudents->WebPassword->ViewAttrs = array(); $cstArchivedStudents->WebPassword->EditAttrs = array();
// BlockAccess
$cstArchivedStudents->BlockAccess->CellCssStyle = ""; $cstArchivedStudents->BlockAccess->CellCssClass = "";
$cstArchivedStudents->BlockAccess->CellAttrs = array(); $cstArchivedStudents->BlockAccess->ViewAttrs = array(); $cstArchivedStudents->BlockAccess->EditAttrs = array();
if ($cstArchivedStudents->RowType == EW_ROWTYPE_VIEW) { // View row
// Archived
if (strval($cstArchivedStudents->Archived->CurrentValue) <> "") {
switch ($cstArchivedStudents->Archived->CurrentValue) {
case "1":
$cstArchivedStudents->Archived->ViewValue = "Yes";
break;
case "0":
$cstArchivedStudents->Archived->ViewValue = "No";
break;
default:
$cstArchivedStudents->Archived->ViewValue = $cstArchivedStudents->Archived->CurrentValue;
}
} else {
$cstArchivedStudents->Archived->ViewValue = NULL;
}
$cstArchivedStudents->Archived->CssStyle = "";
$cstArchivedStudents->Archived->CssClass = "";
$cstArchivedStudents->Archived->ViewCustomAttributes = "";
// CCMStudentID
$cstArchivedStudents->CCMStudentID->ViewValue = $cstArchivedStudents->CCMStudentID->CurrentValue;
$cstArchivedStudents->CCMStudentID->CssStyle = "";
$cstArchivedStudents->CCMStudentID->CssClass = "";
$cstArchivedStudents->CCMStudentID->ViewCustomAttributes = "";
// SelectionCategory
$cstArchivedStudents->SelectionCategory->ViewValue = $cstArchivedStudents->SelectionCategory->CurrentValue;
$cstArchivedStudents->SelectionCategory->CssStyle = "";
$cstArchivedStudents->SelectionCategory->CssClass = "";
$cstArchivedStudents->SelectionCategory->ViewCustomAttributes = "";
// Title
$cstArchivedStudents->Title->ViewValue = $cstArchivedStudents->Title->CurrentValue;
$cstArchivedStudents->Title->CssStyle = "";
$cstArchivedStudents->Title->CssClass = "";
$cstArchivedStudents->Title->ViewCustomAttributes = "";
// Initials
$cstArchivedStudents->Initials->ViewValue = $cstArchivedStudents->Initials->CurrentValue;
$cstArchivedStudents->Initials->CssStyle = "";
$cstArchivedStudents->Initials->CssClass = "";
$cstArchivedStudents->Initials->ViewCustomAttributes = "";
// FirstName
$cstArchivedStudents->FirstName->ViewValue = $cstArchivedStudents->FirstName->CurrentValue;
$cstArchivedStudents->FirstName->CssStyle = "";
$cstArchivedStudents->FirstName->CssClass = "";
$cstArchivedStudents->FirstName->ViewCustomAttributes = "";
// Surname
$cstArchivedStudents->Surname->ViewValue = $cstArchivedStudents->Surname->CurrentValue;
$cstArchivedStudents->Surname->CssStyle = "";
$cstArchivedStudents->Surname->CssClass = "";
$cstArchivedStudents->Surname->ViewCustomAttributes = "";
// KnownAs
$cstArchivedStudents->KnownAs->ViewValue = $cstArchivedStudents->KnownAs->CurrentValue;
$cstArchivedStudents->KnownAs->CssStyle = "";
$cstArchivedStudents->KnownAs->CssClass = "";
$cstArchivedStudents->KnownAs->ViewCustomAttributes = "";
// IDNumber
$cstArchivedStudents->IDNumber->ViewValue = $cstArchivedStudents->IDNumber->CurrentValue;
$cstArchivedStudents->IDNumber->CssStyle = "";
$cstArchivedStudents->IDNumber->CssClass = "";
$cstArchivedStudents->IDNumber->ViewCustomAttributes = "mso-number-format:General";
// Telephone
$cstArchivedStudents->Telephone->ViewValue = $cstArchivedStudents->Telephone->CurrentValue;
$cstArchivedStudents->Telephone->CssStyle = "";
$cstArchivedStudents->Telephone->CssClass = "";
$cstArchivedStudents->Telephone->ViewCustomAttributes = "mso-number-format:General";
// Cellphone
$cstArchivedStudents->Cellphone->ViewValue = $cstArchivedStudents->Cellphone->CurrentValue;
$cstArchivedStudents->Cellphone->CssStyle = "";
$cstArchivedStudents->Cellphone->CssClass = "";
$cstArchivedStudents->Cellphone->ViewCustomAttributes = "mso-number-format:General";
// EmailAddress
$cstArchivedStudents->EmailAddress->ViewValue = $cstArchivedStudents->EmailAddress->CurrentValue;
$cstArchivedStudents->EmailAddress->CssStyle = "";
$cstArchivedStudents->EmailAddress->CssClass = "";
$cstArchivedStudents->EmailAddress->ViewCustomAttributes = "";
// WorkAddress
$cstArchivedStudents->WorkAddress->ViewValue = $cstArchivedStudents->WorkAddress->CurrentValue;
$cstArchivedStudents->WorkAddress->CssStyle = "";
$cstArchivedStudents->WorkAddress->CssClass = "";
$cstArchivedStudents->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$cstArchivedStudents->PostalAddress->ViewValue = $cstArchivedStudents->PostalAddress->CurrentValue;
$cstArchivedStudents->PostalAddress->CssStyle = "";
$cstArchivedStudents->PostalAddress->CssClass = "";
$cstArchivedStudents->PostalAddress->ViewCustomAttributes = "";
// Department
$cstArchivedStudents->Department->ViewValue = $cstArchivedStudents->Department->CurrentValue;
$cstArchivedStudents->Department->CssStyle = "";
$cstArchivedStudents->Department->CssClass = "";
$cstArchivedStudents->Department->ViewCustomAttributes = "";
// Organisation
$cstArchivedStudents->Organisation->ViewValue = $cstArchivedStudents->Organisation->CurrentValue;
$cstArchivedStudents->Organisation->CssStyle = "";
$cstArchivedStudents->Organisation->CssClass = "";
$cstArchivedStudents->Organisation->ViewCustomAttributes = "";
// VATNo
$cstArchivedStudents->VATNo->ViewValue = $cstArchivedStudents->VATNo->CurrentValue;
$cstArchivedStudents->VATNo->CssStyle = "";
$cstArchivedStudents->VATNo->CssClass = "";
$cstArchivedStudents->VATNo->ViewCustomAttributes = "";
// JobTitle
$cstArchivedStudents->JobTitle->ViewValue = $cstArchivedStudents->JobTitle->CurrentValue;
$cstArchivedStudents->JobTitle->CssStyle = "";
$cstArchivedStudents->JobTitle->CssClass = "";
$cstArchivedStudents->JobTitle->ViewCustomAttributes = "";
// DateofBirth
$cstArchivedStudents->DateofBirth->ViewValue = $cstArchivedStudents->DateofBirth->CurrentValue;
$cstArchivedStudents->DateofBirth->ViewValue = ew_FormatDateTime($cstArchivedStudents->DateofBirth->ViewValue, 5);
$cstArchivedStudents->DateofBirth->CssStyle = "";
$cstArchivedStudents->DateofBirth->CssClass = "";
$cstArchivedStudents->DateofBirth->ViewCustomAttributes = "";
// PlaceofBirth
$cstArchivedStudents->PlaceofBirth->ViewValue = $cstArchivedStudents->PlaceofBirth->CurrentValue;
$cstArchivedStudents->PlaceofBirth->CssStyle = "";
$cstArchivedStudents->PlaceofBirth->CssClass = "";
$cstArchivedStudents->PlaceofBirth->ViewCustomAttributes = "";
// CountryofBirth
$cstArchivedStudents->CountryofBirth->ViewValue = $cstArchivedStudents->CountryofBirth->CurrentValue;
$cstArchivedStudents->CountryofBirth->CssStyle = "";
$cstArchivedStudents->CountryofBirth->CssClass = "";
$cstArchivedStudents->CountryofBirth->ViewCustomAttributes = "";
// Province
if (strval($cstArchivedStudents->Province->CurrentValue) <> "") {
$sFilterWrk = "`LookupValue` = '" . ew_AdjustSql($cstArchivedStudents->Province->CurrentValue) . "'";
$sSqlWrk = "SELECT `LookupValue` FROM `Lookups`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "LookupName='Province'" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `LookupValue`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudents->Province->ViewValue = $rswrk->fields('LookupValue');
$rswrk->Close();
} else {
$cstArchivedStudents->Province->ViewValue = $cstArchivedStudents->Province->CurrentValue;
}
} else {
$cstArchivedStudents->Province->ViewValue = NULL;
}
$cstArchivedStudents->Province->CssStyle = "";
$cstArchivedStudents->Province->CssClass = "";
$cstArchivedStudents->Province->ViewCustomAttributes = "";
// MaleorFemale
$cstArchivedStudents->MaleorFemale->ViewValue = $cstArchivedStudents->MaleorFemale->CurrentValue;
$cstArchivedStudents->MaleorFemale->CssStyle = "";
$cstArchivedStudents->MaleorFemale->CssClass = "";
$cstArchivedStudents->MaleorFemale->ViewCustomAttributes = "";
// RaceGroup
$cstArchivedStudents->RaceGroup->ViewValue = $cstArchivedStudents->RaceGroup->CurrentValue;
$cstArchivedStudents->RaceGroup->CssStyle = "";
$cstArchivedStudents->RaceGroup->CssClass = "";
$cstArchivedStudents->RaceGroup->ViewCustomAttributes = "";
// Disability
if (strval($cstArchivedStudents->Disability->CurrentValue) <> "") {
switch ($cstArchivedStudents->Disability->CurrentValue) {
case "y":
$cstArchivedStudents->Disability->ViewValue = "Yes";
break;
case "n":
$cstArchivedStudents->Disability->ViewValue = "No";
break;
default:
$cstArchivedStudents->Disability->ViewValue = $cstArchivedStudents->Disability->CurrentValue;
}
} else {
$cstArchivedStudents->Disability->ViewValue = NULL;
}
$cstArchivedStudents->Disability->CssStyle = "";
$cstArchivedStudents->Disability->CssClass = "";
$cstArchivedStudents->Disability->ViewCustomAttributes = "";
// DisabilityNature
$cstArchivedStudents->DisabilityNature->ViewValue = $cstArchivedStudents->DisabilityNature->CurrentValue;
$cstArchivedStudents->DisabilityNature->CssStyle = "";
$cstArchivedStudents->DisabilityNature->CssClass = "";
$cstArchivedStudents->DisabilityNature->ViewCustomAttributes = "";
// DisabilityCertificate
if (!ew_Empty($cstArchivedStudents->DisabilityCertificate->Upload->DbValue)) {
$cstArchivedStudents->DisabilityCertificate->ViewValue = $cstArchivedStudents->DisabilityCertificate->Upload->DbValue;
} else {
$cstArchivedStudents->DisabilityCertificate->ViewValue = "";
}
$cstArchivedStudents->DisabilityCertificate->CssStyle = "";
$cstArchivedStudents->DisabilityCertificate->CssClass = "";
$cstArchivedStudents->DisabilityCertificate->ViewCustomAttributes = "";
// ProfessionalCouncil
$cstArchivedStudents->ProfessionalCouncil->ViewValue = $cstArchivedStudents->ProfessionalCouncil->CurrentValue;
$cstArchivedStudents->ProfessionalCouncil->CssStyle = "";
$cstArchivedStudents->ProfessionalCouncil->CssClass = "";
$cstArchivedStudents->ProfessionalCouncil->ViewCustomAttributes = "";
// CategoryReg
$cstArchivedStudents->CategoryReg->ViewValue = $cstArchivedStudents->CategoryReg->CurrentValue;
$cstArchivedStudents->CategoryReg->CssStyle = "";
$cstArchivedStudents->CategoryReg->CssClass = "";
$cstArchivedStudents->CategoryReg->ViewCustomAttributes = "";
// CouncilRegNumber
$cstArchivedStudents->CouncilRegNumber->ViewValue = $cstArchivedStudents->CouncilRegNumber->CurrentValue;
$cstArchivedStudents->CouncilRegNumber->CssStyle = "";
$cstArchivedStudents->CouncilRegNumber->CssClass = "";
$cstArchivedStudents->CouncilRegNumber->ViewCustomAttributes = "";
// LengthCandidateReg
$cstArchivedStudents->LengthCandidateReg->ViewValue = $cstArchivedStudents->LengthCandidateReg->CurrentValue;
$cstArchivedStudents->LengthCandidateReg->CssStyle = "";
$cstArchivedStudents->LengthCandidateReg->CssClass = "";
$cstArchivedStudents->LengthCandidateReg->ViewCustomAttributes = "";
// YearsToProfReg
$cstArchivedStudents->YearsToProfReg->ViewValue = $cstArchivedStudents->YearsToProfReg->CurrentValue;
$cstArchivedStudents->YearsToProfReg->CssStyle = "";
$cstArchivedStudents->YearsToProfReg->CssClass = "";
$cstArchivedStudents->YearsToProfReg->ViewCustomAttributes = "";
// FirstJobStart
$cstArchivedStudents->FirstJobStart->ViewValue = $cstArchivedStudents->FirstJobStart->CurrentValue;
$cstArchivedStudents->FirstJobStart->CssStyle = "";
$cstArchivedStudents->FirstJobStart->CssClass = "";
$cstArchivedStudents->FirstJobStart->ViewCustomAttributes = "";
// VolAssociations
$cstArchivedStudents->VolAssociations->ViewValue = $cstArchivedStudents->VolAssociations->CurrentValue;
$cstArchivedStudents->VolAssociations->CssStyle = "";
$cstArchivedStudents->VolAssociations->CssClass = "";
$cstArchivedStudents->VolAssociations->ViewCustomAttributes = "";
// BelongsTo
$cstArchivedStudents->BelongsTo->ViewValue = $cstArchivedStudents->BelongsTo->CurrentValue;
$cstArchivedStudents->BelongsTo->CssStyle = "";
$cstArchivedStudents->BelongsTo->CssClass = "";
$cstArchivedStudents->BelongsTo->ViewCustomAttributes = "";
// CESA_SABTACO_MemNum
$cstArchivedStudents->CESA_SABTACO_MemNum->ViewValue = $cstArchivedStudents->CESA_SABTACO_MemNum->CurrentValue;
$cstArchivedStudents->CESA_SABTACO_MemNum->CssStyle = "";
$cstArchivedStudents->CESA_SABTACO_MemNum->CssClass = "";
$cstArchivedStudents->CESA_SABTACO_MemNum->ViewCustomAttributes = "";
// AreaDiscipline
$cstArchivedStudents->AreaDiscipline->ViewValue = $cstArchivedStudents->AreaDiscipline->CurrentValue;
$cstArchivedStudents->AreaDiscipline->CssStyle = "";
$cstArchivedStudents->AreaDiscipline->CssClass = "";
$cstArchivedStudents->AreaDiscipline->ViewCustomAttributes = "";
// AreaSubDiscipline
$cstArchivedStudents->AreaSubDiscipline->ViewValue = $cstArchivedStudents->AreaSubDiscipline->CurrentValue;
$cstArchivedStudents->AreaSubDiscipline->CssStyle = "";
$cstArchivedStudents->AreaSubDiscipline->CssClass = "";
$cstArchivedStudents->AreaSubDiscipline->ViewCustomAttributes = "";
// Salary
$cstArchivedStudents->Salary->ViewValue = $cstArchivedStudents->Salary->CurrentValue;
$cstArchivedStudents->Salary->CssStyle = "";
$cstArchivedStudents->Salary->CssClass = "";
$cstArchivedStudents->Salary->ViewCustomAttributes = "";
// Payslip
if (!ew_Empty($cstArchivedStudents->Payslip->Upload->DbValue)) {
$cstArchivedStudents->Payslip->ViewValue = $cstArchivedStudents->Payslip->Upload->DbValue;
} else {
$cstArchivedStudents->Payslip->ViewValue = "";
}
$cstArchivedStudents->Payslip->CssStyle = "";
$cstArchivedStudents->Payslip->CssClass = "";
$cstArchivedStudents->Payslip->ViewCustomAttributes = "";
// BankAccountName
$cstArchivedStudents->BankAccountName->ViewValue = $cstArchivedStudents->BankAccountName->CurrentValue;
$cstArchivedStudents->BankAccountName->CssStyle = "";
$cstArchivedStudents->BankAccountName->CssClass = "";
$cstArchivedStudents->BankAccountName->ViewCustomAttributes = "";
// BankAccountBank
$cstArchivedStudents->BankAccountBank->ViewValue = $cstArchivedStudents->BankAccountBank->CurrentValue;
$cstArchivedStudents->BankAccountBank->CssStyle = "";
$cstArchivedStudents->BankAccountBank->CssClass = "";
$cstArchivedStudents->BankAccountBank->ViewCustomAttributes = "";
// BankAccountBranch
$cstArchivedStudents->BankAccountBranch->ViewValue = $cstArchivedStudents->BankAccountBranch->CurrentValue;
$cstArchivedStudents->BankAccountBranch->CssStyle = "";
$cstArchivedStudents->BankAccountBranch->CssClass = "";
$cstArchivedStudents->BankAccountBranch->ViewCustomAttributes = "";
// BankAccountNo
$cstArchivedStudents->BankAccountNo->ViewValue = $cstArchivedStudents->BankAccountNo->CurrentValue;
$cstArchivedStudents->BankAccountNo->CssStyle = "";
$cstArchivedStudents->BankAccountNo->CssClass = "";
$cstArchivedStudents->BankAccountNo->ViewCustomAttributes = "";
// BankAccountProof
if (!ew_Empty($cstArchivedStudents->BankAccountProof->Upload->DbValue)) {
$cstArchivedStudents->BankAccountProof->ViewValue = $cstArchivedStudents->BankAccountProof->Upload->DbValue;
} else {
$cstArchivedStudents->BankAccountProof->ViewValue = "";
}
$cstArchivedStudents->BankAccountProof->CssStyle = "";
$cstArchivedStudents->BankAccountProof->CssClass = "";
$cstArchivedStudents->BankAccountProof->ViewCustomAttributes = "";
// Funding
$cstArchivedStudents->Funding->ViewValue = $cstArchivedStudents->Funding->CurrentValue;
$cstArchivedStudents->Funding->CssStyle = "";
$cstArchivedStudents->Funding->CssClass = "";
$cstArchivedStudents->Funding->ViewCustomAttributes = "";
// CWDTP
$cstArchivedStudents->CWDTP->ViewValue = $cstArchivedStudents->CWDTP->CurrentValue;
$cstArchivedStudents->CWDTP->CssStyle = "";
$cstArchivedStudents->CWDTP->CssClass = "";
$cstArchivedStudents->CWDTP->ViewCustomAttributes = "";
// BookedByName
$cstArchivedStudents->BookedByName->ViewValue = $cstArchivedStudents->BookedByName->CurrentValue;
$cstArchivedStudents->BookedByName->CssStyle = "";
$cstArchivedStudents->BookedByName->CssClass = "";
$cstArchivedStudents->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$cstArchivedStudents->BookedByDesignation->ViewValue = $cstArchivedStudents->BookedByDesignation->CurrentValue;
$cstArchivedStudents->BookedByDesignation->CssStyle = "";
$cstArchivedStudents->BookedByDesignation->CssClass = "";
$cstArchivedStudents->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$cstArchivedStudents->BookedByTelNo->ViewValue = $cstArchivedStudents->BookedByTelNo->CurrentValue;
$cstArchivedStudents->BookedByTelNo->CssStyle = "";
$cstArchivedStudents->BookedByTelNo->CssClass = "";
$cstArchivedStudents->BookedByTelNo->ViewCustomAttributes = "";
// BookedByFaxNo
$cstArchivedStudents->BookedByFaxNo->ViewValue = $cstArchivedStudents->BookedByFaxNo->CurrentValue;
$cstArchivedStudents->BookedByFaxNo->CssStyle = "";
$cstArchivedStudents->BookedByFaxNo->CssClass = "";
$cstArchivedStudents->BookedByFaxNo->ViewCustomAttributes = "";
// BookedByCellNo
$cstArchivedStudents->BookedByCellNo->ViewValue = $cstArchivedStudents->BookedByCellNo->CurrentValue;
$cstArchivedStudents->BookedByCellNo->CssStyle = "";
$cstArchivedStudents->BookedByCellNo->CssClass = "";
$cstArchivedStudents->BookedByCellNo->ViewCustomAttributes = "";
// BookedByEmail
$cstArchivedStudents->BookedByEmail->ViewValue = $cstArchivedStudents->BookedByEmail->CurrentValue;
$cstArchivedStudents->BookedByEmail->CssStyle = "";
$cstArchivedStudents->BookedByEmail->CssClass = "";
$cstArchivedStudents->BookedByEmail->ViewCustomAttributes = "";
// MentorID
if (strval($cstArchivedStudents->MentorID->CurrentValue) <> "") {
$sFilterWrk = "`CCMMentorID` = " . ew_AdjustSql($cstArchivedStudents->MentorID->CurrentValue) . "";
$sSqlWrk = "SELECT `Surname`, `FirstName` FROM `CCMMentors`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FirstName`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudents->MentorID->ViewValue = $rswrk->fields('Surname');
$cstArchivedStudents->MentorID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('FirstName');
$rswrk->Close();
} else {
$cstArchivedStudents->MentorID->ViewValue = $cstArchivedStudents->MentorID->CurrentValue;
}
} else {
$cstArchivedStudents->MentorID->ViewValue = NULL;
}
$cstArchivedStudents->MentorID->CssStyle = "";
$cstArchivedStudents->MentorID->CssClass = "";
$cstArchivedStudents->MentorID->ViewCustomAttributes = "";
// EmployerID
if (strval($cstArchivedStudents->EmployerID->CurrentValue) <> "") {
$sFilterWrk = "`CCMEmployerID` = " . ew_AdjustSql($cstArchivedStudents->EmployerID->CurrentValue) . "";
$sSqlWrk = "SELECT `Organisation`, `Surname` FROM `CCMEmployers`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `Organisation`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudents->EmployerID->ViewValue = $rswrk->fields('Organisation');
$cstArchivedStudents->EmployerID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('Surname');
$rswrk->Close();
} else {
$cstArchivedStudents->EmployerID->ViewValue = $cstArchivedStudents->EmployerID->CurrentValue;
}
} else {
$cstArchivedStudents->EmployerID->ViewValue = NULL;
}
$cstArchivedStudents->EmployerID->CssStyle = "";
$cstArchivedStudents->EmployerID->CssClass = "";
$cstArchivedStudents->EmployerID->ViewCustomAttributes = "";
// HRManagerName
$cstArchivedStudents->HRManagerName->ViewValue = $cstArchivedStudents->HRManagerName->CurrentValue;
$cstArchivedStudents->HRManagerName->CssStyle = "";
$cstArchivedStudents->HRManagerName->CssClass = "";
$cstArchivedStudents->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$cstArchivedStudents->HRManagerDesignation->ViewValue = $cstArchivedStudents->HRManagerDesignation->CurrentValue;
$cstArchivedStudents->HRManagerDesignation->CssStyle = "";
$cstArchivedStudents->HRManagerDesignation->CssClass = "";
$cstArchivedStudents->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$cstArchivedStudents->HRManagerTelNo->ViewValue = $cstArchivedStudents->HRManagerTelNo->CurrentValue;
$cstArchivedStudents->HRManagerTelNo->CssStyle = "";
$cstArchivedStudents->HRManagerTelNo->CssClass = "";
$cstArchivedStudents->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$cstArchivedStudents->HRManagerCellNo->ViewValue = $cstArchivedStudents->HRManagerCellNo->CurrentValue;
$cstArchivedStudents->HRManagerCellNo->CssStyle = "";
$cstArchivedStudents->HRManagerCellNo->CssClass = "";
$cstArchivedStudents->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$cstArchivedStudents->HRManagerEmail->ViewValue = $cstArchivedStudents->HRManagerEmail->CurrentValue;
$cstArchivedStudents->HRManagerEmail->CssStyle = "";
$cstArchivedStudents->HRManagerEmail->CssClass = "";
$cstArchivedStudents->HRManagerEmail->ViewCustomAttributes = "";
// SupervisorName
$cstArchivedStudents->SupervisorName->ViewValue = $cstArchivedStudents->SupervisorName->CurrentValue;
$cstArchivedStudents->SupervisorName->CssStyle = "";
$cstArchivedStudents->SupervisorName->CssClass = "";
$cstArchivedStudents->SupervisorName->ViewCustomAttributes = "";
// SupervisorDesig
$cstArchivedStudents->SupervisorDesig->ViewValue = $cstArchivedStudents->SupervisorDesig->CurrentValue;
$cstArchivedStudents->SupervisorDesig->CssStyle = "";
$cstArchivedStudents->SupervisorDesig->CssClass = "";
$cstArchivedStudents->SupervisorDesig->ViewCustomAttributes = "";
// SupervisorProfRegNo
$cstArchivedStudents->SupervisorProfRegNo->ViewValue = $cstArchivedStudents->SupervisorProfRegNo->CurrentValue;
$cstArchivedStudents->SupervisorProfRegNo->CssStyle = "";
$cstArchivedStudents->SupervisorProfRegNo->CssClass = "";
$cstArchivedStudents->SupervisorProfRegNo->ViewCustomAttributes = "";
// SupervisorTelNo
$cstArchivedStudents->SupervisorTelNo->ViewValue = $cstArchivedStudents->SupervisorTelNo->CurrentValue;
$cstArchivedStudents->SupervisorTelNo->CssStyle = "";
$cstArchivedStudents->SupervisorTelNo->CssClass = "";
$cstArchivedStudents->SupervisorTelNo->ViewCustomAttributes = "";
// SupervisorCellNo
$cstArchivedStudents->SupervisorCellNo->ViewValue = $cstArchivedStudents->SupervisorCellNo->CurrentValue;
$cstArchivedStudents->SupervisorCellNo->CssStyle = "";
$cstArchivedStudents->SupervisorCellNo->CssClass = "";
$cstArchivedStudents->SupervisorCellNo->ViewCustomAttributes = "";
// SupervisorEmail
$cstArchivedStudents->SupervisorEmail->ViewValue = $cstArchivedStudents->SupervisorEmail->CurrentValue;
$cstArchivedStudents->SupervisorEmail->CssStyle = "";
$cstArchivedStudents->SupervisorEmail->CssClass = "";
$cstArchivedStudents->SupervisorEmail->ViewCustomAttributes = "";
// EducationalInst
$cstArchivedStudents->EducationalInst->ViewValue = $cstArchivedStudents->EducationalInst->CurrentValue;
$cstArchivedStudents->EducationalInst->CssStyle = "";
$cstArchivedStudents->EducationalInst->CssClass = "";
$cstArchivedStudents->EducationalInst->ViewCustomAttributes = "";
// Qualifications
$cstArchivedStudents->Qualifications->ViewValue = $cstArchivedStudents->Qualifications->CurrentValue;
$cstArchivedStudents->Qualifications->CssStyle = "";
$cstArchivedStudents->Qualifications->CssClass = "";
$cstArchivedStudents->Qualifications->ViewCustomAttributes = "";
// DateFinalExam
$cstArchivedStudents->DateFinalExam->ViewValue = $cstArchivedStudents->DateFinalExam->CurrentValue;
$cstArchivedStudents->DateFinalExam->CssStyle = "";
$cstArchivedStudents->DateFinalExam->CssClass = "";
$cstArchivedStudents->DateFinalExam->ViewCustomAttributes = "";
// IDFile
if (!ew_Empty($cstArchivedStudents->IDFile->Upload->DbValue)) {
$cstArchivedStudents->IDFile->ViewValue = $cstArchivedStudents->IDFile->Upload->DbValue;
} else {
$cstArchivedStudents->IDFile->ViewValue = "";
}
$cstArchivedStudents->IDFile->CssStyle = "";
$cstArchivedStudents->IDFile->CssClass = "";
$cstArchivedStudents->IDFile->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($cstArchivedStudents->CVFile->Upload->DbValue)) {
$cstArchivedStudents->CVFile->ViewValue = $cstArchivedStudents->CVFile->Upload->DbValue;
} else {
$cstArchivedStudents->CVFile->ViewValue = "";
}
$cstArchivedStudents->CVFile->CssStyle = "";
$cstArchivedStudents->CVFile->CssClass = "";
$cstArchivedStudents->CVFile->ViewCustomAttributes = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudents->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate1->ViewValue = $cstArchivedStudents->QualCertificate1->Upload->DbValue;
} else {
$cstArchivedStudents->QualCertificate1->ViewValue = "";
}
$cstArchivedStudents->QualCertificate1->CssStyle = "";
$cstArchivedStudents->QualCertificate1->CssClass = "";
$cstArchivedStudents->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudents->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate2->ViewValue = $cstArchivedStudents->QualCertificate2->Upload->DbValue;
} else {
$cstArchivedStudents->QualCertificate2->ViewValue = "";
}
$cstArchivedStudents->QualCertificate2->CssStyle = "";
$cstArchivedStudents->QualCertificate2->CssClass = "";
$cstArchivedStudents->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudents->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate3->ViewValue = $cstArchivedStudents->QualCertificate3->Upload->DbValue;
} else {
$cstArchivedStudents->QualCertificate3->ViewValue = "";
}
$cstArchivedStudents->QualCertificate3->CssStyle = "";
$cstArchivedStudents->QualCertificate3->CssClass = "";
$cstArchivedStudents->QualCertificate3->ViewCustomAttributes = "";
// MentorUndertaking
if (!ew_Empty($cstArchivedStudents->MentorUndertaking->Upload->DbValue)) {
$cstArchivedStudents->MentorUndertaking->ViewValue = $cstArchivedStudents->MentorUndertaking->Upload->DbValue;
} else {
$cstArchivedStudents->MentorUndertaking->ViewValue = "";
}
$cstArchivedStudents->MentorUndertaking->CssStyle = "";
$cstArchivedStudents->MentorUndertaking->CssClass = "";
$cstArchivedStudents->MentorUndertaking->ViewCustomAttributes = "";
// CandUUndertaking
if (!ew_Empty($cstArchivedStudents->CandUUndertaking->Upload->DbValue)) {
$cstArchivedStudents->CandUUndertaking->ViewValue = $cstArchivedStudents->CandUUndertaking->Upload->DbValue;
} else {
$cstArchivedStudents->CandUUndertaking->ViewValue = "";
}
$cstArchivedStudents->CandUUndertaking->CssStyle = "";
$cstArchivedStudents->CandUUndertaking->CssClass = "";
$cstArchivedStudents->CandUUndertaking->ViewCustomAttributes = "";
// CompanyCandidatePolicy
if (!ew_Empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue)) {
$cstArchivedStudents->CompanyCandidatePolicy->ViewValue = $cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue;
} else {
$cstArchivedStudents->CompanyCandidatePolicy->ViewValue = "";
}
$cstArchivedStudents->CompanyCandidatePolicy->CssStyle = "";
$cstArchivedStudents->CompanyCandidatePolicy->CssClass = "";
$cstArchivedStudents->CompanyCandidatePolicy->ViewCustomAttributes = "";
// ResidenceProof
if (!ew_Empty($cstArchivedStudents->ResidenceProof->Upload->DbValue)) {
$cstArchivedStudents->ResidenceProof->ViewValue = $cstArchivedStudents->ResidenceProof->Upload->DbValue;
} else {
$cstArchivedStudents->ResidenceProof->ViewValue = "";
}
$cstArchivedStudents->ResidenceProof->CssStyle = "";
$cstArchivedStudents->ResidenceProof->CssClass = "";
$cstArchivedStudents->ResidenceProof->ViewCustomAttributes = "";
// SignedAppForm
if (!ew_Empty($cstArchivedStudents->SignedAppForm->Upload->DbValue)) {
$cstArchivedStudents->SignedAppForm->ViewValue = $cstArchivedStudents->SignedAppForm->Upload->DbValue;
} else {
$cstArchivedStudents->SignedAppForm->ViewValue = "";
}
$cstArchivedStudents->SignedAppForm->CssStyle = "";
$cstArchivedStudents->SignedAppForm->CssClass = "";
$cstArchivedStudents->SignedAppForm->ViewCustomAttributes = "";
// Photograph
if (!ew_Empty($cstArchivedStudents->Photograph->Upload->DbValue)) {
$cstArchivedStudents->Photograph->ViewValue = $cstArchivedStudents->Photograph->Upload->DbValue;
} else {
$cstArchivedStudents->Photograph->ViewValue = "";
}
$cstArchivedStudents->Photograph->CssStyle = "";
$cstArchivedStudents->Photograph->CssClass = "";
$cstArchivedStudents->Photograph->ViewCustomAttributes = "";
// StudentNumber
$cstArchivedStudents->StudentNumber->ViewValue = $cstArchivedStudents->StudentNumber->CurrentValue;
$cstArchivedStudents->StudentNumber->CssStyle = "";
$cstArchivedStudents->StudentNumber->CssClass = "";
$cstArchivedStudents->StudentNumber->ViewCustomAttributes = "";
// WebUsername
$cstArchivedStudents->WebUsername->ViewValue = $cstArchivedStudents->WebUsername->CurrentValue;
$cstArchivedStudents->WebUsername->CssStyle = "";
$cstArchivedStudents->WebUsername->CssClass = "";
$cstArchivedStudents->WebUsername->ViewCustomAttributes = "";
// WebPassword
$cstArchivedStudents->WebPassword->ViewValue = $cstArchivedStudents->WebPassword->CurrentValue;
$cstArchivedStudents->WebPassword->CssStyle = "";
$cstArchivedStudents->WebPassword->CssClass = "";
$cstArchivedStudents->WebPassword->ViewCustomAttributes = "";
// BlockAccess
$cstArchivedStudents->BlockAccess->ViewValue = $cstArchivedStudents->BlockAccess->CurrentValue;
$cstArchivedStudents->BlockAccess->CssStyle = "";
$cstArchivedStudents->BlockAccess->CssClass = "";
$cstArchivedStudents->BlockAccess->ViewCustomAttributes = "";
// SABTACO
$cstArchivedStudents->SABTACO->ViewValue = $cstArchivedStudents->SABTACO->CurrentValue;
$cstArchivedStudents->SABTACO->CssStyle = "";
$cstArchivedStudents->SABTACO->CssClass = "";
$cstArchivedStudents->SABTACO->ViewCustomAttributes = "";
// CESA
$cstArchivedStudents->CESA->ViewValue = $cstArchivedStudents->CESA->CurrentValue;
$cstArchivedStudents->CESA->CssStyle = "";
$cstArchivedStudents->CESA->CssClass = "";
$cstArchivedStudents->CESA->ViewCustomAttributes = "";
// Archived
$cstArchivedStudents->Archived->HrefValue = "";
$cstArchivedStudents->Archived->TooltipValue = "";
// CCMStudentID
$cstArchivedStudents->CCMStudentID->HrefValue = "";
$cstArchivedStudents->CCMStudentID->TooltipValue = "";
// SelectionCategory
$cstArchivedStudents->SelectionCategory->HrefValue = "";
$cstArchivedStudents->SelectionCategory->TooltipValue = "";
// Title
$cstArchivedStudents->Title->HrefValue = "";
$cstArchivedStudents->Title->TooltipValue = "";
// Initials
$cstArchivedStudents->Initials->HrefValue = "";
$cstArchivedStudents->Initials->TooltipValue = "";
// FirstName
$cstArchivedStudents->FirstName->HrefValue = "";
$cstArchivedStudents->FirstName->TooltipValue = "";
// Surname
$cstArchivedStudents->Surname->HrefValue = "";
$cstArchivedStudents->Surname->TooltipValue = "";
// KnownAs
$cstArchivedStudents->KnownAs->HrefValue = "";
$cstArchivedStudents->KnownAs->TooltipValue = "";
// IDNumber
$cstArchivedStudents->IDNumber->HrefValue = "";
$cstArchivedStudents->IDNumber->TooltipValue = "";
// Telephone
$cstArchivedStudents->Telephone->HrefValue = "";
$cstArchivedStudents->Telephone->TooltipValue = "";
// Cellphone
$cstArchivedStudents->Cellphone->HrefValue = "";
$cstArchivedStudents->Cellphone->TooltipValue = "";
// EmailAddress
$cstArchivedStudents->EmailAddress->HrefValue = "";
$cstArchivedStudents->EmailAddress->TooltipValue = "";
// WorkAddress
$cstArchivedStudents->WorkAddress->HrefValue = "";
$cstArchivedStudents->WorkAddress->TooltipValue = "";
// PostalAddress
$cstArchivedStudents->PostalAddress->HrefValue = "";
$cstArchivedStudents->PostalAddress->TooltipValue = "";
// Department
$cstArchivedStudents->Department->HrefValue = "";
$cstArchivedStudents->Department->TooltipValue = "";
// Organisation
$cstArchivedStudents->Organisation->HrefValue = "";
$cstArchivedStudents->Organisation->TooltipValue = "";
// VATNo
$cstArchivedStudents->VATNo->HrefValue = "";
$cstArchivedStudents->VATNo->TooltipValue = "";
// JobTitle
$cstArchivedStudents->JobTitle->HrefValue = "";
$cstArchivedStudents->JobTitle->TooltipValue = "";
// DateofBirth
$cstArchivedStudents->DateofBirth->HrefValue = "";
$cstArchivedStudents->DateofBirth->TooltipValue = "";
// PlaceofBirth
$cstArchivedStudents->PlaceofBirth->HrefValue = "";
$cstArchivedStudents->PlaceofBirth->TooltipValue = "";
// CountryofBirth
$cstArchivedStudents->CountryofBirth->HrefValue = "";
$cstArchivedStudents->CountryofBirth->TooltipValue = "";
// Province
$cstArchivedStudents->Province->HrefValue = "";
$cstArchivedStudents->Province->TooltipValue = "";
// MaleorFemale
$cstArchivedStudents->MaleorFemale->HrefValue = "";
$cstArchivedStudents->MaleorFemale->TooltipValue = "";
// RaceGroup
$cstArchivedStudents->RaceGroup->HrefValue = "";
$cstArchivedStudents->RaceGroup->TooltipValue = "";
// Disability
$cstArchivedStudents->Disability->HrefValue = "";
$cstArchivedStudents->Disability->TooltipValue = "";
// DisabilityNature
$cstArchivedStudents->DisabilityNature->HrefValue = "";
$cstArchivedStudents->DisabilityNature->TooltipValue = "";
// DisabilityCertificate
if (!ew_Empty($cstArchivedStudents->DisabilityCertificate->Upload->DbValue)) {
$cstArchivedStudents->DisabilityCertificate->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->DisabilityCertificate->UploadPath) . ((!empty($cstArchivedStudents->DisabilityCertificate->ViewValue)) ? $cstArchivedStudents->DisabilityCertificate->ViewValue : $cstArchivedStudents->DisabilityCertificate->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->DisabilityCertificate->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->DisabilityCertificate->HrefValue);
} else {
$cstArchivedStudents->DisabilityCertificate->HrefValue = "";
}
$cstArchivedStudents->DisabilityCertificate->TooltipValue = "";
// ProfessionalCouncil
$cstArchivedStudents->ProfessionalCouncil->HrefValue = "";
$cstArchivedStudents->ProfessionalCouncil->TooltipValue = "";
// CategoryReg
$cstArchivedStudents->CategoryReg->HrefValue = "";
$cstArchivedStudents->CategoryReg->TooltipValue = "";
// CouncilRegNumber
$cstArchivedStudents->CouncilRegNumber->HrefValue = "";
$cstArchivedStudents->CouncilRegNumber->TooltipValue = "";
// LengthCandidateReg
$cstArchivedStudents->LengthCandidateReg->HrefValue = "";
$cstArchivedStudents->LengthCandidateReg->TooltipValue = "";
// YearsToProfReg
$cstArchivedStudents->YearsToProfReg->HrefValue = "";
$cstArchivedStudents->YearsToProfReg->TooltipValue = "";
// FirstJobStart
$cstArchivedStudents->FirstJobStart->HrefValue = "";
$cstArchivedStudents->FirstJobStart->TooltipValue = "";
// VolAssociations
$cstArchivedStudents->VolAssociations->HrefValue = "";
$cstArchivedStudents->VolAssociations->TooltipValue = "";
// BelongsTo
$cstArchivedStudents->BelongsTo->HrefValue = "";
$cstArchivedStudents->BelongsTo->TooltipValue = "";
// CESA_SABTACO_MemNum
$cstArchivedStudents->CESA_SABTACO_MemNum->HrefValue = "";
$cstArchivedStudents->CESA_SABTACO_MemNum->TooltipValue = "";
// AreaDiscipline
$cstArchivedStudents->AreaDiscipline->HrefValue = "";
$cstArchivedStudents->AreaDiscipline->TooltipValue = "";
// AreaSubDiscipline
$cstArchivedStudents->AreaSubDiscipline->HrefValue = "";
$cstArchivedStudents->AreaSubDiscipline->TooltipValue = "";
// Salary
$cstArchivedStudents->Salary->HrefValue = "";
$cstArchivedStudents->Salary->TooltipValue = "";
// Payslip
if (!ew_Empty($cstArchivedStudents->Payslip->Upload->DbValue)) {
$cstArchivedStudents->Payslip->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->Payslip->UploadPath) . ((!empty($cstArchivedStudents->Payslip->ViewValue)) ? $cstArchivedStudents->Payslip->ViewValue : $cstArchivedStudents->Payslip->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->Payslip->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->Payslip->HrefValue);
} else {
$cstArchivedStudents->Payslip->HrefValue = "";
}
$cstArchivedStudents->Payslip->TooltipValue = "";
// BankAccountName
$cstArchivedStudents->BankAccountName->HrefValue = "";
$cstArchivedStudents->BankAccountName->TooltipValue = "";
// BankAccountBank
$cstArchivedStudents->BankAccountBank->HrefValue = "";
$cstArchivedStudents->BankAccountBank->TooltipValue = "";
// BankAccountBranch
$cstArchivedStudents->BankAccountBranch->HrefValue = "";
$cstArchivedStudents->BankAccountBranch->TooltipValue = "";
// BankAccountNo
$cstArchivedStudents->BankAccountNo->HrefValue = "";
$cstArchivedStudents->BankAccountNo->TooltipValue = "";
// BankAccountProof
if (!ew_Empty($cstArchivedStudents->BankAccountProof->Upload->DbValue)) {
$cstArchivedStudents->BankAccountProof->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->BankAccountProof->UploadPath) . ((!empty($cstArchivedStudents->BankAccountProof->ViewValue)) ? $cstArchivedStudents->BankAccountProof->ViewValue : $cstArchivedStudents->BankAccountProof->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->BankAccountProof->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->BankAccountProof->HrefValue);
} else {
$cstArchivedStudents->BankAccountProof->HrefValue = "";
}
$cstArchivedStudents->BankAccountProof->TooltipValue = "";
// Funding
$cstArchivedStudents->Funding->HrefValue = "";
$cstArchivedStudents->Funding->TooltipValue = "";
// CWDTP
$cstArchivedStudents->CWDTP->HrefValue = "";
$cstArchivedStudents->CWDTP->TooltipValue = "";
// BookedByName
$cstArchivedStudents->BookedByName->HrefValue = "";
$cstArchivedStudents->BookedByName->TooltipValue = "";
// BookedByDesignation
$cstArchivedStudents->BookedByDesignation->HrefValue = "";
$cstArchivedStudents->BookedByDesignation->TooltipValue = "";
// BookedByTelNo
$cstArchivedStudents->BookedByTelNo->HrefValue = "";
$cstArchivedStudents->BookedByTelNo->TooltipValue = "";
// BookedByFaxNo
$cstArchivedStudents->BookedByFaxNo->HrefValue = "";
$cstArchivedStudents->BookedByFaxNo->TooltipValue = "";
// BookedByCellNo
$cstArchivedStudents->BookedByCellNo->HrefValue = "";
$cstArchivedStudents->BookedByCellNo->TooltipValue = "";
// BookedByEmail
$cstArchivedStudents->BookedByEmail->HrefValue = "";
$cstArchivedStudents->BookedByEmail->TooltipValue = "";
// MentorID
$cstArchivedStudents->MentorID->HrefValue = "";
$cstArchivedStudents->MentorID->TooltipValue = "";
// EmployerID
$cstArchivedStudents->EmployerID->HrefValue = "";
$cstArchivedStudents->EmployerID->TooltipValue = "";
// HRManagerName
$cstArchivedStudents->HRManagerName->HrefValue = "";
$cstArchivedStudents->HRManagerName->TooltipValue = "";
// HRManagerDesignation
$cstArchivedStudents->HRManagerDesignation->HrefValue = "";
$cstArchivedStudents->HRManagerDesignation->TooltipValue = "";
// HRManagerTelNo
$cstArchivedStudents->HRManagerTelNo->HrefValue = "";
$cstArchivedStudents->HRManagerTelNo->TooltipValue = "";
// HRManagerCellNo
$cstArchivedStudents->HRManagerCellNo->HrefValue = "";
$cstArchivedStudents->HRManagerCellNo->TooltipValue = "";
// HRManagerEmail
$cstArchivedStudents->HRManagerEmail->HrefValue = "";
$cstArchivedStudents->HRManagerEmail->TooltipValue = "";
// SupervisorName
$cstArchivedStudents->SupervisorName->HrefValue = "";
$cstArchivedStudents->SupervisorName->TooltipValue = "";
// SupervisorDesig
$cstArchivedStudents->SupervisorDesig->HrefValue = "";
$cstArchivedStudents->SupervisorDesig->TooltipValue = "";
// SupervisorProfRegNo
$cstArchivedStudents->SupervisorProfRegNo->HrefValue = "";
$cstArchivedStudents->SupervisorProfRegNo->TooltipValue = "";
// SupervisorTelNo
$cstArchivedStudents->SupervisorTelNo->HrefValue = "";
$cstArchivedStudents->SupervisorTelNo->TooltipValue = "";
// SupervisorCellNo
$cstArchivedStudents->SupervisorCellNo->HrefValue = "";
$cstArchivedStudents->SupervisorCellNo->TooltipValue = "";
// SupervisorEmail
$cstArchivedStudents->SupervisorEmail->HrefValue = "";
$cstArchivedStudents->SupervisorEmail->TooltipValue = "";
// EducationalInst
$cstArchivedStudents->EducationalInst->HrefValue = "";
$cstArchivedStudents->EducationalInst->TooltipValue = "";
// Qualifications
$cstArchivedStudents->Qualifications->HrefValue = "";
$cstArchivedStudents->Qualifications->TooltipValue = "";
// DateFinalExam
$cstArchivedStudents->DateFinalExam->HrefValue = "";
$cstArchivedStudents->DateFinalExam->TooltipValue = "";
// IDFile
if (!ew_Empty($cstArchivedStudents->IDFile->Upload->DbValue)) {
$cstArchivedStudents->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->IDFile->UploadPath) . ((!empty($cstArchivedStudents->IDFile->ViewValue)) ? $cstArchivedStudents->IDFile->ViewValue : $cstArchivedStudents->IDFile->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->IDFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->IDFile->HrefValue);
} else {
$cstArchivedStudents->IDFile->HrefValue = "";
}
$cstArchivedStudents->IDFile->TooltipValue = "";
// CVFile
if (!ew_Empty($cstArchivedStudents->CVFile->Upload->DbValue)) {
$cstArchivedStudents->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->CVFile->UploadPath) . ((!empty($cstArchivedStudents->CVFile->ViewValue)) ? $cstArchivedStudents->CVFile->ViewValue : $cstArchivedStudents->CVFile->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->CVFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->CVFile->HrefValue);
} else {
$cstArchivedStudents->CVFile->HrefValue = "";
}
$cstArchivedStudents->CVFile->TooltipValue = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudents->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->QualCertificate1->UploadPath) . ((!empty($cstArchivedStudents->QualCertificate1->ViewValue)) ? $cstArchivedStudents->QualCertificate1->ViewValue : $cstArchivedStudents->QualCertificate1->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->QualCertificate1->HrefValue);
} else {
$cstArchivedStudents->QualCertificate1->HrefValue = "";
}
$cstArchivedStudents->QualCertificate1->TooltipValue = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudents->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->QualCertificate2->UploadPath) . ((!empty($cstArchivedStudents->QualCertificate2->ViewValue)) ? $cstArchivedStudents->QualCertificate2->ViewValue : $cstArchivedStudents->QualCertificate2->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->QualCertificate2->HrefValue);
} else {
$cstArchivedStudents->QualCertificate2->HrefValue = "";
}
$cstArchivedStudents->QualCertificate2->TooltipValue = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudents->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->QualCertificate3->UploadPath) . ((!empty($cstArchivedStudents->QualCertificate3->ViewValue)) ? $cstArchivedStudents->QualCertificate3->ViewValue : $cstArchivedStudents->QualCertificate3->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->QualCertificate3->HrefValue);
} else {
$cstArchivedStudents->QualCertificate3->HrefValue = "";
}
$cstArchivedStudents->QualCertificate3->TooltipValue = "";
// MentorUndertaking
if (!ew_Empty($cstArchivedStudents->MentorUndertaking->Upload->DbValue)) {
$cstArchivedStudents->MentorUndertaking->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->MentorUndertaking->UploadPath) . ((!empty($cstArchivedStudents->MentorUndertaking->ViewValue)) ? $cstArchivedStudents->MentorUndertaking->ViewValue : $cstArchivedStudents->MentorUndertaking->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->MentorUndertaking->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->MentorUndertaking->HrefValue);
} else {
$cstArchivedStudents->MentorUndertaking->HrefValue = "";
}
$cstArchivedStudents->MentorUndertaking->TooltipValue = "";
// CandUUndertaking
if (!ew_Empty($cstArchivedStudents->CandUUndertaking->Upload->DbValue)) {
$cstArchivedStudents->CandUUndertaking->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->CandUUndertaking->UploadPath) . ((!empty($cstArchivedStudents->CandUUndertaking->ViewValue)) ? $cstArchivedStudents->CandUUndertaking->ViewValue : $cstArchivedStudents->CandUUndertaking->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->CandUUndertaking->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->CandUUndertaking->HrefValue);
} else {
$cstArchivedStudents->CandUUndertaking->HrefValue = "";
}
$cstArchivedStudents->CandUUndertaking->TooltipValue = "";
// CompanyCandidatePolicy
if (!ew_Empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue)) {
$cstArchivedStudents->CompanyCandidatePolicy->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->CompanyCandidatePolicy->UploadPath) . ((!empty($cstArchivedStudents->CompanyCandidatePolicy->ViewValue)) ? $cstArchivedStudents->CompanyCandidatePolicy->ViewValue : $cstArchivedStudents->CompanyCandidatePolicy->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->CompanyCandidatePolicy->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->CompanyCandidatePolicy->HrefValue);
} else {
$cstArchivedStudents->CompanyCandidatePolicy->HrefValue = "";
}
$cstArchivedStudents->CompanyCandidatePolicy->TooltipValue = "";
// ResidenceProof
if (!ew_Empty($cstArchivedStudents->ResidenceProof->Upload->DbValue)) {
$cstArchivedStudents->ResidenceProof->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->ResidenceProof->UploadPath) . ((!empty($cstArchivedStudents->ResidenceProof->ViewValue)) ? $cstArchivedStudents->ResidenceProof->ViewValue : $cstArchivedStudents->ResidenceProof->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->ResidenceProof->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->ResidenceProof->HrefValue);
} else {
$cstArchivedStudents->ResidenceProof->HrefValue = "";
}
$cstArchivedStudents->ResidenceProof->TooltipValue = "";
// SignedAppForm
if (!ew_Empty($cstArchivedStudents->SignedAppForm->Upload->DbValue)) {
$cstArchivedStudents->SignedAppForm->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->SignedAppForm->UploadPath) . ((!empty($cstArchivedStudents->SignedAppForm->ViewValue)) ? $cstArchivedStudents->SignedAppForm->ViewValue : $cstArchivedStudents->SignedAppForm->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->SignedAppForm->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->SignedAppForm->HrefValue);
} else {
$cstArchivedStudents->SignedAppForm->HrefValue = "";
}
$cstArchivedStudents->SignedAppForm->TooltipValue = "";
// Photograph
if (!ew_Empty($cstArchivedStudents->Photograph->Upload->DbValue)) {
$cstArchivedStudents->Photograph->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->Photograph->UploadPath) . ((!empty($cstArchivedStudents->Photograph->ViewValue)) ? $cstArchivedStudents->Photograph->ViewValue : $cstArchivedStudents->Photograph->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->Photograph->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->Photograph->HrefValue);
} else {
$cstArchivedStudents->Photograph->HrefValue = "";
}
$cstArchivedStudents->Photograph->TooltipValue = "";
// StudentNumber
$cstArchivedStudents->StudentNumber->HrefValue = "";
$cstArchivedStudents->StudentNumber->TooltipValue = "";
// WebUsername
$cstArchivedStudents->WebUsername->HrefValue = "";
$cstArchivedStudents->WebUsername->TooltipValue = "";
// WebPassword
$cstArchivedStudents->WebPassword->HrefValue = "";
$cstArchivedStudents->WebPassword->TooltipValue = "";
// BlockAccess
$cstArchivedStudents->BlockAccess->HrefValue = "";
$cstArchivedStudents->BlockAccess->TooltipValue = "";
} elseif ($cstArchivedStudents->RowType == EW_ROWTYPE_EDIT) { // Edit row
// Archived
$cstArchivedStudents->Archived->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$cstArchivedStudents->Archived->EditValue = $arwrk;
// CCMStudentID
$cstArchivedStudents->CCMStudentID->EditCustomAttributes = "";
// SelectionCategory
$cstArchivedStudents->SelectionCategory->EditCustomAttributes = "";
$cstArchivedStudents->SelectionCategory->EditValue = ew_HtmlEncode($cstArchivedStudents->SelectionCategory->CurrentValue);
// Title
$cstArchivedStudents->Title->EditCustomAttributes = "";
$cstArchivedStudents->Title->EditValue = ew_HtmlEncode($cstArchivedStudents->Title->CurrentValue);
// Initials
$cstArchivedStudents->Initials->EditCustomAttributes = "";
$cstArchivedStudents->Initials->EditValue = ew_HtmlEncode($cstArchivedStudents->Initials->CurrentValue);
// FirstName
$cstArchivedStudents->FirstName->EditCustomAttributes = "";
$cstArchivedStudents->FirstName->EditValue = ew_HtmlEncode($cstArchivedStudents->FirstName->CurrentValue);
// Surname
$cstArchivedStudents->Surname->EditCustomAttributes = "";
$cstArchivedStudents->Surname->EditValue = ew_HtmlEncode($cstArchivedStudents->Surname->CurrentValue);
// KnownAs
$cstArchivedStudents->KnownAs->EditCustomAttributes = "";
$cstArchivedStudents->KnownAs->EditValue = ew_HtmlEncode($cstArchivedStudents->KnownAs->CurrentValue);
// IDNumber
$cstArchivedStudents->IDNumber->EditCustomAttributes = "";
$cstArchivedStudents->IDNumber->EditValue = ew_HtmlEncode($cstArchivedStudents->IDNumber->CurrentValue);
// Telephone
$cstArchivedStudents->Telephone->EditCustomAttributes = "";
$cstArchivedStudents->Telephone->EditValue = ew_HtmlEncode($cstArchivedStudents->Telephone->CurrentValue);
// Cellphone
$cstArchivedStudents->Cellphone->EditCustomAttributes = "";
$cstArchivedStudents->Cellphone->EditValue = ew_HtmlEncode($cstArchivedStudents->Cellphone->CurrentValue);
// EmailAddress
$cstArchivedStudents->EmailAddress->EditCustomAttributes = "";
$cstArchivedStudents->EmailAddress->EditValue = ew_HtmlEncode($cstArchivedStudents->EmailAddress->CurrentValue);
// WorkAddress
$cstArchivedStudents->WorkAddress->EditCustomAttributes = "";
$cstArchivedStudents->WorkAddress->EditValue = ew_HtmlEncode($cstArchivedStudents->WorkAddress->CurrentValue);
// PostalAddress
$cstArchivedStudents->PostalAddress->EditCustomAttributes = "";
$cstArchivedStudents->PostalAddress->EditValue = ew_HtmlEncode($cstArchivedStudents->PostalAddress->CurrentValue);
// Department
$cstArchivedStudents->Department->EditCustomAttributes = "";
$cstArchivedStudents->Department->EditValue = ew_HtmlEncode($cstArchivedStudents->Department->CurrentValue);
// Organisation
$cstArchivedStudents->Organisation->EditCustomAttributes = "";
$cstArchivedStudents->Organisation->EditValue = ew_HtmlEncode($cstArchivedStudents->Organisation->CurrentValue);
// VATNo
$cstArchivedStudents->VATNo->EditCustomAttributes = "";
$cstArchivedStudents->VATNo->EditValue = ew_HtmlEncode($cstArchivedStudents->VATNo->CurrentValue);
// JobTitle
$cstArchivedStudents->JobTitle->EditCustomAttributes = "";
$cstArchivedStudents->JobTitle->EditValue = ew_HtmlEncode($cstArchivedStudents->JobTitle->CurrentValue);
// DateofBirth
$cstArchivedStudents->DateofBirth->EditCustomAttributes = "";
$cstArchivedStudents->DateofBirth->EditValue = ew_HtmlEncode(ew_FormatDateTime($cstArchivedStudents->DateofBirth->CurrentValue, 5));
// PlaceofBirth
$cstArchivedStudents->PlaceofBirth->EditCustomAttributes = "";
$cstArchivedStudents->PlaceofBirth->EditValue = ew_HtmlEncode($cstArchivedStudents->PlaceofBirth->CurrentValue);
// CountryofBirth
$cstArchivedStudents->CountryofBirth->EditCustomAttributes = "";
$cstArchivedStudents->CountryofBirth->EditValue = ew_HtmlEncode($cstArchivedStudents->CountryofBirth->CurrentValue);
// Province
$cstArchivedStudents->Province->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `LookupValue`, `LookupValue`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `Lookups`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "LookupName='Province'" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `LookupValue`";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
$cstArchivedStudents->Province->EditValue = $arwrk;
// MaleorFemale
$cstArchivedStudents->MaleorFemale->EditCustomAttributes = "";
$cstArchivedStudents->MaleorFemale->EditValue = ew_HtmlEncode($cstArchivedStudents->MaleorFemale->CurrentValue);
// RaceGroup
$cstArchivedStudents->RaceGroup->EditCustomAttributes = "";
$cstArchivedStudents->RaceGroup->EditValue = ew_HtmlEncode($cstArchivedStudents->RaceGroup->CurrentValue);
// Disability
$cstArchivedStudents->Disability->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("y", "Yes");
$arwrk[] = array("n", "No");
$cstArchivedStudents->Disability->EditValue = $arwrk;
// DisabilityNature
$cstArchivedStudents->DisabilityNature->EditCustomAttributes = "";
$cstArchivedStudents->DisabilityNature->EditValue = ew_HtmlEncode($cstArchivedStudents->DisabilityNature->CurrentValue);
// DisabilityCertificate
$cstArchivedStudents->DisabilityCertificate->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->DisabilityCertificate->Upload->DbValue)) {
$cstArchivedStudents->DisabilityCertificate->EditValue = $cstArchivedStudents->DisabilityCertificate->Upload->DbValue;
} else {
$cstArchivedStudents->DisabilityCertificate->EditValue = "";
}
// ProfessionalCouncil
$cstArchivedStudents->ProfessionalCouncil->EditCustomAttributes = "";
$cstArchivedStudents->ProfessionalCouncil->EditValue = ew_HtmlEncode($cstArchivedStudents->ProfessionalCouncil->CurrentValue);
// CategoryReg
$cstArchivedStudents->CategoryReg->EditCustomAttributes = "";
$cstArchivedStudents->CategoryReg->EditValue = ew_HtmlEncode($cstArchivedStudents->CategoryReg->CurrentValue);
// CouncilRegNumber
$cstArchivedStudents->CouncilRegNumber->EditCustomAttributes = "";
$cstArchivedStudents->CouncilRegNumber->EditValue = ew_HtmlEncode($cstArchivedStudents->CouncilRegNumber->CurrentValue);
// LengthCandidateReg
$cstArchivedStudents->LengthCandidateReg->EditCustomAttributes = "";
$cstArchivedStudents->LengthCandidateReg->EditValue = ew_HtmlEncode($cstArchivedStudents->LengthCandidateReg->CurrentValue);
// YearsToProfReg
$cstArchivedStudents->YearsToProfReg->EditCustomAttributes = "";
$cstArchivedStudents->YearsToProfReg->EditValue = ew_HtmlEncode($cstArchivedStudents->YearsToProfReg->CurrentValue);
// FirstJobStart
$cstArchivedStudents->FirstJobStart->EditCustomAttributes = "";
$cstArchivedStudents->FirstJobStart->EditValue = ew_HtmlEncode($cstArchivedStudents->FirstJobStart->CurrentValue);
// VolAssociations
$cstArchivedStudents->VolAssociations->EditCustomAttributes = "";
$cstArchivedStudents->VolAssociations->EditValue = ew_HtmlEncode($cstArchivedStudents->VolAssociations->CurrentValue);
// BelongsTo
$cstArchivedStudents->BelongsTo->EditCustomAttributes = "";
$cstArchivedStudents->BelongsTo->EditValue = ew_HtmlEncode($cstArchivedStudents->BelongsTo->CurrentValue);
// CESA_SABTACO_MemNum
$cstArchivedStudents->CESA_SABTACO_MemNum->EditCustomAttributes = "";
$cstArchivedStudents->CESA_SABTACO_MemNum->EditValue = ew_HtmlEncode($cstArchivedStudents->CESA_SABTACO_MemNum->CurrentValue);
// AreaDiscipline
$cstArchivedStudents->AreaDiscipline->EditCustomAttributes = "";
$cstArchivedStudents->AreaDiscipline->EditValue = ew_HtmlEncode($cstArchivedStudents->AreaDiscipline->CurrentValue);
// AreaSubDiscipline
$cstArchivedStudents->AreaSubDiscipline->EditCustomAttributes = "";
$cstArchivedStudents->AreaSubDiscipline->EditValue = ew_HtmlEncode($cstArchivedStudents->AreaSubDiscipline->CurrentValue);
// Salary
$cstArchivedStudents->Salary->EditCustomAttributes = "";
$cstArchivedStudents->Salary->EditValue = ew_HtmlEncode($cstArchivedStudents->Salary->CurrentValue);
// Payslip
$cstArchivedStudents->Payslip->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->Payslip->Upload->DbValue)) {
$cstArchivedStudents->Payslip->EditValue = $cstArchivedStudents->Payslip->Upload->DbValue;
} else {
$cstArchivedStudents->Payslip->EditValue = "";
}
// BankAccountName
$cstArchivedStudents->BankAccountName->EditCustomAttributes = "";
$cstArchivedStudents->BankAccountName->EditValue = ew_HtmlEncode($cstArchivedStudents->BankAccountName->CurrentValue);
// BankAccountBank
$cstArchivedStudents->BankAccountBank->EditCustomAttributes = "";
$cstArchivedStudents->BankAccountBank->EditValue = ew_HtmlEncode($cstArchivedStudents->BankAccountBank->CurrentValue);
// BankAccountBranch
$cstArchivedStudents->BankAccountBranch->EditCustomAttributes = "";
$cstArchivedStudents->BankAccountBranch->EditValue = ew_HtmlEncode($cstArchivedStudents->BankAccountBranch->CurrentValue);
// BankAccountNo
$cstArchivedStudents->BankAccountNo->EditCustomAttributes = "";
$cstArchivedStudents->BankAccountNo->EditValue = ew_HtmlEncode($cstArchivedStudents->BankAccountNo->CurrentValue);
// BankAccountProof
$cstArchivedStudents->BankAccountProof->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->BankAccountProof->Upload->DbValue)) {
$cstArchivedStudents->BankAccountProof->EditValue = $cstArchivedStudents->BankAccountProof->Upload->DbValue;
} else {
$cstArchivedStudents->BankAccountProof->EditValue = "";
}
// Funding
$cstArchivedStudents->Funding->EditCustomAttributes = "";
$cstArchivedStudents->Funding->EditValue = ew_HtmlEncode($cstArchivedStudents->Funding->CurrentValue);
// CWDTP
$cstArchivedStudents->CWDTP->EditCustomAttributes = "";
$cstArchivedStudents->CWDTP->EditValue = ew_HtmlEncode($cstArchivedStudents->CWDTP->CurrentValue);
// BookedByName
$cstArchivedStudents->BookedByName->EditCustomAttributes = "";
$cstArchivedStudents->BookedByName->EditValue = ew_HtmlEncode($cstArchivedStudents->BookedByName->CurrentValue);
// BookedByDesignation
$cstArchivedStudents->BookedByDesignation->EditCustomAttributes = "";
$cstArchivedStudents->BookedByDesignation->EditValue = ew_HtmlEncode($cstArchivedStudents->BookedByDesignation->CurrentValue);
// BookedByTelNo
$cstArchivedStudents->BookedByTelNo->EditCustomAttributes = "";
$cstArchivedStudents->BookedByTelNo->EditValue = ew_HtmlEncode($cstArchivedStudents->BookedByTelNo->CurrentValue);
// BookedByFaxNo
$cstArchivedStudents->BookedByFaxNo->EditCustomAttributes = "";
$cstArchivedStudents->BookedByFaxNo->EditValue = ew_HtmlEncode($cstArchivedStudents->BookedByFaxNo->CurrentValue);
// BookedByCellNo
$cstArchivedStudents->BookedByCellNo->EditCustomAttributes = "";
$cstArchivedStudents->BookedByCellNo->EditValue = ew_HtmlEncode($cstArchivedStudents->BookedByCellNo->CurrentValue);
// BookedByEmail
$cstArchivedStudents->BookedByEmail->EditCustomAttributes = "";
$cstArchivedStudents->BookedByEmail->EditValue = ew_HtmlEncode($cstArchivedStudents->BookedByEmail->CurrentValue);
// MentorID
$cstArchivedStudents->MentorID->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `CCMMentorID`, `Surname`, `FirstName`, '' AS SelectFilterFld FROM `CCMMentors`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FirstName`";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), ""));
$cstArchivedStudents->MentorID->EditValue = $arwrk;
// EmployerID
$cstArchivedStudents->EmployerID->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `CCMEmployerID`, `Organisation`, `Surname`, '' AS SelectFilterFld FROM `CCMEmployers`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `Organisation`";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), ""));
$cstArchivedStudents->EmployerID->EditValue = $arwrk;
// HRManagerName
$cstArchivedStudents->HRManagerName->EditCustomAttributes = "";
$cstArchivedStudents->HRManagerName->EditValue = ew_HtmlEncode($cstArchivedStudents->HRManagerName->CurrentValue);
// HRManagerDesignation
$cstArchivedStudents->HRManagerDesignation->EditCustomAttributes = "";
$cstArchivedStudents->HRManagerDesignation->EditValue = ew_HtmlEncode($cstArchivedStudents->HRManagerDesignation->CurrentValue);
// HRManagerTelNo
$cstArchivedStudents->HRManagerTelNo->EditCustomAttributes = "";
$cstArchivedStudents->HRManagerTelNo->EditValue = ew_HtmlEncode($cstArchivedStudents->HRManagerTelNo->CurrentValue);
// HRManagerCellNo
$cstArchivedStudents->HRManagerCellNo->EditCustomAttributes = "";
$cstArchivedStudents->HRManagerCellNo->EditValue = ew_HtmlEncode($cstArchivedStudents->HRManagerCellNo->CurrentValue);
// HRManagerEmail
$cstArchivedStudents->HRManagerEmail->EditCustomAttributes = "";
$cstArchivedStudents->HRManagerEmail->EditValue = ew_HtmlEncode($cstArchivedStudents->HRManagerEmail->CurrentValue);
// SupervisorName
$cstArchivedStudents->SupervisorName->EditCustomAttributes = "";
$cstArchivedStudents->SupervisorName->EditValue = ew_HtmlEncode($cstArchivedStudents->SupervisorName->CurrentValue);
// SupervisorDesig
$cstArchivedStudents->SupervisorDesig->EditCustomAttributes = "";
$cstArchivedStudents->SupervisorDesig->EditValue = ew_HtmlEncode($cstArchivedStudents->SupervisorDesig->CurrentValue);
// SupervisorProfRegNo
$cstArchivedStudents->SupervisorProfRegNo->EditCustomAttributes = "";
$cstArchivedStudents->SupervisorProfRegNo->EditValue = ew_HtmlEncode($cstArchivedStudents->SupervisorProfRegNo->CurrentValue);
// SupervisorTelNo
$cstArchivedStudents->SupervisorTelNo->EditCustomAttributes = "";
$cstArchivedStudents->SupervisorTelNo->EditValue = ew_HtmlEncode($cstArchivedStudents->SupervisorTelNo->CurrentValue);
// SupervisorCellNo
$cstArchivedStudents->SupervisorCellNo->EditCustomAttributes = "";
$cstArchivedStudents->SupervisorCellNo->EditValue = ew_HtmlEncode($cstArchivedStudents->SupervisorCellNo->CurrentValue);
// SupervisorEmail
$cstArchivedStudents->SupervisorEmail->EditCustomAttributes = "";
$cstArchivedStudents->SupervisorEmail->EditValue = ew_HtmlEncode($cstArchivedStudents->SupervisorEmail->CurrentValue);
// EducationalInst
$cstArchivedStudents->EducationalInst->EditCustomAttributes = "";
$cstArchivedStudents->EducationalInst->EditValue = ew_HtmlEncode($cstArchivedStudents->EducationalInst->CurrentValue);
// Qualifications
$cstArchivedStudents->Qualifications->EditCustomAttributes = "";
$cstArchivedStudents->Qualifications->EditValue = ew_HtmlEncode($cstArchivedStudents->Qualifications->CurrentValue);
// DateFinalExam
$cstArchivedStudents->DateFinalExam->EditCustomAttributes = "";
$cstArchivedStudents->DateFinalExam->EditValue = ew_HtmlEncode($cstArchivedStudents->DateFinalExam->CurrentValue);
// IDFile
$cstArchivedStudents->IDFile->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->IDFile->Upload->DbValue)) {
$cstArchivedStudents->IDFile->EditValue = $cstArchivedStudents->IDFile->Upload->DbValue;
} else {
$cstArchivedStudents->IDFile->EditValue = "";
}
// CVFile
$cstArchivedStudents->CVFile->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->CVFile->Upload->DbValue)) {
$cstArchivedStudents->CVFile->EditValue = $cstArchivedStudents->CVFile->Upload->DbValue;
} else {
$cstArchivedStudents->CVFile->EditValue = "";
}
// QualCertificate1
$cstArchivedStudents->QualCertificate1->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate1->EditValue = $cstArchivedStudents->QualCertificate1->Upload->DbValue;
} else {
$cstArchivedStudents->QualCertificate1->EditValue = "";
}
// QualCertificate2
$cstArchivedStudents->QualCertificate2->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate2->EditValue = $cstArchivedStudents->QualCertificate2->Upload->DbValue;
} else {
$cstArchivedStudents->QualCertificate2->EditValue = "";
}
// QualCertificate3
$cstArchivedStudents->QualCertificate3->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate3->EditValue = $cstArchivedStudents->QualCertificate3->Upload->DbValue;
} else {
$cstArchivedStudents->QualCertificate3->EditValue = "";
}
// MentorUndertaking
$cstArchivedStudents->MentorUndertaking->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->MentorUndertaking->Upload->DbValue)) {
$cstArchivedStudents->MentorUndertaking->EditValue = $cstArchivedStudents->MentorUndertaking->Upload->DbValue;
} else {
$cstArchivedStudents->MentorUndertaking->EditValue = "";
}
// CandUUndertaking
$cstArchivedStudents->CandUUndertaking->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->CandUUndertaking->Upload->DbValue)) {
$cstArchivedStudents->CandUUndertaking->EditValue = $cstArchivedStudents->CandUUndertaking->Upload->DbValue;
} else {
$cstArchivedStudents->CandUUndertaking->EditValue = "";
}
// CompanyCandidatePolicy
$cstArchivedStudents->CompanyCandidatePolicy->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue)) {
$cstArchivedStudents->CompanyCandidatePolicy->EditValue = $cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue;
} else {
$cstArchivedStudents->CompanyCandidatePolicy->EditValue = "";
}
// ResidenceProof
$cstArchivedStudents->ResidenceProof->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->ResidenceProof->Upload->DbValue)) {
$cstArchivedStudents->ResidenceProof->EditValue = $cstArchivedStudents->ResidenceProof->Upload->DbValue;
} else {
$cstArchivedStudents->ResidenceProof->EditValue = "";
}
// SignedAppForm
$cstArchivedStudents->SignedAppForm->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->SignedAppForm->Upload->DbValue)) {
$cstArchivedStudents->SignedAppForm->EditValue = $cstArchivedStudents->SignedAppForm->Upload->DbValue;
} else {
$cstArchivedStudents->SignedAppForm->EditValue = "";
}
// Photograph
$cstArchivedStudents->Photograph->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents->Photograph->Upload->DbValue)) {
$cstArchivedStudents->Photograph->EditValue = $cstArchivedStudents->Photograph->Upload->DbValue;
} else {
$cstArchivedStudents->Photograph->EditValue = "";
}
// StudentNumber
$cstArchivedStudents->StudentNumber->EditCustomAttributes = "";
$cstArchivedStudents->StudentNumber->EditValue = ew_HtmlEncode($cstArchivedStudents->StudentNumber->CurrentValue);
// WebUsername
$cstArchivedStudents->WebUsername->EditCustomAttributes = "";
$cstArchivedStudents->WebUsername->EditValue = ew_HtmlEncode($cstArchivedStudents->WebUsername->CurrentValue);
// WebPassword
$cstArchivedStudents->WebPassword->EditCustomAttributes = "";
$cstArchivedStudents->WebPassword->EditValue = ew_HtmlEncode($cstArchivedStudents->WebPassword->CurrentValue);
// BlockAccess
$cstArchivedStudents->BlockAccess->EditCustomAttributes = "";
$cstArchivedStudents->BlockAccess->EditValue = ew_HtmlEncode($cstArchivedStudents->BlockAccess->CurrentValue);
// Edit refer script
// Archived
$cstArchivedStudents->Archived->HrefValue = "";
// CCMStudentID
$cstArchivedStudents->CCMStudentID->HrefValue = "";
// SelectionCategory
$cstArchivedStudents->SelectionCategory->HrefValue = "";
// Title
$cstArchivedStudents->Title->HrefValue = "";
// Initials
$cstArchivedStudents->Initials->HrefValue = "";
// FirstName
$cstArchivedStudents->FirstName->HrefValue = "";
// Surname
$cstArchivedStudents->Surname->HrefValue = "";
// KnownAs
$cstArchivedStudents->KnownAs->HrefValue = "";
// IDNumber
$cstArchivedStudents->IDNumber->HrefValue = "";
// Telephone
$cstArchivedStudents->Telephone->HrefValue = "";
// Cellphone
$cstArchivedStudents->Cellphone->HrefValue = "";
// EmailAddress
$cstArchivedStudents->EmailAddress->HrefValue = "";
// WorkAddress
$cstArchivedStudents->WorkAddress->HrefValue = "";
// PostalAddress
$cstArchivedStudents->PostalAddress->HrefValue = "";
// Department
$cstArchivedStudents->Department->HrefValue = "";
// Organisation
$cstArchivedStudents->Organisation->HrefValue = "";
// VATNo
$cstArchivedStudents->VATNo->HrefValue = "";
// JobTitle
$cstArchivedStudents->JobTitle->HrefValue = "";
// DateofBirth
$cstArchivedStudents->DateofBirth->HrefValue = "";
// PlaceofBirth
$cstArchivedStudents->PlaceofBirth->HrefValue = "";
// CountryofBirth
$cstArchivedStudents->CountryofBirth->HrefValue = "";
// Province
$cstArchivedStudents->Province->HrefValue = "";
// MaleorFemale
$cstArchivedStudents->MaleorFemale->HrefValue = "";
// RaceGroup
$cstArchivedStudents->RaceGroup->HrefValue = "";
// Disability
$cstArchivedStudents->Disability->HrefValue = "";
// DisabilityNature
$cstArchivedStudents->DisabilityNature->HrefValue = "";
// DisabilityCertificate
if (!ew_Empty($cstArchivedStudents->DisabilityCertificate->Upload->DbValue)) {
$cstArchivedStudents->DisabilityCertificate->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->DisabilityCertificate->UploadPath) . ((!empty($cstArchivedStudents->DisabilityCertificate->EditValue)) ? $cstArchivedStudents->DisabilityCertificate->EditValue : $cstArchivedStudents->DisabilityCertificate->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->DisabilityCertificate->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->DisabilityCertificate->HrefValue);
} else {
$cstArchivedStudents->DisabilityCertificate->HrefValue = "";
}
// ProfessionalCouncil
$cstArchivedStudents->ProfessionalCouncil->HrefValue = "";
// CategoryReg
$cstArchivedStudents->CategoryReg->HrefValue = "";
// CouncilRegNumber
$cstArchivedStudents->CouncilRegNumber->HrefValue = "";
// LengthCandidateReg
$cstArchivedStudents->LengthCandidateReg->HrefValue = "";
// YearsToProfReg
$cstArchivedStudents->YearsToProfReg->HrefValue = "";
// FirstJobStart
$cstArchivedStudents->FirstJobStart->HrefValue = "";
// VolAssociations
$cstArchivedStudents->VolAssociations->HrefValue = "";
// BelongsTo
$cstArchivedStudents->BelongsTo->HrefValue = "";
// CESA_SABTACO_MemNum
$cstArchivedStudents->CESA_SABTACO_MemNum->HrefValue = "";
// AreaDiscipline
$cstArchivedStudents->AreaDiscipline->HrefValue = "";
// AreaSubDiscipline
$cstArchivedStudents->AreaSubDiscipline->HrefValue = "";
// Salary
$cstArchivedStudents->Salary->HrefValue = "";
// Payslip
if (!ew_Empty($cstArchivedStudents->Payslip->Upload->DbValue)) {
$cstArchivedStudents->Payslip->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->Payslip->UploadPath) . ((!empty($cstArchivedStudents->Payslip->EditValue)) ? $cstArchivedStudents->Payslip->EditValue : $cstArchivedStudents->Payslip->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->Payslip->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->Payslip->HrefValue);
} else {
$cstArchivedStudents->Payslip->HrefValue = "";
}
// BankAccountName
$cstArchivedStudents->BankAccountName->HrefValue = "";
// BankAccountBank
$cstArchivedStudents->BankAccountBank->HrefValue = "";
// BankAccountBranch
$cstArchivedStudents->BankAccountBranch->HrefValue = "";
// BankAccountNo
$cstArchivedStudents->BankAccountNo->HrefValue = "";
// BankAccountProof
if (!ew_Empty($cstArchivedStudents->BankAccountProof->Upload->DbValue)) {
$cstArchivedStudents->BankAccountProof->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->BankAccountProof->UploadPath) . ((!empty($cstArchivedStudents->BankAccountProof->EditValue)) ? $cstArchivedStudents->BankAccountProof->EditValue : $cstArchivedStudents->BankAccountProof->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->BankAccountProof->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->BankAccountProof->HrefValue);
} else {
$cstArchivedStudents->BankAccountProof->HrefValue = "";
}
// Funding
$cstArchivedStudents->Funding->HrefValue = "";
// CWDTP
$cstArchivedStudents->CWDTP->HrefValue = "";
// BookedByName
$cstArchivedStudents->BookedByName->HrefValue = "";
// BookedByDesignation
$cstArchivedStudents->BookedByDesignation->HrefValue = "";
// BookedByTelNo
$cstArchivedStudents->BookedByTelNo->HrefValue = "";
// BookedByFaxNo
$cstArchivedStudents->BookedByFaxNo->HrefValue = "";
// BookedByCellNo
$cstArchivedStudents->BookedByCellNo->HrefValue = "";
// BookedByEmail
$cstArchivedStudents->BookedByEmail->HrefValue = "";
// MentorID
$cstArchivedStudents->MentorID->HrefValue = "";
// EmployerID
$cstArchivedStudents->EmployerID->HrefValue = "";
// HRManagerName
$cstArchivedStudents->HRManagerName->HrefValue = "";
// HRManagerDesignation
$cstArchivedStudents->HRManagerDesignation->HrefValue = "";
// HRManagerTelNo
$cstArchivedStudents->HRManagerTelNo->HrefValue = "";
// HRManagerCellNo
$cstArchivedStudents->HRManagerCellNo->HrefValue = "";
// HRManagerEmail
$cstArchivedStudents->HRManagerEmail->HrefValue = "";
// SupervisorName
$cstArchivedStudents->SupervisorName->HrefValue = "";
// SupervisorDesig
$cstArchivedStudents->SupervisorDesig->HrefValue = "";
// SupervisorProfRegNo
$cstArchivedStudents->SupervisorProfRegNo->HrefValue = "";
// SupervisorTelNo
$cstArchivedStudents->SupervisorTelNo->HrefValue = "";
// SupervisorCellNo
$cstArchivedStudents->SupervisorCellNo->HrefValue = "";
// SupervisorEmail
$cstArchivedStudents->SupervisorEmail->HrefValue = "";
// EducationalInst
$cstArchivedStudents->EducationalInst->HrefValue = "";
// Qualifications
$cstArchivedStudents->Qualifications->HrefValue = "";
// DateFinalExam
$cstArchivedStudents->DateFinalExam->HrefValue = "";
// IDFile
if (!ew_Empty($cstArchivedStudents->IDFile->Upload->DbValue)) {
$cstArchivedStudents->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->IDFile->UploadPath) . ((!empty($cstArchivedStudents->IDFile->EditValue)) ? $cstArchivedStudents->IDFile->EditValue : $cstArchivedStudents->IDFile->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->IDFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->IDFile->HrefValue);
} else {
$cstArchivedStudents->IDFile->HrefValue = "";
}
// CVFile
if (!ew_Empty($cstArchivedStudents->CVFile->Upload->DbValue)) {
$cstArchivedStudents->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->CVFile->UploadPath) . ((!empty($cstArchivedStudents->CVFile->EditValue)) ? $cstArchivedStudents->CVFile->EditValue : $cstArchivedStudents->CVFile->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->CVFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->CVFile->HrefValue);
} else {
$cstArchivedStudents->CVFile->HrefValue = "";
}
// QualCertificate1
if (!ew_Empty($cstArchivedStudents->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->QualCertificate1->UploadPath) . ((!empty($cstArchivedStudents->QualCertificate1->EditValue)) ? $cstArchivedStudents->QualCertificate1->EditValue : $cstArchivedStudents->QualCertificate1->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->QualCertificate1->HrefValue);
} else {
$cstArchivedStudents->QualCertificate1->HrefValue = "";
}
// QualCertificate2
if (!ew_Empty($cstArchivedStudents->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->QualCertificate2->UploadPath) . ((!empty($cstArchivedStudents->QualCertificate2->EditValue)) ? $cstArchivedStudents->QualCertificate2->EditValue : $cstArchivedStudents->QualCertificate2->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->QualCertificate2->HrefValue);
} else {
$cstArchivedStudents->QualCertificate2->HrefValue = "";
}
// QualCertificate3
if (!ew_Empty($cstArchivedStudents->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->QualCertificate3->UploadPath) . ((!empty($cstArchivedStudents->QualCertificate3->EditValue)) ? $cstArchivedStudents->QualCertificate3->EditValue : $cstArchivedStudents->QualCertificate3->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->QualCertificate3->HrefValue);
} else {
$cstArchivedStudents->QualCertificate3->HrefValue = "";
}
// MentorUndertaking
if (!ew_Empty($cstArchivedStudents->MentorUndertaking->Upload->DbValue)) {
$cstArchivedStudents->MentorUndertaking->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->MentorUndertaking->UploadPath) . ((!empty($cstArchivedStudents->MentorUndertaking->EditValue)) ? $cstArchivedStudents->MentorUndertaking->EditValue : $cstArchivedStudents->MentorUndertaking->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->MentorUndertaking->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->MentorUndertaking->HrefValue);
} else {
$cstArchivedStudents->MentorUndertaking->HrefValue = "";
}
// CandUUndertaking
if (!ew_Empty($cstArchivedStudents->CandUUndertaking->Upload->DbValue)) {
$cstArchivedStudents->CandUUndertaking->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->CandUUndertaking->UploadPath) . ((!empty($cstArchivedStudents->CandUUndertaking->EditValue)) ? $cstArchivedStudents->CandUUndertaking->EditValue : $cstArchivedStudents->CandUUndertaking->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->CandUUndertaking->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->CandUUndertaking->HrefValue);
} else {
$cstArchivedStudents->CandUUndertaking->HrefValue = "";
}
// CompanyCandidatePolicy
if (!ew_Empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue)) {
$cstArchivedStudents->CompanyCandidatePolicy->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->CompanyCandidatePolicy->UploadPath) . ((!empty($cstArchivedStudents->CompanyCandidatePolicy->EditValue)) ? $cstArchivedStudents->CompanyCandidatePolicy->EditValue : $cstArchivedStudents->CompanyCandidatePolicy->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->CompanyCandidatePolicy->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->CompanyCandidatePolicy->HrefValue);
} else {
$cstArchivedStudents->CompanyCandidatePolicy->HrefValue = "";
}
// ResidenceProof
if (!ew_Empty($cstArchivedStudents->ResidenceProof->Upload->DbValue)) {
$cstArchivedStudents->ResidenceProof->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->ResidenceProof->UploadPath) . ((!empty($cstArchivedStudents->ResidenceProof->EditValue)) ? $cstArchivedStudents->ResidenceProof->EditValue : $cstArchivedStudents->ResidenceProof->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->ResidenceProof->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->ResidenceProof->HrefValue);
} else {
$cstArchivedStudents->ResidenceProof->HrefValue = "";
}
// SignedAppForm
if (!ew_Empty($cstArchivedStudents->SignedAppForm->Upload->DbValue)) {
$cstArchivedStudents->SignedAppForm->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->SignedAppForm->UploadPath) . ((!empty($cstArchivedStudents->SignedAppForm->EditValue)) ? $cstArchivedStudents->SignedAppForm->EditValue : $cstArchivedStudents->SignedAppForm->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->SignedAppForm->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->SignedAppForm->HrefValue);
} else {
$cstArchivedStudents->SignedAppForm->HrefValue = "";
}
// Photograph
if (!ew_Empty($cstArchivedStudents->Photograph->Upload->DbValue)) {
$cstArchivedStudents->Photograph->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents->Photograph->UploadPath) . ((!empty($cstArchivedStudents->Photograph->EditValue)) ? $cstArchivedStudents->Photograph->EditValue : $cstArchivedStudents->Photograph->CurrentValue);
if ($cstArchivedStudents->Export <> "") $cstArchivedStudents->Photograph->HrefValue = ew_ConvertFullUrl($cstArchivedStudents->Photograph->HrefValue);
} else {
$cstArchivedStudents->Photograph->HrefValue = "";
}
// StudentNumber
$cstArchivedStudents->StudentNumber->HrefValue = "";
// WebUsername
$cstArchivedStudents->WebUsername->HrefValue = "";
// WebPassword
$cstArchivedStudents->WebPassword->HrefValue = "";
// BlockAccess
$cstArchivedStudents->BlockAccess->HrefValue = "";
}
// Call Row Rendered event
if ($cstArchivedStudents->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$cstArchivedStudents->Row_Rendered();
}
// Validate form
function ValidateForm() {
global $Language, $gsFormError, $cstArchivedStudents;
// Initialize form error message
$gsFormError = "";
if (!ew_CheckFileType($cstArchivedStudents->DisabilityCertificate->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->DisabilityCertificate->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->DisabilityCertificate->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->DisabilityCertificate->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->DisabilityCertificate->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->Payslip->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->Payslip->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->Payslip->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->Payslip->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->Payslip->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->BankAccountProof->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->BankAccountProof->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->BankAccountProof->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->BankAccountProof->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->BankAccountProof->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->IDFile->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->IDFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->IDFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->IDFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->IDFile->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->CVFile->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->CVFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->CVFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->CVFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->CVFile->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->QualCertificate1->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->QualCertificate1->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->QualCertificate1->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->QualCertificate1->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->QualCertificate1->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->QualCertificate2->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->QualCertificate2->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->QualCertificate2->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->QualCertificate2->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->QualCertificate2->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->QualCertificate3->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->QualCertificate3->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->QualCertificate3->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->QualCertificate3->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->QualCertificate3->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->MentorUndertaking->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->MentorUndertaking->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->MentorUndertaking->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->MentorUndertaking->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->MentorUndertaking->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->CandUUndertaking->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->CandUUndertaking->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->CandUUndertaking->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->CandUUndertaking->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->CandUUndertaking->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->CompanyCandidatePolicy->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->CompanyCandidatePolicy->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->CompanyCandidatePolicy->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->CompanyCandidatePolicy->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->CompanyCandidatePolicy->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->ResidenceProof->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->ResidenceProof->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->ResidenceProof->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->ResidenceProof->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->ResidenceProof->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->SignedAppForm->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->SignedAppForm->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->SignedAppForm->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->SignedAppForm->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->SignedAppForm->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents->Photograph->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents->Photograph->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents->Photograph->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents->Photograph->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents->Photograph->Upload->Error);
}
// Check if validation required
if (!EW_SERVER_VALIDATE)
return ($gsFormError == "");
if (!is_null($cstArchivedStudents->FirstName->FormValue) && $cstArchivedStudents->FirstName->FormValue == "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $cstArchivedStudents->FirstName->FldCaption();
}
if (!is_null($cstArchivedStudents->Surname->FormValue) && $cstArchivedStudents->Surname->FormValue == "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $cstArchivedStudents->Surname->FldCaption();
}
if (!ew_CheckDate($cstArchivedStudents->DateofBirth->FormValue)) {
if ($gsFormError <> "") $gsFormError .= "<br>";
$gsFormError .= $cstArchivedStudents->DateofBirth->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, $cstArchivedStudents;
$sFilter = $cstArchivedStudents->KeyFilter();
$cstArchivedStudents->CurrentFilter = $sFilter;
$sSql = $cstArchivedStudents->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();
// Archived
$cstArchivedStudents->Archived->SetDbValueDef($rsnew, $cstArchivedStudents->Archived->CurrentValue, 0, FALSE);
// SelectionCategory
$cstArchivedStudents->SelectionCategory->SetDbValueDef($rsnew, $cstArchivedStudents->SelectionCategory->CurrentValue, NULL, FALSE);
// Title
$cstArchivedStudents->Title->SetDbValueDef($rsnew, $cstArchivedStudents->Title->CurrentValue, NULL, FALSE);
// Initials
$cstArchivedStudents->Initials->SetDbValueDef($rsnew, $cstArchivedStudents->Initials->CurrentValue, NULL, FALSE);
// FirstName
$cstArchivedStudents->FirstName->SetDbValueDef($rsnew, $cstArchivedStudents->FirstName->CurrentValue, "", FALSE);
// Surname
$cstArchivedStudents->Surname->SetDbValueDef($rsnew, $cstArchivedStudents->Surname->CurrentValue, "", FALSE);
// KnownAs
$cstArchivedStudents->KnownAs->SetDbValueDef($rsnew, $cstArchivedStudents->KnownAs->CurrentValue, NULL, FALSE);
// IDNumber
$cstArchivedStudents->IDNumber->SetDbValueDef($rsnew, $cstArchivedStudents->IDNumber->CurrentValue, NULL, FALSE);
// Telephone
$cstArchivedStudents->Telephone->SetDbValueDef($rsnew, $cstArchivedStudents->Telephone->CurrentValue, NULL, FALSE);
// Cellphone
$cstArchivedStudents->Cellphone->SetDbValueDef($rsnew, $cstArchivedStudents->Cellphone->CurrentValue, NULL, FALSE);
// EmailAddress
$cstArchivedStudents->EmailAddress->SetDbValueDef($rsnew, $cstArchivedStudents->EmailAddress->CurrentValue, NULL, FALSE);
// WorkAddress
$cstArchivedStudents->WorkAddress->SetDbValueDef($rsnew, $cstArchivedStudents->WorkAddress->CurrentValue, NULL, FALSE);
// PostalAddress
$cstArchivedStudents->PostalAddress->SetDbValueDef($rsnew, $cstArchivedStudents->PostalAddress->CurrentValue, NULL, FALSE);
// Department
$cstArchivedStudents->Department->SetDbValueDef($rsnew, $cstArchivedStudents->Department->CurrentValue, NULL, FALSE);
// Organisation
$cstArchivedStudents->Organisation->SetDbValueDef($rsnew, $cstArchivedStudents->Organisation->CurrentValue, NULL, FALSE);
// VATNo
$cstArchivedStudents->VATNo->SetDbValueDef($rsnew, $cstArchivedStudents->VATNo->CurrentValue, NULL, FALSE);
// JobTitle
$cstArchivedStudents->JobTitle->SetDbValueDef($rsnew, $cstArchivedStudents->JobTitle->CurrentValue, NULL, FALSE);
// DateofBirth
$cstArchivedStudents->DateofBirth->SetDbValueDef($rsnew, ew_UnFormatDateTime($cstArchivedStudents->DateofBirth->CurrentValue, 5, FALSE), NULL);
// PlaceofBirth
$cstArchivedStudents->PlaceofBirth->SetDbValueDef($rsnew, $cstArchivedStudents->PlaceofBirth->CurrentValue, NULL, FALSE);
// CountryofBirth
$cstArchivedStudents->CountryofBirth->SetDbValueDef($rsnew, $cstArchivedStudents->CountryofBirth->CurrentValue, NULL, FALSE);
// Province
$cstArchivedStudents->Province->SetDbValueDef($rsnew, $cstArchivedStudents->Province->CurrentValue, NULL, FALSE);
// MaleorFemale
$cstArchivedStudents->MaleorFemale->SetDbValueDef($rsnew, $cstArchivedStudents->MaleorFemale->CurrentValue, NULL, FALSE);
// RaceGroup
$cstArchivedStudents->RaceGroup->SetDbValueDef($rsnew, $cstArchivedStudents->RaceGroup->CurrentValue, NULL, FALSE);
// Disability
$cstArchivedStudents->Disability->SetDbValueDef($rsnew, $cstArchivedStudents->Disability->CurrentValue, "", FALSE);
// DisabilityNature
$cstArchivedStudents->DisabilityNature->SetDbValueDef($rsnew, $cstArchivedStudents->DisabilityNature->CurrentValue, NULL, FALSE);
// DisabilityCertificate
$cstArchivedStudents->DisabilityCertificate->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->DisabilityCertificate->Upload->Action == "2" || $cstArchivedStudents->DisabilityCertificate->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->DisabilityCertificate->Upload->DbValue = $rs->fields('DisabilityCertificate'); // Get original value
if (is_null($cstArchivedStudents->DisabilityCertificate->Upload->Value)) {
$rsnew['DisabilityCertificate'] = NULL;
} else {
$rsnew['DisabilityCertificate'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->DisabilityCertificate->UploadPath), $cstArchivedStudents->DisabilityCertificate->Upload->FileName);
}
}
// ProfessionalCouncil
$cstArchivedStudents->ProfessionalCouncil->SetDbValueDef($rsnew, $cstArchivedStudents->ProfessionalCouncil->CurrentValue, NULL, FALSE);
// CategoryReg
$cstArchivedStudents->CategoryReg->SetDbValueDef($rsnew, $cstArchivedStudents->CategoryReg->CurrentValue, NULL, FALSE);
// CouncilRegNumber
$cstArchivedStudents->CouncilRegNumber->SetDbValueDef($rsnew, $cstArchivedStudents->CouncilRegNumber->CurrentValue, NULL, FALSE);
// LengthCandidateReg
$cstArchivedStudents->LengthCandidateReg->SetDbValueDef($rsnew, $cstArchivedStudents->LengthCandidateReg->CurrentValue, NULL, FALSE);
// YearsToProfReg
$cstArchivedStudents->YearsToProfReg->SetDbValueDef($rsnew, $cstArchivedStudents->YearsToProfReg->CurrentValue, NULL, FALSE);
// FirstJobStart
$cstArchivedStudents->FirstJobStart->SetDbValueDef($rsnew, $cstArchivedStudents->FirstJobStart->CurrentValue, NULL, FALSE);
// VolAssociations
$cstArchivedStudents->VolAssociations->SetDbValueDef($rsnew, $cstArchivedStudents->VolAssociations->CurrentValue, NULL, FALSE);
// BelongsTo
$cstArchivedStudents->BelongsTo->SetDbValueDef($rsnew, $cstArchivedStudents->BelongsTo->CurrentValue, NULL, FALSE);
// CESA_SABTACO_MemNum
$cstArchivedStudents->CESA_SABTACO_MemNum->SetDbValueDef($rsnew, $cstArchivedStudents->CESA_SABTACO_MemNum->CurrentValue, NULL, FALSE);
// AreaDiscipline
$cstArchivedStudents->AreaDiscipline->SetDbValueDef($rsnew, $cstArchivedStudents->AreaDiscipline->CurrentValue, NULL, FALSE);
// AreaSubDiscipline
$cstArchivedStudents->AreaSubDiscipline->SetDbValueDef($rsnew, $cstArchivedStudents->AreaSubDiscipline->CurrentValue, NULL, FALSE);
// Salary
$cstArchivedStudents->Salary->SetDbValueDef($rsnew, $cstArchivedStudents->Salary->CurrentValue, NULL, FALSE);
// Payslip
$cstArchivedStudents->Payslip->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->Payslip->Upload->Action == "2" || $cstArchivedStudents->Payslip->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->Payslip->Upload->DbValue = $rs->fields('Payslip'); // Get original value
if (is_null($cstArchivedStudents->Payslip->Upload->Value)) {
$rsnew['Payslip'] = NULL;
} else {
$rsnew['Payslip'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->Payslip->UploadPath), $cstArchivedStudents->Payslip->Upload->FileName);
}
}
// BankAccountName
$cstArchivedStudents->BankAccountName->SetDbValueDef($rsnew, $cstArchivedStudents->BankAccountName->CurrentValue, NULL, FALSE);
// BankAccountBank
$cstArchivedStudents->BankAccountBank->SetDbValueDef($rsnew, $cstArchivedStudents->BankAccountBank->CurrentValue, NULL, FALSE);
// BankAccountBranch
$cstArchivedStudents->BankAccountBranch->SetDbValueDef($rsnew, $cstArchivedStudents->BankAccountBranch->CurrentValue, NULL, FALSE);
// BankAccountNo
$cstArchivedStudents->BankAccountNo->SetDbValueDef($rsnew, $cstArchivedStudents->BankAccountNo->CurrentValue, NULL, FALSE);
// BankAccountProof
$cstArchivedStudents->BankAccountProof->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->BankAccountProof->Upload->Action == "2" || $cstArchivedStudents->BankAccountProof->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->BankAccountProof->Upload->DbValue = $rs->fields('BankAccountProof'); // Get original value
if (is_null($cstArchivedStudents->BankAccountProof->Upload->Value)) {
$rsnew['BankAccountProof'] = NULL;
} else {
$rsnew['BankAccountProof'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->BankAccountProof->UploadPath), $cstArchivedStudents->BankAccountProof->Upload->FileName);
}
}
// Funding
$cstArchivedStudents->Funding->SetDbValueDef($rsnew, $cstArchivedStudents->Funding->CurrentValue, NULL, FALSE);
// CWDTP
$cstArchivedStudents->CWDTP->SetDbValueDef($rsnew, $cstArchivedStudents->CWDTP->CurrentValue, "", FALSE);
// BookedByName
$cstArchivedStudents->BookedByName->SetDbValueDef($rsnew, $cstArchivedStudents->BookedByName->CurrentValue, NULL, FALSE);
// BookedByDesignation
$cstArchivedStudents->BookedByDesignation->SetDbValueDef($rsnew, $cstArchivedStudents->BookedByDesignation->CurrentValue, NULL, FALSE);
// BookedByTelNo
$cstArchivedStudents->BookedByTelNo->SetDbValueDef($rsnew, $cstArchivedStudents->BookedByTelNo->CurrentValue, NULL, FALSE);
// BookedByFaxNo
$cstArchivedStudents->BookedByFaxNo->SetDbValueDef($rsnew, $cstArchivedStudents->BookedByFaxNo->CurrentValue, NULL, FALSE);
// BookedByCellNo
$cstArchivedStudents->BookedByCellNo->SetDbValueDef($rsnew, $cstArchivedStudents->BookedByCellNo->CurrentValue, NULL, FALSE);
// BookedByEmail
$cstArchivedStudents->BookedByEmail->SetDbValueDef($rsnew, $cstArchivedStudents->BookedByEmail->CurrentValue, NULL, FALSE);
// MentorID
$cstArchivedStudents->MentorID->SetDbValueDef($rsnew, $cstArchivedStudents->MentorID->CurrentValue, NULL, FALSE);
// EmployerID
$cstArchivedStudents->EmployerID->SetDbValueDef($rsnew, $cstArchivedStudents->EmployerID->CurrentValue, NULL, FALSE);
// HRManagerName
$cstArchivedStudents->HRManagerName->SetDbValueDef($rsnew, $cstArchivedStudents->HRManagerName->CurrentValue, NULL, FALSE);
// HRManagerDesignation
$cstArchivedStudents->HRManagerDesignation->SetDbValueDef($rsnew, $cstArchivedStudents->HRManagerDesignation->CurrentValue, NULL, FALSE);
// HRManagerTelNo
$cstArchivedStudents->HRManagerTelNo->SetDbValueDef($rsnew, $cstArchivedStudents->HRManagerTelNo->CurrentValue, NULL, FALSE);
// HRManagerCellNo
$cstArchivedStudents->HRManagerCellNo->SetDbValueDef($rsnew, $cstArchivedStudents->HRManagerCellNo->CurrentValue, NULL, FALSE);
// HRManagerEmail
$cstArchivedStudents->HRManagerEmail->SetDbValueDef($rsnew, $cstArchivedStudents->HRManagerEmail->CurrentValue, NULL, FALSE);
// SupervisorName
$cstArchivedStudents->SupervisorName->SetDbValueDef($rsnew, $cstArchivedStudents->SupervisorName->CurrentValue, NULL, FALSE);
// SupervisorDesig
$cstArchivedStudents->SupervisorDesig->SetDbValueDef($rsnew, $cstArchivedStudents->SupervisorDesig->CurrentValue, NULL, FALSE);
// SupervisorProfRegNo
$cstArchivedStudents->SupervisorProfRegNo->SetDbValueDef($rsnew, $cstArchivedStudents->SupervisorProfRegNo->CurrentValue, NULL, FALSE);
// SupervisorTelNo
$cstArchivedStudents->SupervisorTelNo->SetDbValueDef($rsnew, $cstArchivedStudents->SupervisorTelNo->CurrentValue, NULL, FALSE);
// SupervisorCellNo
$cstArchivedStudents->SupervisorCellNo->SetDbValueDef($rsnew, $cstArchivedStudents->SupervisorCellNo->CurrentValue, NULL, FALSE);
// SupervisorEmail
$cstArchivedStudents->SupervisorEmail->SetDbValueDef($rsnew, $cstArchivedStudents->SupervisorEmail->CurrentValue, NULL, FALSE);
// EducationalInst
$cstArchivedStudents->EducationalInst->SetDbValueDef($rsnew, $cstArchivedStudents->EducationalInst->CurrentValue, NULL, FALSE);
// Qualifications
$cstArchivedStudents->Qualifications->SetDbValueDef($rsnew, $cstArchivedStudents->Qualifications->CurrentValue, NULL, FALSE);
// DateFinalExam
$cstArchivedStudents->DateFinalExam->SetDbValueDef($rsnew, $cstArchivedStudents->DateFinalExam->CurrentValue, NULL, FALSE);
// IDFile
$cstArchivedStudents->IDFile->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->IDFile->Upload->Action == "2" || $cstArchivedStudents->IDFile->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->IDFile->Upload->DbValue = $rs->fields('IDFile'); // Get original value
if (is_null($cstArchivedStudents->IDFile->Upload->Value)) {
$rsnew['IDFile'] = NULL;
} else {
$rsnew['IDFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->IDFile->UploadPath), $cstArchivedStudents->IDFile->Upload->FileName);
}
}
// CVFile
$cstArchivedStudents->CVFile->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->CVFile->Upload->Action == "2" || $cstArchivedStudents->CVFile->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->CVFile->Upload->DbValue = $rs->fields('CVFile'); // Get original value
if (is_null($cstArchivedStudents->CVFile->Upload->Value)) {
$rsnew['CVFile'] = NULL;
} else {
$rsnew['CVFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->CVFile->UploadPath), $cstArchivedStudents->CVFile->Upload->FileName);
}
}
// QualCertificate1
$cstArchivedStudents->QualCertificate1->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->QualCertificate1->Upload->Action == "2" || $cstArchivedStudents->QualCertificate1->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1'); // Get original value
if (is_null($cstArchivedStudents->QualCertificate1->Upload->Value)) {
$rsnew['QualCertificate1'] = NULL;
} else {
$rsnew['QualCertificate1'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->QualCertificate1->UploadPath), $cstArchivedStudents->QualCertificate1->Upload->FileName);
}
}
// QualCertificate2
$cstArchivedStudents->QualCertificate2->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->QualCertificate2->Upload->Action == "2" || $cstArchivedStudents->QualCertificate2->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2'); // Get original value
if (is_null($cstArchivedStudents->QualCertificate2->Upload->Value)) {
$rsnew['QualCertificate2'] = NULL;
} else {
$rsnew['QualCertificate2'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->QualCertificate2->UploadPath), $cstArchivedStudents->QualCertificate2->Upload->FileName);
}
}
// QualCertificate3
$cstArchivedStudents->QualCertificate3->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->QualCertificate3->Upload->Action == "2" || $cstArchivedStudents->QualCertificate3->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3'); // Get original value
if (is_null($cstArchivedStudents->QualCertificate3->Upload->Value)) {
$rsnew['QualCertificate3'] = NULL;
} else {
$rsnew['QualCertificate3'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->QualCertificate3->UploadPath), $cstArchivedStudents->QualCertificate3->Upload->FileName);
}
}
// MentorUndertaking
$cstArchivedStudents->MentorUndertaking->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->MentorUndertaking->Upload->Action == "2" || $cstArchivedStudents->MentorUndertaking->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->MentorUndertaking->Upload->DbValue = $rs->fields('MentorUndertaking'); // Get original value
if (is_null($cstArchivedStudents->MentorUndertaking->Upload->Value)) {
$rsnew['MentorUndertaking'] = NULL;
} else {
$rsnew['MentorUndertaking'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->MentorUndertaking->UploadPath), $cstArchivedStudents->MentorUndertaking->Upload->FileName);
}
}
// CandUUndertaking
$cstArchivedStudents->CandUUndertaking->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->CandUUndertaking->Upload->Action == "2" || $cstArchivedStudents->CandUUndertaking->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->CandUUndertaking->Upload->DbValue = $rs->fields('CandUUndertaking'); // Get original value
if (is_null($cstArchivedStudents->CandUUndertaking->Upload->Value)) {
$rsnew['CandUUndertaking'] = NULL;
} else {
$rsnew['CandUUndertaking'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->CandUUndertaking->UploadPath), $cstArchivedStudents->CandUUndertaking->Upload->FileName);
}
}
// CompanyCandidatePolicy
$cstArchivedStudents->CompanyCandidatePolicy->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->CompanyCandidatePolicy->Upload->Action == "2" || $cstArchivedStudents->CompanyCandidatePolicy->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->CompanyCandidatePolicy->Upload->DbValue = $rs->fields('CompanyCandidatePolicy'); // Get original value
if (is_null($cstArchivedStudents->CompanyCandidatePolicy->Upload->Value)) {
$rsnew['CompanyCandidatePolicy'] = NULL;
} else {
$rsnew['CompanyCandidatePolicy'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->CompanyCandidatePolicy->UploadPath), $cstArchivedStudents->CompanyCandidatePolicy->Upload->FileName);
}
}
// ResidenceProof
$cstArchivedStudents->ResidenceProof->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->ResidenceProof->Upload->Action == "2" || $cstArchivedStudents->ResidenceProof->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->ResidenceProof->Upload->DbValue = $rs->fields('ResidenceProof'); // Get original value
if (is_null($cstArchivedStudents->ResidenceProof->Upload->Value)) {
$rsnew['ResidenceProof'] = NULL;
} else {
$rsnew['ResidenceProof'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->ResidenceProof->UploadPath), $cstArchivedStudents->ResidenceProof->Upload->FileName);
}
}
// SignedAppForm
$cstArchivedStudents->SignedAppForm->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->SignedAppForm->Upload->Action == "2" || $cstArchivedStudents->SignedAppForm->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->SignedAppForm->Upload->DbValue = $rs->fields('SignedAppForm'); // Get original value
if (is_null($cstArchivedStudents->SignedAppForm->Upload->Value)) {
$rsnew['SignedAppForm'] = NULL;
} else {
$rsnew['SignedAppForm'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->SignedAppForm->UploadPath), $cstArchivedStudents->SignedAppForm->Upload->FileName);
}
}
// Photograph
$cstArchivedStudents->Photograph->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents->Photograph->Upload->Action == "2" || $cstArchivedStudents->Photograph->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents->Photograph->Upload->DbValue = $rs->fields('Photograph'); // Get original value
if (is_null($cstArchivedStudents->Photograph->Upload->Value)) {
$rsnew['Photograph'] = NULL;
} else {
$rsnew['Photograph'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents->Photograph->UploadPath), $cstArchivedStudents->Photograph->Upload->FileName);
}
}
// StudentNumber
$cstArchivedStudents->StudentNumber->SetDbValueDef($rsnew, $cstArchivedStudents->StudentNumber->CurrentValue, NULL, FALSE);
// WebUsername
$cstArchivedStudents->WebUsername->SetDbValueDef($rsnew, $cstArchivedStudents->WebUsername->CurrentValue, NULL, FALSE);
// WebPassword
$cstArchivedStudents->WebPassword->SetDbValueDef($rsnew, $cstArchivedStudents->WebPassword->CurrentValue, NULL, FALSE);
// BlockAccess
$cstArchivedStudents->BlockAccess->SetDbValueDef($rsnew, $cstArchivedStudents->BlockAccess->CurrentValue, "", FALSE);
// Call Row Updating event
$bUpdateRow = $cstArchivedStudents->Row_Updating($rsold, $rsnew);
if ($bUpdateRow) {
if (!ew_Empty($cstArchivedStudents->DisabilityCertificate->Upload->Value)) {
$cstArchivedStudents->DisabilityCertificate->Upload->SaveToFile($cstArchivedStudents->DisabilityCertificate->UploadPath, $rsnew['DisabilityCertificate'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->Payslip->Upload->Value)) {
$cstArchivedStudents->Payslip->Upload->SaveToFile($cstArchivedStudents->Payslip->UploadPath, $rsnew['Payslip'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->BankAccountProof->Upload->Value)) {
$cstArchivedStudents->BankAccountProof->Upload->SaveToFile($cstArchivedStudents->BankAccountProof->UploadPath, $rsnew['BankAccountProof'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->IDFile->Upload->Value)) {
$cstArchivedStudents->IDFile->Upload->SaveToFile($cstArchivedStudents->IDFile->UploadPath, $rsnew['IDFile'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->CVFile->Upload->Value)) {
$cstArchivedStudents->CVFile->Upload->SaveToFile($cstArchivedStudents->CVFile->UploadPath, $rsnew['CVFile'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->QualCertificate1->Upload->Value)) {
$cstArchivedStudents->QualCertificate1->Upload->SaveToFile($cstArchivedStudents->QualCertificate1->UploadPath, $rsnew['QualCertificate1'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->QualCertificate2->Upload->Value)) {
$cstArchivedStudents->QualCertificate2->Upload->SaveToFile($cstArchivedStudents->QualCertificate2->UploadPath, $rsnew['QualCertificate2'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->QualCertificate3->Upload->Value)) {
$cstArchivedStudents->QualCertificate3->Upload->SaveToFile($cstArchivedStudents->QualCertificate3->UploadPath, $rsnew['QualCertificate3'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->MentorUndertaking->Upload->Value)) {
$cstArchivedStudents->MentorUndertaking->Upload->SaveToFile($cstArchivedStudents->MentorUndertaking->UploadPath, $rsnew['MentorUndertaking'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->CandUUndertaking->Upload->Value)) {
$cstArchivedStudents->CandUUndertaking->Upload->SaveToFile($cstArchivedStudents->CandUUndertaking->UploadPath, $rsnew['CandUUndertaking'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->CompanyCandidatePolicy->Upload->Value)) {
$cstArchivedStudents->CompanyCandidatePolicy->Upload->SaveToFile($cstArchivedStudents->CompanyCandidatePolicy->UploadPath, $rsnew['CompanyCandidatePolicy'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->ResidenceProof->Upload->Value)) {
$cstArchivedStudents->ResidenceProof->Upload->SaveToFile($cstArchivedStudents->ResidenceProof->UploadPath, $rsnew['ResidenceProof'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->SignedAppForm->Upload->Value)) {
$cstArchivedStudents->SignedAppForm->Upload->SaveToFile($cstArchivedStudents->SignedAppForm->UploadPath, $rsnew['SignedAppForm'], FALSE);
}
if (!ew_Empty($cstArchivedStudents->Photograph->Upload->Value)) {
$cstArchivedStudents->Photograph->Upload->SaveToFile($cstArchivedStudents->Photograph->UploadPath, $rsnew['Photograph'], FALSE);
}
$conn->raiseErrorFn = 'ew_ErrorFn';
$EditRow = $conn->Execute($cstArchivedStudents->UpdateSQL($rsnew));
$conn->raiseErrorFn = '';
} else {
if ($cstArchivedStudents->CancelMessage <> "") {
$this->setMessage($cstArchivedStudents->CancelMessage);
$cstArchivedStudents->CancelMessage = "";
} else {
$this->setMessage($Language->Phrase("UpdateCancelled"));
}
$EditRow = FALSE;
}
}
// Call Row_Updated event
if ($EditRow)
$cstArchivedStudents->Row_Updated($rsold, $rsnew);
$rs->Close();
// DisabilityCertificate
$cstArchivedStudents->DisabilityCertificate->Upload->RemoveFromSession(); // Remove file value from Session
// Payslip
$cstArchivedStudents->Payslip->Upload->RemoveFromSession(); // Remove file value from Session
// BankAccountProof
$cstArchivedStudents->BankAccountProof->Upload->RemoveFromSession(); // Remove file value from Session
// IDFile
$cstArchivedStudents->IDFile->Upload->RemoveFromSession(); // Remove file value from Session
// CVFile
$cstArchivedStudents->CVFile->Upload->RemoveFromSession(); // Remove file value from Session
// QualCertificate1
$cstArchivedStudents->QualCertificate1->Upload->RemoveFromSession(); // Remove file value from Session
// QualCertificate2
$cstArchivedStudents->QualCertificate2->Upload->RemoveFromSession(); // Remove file value from Session
// QualCertificate3
$cstArchivedStudents->QualCertificate3->Upload->RemoveFromSession(); // Remove file value from Session
// MentorUndertaking
$cstArchivedStudents->MentorUndertaking->Upload->RemoveFromSession(); // Remove file value from Session
// CandUUndertaking
$cstArchivedStudents->CandUUndertaking->Upload->RemoveFromSession(); // Remove file value from Session
// CompanyCandidatePolicy
$cstArchivedStudents->CompanyCandidatePolicy->Upload->RemoveFromSession(); // Remove file value from Session
// ResidenceProof
$cstArchivedStudents->ResidenceProof->Upload->RemoveFromSession(); // Remove file value from Session
// SignedAppForm
$cstArchivedStudents->SignedAppForm->Upload->RemoveFromSession(); // Remove file value from Session
// Photograph
$cstArchivedStudents->Photograph->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;
}
}
?>