| Current Path : /var/www/cesa.co.za/cceadmin/ |
| Current File : /var/www/cesa.co.za/cceadmin/cstArchivedStudents2014edit.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 "cstArchivedStudents2014info.php" ?>
<?php include "CCEUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
// Create page object
$cstArchivedStudents2014_edit = new ccstArchivedStudents2014_edit();
$Page =& $cstArchivedStudents2014_edit;
// Page init
$cstArchivedStudents2014_edit->Page_Init();
// Page main
$cstArchivedStudents2014_edit->Page_Main();
?>
<?php include "header.php" ?>
<script type="text/javascript">
<!--
// Create page object
var cstArchivedStudents2014_edit = new ew_Page("cstArchivedStudents2014_edit");
// page properties
cstArchivedStudents2014_edit.PageID = "edit"; // page ID
cstArchivedStudents2014_edit.FormID = "fcstArchivedStudents2014edit"; // form ID
var EW_PAGE_ID = cstArchivedStudents2014_edit.PageID; // for backward compatibility
// extend page with ValidateForm function
cstArchivedStudents2014_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($cstArchivedStudents2014->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($cstArchivedStudents2014->Surname->FldCaption()) ?>");
elm = fobj.elements["x" + infix + "_Age"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "<?php echo ew_JsEncode2($cstArchivedStudents2014->Age->FldErrMsg()) ?>");
elm = fobj.elements["x" + infix + "_CVFile"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_QualCertificate1"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_QualCertificate2"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_QualCertificate3"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_MemorandumFile"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_AgreementFile"];
if (elm && !ew_CheckFileType(elm.value))
return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
elm = fobj.elements["x" + infix + "_ResultLetter"];
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"));
// Call Form Custom Validate event
if (!this.Form_CustomValidate(fobj)) return false;
}
return true;
}
// extend page with Form_CustomValidate function
cstArchivedStudents2014_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) { ?>
cstArchivedStudents2014_edit.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudents2014_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 $cstArchivedStudents2014->TableCaption() ?><br><br>
<a href="<?php echo $cstArchivedStudents2014->getReturnUrl() ?>"><?php echo $Language->Phrase("GoBack") ?></a></span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$cstArchivedStudents2014_edit->ShowMessage();
?>
<form name="fcstArchivedStudents2014edit" id="fcstArchivedStudents2014edit" action="<?php echo ew_CurrentPage() ?>" method="post" enctype="multipart/form-data" onsubmit="return cstArchivedStudents2014_edit.ValidateForm(this);">
<p>
<input type="hidden" name="a_table" id="a_table" value="cstArchivedStudents2014">
<input type="hidden" name="a_edit" id="a_edit" value="U">
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<input type="hidden" name="x_CCEStudentID" id="x_CCEStudentID" value="<?php echo ew_HtmlEncode($cstArchivedStudents2014->CCEStudentID->CurrentValue) ?>">
<?php if ($cstArchivedStudents2014->Title->Visible) { // Title ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Title->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Title->CellAttributes() ?>><span id="el_Title">
<input type="text" name="x_Title" id="x_Title" title="<?php echo $cstArchivedStudents2014->Title->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents2014->Title->EditValue ?>"<?php echo $cstArchivedStudents2014->Title->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->Title->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->FirstName->Visible) { // FirstName ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->FirstName->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents2014->FirstName->CellAttributes() ?>><span id="el_FirstName">
<input type="text" name="x_FirstName" id="x_FirstName" title="<?php echo $cstArchivedStudents2014->FirstName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->FirstName->EditValue ?>"<?php echo $cstArchivedStudents2014->FirstName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->FirstName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Surname->Visible) { // Surname ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Surname->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents2014->Surname->CellAttributes() ?>><span id="el_Surname">
<input type="text" name="x_Surname" id="x_Surname" title="<?php echo $cstArchivedStudents2014->Surname->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->Surname->EditValue ?>"<?php echo $cstArchivedStudents2014->Surname->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->Surname->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->KnownAs->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->KnownAs->CellAttributes() ?>><span id="el_KnownAs">
<input type="text" name="x_KnownAs" id="x_KnownAs" title="<?php echo $cstArchivedStudents2014->KnownAs->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->KnownAs->EditValue ?>"<?php echo $cstArchivedStudents2014->KnownAs->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->KnownAs->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Organisation->Visible) { // Organisation ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Organisation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Organisation->CellAttributes() ?>><span id="el_Organisation">
<input type="text" name="x_Organisation" id="x_Organisation" title="<?php echo $cstArchivedStudents2014->Organisation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->Organisation->EditValue ?>"<?php echo $cstArchivedStudents2014->Organisation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->Organisation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->OrganisationType->Visible) { // OrganisationType ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->OrganisationType->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->OrganisationType->CellAttributes() ?>><span id="el_OrganisationType">
<input type="text" name="x_OrganisationType" id="x_OrganisationType" title="<?php echo $cstArchivedStudents2014->OrganisationType->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->OrganisationType->EditValue ?>"<?php echo $cstArchivedStudents2014->OrganisationType->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->OrganisationType->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->StudentNumber->Visible) { // StudentNumber ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->StudentNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->StudentNumber->CellAttributes() ?>><span id="el_StudentNumber">
<input type="text" name="x_StudentNumber" id="x_StudentNumber" title="<?php echo $cstArchivedStudents2014->StudentNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->StudentNumber->EditValue ?>"<?php echo $cstArchivedStudents2014->StudentNumber->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->StudentNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->CCEFacilitatorID->Visible) { // CCEFacilitatorID ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->CCEFacilitatorID->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->CCEFacilitatorID->CellAttributes() ?>><span id="el_CCEFacilitatorID">
<select id="x_CCEFacilitatorID" name="x_CCEFacilitatorID" title="<?php echo $cstArchivedStudents2014->CCEFacilitatorID->FldTitle() ?>"<?php echo $cstArchivedStudents2014->CCEFacilitatorID->EditAttributes() ?>>
<?php
if (is_array($cstArchivedStudents2014->CCEFacilitatorID->EditValue)) {
$arwrk = $cstArchivedStudents2014->CCEFacilitatorID->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedStudents2014->CCEFacilitatorID->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 $cstArchivedStudents2014->CCEFacilitatorID->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Project->Visible) { // Project ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Project->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Project->CellAttributes() ?>><span id="el_Project">
<select id="x_Project" name="x_Project" title="<?php echo $cstArchivedStudents2014->Project->FldTitle() ?>"<?php echo $cstArchivedStudents2014->Project->EditAttributes() ?>>
<?php
if (is_array($cstArchivedStudents2014->Project->EditValue)) {
$arwrk = $cstArchivedStudents2014->Project->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedStudents2014->Project->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 $cstArchivedStudents2014->Project->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->ProjectDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->ProjectDiscipline->CellAttributes() ?>><span id="el_ProjectDiscipline">
<input type="text" name="x_ProjectDiscipline" id="x_ProjectDiscipline" title="<?php echo $cstArchivedStudents2014->ProjectDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->ProjectDiscipline->EditValue ?>"<?php echo $cstArchivedStudents2014->ProjectDiscipline->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->ProjectDiscipline->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->IDNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->IDNumber->CellAttributes() ?>><span id="el_IDNumber">
<input type="text" name="x_IDNumber" id="x_IDNumber" title="<?php echo $cstArchivedStudents2014->IDNumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2014->IDNumber->EditValue ?>"<?php echo $cstArchivedStudents2014->IDNumber->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->IDNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->ECSANumber->Visible) { // ECSANumber ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->ECSANumber->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->ECSANumber->CellAttributes() ?>><span id="el_ECSANumber">
<input type="text" name="x_ECSANumber" id="x_ECSANumber" title="<?php echo $cstArchivedStudents2014->ECSANumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2014->ECSANumber->EditValue ?>"<?php echo $cstArchivedStudents2014->ECSANumber->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->ECSANumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Age->Visible) { // Age ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Age->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Age->CellAttributes() ?>><span id="el_Age">
<input type="text" name="x_Age" id="x_Age" title="<?php echo $cstArchivedStudents2014->Age->FldTitle() ?>" size="30" value="<?php echo $cstArchivedStudents2014->Age->EditValue ?>"<?php echo $cstArchivedStudents2014->Age->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->Age->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HighestQual->Visible) { // HighestQual ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HighestQual->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HighestQual->CellAttributes() ?>><span id="el_HighestQual">
<input type="text" name="x_HighestQual" id="x_HighestQual" title="<?php echo $cstArchivedStudents2014->HighestQual->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->HighestQual->EditValue ?>"<?php echo $cstArchivedStudents2014->HighestQual->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->HighestQual->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->AreaDiscipline->Visible) { // AreaDiscipline ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->AreaDiscipline->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->AreaDiscipline->CellAttributes() ?>><span id="el_AreaDiscipline">
<input type="text" name="x_AreaDiscipline" id="x_AreaDiscipline" title="<?php echo $cstArchivedStudents2014->AreaDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->AreaDiscipline->EditValue ?>"<?php echo $cstArchivedStudents2014->AreaDiscipline->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->AreaDiscipline->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Telephone->Visible) { // Telephone ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Telephone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Telephone->CellAttributes() ?>><span id="el_Telephone">
<input type="text" name="x_Telephone" id="x_Telephone" title="<?php echo $cstArchivedStudents2014->Telephone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->Telephone->EditValue ?>"<?php echo $cstArchivedStudents2014->Telephone->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->Telephone->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Cellphone->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Cellphone->CellAttributes() ?>><span id="el_Cellphone">
<input type="text" name="x_Cellphone" id="x_Cellphone" title="<?php echo $cstArchivedStudents2014->Cellphone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->Cellphone->EditValue ?>"<?php echo $cstArchivedStudents2014->Cellphone->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->Cellphone->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->EmailAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->EmailAddress->CellAttributes() ?>><span id="el_EmailAddress">
<input type="text" name="x_EmailAddress" id="x_EmailAddress" title="<?php echo $cstArchivedStudents2014->EmailAddress->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->EmailAddress->EditValue ?>"<?php echo $cstArchivedStudents2014->EmailAddress->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->EmailAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HomeAddress->Visible) { // HomeAddress ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HomeAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HomeAddress->CellAttributes() ?>><span id="el_HomeAddress">
<textarea name="x_HomeAddress" id="x_HomeAddress" title="<?php echo $cstArchivedStudents2014->HomeAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents2014->HomeAddress->EditAttributes() ?>><?php echo $cstArchivedStudents2014->HomeAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents2014->HomeAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->WorkAddress->Visible) { // WorkAddress ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->WorkAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->WorkAddress->CellAttributes() ?>><span id="el_WorkAddress">
<textarea name="x_WorkAddress" id="x_WorkAddress" title="<?php echo $cstArchivedStudents2014->WorkAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents2014->WorkAddress->EditAttributes() ?>><?php echo $cstArchivedStudents2014->WorkAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents2014->WorkAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->PostalAddress->Visible) { // PostalAddress ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->PostalAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->PostalAddress->CellAttributes() ?>><span id="el_PostalAddress">
<textarea name="x_PostalAddress" id="x_PostalAddress" title="<?php echo $cstArchivedStudents2014->PostalAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents2014->PostalAddress->EditAttributes() ?>><?php echo $cstArchivedStudents2014->PostalAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents2014->PostalAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Designation->Visible) { // Designation ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Designation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Designation->CellAttributes() ?>><span id="el_Designation">
<input type="text" name="x_Designation" id="x_Designation" title="<?php echo $cstArchivedStudents2014->Designation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->Designation->EditValue ?>"<?php echo $cstArchivedStudents2014->Designation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->Designation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Department->Visible) { // Department ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Department->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->Department->CellAttributes() ?>><span id="el_Department">
<input type="text" name="x_Department" id="x_Department" title="<?php echo $cstArchivedStudents2014->Department->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->Department->EditValue ?>"<?php echo $cstArchivedStudents2014->Department->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->Department->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->CESAAccountNo->Visible) { // CESAAccountNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->CESAAccountNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->CESAAccountNo->CellAttributes() ?>><span id="el_CESAAccountNo">
<input type="text" name="x_CESAAccountNo" id="x_CESAAccountNo" title="<?php echo $cstArchivedStudents2014->CESAAccountNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2014->CESAAccountNo->EditValue ?>"<?php echo $cstArchivedStudents2014->CESAAccountNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->CESAAccountNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->VATNo->Visible) { // VATNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->VATNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->VATNo->CellAttributes() ?>><span id="el_VATNo">
<input type="text" name="x_VATNo" id="x_VATNo" title="<?php echo $cstArchivedStudents2014->VATNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2014->VATNo->EditValue ?>"<?php echo $cstArchivedStudents2014->VATNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->VATNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->DietaryRequirements->Visible) { // DietaryRequirements ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->DietaryRequirements->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->DietaryRequirements->CellAttributes() ?>><span id="el_DietaryRequirements">
<input type="text" name="x_DietaryRequirements" id="x_DietaryRequirements" title="<?php echo $cstArchivedStudents2014->DietaryRequirements->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->DietaryRequirements->EditValue ?>"<?php echo $cstArchivedStudents2014->DietaryRequirements->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->DietaryRequirements->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->CVFile->Visible) { // CVFile ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->CVFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->CVFile->CellAttributes() ?>><span id="el_CVFile">
<div id="old_x_CVFile">
<?php if ($cstArchivedStudents2014->CVFile->HrefValue <> "" || $cstArchivedStudents2014->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->CVFile->HrefValue ?>"><?php echo $cstArchivedStudents2014->CVFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->CVFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_CVFile">
<?php if (!empty($cstArchivedStudents2014->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 $cstArchivedStudents2014->CVFile->EditAttrs["onchange"] = "this.form.a_CVFile[2].checked=true;" . @$cstArchivedStudents2014->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 $cstArchivedStudents2014->CVFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2014->CVFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2014->CVFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->QualCertificate1->Visible) { // QualCertificate1 ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->QualCertificate1->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->QualCertificate1->CellAttributes() ?>><span id="el_QualCertificate1">
<div id="old_x_QualCertificate1">
<?php if ($cstArchivedStudents2014->QualCertificate1->HrefValue <> "" || $cstArchivedStudents2014->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->QualCertificate1->HrefValue ?>"><?php echo $cstArchivedStudents2014->QualCertificate1->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->QualCertificate1->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate1">
<?php if (!empty($cstArchivedStudents2014->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 $cstArchivedStudents2014->QualCertificate1->EditAttrs["onchange"] = "this.form.a_QualCertificate1[2].checked=true;" . @$cstArchivedStudents2014->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 $cstArchivedStudents2014->QualCertificate1->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2014->QualCertificate1->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2014->QualCertificate1->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->QualCertificate2->Visible) { // QualCertificate2 ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->QualCertificate2->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->QualCertificate2->CellAttributes() ?>><span id="el_QualCertificate2">
<div id="old_x_QualCertificate2">
<?php if ($cstArchivedStudents2014->QualCertificate2->HrefValue <> "" || $cstArchivedStudents2014->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->QualCertificate2->HrefValue ?>"><?php echo $cstArchivedStudents2014->QualCertificate2->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->QualCertificate2->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate2">
<?php if (!empty($cstArchivedStudents2014->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 $cstArchivedStudents2014->QualCertificate2->EditAttrs["onchange"] = "this.form.a_QualCertificate2[2].checked=true;" . @$cstArchivedStudents2014->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 $cstArchivedStudents2014->QualCertificate2->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2014->QualCertificate2->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2014->QualCertificate2->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->QualCertificate3->Visible) { // QualCertificate3 ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->QualCertificate3->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->QualCertificate3->CellAttributes() ?>><span id="el_QualCertificate3">
<div id="old_x_QualCertificate3">
<?php if ($cstArchivedStudents2014->QualCertificate3->HrefValue <> "" || $cstArchivedStudents2014->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->QualCertificate3->HrefValue ?>"><?php echo $cstArchivedStudents2014->QualCertificate3->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->QualCertificate3->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate3">
<?php if (!empty($cstArchivedStudents2014->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 $cstArchivedStudents2014->QualCertificate3->EditAttrs["onchange"] = "this.form.a_QualCertificate3[2].checked=true;" . @$cstArchivedStudents2014->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 $cstArchivedStudents2014->QualCertificate3->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2014->QualCertificate3->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2014->QualCertificate3->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MemorandumFile->Visible) { // MemorandumFile ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MemorandumFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MemorandumFile->CellAttributes() ?>><span id="el_MemorandumFile">
<div id="old_x_MemorandumFile">
<?php if ($cstArchivedStudents2014->MemorandumFile->HrefValue <> "" || $cstArchivedStudents2014->MemorandumFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->MemorandumFile->HrefValue ?>"><?php echo $cstArchivedStudents2014->MemorandumFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->MemorandumFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_MemorandumFile">
<?php if (!empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_MemorandumFile" id="a_MemorandumFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_MemorandumFile" id="a_MemorandumFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_MemorandumFile" id="a_MemorandumFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2014->MemorandumFile->EditAttrs["onchange"] = "this.form.a_MemorandumFile[2].checked=true;" . @$cstArchivedStudents2014->MemorandumFile->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_MemorandumFile" id="a_MemorandumFile" value="3">
<?php } ?>
<input type="file" name="x_MemorandumFile" id="x_MemorandumFile" title="<?php echo $cstArchivedStudents2014->MemorandumFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2014->MemorandumFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2014->MemorandumFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->AgreementFile->Visible) { // AgreementFile ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->AgreementFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->AgreementFile->CellAttributes() ?>><span id="el_AgreementFile">
<div id="old_x_AgreementFile">
<?php if ($cstArchivedStudents2014->AgreementFile->HrefValue <> "" || $cstArchivedStudents2014->AgreementFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->AgreementFile->HrefValue ?>"><?php echo $cstArchivedStudents2014->AgreementFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->AgreementFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_AgreementFile">
<?php if (!empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_AgreementFile" id="a_AgreementFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_AgreementFile" id="a_AgreementFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_AgreementFile" id="a_AgreementFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2014->AgreementFile->EditAttrs["onchange"] = "this.form.a_AgreementFile[2].checked=true;" . @$cstArchivedStudents2014->AgreementFile->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_AgreementFile" id="a_AgreementFile" value="3">
<?php } ?>
<input type="file" name="x_AgreementFile" id="x_AgreementFile" title="<?php echo $cstArchivedStudents2014->AgreementFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2014->AgreementFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2014->AgreementFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->OrderNo->Visible) { // OrderNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->OrderNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->OrderNo->CellAttributes() ?>><span id="el_OrderNo">
<input type="text" name="x_OrderNo" id="x_OrderNo" title="<?php echo $cstArchivedStudents2014->OrderNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2014->OrderNo->EditValue ?>"<?php echo $cstArchivedStudents2014->OrderNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->OrderNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->BookedByName->Visible) { // BookedByName ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->BookedByName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->BookedByName->CellAttributes() ?>><span id="el_BookedByName">
<input type="text" name="x_BookedByName" id="x_BookedByName" title="<?php echo $cstArchivedStudents2014->BookedByName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->BookedByName->EditValue ?>"<?php echo $cstArchivedStudents2014->BookedByName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->BookedByName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->BookedByDesignation->Visible) { // BookedByDesignation ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->BookedByDesignation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->BookedByDesignation->CellAttributes() ?>><span id="el_BookedByDesignation">
<input type="text" name="x_BookedByDesignation" id="x_BookedByDesignation" title="<?php echo $cstArchivedStudents2014->BookedByDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->BookedByDesignation->EditValue ?>"<?php echo $cstArchivedStudents2014->BookedByDesignation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->BookedByDesignation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->BookedByTelNo->Visible) { // BookedByTelNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->BookedByTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->BookedByTelNo->CellAttributes() ?>><span id="el_BookedByTelNo">
<input type="text" name="x_BookedByTelNo" id="x_BookedByTelNo" title="<?php echo $cstArchivedStudents2014->BookedByTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->BookedByTelNo->EditValue ?>"<?php echo $cstArchivedStudents2014->BookedByTelNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->BookedByTelNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->BookedByFaxNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->BookedByFaxNo->CellAttributes() ?>><span id="el_BookedByFaxNo">
<input type="text" name="x_BookedByFaxNo" id="x_BookedByFaxNo" title="<?php echo $cstArchivedStudents2014->BookedByFaxNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->BookedByFaxNo->EditValue ?>"<?php echo $cstArchivedStudents2014->BookedByFaxNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->BookedByFaxNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->BookedByCellNo->Visible) { // BookedByCellNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->BookedByCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->BookedByCellNo->CellAttributes() ?>><span id="el_BookedByCellNo">
<input type="text" name="x_BookedByCellNo" id="x_BookedByCellNo" title="<?php echo $cstArchivedStudents2014->BookedByCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->BookedByCellNo->EditValue ?>"<?php echo $cstArchivedStudents2014->BookedByCellNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->BookedByCellNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->BookedByEmail->Visible) { // BookedByEmail ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->BookedByEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->BookedByEmail->CellAttributes() ?>><span id="el_BookedByEmail">
<input type="text" name="x_BookedByEmail" id="x_BookedByEmail" title="<?php echo $cstArchivedStudents2014->BookedByEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->BookedByEmail->EditValue ?>"<?php echo $cstArchivedStudents2014->BookedByEmail->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->BookedByEmail->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->WebUsername->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->WebUsername->CellAttributes() ?>><span id="el_WebUsername">
<input type="text" name="x_WebUsername" id="x_WebUsername" title="<?php echo $cstArchivedStudents2014->WebUsername->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents2014->WebUsername->EditValue ?>"<?php echo $cstArchivedStudents2014->WebUsername->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->WebUsername->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->WebPassword->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->WebPassword->CellAttributes() ?>><span id="el_WebPassword">
<input type="text" name="x_WebPassword" id="x_WebPassword" title="<?php echo $cstArchivedStudents2014->WebPassword->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents2014->WebPassword->EditValue ?>"<?php echo $cstArchivedStudents2014->WebPassword->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->WebPassword->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorName->Visible) { // MentorName ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorName->CellAttributes() ?>><span id="el_MentorName">
<input type="text" name="x_MentorName" id="x_MentorName" title="<?php echo $cstArchivedStudents2014->MentorName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->MentorName->EditValue ?>"<?php echo $cstArchivedStudents2014->MentorName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->MentorName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorDesig->Visible) { // MentorDesig ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorDesig->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorDesig->CellAttributes() ?>><span id="el_MentorDesig">
<input type="text" name="x_MentorDesig" id="x_MentorDesig" title="<?php echo $cstArchivedStudents2014->MentorDesig->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->MentorDesig->EditValue ?>"<?php echo $cstArchivedStudents2014->MentorDesig->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->MentorDesig->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorTel->Visible) { // MentorTel ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorTel->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorTel->CellAttributes() ?>><span id="el_MentorTel">
<input type="text" name="x_MentorTel" id="x_MentorTel" title="<?php echo $cstArchivedStudents2014->MentorTel->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->MentorTel->EditValue ?>"<?php echo $cstArchivedStudents2014->MentorTel->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->MentorTel->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorCell->Visible) { // MentorCell ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorCell->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorCell->CellAttributes() ?>><span id="el_MentorCell">
<input type="text" name="x_MentorCell" id="x_MentorCell" title="<?php echo $cstArchivedStudents2014->MentorCell->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->MentorCell->EditValue ?>"<?php echo $cstArchivedStudents2014->MentorCell->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->MentorCell->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->MentorEmail->Visible) { // MentorEmail ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->MentorEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->MentorEmail->CellAttributes() ?>><span id="el_MentorEmail">
<input type="text" name="x_MentorEmail" id="x_MentorEmail" title="<?php echo $cstArchivedStudents2014->MentorEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->MentorEmail->EditValue ?>"<?php echo $cstArchivedStudents2014->MentorEmail->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->MentorEmail->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerName->Visible) { // HRManagerName ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerName->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerName->CellAttributes() ?>><span id="el_HRManagerName">
<input type="text" name="x_HRManagerName" id="x_HRManagerName" title="<?php echo $cstArchivedStudents2014->HRManagerName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->HRManagerName->EditValue ?>"<?php echo $cstArchivedStudents2014->HRManagerName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->HRManagerName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerDesignation->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerDesignation->CellAttributes() ?>><span id="el_HRManagerDesignation">
<input type="text" name="x_HRManagerDesignation" id="x_HRManagerDesignation" title="<?php echo $cstArchivedStudents2014->HRManagerDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->HRManagerDesignation->EditValue ?>"<?php echo $cstArchivedStudents2014->HRManagerDesignation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->HRManagerDesignation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerTelNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerTelNo->CellAttributes() ?>><span id="el_HRManagerTelNo">
<input type="text" name="x_HRManagerTelNo" id="x_HRManagerTelNo" title="<?php echo $cstArchivedStudents2014->HRManagerTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->HRManagerTelNo->EditValue ?>"<?php echo $cstArchivedStudents2014->HRManagerTelNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->HRManagerTelNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerCellNo->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerCellNo->CellAttributes() ?>><span id="el_HRManagerCellNo">
<input type="text" name="x_HRManagerCellNo" id="x_HRManagerCellNo" title="<?php echo $cstArchivedStudents2014->HRManagerCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->HRManagerCellNo->EditValue ?>"<?php echo $cstArchivedStudents2014->HRManagerCellNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->HRManagerCellNo->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->HRManagerEmail->Visible) { // HRManagerEmail ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->HRManagerEmail->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->HRManagerEmail->CellAttributes() ?>><span id="el_HRManagerEmail">
<input type="text" name="x_HRManagerEmail" id="x_HRManagerEmail" title="<?php echo $cstArchivedStudents2014->HRManagerEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->HRManagerEmail->EditValue ?>"<?php echo $cstArchivedStudents2014->HRManagerEmail->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->HRManagerEmail->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->LengthEmploy->Visible) { // LengthEmploy ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->LengthEmploy->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->LengthEmploy->CellAttributes() ?>><span id="el_LengthEmploy">
<input type="text" name="x_LengthEmploy" id="x_LengthEmploy" title="<?php echo $cstArchivedStudents2014->LengthEmploy->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2014->LengthEmploy->EditValue ?>"<?php echo $cstArchivedStudents2014->LengthEmploy->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2014->LengthEmploy->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->BlockAccess->Visible) { // BlockAccess ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->BlockAccess->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents2014->BlockAccess->CellAttributes() ?>><span id="el_BlockAccess">
<div id="tp_x_BlockAccess" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_BlockAccess" id="x_BlockAccess" title="<?php echo $cstArchivedStudents2014->BlockAccess->FldTitle() ?>" value="{value}"<?php echo $cstArchivedStudents2014->BlockAccess->EditAttributes() ?>></label></div>
<div id="dsl_x_BlockAccess" repeatcolumn="5">
<?php
$arwrk = $cstArchivedStudents2014->BlockAccess->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedStudents2014->BlockAccess->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
if ($selwrk <> "") $emptywrk = FALSE;
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_BlockAccess" id="x_BlockAccess" title="<?php echo $cstArchivedStudents2014->BlockAccess->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedStudents2014->BlockAccess->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $cstArchivedStudents2014->BlockAccess->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Archived->Visible) { // Archived ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Archived->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents2014->Archived->CellAttributes() ?>><span id="el_Archived">
<div id="tp_x_Archived" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME; ?>"><input type="checkbox" name="x_Archived[]" id="x_Archived[]" title="<?php echo $cstArchivedStudents2014->Archived->FldTitle() ?>" value="{value}"<?php echo $cstArchivedStudents2014->Archived->EditAttributes() ?>></div>
<div id="dsl_x_Archived" repeatcolumn="5">
<?php
$arwrk = $cstArchivedStudents2014->Archived->EditValue;
if (is_array($arwrk)) {
$armultiwrk= explode(",", strval($cstArchivedStudents2014->Archived->CurrentValue));
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = "";
for ($ari = 0; $ari < count($armultiwrk); $ari++) {
if (strval($arwrk[$rowcntwrk][0]) == trim(strval($armultiwrk[$ari]))) {
$selwrk = " checked=\"checked\"";
if ($selwrk <> "") $emptywrk = FALSE;
break;
}
}
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="checkbox" name="x_Archived[]" id="x_Archived[]" title="<?php echo $cstArchivedStudents2014->Archived->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedStudents2014->Archived->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $cstArchivedStudents2014->Archived->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->ResultLetter->Visible) { // ResultLetter ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->ResultLetter->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->ResultLetter->CellAttributes() ?>><span id="el_ResultLetter">
<div id="old_x_ResultLetter">
<?php if ($cstArchivedStudents2014->ResultLetter->HrefValue <> "" || $cstArchivedStudents2014->ResultLetter->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->ResultLetter->HrefValue ?>"><?php echo $cstArchivedStudents2014->ResultLetter->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->ResultLetter->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_ResultLetter">
<?php if (!empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) { ?>
<label><input type="radio" name="a_ResultLetter" id="a_ResultLetter" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>
<label><input type="radio" name="a_ResultLetter" id="a_ResultLetter" value="2"><?php echo $Language->Phrase("Remove") ?></label>
<label><input type="radio" name="a_ResultLetter" id="a_ResultLetter" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2014->ResultLetter->EditAttrs["onchange"] = "this.form.a_ResultLetter[2].checked=true;" . @$cstArchivedStudents2014->ResultLetter->EditAttrs["onchange"]; ?>
<?php } else { ?>
<input type="hidden" name="a_ResultLetter" id="a_ResultLetter" value="3">
<?php } ?>
<input type="file" name="x_ResultLetter" id="x_ResultLetter" title="<?php echo $cstArchivedStudents2014->ResultLetter->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2014->ResultLetter->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2014->ResultLetter->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->Achieved->Visible) { // Achieved ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->Achieved->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedStudents2014->Achieved->CellAttributes() ?>><span id="el_Achieved">
<div id="tp_x_Achieved" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME; ?>"><input type="checkbox" name="x_Achieved[]" id="x_Achieved[]" title="<?php echo $cstArchivedStudents2014->Achieved->FldTitle() ?>" value="{value}"<?php echo $cstArchivedStudents2014->Achieved->EditAttributes() ?>></div>
<div id="dsl_x_Achieved" repeatcolumn="5">
<?php
$arwrk = $cstArchivedStudents2014->Achieved->EditValue;
if (is_array($arwrk)) {
$armultiwrk= explode(",", strval($cstArchivedStudents2014->Achieved->CurrentValue));
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = "";
for ($ari = 0; $ari < count($armultiwrk); $ari++) {
if (strval($arwrk[$rowcntwrk][0]) == trim(strval($armultiwrk[$ari]))) {
$selwrk = " checked=\"checked\"";
if ($selwrk <> "") $emptywrk = FALSE;
break;
}
}
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="checkbox" name="x_Achieved[]" id="x_Achieved[]" title="<?php echo $cstArchivedStudents2014->Achieved->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedStudents2014->Achieved->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $cstArchivedStudents2014->Achieved->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->IDFile->Visible) { // IDFile ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->IDFile->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->IDFile->CellAttributes() ?>><span id="el_IDFile">
<div id="old_x_IDFile">
<?php if ($cstArchivedStudents2014->IDFile->HrefValue <> "" || $cstArchivedStudents2014->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2014->IDFile->HrefValue ?>"><?php echo $cstArchivedStudents2014->IDFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2014->IDFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2014->CurrentAction, array("I", "edit", "gridedit"))) { ?>
<?php } ?>
<?php } ?>
</div>
<div id="new_x_IDFile">
<?php if (!empty($cstArchivedStudents2014->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 $cstArchivedStudents2014->IDFile->EditAttrs["onchange"] = "this.form.a_IDFile[2].checked=true;" . @$cstArchivedStudents2014->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 $cstArchivedStudents2014->IDFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2014->IDFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2014->IDFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedStudents2014->ReasonForLeaving->Visible) { // ReasonForLeaving ?>
<tr<?php echo $cstArchivedStudents2014->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $cstArchivedStudents2014->ReasonForLeaving->FldCaption() ?></td>
<td<?php echo $cstArchivedStudents2014->ReasonForLeaving->CellAttributes() ?>><span id="el_ReasonForLeaving">
<textarea name="x_ReasonForLeaving" id="x_ReasonForLeaving" title="<?php echo $cstArchivedStudents2014->ReasonForLeaving->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents2014->ReasonForLeaving->EditAttributes() ?>><?php echo $cstArchivedStudents2014->ReasonForLeaving->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents2014->ReasonForLeaving->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
$cstArchivedStudents2014_edit->Page_Terminate();
?>
<?php
//
// Page class
//
class ccstArchivedStudents2014_edit {
// Page ID
var $PageID = 'edit';
// Table name
var $TableName = 'cstArchivedStudents2014';
// Page object name
var $PageObjName = 'cstArchivedStudents2014_edit';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $cstArchivedStudents2014;
if ($cstArchivedStudents2014->UseTokenInUrl) $PageUrl .= "t=" . $cstArchivedStudents2014->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, $cstArchivedStudents2014;
if ($cstArchivedStudents2014->UseTokenInUrl) {
if ($objForm)
return ($cstArchivedStudents2014->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($cstArchivedStudents2014->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function __construct() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (cstArchivedStudents2014)
$GLOBALS["cstArchivedStudents2014"] = new ccstArchivedStudents2014();
// Table object (CCEUsers)
$GLOBALS['CCEUsers'] = new cCCEUsers();
// 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", 'cstArchivedStudents2014', 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 $cstArchivedStudents2014;
// 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("cstArchivedStudents2014list.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, $cstArchivedStudents2014;
// Load key from QueryString
if (@$_GET["CCEStudentID"] <> "")
$cstArchivedStudents2014->CCEStudentID->setQueryStringValue($_GET["CCEStudentID"]);
if (@$_POST["a_edit"] <> "") {
$cstArchivedStudents2014->CurrentAction = $_POST["a_edit"]; // Get action code
$this->GetUploadFiles(); // Get upload files
$this->LoadFormValues(); // Get form values
// Validate form
if (!$this->ValidateForm()) {
$cstArchivedStudents2014->CurrentAction = ""; // Form error, reset action
$this->setMessage($gsFormError);
$cstArchivedStudents2014->EventCancelled = TRUE; // Event cancelled
$this->RestoreFormValues();
}
} else {
$cstArchivedStudents2014->CurrentAction = "I"; // Default action is display
}
// Check if valid key
if ($cstArchivedStudents2014->CCEStudentID->CurrentValue == "")
$this->Page_Terminate("cstArchivedStudents2014list.php"); // Invalid key, return to list
switch ($cstArchivedStudents2014->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("cstArchivedStudents2014list.php"); // No matching record, return to list
}
break;
Case "U": // Update
$cstArchivedStudents2014->SendEmail = TRUE; // Send email on update success
if ($this->EditRow()) { // Update record based on key
$this->setMessage($Language->Phrase("UpdateSuccess")); // Update success
$sReturnUrl = $cstArchivedStudents2014->getReturnUrl();
if (ew_GetPageName($sReturnUrl) == "cstArchivedStudents2014view.php")
$sReturnUrl = $cstArchivedStudents2014->ViewUrl(); // View paging, return to View page directly
$this->Page_Terminate($sReturnUrl); // Return to caller
} else {
$cstArchivedStudents2014->EventCancelled = TRUE; // Event cancelled
$this->RestoreFormValues(); // Restore form values if update failed
}
}
// Render the record
$cstArchivedStudents2014->RowType = EW_ROWTYPE_EDIT; // Render as Edit
$this->RenderRow();
}
// Get upload files
function GetUploadFiles() {
global $objForm, $cstArchivedStudents2014;
// Get upload data
if ($cstArchivedStudents2014->CVFile->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents2014->CVFile->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents2014->QualCertificate1->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents2014->QualCertificate1->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents2014->QualCertificate2->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents2014->QualCertificate2->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents2014->QualCertificate3->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents2014->QualCertificate3->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents2014->MemorandumFile->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents2014->MemorandumFile->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents2014->AgreementFile->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents2014->AgreementFile->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents2014->ResultLetter->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents2014->ResultLetter->Upload->Message;
$this->Page_Terminate();
exit();
}
if ($cstArchivedStudents2014->IDFile->Upload->UploadFile()) {
// No action required
} else {
echo $cstArchivedStudents2014->IDFile->Upload->Message;
$this->Page_Terminate();
exit();
}
}
// Load form values
function LoadFormValues() {
// Load from form
global $objForm, $cstArchivedStudents2014;
$cstArchivedStudents2014->CCEStudentID->setFormValue($objForm->GetValue("x_CCEStudentID"));
$cstArchivedStudents2014->Title->setFormValue($objForm->GetValue("x_Title"));
$cstArchivedStudents2014->FirstName->setFormValue($objForm->GetValue("x_FirstName"));
$cstArchivedStudents2014->Surname->setFormValue($objForm->GetValue("x_Surname"));
$cstArchivedStudents2014->KnownAs->setFormValue($objForm->GetValue("x_KnownAs"));
$cstArchivedStudents2014->Organisation->setFormValue($objForm->GetValue("x_Organisation"));
$cstArchivedStudents2014->OrganisationType->setFormValue($objForm->GetValue("x_OrganisationType"));
$cstArchivedStudents2014->StudentNumber->setFormValue($objForm->GetValue("x_StudentNumber"));
$cstArchivedStudents2014->CCEFacilitatorID->setFormValue($objForm->GetValue("x_CCEFacilitatorID"));
$cstArchivedStudents2014->Project->setFormValue($objForm->GetValue("x_Project"));
$cstArchivedStudents2014->ProjectDiscipline->setFormValue($objForm->GetValue("x_ProjectDiscipline"));
$cstArchivedStudents2014->IDNumber->setFormValue($objForm->GetValue("x_IDNumber"));
$cstArchivedStudents2014->ECSANumber->setFormValue($objForm->GetValue("x_ECSANumber"));
$cstArchivedStudents2014->Age->setFormValue($objForm->GetValue("x_Age"));
$cstArchivedStudents2014->HighestQual->setFormValue($objForm->GetValue("x_HighestQual"));
$cstArchivedStudents2014->AreaDiscipline->setFormValue($objForm->GetValue("x_AreaDiscipline"));
$cstArchivedStudents2014->Telephone->setFormValue($objForm->GetValue("x_Telephone"));
$cstArchivedStudents2014->Cellphone->setFormValue($objForm->GetValue("x_Cellphone"));
$cstArchivedStudents2014->EmailAddress->setFormValue($objForm->GetValue("x_EmailAddress"));
$cstArchivedStudents2014->HomeAddress->setFormValue($objForm->GetValue("x_HomeAddress"));
$cstArchivedStudents2014->WorkAddress->setFormValue($objForm->GetValue("x_WorkAddress"));
$cstArchivedStudents2014->PostalAddress->setFormValue($objForm->GetValue("x_PostalAddress"));
$cstArchivedStudents2014->Designation->setFormValue($objForm->GetValue("x_Designation"));
$cstArchivedStudents2014->Department->setFormValue($objForm->GetValue("x_Department"));
$cstArchivedStudents2014->CESAAccountNo->setFormValue($objForm->GetValue("x_CESAAccountNo"));
$cstArchivedStudents2014->VATNo->setFormValue($objForm->GetValue("x_VATNo"));
$cstArchivedStudents2014->DietaryRequirements->setFormValue($objForm->GetValue("x_DietaryRequirements"));
$cstArchivedStudents2014->OrderNo->setFormValue($objForm->GetValue("x_OrderNo"));
$cstArchivedStudents2014->BookedByName->setFormValue($objForm->GetValue("x_BookedByName"));
$cstArchivedStudents2014->BookedByDesignation->setFormValue($objForm->GetValue("x_BookedByDesignation"));
$cstArchivedStudents2014->BookedByTelNo->setFormValue($objForm->GetValue("x_BookedByTelNo"));
$cstArchivedStudents2014->BookedByFaxNo->setFormValue($objForm->GetValue("x_BookedByFaxNo"));
$cstArchivedStudents2014->BookedByCellNo->setFormValue($objForm->GetValue("x_BookedByCellNo"));
$cstArchivedStudents2014->BookedByEmail->setFormValue($objForm->GetValue("x_BookedByEmail"));
$cstArchivedStudents2014->WebUsername->setFormValue($objForm->GetValue("x_WebUsername"));
$cstArchivedStudents2014->WebPassword->setFormValue($objForm->GetValue("x_WebPassword"));
$cstArchivedStudents2014->MentorName->setFormValue($objForm->GetValue("x_MentorName"));
$cstArchivedStudents2014->MentorDesig->setFormValue($objForm->GetValue("x_MentorDesig"));
$cstArchivedStudents2014->MentorTel->setFormValue($objForm->GetValue("x_MentorTel"));
$cstArchivedStudents2014->MentorCell->setFormValue($objForm->GetValue("x_MentorCell"));
$cstArchivedStudents2014->MentorEmail->setFormValue($objForm->GetValue("x_MentorEmail"));
$cstArchivedStudents2014->HRManagerName->setFormValue($objForm->GetValue("x_HRManagerName"));
$cstArchivedStudents2014->HRManagerDesignation->setFormValue($objForm->GetValue("x_HRManagerDesignation"));
$cstArchivedStudents2014->HRManagerTelNo->setFormValue($objForm->GetValue("x_HRManagerTelNo"));
$cstArchivedStudents2014->HRManagerCellNo->setFormValue($objForm->GetValue("x_HRManagerCellNo"));
$cstArchivedStudents2014->HRManagerEmail->setFormValue($objForm->GetValue("x_HRManagerEmail"));
$cstArchivedStudents2014->LengthEmploy->setFormValue($objForm->GetValue("x_LengthEmploy"));
$cstArchivedStudents2014->BlockAccess->setFormValue($objForm->GetValue("x_BlockAccess"));
$cstArchivedStudents2014->Archived->setFormValue($objForm->GetValue("x_Archived"));
$cstArchivedStudents2014->Achieved->setFormValue($objForm->GetValue("x_Achieved"));
$cstArchivedStudents2014->ReasonForLeaving->setFormValue($objForm->GetValue("x_ReasonForLeaving"));
}
// Restore form values
function RestoreFormValues() {
global $objForm, $cstArchivedStudents2014;
$this->LoadRow();
$cstArchivedStudents2014->CCEStudentID->CurrentValue = $cstArchivedStudents2014->CCEStudentID->FormValue;
$cstArchivedStudents2014->Title->CurrentValue = $cstArchivedStudents2014->Title->FormValue;
$cstArchivedStudents2014->FirstName->CurrentValue = $cstArchivedStudents2014->FirstName->FormValue;
$cstArchivedStudents2014->Surname->CurrentValue = $cstArchivedStudents2014->Surname->FormValue;
$cstArchivedStudents2014->KnownAs->CurrentValue = $cstArchivedStudents2014->KnownAs->FormValue;
$cstArchivedStudents2014->Organisation->CurrentValue = $cstArchivedStudents2014->Organisation->FormValue;
$cstArchivedStudents2014->OrganisationType->CurrentValue = $cstArchivedStudents2014->OrganisationType->FormValue;
$cstArchivedStudents2014->StudentNumber->CurrentValue = $cstArchivedStudents2014->StudentNumber->FormValue;
$cstArchivedStudents2014->CCEFacilitatorID->CurrentValue = $cstArchivedStudents2014->CCEFacilitatorID->FormValue;
$cstArchivedStudents2014->Project->CurrentValue = $cstArchivedStudents2014->Project->FormValue;
$cstArchivedStudents2014->ProjectDiscipline->CurrentValue = $cstArchivedStudents2014->ProjectDiscipline->FormValue;
$cstArchivedStudents2014->IDNumber->CurrentValue = $cstArchivedStudents2014->IDNumber->FormValue;
$cstArchivedStudents2014->ECSANumber->CurrentValue = $cstArchivedStudents2014->ECSANumber->FormValue;
$cstArchivedStudents2014->Age->CurrentValue = $cstArchivedStudents2014->Age->FormValue;
$cstArchivedStudents2014->HighestQual->CurrentValue = $cstArchivedStudents2014->HighestQual->FormValue;
$cstArchivedStudents2014->AreaDiscipline->CurrentValue = $cstArchivedStudents2014->AreaDiscipline->FormValue;
$cstArchivedStudents2014->Telephone->CurrentValue = $cstArchivedStudents2014->Telephone->FormValue;
$cstArchivedStudents2014->Cellphone->CurrentValue = $cstArchivedStudents2014->Cellphone->FormValue;
$cstArchivedStudents2014->EmailAddress->CurrentValue = $cstArchivedStudents2014->EmailAddress->FormValue;
$cstArchivedStudents2014->HomeAddress->CurrentValue = $cstArchivedStudents2014->HomeAddress->FormValue;
$cstArchivedStudents2014->WorkAddress->CurrentValue = $cstArchivedStudents2014->WorkAddress->FormValue;
$cstArchivedStudents2014->PostalAddress->CurrentValue = $cstArchivedStudents2014->PostalAddress->FormValue;
$cstArchivedStudents2014->Designation->CurrentValue = $cstArchivedStudents2014->Designation->FormValue;
$cstArchivedStudents2014->Department->CurrentValue = $cstArchivedStudents2014->Department->FormValue;
$cstArchivedStudents2014->CESAAccountNo->CurrentValue = $cstArchivedStudents2014->CESAAccountNo->FormValue;
$cstArchivedStudents2014->VATNo->CurrentValue = $cstArchivedStudents2014->VATNo->FormValue;
$cstArchivedStudents2014->DietaryRequirements->CurrentValue = $cstArchivedStudents2014->DietaryRequirements->FormValue;
$cstArchivedStudents2014->OrderNo->CurrentValue = $cstArchivedStudents2014->OrderNo->FormValue;
$cstArchivedStudents2014->BookedByName->CurrentValue = $cstArchivedStudents2014->BookedByName->FormValue;
$cstArchivedStudents2014->BookedByDesignation->CurrentValue = $cstArchivedStudents2014->BookedByDesignation->FormValue;
$cstArchivedStudents2014->BookedByTelNo->CurrentValue = $cstArchivedStudents2014->BookedByTelNo->FormValue;
$cstArchivedStudents2014->BookedByFaxNo->CurrentValue = $cstArchivedStudents2014->BookedByFaxNo->FormValue;
$cstArchivedStudents2014->BookedByCellNo->CurrentValue = $cstArchivedStudents2014->BookedByCellNo->FormValue;
$cstArchivedStudents2014->BookedByEmail->CurrentValue = $cstArchivedStudents2014->BookedByEmail->FormValue;
$cstArchivedStudents2014->WebUsername->CurrentValue = $cstArchivedStudents2014->WebUsername->FormValue;
$cstArchivedStudents2014->WebPassword->CurrentValue = $cstArchivedStudents2014->WebPassword->FormValue;
$cstArchivedStudents2014->MentorName->CurrentValue = $cstArchivedStudents2014->MentorName->FormValue;
$cstArchivedStudents2014->MentorDesig->CurrentValue = $cstArchivedStudents2014->MentorDesig->FormValue;
$cstArchivedStudents2014->MentorTel->CurrentValue = $cstArchivedStudents2014->MentorTel->FormValue;
$cstArchivedStudents2014->MentorCell->CurrentValue = $cstArchivedStudents2014->MentorCell->FormValue;
$cstArchivedStudents2014->MentorEmail->CurrentValue = $cstArchivedStudents2014->MentorEmail->FormValue;
$cstArchivedStudents2014->HRManagerName->CurrentValue = $cstArchivedStudents2014->HRManagerName->FormValue;
$cstArchivedStudents2014->HRManagerDesignation->CurrentValue = $cstArchivedStudents2014->HRManagerDesignation->FormValue;
$cstArchivedStudents2014->HRManagerTelNo->CurrentValue = $cstArchivedStudents2014->HRManagerTelNo->FormValue;
$cstArchivedStudents2014->HRManagerCellNo->CurrentValue = $cstArchivedStudents2014->HRManagerCellNo->FormValue;
$cstArchivedStudents2014->HRManagerEmail->CurrentValue = $cstArchivedStudents2014->HRManagerEmail->FormValue;
$cstArchivedStudents2014->LengthEmploy->CurrentValue = $cstArchivedStudents2014->LengthEmploy->FormValue;
$cstArchivedStudents2014->BlockAccess->CurrentValue = $cstArchivedStudents2014->BlockAccess->FormValue;
$cstArchivedStudents2014->Archived->CurrentValue = $cstArchivedStudents2014->Archived->FormValue;
$cstArchivedStudents2014->Achieved->CurrentValue = $cstArchivedStudents2014->Achieved->FormValue;
$cstArchivedStudents2014->ReasonForLeaving->CurrentValue = $cstArchivedStudents2014->ReasonForLeaving->FormValue;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $cstArchivedStudents2014;
$sFilter = $cstArchivedStudents2014->KeyFilter();
// Call Row Selecting event
$cstArchivedStudents2014->Row_Selecting($sFilter);
// Load SQL based on filter
$cstArchivedStudents2014->CurrentFilter = $sFilter;
$sSql = $cstArchivedStudents2014->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$cstArchivedStudents2014->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $cstArchivedStudents2014;
$cstArchivedStudents2014->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
$cstArchivedStudents2014->Title->setDbValue($rs->fields('Title'));
$cstArchivedStudents2014->FirstName->setDbValue($rs->fields('FirstName'));
$cstArchivedStudents2014->Surname->setDbValue($rs->fields('Surname'));
$cstArchivedStudents2014->KnownAs->setDbValue($rs->fields('KnownAs'));
$cstArchivedStudents2014->Organisation->setDbValue($rs->fields('Organisation'));
$cstArchivedStudents2014->OrganisationType->setDbValue($rs->fields('OrganisationType'));
$cstArchivedStudents2014->StudentNumber->setDbValue($rs->fields('StudentNumber'));
$cstArchivedStudents2014->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
$cstArchivedStudents2014->Project->setDbValue($rs->fields('Project'));
$cstArchivedStudents2014->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
$cstArchivedStudents2014->IDNumber->setDbValue($rs->fields('IDNumber'));
$cstArchivedStudents2014->ECSANumber->setDbValue($rs->fields('ECSANumber'));
$cstArchivedStudents2014->Age->setDbValue($rs->fields('Age'));
$cstArchivedStudents2014->HighestQual->setDbValue($rs->fields('HighestQual'));
$cstArchivedStudents2014->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
$cstArchivedStudents2014->Telephone->setDbValue($rs->fields('Telephone'));
$cstArchivedStudents2014->Cellphone->setDbValue($rs->fields('Cellphone'));
$cstArchivedStudents2014->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$cstArchivedStudents2014->HomeAddress->setDbValue($rs->fields('HomeAddress'));
$cstArchivedStudents2014->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$cstArchivedStudents2014->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$cstArchivedStudents2014->Designation->setDbValue($rs->fields('Designation'));
$cstArchivedStudents2014->Department->setDbValue($rs->fields('Department'));
$cstArchivedStudents2014->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
$cstArchivedStudents2014->VATNo->setDbValue($rs->fields('VATNo'));
$cstArchivedStudents2014->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
$cstArchivedStudents2014->CVFile->Upload->DbValue = $rs->fields('CVFile');
$cstArchivedStudents2014->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
$cstArchivedStudents2014->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
$cstArchivedStudents2014->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
$cstArchivedStudents2014->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
$cstArchivedStudents2014->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
$cstArchivedStudents2014->OrderNo->setDbValue($rs->fields('OrderNo'));
$cstArchivedStudents2014->BookedByName->setDbValue($rs->fields('BookedByName'));
$cstArchivedStudents2014->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
$cstArchivedStudents2014->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
$cstArchivedStudents2014->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
$cstArchivedStudents2014->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
$cstArchivedStudents2014->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
$cstArchivedStudents2014->WebUsername->setDbValue($rs->fields('WebUsername'));
$cstArchivedStudents2014->WebPassword->setDbValue($rs->fields('WebPassword'));
$cstArchivedStudents2014->MentorName->setDbValue($rs->fields('MentorName'));
$cstArchivedStudents2014->MentorDesig->setDbValue($rs->fields('MentorDesig'));
$cstArchivedStudents2014->MentorTel->setDbValue($rs->fields('MentorTel'));
$cstArchivedStudents2014->MentorCell->setDbValue($rs->fields('MentorCell'));
$cstArchivedStudents2014->MentorEmail->setDbValue($rs->fields('MentorEmail'));
$cstArchivedStudents2014->HRManagerName->setDbValue($rs->fields('HRManagerName'));
$cstArchivedStudents2014->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
$cstArchivedStudents2014->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
$cstArchivedStudents2014->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
$cstArchivedStudents2014->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
$cstArchivedStudents2014->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
$cstArchivedStudents2014->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$cstArchivedStudents2014->Archived->setDbValue($rs->fields('Archived'));
$cstArchivedStudents2014->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter');
$cstArchivedStudents2014->Achieved->setDbValue($rs->fields('Achieved'));
$cstArchivedStudents2014->IDFile->Upload->DbValue = $rs->fields('IDFile');
$cstArchivedStudents2014->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $cstArchivedStudents2014;
// Initialize URLs
// Call Row_Rendering event
$cstArchivedStudents2014->Row_Rendering();
// Common render codes for all row types
// CCEStudentID
$cstArchivedStudents2014->CCEStudentID->CellCssStyle = ""; $cstArchivedStudents2014->CCEStudentID->CellCssClass = "";
$cstArchivedStudents2014->CCEStudentID->CellAttrs = array(); $cstArchivedStudents2014->CCEStudentID->ViewAttrs = array(); $cstArchivedStudents2014->CCEStudentID->EditAttrs = array();
// Title
$cstArchivedStudents2014->Title->CellCssStyle = ""; $cstArchivedStudents2014->Title->CellCssClass = "";
$cstArchivedStudents2014->Title->CellAttrs = array(); $cstArchivedStudents2014->Title->ViewAttrs = array(); $cstArchivedStudents2014->Title->EditAttrs = array();
// FirstName
$cstArchivedStudents2014->FirstName->CellCssStyle = ""; $cstArchivedStudents2014->FirstName->CellCssClass = "";
$cstArchivedStudents2014->FirstName->CellAttrs = array(); $cstArchivedStudents2014->FirstName->ViewAttrs = array(); $cstArchivedStudents2014->FirstName->EditAttrs = array();
// Surname
$cstArchivedStudents2014->Surname->CellCssStyle = ""; $cstArchivedStudents2014->Surname->CellCssClass = "";
$cstArchivedStudents2014->Surname->CellAttrs = array(); $cstArchivedStudents2014->Surname->ViewAttrs = array(); $cstArchivedStudents2014->Surname->EditAttrs = array();
// KnownAs
$cstArchivedStudents2014->KnownAs->CellCssStyle = ""; $cstArchivedStudents2014->KnownAs->CellCssClass = "";
$cstArchivedStudents2014->KnownAs->CellAttrs = array(); $cstArchivedStudents2014->KnownAs->ViewAttrs = array(); $cstArchivedStudents2014->KnownAs->EditAttrs = array();
// Organisation
$cstArchivedStudents2014->Organisation->CellCssStyle = ""; $cstArchivedStudents2014->Organisation->CellCssClass = "";
$cstArchivedStudents2014->Organisation->CellAttrs = array(); $cstArchivedStudents2014->Organisation->ViewAttrs = array(); $cstArchivedStudents2014->Organisation->EditAttrs = array();
// OrganisationType
$cstArchivedStudents2014->OrganisationType->CellCssStyle = ""; $cstArchivedStudents2014->OrganisationType->CellCssClass = "";
$cstArchivedStudents2014->OrganisationType->CellAttrs = array(); $cstArchivedStudents2014->OrganisationType->ViewAttrs = array(); $cstArchivedStudents2014->OrganisationType->EditAttrs = array();
// StudentNumber
$cstArchivedStudents2014->StudentNumber->CellCssStyle = ""; $cstArchivedStudents2014->StudentNumber->CellCssClass = "";
$cstArchivedStudents2014->StudentNumber->CellAttrs = array(); $cstArchivedStudents2014->StudentNumber->ViewAttrs = array(); $cstArchivedStudents2014->StudentNumber->EditAttrs = array();
// CCEFacilitatorID
$cstArchivedStudents2014->CCEFacilitatorID->CellCssStyle = ""; $cstArchivedStudents2014->CCEFacilitatorID->CellCssClass = "";
$cstArchivedStudents2014->CCEFacilitatorID->CellAttrs = array(); $cstArchivedStudents2014->CCEFacilitatorID->ViewAttrs = array(); $cstArchivedStudents2014->CCEFacilitatorID->EditAttrs = array();
// Project
$cstArchivedStudents2014->Project->CellCssStyle = ""; $cstArchivedStudents2014->Project->CellCssClass = "";
$cstArchivedStudents2014->Project->CellAttrs = array(); $cstArchivedStudents2014->Project->ViewAttrs = array(); $cstArchivedStudents2014->Project->EditAttrs = array();
// ProjectDiscipline
$cstArchivedStudents2014->ProjectDiscipline->CellCssStyle = ""; $cstArchivedStudents2014->ProjectDiscipline->CellCssClass = "";
$cstArchivedStudents2014->ProjectDiscipline->CellAttrs = array(); $cstArchivedStudents2014->ProjectDiscipline->ViewAttrs = array(); $cstArchivedStudents2014->ProjectDiscipline->EditAttrs = array();
// IDNumber
$cstArchivedStudents2014->IDNumber->CellCssStyle = ""; $cstArchivedStudents2014->IDNumber->CellCssClass = "";
$cstArchivedStudents2014->IDNumber->CellAttrs = array(); $cstArchivedStudents2014->IDNumber->ViewAttrs = array(); $cstArchivedStudents2014->IDNumber->EditAttrs = array();
// ECSANumber
$cstArchivedStudents2014->ECSANumber->CellCssStyle = ""; $cstArchivedStudents2014->ECSANumber->CellCssClass = "";
$cstArchivedStudents2014->ECSANumber->CellAttrs = array(); $cstArchivedStudents2014->ECSANumber->ViewAttrs = array(); $cstArchivedStudents2014->ECSANumber->EditAttrs = array();
// Age
$cstArchivedStudents2014->Age->CellCssStyle = ""; $cstArchivedStudents2014->Age->CellCssClass = "";
$cstArchivedStudents2014->Age->CellAttrs = array(); $cstArchivedStudents2014->Age->ViewAttrs = array(); $cstArchivedStudents2014->Age->EditAttrs = array();
// HighestQual
$cstArchivedStudents2014->HighestQual->CellCssStyle = ""; $cstArchivedStudents2014->HighestQual->CellCssClass = "";
$cstArchivedStudents2014->HighestQual->CellAttrs = array(); $cstArchivedStudents2014->HighestQual->ViewAttrs = array(); $cstArchivedStudents2014->HighestQual->EditAttrs = array();
// AreaDiscipline
$cstArchivedStudents2014->AreaDiscipline->CellCssStyle = ""; $cstArchivedStudents2014->AreaDiscipline->CellCssClass = "";
$cstArchivedStudents2014->AreaDiscipline->CellAttrs = array(); $cstArchivedStudents2014->AreaDiscipline->ViewAttrs = array(); $cstArchivedStudents2014->AreaDiscipline->EditAttrs = array();
// Telephone
$cstArchivedStudents2014->Telephone->CellCssStyle = ""; $cstArchivedStudents2014->Telephone->CellCssClass = "";
$cstArchivedStudents2014->Telephone->CellAttrs = array(); $cstArchivedStudents2014->Telephone->ViewAttrs = array(); $cstArchivedStudents2014->Telephone->EditAttrs = array();
// Cellphone
$cstArchivedStudents2014->Cellphone->CellCssStyle = ""; $cstArchivedStudents2014->Cellphone->CellCssClass = "";
$cstArchivedStudents2014->Cellphone->CellAttrs = array(); $cstArchivedStudents2014->Cellphone->ViewAttrs = array(); $cstArchivedStudents2014->Cellphone->EditAttrs = array();
// EmailAddress
$cstArchivedStudents2014->EmailAddress->CellCssStyle = ""; $cstArchivedStudents2014->EmailAddress->CellCssClass = "";
$cstArchivedStudents2014->EmailAddress->CellAttrs = array(); $cstArchivedStudents2014->EmailAddress->ViewAttrs = array(); $cstArchivedStudents2014->EmailAddress->EditAttrs = array();
// HomeAddress
$cstArchivedStudents2014->HomeAddress->CellCssStyle = ""; $cstArchivedStudents2014->HomeAddress->CellCssClass = "";
$cstArchivedStudents2014->HomeAddress->CellAttrs = array(); $cstArchivedStudents2014->HomeAddress->ViewAttrs = array(); $cstArchivedStudents2014->HomeAddress->EditAttrs = array();
// WorkAddress
$cstArchivedStudents2014->WorkAddress->CellCssStyle = ""; $cstArchivedStudents2014->WorkAddress->CellCssClass = "";
$cstArchivedStudents2014->WorkAddress->CellAttrs = array(); $cstArchivedStudents2014->WorkAddress->ViewAttrs = array(); $cstArchivedStudents2014->WorkAddress->EditAttrs = array();
// PostalAddress
$cstArchivedStudents2014->PostalAddress->CellCssStyle = ""; $cstArchivedStudents2014->PostalAddress->CellCssClass = "";
$cstArchivedStudents2014->PostalAddress->CellAttrs = array(); $cstArchivedStudents2014->PostalAddress->ViewAttrs = array(); $cstArchivedStudents2014->PostalAddress->EditAttrs = array();
// Designation
$cstArchivedStudents2014->Designation->CellCssStyle = ""; $cstArchivedStudents2014->Designation->CellCssClass = "";
$cstArchivedStudents2014->Designation->CellAttrs = array(); $cstArchivedStudents2014->Designation->ViewAttrs = array(); $cstArchivedStudents2014->Designation->EditAttrs = array();
// Department
$cstArchivedStudents2014->Department->CellCssStyle = ""; $cstArchivedStudents2014->Department->CellCssClass = "";
$cstArchivedStudents2014->Department->CellAttrs = array(); $cstArchivedStudents2014->Department->ViewAttrs = array(); $cstArchivedStudents2014->Department->EditAttrs = array();
// CESAAccountNo
$cstArchivedStudents2014->CESAAccountNo->CellCssStyle = ""; $cstArchivedStudents2014->CESAAccountNo->CellCssClass = "";
$cstArchivedStudents2014->CESAAccountNo->CellAttrs = array(); $cstArchivedStudents2014->CESAAccountNo->ViewAttrs = array(); $cstArchivedStudents2014->CESAAccountNo->EditAttrs = array();
// VATNo
$cstArchivedStudents2014->VATNo->CellCssStyle = ""; $cstArchivedStudents2014->VATNo->CellCssClass = "";
$cstArchivedStudents2014->VATNo->CellAttrs = array(); $cstArchivedStudents2014->VATNo->ViewAttrs = array(); $cstArchivedStudents2014->VATNo->EditAttrs = array();
// DietaryRequirements
$cstArchivedStudents2014->DietaryRequirements->CellCssStyle = ""; $cstArchivedStudents2014->DietaryRequirements->CellCssClass = "";
$cstArchivedStudents2014->DietaryRequirements->CellAttrs = array(); $cstArchivedStudents2014->DietaryRequirements->ViewAttrs = array(); $cstArchivedStudents2014->DietaryRequirements->EditAttrs = array();
// CVFile
$cstArchivedStudents2014->CVFile->CellCssStyle = ""; $cstArchivedStudents2014->CVFile->CellCssClass = "";
$cstArchivedStudents2014->CVFile->CellAttrs = array(); $cstArchivedStudents2014->CVFile->ViewAttrs = array(); $cstArchivedStudents2014->CVFile->EditAttrs = array();
// QualCertificate1
$cstArchivedStudents2014->QualCertificate1->CellCssStyle = ""; $cstArchivedStudents2014->QualCertificate1->CellCssClass = "";
$cstArchivedStudents2014->QualCertificate1->CellAttrs = array(); $cstArchivedStudents2014->QualCertificate1->ViewAttrs = array(); $cstArchivedStudents2014->QualCertificate1->EditAttrs = array();
// QualCertificate2
$cstArchivedStudents2014->QualCertificate2->CellCssStyle = ""; $cstArchivedStudents2014->QualCertificate2->CellCssClass = "";
$cstArchivedStudents2014->QualCertificate2->CellAttrs = array(); $cstArchivedStudents2014->QualCertificate2->ViewAttrs = array(); $cstArchivedStudents2014->QualCertificate2->EditAttrs = array();
// QualCertificate3
$cstArchivedStudents2014->QualCertificate3->CellCssStyle = ""; $cstArchivedStudents2014->QualCertificate3->CellCssClass = "";
$cstArchivedStudents2014->QualCertificate3->CellAttrs = array(); $cstArchivedStudents2014->QualCertificate3->ViewAttrs = array(); $cstArchivedStudents2014->QualCertificate3->EditAttrs = array();
// MemorandumFile
$cstArchivedStudents2014->MemorandumFile->CellCssStyle = ""; $cstArchivedStudents2014->MemorandumFile->CellCssClass = "";
$cstArchivedStudents2014->MemorandumFile->CellAttrs = array(); $cstArchivedStudents2014->MemorandumFile->ViewAttrs = array(); $cstArchivedStudents2014->MemorandumFile->EditAttrs = array();
// AgreementFile
$cstArchivedStudents2014->AgreementFile->CellCssStyle = ""; $cstArchivedStudents2014->AgreementFile->CellCssClass = "";
$cstArchivedStudents2014->AgreementFile->CellAttrs = array(); $cstArchivedStudents2014->AgreementFile->ViewAttrs = array(); $cstArchivedStudents2014->AgreementFile->EditAttrs = array();
// OrderNo
$cstArchivedStudents2014->OrderNo->CellCssStyle = ""; $cstArchivedStudents2014->OrderNo->CellCssClass = "";
$cstArchivedStudents2014->OrderNo->CellAttrs = array(); $cstArchivedStudents2014->OrderNo->ViewAttrs = array(); $cstArchivedStudents2014->OrderNo->EditAttrs = array();
// BookedByName
$cstArchivedStudents2014->BookedByName->CellCssStyle = ""; $cstArchivedStudents2014->BookedByName->CellCssClass = "";
$cstArchivedStudents2014->BookedByName->CellAttrs = array(); $cstArchivedStudents2014->BookedByName->ViewAttrs = array(); $cstArchivedStudents2014->BookedByName->EditAttrs = array();
// BookedByDesignation
$cstArchivedStudents2014->BookedByDesignation->CellCssStyle = ""; $cstArchivedStudents2014->BookedByDesignation->CellCssClass = "";
$cstArchivedStudents2014->BookedByDesignation->CellAttrs = array(); $cstArchivedStudents2014->BookedByDesignation->ViewAttrs = array(); $cstArchivedStudents2014->BookedByDesignation->EditAttrs = array();
// BookedByTelNo
$cstArchivedStudents2014->BookedByTelNo->CellCssStyle = ""; $cstArchivedStudents2014->BookedByTelNo->CellCssClass = "";
$cstArchivedStudents2014->BookedByTelNo->CellAttrs = array(); $cstArchivedStudents2014->BookedByTelNo->ViewAttrs = array(); $cstArchivedStudents2014->BookedByTelNo->EditAttrs = array();
// BookedByFaxNo
$cstArchivedStudents2014->BookedByFaxNo->CellCssStyle = ""; $cstArchivedStudents2014->BookedByFaxNo->CellCssClass = "";
$cstArchivedStudents2014->BookedByFaxNo->CellAttrs = array(); $cstArchivedStudents2014->BookedByFaxNo->ViewAttrs = array(); $cstArchivedStudents2014->BookedByFaxNo->EditAttrs = array();
// BookedByCellNo
$cstArchivedStudents2014->BookedByCellNo->CellCssStyle = ""; $cstArchivedStudents2014->BookedByCellNo->CellCssClass = "";
$cstArchivedStudents2014->BookedByCellNo->CellAttrs = array(); $cstArchivedStudents2014->BookedByCellNo->ViewAttrs = array(); $cstArchivedStudents2014->BookedByCellNo->EditAttrs = array();
// BookedByEmail
$cstArchivedStudents2014->BookedByEmail->CellCssStyle = ""; $cstArchivedStudents2014->BookedByEmail->CellCssClass = "";
$cstArchivedStudents2014->BookedByEmail->CellAttrs = array(); $cstArchivedStudents2014->BookedByEmail->ViewAttrs = array(); $cstArchivedStudents2014->BookedByEmail->EditAttrs = array();
// WebUsername
$cstArchivedStudents2014->WebUsername->CellCssStyle = ""; $cstArchivedStudents2014->WebUsername->CellCssClass = "";
$cstArchivedStudents2014->WebUsername->CellAttrs = array(); $cstArchivedStudents2014->WebUsername->ViewAttrs = array(); $cstArchivedStudents2014->WebUsername->EditAttrs = array();
// WebPassword
$cstArchivedStudents2014->WebPassword->CellCssStyle = ""; $cstArchivedStudents2014->WebPassword->CellCssClass = "";
$cstArchivedStudents2014->WebPassword->CellAttrs = array(); $cstArchivedStudents2014->WebPassword->ViewAttrs = array(); $cstArchivedStudents2014->WebPassword->EditAttrs = array();
// MentorName
$cstArchivedStudents2014->MentorName->CellCssStyle = ""; $cstArchivedStudents2014->MentorName->CellCssClass = "";
$cstArchivedStudents2014->MentorName->CellAttrs = array(); $cstArchivedStudents2014->MentorName->ViewAttrs = array(); $cstArchivedStudents2014->MentorName->EditAttrs = array();
// MentorDesig
$cstArchivedStudents2014->MentorDesig->CellCssStyle = ""; $cstArchivedStudents2014->MentorDesig->CellCssClass = "";
$cstArchivedStudents2014->MentorDesig->CellAttrs = array(); $cstArchivedStudents2014->MentorDesig->ViewAttrs = array(); $cstArchivedStudents2014->MentorDesig->EditAttrs = array();
// MentorTel
$cstArchivedStudents2014->MentorTel->CellCssStyle = ""; $cstArchivedStudents2014->MentorTel->CellCssClass = "";
$cstArchivedStudents2014->MentorTel->CellAttrs = array(); $cstArchivedStudents2014->MentorTel->ViewAttrs = array(); $cstArchivedStudents2014->MentorTel->EditAttrs = array();
// MentorCell
$cstArchivedStudents2014->MentorCell->CellCssStyle = ""; $cstArchivedStudents2014->MentorCell->CellCssClass = "";
$cstArchivedStudents2014->MentorCell->CellAttrs = array(); $cstArchivedStudents2014->MentorCell->ViewAttrs = array(); $cstArchivedStudents2014->MentorCell->EditAttrs = array();
// MentorEmail
$cstArchivedStudents2014->MentorEmail->CellCssStyle = ""; $cstArchivedStudents2014->MentorEmail->CellCssClass = "";
$cstArchivedStudents2014->MentorEmail->CellAttrs = array(); $cstArchivedStudents2014->MentorEmail->ViewAttrs = array(); $cstArchivedStudents2014->MentorEmail->EditAttrs = array();
// HRManagerName
$cstArchivedStudents2014->HRManagerName->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerName->CellCssClass = "";
$cstArchivedStudents2014->HRManagerName->CellAttrs = array(); $cstArchivedStudents2014->HRManagerName->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerName->EditAttrs = array();
// HRManagerDesignation
$cstArchivedStudents2014->HRManagerDesignation->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerDesignation->CellCssClass = "";
$cstArchivedStudents2014->HRManagerDesignation->CellAttrs = array(); $cstArchivedStudents2014->HRManagerDesignation->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerDesignation->EditAttrs = array();
// HRManagerTelNo
$cstArchivedStudents2014->HRManagerTelNo->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerTelNo->CellCssClass = "";
$cstArchivedStudents2014->HRManagerTelNo->CellAttrs = array(); $cstArchivedStudents2014->HRManagerTelNo->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerTelNo->EditAttrs = array();
// HRManagerCellNo
$cstArchivedStudents2014->HRManagerCellNo->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerCellNo->CellCssClass = "";
$cstArchivedStudents2014->HRManagerCellNo->CellAttrs = array(); $cstArchivedStudents2014->HRManagerCellNo->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerCellNo->EditAttrs = array();
// HRManagerEmail
$cstArchivedStudents2014->HRManagerEmail->CellCssStyle = ""; $cstArchivedStudents2014->HRManagerEmail->CellCssClass = "";
$cstArchivedStudents2014->HRManagerEmail->CellAttrs = array(); $cstArchivedStudents2014->HRManagerEmail->ViewAttrs = array(); $cstArchivedStudents2014->HRManagerEmail->EditAttrs = array();
// LengthEmploy
$cstArchivedStudents2014->LengthEmploy->CellCssStyle = ""; $cstArchivedStudents2014->LengthEmploy->CellCssClass = "";
$cstArchivedStudents2014->LengthEmploy->CellAttrs = array(); $cstArchivedStudents2014->LengthEmploy->ViewAttrs = array(); $cstArchivedStudents2014->LengthEmploy->EditAttrs = array();
// BlockAccess
$cstArchivedStudents2014->BlockAccess->CellCssStyle = ""; $cstArchivedStudents2014->BlockAccess->CellCssClass = "";
$cstArchivedStudents2014->BlockAccess->CellAttrs = array(); $cstArchivedStudents2014->BlockAccess->ViewAttrs = array(); $cstArchivedStudents2014->BlockAccess->EditAttrs = array();
// Archived
$cstArchivedStudents2014->Archived->CellCssStyle = ""; $cstArchivedStudents2014->Archived->CellCssClass = "";
$cstArchivedStudents2014->Archived->CellAttrs = array(); $cstArchivedStudents2014->Archived->ViewAttrs = array(); $cstArchivedStudents2014->Archived->EditAttrs = array();
// ResultLetter
$cstArchivedStudents2014->ResultLetter->CellCssStyle = ""; $cstArchivedStudents2014->ResultLetter->CellCssClass = "";
$cstArchivedStudents2014->ResultLetter->CellAttrs = array(); $cstArchivedStudents2014->ResultLetter->ViewAttrs = array(); $cstArchivedStudents2014->ResultLetter->EditAttrs = array();
// Achieved
$cstArchivedStudents2014->Achieved->CellCssStyle = ""; $cstArchivedStudents2014->Achieved->CellCssClass = "";
$cstArchivedStudents2014->Achieved->CellAttrs = array(); $cstArchivedStudents2014->Achieved->ViewAttrs = array(); $cstArchivedStudents2014->Achieved->EditAttrs = array();
// IDFile
$cstArchivedStudents2014->IDFile->CellCssStyle = ""; $cstArchivedStudents2014->IDFile->CellCssClass = "";
$cstArchivedStudents2014->IDFile->CellAttrs = array(); $cstArchivedStudents2014->IDFile->ViewAttrs = array(); $cstArchivedStudents2014->IDFile->EditAttrs = array();
// ReasonForLeaving
$cstArchivedStudents2014->ReasonForLeaving->CellCssStyle = ""; $cstArchivedStudents2014->ReasonForLeaving->CellCssClass = "";
$cstArchivedStudents2014->ReasonForLeaving->CellAttrs = array(); $cstArchivedStudents2014->ReasonForLeaving->ViewAttrs = array(); $cstArchivedStudents2014->ReasonForLeaving->EditAttrs = array();
if ($cstArchivedStudents2014->RowType == EW_ROWTYPE_VIEW) { // View row
// CCEStudentID
$cstArchivedStudents2014->CCEStudentID->ViewValue = $cstArchivedStudents2014->CCEStudentID->CurrentValue;
$cstArchivedStudents2014->CCEStudentID->CssStyle = "";
$cstArchivedStudents2014->CCEStudentID->CssClass = "";
$cstArchivedStudents2014->CCEStudentID->ViewCustomAttributes = "";
// Title
$cstArchivedStudents2014->Title->ViewValue = $cstArchivedStudents2014->Title->CurrentValue;
$cstArchivedStudents2014->Title->CssStyle = "";
$cstArchivedStudents2014->Title->CssClass = "";
$cstArchivedStudents2014->Title->ViewCustomAttributes = "";
// FirstName
$cstArchivedStudents2014->FirstName->ViewValue = $cstArchivedStudents2014->FirstName->CurrentValue;
$cstArchivedStudents2014->FirstName->CssStyle = "";
$cstArchivedStudents2014->FirstName->CssClass = "";
$cstArchivedStudents2014->FirstName->ViewCustomAttributes = "";
// Surname
$cstArchivedStudents2014->Surname->ViewValue = $cstArchivedStudents2014->Surname->CurrentValue;
$cstArchivedStudents2014->Surname->CssStyle = "";
$cstArchivedStudents2014->Surname->CssClass = "";
$cstArchivedStudents2014->Surname->ViewCustomAttributes = "";
// KnownAs
$cstArchivedStudents2014->KnownAs->ViewValue = $cstArchivedStudents2014->KnownAs->CurrentValue;
$cstArchivedStudents2014->KnownAs->CssStyle = "";
$cstArchivedStudents2014->KnownAs->CssClass = "";
$cstArchivedStudents2014->KnownAs->ViewCustomAttributes = "";
// Organisation
$cstArchivedStudents2014->Organisation->ViewValue = $cstArchivedStudents2014->Organisation->CurrentValue;
$cstArchivedStudents2014->Organisation->CssStyle = "";
$cstArchivedStudents2014->Organisation->CssClass = "";
$cstArchivedStudents2014->Organisation->ViewCustomAttributes = "";
// OrganisationType
$cstArchivedStudents2014->OrganisationType->ViewValue = $cstArchivedStudents2014->OrganisationType->CurrentValue;
$cstArchivedStudents2014->OrganisationType->CssStyle = "";
$cstArchivedStudents2014->OrganisationType->CssClass = "";
$cstArchivedStudents2014->OrganisationType->ViewCustomAttributes = "";
// StudentNumber
$cstArchivedStudents2014->StudentNumber->ViewValue = $cstArchivedStudents2014->StudentNumber->CurrentValue;
$cstArchivedStudents2014->StudentNumber->CssStyle = "";
$cstArchivedStudents2014->StudentNumber->CssClass = "";
$cstArchivedStudents2014->StudentNumber->ViewCustomAttributes = "";
// CCEFacilitatorID
if (strval($cstArchivedStudents2014->CCEFacilitatorID->CurrentValue) <> "") {
$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($cstArchivedStudents2014->CCEFacilitatorID->CurrentValue) . "";
$sSqlWrk = "SELECT `FacilitatorName` FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudents2014->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
$rswrk->Close();
} else {
$cstArchivedStudents2014->CCEFacilitatorID->ViewValue = $cstArchivedStudents2014->CCEFacilitatorID->CurrentValue;
}
} else {
$cstArchivedStudents2014->CCEFacilitatorID->ViewValue = NULL;
}
$cstArchivedStudents2014->CCEFacilitatorID->CssStyle = "";
$cstArchivedStudents2014->CCEFacilitatorID->CssClass = "";
$cstArchivedStudents2014->CCEFacilitatorID->ViewCustomAttributes = "";
// Project
if (strval($cstArchivedStudents2014->Project->CurrentValue) <> "") {
$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($cstArchivedStudents2014->Project->CurrentValue) . "";
$sSqlWrk = "SELECT `Project` FROM `CCEProjects`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudents2014->Project->ViewValue = $rswrk->fields('Project');
$rswrk->Close();
} else {
$cstArchivedStudents2014->Project->ViewValue = $cstArchivedStudents2014->Project->CurrentValue;
}
} else {
$cstArchivedStudents2014->Project->ViewValue = NULL;
}
$cstArchivedStudents2014->Project->CssStyle = "";
$cstArchivedStudents2014->Project->CssClass = "";
$cstArchivedStudents2014->Project->ViewCustomAttributes = "";
// ProjectDiscipline
$cstArchivedStudents2014->ProjectDiscipline->ViewValue = $cstArchivedStudents2014->ProjectDiscipline->CurrentValue;
$cstArchivedStudents2014->ProjectDiscipline->CssStyle = "";
$cstArchivedStudents2014->ProjectDiscipline->CssClass = "";
$cstArchivedStudents2014->ProjectDiscipline->ViewCustomAttributes = "";
// IDNumber
$cstArchivedStudents2014->IDNumber->ViewValue = $cstArchivedStudents2014->IDNumber->CurrentValue;
$cstArchivedStudents2014->IDNumber->CssStyle = "";
$cstArchivedStudents2014->IDNumber->CssClass = "";
$cstArchivedStudents2014->IDNumber->ViewCustomAttributes = "mso-number-format:General";
// ECSANumber
$cstArchivedStudents2014->ECSANumber->ViewValue = $cstArchivedStudents2014->ECSANumber->CurrentValue;
$cstArchivedStudents2014->ECSANumber->CssStyle = "";
$cstArchivedStudents2014->ECSANumber->CssClass = "";
$cstArchivedStudents2014->ECSANumber->ViewCustomAttributes = "";
// Age
$cstArchivedStudents2014->Age->ViewValue = $cstArchivedStudents2014->Age->CurrentValue;
$cstArchivedStudents2014->Age->CssStyle = "";
$cstArchivedStudents2014->Age->CssClass = "";
$cstArchivedStudents2014->Age->ViewCustomAttributes = "";
// HighestQual
$cstArchivedStudents2014->HighestQual->ViewValue = $cstArchivedStudents2014->HighestQual->CurrentValue;
$cstArchivedStudents2014->HighestQual->CssStyle = "";
$cstArchivedStudents2014->HighestQual->CssClass = "";
$cstArchivedStudents2014->HighestQual->ViewCustomAttributes = "";
// AreaDiscipline
$cstArchivedStudents2014->AreaDiscipline->ViewValue = $cstArchivedStudents2014->AreaDiscipline->CurrentValue;
$cstArchivedStudents2014->AreaDiscipline->CssStyle = "";
$cstArchivedStudents2014->AreaDiscipline->CssClass = "";
$cstArchivedStudents2014->AreaDiscipline->ViewCustomAttributes = "";
// Telephone
$cstArchivedStudents2014->Telephone->ViewValue = $cstArchivedStudents2014->Telephone->CurrentValue;
$cstArchivedStudents2014->Telephone->CssStyle = "";
$cstArchivedStudents2014->Telephone->CssClass = "";
$cstArchivedStudents2014->Telephone->ViewCustomAttributes = "mso-number-format:General";
// Cellphone
$cstArchivedStudents2014->Cellphone->ViewValue = $cstArchivedStudents2014->Cellphone->CurrentValue;
$cstArchivedStudents2014->Cellphone->CssStyle = "";
$cstArchivedStudents2014->Cellphone->CssClass = "";
$cstArchivedStudents2014->Cellphone->ViewCustomAttributes = "mso-number-format:General";
// EmailAddress
$cstArchivedStudents2014->EmailAddress->ViewValue = $cstArchivedStudents2014->EmailAddress->CurrentValue;
$cstArchivedStudents2014->EmailAddress->CssStyle = "";
$cstArchivedStudents2014->EmailAddress->CssClass = "";
$cstArchivedStudents2014->EmailAddress->ViewCustomAttributes = "";
// HomeAddress
$cstArchivedStudents2014->HomeAddress->ViewValue = $cstArchivedStudents2014->HomeAddress->CurrentValue;
$cstArchivedStudents2014->HomeAddress->CssStyle = "";
$cstArchivedStudents2014->HomeAddress->CssClass = "";
$cstArchivedStudents2014->HomeAddress->ViewCustomAttributes = "";
// WorkAddress
$cstArchivedStudents2014->WorkAddress->ViewValue = $cstArchivedStudents2014->WorkAddress->CurrentValue;
$cstArchivedStudents2014->WorkAddress->CssStyle = "";
$cstArchivedStudents2014->WorkAddress->CssClass = "";
$cstArchivedStudents2014->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$cstArchivedStudents2014->PostalAddress->ViewValue = $cstArchivedStudents2014->PostalAddress->CurrentValue;
$cstArchivedStudents2014->PostalAddress->CssStyle = "";
$cstArchivedStudents2014->PostalAddress->CssClass = "";
$cstArchivedStudents2014->PostalAddress->ViewCustomAttributes = "";
// Designation
$cstArchivedStudents2014->Designation->ViewValue = $cstArchivedStudents2014->Designation->CurrentValue;
$cstArchivedStudents2014->Designation->CssStyle = "";
$cstArchivedStudents2014->Designation->CssClass = "";
$cstArchivedStudents2014->Designation->ViewCustomAttributes = "";
// Department
$cstArchivedStudents2014->Department->ViewValue = $cstArchivedStudents2014->Department->CurrentValue;
$cstArchivedStudents2014->Department->CssStyle = "";
$cstArchivedStudents2014->Department->CssClass = "";
$cstArchivedStudents2014->Department->ViewCustomAttributes = "";
// CESAAccountNo
$cstArchivedStudents2014->CESAAccountNo->ViewValue = $cstArchivedStudents2014->CESAAccountNo->CurrentValue;
$cstArchivedStudents2014->CESAAccountNo->CssStyle = "";
$cstArchivedStudents2014->CESAAccountNo->CssClass = "";
$cstArchivedStudents2014->CESAAccountNo->ViewCustomAttributes = "";
// VATNo
$cstArchivedStudents2014->VATNo->ViewValue = $cstArchivedStudents2014->VATNo->CurrentValue;
$cstArchivedStudents2014->VATNo->CssStyle = "";
$cstArchivedStudents2014->VATNo->CssClass = "";
$cstArchivedStudents2014->VATNo->ViewCustomAttributes = "mso-number-format:General";
// DietaryRequirements
$cstArchivedStudents2014->DietaryRequirements->ViewValue = $cstArchivedStudents2014->DietaryRequirements->CurrentValue;
$cstArchivedStudents2014->DietaryRequirements->CssStyle = "";
$cstArchivedStudents2014->DietaryRequirements->CssClass = "";
$cstArchivedStudents2014->DietaryRequirements->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) {
$cstArchivedStudents2014->CVFile->ViewValue = $cstArchivedStudents2014->CVFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->CVFile->ViewValue = "";
}
$cstArchivedStudents2014->CVFile->CssStyle = "";
$cstArchivedStudents2014->CVFile->CssClass = "";
$cstArchivedStudents2014->CVFile->ViewCustomAttributes = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate1->ViewValue = $cstArchivedStudents2014->QualCertificate1->Upload->DbValue;
} else {
$cstArchivedStudents2014->QualCertificate1->ViewValue = "";
}
$cstArchivedStudents2014->QualCertificate1->CssStyle = "";
$cstArchivedStudents2014->QualCertificate1->CssClass = "";
$cstArchivedStudents2014->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate2->ViewValue = $cstArchivedStudents2014->QualCertificate2->Upload->DbValue;
} else {
$cstArchivedStudents2014->QualCertificate2->ViewValue = "";
}
$cstArchivedStudents2014->QualCertificate2->CssStyle = "";
$cstArchivedStudents2014->QualCertificate2->CssClass = "";
$cstArchivedStudents2014->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate3->ViewValue = $cstArchivedStudents2014->QualCertificate3->Upload->DbValue;
} else {
$cstArchivedStudents2014->QualCertificate3->ViewValue = "";
}
$cstArchivedStudents2014->QualCertificate3->CssStyle = "";
$cstArchivedStudents2014->QualCertificate3->CssClass = "";
$cstArchivedStudents2014->QualCertificate3->ViewCustomAttributes = "";
// MemorandumFile
if (!ew_Empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) {
$cstArchivedStudents2014->MemorandumFile->ViewValue = $cstArchivedStudents2014->MemorandumFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->MemorandumFile->ViewValue = "";
}
$cstArchivedStudents2014->MemorandumFile->CssStyle = "";
$cstArchivedStudents2014->MemorandumFile->CssClass = "";
$cstArchivedStudents2014->MemorandumFile->ViewCustomAttributes = "";
// AgreementFile
if (!ew_Empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) {
$cstArchivedStudents2014->AgreementFile->ViewValue = $cstArchivedStudents2014->AgreementFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->AgreementFile->ViewValue = "";
}
$cstArchivedStudents2014->AgreementFile->CssStyle = "";
$cstArchivedStudents2014->AgreementFile->CssClass = "";
$cstArchivedStudents2014->AgreementFile->ViewCustomAttributes = "";
// OrderNo
$cstArchivedStudents2014->OrderNo->ViewValue = $cstArchivedStudents2014->OrderNo->CurrentValue;
$cstArchivedStudents2014->OrderNo->CssStyle = "";
$cstArchivedStudents2014->OrderNo->CssClass = "";
$cstArchivedStudents2014->OrderNo->ViewCustomAttributes = "";
// BookedByName
$cstArchivedStudents2014->BookedByName->ViewValue = $cstArchivedStudents2014->BookedByName->CurrentValue;
$cstArchivedStudents2014->BookedByName->CssStyle = "";
$cstArchivedStudents2014->BookedByName->CssClass = "";
$cstArchivedStudents2014->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$cstArchivedStudents2014->BookedByDesignation->ViewValue = $cstArchivedStudents2014->BookedByDesignation->CurrentValue;
$cstArchivedStudents2014->BookedByDesignation->CssStyle = "";
$cstArchivedStudents2014->BookedByDesignation->CssClass = "";
$cstArchivedStudents2014->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$cstArchivedStudents2014->BookedByTelNo->ViewValue = $cstArchivedStudents2014->BookedByTelNo->CurrentValue;
$cstArchivedStudents2014->BookedByTelNo->CssStyle = "";
$cstArchivedStudents2014->BookedByTelNo->CssClass = "";
$cstArchivedStudents2014->BookedByTelNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByFaxNo
$cstArchivedStudents2014->BookedByFaxNo->ViewValue = $cstArchivedStudents2014->BookedByFaxNo->CurrentValue;
$cstArchivedStudents2014->BookedByFaxNo->CssStyle = "";
$cstArchivedStudents2014->BookedByFaxNo->CssClass = "";
$cstArchivedStudents2014->BookedByFaxNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByCellNo
$cstArchivedStudents2014->BookedByCellNo->ViewValue = $cstArchivedStudents2014->BookedByCellNo->CurrentValue;
$cstArchivedStudents2014->BookedByCellNo->CssStyle = "";
$cstArchivedStudents2014->BookedByCellNo->CssClass = "";
$cstArchivedStudents2014->BookedByCellNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByEmail
$cstArchivedStudents2014->BookedByEmail->ViewValue = $cstArchivedStudents2014->BookedByEmail->CurrentValue;
$cstArchivedStudents2014->BookedByEmail->CssStyle = "";
$cstArchivedStudents2014->BookedByEmail->CssClass = "";
$cstArchivedStudents2014->BookedByEmail->ViewCustomAttributes = "";
// WebUsername
$cstArchivedStudents2014->WebUsername->ViewValue = $cstArchivedStudents2014->WebUsername->CurrentValue;
$cstArchivedStudents2014->WebUsername->CssStyle = "";
$cstArchivedStudents2014->WebUsername->CssClass = "";
$cstArchivedStudents2014->WebUsername->ViewCustomAttributes = "";
// WebPassword
$cstArchivedStudents2014->WebPassword->ViewValue = $cstArchivedStudents2014->WebPassword->CurrentValue;
$cstArchivedStudents2014->WebPassword->CssStyle = "";
$cstArchivedStudents2014->WebPassword->CssClass = "";
$cstArchivedStudents2014->WebPassword->ViewCustomAttributes = "";
// MentorName
$cstArchivedStudents2014->MentorName->ViewValue = $cstArchivedStudents2014->MentorName->CurrentValue;
$cstArchivedStudents2014->MentorName->CssStyle = "";
$cstArchivedStudents2014->MentorName->CssClass = "";
$cstArchivedStudents2014->MentorName->ViewCustomAttributes = "";
// MentorDesig
$cstArchivedStudents2014->MentorDesig->ViewValue = $cstArchivedStudents2014->MentorDesig->CurrentValue;
$cstArchivedStudents2014->MentorDesig->CssStyle = "";
$cstArchivedStudents2014->MentorDesig->CssClass = "";
$cstArchivedStudents2014->MentorDesig->ViewCustomAttributes = "";
// MentorTel
$cstArchivedStudents2014->MentorTel->ViewValue = $cstArchivedStudents2014->MentorTel->CurrentValue;
$cstArchivedStudents2014->MentorTel->CssStyle = "";
$cstArchivedStudents2014->MentorTel->CssClass = "";
$cstArchivedStudents2014->MentorTel->ViewCustomAttributes = "";
// MentorCell
$cstArchivedStudents2014->MentorCell->ViewValue = $cstArchivedStudents2014->MentorCell->CurrentValue;
$cstArchivedStudents2014->MentorCell->CssStyle = "";
$cstArchivedStudents2014->MentorCell->CssClass = "";
$cstArchivedStudents2014->MentorCell->ViewCustomAttributes = "";
// MentorEmail
$cstArchivedStudents2014->MentorEmail->ViewValue = $cstArchivedStudents2014->MentorEmail->CurrentValue;
$cstArchivedStudents2014->MentorEmail->CssStyle = "";
$cstArchivedStudents2014->MentorEmail->CssClass = "";
$cstArchivedStudents2014->MentorEmail->ViewCustomAttributes = "";
// HRManagerName
$cstArchivedStudents2014->HRManagerName->ViewValue = $cstArchivedStudents2014->HRManagerName->CurrentValue;
$cstArchivedStudents2014->HRManagerName->CssStyle = "";
$cstArchivedStudents2014->HRManagerName->CssClass = "";
$cstArchivedStudents2014->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$cstArchivedStudents2014->HRManagerDesignation->ViewValue = $cstArchivedStudents2014->HRManagerDesignation->CurrentValue;
$cstArchivedStudents2014->HRManagerDesignation->CssStyle = "";
$cstArchivedStudents2014->HRManagerDesignation->CssClass = "";
$cstArchivedStudents2014->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$cstArchivedStudents2014->HRManagerTelNo->ViewValue = $cstArchivedStudents2014->HRManagerTelNo->CurrentValue;
$cstArchivedStudents2014->HRManagerTelNo->CssStyle = "";
$cstArchivedStudents2014->HRManagerTelNo->CssClass = "";
$cstArchivedStudents2014->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$cstArchivedStudents2014->HRManagerCellNo->ViewValue = $cstArchivedStudents2014->HRManagerCellNo->CurrentValue;
$cstArchivedStudents2014->HRManagerCellNo->CssStyle = "";
$cstArchivedStudents2014->HRManagerCellNo->CssClass = "";
$cstArchivedStudents2014->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$cstArchivedStudents2014->HRManagerEmail->ViewValue = $cstArchivedStudents2014->HRManagerEmail->CurrentValue;
$cstArchivedStudents2014->HRManagerEmail->CssStyle = "";
$cstArchivedStudents2014->HRManagerEmail->CssClass = "";
$cstArchivedStudents2014->HRManagerEmail->ViewCustomAttributes = "";
// LengthEmploy
$cstArchivedStudents2014->LengthEmploy->ViewValue = $cstArchivedStudents2014->LengthEmploy->CurrentValue;
$cstArchivedStudents2014->LengthEmploy->CssStyle = "";
$cstArchivedStudents2014->LengthEmploy->CssClass = "";
$cstArchivedStudents2014->LengthEmploy->ViewCustomAttributes = "";
// BlockAccess
if (strval($cstArchivedStudents2014->BlockAccess->CurrentValue) <> "") {
switch ($cstArchivedStudents2014->BlockAccess->CurrentValue) {
case "y":
$cstArchivedStudents2014->BlockAccess->ViewValue = "Yes";
break;
case "n":
$cstArchivedStudents2014->BlockAccess->ViewValue = "No";
break;
default:
$cstArchivedStudents2014->BlockAccess->ViewValue = $cstArchivedStudents2014->BlockAccess->CurrentValue;
}
} else {
$cstArchivedStudents2014->BlockAccess->ViewValue = NULL;
}
$cstArchivedStudents2014->BlockAccess->CssStyle = "";
$cstArchivedStudents2014->BlockAccess->CssClass = "";
$cstArchivedStudents2014->BlockAccess->ViewCustomAttributes = "";
// Archived
if (strval($cstArchivedStudents2014->Archived->CurrentValue) <> "") {
$cstArchivedStudents2014->Archived->ViewValue = "";
$arwrk = explode(",", strval($cstArchivedStudents2014->Archived->CurrentValue));
for ($ari = 0; $ari < count($arwrk); $ari++) {
switch (trim($arwrk[$ari])) {
case "1":
$cstArchivedStudents2014->Archived->ViewValue .= "Yes";
break;
default:
$cstArchivedStudents2014->Archived->ViewValue .= trim($arwrk[$ari]);
}
if ($ari < count($arwrk)-1) $cstArchivedStudents2014->Archived->ViewValue .= ew_ViewOptionSeparator($ari);
}
} else {
$cstArchivedStudents2014->Archived->ViewValue = NULL;
}
$cstArchivedStudents2014->Archived->CssStyle = "";
$cstArchivedStudents2014->Archived->CssClass = "";
$cstArchivedStudents2014->Archived->ViewCustomAttributes = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) {
$cstArchivedStudents2014->ResultLetter->ViewValue = $cstArchivedStudents2014->ResultLetter->Upload->DbValue;
} else {
$cstArchivedStudents2014->ResultLetter->ViewValue = "";
}
$cstArchivedStudents2014->ResultLetter->CssStyle = "";
$cstArchivedStudents2014->ResultLetter->CssClass = "";
$cstArchivedStudents2014->ResultLetter->ViewCustomAttributes = "";
// Achieved
if (strval($cstArchivedStudents2014->Achieved->CurrentValue) <> "") {
$cstArchivedStudents2014->Achieved->ViewValue = "";
$arwrk = explode(",", strval($cstArchivedStudents2014->Achieved->CurrentValue));
for ($ari = 0; $ari < count($arwrk); $ari++) {
switch (trim($arwrk[$ari])) {
case "1":
$cstArchivedStudents2014->Achieved->ViewValue .= "Yes";
break;
default:
$cstArchivedStudents2014->Achieved->ViewValue .= trim($arwrk[$ari]);
}
if ($ari < count($arwrk)-1) $cstArchivedStudents2014->Achieved->ViewValue .= ew_ViewOptionSeparator($ari);
}
} else {
$cstArchivedStudents2014->Achieved->ViewValue = NULL;
}
$cstArchivedStudents2014->Achieved->CssStyle = "";
$cstArchivedStudents2014->Achieved->CssClass = "";
$cstArchivedStudents2014->Achieved->ViewCustomAttributes = "";
// IDFile
if (!ew_Empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) {
$cstArchivedStudents2014->IDFile->ViewValue = $cstArchivedStudents2014->IDFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->IDFile->ViewValue = "";
}
$cstArchivedStudents2014->IDFile->CssStyle = "";
$cstArchivedStudents2014->IDFile->CssClass = "";
$cstArchivedStudents2014->IDFile->ViewCustomAttributes = "";
// ReasonForLeaving
$cstArchivedStudents2014->ReasonForLeaving->ViewValue = $cstArchivedStudents2014->ReasonForLeaving->CurrentValue;
$cstArchivedStudents2014->ReasonForLeaving->CssStyle = "";
$cstArchivedStudents2014->ReasonForLeaving->CssClass = "";
$cstArchivedStudents2014->ReasonForLeaving->ViewCustomAttributes = "";
// CCEStudentID
$cstArchivedStudents2014->CCEStudentID->HrefValue = "";
$cstArchivedStudents2014->CCEStudentID->TooltipValue = "";
// Title
$cstArchivedStudents2014->Title->HrefValue = "";
$cstArchivedStudents2014->Title->TooltipValue = "";
// FirstName
$cstArchivedStudents2014->FirstName->HrefValue = "";
$cstArchivedStudents2014->FirstName->TooltipValue = "";
// Surname
$cstArchivedStudents2014->Surname->HrefValue = "";
$cstArchivedStudents2014->Surname->TooltipValue = "";
// KnownAs
$cstArchivedStudents2014->KnownAs->HrefValue = "";
$cstArchivedStudents2014->KnownAs->TooltipValue = "";
// Organisation
$cstArchivedStudents2014->Organisation->HrefValue = "";
$cstArchivedStudents2014->Organisation->TooltipValue = "";
// OrganisationType
$cstArchivedStudents2014->OrganisationType->HrefValue = "";
$cstArchivedStudents2014->OrganisationType->TooltipValue = "";
// StudentNumber
$cstArchivedStudents2014->StudentNumber->HrefValue = "";
$cstArchivedStudents2014->StudentNumber->TooltipValue = "";
// CCEFacilitatorID
$cstArchivedStudents2014->CCEFacilitatorID->HrefValue = "";
$cstArchivedStudents2014->CCEFacilitatorID->TooltipValue = "";
// Project
$cstArchivedStudents2014->Project->HrefValue = "";
$cstArchivedStudents2014->Project->TooltipValue = "";
// ProjectDiscipline
$cstArchivedStudents2014->ProjectDiscipline->HrefValue = "";
$cstArchivedStudents2014->ProjectDiscipline->TooltipValue = "";
// IDNumber
$cstArchivedStudents2014->IDNumber->HrefValue = "";
$cstArchivedStudents2014->IDNumber->TooltipValue = "";
// ECSANumber
$cstArchivedStudents2014->ECSANumber->HrefValue = "";
$cstArchivedStudents2014->ECSANumber->TooltipValue = "";
// Age
$cstArchivedStudents2014->Age->HrefValue = "";
$cstArchivedStudents2014->Age->TooltipValue = "";
// HighestQual
$cstArchivedStudents2014->HighestQual->HrefValue = "";
$cstArchivedStudents2014->HighestQual->TooltipValue = "";
// AreaDiscipline
$cstArchivedStudents2014->AreaDiscipline->HrefValue = "";
$cstArchivedStudents2014->AreaDiscipline->TooltipValue = "";
// Telephone
$cstArchivedStudents2014->Telephone->HrefValue = "";
$cstArchivedStudents2014->Telephone->TooltipValue = "";
// Cellphone
$cstArchivedStudents2014->Cellphone->HrefValue = "";
$cstArchivedStudents2014->Cellphone->TooltipValue = "";
// EmailAddress
$cstArchivedStudents2014->EmailAddress->HrefValue = "";
$cstArchivedStudents2014->EmailAddress->TooltipValue = "";
// HomeAddress
$cstArchivedStudents2014->HomeAddress->HrefValue = "";
$cstArchivedStudents2014->HomeAddress->TooltipValue = "";
// WorkAddress
$cstArchivedStudents2014->WorkAddress->HrefValue = "";
$cstArchivedStudents2014->WorkAddress->TooltipValue = "";
// PostalAddress
$cstArchivedStudents2014->PostalAddress->HrefValue = "";
$cstArchivedStudents2014->PostalAddress->TooltipValue = "";
// Designation
$cstArchivedStudents2014->Designation->HrefValue = "";
$cstArchivedStudents2014->Designation->TooltipValue = "";
// Department
$cstArchivedStudents2014->Department->HrefValue = "";
$cstArchivedStudents2014->Department->TooltipValue = "";
// CESAAccountNo
$cstArchivedStudents2014->CESAAccountNo->HrefValue = "";
$cstArchivedStudents2014->CESAAccountNo->TooltipValue = "";
// VATNo
$cstArchivedStudents2014->VATNo->HrefValue = "";
$cstArchivedStudents2014->VATNo->TooltipValue = "";
// DietaryRequirements
$cstArchivedStudents2014->DietaryRequirements->HrefValue = "";
$cstArchivedStudents2014->DietaryRequirements->TooltipValue = "";
// CVFile
if (!ew_Empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) {
$cstArchivedStudents2014->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->CVFile->UploadPath) . ((!empty($cstArchivedStudents2014->CVFile->ViewValue)) ? $cstArchivedStudents2014->CVFile->ViewValue : $cstArchivedStudents2014->CVFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->CVFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->CVFile->HrefValue);
} else {
$cstArchivedStudents2014->CVFile->HrefValue = "";
}
$cstArchivedStudents2014->CVFile->TooltipValue = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->QualCertificate1->UploadPath) . ((!empty($cstArchivedStudents2014->QualCertificate1->ViewValue)) ? $cstArchivedStudents2014->QualCertificate1->ViewValue : $cstArchivedStudents2014->QualCertificate1->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->QualCertificate1->HrefValue);
} else {
$cstArchivedStudents2014->QualCertificate1->HrefValue = "";
}
$cstArchivedStudents2014->QualCertificate1->TooltipValue = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->QualCertificate2->UploadPath) . ((!empty($cstArchivedStudents2014->QualCertificate2->ViewValue)) ? $cstArchivedStudents2014->QualCertificate2->ViewValue : $cstArchivedStudents2014->QualCertificate2->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->QualCertificate2->HrefValue);
} else {
$cstArchivedStudents2014->QualCertificate2->HrefValue = "";
}
$cstArchivedStudents2014->QualCertificate2->TooltipValue = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->QualCertificate3->UploadPath) . ((!empty($cstArchivedStudents2014->QualCertificate3->ViewValue)) ? $cstArchivedStudents2014->QualCertificate3->ViewValue : $cstArchivedStudents2014->QualCertificate3->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->QualCertificate3->HrefValue);
} else {
$cstArchivedStudents2014->QualCertificate3->HrefValue = "";
}
$cstArchivedStudents2014->QualCertificate3->TooltipValue = "";
// MemorandumFile
if (!ew_Empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) {
$cstArchivedStudents2014->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->MemorandumFile->UploadPath) . ((!empty($cstArchivedStudents2014->MemorandumFile->ViewValue)) ? $cstArchivedStudents2014->MemorandumFile->ViewValue : $cstArchivedStudents2014->MemorandumFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->MemorandumFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->MemorandumFile->HrefValue);
} else {
$cstArchivedStudents2014->MemorandumFile->HrefValue = "";
}
$cstArchivedStudents2014->MemorandumFile->TooltipValue = "";
// AgreementFile
if (!ew_Empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) {
$cstArchivedStudents2014->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->AgreementFile->UploadPath) . ((!empty($cstArchivedStudents2014->AgreementFile->ViewValue)) ? $cstArchivedStudents2014->AgreementFile->ViewValue : $cstArchivedStudents2014->AgreementFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->AgreementFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->AgreementFile->HrefValue);
} else {
$cstArchivedStudents2014->AgreementFile->HrefValue = "";
}
$cstArchivedStudents2014->AgreementFile->TooltipValue = "";
// OrderNo
$cstArchivedStudents2014->OrderNo->HrefValue = "";
$cstArchivedStudents2014->OrderNo->TooltipValue = "";
// BookedByName
$cstArchivedStudents2014->BookedByName->HrefValue = "";
$cstArchivedStudents2014->BookedByName->TooltipValue = "";
// BookedByDesignation
$cstArchivedStudents2014->BookedByDesignation->HrefValue = "";
$cstArchivedStudents2014->BookedByDesignation->TooltipValue = "";
// BookedByTelNo
$cstArchivedStudents2014->BookedByTelNo->HrefValue = "";
$cstArchivedStudents2014->BookedByTelNo->TooltipValue = "";
// BookedByFaxNo
$cstArchivedStudents2014->BookedByFaxNo->HrefValue = "";
$cstArchivedStudents2014->BookedByFaxNo->TooltipValue = "";
// BookedByCellNo
$cstArchivedStudents2014->BookedByCellNo->HrefValue = "";
$cstArchivedStudents2014->BookedByCellNo->TooltipValue = "";
// BookedByEmail
$cstArchivedStudents2014->BookedByEmail->HrefValue = "";
$cstArchivedStudents2014->BookedByEmail->TooltipValue = "";
// WebUsername
$cstArchivedStudents2014->WebUsername->HrefValue = "";
$cstArchivedStudents2014->WebUsername->TooltipValue = "";
// WebPassword
$cstArchivedStudents2014->WebPassword->HrefValue = "";
$cstArchivedStudents2014->WebPassword->TooltipValue = "";
// MentorName
$cstArchivedStudents2014->MentorName->HrefValue = "";
$cstArchivedStudents2014->MentorName->TooltipValue = "";
// MentorDesig
$cstArchivedStudents2014->MentorDesig->HrefValue = "";
$cstArchivedStudents2014->MentorDesig->TooltipValue = "";
// MentorTel
$cstArchivedStudents2014->MentorTel->HrefValue = "";
$cstArchivedStudents2014->MentorTel->TooltipValue = "";
// MentorCell
$cstArchivedStudents2014->MentorCell->HrefValue = "";
$cstArchivedStudents2014->MentorCell->TooltipValue = "";
// MentorEmail
$cstArchivedStudents2014->MentorEmail->HrefValue = "";
$cstArchivedStudents2014->MentorEmail->TooltipValue = "";
// HRManagerName
$cstArchivedStudents2014->HRManagerName->HrefValue = "";
$cstArchivedStudents2014->HRManagerName->TooltipValue = "";
// HRManagerDesignation
$cstArchivedStudents2014->HRManagerDesignation->HrefValue = "";
$cstArchivedStudents2014->HRManagerDesignation->TooltipValue = "";
// HRManagerTelNo
$cstArchivedStudents2014->HRManagerTelNo->HrefValue = "";
$cstArchivedStudents2014->HRManagerTelNo->TooltipValue = "";
// HRManagerCellNo
$cstArchivedStudents2014->HRManagerCellNo->HrefValue = "";
$cstArchivedStudents2014->HRManagerCellNo->TooltipValue = "";
// HRManagerEmail
$cstArchivedStudents2014->HRManagerEmail->HrefValue = "";
$cstArchivedStudents2014->HRManagerEmail->TooltipValue = "";
// LengthEmploy
$cstArchivedStudents2014->LengthEmploy->HrefValue = "";
$cstArchivedStudents2014->LengthEmploy->TooltipValue = "";
// BlockAccess
$cstArchivedStudents2014->BlockAccess->HrefValue = "";
$cstArchivedStudents2014->BlockAccess->TooltipValue = "";
// Archived
$cstArchivedStudents2014->Archived->HrefValue = "";
$cstArchivedStudents2014->Archived->TooltipValue = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) {
$cstArchivedStudents2014->ResultLetter->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->ResultLetter->UploadPath) . ((!empty($cstArchivedStudents2014->ResultLetter->ViewValue)) ? $cstArchivedStudents2014->ResultLetter->ViewValue : $cstArchivedStudents2014->ResultLetter->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->ResultLetter->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->ResultLetter->HrefValue);
} else {
$cstArchivedStudents2014->ResultLetter->HrefValue = "";
}
$cstArchivedStudents2014->ResultLetter->TooltipValue = "";
// Achieved
$cstArchivedStudents2014->Achieved->HrefValue = "";
$cstArchivedStudents2014->Achieved->TooltipValue = "";
// IDFile
if (!ew_Empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) {
$cstArchivedStudents2014->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->IDFile->UploadPath) . ((!empty($cstArchivedStudents2014->IDFile->ViewValue)) ? $cstArchivedStudents2014->IDFile->ViewValue : $cstArchivedStudents2014->IDFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->IDFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->IDFile->HrefValue);
} else {
$cstArchivedStudents2014->IDFile->HrefValue = "";
}
$cstArchivedStudents2014->IDFile->TooltipValue = "";
// ReasonForLeaving
$cstArchivedStudents2014->ReasonForLeaving->HrefValue = "";
$cstArchivedStudents2014->ReasonForLeaving->TooltipValue = "";
} elseif ($cstArchivedStudents2014->RowType == EW_ROWTYPE_EDIT) { // Edit row
// CCEStudentID
$cstArchivedStudents2014->CCEStudentID->EditCustomAttributes = "";
// Title
$cstArchivedStudents2014->Title->EditCustomAttributes = "";
$cstArchivedStudents2014->Title->EditValue = ew_HtmlEncode($cstArchivedStudents2014->Title->CurrentValue);
// FirstName
$cstArchivedStudents2014->FirstName->EditCustomAttributes = "";
$cstArchivedStudents2014->FirstName->EditValue = ew_HtmlEncode($cstArchivedStudents2014->FirstName->CurrentValue);
// Surname
$cstArchivedStudents2014->Surname->EditCustomAttributes = "";
$cstArchivedStudents2014->Surname->EditValue = ew_HtmlEncode($cstArchivedStudents2014->Surname->CurrentValue);
// KnownAs
$cstArchivedStudents2014->KnownAs->EditCustomAttributes = "";
$cstArchivedStudents2014->KnownAs->EditValue = ew_HtmlEncode($cstArchivedStudents2014->KnownAs->CurrentValue);
// Organisation
$cstArchivedStudents2014->Organisation->EditCustomAttributes = "";
$cstArchivedStudents2014->Organisation->EditValue = ew_HtmlEncode($cstArchivedStudents2014->Organisation->CurrentValue);
// OrganisationType
$cstArchivedStudents2014->OrganisationType->EditCustomAttributes = "";
$cstArchivedStudents2014->OrganisationType->EditValue = ew_HtmlEncode($cstArchivedStudents2014->OrganisationType->CurrentValue);
// StudentNumber
$cstArchivedStudents2014->StudentNumber->EditCustomAttributes = "";
$cstArchivedStudents2014->StudentNumber->EditValue = ew_HtmlEncode($cstArchivedStudents2014->StudentNumber->CurrentValue);
// CCEFacilitatorID
$cstArchivedStudents2014->CCEFacilitatorID->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `FacilitatorID`, `FacilitatorName`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName`";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
$cstArchivedStudents2014->CCEFacilitatorID->EditValue = $arwrk;
// Project
$cstArchivedStudents2014->Project->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `CCEProjectID`, `Project`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `CCEProjects`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder`";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
$cstArchivedStudents2014->Project->EditValue = $arwrk;
// ProjectDiscipline
$cstArchivedStudents2014->ProjectDiscipline->EditCustomAttributes = "";
$cstArchivedStudents2014->ProjectDiscipline->EditValue = ew_HtmlEncode($cstArchivedStudents2014->ProjectDiscipline->CurrentValue);
// IDNumber
$cstArchivedStudents2014->IDNumber->EditCustomAttributes = "";
$cstArchivedStudents2014->IDNumber->EditValue = ew_HtmlEncode($cstArchivedStudents2014->IDNumber->CurrentValue);
// ECSANumber
$cstArchivedStudents2014->ECSANumber->EditCustomAttributes = "";
$cstArchivedStudents2014->ECSANumber->EditValue = ew_HtmlEncode($cstArchivedStudents2014->ECSANumber->CurrentValue);
// Age
$cstArchivedStudents2014->Age->EditCustomAttributes = "";
$cstArchivedStudents2014->Age->EditValue = ew_HtmlEncode($cstArchivedStudents2014->Age->CurrentValue);
// HighestQual
$cstArchivedStudents2014->HighestQual->EditCustomAttributes = "";
$cstArchivedStudents2014->HighestQual->EditValue = ew_HtmlEncode($cstArchivedStudents2014->HighestQual->CurrentValue);
// AreaDiscipline
$cstArchivedStudents2014->AreaDiscipline->EditCustomAttributes = "";
$cstArchivedStudents2014->AreaDiscipline->EditValue = ew_HtmlEncode($cstArchivedStudents2014->AreaDiscipline->CurrentValue);
// Telephone
$cstArchivedStudents2014->Telephone->EditCustomAttributes = "";
$cstArchivedStudents2014->Telephone->EditValue = ew_HtmlEncode($cstArchivedStudents2014->Telephone->CurrentValue);
// Cellphone
$cstArchivedStudents2014->Cellphone->EditCustomAttributes = "";
$cstArchivedStudents2014->Cellphone->EditValue = ew_HtmlEncode($cstArchivedStudents2014->Cellphone->CurrentValue);
// EmailAddress
$cstArchivedStudents2014->EmailAddress->EditCustomAttributes = "";
$cstArchivedStudents2014->EmailAddress->EditValue = ew_HtmlEncode($cstArchivedStudents2014->EmailAddress->CurrentValue);
// HomeAddress
$cstArchivedStudents2014->HomeAddress->EditCustomAttributes = "";
$cstArchivedStudents2014->HomeAddress->EditValue = ew_HtmlEncode($cstArchivedStudents2014->HomeAddress->CurrentValue);
// WorkAddress
$cstArchivedStudents2014->WorkAddress->EditCustomAttributes = "";
$cstArchivedStudents2014->WorkAddress->EditValue = ew_HtmlEncode($cstArchivedStudents2014->WorkAddress->CurrentValue);
// PostalAddress
$cstArchivedStudents2014->PostalAddress->EditCustomAttributes = "";
$cstArchivedStudents2014->PostalAddress->EditValue = ew_HtmlEncode($cstArchivedStudents2014->PostalAddress->CurrentValue);
// Designation
$cstArchivedStudents2014->Designation->EditCustomAttributes = "";
$cstArchivedStudents2014->Designation->EditValue = ew_HtmlEncode($cstArchivedStudents2014->Designation->CurrentValue);
// Department
$cstArchivedStudents2014->Department->EditCustomAttributes = "";
$cstArchivedStudents2014->Department->EditValue = ew_HtmlEncode($cstArchivedStudents2014->Department->CurrentValue);
// CESAAccountNo
$cstArchivedStudents2014->CESAAccountNo->EditCustomAttributes = "";
$cstArchivedStudents2014->CESAAccountNo->EditValue = ew_HtmlEncode($cstArchivedStudents2014->CESAAccountNo->CurrentValue);
// VATNo
$cstArchivedStudents2014->VATNo->EditCustomAttributes = "";
$cstArchivedStudents2014->VATNo->EditValue = ew_HtmlEncode($cstArchivedStudents2014->VATNo->CurrentValue);
// DietaryRequirements
$cstArchivedStudents2014->DietaryRequirements->EditCustomAttributes = "";
$cstArchivedStudents2014->DietaryRequirements->EditValue = ew_HtmlEncode($cstArchivedStudents2014->DietaryRequirements->CurrentValue);
// CVFile
$cstArchivedStudents2014->CVFile->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) {
$cstArchivedStudents2014->CVFile->EditValue = $cstArchivedStudents2014->CVFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->CVFile->EditValue = "";
}
// QualCertificate1
$cstArchivedStudents2014->QualCertificate1->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate1->EditValue = $cstArchivedStudents2014->QualCertificate1->Upload->DbValue;
} else {
$cstArchivedStudents2014->QualCertificate1->EditValue = "";
}
// QualCertificate2
$cstArchivedStudents2014->QualCertificate2->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate2->EditValue = $cstArchivedStudents2014->QualCertificate2->Upload->DbValue;
} else {
$cstArchivedStudents2014->QualCertificate2->EditValue = "";
}
// QualCertificate3
$cstArchivedStudents2014->QualCertificate3->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate3->EditValue = $cstArchivedStudents2014->QualCertificate3->Upload->DbValue;
} else {
$cstArchivedStudents2014->QualCertificate3->EditValue = "";
}
// MemorandumFile
$cstArchivedStudents2014->MemorandumFile->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) {
$cstArchivedStudents2014->MemorandumFile->EditValue = $cstArchivedStudents2014->MemorandumFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->MemorandumFile->EditValue = "";
}
// AgreementFile
$cstArchivedStudents2014->AgreementFile->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) {
$cstArchivedStudents2014->AgreementFile->EditValue = $cstArchivedStudents2014->AgreementFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->AgreementFile->EditValue = "";
}
// OrderNo
$cstArchivedStudents2014->OrderNo->EditCustomAttributes = "";
$cstArchivedStudents2014->OrderNo->EditValue = ew_HtmlEncode($cstArchivedStudents2014->OrderNo->CurrentValue);
// BookedByName
$cstArchivedStudents2014->BookedByName->EditCustomAttributes = "";
$cstArchivedStudents2014->BookedByName->EditValue = ew_HtmlEncode($cstArchivedStudents2014->BookedByName->CurrentValue);
// BookedByDesignation
$cstArchivedStudents2014->BookedByDesignation->EditCustomAttributes = "";
$cstArchivedStudents2014->BookedByDesignation->EditValue = ew_HtmlEncode($cstArchivedStudents2014->BookedByDesignation->CurrentValue);
// BookedByTelNo
$cstArchivedStudents2014->BookedByTelNo->EditCustomAttributes = "";
$cstArchivedStudents2014->BookedByTelNo->EditValue = ew_HtmlEncode($cstArchivedStudents2014->BookedByTelNo->CurrentValue);
// BookedByFaxNo
$cstArchivedStudents2014->BookedByFaxNo->EditCustomAttributes = "";
$cstArchivedStudents2014->BookedByFaxNo->EditValue = ew_HtmlEncode($cstArchivedStudents2014->BookedByFaxNo->CurrentValue);
// BookedByCellNo
$cstArchivedStudents2014->BookedByCellNo->EditCustomAttributes = "";
$cstArchivedStudents2014->BookedByCellNo->EditValue = ew_HtmlEncode($cstArchivedStudents2014->BookedByCellNo->CurrentValue);
// BookedByEmail
$cstArchivedStudents2014->BookedByEmail->EditCustomAttributes = "";
$cstArchivedStudents2014->BookedByEmail->EditValue = ew_HtmlEncode($cstArchivedStudents2014->BookedByEmail->CurrentValue);
// WebUsername
$cstArchivedStudents2014->WebUsername->EditCustomAttributes = "";
$cstArchivedStudents2014->WebUsername->EditValue = ew_HtmlEncode($cstArchivedStudents2014->WebUsername->CurrentValue);
// WebPassword
$cstArchivedStudents2014->WebPassword->EditCustomAttributes = "";
$cstArchivedStudents2014->WebPassword->EditValue = ew_HtmlEncode($cstArchivedStudents2014->WebPassword->CurrentValue);
// MentorName
$cstArchivedStudents2014->MentorName->EditCustomAttributes = "";
$cstArchivedStudents2014->MentorName->EditValue = ew_HtmlEncode($cstArchivedStudents2014->MentorName->CurrentValue);
// MentorDesig
$cstArchivedStudents2014->MentorDesig->EditCustomAttributes = "";
$cstArchivedStudents2014->MentorDesig->EditValue = ew_HtmlEncode($cstArchivedStudents2014->MentorDesig->CurrentValue);
// MentorTel
$cstArchivedStudents2014->MentorTel->EditCustomAttributes = "";
$cstArchivedStudents2014->MentorTel->EditValue = ew_HtmlEncode($cstArchivedStudents2014->MentorTel->CurrentValue);
// MentorCell
$cstArchivedStudents2014->MentorCell->EditCustomAttributes = "";
$cstArchivedStudents2014->MentorCell->EditValue = ew_HtmlEncode($cstArchivedStudents2014->MentorCell->CurrentValue);
// MentorEmail
$cstArchivedStudents2014->MentorEmail->EditCustomAttributes = "";
$cstArchivedStudents2014->MentorEmail->EditValue = ew_HtmlEncode($cstArchivedStudents2014->MentorEmail->CurrentValue);
// HRManagerName
$cstArchivedStudents2014->HRManagerName->EditCustomAttributes = "";
$cstArchivedStudents2014->HRManagerName->EditValue = ew_HtmlEncode($cstArchivedStudents2014->HRManagerName->CurrentValue);
// HRManagerDesignation
$cstArchivedStudents2014->HRManagerDesignation->EditCustomAttributes = "";
$cstArchivedStudents2014->HRManagerDesignation->EditValue = ew_HtmlEncode($cstArchivedStudents2014->HRManagerDesignation->CurrentValue);
// HRManagerTelNo
$cstArchivedStudents2014->HRManagerTelNo->EditCustomAttributes = "";
$cstArchivedStudents2014->HRManagerTelNo->EditValue = ew_HtmlEncode($cstArchivedStudents2014->HRManagerTelNo->CurrentValue);
// HRManagerCellNo
$cstArchivedStudents2014->HRManagerCellNo->EditCustomAttributes = "";
$cstArchivedStudents2014->HRManagerCellNo->EditValue = ew_HtmlEncode($cstArchivedStudents2014->HRManagerCellNo->CurrentValue);
// HRManagerEmail
$cstArchivedStudents2014->HRManagerEmail->EditCustomAttributes = "";
$cstArchivedStudents2014->HRManagerEmail->EditValue = ew_HtmlEncode($cstArchivedStudents2014->HRManagerEmail->CurrentValue);
// LengthEmploy
$cstArchivedStudents2014->LengthEmploy->EditCustomAttributes = "";
$cstArchivedStudents2014->LengthEmploy->EditValue = ew_HtmlEncode($cstArchivedStudents2014->LengthEmploy->CurrentValue);
// BlockAccess
$cstArchivedStudents2014->BlockAccess->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("y", "Yes");
$arwrk[] = array("n", "No");
$cstArchivedStudents2014->BlockAccess->EditValue = $arwrk;
// Archived
$cstArchivedStudents2014->Archived->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$cstArchivedStudents2014->Archived->EditValue = $arwrk;
// ResultLetter
$cstArchivedStudents2014->ResultLetter->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) {
$cstArchivedStudents2014->ResultLetter->EditValue = $cstArchivedStudents2014->ResultLetter->Upload->DbValue;
} else {
$cstArchivedStudents2014->ResultLetter->EditValue = "";
}
// Achieved
$cstArchivedStudents2014->Achieved->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$cstArchivedStudents2014->Achieved->EditValue = $arwrk;
// IDFile
$cstArchivedStudents2014->IDFile->EditCustomAttributes = "";
if (!ew_Empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) {
$cstArchivedStudents2014->IDFile->EditValue = $cstArchivedStudents2014->IDFile->Upload->DbValue;
} else {
$cstArchivedStudents2014->IDFile->EditValue = "";
}
// ReasonForLeaving
$cstArchivedStudents2014->ReasonForLeaving->EditCustomAttributes = "";
$cstArchivedStudents2014->ReasonForLeaving->EditValue = ew_HtmlEncode($cstArchivedStudents2014->ReasonForLeaving->CurrentValue);
// Edit refer script
// CCEStudentID
$cstArchivedStudents2014->CCEStudentID->HrefValue = "";
// Title
$cstArchivedStudents2014->Title->HrefValue = "";
// FirstName
$cstArchivedStudents2014->FirstName->HrefValue = "";
// Surname
$cstArchivedStudents2014->Surname->HrefValue = "";
// KnownAs
$cstArchivedStudents2014->KnownAs->HrefValue = "";
// Organisation
$cstArchivedStudents2014->Organisation->HrefValue = "";
// OrganisationType
$cstArchivedStudents2014->OrganisationType->HrefValue = "";
// StudentNumber
$cstArchivedStudents2014->StudentNumber->HrefValue = "";
// CCEFacilitatorID
$cstArchivedStudents2014->CCEFacilitatorID->HrefValue = "";
// Project
$cstArchivedStudents2014->Project->HrefValue = "";
// ProjectDiscipline
$cstArchivedStudents2014->ProjectDiscipline->HrefValue = "";
// IDNumber
$cstArchivedStudents2014->IDNumber->HrefValue = "";
// ECSANumber
$cstArchivedStudents2014->ECSANumber->HrefValue = "";
// Age
$cstArchivedStudents2014->Age->HrefValue = "";
// HighestQual
$cstArchivedStudents2014->HighestQual->HrefValue = "";
// AreaDiscipline
$cstArchivedStudents2014->AreaDiscipline->HrefValue = "";
// Telephone
$cstArchivedStudents2014->Telephone->HrefValue = "";
// Cellphone
$cstArchivedStudents2014->Cellphone->HrefValue = "";
// EmailAddress
$cstArchivedStudents2014->EmailAddress->HrefValue = "";
// HomeAddress
$cstArchivedStudents2014->HomeAddress->HrefValue = "";
// WorkAddress
$cstArchivedStudents2014->WorkAddress->HrefValue = "";
// PostalAddress
$cstArchivedStudents2014->PostalAddress->HrefValue = "";
// Designation
$cstArchivedStudents2014->Designation->HrefValue = "";
// Department
$cstArchivedStudents2014->Department->HrefValue = "";
// CESAAccountNo
$cstArchivedStudents2014->CESAAccountNo->HrefValue = "";
// VATNo
$cstArchivedStudents2014->VATNo->HrefValue = "";
// DietaryRequirements
$cstArchivedStudents2014->DietaryRequirements->HrefValue = "";
// CVFile
if (!ew_Empty($cstArchivedStudents2014->CVFile->Upload->DbValue)) {
$cstArchivedStudents2014->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->CVFile->UploadPath) . ((!empty($cstArchivedStudents2014->CVFile->EditValue)) ? $cstArchivedStudents2014->CVFile->EditValue : $cstArchivedStudents2014->CVFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->CVFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->CVFile->HrefValue);
} else {
$cstArchivedStudents2014->CVFile->HrefValue = "";
}
// QualCertificate1
if (!ew_Empty($cstArchivedStudents2014->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->QualCertificate1->UploadPath) . ((!empty($cstArchivedStudents2014->QualCertificate1->EditValue)) ? $cstArchivedStudents2014->QualCertificate1->EditValue : $cstArchivedStudents2014->QualCertificate1->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->QualCertificate1->HrefValue);
} else {
$cstArchivedStudents2014->QualCertificate1->HrefValue = "";
}
// QualCertificate2
if (!ew_Empty($cstArchivedStudents2014->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->QualCertificate2->UploadPath) . ((!empty($cstArchivedStudents2014->QualCertificate2->EditValue)) ? $cstArchivedStudents2014->QualCertificate2->EditValue : $cstArchivedStudents2014->QualCertificate2->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->QualCertificate2->HrefValue);
} else {
$cstArchivedStudents2014->QualCertificate2->HrefValue = "";
}
// QualCertificate3
if (!ew_Empty($cstArchivedStudents2014->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents2014->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->QualCertificate3->UploadPath) . ((!empty($cstArchivedStudents2014->QualCertificate3->EditValue)) ? $cstArchivedStudents2014->QualCertificate3->EditValue : $cstArchivedStudents2014->QualCertificate3->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->QualCertificate3->HrefValue);
} else {
$cstArchivedStudents2014->QualCertificate3->HrefValue = "";
}
// MemorandumFile
if (!ew_Empty($cstArchivedStudents2014->MemorandumFile->Upload->DbValue)) {
$cstArchivedStudents2014->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->MemorandumFile->UploadPath) . ((!empty($cstArchivedStudents2014->MemorandumFile->EditValue)) ? $cstArchivedStudents2014->MemorandumFile->EditValue : $cstArchivedStudents2014->MemorandumFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->MemorandumFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->MemorandumFile->HrefValue);
} else {
$cstArchivedStudents2014->MemorandumFile->HrefValue = "";
}
// AgreementFile
if (!ew_Empty($cstArchivedStudents2014->AgreementFile->Upload->DbValue)) {
$cstArchivedStudents2014->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->AgreementFile->UploadPath) . ((!empty($cstArchivedStudents2014->AgreementFile->EditValue)) ? $cstArchivedStudents2014->AgreementFile->EditValue : $cstArchivedStudents2014->AgreementFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->AgreementFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->AgreementFile->HrefValue);
} else {
$cstArchivedStudents2014->AgreementFile->HrefValue = "";
}
// OrderNo
$cstArchivedStudents2014->OrderNo->HrefValue = "";
// BookedByName
$cstArchivedStudents2014->BookedByName->HrefValue = "";
// BookedByDesignation
$cstArchivedStudents2014->BookedByDesignation->HrefValue = "";
// BookedByTelNo
$cstArchivedStudents2014->BookedByTelNo->HrefValue = "";
// BookedByFaxNo
$cstArchivedStudents2014->BookedByFaxNo->HrefValue = "";
// BookedByCellNo
$cstArchivedStudents2014->BookedByCellNo->HrefValue = "";
// BookedByEmail
$cstArchivedStudents2014->BookedByEmail->HrefValue = "";
// WebUsername
$cstArchivedStudents2014->WebUsername->HrefValue = "";
// WebPassword
$cstArchivedStudents2014->WebPassword->HrefValue = "";
// MentorName
$cstArchivedStudents2014->MentorName->HrefValue = "";
// MentorDesig
$cstArchivedStudents2014->MentorDesig->HrefValue = "";
// MentorTel
$cstArchivedStudents2014->MentorTel->HrefValue = "";
// MentorCell
$cstArchivedStudents2014->MentorCell->HrefValue = "";
// MentorEmail
$cstArchivedStudents2014->MentorEmail->HrefValue = "";
// HRManagerName
$cstArchivedStudents2014->HRManagerName->HrefValue = "";
// HRManagerDesignation
$cstArchivedStudents2014->HRManagerDesignation->HrefValue = "";
// HRManagerTelNo
$cstArchivedStudents2014->HRManagerTelNo->HrefValue = "";
// HRManagerCellNo
$cstArchivedStudents2014->HRManagerCellNo->HrefValue = "";
// HRManagerEmail
$cstArchivedStudents2014->HRManagerEmail->HrefValue = "";
// LengthEmploy
$cstArchivedStudents2014->LengthEmploy->HrefValue = "";
// BlockAccess
$cstArchivedStudents2014->BlockAccess->HrefValue = "";
// Archived
$cstArchivedStudents2014->Archived->HrefValue = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudents2014->ResultLetter->Upload->DbValue)) {
$cstArchivedStudents2014->ResultLetter->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->ResultLetter->UploadPath) . ((!empty($cstArchivedStudents2014->ResultLetter->EditValue)) ? $cstArchivedStudents2014->ResultLetter->EditValue : $cstArchivedStudents2014->ResultLetter->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->ResultLetter->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->ResultLetter->HrefValue);
} else {
$cstArchivedStudents2014->ResultLetter->HrefValue = "";
}
// Achieved
$cstArchivedStudents2014->Achieved->HrefValue = "";
// IDFile
if (!ew_Empty($cstArchivedStudents2014->IDFile->Upload->DbValue)) {
$cstArchivedStudents2014->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2014->IDFile->UploadPath) . ((!empty($cstArchivedStudents2014->IDFile->EditValue)) ? $cstArchivedStudents2014->IDFile->EditValue : $cstArchivedStudents2014->IDFile->CurrentValue);
if ($cstArchivedStudents2014->Export <> "") $cstArchivedStudents2014->IDFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2014->IDFile->HrefValue);
} else {
$cstArchivedStudents2014->IDFile->HrefValue = "";
}
// ReasonForLeaving
$cstArchivedStudents2014->ReasonForLeaving->HrefValue = "";
}
// Call Row Rendered event
if ($cstArchivedStudents2014->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$cstArchivedStudents2014->Row_Rendered();
}
// Validate form
function ValidateForm() {
global $Language, $gsFormError, $cstArchivedStudents2014;
// Initialize form error message
$gsFormError = "";
if (!ew_CheckFileType($cstArchivedStudents2014->CVFile->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents2014->CVFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2014->CVFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents2014->CVFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2014->CVFile->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents2014->QualCertificate1->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents2014->QualCertificate1->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2014->QualCertificate1->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents2014->QualCertificate1->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2014->QualCertificate1->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents2014->QualCertificate2->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents2014->QualCertificate2->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2014->QualCertificate2->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents2014->QualCertificate2->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2014->QualCertificate2->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents2014->QualCertificate3->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents2014->QualCertificate3->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2014->QualCertificate3->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents2014->QualCertificate3->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2014->QualCertificate3->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents2014->MemorandumFile->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents2014->MemorandumFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2014->MemorandumFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents2014->MemorandumFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2014->MemorandumFile->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents2014->AgreementFile->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents2014->AgreementFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2014->AgreementFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents2014->AgreementFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2014->AgreementFile->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents2014->ResultLetter->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents2014->ResultLetter->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2014->ResultLetter->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents2014->ResultLetter->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2014->ResultLetter->Upload->Error);
}
if (!ew_CheckFileType($cstArchivedStudents2014->IDFile->Upload->FileName)) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("WrongFileType");
}
if ($cstArchivedStudents2014->IDFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2014->IDFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
}
if (in_array($cstArchivedStudents2014->IDFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2014->IDFile->Upload->Error);
}
// Check if validation required
if (!EW_SERVER_VALIDATE)
return ($gsFormError == "");
if (!is_null($cstArchivedStudents2014->FirstName->FormValue) && $cstArchivedStudents2014->FirstName->FormValue == "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $cstArchivedStudents2014->FirstName->FldCaption();
}
if (!is_null($cstArchivedStudents2014->Surname->FormValue) && $cstArchivedStudents2014->Surname->FormValue == "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $cstArchivedStudents2014->Surname->FldCaption();
}
if (!ew_CheckInteger($cstArchivedStudents2014->Age->FormValue)) {
if ($gsFormError <> "") $gsFormError .= "<br>";
$gsFormError .= $cstArchivedStudents2014->Age->FldErrMsg();
}
// Return validate result
$ValidateForm = ($gsFormError == "");
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError <> "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $sFormCustomError;
}
return $ValidateForm;
}
// Update record based on key values
function EditRow() {
global $conn, $Security, $Language, $cstArchivedStudents2014;
$sFilter = $cstArchivedStudents2014->KeyFilter();
$cstArchivedStudents2014->CurrentFilter = $sFilter;
$sSql = $cstArchivedStudents2014->SQL();
$conn->raiseErrorFn = 'ew_ErrorFn';
$rs = $conn->Execute($sSql);
$conn->raiseErrorFn = '';
if ($rs === FALSE)
return FALSE;
if ($rs->EOF) {
$EditRow = FALSE; // Update Failed
} else {
// Save old values
$rsold =& $rs->fields;
$rsnew = array();
// Title
$cstArchivedStudents2014->Title->SetDbValueDef($rsnew, $cstArchivedStudents2014->Title->CurrentValue, NULL, FALSE);
// FirstName
$cstArchivedStudents2014->FirstName->SetDbValueDef($rsnew, $cstArchivedStudents2014->FirstName->CurrentValue, "", FALSE);
// Surname
$cstArchivedStudents2014->Surname->SetDbValueDef($rsnew, $cstArchivedStudents2014->Surname->CurrentValue, "", FALSE);
// KnownAs
$cstArchivedStudents2014->KnownAs->SetDbValueDef($rsnew, $cstArchivedStudents2014->KnownAs->CurrentValue, NULL, FALSE);
// Organisation
$cstArchivedStudents2014->Organisation->SetDbValueDef($rsnew, $cstArchivedStudents2014->Organisation->CurrentValue, NULL, FALSE);
// OrganisationType
$cstArchivedStudents2014->OrganisationType->SetDbValueDef($rsnew, $cstArchivedStudents2014->OrganisationType->CurrentValue, NULL, FALSE);
// StudentNumber
$cstArchivedStudents2014->StudentNumber->SetDbValueDef($rsnew, $cstArchivedStudents2014->StudentNumber->CurrentValue, NULL, FALSE);
// CCEFacilitatorID
$cstArchivedStudents2014->CCEFacilitatorID->SetDbValueDef($rsnew, $cstArchivedStudents2014->CCEFacilitatorID->CurrentValue, NULL, FALSE);
// Project
$cstArchivedStudents2014->Project->SetDbValueDef($rsnew, $cstArchivedStudents2014->Project->CurrentValue, NULL, FALSE);
// ProjectDiscipline
$cstArchivedStudents2014->ProjectDiscipline->SetDbValueDef($rsnew, $cstArchivedStudents2014->ProjectDiscipline->CurrentValue, NULL, FALSE);
// IDNumber
$cstArchivedStudents2014->IDNumber->SetDbValueDef($rsnew, $cstArchivedStudents2014->IDNumber->CurrentValue, NULL, FALSE);
// ECSANumber
$cstArchivedStudents2014->ECSANumber->SetDbValueDef($rsnew, $cstArchivedStudents2014->ECSANumber->CurrentValue, NULL, FALSE);
// Age
$cstArchivedStudents2014->Age->SetDbValueDef($rsnew, $cstArchivedStudents2014->Age->CurrentValue, NULL, FALSE);
// HighestQual
$cstArchivedStudents2014->HighestQual->SetDbValueDef($rsnew, $cstArchivedStudents2014->HighestQual->CurrentValue, NULL, FALSE);
// AreaDiscipline
$cstArchivedStudents2014->AreaDiscipline->SetDbValueDef($rsnew, $cstArchivedStudents2014->AreaDiscipline->CurrentValue, NULL, FALSE);
// Telephone
$cstArchivedStudents2014->Telephone->SetDbValueDef($rsnew, $cstArchivedStudents2014->Telephone->CurrentValue, NULL, FALSE);
// Cellphone
$cstArchivedStudents2014->Cellphone->SetDbValueDef($rsnew, $cstArchivedStudents2014->Cellphone->CurrentValue, NULL, FALSE);
// EmailAddress
$cstArchivedStudents2014->EmailAddress->SetDbValueDef($rsnew, $cstArchivedStudents2014->EmailAddress->CurrentValue, NULL, FALSE);
// HomeAddress
$cstArchivedStudents2014->HomeAddress->SetDbValueDef($rsnew, $cstArchivedStudents2014->HomeAddress->CurrentValue, NULL, FALSE);
// WorkAddress
$cstArchivedStudents2014->WorkAddress->SetDbValueDef($rsnew, $cstArchivedStudents2014->WorkAddress->CurrentValue, NULL, FALSE);
// PostalAddress
$cstArchivedStudents2014->PostalAddress->SetDbValueDef($rsnew, $cstArchivedStudents2014->PostalAddress->CurrentValue, NULL, FALSE);
// Designation
$cstArchivedStudents2014->Designation->SetDbValueDef($rsnew, $cstArchivedStudents2014->Designation->CurrentValue, NULL, FALSE);
// Department
$cstArchivedStudents2014->Department->SetDbValueDef($rsnew, $cstArchivedStudents2014->Department->CurrentValue, NULL, FALSE);
// CESAAccountNo
$cstArchivedStudents2014->CESAAccountNo->SetDbValueDef($rsnew, $cstArchivedStudents2014->CESAAccountNo->CurrentValue, NULL, FALSE);
// VATNo
$cstArchivedStudents2014->VATNo->SetDbValueDef($rsnew, $cstArchivedStudents2014->VATNo->CurrentValue, NULL, FALSE);
// DietaryRequirements
$cstArchivedStudents2014->DietaryRequirements->SetDbValueDef($rsnew, $cstArchivedStudents2014->DietaryRequirements->CurrentValue, NULL, FALSE);
// CVFile
$cstArchivedStudents2014->CVFile->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents2014->CVFile->Upload->Action == "2" || $cstArchivedStudents2014->CVFile->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents2014->CVFile->Upload->DbValue = $rs->fields('CVFile'); // Get original value
if (is_null($cstArchivedStudents2014->CVFile->Upload->Value)) {
$rsnew['CVFile'] = NULL;
} else {
$rsnew['CVFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2014->CVFile->UploadPath), $cstArchivedStudents2014->CVFile->Upload->FileName);
}
}
// QualCertificate1
$cstArchivedStudents2014->QualCertificate1->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents2014->QualCertificate1->Upload->Action == "2" || $cstArchivedStudents2014->QualCertificate1->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents2014->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1'); // Get original value
if (is_null($cstArchivedStudents2014->QualCertificate1->Upload->Value)) {
$rsnew['QualCertificate1'] = NULL;
} else {
$rsnew['QualCertificate1'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2014->QualCertificate1->UploadPath), $cstArchivedStudents2014->QualCertificate1->Upload->FileName);
}
}
// QualCertificate2
$cstArchivedStudents2014->QualCertificate2->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents2014->QualCertificate2->Upload->Action == "2" || $cstArchivedStudents2014->QualCertificate2->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents2014->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2'); // Get original value
if (is_null($cstArchivedStudents2014->QualCertificate2->Upload->Value)) {
$rsnew['QualCertificate2'] = NULL;
} else {
$rsnew['QualCertificate2'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2014->QualCertificate2->UploadPath), $cstArchivedStudents2014->QualCertificate2->Upload->FileName);
}
}
// QualCertificate3
$cstArchivedStudents2014->QualCertificate3->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents2014->QualCertificate3->Upload->Action == "2" || $cstArchivedStudents2014->QualCertificate3->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents2014->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3'); // Get original value
if (is_null($cstArchivedStudents2014->QualCertificate3->Upload->Value)) {
$rsnew['QualCertificate3'] = NULL;
} else {
$rsnew['QualCertificate3'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2014->QualCertificate3->UploadPath), $cstArchivedStudents2014->QualCertificate3->Upload->FileName);
}
}
// MemorandumFile
$cstArchivedStudents2014->MemorandumFile->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents2014->MemorandumFile->Upload->Action == "2" || $cstArchivedStudents2014->MemorandumFile->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents2014->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile'); // Get original value
if (is_null($cstArchivedStudents2014->MemorandumFile->Upload->Value)) {
$rsnew['MemorandumFile'] = NULL;
} else {
$rsnew['MemorandumFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2014->MemorandumFile->UploadPath), $cstArchivedStudents2014->MemorandumFile->Upload->FileName);
}
}
// AgreementFile
$cstArchivedStudents2014->AgreementFile->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents2014->AgreementFile->Upload->Action == "2" || $cstArchivedStudents2014->AgreementFile->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents2014->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile'); // Get original value
if (is_null($cstArchivedStudents2014->AgreementFile->Upload->Value)) {
$rsnew['AgreementFile'] = NULL;
} else {
$rsnew['AgreementFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2014->AgreementFile->UploadPath), $cstArchivedStudents2014->AgreementFile->Upload->FileName);
}
}
// OrderNo
$cstArchivedStudents2014->OrderNo->SetDbValueDef($rsnew, $cstArchivedStudents2014->OrderNo->CurrentValue, NULL, FALSE);
// BookedByName
$cstArchivedStudents2014->BookedByName->SetDbValueDef($rsnew, $cstArchivedStudents2014->BookedByName->CurrentValue, NULL, FALSE);
// BookedByDesignation
$cstArchivedStudents2014->BookedByDesignation->SetDbValueDef($rsnew, $cstArchivedStudents2014->BookedByDesignation->CurrentValue, NULL, FALSE);
// BookedByTelNo
$cstArchivedStudents2014->BookedByTelNo->SetDbValueDef($rsnew, $cstArchivedStudents2014->BookedByTelNo->CurrentValue, NULL, FALSE);
// BookedByFaxNo
$cstArchivedStudents2014->BookedByFaxNo->SetDbValueDef($rsnew, $cstArchivedStudents2014->BookedByFaxNo->CurrentValue, NULL, FALSE);
// BookedByCellNo
$cstArchivedStudents2014->BookedByCellNo->SetDbValueDef($rsnew, $cstArchivedStudents2014->BookedByCellNo->CurrentValue, NULL, FALSE);
// BookedByEmail
$cstArchivedStudents2014->BookedByEmail->SetDbValueDef($rsnew, $cstArchivedStudents2014->BookedByEmail->CurrentValue, NULL, FALSE);
// WebUsername
$cstArchivedStudents2014->WebUsername->SetDbValueDef($rsnew, $cstArchivedStudents2014->WebUsername->CurrentValue, NULL, FALSE);
// WebPassword
$cstArchivedStudents2014->WebPassword->SetDbValueDef($rsnew, $cstArchivedStudents2014->WebPassword->CurrentValue, NULL, FALSE);
// MentorName
$cstArchivedStudents2014->MentorName->SetDbValueDef($rsnew, $cstArchivedStudents2014->MentorName->CurrentValue, NULL, FALSE);
// MentorDesig
$cstArchivedStudents2014->MentorDesig->SetDbValueDef($rsnew, $cstArchivedStudents2014->MentorDesig->CurrentValue, NULL, FALSE);
// MentorTel
$cstArchivedStudents2014->MentorTel->SetDbValueDef($rsnew, $cstArchivedStudents2014->MentorTel->CurrentValue, NULL, FALSE);
// MentorCell
$cstArchivedStudents2014->MentorCell->SetDbValueDef($rsnew, $cstArchivedStudents2014->MentorCell->CurrentValue, NULL, FALSE);
// MentorEmail
$cstArchivedStudents2014->MentorEmail->SetDbValueDef($rsnew, $cstArchivedStudents2014->MentorEmail->CurrentValue, NULL, FALSE);
// HRManagerName
$cstArchivedStudents2014->HRManagerName->SetDbValueDef($rsnew, $cstArchivedStudents2014->HRManagerName->CurrentValue, NULL, FALSE);
// HRManagerDesignation
$cstArchivedStudents2014->HRManagerDesignation->SetDbValueDef($rsnew, $cstArchivedStudents2014->HRManagerDesignation->CurrentValue, NULL, FALSE);
// HRManagerTelNo
$cstArchivedStudents2014->HRManagerTelNo->SetDbValueDef($rsnew, $cstArchivedStudents2014->HRManagerTelNo->CurrentValue, NULL, FALSE);
// HRManagerCellNo
$cstArchivedStudents2014->HRManagerCellNo->SetDbValueDef($rsnew, $cstArchivedStudents2014->HRManagerCellNo->CurrentValue, NULL, FALSE);
// HRManagerEmail
$cstArchivedStudents2014->HRManagerEmail->SetDbValueDef($rsnew, $cstArchivedStudents2014->HRManagerEmail->CurrentValue, NULL, FALSE);
// LengthEmploy
$cstArchivedStudents2014->LengthEmploy->SetDbValueDef($rsnew, $cstArchivedStudents2014->LengthEmploy->CurrentValue, NULL, FALSE);
// BlockAccess
$cstArchivedStudents2014->BlockAccess->SetDbValueDef($rsnew, $cstArchivedStudents2014->BlockAccess->CurrentValue, "", FALSE);
// Archived
$cstArchivedStudents2014->Archived->SetDbValueDef($rsnew, $cstArchivedStudents2014->Archived->CurrentValue, 0, FALSE);
// ResultLetter
$cstArchivedStudents2014->ResultLetter->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents2014->ResultLetter->Upload->Action == "2" || $cstArchivedStudents2014->ResultLetter->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents2014->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter'); // Get original value
if (is_null($cstArchivedStudents2014->ResultLetter->Upload->Value)) {
$rsnew['ResultLetter'] = NULL;
} else {
$rsnew['ResultLetter'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2014->ResultLetter->UploadPath), $cstArchivedStudents2014->ResultLetter->Upload->FileName);
}
}
// Achieved
$cstArchivedStudents2014->Achieved->SetDbValueDef($rsnew, $cstArchivedStudents2014->Achieved->CurrentValue, 0, FALSE);
// IDFile
$cstArchivedStudents2014->IDFile->Upload->SaveToSession(); // Save file value to Session
if ($cstArchivedStudents2014->IDFile->Upload->Action == "2" || $cstArchivedStudents2014->IDFile->Upload->Action == "3") { // Update/Remove
$cstArchivedStudents2014->IDFile->Upload->DbValue = $rs->fields('IDFile'); // Get original value
if (is_null($cstArchivedStudents2014->IDFile->Upload->Value)) {
$rsnew['IDFile'] = NULL;
} else {
$rsnew['IDFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2014->IDFile->UploadPath), $cstArchivedStudents2014->IDFile->Upload->FileName);
}
}
// ReasonForLeaving
$cstArchivedStudents2014->ReasonForLeaving->SetDbValueDef($rsnew, $cstArchivedStudents2014->ReasonForLeaving->CurrentValue, NULL, FALSE);
// Call Row Updating event
$bUpdateRow = $cstArchivedStudents2014->Row_Updating($rsold, $rsnew);
if ($bUpdateRow) {
if (!ew_Empty($cstArchivedStudents2014->CVFile->Upload->Value)) {
$cstArchivedStudents2014->CVFile->Upload->SaveToFile($cstArchivedStudents2014->CVFile->UploadPath, $rsnew['CVFile'], FALSE);
}
if (!ew_Empty($cstArchivedStudents2014->QualCertificate1->Upload->Value)) {
$cstArchivedStudents2014->QualCertificate1->Upload->SaveToFile($cstArchivedStudents2014->QualCertificate1->UploadPath, $rsnew['QualCertificate1'], FALSE);
}
if (!ew_Empty($cstArchivedStudents2014->QualCertificate2->Upload->Value)) {
$cstArchivedStudents2014->QualCertificate2->Upload->SaveToFile($cstArchivedStudents2014->QualCertificate2->UploadPath, $rsnew['QualCertificate2'], FALSE);
}
if (!ew_Empty($cstArchivedStudents2014->QualCertificate3->Upload->Value)) {
$cstArchivedStudents2014->QualCertificate3->Upload->SaveToFile($cstArchivedStudents2014->QualCertificate3->UploadPath, $rsnew['QualCertificate3'], FALSE);
}
if (!ew_Empty($cstArchivedStudents2014->MemorandumFile->Upload->Value)) {
$cstArchivedStudents2014->MemorandumFile->Upload->SaveToFile($cstArchivedStudents2014->MemorandumFile->UploadPath, $rsnew['MemorandumFile'], FALSE);
}
if (!ew_Empty($cstArchivedStudents2014->AgreementFile->Upload->Value)) {
$cstArchivedStudents2014->AgreementFile->Upload->SaveToFile($cstArchivedStudents2014->AgreementFile->UploadPath, $rsnew['AgreementFile'], FALSE);
}
if (!ew_Empty($cstArchivedStudents2014->ResultLetter->Upload->Value)) {
$cstArchivedStudents2014->ResultLetter->Upload->SaveToFile($cstArchivedStudents2014->ResultLetter->UploadPath, $rsnew['ResultLetter'], FALSE);
}
if (!ew_Empty($cstArchivedStudents2014->IDFile->Upload->Value)) {
$cstArchivedStudents2014->IDFile->Upload->SaveToFile($cstArchivedStudents2014->IDFile->UploadPath, $rsnew['IDFile'], FALSE);
}
$conn->raiseErrorFn = 'ew_ErrorFn';
$EditRow = $conn->Execute($cstArchivedStudents2014->UpdateSQL($rsnew));
$conn->raiseErrorFn = '';
} else {
if ($cstArchivedStudents2014->CancelMessage <> "") {
$this->setMessage($cstArchivedStudents2014->CancelMessage);
$cstArchivedStudents2014->CancelMessage = "";
} else {
$this->setMessage($Language->Phrase("UpdateCancelled"));
}
$EditRow = FALSE;
}
}
// Call Row_Updated event
if ($EditRow)
$cstArchivedStudents2014->Row_Updated($rsold, $rsnew);
$rs->Close();
// CVFile
$cstArchivedStudents2014->CVFile->Upload->RemoveFromSession(); // Remove file value from Session
// QualCertificate1
$cstArchivedStudents2014->QualCertificate1->Upload->RemoveFromSession(); // Remove file value from Session
// QualCertificate2
$cstArchivedStudents2014->QualCertificate2->Upload->RemoveFromSession(); // Remove file value from Session
// QualCertificate3
$cstArchivedStudents2014->QualCertificate3->Upload->RemoveFromSession(); // Remove file value from Session
// MemorandumFile
$cstArchivedStudents2014->MemorandumFile->Upload->RemoveFromSession(); // Remove file value from Session
// AgreementFile
$cstArchivedStudents2014->AgreementFile->Upload->RemoveFromSession(); // Remove file value from Session
// ResultLetter
$cstArchivedStudents2014->ResultLetter->Upload->RemoveFromSession(); // Remove file value from Session
// IDFile
$cstArchivedStudents2014->IDFile->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;
}
}
?>