Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/cceadmin/
Upload File :
Current File : /var/www/cesa.co.za/cceadmin/cstArchivedStudents2015edit.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 "cstArchivedStudents2015info.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
$cstArchivedStudents2015_edit = new ccstArchivedStudents2015_edit();
$Page =& $cstArchivedStudents2015_edit;

// Page init
$cstArchivedStudents2015_edit->Page_Init();

// Page main
$cstArchivedStudents2015_edit->Page_Main();
?>
<?php include "header.php" ?>
<script type="text/javascript">
<!--

// Create page object
var cstArchivedStudents2015_edit = new ew_Page("cstArchivedStudents2015_edit");

// page properties
cstArchivedStudents2015_edit.PageID = "edit"; // page ID
cstArchivedStudents2015_edit.FormID = "fcstArchivedStudents2015edit"; // form ID
var EW_PAGE_ID = cstArchivedStudents2015_edit.PageID; // for backward compatibility

// extend page with ValidateForm function
cstArchivedStudents2015_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($cstArchivedStudents2015->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($cstArchivedStudents2015->Surname->FldCaption()) ?>");
		elm = fobj.elements["x" + infix + "_Age"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php echo ew_JsEncode2($cstArchivedStudents2015->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
cstArchivedStudents2015_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) { ?>
cstArchivedStudents2015_edit.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudents2015_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") ?>&nbsp;<?php echo $Language->Phrase("TblTypeCUSTOMVIEW") ?><?php echo $cstArchivedStudents2015->TableCaption() ?><br><br>
<a href="<?php echo $cstArchivedStudents2015->getReturnUrl() ?>"><?php echo $Language->Phrase("GoBack") ?></a></span></p>
<?php
if (EW_DEBUG_ENABLED)
	echo ew_DebugMsg();
$cstArchivedStudents2015_edit->ShowMessage();
?>
<form name="fcstArchivedStudents2015edit" id="fcstArchivedStudents2015edit" action="<?php echo ew_CurrentPage() ?>" method="post" enctype="multipart/form-data" onsubmit="return cstArchivedStudents2015_edit.ValidateForm(this);">
<p>
<input type="hidden" name="a_table" id="a_table" value="cstArchivedStudents2015">
<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($cstArchivedStudents2015->CCEStudentID->CurrentValue) ?>">
<?php if ($cstArchivedStudents2015->Title->Visible) { // Title ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Title->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->Title->CellAttributes() ?>><span id="el_Title">
<input type="text" name="x_Title" id="x_Title" title="<?php echo $cstArchivedStudents2015->Title->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents2015->Title->EditValue ?>"<?php echo $cstArchivedStudents2015->Title->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->Title->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->FirstName->Visible) { // FirstName ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->FirstName->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $cstArchivedStudents2015->FirstName->CellAttributes() ?>><span id="el_FirstName">
<input type="text" name="x_FirstName" id="x_FirstName" title="<?php echo $cstArchivedStudents2015->FirstName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->FirstName->EditValue ?>"<?php echo $cstArchivedStudents2015->FirstName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->FirstName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Surname->Visible) { // Surname ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Surname->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $cstArchivedStudents2015->Surname->CellAttributes() ?>><span id="el_Surname">
<input type="text" name="x_Surname" id="x_Surname" title="<?php echo $cstArchivedStudents2015->Surname->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->Surname->EditValue ?>"<?php echo $cstArchivedStudents2015->Surname->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->Surname->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->KnownAs->Visible) { // KnownAs ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->KnownAs->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->KnownAs->CellAttributes() ?>><span id="el_KnownAs">
<input type="text" name="x_KnownAs" id="x_KnownAs" title="<?php echo $cstArchivedStudents2015->KnownAs->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->KnownAs->EditValue ?>"<?php echo $cstArchivedStudents2015->KnownAs->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->KnownAs->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Organisation->Visible) { // Organisation ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Organisation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->Organisation->CellAttributes() ?>><span id="el_Organisation">
<input type="text" name="x_Organisation" id="x_Organisation" title="<?php echo $cstArchivedStudents2015->Organisation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->Organisation->EditValue ?>"<?php echo $cstArchivedStudents2015->Organisation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->Organisation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->OrganisationType->Visible) { // OrganisationType ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->OrganisationType->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->OrganisationType->CellAttributes() ?>><span id="el_OrganisationType">
<input type="text" name="x_OrganisationType" id="x_OrganisationType" title="<?php echo $cstArchivedStudents2015->OrganisationType->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->OrganisationType->EditValue ?>"<?php echo $cstArchivedStudents2015->OrganisationType->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->OrganisationType->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->StudentNumber->Visible) { // StudentNumber ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->StudentNumber->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->StudentNumber->CellAttributes() ?>><span id="el_StudentNumber">
<input type="text" name="x_StudentNumber" id="x_StudentNumber" title="<?php echo $cstArchivedStudents2015->StudentNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->StudentNumber->EditValue ?>"<?php echo $cstArchivedStudents2015->StudentNumber->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->StudentNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->CCEFacilitatorID->Visible) { // CCEFacilitatorID ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->CCEFacilitatorID->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->CCEFacilitatorID->CellAttributes() ?>><span id="el_CCEFacilitatorID">
<select id="x_CCEFacilitatorID" name="x_CCEFacilitatorID" title="<?php echo $cstArchivedStudents2015->CCEFacilitatorID->FldTitle() ?>"<?php echo $cstArchivedStudents2015->CCEFacilitatorID->EditAttributes() ?>>
<?php
if (is_array($cstArchivedStudents2015->CCEFacilitatorID->EditValue)) {
	$arwrk = $cstArchivedStudents2015->CCEFacilitatorID->EditValue;
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($cstArchivedStudents2015->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 $cstArchivedStudents2015->CCEFacilitatorID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Project->Visible) { // Project ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Project->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->Project->CellAttributes() ?>><span id="el_Project">
<select id="x_Project" name="x_Project" title="<?php echo $cstArchivedStudents2015->Project->FldTitle() ?>"<?php echo $cstArchivedStudents2015->Project->EditAttributes() ?>>
<?php
if (is_array($cstArchivedStudents2015->Project->EditValue)) {
	$arwrk = $cstArchivedStudents2015->Project->EditValue;
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($cstArchivedStudents2015->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 $cstArchivedStudents2015->Project->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->ProjectDiscipline->Visible) { // ProjectDiscipline ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->ProjectDiscipline->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->ProjectDiscipline->CellAttributes() ?>><span id="el_ProjectDiscipline">
<input type="text" name="x_ProjectDiscipline" id="x_ProjectDiscipline" title="<?php echo $cstArchivedStudents2015->ProjectDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->ProjectDiscipline->EditValue ?>"<?php echo $cstArchivedStudents2015->ProjectDiscipline->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->ProjectDiscipline->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->IDNumber->Visible) { // IDNumber ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->IDNumber->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->IDNumber->CellAttributes() ?>><span id="el_IDNumber">
<input type="text" name="x_IDNumber" id="x_IDNumber" title="<?php echo $cstArchivedStudents2015->IDNumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2015->IDNumber->EditValue ?>"<?php echo $cstArchivedStudents2015->IDNumber->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->IDNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->ECSANumber->Visible) { // ECSANumber ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->ECSANumber->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->ECSANumber->CellAttributes() ?>><span id="el_ECSANumber">
<input type="text" name="x_ECSANumber" id="x_ECSANumber" title="<?php echo $cstArchivedStudents2015->ECSANumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2015->ECSANumber->EditValue ?>"<?php echo $cstArchivedStudents2015->ECSANumber->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->ECSANumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Age->Visible) { // Age ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Age->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->Age->CellAttributes() ?>><span id="el_Age">
<input type="text" name="x_Age" id="x_Age" title="<?php echo $cstArchivedStudents2015->Age->FldTitle() ?>" size="30" value="<?php echo $cstArchivedStudents2015->Age->EditValue ?>"<?php echo $cstArchivedStudents2015->Age->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->Age->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->HighestQual->Visible) { // HighestQual ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->HighestQual->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->HighestQual->CellAttributes() ?>><span id="el_HighestQual">
<input type="text" name="x_HighestQual" id="x_HighestQual" title="<?php echo $cstArchivedStudents2015->HighestQual->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->HighestQual->EditValue ?>"<?php echo $cstArchivedStudents2015->HighestQual->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->HighestQual->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->AreaDiscipline->Visible) { // AreaDiscipline ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->AreaDiscipline->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->AreaDiscipline->CellAttributes() ?>><span id="el_AreaDiscipline">
<input type="text" name="x_AreaDiscipline" id="x_AreaDiscipline" title="<?php echo $cstArchivedStudents2015->AreaDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->AreaDiscipline->EditValue ?>"<?php echo $cstArchivedStudents2015->AreaDiscipline->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->AreaDiscipline->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Telephone->Visible) { // Telephone ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Telephone->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->Telephone->CellAttributes() ?>><span id="el_Telephone">
<input type="text" name="x_Telephone" id="x_Telephone" title="<?php echo $cstArchivedStudents2015->Telephone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->Telephone->EditValue ?>"<?php echo $cstArchivedStudents2015->Telephone->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->Telephone->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Cellphone->Visible) { // Cellphone ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Cellphone->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->Cellphone->CellAttributes() ?>><span id="el_Cellphone">
<input type="text" name="x_Cellphone" id="x_Cellphone" title="<?php echo $cstArchivedStudents2015->Cellphone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->Cellphone->EditValue ?>"<?php echo $cstArchivedStudents2015->Cellphone->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->Cellphone->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->EmailAddress->Visible) { // EmailAddress ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->EmailAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->EmailAddress->CellAttributes() ?>><span id="el_EmailAddress">
<input type="text" name="x_EmailAddress" id="x_EmailAddress" title="<?php echo $cstArchivedStudents2015->EmailAddress->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->EmailAddress->EditValue ?>"<?php echo $cstArchivedStudents2015->EmailAddress->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->EmailAddress->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->HomeAddress->Visible) { // HomeAddress ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->HomeAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->HomeAddress->CellAttributes() ?>><span id="el_HomeAddress">
<textarea name="x_HomeAddress" id="x_HomeAddress" title="<?php echo $cstArchivedStudents2015->HomeAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents2015->HomeAddress->EditAttributes() ?>><?php echo $cstArchivedStudents2015->HomeAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents2015->HomeAddress->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->WorkAddress->Visible) { // WorkAddress ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->WorkAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->WorkAddress->CellAttributes() ?>><span id="el_WorkAddress">
<textarea name="x_WorkAddress" id="x_WorkAddress" title="<?php echo $cstArchivedStudents2015->WorkAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents2015->WorkAddress->EditAttributes() ?>><?php echo $cstArchivedStudents2015->WorkAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents2015->WorkAddress->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->PostalAddress->Visible) { // PostalAddress ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->PostalAddress->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->PostalAddress->CellAttributes() ?>><span id="el_PostalAddress">
<textarea name="x_PostalAddress" id="x_PostalAddress" title="<?php echo $cstArchivedStudents2015->PostalAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents2015->PostalAddress->EditAttributes() ?>><?php echo $cstArchivedStudents2015->PostalAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents2015->PostalAddress->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Designation->Visible) { // Designation ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Designation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->Designation->CellAttributes() ?>><span id="el_Designation">
<input type="text" name="x_Designation" id="x_Designation" title="<?php echo $cstArchivedStudents2015->Designation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->Designation->EditValue ?>"<?php echo $cstArchivedStudents2015->Designation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->Designation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Department->Visible) { // Department ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Department->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->Department->CellAttributes() ?>><span id="el_Department">
<input type="text" name="x_Department" id="x_Department" title="<?php echo $cstArchivedStudents2015->Department->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->Department->EditValue ?>"<?php echo $cstArchivedStudents2015->Department->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->Department->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->CESAAccountNo->Visible) { // CESAAccountNo ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->CESAAccountNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->CESAAccountNo->CellAttributes() ?>><span id="el_CESAAccountNo">
<input type="text" name="x_CESAAccountNo" id="x_CESAAccountNo" title="<?php echo $cstArchivedStudents2015->CESAAccountNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2015->CESAAccountNo->EditValue ?>"<?php echo $cstArchivedStudents2015->CESAAccountNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->CESAAccountNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->VATNo->Visible) { // VATNo ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->VATNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->VATNo->CellAttributes() ?>><span id="el_VATNo">
<input type="text" name="x_VATNo" id="x_VATNo" title="<?php echo $cstArchivedStudents2015->VATNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2015->VATNo->EditValue ?>"<?php echo $cstArchivedStudents2015->VATNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->VATNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->DietaryRequirements->Visible) { // DietaryRequirements ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->DietaryRequirements->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->DietaryRequirements->CellAttributes() ?>><span id="el_DietaryRequirements">
<input type="text" name="x_DietaryRequirements" id="x_DietaryRequirements" title="<?php echo $cstArchivedStudents2015->DietaryRequirements->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->DietaryRequirements->EditValue ?>"<?php echo $cstArchivedStudents2015->DietaryRequirements->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->DietaryRequirements->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->CVFile->Visible) { // CVFile ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->CVFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->CVFile->CellAttributes() ?>><span id="el_CVFile">
<div id="old_x_CVFile">
<?php if ($cstArchivedStudents2015->CVFile->HrefValue <> "" || $cstArchivedStudents2015->CVFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2015->CVFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2015->CVFile->HrefValue ?>"><?php echo $cstArchivedStudents2015->CVFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2015->CVFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2015->CVFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</div>
<div id="new_x_CVFile">
<?php if (!empty($cstArchivedStudents2015->CVFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_CVFile" id="a_CVFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>&nbsp;
<label><input type="radio" name="a_CVFile" id="a_CVFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>&nbsp;
<label><input type="radio" name="a_CVFile" id="a_CVFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2015->CVFile->EditAttrs["onchange"] = "this.form.a_CVFile[2].checked=true;" . @$cstArchivedStudents2015->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 $cstArchivedStudents2015->CVFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2015->CVFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2015->CVFile->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->QualCertificate1->Visible) { // QualCertificate1 ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->QualCertificate1->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->QualCertificate1->CellAttributes() ?>><span id="el_QualCertificate1">
<div id="old_x_QualCertificate1">
<?php if ($cstArchivedStudents2015->QualCertificate1->HrefValue <> "" || $cstArchivedStudents2015->QualCertificate1->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2015->QualCertificate1->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2015->QualCertificate1->HrefValue ?>"><?php echo $cstArchivedStudents2015->QualCertificate1->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2015->QualCertificate1->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2015->QualCertificate1->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate1">
<?php if (!empty($cstArchivedStudents2015->QualCertificate1->Upload->DbValue)) { ?>
<label><input type="radio" name="a_QualCertificate1" id="a_QualCertificate1" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>&nbsp;
<label><input type="radio" name="a_QualCertificate1" id="a_QualCertificate1" value="2"><?php echo $Language->Phrase("Remove") ?></label>&nbsp;
<label><input type="radio" name="a_QualCertificate1" id="a_QualCertificate1" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2015->QualCertificate1->EditAttrs["onchange"] = "this.form.a_QualCertificate1[2].checked=true;" . @$cstArchivedStudents2015->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 $cstArchivedStudents2015->QualCertificate1->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2015->QualCertificate1->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2015->QualCertificate1->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->QualCertificate2->Visible) { // QualCertificate2 ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->QualCertificate2->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->QualCertificate2->CellAttributes() ?>><span id="el_QualCertificate2">
<div id="old_x_QualCertificate2">
<?php if ($cstArchivedStudents2015->QualCertificate2->HrefValue <> "" || $cstArchivedStudents2015->QualCertificate2->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2015->QualCertificate2->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2015->QualCertificate2->HrefValue ?>"><?php echo $cstArchivedStudents2015->QualCertificate2->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2015->QualCertificate2->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2015->QualCertificate2->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate2">
<?php if (!empty($cstArchivedStudents2015->QualCertificate2->Upload->DbValue)) { ?>
<label><input type="radio" name="a_QualCertificate2" id="a_QualCertificate2" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>&nbsp;
<label><input type="radio" name="a_QualCertificate2" id="a_QualCertificate2" value="2"><?php echo $Language->Phrase("Remove") ?></label>&nbsp;
<label><input type="radio" name="a_QualCertificate2" id="a_QualCertificate2" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2015->QualCertificate2->EditAttrs["onchange"] = "this.form.a_QualCertificate2[2].checked=true;" . @$cstArchivedStudents2015->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 $cstArchivedStudents2015->QualCertificate2->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2015->QualCertificate2->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2015->QualCertificate2->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->QualCertificate3->Visible) { // QualCertificate3 ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->QualCertificate3->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->QualCertificate3->CellAttributes() ?>><span id="el_QualCertificate3">
<div id="old_x_QualCertificate3">
<?php if ($cstArchivedStudents2015->QualCertificate3->HrefValue <> "" || $cstArchivedStudents2015->QualCertificate3->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2015->QualCertificate3->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2015->QualCertificate3->HrefValue ?>"><?php echo $cstArchivedStudents2015->QualCertificate3->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2015->QualCertificate3->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2015->QualCertificate3->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</div>
<div id="new_x_QualCertificate3">
<?php if (!empty($cstArchivedStudents2015->QualCertificate3->Upload->DbValue)) { ?>
<label><input type="radio" name="a_QualCertificate3" id="a_QualCertificate3" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>&nbsp;
<label><input type="radio" name="a_QualCertificate3" id="a_QualCertificate3" value="2"><?php echo $Language->Phrase("Remove") ?></label>&nbsp;
<label><input type="radio" name="a_QualCertificate3" id="a_QualCertificate3" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2015->QualCertificate3->EditAttrs["onchange"] = "this.form.a_QualCertificate3[2].checked=true;" . @$cstArchivedStudents2015->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 $cstArchivedStudents2015->QualCertificate3->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2015->QualCertificate3->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2015->QualCertificate3->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->MemorandumFile->Visible) { // MemorandumFile ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->MemorandumFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->MemorandumFile->CellAttributes() ?>><span id="el_MemorandumFile">
<div id="old_x_MemorandumFile">
<?php if ($cstArchivedStudents2015->MemorandumFile->HrefValue <> "" || $cstArchivedStudents2015->MemorandumFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2015->MemorandumFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2015->MemorandumFile->HrefValue ?>"><?php echo $cstArchivedStudents2015->MemorandumFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2015->MemorandumFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2015->MemorandumFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</div>
<div id="new_x_MemorandumFile">
<?php if (!empty($cstArchivedStudents2015->MemorandumFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_MemorandumFile" id="a_MemorandumFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>&nbsp;
<label><input type="radio" name="a_MemorandumFile" id="a_MemorandumFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>&nbsp;
<label><input type="radio" name="a_MemorandumFile" id="a_MemorandumFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2015->MemorandumFile->EditAttrs["onchange"] = "this.form.a_MemorandumFile[2].checked=true;" . @$cstArchivedStudents2015->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 $cstArchivedStudents2015->MemorandumFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2015->MemorandumFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2015->MemorandumFile->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->AgreementFile->Visible) { // AgreementFile ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->AgreementFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->AgreementFile->CellAttributes() ?>><span id="el_AgreementFile">
<div id="old_x_AgreementFile">
<?php if ($cstArchivedStudents2015->AgreementFile->HrefValue <> "" || $cstArchivedStudents2015->AgreementFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2015->AgreementFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2015->AgreementFile->HrefValue ?>"><?php echo $cstArchivedStudents2015->AgreementFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2015->AgreementFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2015->AgreementFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</div>
<div id="new_x_AgreementFile">
<?php if (!empty($cstArchivedStudents2015->AgreementFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_AgreementFile" id="a_AgreementFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>&nbsp;
<label><input type="radio" name="a_AgreementFile" id="a_AgreementFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>&nbsp;
<label><input type="radio" name="a_AgreementFile" id="a_AgreementFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2015->AgreementFile->EditAttrs["onchange"] = "this.form.a_AgreementFile[2].checked=true;" . @$cstArchivedStudents2015->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 $cstArchivedStudents2015->AgreementFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2015->AgreementFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2015->AgreementFile->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->OrderNo->Visible) { // OrderNo ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->OrderNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->OrderNo->CellAttributes() ?>><span id="el_OrderNo">
<input type="text" name="x_OrderNo" id="x_OrderNo" title="<?php echo $cstArchivedStudents2015->OrderNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedStudents2015->OrderNo->EditValue ?>"<?php echo $cstArchivedStudents2015->OrderNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->OrderNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->BookedByName->Visible) { // BookedByName ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->BookedByName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->BookedByName->CellAttributes() ?>><span id="el_BookedByName">
<input type="text" name="x_BookedByName" id="x_BookedByName" title="<?php echo $cstArchivedStudents2015->BookedByName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->BookedByName->EditValue ?>"<?php echo $cstArchivedStudents2015->BookedByName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->BookedByName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->BookedByDesignation->Visible) { // BookedByDesignation ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->BookedByDesignation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->BookedByDesignation->CellAttributes() ?>><span id="el_BookedByDesignation">
<input type="text" name="x_BookedByDesignation" id="x_BookedByDesignation" title="<?php echo $cstArchivedStudents2015->BookedByDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->BookedByDesignation->EditValue ?>"<?php echo $cstArchivedStudents2015->BookedByDesignation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->BookedByDesignation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->BookedByTelNo->Visible) { // BookedByTelNo ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->BookedByTelNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->BookedByTelNo->CellAttributes() ?>><span id="el_BookedByTelNo">
<input type="text" name="x_BookedByTelNo" id="x_BookedByTelNo" title="<?php echo $cstArchivedStudents2015->BookedByTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->BookedByTelNo->EditValue ?>"<?php echo $cstArchivedStudents2015->BookedByTelNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->BookedByTelNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->BookedByFaxNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->BookedByFaxNo->CellAttributes() ?>><span id="el_BookedByFaxNo">
<input type="text" name="x_BookedByFaxNo" id="x_BookedByFaxNo" title="<?php echo $cstArchivedStudents2015->BookedByFaxNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->BookedByFaxNo->EditValue ?>"<?php echo $cstArchivedStudents2015->BookedByFaxNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->BookedByFaxNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->BookedByCellNo->Visible) { // BookedByCellNo ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->BookedByCellNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->BookedByCellNo->CellAttributes() ?>><span id="el_BookedByCellNo">
<input type="text" name="x_BookedByCellNo" id="x_BookedByCellNo" title="<?php echo $cstArchivedStudents2015->BookedByCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->BookedByCellNo->EditValue ?>"<?php echo $cstArchivedStudents2015->BookedByCellNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->BookedByCellNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->BookedByEmail->Visible) { // BookedByEmail ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->BookedByEmail->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->BookedByEmail->CellAttributes() ?>><span id="el_BookedByEmail">
<input type="text" name="x_BookedByEmail" id="x_BookedByEmail" title="<?php echo $cstArchivedStudents2015->BookedByEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->BookedByEmail->EditValue ?>"<?php echo $cstArchivedStudents2015->BookedByEmail->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->BookedByEmail->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->WebUsername->Visible) { // WebUsername ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->WebUsername->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->WebUsername->CellAttributes() ?>><span id="el_WebUsername">
<input type="text" name="x_WebUsername" id="x_WebUsername" title="<?php echo $cstArchivedStudents2015->WebUsername->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents2015->WebUsername->EditValue ?>"<?php echo $cstArchivedStudents2015->WebUsername->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->WebUsername->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->WebPassword->Visible) { // WebPassword ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->WebPassword->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->WebPassword->CellAttributes() ?>><span id="el_WebPassword">
<input type="text" name="x_WebPassword" id="x_WebPassword" title="<?php echo $cstArchivedStudents2015->WebPassword->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedStudents2015->WebPassword->EditValue ?>"<?php echo $cstArchivedStudents2015->WebPassword->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->WebPassword->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->MentorName->Visible) { // MentorName ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->MentorName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->MentorName->CellAttributes() ?>><span id="el_MentorName">
<input type="text" name="x_MentorName" id="x_MentorName" title="<?php echo $cstArchivedStudents2015->MentorName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->MentorName->EditValue ?>"<?php echo $cstArchivedStudents2015->MentorName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->MentorName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->MentorDesig->Visible) { // MentorDesig ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->MentorDesig->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->MentorDesig->CellAttributes() ?>><span id="el_MentorDesig">
<input type="text" name="x_MentorDesig" id="x_MentorDesig" title="<?php echo $cstArchivedStudents2015->MentorDesig->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->MentorDesig->EditValue ?>"<?php echo $cstArchivedStudents2015->MentorDesig->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->MentorDesig->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->MentorTel->Visible) { // MentorTel ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->MentorTel->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->MentorTel->CellAttributes() ?>><span id="el_MentorTel">
<input type="text" name="x_MentorTel" id="x_MentorTel" title="<?php echo $cstArchivedStudents2015->MentorTel->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->MentorTel->EditValue ?>"<?php echo $cstArchivedStudents2015->MentorTel->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->MentorTel->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->MentorCell->Visible) { // MentorCell ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->MentorCell->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->MentorCell->CellAttributes() ?>><span id="el_MentorCell">
<input type="text" name="x_MentorCell" id="x_MentorCell" title="<?php echo $cstArchivedStudents2015->MentorCell->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->MentorCell->EditValue ?>"<?php echo $cstArchivedStudents2015->MentorCell->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->MentorCell->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->MentorEmail->Visible) { // MentorEmail ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->MentorEmail->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->MentorEmail->CellAttributes() ?>><span id="el_MentorEmail">
<input type="text" name="x_MentorEmail" id="x_MentorEmail" title="<?php echo $cstArchivedStudents2015->MentorEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->MentorEmail->EditValue ?>"<?php echo $cstArchivedStudents2015->MentorEmail->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->MentorEmail->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->HRManagerName->Visible) { // HRManagerName ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->HRManagerName->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->HRManagerName->CellAttributes() ?>><span id="el_HRManagerName">
<input type="text" name="x_HRManagerName" id="x_HRManagerName" title="<?php echo $cstArchivedStudents2015->HRManagerName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->HRManagerName->EditValue ?>"<?php echo $cstArchivedStudents2015->HRManagerName->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->HRManagerName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->HRManagerDesignation->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->HRManagerDesignation->CellAttributes() ?>><span id="el_HRManagerDesignation">
<input type="text" name="x_HRManagerDesignation" id="x_HRManagerDesignation" title="<?php echo $cstArchivedStudents2015->HRManagerDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->HRManagerDesignation->EditValue ?>"<?php echo $cstArchivedStudents2015->HRManagerDesignation->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->HRManagerDesignation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->HRManagerTelNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->HRManagerTelNo->CellAttributes() ?>><span id="el_HRManagerTelNo">
<input type="text" name="x_HRManagerTelNo" id="x_HRManagerTelNo" title="<?php echo $cstArchivedStudents2015->HRManagerTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->HRManagerTelNo->EditValue ?>"<?php echo $cstArchivedStudents2015->HRManagerTelNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->HRManagerTelNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->HRManagerCellNo->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->HRManagerCellNo->CellAttributes() ?>><span id="el_HRManagerCellNo">
<input type="text" name="x_HRManagerCellNo" id="x_HRManagerCellNo" title="<?php echo $cstArchivedStudents2015->HRManagerCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->HRManagerCellNo->EditValue ?>"<?php echo $cstArchivedStudents2015->HRManagerCellNo->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->HRManagerCellNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->HRManagerEmail->Visible) { // HRManagerEmail ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->HRManagerEmail->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->HRManagerEmail->CellAttributes() ?>><span id="el_HRManagerEmail">
<input type="text" name="x_HRManagerEmail" id="x_HRManagerEmail" title="<?php echo $cstArchivedStudents2015->HRManagerEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->HRManagerEmail->EditValue ?>"<?php echo $cstArchivedStudents2015->HRManagerEmail->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->HRManagerEmail->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->LengthEmploy->Visible) { // LengthEmploy ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->LengthEmploy->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->LengthEmploy->CellAttributes() ?>><span id="el_LengthEmploy">
<input type="text" name="x_LengthEmploy" id="x_LengthEmploy" title="<?php echo $cstArchivedStudents2015->LengthEmploy->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedStudents2015->LengthEmploy->EditValue ?>"<?php echo $cstArchivedStudents2015->LengthEmploy->EditAttributes() ?>>
</span><?php echo $cstArchivedStudents2015->LengthEmploy->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->BlockAccess->Visible) { // BlockAccess ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->BlockAccess->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $cstArchivedStudents2015->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 $cstArchivedStudents2015->BlockAccess->FldTitle() ?>" value="{value}"<?php echo $cstArchivedStudents2015->BlockAccess->EditAttributes() ?>></label></div>
<div id="dsl_x_BlockAccess" repeatcolumn="5">
<?php
$arwrk = $cstArchivedStudents2015->BlockAccess->EditValue;
if (is_array($arwrk)) {
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($cstArchivedStudents2015->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 $cstArchivedStudents2015->BlockAccess->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedStudents2015->BlockAccess->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
	}
}
?>
</div>
</span><?php echo $cstArchivedStudents2015->BlockAccess->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Archived->Visible) { // Archived ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Archived->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $cstArchivedStudents2015->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 $cstArchivedStudents2015->Archived->FldTitle() ?>" value="{value}"<?php echo $cstArchivedStudents2015->Archived->EditAttributes() ?>></div>
<div id="dsl_x_Archived" repeatcolumn="5">
<?php
$arwrk = $cstArchivedStudents2015->Archived->EditValue;
if (is_array($arwrk)) {
	$armultiwrk= explode(",", strval($cstArchivedStudents2015->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 $cstArchivedStudents2015->Archived->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedStudents2015->Archived->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
	}
}
?>
</div>
</span><?php echo $cstArchivedStudents2015->Archived->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->ResultLetter->Visible) { // ResultLetter ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->ResultLetter->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->ResultLetter->CellAttributes() ?>><span id="el_ResultLetter">
<div id="old_x_ResultLetter">
<?php if ($cstArchivedStudents2015->ResultLetter->HrefValue <> "" || $cstArchivedStudents2015->ResultLetter->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2015->ResultLetter->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2015->ResultLetter->HrefValue ?>"><?php echo $cstArchivedStudents2015->ResultLetter->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2015->ResultLetter->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2015->ResultLetter->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</div>
<div id="new_x_ResultLetter">
<?php if (!empty($cstArchivedStudents2015->ResultLetter->Upload->DbValue)) { ?>
<label><input type="radio" name="a_ResultLetter" id="a_ResultLetter" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>&nbsp;
<label><input type="radio" name="a_ResultLetter" id="a_ResultLetter" value="2"><?php echo $Language->Phrase("Remove") ?></label>&nbsp;
<label><input type="radio" name="a_ResultLetter" id="a_ResultLetter" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2015->ResultLetter->EditAttrs["onchange"] = "this.form.a_ResultLetter[2].checked=true;" . @$cstArchivedStudents2015->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 $cstArchivedStudents2015->ResultLetter->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2015->ResultLetter->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2015->ResultLetter->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->Achieved->Visible) { // Achieved ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->Achieved->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $cstArchivedStudents2015->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 $cstArchivedStudents2015->Achieved->FldTitle() ?>" value="{value}"<?php echo $cstArchivedStudents2015->Achieved->EditAttributes() ?>></div>
<div id="dsl_x_Achieved" repeatcolumn="5">
<?php
$arwrk = $cstArchivedStudents2015->Achieved->EditValue;
if (is_array($arwrk)) {
	$armultiwrk= explode(",", strval($cstArchivedStudents2015->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 $cstArchivedStudents2015->Achieved->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedStudents2015->Achieved->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
	}
}
?>
</div>
</span><?php echo $cstArchivedStudents2015->Achieved->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->IDFile->Visible) { // IDFile ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->IDFile->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->IDFile->CellAttributes() ?>><span id="el_IDFile">
<div id="old_x_IDFile">
<?php if ($cstArchivedStudents2015->IDFile->HrefValue <> "" || $cstArchivedStudents2015->IDFile->TooltipValue <> "") { ?>
<?php if (!empty($cstArchivedStudents2015->IDFile->Upload->DbValue)) { ?>
<a href="<?php echo $cstArchivedStudents2015->IDFile->HrefValue ?>"><?php echo $cstArchivedStudents2015->IDFile->EditValue ?></a>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($cstArchivedStudents2015->IDFile->Upload->DbValue)) { ?>
<?php echo $cstArchivedStudents2015->IDFile->EditValue ?>
<?php } elseif (!in_array($cstArchivedStudents2015->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</div>
<div id="new_x_IDFile">
<?php if (!empty($cstArchivedStudents2015->IDFile->Upload->DbValue)) { ?>
<label><input type="radio" name="a_IDFile" id="a_IDFile" value="1" checked="checked"><?php echo $Language->Phrase("Keep") ?></label>&nbsp;
<label><input type="radio" name="a_IDFile" id="a_IDFile" value="2"><?php echo $Language->Phrase("Remove") ?></label>&nbsp;
<label><input type="radio" name="a_IDFile" id="a_IDFile" value="3"><?php echo $Language->Phrase("Replace") ?><br></label>
<?php $cstArchivedStudents2015->IDFile->EditAttrs["onchange"] = "this.form.a_IDFile[2].checked=true;" . @$cstArchivedStudents2015->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 $cstArchivedStudents2015->IDFile->FldTitle() ?>" size="30"<?php echo $cstArchivedStudents2015->IDFile->EditAttributes() ?>>
</div>
</span><?php echo $cstArchivedStudents2015->IDFile->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($cstArchivedStudents2015->ReasonForLeaving->Visible) { // ReasonForLeaving ?>
	<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
		<td class="ewTableHeader"><?php echo $cstArchivedStudents2015->ReasonForLeaving->FldCaption() ?></td>
		<td<?php echo $cstArchivedStudents2015->ReasonForLeaving->CellAttributes() ?>><span id="el_ReasonForLeaving">
<textarea name="x_ReasonForLeaving" id="x_ReasonForLeaving" title="<?php echo $cstArchivedStudents2015->ReasonForLeaving->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedStudents2015->ReasonForLeaving->EditAttributes() ?>><?php echo $cstArchivedStudents2015->ReasonForLeaving->EditValue ?></textarea>
</span><?php echo $cstArchivedStudents2015->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
$cstArchivedStudents2015_edit->Page_Terminate();
?>
<?php

//
// Page class
//
class ccstArchivedStudents2015_edit {

	// Page ID
	var $PageID = 'edit';

	// Table name
	var $TableName = 'cstArchivedStudents2015';

	// Page object name
	var $PageObjName = 'cstArchivedStudents2015_edit';

	// Page name
	function PageName() {
		return ew_CurrentPage();
	}

	// Page URL
	function PageUrl() {
		$PageUrl = ew_CurrentPage() . "?";
		global $cstArchivedStudents2015;
		if ($cstArchivedStudents2015->UseTokenInUrl) $PageUrl .= "t=" . $cstArchivedStudents2015->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, $cstArchivedStudents2015;
		if ($cstArchivedStudents2015->UseTokenInUrl) {
			if ($objForm)
				return ($cstArchivedStudents2015->TableVar == $objForm->GetValue("t"));
			if (@$_GET["t"] <> "")
				return ($cstArchivedStudents2015->TableVar == $_GET["t"]);
		} else {
			return TRUE;
		}
	}

	//
	// Page class constructor
	//
	function __construct() {
		global $conn, $Language;

		// Language object
		$Language = new cLanguage();

		// Table object (cstArchivedStudents2015)
		$GLOBALS["cstArchivedStudents2015"] = new ccstArchivedStudents2015();

		// 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", 'cstArchivedStudents2015', 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 $cstArchivedStudents2015;

		// 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("cstArchivedStudents2015list.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, $cstArchivedStudents2015;

		// Load key from QueryString
		if (@$_GET["CCEStudentID"] <> "")
			$cstArchivedStudents2015->CCEStudentID->setQueryStringValue($_GET["CCEStudentID"]);
		if (@$_POST["a_edit"] <> "") {
			$cstArchivedStudents2015->CurrentAction = $_POST["a_edit"]; // Get action code
			$this->GetUploadFiles(); // Get upload files
			$this->LoadFormValues(); // Get form values

			// Validate form
			if (!$this->ValidateForm()) {
				$cstArchivedStudents2015->CurrentAction = ""; // Form error, reset action
				$this->setMessage($gsFormError);
				$cstArchivedStudents2015->EventCancelled = TRUE; // Event cancelled
				$this->RestoreFormValues();
			}
		} else {
			$cstArchivedStudents2015->CurrentAction = "I"; // Default action is display
		}

		// Check if valid key
		if ($cstArchivedStudents2015->CCEStudentID->CurrentValue == "")
			$this->Page_Terminate("cstArchivedStudents2015list.php"); // Invalid key, return to list
		switch ($cstArchivedStudents2015->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("cstArchivedStudents2015list.php"); // No matching record, return to list
				}
				break;
			Case "U": // Update
				$cstArchivedStudents2015->SendEmail = TRUE; // Send email on update success
				if ($this->EditRow()) { // Update record based on key
					$this->setMessage($Language->Phrase("UpdateSuccess")); // Update success
					$sReturnUrl = $cstArchivedStudents2015->getReturnUrl();
					if (ew_GetPageName($sReturnUrl) == "cstArchivedStudents2015view.php")
						$sReturnUrl = $cstArchivedStudents2015->ViewUrl(); // View paging, return to View page directly
					$this->Page_Terminate($sReturnUrl); // Return to caller
				} else {
					$cstArchivedStudents2015->EventCancelled = TRUE; // Event cancelled
					$this->RestoreFormValues(); // Restore form values if update failed
				}
		}

		// Render the record
		$cstArchivedStudents2015->RowType = EW_ROWTYPE_EDIT; // Render as Edit
		$this->RenderRow();
	}

	// Get upload files
	function GetUploadFiles() {
		global $objForm, $cstArchivedStudents2015;

		// Get upload data
			if ($cstArchivedStudents2015->CVFile->Upload->UploadFile()) {

				// No action required
			} else {
				echo $cstArchivedStudents2015->CVFile->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($cstArchivedStudents2015->QualCertificate1->Upload->UploadFile()) {

				// No action required
			} else {
				echo $cstArchivedStudents2015->QualCertificate1->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($cstArchivedStudents2015->QualCertificate2->Upload->UploadFile()) {

				// No action required
			} else {
				echo $cstArchivedStudents2015->QualCertificate2->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($cstArchivedStudents2015->QualCertificate3->Upload->UploadFile()) {

				// No action required
			} else {
				echo $cstArchivedStudents2015->QualCertificate3->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($cstArchivedStudents2015->MemorandumFile->Upload->UploadFile()) {

				// No action required
			} else {
				echo $cstArchivedStudents2015->MemorandumFile->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($cstArchivedStudents2015->AgreementFile->Upload->UploadFile()) {

				// No action required
			} else {
				echo $cstArchivedStudents2015->AgreementFile->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($cstArchivedStudents2015->ResultLetter->Upload->UploadFile()) {

				// No action required
			} else {
				echo $cstArchivedStudents2015->ResultLetter->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($cstArchivedStudents2015->IDFile->Upload->UploadFile()) {

				// No action required
			} else {
				echo $cstArchivedStudents2015->IDFile->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
	}

	// Load form values
	function LoadFormValues() {

		// Load from form
		global $objForm, $cstArchivedStudents2015;
		$cstArchivedStudents2015->CCEStudentID->setFormValue($objForm->GetValue("x_CCEStudentID"));
		$cstArchivedStudents2015->Title->setFormValue($objForm->GetValue("x_Title"));
		$cstArchivedStudents2015->FirstName->setFormValue($objForm->GetValue("x_FirstName"));
		$cstArchivedStudents2015->Surname->setFormValue($objForm->GetValue("x_Surname"));
		$cstArchivedStudents2015->KnownAs->setFormValue($objForm->GetValue("x_KnownAs"));
		$cstArchivedStudents2015->Organisation->setFormValue($objForm->GetValue("x_Organisation"));
		$cstArchivedStudents2015->OrganisationType->setFormValue($objForm->GetValue("x_OrganisationType"));
		$cstArchivedStudents2015->StudentNumber->setFormValue($objForm->GetValue("x_StudentNumber"));
		$cstArchivedStudents2015->CCEFacilitatorID->setFormValue($objForm->GetValue("x_CCEFacilitatorID"));
		$cstArchivedStudents2015->Project->setFormValue($objForm->GetValue("x_Project"));
		$cstArchivedStudents2015->ProjectDiscipline->setFormValue($objForm->GetValue("x_ProjectDiscipline"));
		$cstArchivedStudents2015->IDNumber->setFormValue($objForm->GetValue("x_IDNumber"));
		$cstArchivedStudents2015->ECSANumber->setFormValue($objForm->GetValue("x_ECSANumber"));
		$cstArchivedStudents2015->Age->setFormValue($objForm->GetValue("x_Age"));
		$cstArchivedStudents2015->HighestQual->setFormValue($objForm->GetValue("x_HighestQual"));
		$cstArchivedStudents2015->AreaDiscipline->setFormValue($objForm->GetValue("x_AreaDiscipline"));
		$cstArchivedStudents2015->Telephone->setFormValue($objForm->GetValue("x_Telephone"));
		$cstArchivedStudents2015->Cellphone->setFormValue($objForm->GetValue("x_Cellphone"));
		$cstArchivedStudents2015->EmailAddress->setFormValue($objForm->GetValue("x_EmailAddress"));
		$cstArchivedStudents2015->HomeAddress->setFormValue($objForm->GetValue("x_HomeAddress"));
		$cstArchivedStudents2015->WorkAddress->setFormValue($objForm->GetValue("x_WorkAddress"));
		$cstArchivedStudents2015->PostalAddress->setFormValue($objForm->GetValue("x_PostalAddress"));
		$cstArchivedStudents2015->Designation->setFormValue($objForm->GetValue("x_Designation"));
		$cstArchivedStudents2015->Department->setFormValue($objForm->GetValue("x_Department"));
		$cstArchivedStudents2015->CESAAccountNo->setFormValue($objForm->GetValue("x_CESAAccountNo"));
		$cstArchivedStudents2015->VATNo->setFormValue($objForm->GetValue("x_VATNo"));
		$cstArchivedStudents2015->DietaryRequirements->setFormValue($objForm->GetValue("x_DietaryRequirements"));
		$cstArchivedStudents2015->OrderNo->setFormValue($objForm->GetValue("x_OrderNo"));
		$cstArchivedStudents2015->BookedByName->setFormValue($objForm->GetValue("x_BookedByName"));
		$cstArchivedStudents2015->BookedByDesignation->setFormValue($objForm->GetValue("x_BookedByDesignation"));
		$cstArchivedStudents2015->BookedByTelNo->setFormValue($objForm->GetValue("x_BookedByTelNo"));
		$cstArchivedStudents2015->BookedByFaxNo->setFormValue($objForm->GetValue("x_BookedByFaxNo"));
		$cstArchivedStudents2015->BookedByCellNo->setFormValue($objForm->GetValue("x_BookedByCellNo"));
		$cstArchivedStudents2015->BookedByEmail->setFormValue($objForm->GetValue("x_BookedByEmail"));
		$cstArchivedStudents2015->WebUsername->setFormValue($objForm->GetValue("x_WebUsername"));
		$cstArchivedStudents2015->WebPassword->setFormValue($objForm->GetValue("x_WebPassword"));
		$cstArchivedStudents2015->MentorName->setFormValue($objForm->GetValue("x_MentorName"));
		$cstArchivedStudents2015->MentorDesig->setFormValue($objForm->GetValue("x_MentorDesig"));
		$cstArchivedStudents2015->MentorTel->setFormValue($objForm->GetValue("x_MentorTel"));
		$cstArchivedStudents2015->MentorCell->setFormValue($objForm->GetValue("x_MentorCell"));
		$cstArchivedStudents2015->MentorEmail->setFormValue($objForm->GetValue("x_MentorEmail"));
		$cstArchivedStudents2015->HRManagerName->setFormValue($objForm->GetValue("x_HRManagerName"));
		$cstArchivedStudents2015->HRManagerDesignation->setFormValue($objForm->GetValue("x_HRManagerDesignation"));
		$cstArchivedStudents2015->HRManagerTelNo->setFormValue($objForm->GetValue("x_HRManagerTelNo"));
		$cstArchivedStudents2015->HRManagerCellNo->setFormValue($objForm->GetValue("x_HRManagerCellNo"));
		$cstArchivedStudents2015->HRManagerEmail->setFormValue($objForm->GetValue("x_HRManagerEmail"));
		$cstArchivedStudents2015->LengthEmploy->setFormValue($objForm->GetValue("x_LengthEmploy"));
		$cstArchivedStudents2015->BlockAccess->setFormValue($objForm->GetValue("x_BlockAccess"));
		$cstArchivedStudents2015->Archived->setFormValue($objForm->GetValue("x_Archived"));
		$cstArchivedStudents2015->Achieved->setFormValue($objForm->GetValue("x_Achieved"));
		$cstArchivedStudents2015->ReasonForLeaving->setFormValue($objForm->GetValue("x_ReasonForLeaving"));
	}

	// Restore form values
	function RestoreFormValues() {
		global $objForm, $cstArchivedStudents2015;
		$this->LoadRow();
		$cstArchivedStudents2015->CCEStudentID->CurrentValue = $cstArchivedStudents2015->CCEStudentID->FormValue;
		$cstArchivedStudents2015->Title->CurrentValue = $cstArchivedStudents2015->Title->FormValue;
		$cstArchivedStudents2015->FirstName->CurrentValue = $cstArchivedStudents2015->FirstName->FormValue;
		$cstArchivedStudents2015->Surname->CurrentValue = $cstArchivedStudents2015->Surname->FormValue;
		$cstArchivedStudents2015->KnownAs->CurrentValue = $cstArchivedStudents2015->KnownAs->FormValue;
		$cstArchivedStudents2015->Organisation->CurrentValue = $cstArchivedStudents2015->Organisation->FormValue;
		$cstArchivedStudents2015->OrganisationType->CurrentValue = $cstArchivedStudents2015->OrganisationType->FormValue;
		$cstArchivedStudents2015->StudentNumber->CurrentValue = $cstArchivedStudents2015->StudentNumber->FormValue;
		$cstArchivedStudents2015->CCEFacilitatorID->CurrentValue = $cstArchivedStudents2015->CCEFacilitatorID->FormValue;
		$cstArchivedStudents2015->Project->CurrentValue = $cstArchivedStudents2015->Project->FormValue;
		$cstArchivedStudents2015->ProjectDiscipline->CurrentValue = $cstArchivedStudents2015->ProjectDiscipline->FormValue;
		$cstArchivedStudents2015->IDNumber->CurrentValue = $cstArchivedStudents2015->IDNumber->FormValue;
		$cstArchivedStudents2015->ECSANumber->CurrentValue = $cstArchivedStudents2015->ECSANumber->FormValue;
		$cstArchivedStudents2015->Age->CurrentValue = $cstArchivedStudents2015->Age->FormValue;
		$cstArchivedStudents2015->HighestQual->CurrentValue = $cstArchivedStudents2015->HighestQual->FormValue;
		$cstArchivedStudents2015->AreaDiscipline->CurrentValue = $cstArchivedStudents2015->AreaDiscipline->FormValue;
		$cstArchivedStudents2015->Telephone->CurrentValue = $cstArchivedStudents2015->Telephone->FormValue;
		$cstArchivedStudents2015->Cellphone->CurrentValue = $cstArchivedStudents2015->Cellphone->FormValue;
		$cstArchivedStudents2015->EmailAddress->CurrentValue = $cstArchivedStudents2015->EmailAddress->FormValue;
		$cstArchivedStudents2015->HomeAddress->CurrentValue = $cstArchivedStudents2015->HomeAddress->FormValue;
		$cstArchivedStudents2015->WorkAddress->CurrentValue = $cstArchivedStudents2015->WorkAddress->FormValue;
		$cstArchivedStudents2015->PostalAddress->CurrentValue = $cstArchivedStudents2015->PostalAddress->FormValue;
		$cstArchivedStudents2015->Designation->CurrentValue = $cstArchivedStudents2015->Designation->FormValue;
		$cstArchivedStudents2015->Department->CurrentValue = $cstArchivedStudents2015->Department->FormValue;
		$cstArchivedStudents2015->CESAAccountNo->CurrentValue = $cstArchivedStudents2015->CESAAccountNo->FormValue;
		$cstArchivedStudents2015->VATNo->CurrentValue = $cstArchivedStudents2015->VATNo->FormValue;
		$cstArchivedStudents2015->DietaryRequirements->CurrentValue = $cstArchivedStudents2015->DietaryRequirements->FormValue;
		$cstArchivedStudents2015->OrderNo->CurrentValue = $cstArchivedStudents2015->OrderNo->FormValue;
		$cstArchivedStudents2015->BookedByName->CurrentValue = $cstArchivedStudents2015->BookedByName->FormValue;
		$cstArchivedStudents2015->BookedByDesignation->CurrentValue = $cstArchivedStudents2015->BookedByDesignation->FormValue;
		$cstArchivedStudents2015->BookedByTelNo->CurrentValue = $cstArchivedStudents2015->BookedByTelNo->FormValue;
		$cstArchivedStudents2015->BookedByFaxNo->CurrentValue = $cstArchivedStudents2015->BookedByFaxNo->FormValue;
		$cstArchivedStudents2015->BookedByCellNo->CurrentValue = $cstArchivedStudents2015->BookedByCellNo->FormValue;
		$cstArchivedStudents2015->BookedByEmail->CurrentValue = $cstArchivedStudents2015->BookedByEmail->FormValue;
		$cstArchivedStudents2015->WebUsername->CurrentValue = $cstArchivedStudents2015->WebUsername->FormValue;
		$cstArchivedStudents2015->WebPassword->CurrentValue = $cstArchivedStudents2015->WebPassword->FormValue;
		$cstArchivedStudents2015->MentorName->CurrentValue = $cstArchivedStudents2015->MentorName->FormValue;
		$cstArchivedStudents2015->MentorDesig->CurrentValue = $cstArchivedStudents2015->MentorDesig->FormValue;
		$cstArchivedStudents2015->MentorTel->CurrentValue = $cstArchivedStudents2015->MentorTel->FormValue;
		$cstArchivedStudents2015->MentorCell->CurrentValue = $cstArchivedStudents2015->MentorCell->FormValue;
		$cstArchivedStudents2015->MentorEmail->CurrentValue = $cstArchivedStudents2015->MentorEmail->FormValue;
		$cstArchivedStudents2015->HRManagerName->CurrentValue = $cstArchivedStudents2015->HRManagerName->FormValue;
		$cstArchivedStudents2015->HRManagerDesignation->CurrentValue = $cstArchivedStudents2015->HRManagerDesignation->FormValue;
		$cstArchivedStudents2015->HRManagerTelNo->CurrentValue = $cstArchivedStudents2015->HRManagerTelNo->FormValue;
		$cstArchivedStudents2015->HRManagerCellNo->CurrentValue = $cstArchivedStudents2015->HRManagerCellNo->FormValue;
		$cstArchivedStudents2015->HRManagerEmail->CurrentValue = $cstArchivedStudents2015->HRManagerEmail->FormValue;
		$cstArchivedStudents2015->LengthEmploy->CurrentValue = $cstArchivedStudents2015->LengthEmploy->FormValue;
		$cstArchivedStudents2015->BlockAccess->CurrentValue = $cstArchivedStudents2015->BlockAccess->FormValue;
		$cstArchivedStudents2015->Archived->CurrentValue = $cstArchivedStudents2015->Archived->FormValue;
		$cstArchivedStudents2015->Achieved->CurrentValue = $cstArchivedStudents2015->Achieved->FormValue;
		$cstArchivedStudents2015->ReasonForLeaving->CurrentValue = $cstArchivedStudents2015->ReasonForLeaving->FormValue;
	}

	// Load row based on key values
	function LoadRow() {
		global $conn, $Security, $cstArchivedStudents2015;
		$sFilter = $cstArchivedStudents2015->KeyFilter();

		// Call Row Selecting event
		$cstArchivedStudents2015->Row_Selecting($sFilter);

		// Load SQL based on filter
		$cstArchivedStudents2015->CurrentFilter = $sFilter;
		$sSql = $cstArchivedStudents2015->SQL();
		$res = FALSE;
		$rs = ew_LoadRecordset($sSql);
		if ($rs && !$rs->EOF) {
			$res = TRUE;
			$this->LoadRowValues($rs); // Load row values

			// Call Row Selected event
			$cstArchivedStudents2015->Row_Selected($rs);
			$rs->Close();
		}
		return $res;
	}

	// Load row values from recordset
	function LoadRowValues(&$rs) {
		global $conn, $cstArchivedStudents2015;
		$cstArchivedStudents2015->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
		$cstArchivedStudents2015->Title->setDbValue($rs->fields('Title'));
		$cstArchivedStudents2015->FirstName->setDbValue($rs->fields('FirstName'));
		$cstArchivedStudents2015->Surname->setDbValue($rs->fields('Surname'));
		$cstArchivedStudents2015->KnownAs->setDbValue($rs->fields('KnownAs'));
		$cstArchivedStudents2015->Organisation->setDbValue($rs->fields('Organisation'));
		$cstArchivedStudents2015->OrganisationType->setDbValue($rs->fields('OrganisationType'));
		$cstArchivedStudents2015->StudentNumber->setDbValue($rs->fields('StudentNumber'));
		$cstArchivedStudents2015->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
		$cstArchivedStudents2015->Project->setDbValue($rs->fields('Project'));
		$cstArchivedStudents2015->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
		$cstArchivedStudents2015->IDNumber->setDbValue($rs->fields('IDNumber'));
		$cstArchivedStudents2015->ECSANumber->setDbValue($rs->fields('ECSANumber'));
		$cstArchivedStudents2015->Age->setDbValue($rs->fields('Age'));
		$cstArchivedStudents2015->HighestQual->setDbValue($rs->fields('HighestQual'));
		$cstArchivedStudents2015->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
		$cstArchivedStudents2015->Telephone->setDbValue($rs->fields('Telephone'));
		$cstArchivedStudents2015->Cellphone->setDbValue($rs->fields('Cellphone'));
		$cstArchivedStudents2015->EmailAddress->setDbValue($rs->fields('EmailAddress'));
		$cstArchivedStudents2015->HomeAddress->setDbValue($rs->fields('HomeAddress'));
		$cstArchivedStudents2015->WorkAddress->setDbValue($rs->fields('WorkAddress'));
		$cstArchivedStudents2015->PostalAddress->setDbValue($rs->fields('PostalAddress'));
		$cstArchivedStudents2015->Designation->setDbValue($rs->fields('Designation'));
		$cstArchivedStudents2015->Department->setDbValue($rs->fields('Department'));
		$cstArchivedStudents2015->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
		$cstArchivedStudents2015->VATNo->setDbValue($rs->fields('VATNo'));
		$cstArchivedStudents2015->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
		$cstArchivedStudents2015->CVFile->Upload->DbValue = $rs->fields('CVFile');
		$cstArchivedStudents2015->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
		$cstArchivedStudents2015->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
		$cstArchivedStudents2015->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
		$cstArchivedStudents2015->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
		$cstArchivedStudents2015->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
		$cstArchivedStudents2015->OrderNo->setDbValue($rs->fields('OrderNo'));
		$cstArchivedStudents2015->BookedByName->setDbValue($rs->fields('BookedByName'));
		$cstArchivedStudents2015->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
		$cstArchivedStudents2015->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
		$cstArchivedStudents2015->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
		$cstArchivedStudents2015->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
		$cstArchivedStudents2015->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
		$cstArchivedStudents2015->WebUsername->setDbValue($rs->fields('WebUsername'));
		$cstArchivedStudents2015->WebPassword->setDbValue($rs->fields('WebPassword'));
		$cstArchivedStudents2015->MentorName->setDbValue($rs->fields('MentorName'));
		$cstArchivedStudents2015->MentorDesig->setDbValue($rs->fields('MentorDesig'));
		$cstArchivedStudents2015->MentorTel->setDbValue($rs->fields('MentorTel'));
		$cstArchivedStudents2015->MentorCell->setDbValue($rs->fields('MentorCell'));
		$cstArchivedStudents2015->MentorEmail->setDbValue($rs->fields('MentorEmail'));
		$cstArchivedStudents2015->HRManagerName->setDbValue($rs->fields('HRManagerName'));
		$cstArchivedStudents2015->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
		$cstArchivedStudents2015->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
		$cstArchivedStudents2015->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
		$cstArchivedStudents2015->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
		$cstArchivedStudents2015->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
		$cstArchivedStudents2015->BlockAccess->setDbValue($rs->fields('BlockAccess'));
		$cstArchivedStudents2015->Archived->setDbValue($rs->fields('Archived'));
		$cstArchivedStudents2015->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter');
		$cstArchivedStudents2015->Achieved->setDbValue($rs->fields('Achieved'));
		$cstArchivedStudents2015->IDFile->Upload->DbValue = $rs->fields('IDFile');
		$cstArchivedStudents2015->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
	}

	// Render row values based on field settings
	function RenderRow() {
		global $conn, $Security, $Language, $cstArchivedStudents2015;

		// Initialize URLs
		// Call Row_Rendering event

		$cstArchivedStudents2015->Row_Rendering();

		// Common render codes for all row types
		// CCEStudentID

		$cstArchivedStudents2015->CCEStudentID->CellCssStyle = ""; $cstArchivedStudents2015->CCEStudentID->CellCssClass = "";
		$cstArchivedStudents2015->CCEStudentID->CellAttrs = array(); $cstArchivedStudents2015->CCEStudentID->ViewAttrs = array(); $cstArchivedStudents2015->CCEStudentID->EditAttrs = array();

		// Title
		$cstArchivedStudents2015->Title->CellCssStyle = ""; $cstArchivedStudents2015->Title->CellCssClass = "";
		$cstArchivedStudents2015->Title->CellAttrs = array(); $cstArchivedStudents2015->Title->ViewAttrs = array(); $cstArchivedStudents2015->Title->EditAttrs = array();

		// FirstName
		$cstArchivedStudents2015->FirstName->CellCssStyle = ""; $cstArchivedStudents2015->FirstName->CellCssClass = "";
		$cstArchivedStudents2015->FirstName->CellAttrs = array(); $cstArchivedStudents2015->FirstName->ViewAttrs = array(); $cstArchivedStudents2015->FirstName->EditAttrs = array();

		// Surname
		$cstArchivedStudents2015->Surname->CellCssStyle = ""; $cstArchivedStudents2015->Surname->CellCssClass = "";
		$cstArchivedStudents2015->Surname->CellAttrs = array(); $cstArchivedStudents2015->Surname->ViewAttrs = array(); $cstArchivedStudents2015->Surname->EditAttrs = array();

		// KnownAs
		$cstArchivedStudents2015->KnownAs->CellCssStyle = ""; $cstArchivedStudents2015->KnownAs->CellCssClass = "";
		$cstArchivedStudents2015->KnownAs->CellAttrs = array(); $cstArchivedStudents2015->KnownAs->ViewAttrs = array(); $cstArchivedStudents2015->KnownAs->EditAttrs = array();

		// Organisation
		$cstArchivedStudents2015->Organisation->CellCssStyle = ""; $cstArchivedStudents2015->Organisation->CellCssClass = "";
		$cstArchivedStudents2015->Organisation->CellAttrs = array(); $cstArchivedStudents2015->Organisation->ViewAttrs = array(); $cstArchivedStudents2015->Organisation->EditAttrs = array();

		// OrganisationType
		$cstArchivedStudents2015->OrganisationType->CellCssStyle = ""; $cstArchivedStudents2015->OrganisationType->CellCssClass = "";
		$cstArchivedStudents2015->OrganisationType->CellAttrs = array(); $cstArchivedStudents2015->OrganisationType->ViewAttrs = array(); $cstArchivedStudents2015->OrganisationType->EditAttrs = array();

		// StudentNumber
		$cstArchivedStudents2015->StudentNumber->CellCssStyle = ""; $cstArchivedStudents2015->StudentNumber->CellCssClass = "";
		$cstArchivedStudents2015->StudentNumber->CellAttrs = array(); $cstArchivedStudents2015->StudentNumber->ViewAttrs = array(); $cstArchivedStudents2015->StudentNumber->EditAttrs = array();

		// CCEFacilitatorID
		$cstArchivedStudents2015->CCEFacilitatorID->CellCssStyle = ""; $cstArchivedStudents2015->CCEFacilitatorID->CellCssClass = "";
		$cstArchivedStudents2015->CCEFacilitatorID->CellAttrs = array(); $cstArchivedStudents2015->CCEFacilitatorID->ViewAttrs = array(); $cstArchivedStudents2015->CCEFacilitatorID->EditAttrs = array();

		// Project
		$cstArchivedStudents2015->Project->CellCssStyle = ""; $cstArchivedStudents2015->Project->CellCssClass = "";
		$cstArchivedStudents2015->Project->CellAttrs = array(); $cstArchivedStudents2015->Project->ViewAttrs = array(); $cstArchivedStudents2015->Project->EditAttrs = array();

		// ProjectDiscipline
		$cstArchivedStudents2015->ProjectDiscipline->CellCssStyle = ""; $cstArchivedStudents2015->ProjectDiscipline->CellCssClass = "";
		$cstArchivedStudents2015->ProjectDiscipline->CellAttrs = array(); $cstArchivedStudents2015->ProjectDiscipline->ViewAttrs = array(); $cstArchivedStudents2015->ProjectDiscipline->EditAttrs = array();

		// IDNumber
		$cstArchivedStudents2015->IDNumber->CellCssStyle = ""; $cstArchivedStudents2015->IDNumber->CellCssClass = "";
		$cstArchivedStudents2015->IDNumber->CellAttrs = array(); $cstArchivedStudents2015->IDNumber->ViewAttrs = array(); $cstArchivedStudents2015->IDNumber->EditAttrs = array();

		// ECSANumber
		$cstArchivedStudents2015->ECSANumber->CellCssStyle = ""; $cstArchivedStudents2015->ECSANumber->CellCssClass = "";
		$cstArchivedStudents2015->ECSANumber->CellAttrs = array(); $cstArchivedStudents2015->ECSANumber->ViewAttrs = array(); $cstArchivedStudents2015->ECSANumber->EditAttrs = array();

		// Age
		$cstArchivedStudents2015->Age->CellCssStyle = ""; $cstArchivedStudents2015->Age->CellCssClass = "";
		$cstArchivedStudents2015->Age->CellAttrs = array(); $cstArchivedStudents2015->Age->ViewAttrs = array(); $cstArchivedStudents2015->Age->EditAttrs = array();

		// HighestQual
		$cstArchivedStudents2015->HighestQual->CellCssStyle = ""; $cstArchivedStudents2015->HighestQual->CellCssClass = "";
		$cstArchivedStudents2015->HighestQual->CellAttrs = array(); $cstArchivedStudents2015->HighestQual->ViewAttrs = array(); $cstArchivedStudents2015->HighestQual->EditAttrs = array();

		// AreaDiscipline
		$cstArchivedStudents2015->AreaDiscipline->CellCssStyle = ""; $cstArchivedStudents2015->AreaDiscipline->CellCssClass = "";
		$cstArchivedStudents2015->AreaDiscipline->CellAttrs = array(); $cstArchivedStudents2015->AreaDiscipline->ViewAttrs = array(); $cstArchivedStudents2015->AreaDiscipline->EditAttrs = array();

		// Telephone
		$cstArchivedStudents2015->Telephone->CellCssStyle = ""; $cstArchivedStudents2015->Telephone->CellCssClass = "";
		$cstArchivedStudents2015->Telephone->CellAttrs = array(); $cstArchivedStudents2015->Telephone->ViewAttrs = array(); $cstArchivedStudents2015->Telephone->EditAttrs = array();

		// Cellphone
		$cstArchivedStudents2015->Cellphone->CellCssStyle = ""; $cstArchivedStudents2015->Cellphone->CellCssClass = "";
		$cstArchivedStudents2015->Cellphone->CellAttrs = array(); $cstArchivedStudents2015->Cellphone->ViewAttrs = array(); $cstArchivedStudents2015->Cellphone->EditAttrs = array();

		// EmailAddress
		$cstArchivedStudents2015->EmailAddress->CellCssStyle = ""; $cstArchivedStudents2015->EmailAddress->CellCssClass = "";
		$cstArchivedStudents2015->EmailAddress->CellAttrs = array(); $cstArchivedStudents2015->EmailAddress->ViewAttrs = array(); $cstArchivedStudents2015->EmailAddress->EditAttrs = array();

		// HomeAddress
		$cstArchivedStudents2015->HomeAddress->CellCssStyle = ""; $cstArchivedStudents2015->HomeAddress->CellCssClass = "";
		$cstArchivedStudents2015->HomeAddress->CellAttrs = array(); $cstArchivedStudents2015->HomeAddress->ViewAttrs = array(); $cstArchivedStudents2015->HomeAddress->EditAttrs = array();

		// WorkAddress
		$cstArchivedStudents2015->WorkAddress->CellCssStyle = ""; $cstArchivedStudents2015->WorkAddress->CellCssClass = "";
		$cstArchivedStudents2015->WorkAddress->CellAttrs = array(); $cstArchivedStudents2015->WorkAddress->ViewAttrs = array(); $cstArchivedStudents2015->WorkAddress->EditAttrs = array();

		// PostalAddress
		$cstArchivedStudents2015->PostalAddress->CellCssStyle = ""; $cstArchivedStudents2015->PostalAddress->CellCssClass = "";
		$cstArchivedStudents2015->PostalAddress->CellAttrs = array(); $cstArchivedStudents2015->PostalAddress->ViewAttrs = array(); $cstArchivedStudents2015->PostalAddress->EditAttrs = array();

		// Designation
		$cstArchivedStudents2015->Designation->CellCssStyle = ""; $cstArchivedStudents2015->Designation->CellCssClass = "";
		$cstArchivedStudents2015->Designation->CellAttrs = array(); $cstArchivedStudents2015->Designation->ViewAttrs = array(); $cstArchivedStudents2015->Designation->EditAttrs = array();

		// Department
		$cstArchivedStudents2015->Department->CellCssStyle = ""; $cstArchivedStudents2015->Department->CellCssClass = "";
		$cstArchivedStudents2015->Department->CellAttrs = array(); $cstArchivedStudents2015->Department->ViewAttrs = array(); $cstArchivedStudents2015->Department->EditAttrs = array();

		// CESAAccountNo
		$cstArchivedStudents2015->CESAAccountNo->CellCssStyle = ""; $cstArchivedStudents2015->CESAAccountNo->CellCssClass = "";
		$cstArchivedStudents2015->CESAAccountNo->CellAttrs = array(); $cstArchivedStudents2015->CESAAccountNo->ViewAttrs = array(); $cstArchivedStudents2015->CESAAccountNo->EditAttrs = array();

		// VATNo
		$cstArchivedStudents2015->VATNo->CellCssStyle = ""; $cstArchivedStudents2015->VATNo->CellCssClass = "";
		$cstArchivedStudents2015->VATNo->CellAttrs = array(); $cstArchivedStudents2015->VATNo->ViewAttrs = array(); $cstArchivedStudents2015->VATNo->EditAttrs = array();

		// DietaryRequirements
		$cstArchivedStudents2015->DietaryRequirements->CellCssStyle = ""; $cstArchivedStudents2015->DietaryRequirements->CellCssClass = "";
		$cstArchivedStudents2015->DietaryRequirements->CellAttrs = array(); $cstArchivedStudents2015->DietaryRequirements->ViewAttrs = array(); $cstArchivedStudents2015->DietaryRequirements->EditAttrs = array();

		// CVFile
		$cstArchivedStudents2015->CVFile->CellCssStyle = ""; $cstArchivedStudents2015->CVFile->CellCssClass = "";
		$cstArchivedStudents2015->CVFile->CellAttrs = array(); $cstArchivedStudents2015->CVFile->ViewAttrs = array(); $cstArchivedStudents2015->CVFile->EditAttrs = array();

		// QualCertificate1
		$cstArchivedStudents2015->QualCertificate1->CellCssStyle = ""; $cstArchivedStudents2015->QualCertificate1->CellCssClass = "";
		$cstArchivedStudents2015->QualCertificate1->CellAttrs = array(); $cstArchivedStudents2015->QualCertificate1->ViewAttrs = array(); $cstArchivedStudents2015->QualCertificate1->EditAttrs = array();

		// QualCertificate2
		$cstArchivedStudents2015->QualCertificate2->CellCssStyle = ""; $cstArchivedStudents2015->QualCertificate2->CellCssClass = "";
		$cstArchivedStudents2015->QualCertificate2->CellAttrs = array(); $cstArchivedStudents2015->QualCertificate2->ViewAttrs = array(); $cstArchivedStudents2015->QualCertificate2->EditAttrs = array();

		// QualCertificate3
		$cstArchivedStudents2015->QualCertificate3->CellCssStyle = ""; $cstArchivedStudents2015->QualCertificate3->CellCssClass = "";
		$cstArchivedStudents2015->QualCertificate3->CellAttrs = array(); $cstArchivedStudents2015->QualCertificate3->ViewAttrs = array(); $cstArchivedStudents2015->QualCertificate3->EditAttrs = array();

		// MemorandumFile
		$cstArchivedStudents2015->MemorandumFile->CellCssStyle = ""; $cstArchivedStudents2015->MemorandumFile->CellCssClass = "";
		$cstArchivedStudents2015->MemorandumFile->CellAttrs = array(); $cstArchivedStudents2015->MemorandumFile->ViewAttrs = array(); $cstArchivedStudents2015->MemorandumFile->EditAttrs = array();

		// AgreementFile
		$cstArchivedStudents2015->AgreementFile->CellCssStyle = ""; $cstArchivedStudents2015->AgreementFile->CellCssClass = "";
		$cstArchivedStudents2015->AgreementFile->CellAttrs = array(); $cstArchivedStudents2015->AgreementFile->ViewAttrs = array(); $cstArchivedStudents2015->AgreementFile->EditAttrs = array();

		// OrderNo
		$cstArchivedStudents2015->OrderNo->CellCssStyle = ""; $cstArchivedStudents2015->OrderNo->CellCssClass = "";
		$cstArchivedStudents2015->OrderNo->CellAttrs = array(); $cstArchivedStudents2015->OrderNo->ViewAttrs = array(); $cstArchivedStudents2015->OrderNo->EditAttrs = array();

		// BookedByName
		$cstArchivedStudents2015->BookedByName->CellCssStyle = ""; $cstArchivedStudents2015->BookedByName->CellCssClass = "";
		$cstArchivedStudents2015->BookedByName->CellAttrs = array(); $cstArchivedStudents2015->BookedByName->ViewAttrs = array(); $cstArchivedStudents2015->BookedByName->EditAttrs = array();

		// BookedByDesignation
		$cstArchivedStudents2015->BookedByDesignation->CellCssStyle = ""; $cstArchivedStudents2015->BookedByDesignation->CellCssClass = "";
		$cstArchivedStudents2015->BookedByDesignation->CellAttrs = array(); $cstArchivedStudents2015->BookedByDesignation->ViewAttrs = array(); $cstArchivedStudents2015->BookedByDesignation->EditAttrs = array();

		// BookedByTelNo
		$cstArchivedStudents2015->BookedByTelNo->CellCssStyle = ""; $cstArchivedStudents2015->BookedByTelNo->CellCssClass = "";
		$cstArchivedStudents2015->BookedByTelNo->CellAttrs = array(); $cstArchivedStudents2015->BookedByTelNo->ViewAttrs = array(); $cstArchivedStudents2015->BookedByTelNo->EditAttrs = array();

		// BookedByFaxNo
		$cstArchivedStudents2015->BookedByFaxNo->CellCssStyle = ""; $cstArchivedStudents2015->BookedByFaxNo->CellCssClass = "";
		$cstArchivedStudents2015->BookedByFaxNo->CellAttrs = array(); $cstArchivedStudents2015->BookedByFaxNo->ViewAttrs = array(); $cstArchivedStudents2015->BookedByFaxNo->EditAttrs = array();

		// BookedByCellNo
		$cstArchivedStudents2015->BookedByCellNo->CellCssStyle = ""; $cstArchivedStudents2015->BookedByCellNo->CellCssClass = "";
		$cstArchivedStudents2015->BookedByCellNo->CellAttrs = array(); $cstArchivedStudents2015->BookedByCellNo->ViewAttrs = array(); $cstArchivedStudents2015->BookedByCellNo->EditAttrs = array();

		// BookedByEmail
		$cstArchivedStudents2015->BookedByEmail->CellCssStyle = ""; $cstArchivedStudents2015->BookedByEmail->CellCssClass = "";
		$cstArchivedStudents2015->BookedByEmail->CellAttrs = array(); $cstArchivedStudents2015->BookedByEmail->ViewAttrs = array(); $cstArchivedStudents2015->BookedByEmail->EditAttrs = array();

		// WebUsername
		$cstArchivedStudents2015->WebUsername->CellCssStyle = ""; $cstArchivedStudents2015->WebUsername->CellCssClass = "";
		$cstArchivedStudents2015->WebUsername->CellAttrs = array(); $cstArchivedStudents2015->WebUsername->ViewAttrs = array(); $cstArchivedStudents2015->WebUsername->EditAttrs = array();

		// WebPassword
		$cstArchivedStudents2015->WebPassword->CellCssStyle = ""; $cstArchivedStudents2015->WebPassword->CellCssClass = "";
		$cstArchivedStudents2015->WebPassword->CellAttrs = array(); $cstArchivedStudents2015->WebPassword->ViewAttrs = array(); $cstArchivedStudents2015->WebPassword->EditAttrs = array();

		// MentorName
		$cstArchivedStudents2015->MentorName->CellCssStyle = ""; $cstArchivedStudents2015->MentorName->CellCssClass = "";
		$cstArchivedStudents2015->MentorName->CellAttrs = array(); $cstArchivedStudents2015->MentorName->ViewAttrs = array(); $cstArchivedStudents2015->MentorName->EditAttrs = array();

		// MentorDesig
		$cstArchivedStudents2015->MentorDesig->CellCssStyle = ""; $cstArchivedStudents2015->MentorDesig->CellCssClass = "";
		$cstArchivedStudents2015->MentorDesig->CellAttrs = array(); $cstArchivedStudents2015->MentorDesig->ViewAttrs = array(); $cstArchivedStudents2015->MentorDesig->EditAttrs = array();

		// MentorTel
		$cstArchivedStudents2015->MentorTel->CellCssStyle = ""; $cstArchivedStudents2015->MentorTel->CellCssClass = "";
		$cstArchivedStudents2015->MentorTel->CellAttrs = array(); $cstArchivedStudents2015->MentorTel->ViewAttrs = array(); $cstArchivedStudents2015->MentorTel->EditAttrs = array();

		// MentorCell
		$cstArchivedStudents2015->MentorCell->CellCssStyle = ""; $cstArchivedStudents2015->MentorCell->CellCssClass = "";
		$cstArchivedStudents2015->MentorCell->CellAttrs = array(); $cstArchivedStudents2015->MentorCell->ViewAttrs = array(); $cstArchivedStudents2015->MentorCell->EditAttrs = array();

		// MentorEmail
		$cstArchivedStudents2015->MentorEmail->CellCssStyle = ""; $cstArchivedStudents2015->MentorEmail->CellCssClass = "";
		$cstArchivedStudents2015->MentorEmail->CellAttrs = array(); $cstArchivedStudents2015->MentorEmail->ViewAttrs = array(); $cstArchivedStudents2015->MentorEmail->EditAttrs = array();

		// HRManagerName
		$cstArchivedStudents2015->HRManagerName->CellCssStyle = ""; $cstArchivedStudents2015->HRManagerName->CellCssClass = "";
		$cstArchivedStudents2015->HRManagerName->CellAttrs = array(); $cstArchivedStudents2015->HRManagerName->ViewAttrs = array(); $cstArchivedStudents2015->HRManagerName->EditAttrs = array();

		// HRManagerDesignation
		$cstArchivedStudents2015->HRManagerDesignation->CellCssStyle = ""; $cstArchivedStudents2015->HRManagerDesignation->CellCssClass = "";
		$cstArchivedStudents2015->HRManagerDesignation->CellAttrs = array(); $cstArchivedStudents2015->HRManagerDesignation->ViewAttrs = array(); $cstArchivedStudents2015->HRManagerDesignation->EditAttrs = array();

		// HRManagerTelNo
		$cstArchivedStudents2015->HRManagerTelNo->CellCssStyle = ""; $cstArchivedStudents2015->HRManagerTelNo->CellCssClass = "";
		$cstArchivedStudents2015->HRManagerTelNo->CellAttrs = array(); $cstArchivedStudents2015->HRManagerTelNo->ViewAttrs = array(); $cstArchivedStudents2015->HRManagerTelNo->EditAttrs = array();

		// HRManagerCellNo
		$cstArchivedStudents2015->HRManagerCellNo->CellCssStyle = ""; $cstArchivedStudents2015->HRManagerCellNo->CellCssClass = "";
		$cstArchivedStudents2015->HRManagerCellNo->CellAttrs = array(); $cstArchivedStudents2015->HRManagerCellNo->ViewAttrs = array(); $cstArchivedStudents2015->HRManagerCellNo->EditAttrs = array();

		// HRManagerEmail
		$cstArchivedStudents2015->HRManagerEmail->CellCssStyle = ""; $cstArchivedStudents2015->HRManagerEmail->CellCssClass = "";
		$cstArchivedStudents2015->HRManagerEmail->CellAttrs = array(); $cstArchivedStudents2015->HRManagerEmail->ViewAttrs = array(); $cstArchivedStudents2015->HRManagerEmail->EditAttrs = array();

		// LengthEmploy
		$cstArchivedStudents2015->LengthEmploy->CellCssStyle = ""; $cstArchivedStudents2015->LengthEmploy->CellCssClass = "";
		$cstArchivedStudents2015->LengthEmploy->CellAttrs = array(); $cstArchivedStudents2015->LengthEmploy->ViewAttrs = array(); $cstArchivedStudents2015->LengthEmploy->EditAttrs = array();

		// BlockAccess
		$cstArchivedStudents2015->BlockAccess->CellCssStyle = ""; $cstArchivedStudents2015->BlockAccess->CellCssClass = "";
		$cstArchivedStudents2015->BlockAccess->CellAttrs = array(); $cstArchivedStudents2015->BlockAccess->ViewAttrs = array(); $cstArchivedStudents2015->BlockAccess->EditAttrs = array();

		// Archived
		$cstArchivedStudents2015->Archived->CellCssStyle = ""; $cstArchivedStudents2015->Archived->CellCssClass = "";
		$cstArchivedStudents2015->Archived->CellAttrs = array(); $cstArchivedStudents2015->Archived->ViewAttrs = array(); $cstArchivedStudents2015->Archived->EditAttrs = array();

		// ResultLetter
		$cstArchivedStudents2015->ResultLetter->CellCssStyle = ""; $cstArchivedStudents2015->ResultLetter->CellCssClass = "";
		$cstArchivedStudents2015->ResultLetter->CellAttrs = array(); $cstArchivedStudents2015->ResultLetter->ViewAttrs = array(); $cstArchivedStudents2015->ResultLetter->EditAttrs = array();

		// Achieved
		$cstArchivedStudents2015->Achieved->CellCssStyle = ""; $cstArchivedStudents2015->Achieved->CellCssClass = "";
		$cstArchivedStudents2015->Achieved->CellAttrs = array(); $cstArchivedStudents2015->Achieved->ViewAttrs = array(); $cstArchivedStudents2015->Achieved->EditAttrs = array();

		// IDFile
		$cstArchivedStudents2015->IDFile->CellCssStyle = ""; $cstArchivedStudents2015->IDFile->CellCssClass = "";
		$cstArchivedStudents2015->IDFile->CellAttrs = array(); $cstArchivedStudents2015->IDFile->ViewAttrs = array(); $cstArchivedStudents2015->IDFile->EditAttrs = array();

		// ReasonForLeaving
		$cstArchivedStudents2015->ReasonForLeaving->CellCssStyle = ""; $cstArchivedStudents2015->ReasonForLeaving->CellCssClass = "";
		$cstArchivedStudents2015->ReasonForLeaving->CellAttrs = array(); $cstArchivedStudents2015->ReasonForLeaving->ViewAttrs = array(); $cstArchivedStudents2015->ReasonForLeaving->EditAttrs = array();
		if ($cstArchivedStudents2015->RowType == EW_ROWTYPE_VIEW) { // View row

			// CCEStudentID
			$cstArchivedStudents2015->CCEStudentID->ViewValue = $cstArchivedStudents2015->CCEStudentID->CurrentValue;
			$cstArchivedStudents2015->CCEStudentID->CssStyle = "";
			$cstArchivedStudents2015->CCEStudentID->CssClass = "";
			$cstArchivedStudents2015->CCEStudentID->ViewCustomAttributes = "";

			// Title
			$cstArchivedStudents2015->Title->ViewValue = $cstArchivedStudents2015->Title->CurrentValue;
			$cstArchivedStudents2015->Title->CssStyle = "";
			$cstArchivedStudents2015->Title->CssClass = "";
			$cstArchivedStudents2015->Title->ViewCustomAttributes = "";

			// FirstName
			$cstArchivedStudents2015->FirstName->ViewValue = $cstArchivedStudents2015->FirstName->CurrentValue;
			$cstArchivedStudents2015->FirstName->CssStyle = "";
			$cstArchivedStudents2015->FirstName->CssClass = "";
			$cstArchivedStudents2015->FirstName->ViewCustomAttributes = "";

			// Surname
			$cstArchivedStudents2015->Surname->ViewValue = $cstArchivedStudents2015->Surname->CurrentValue;
			$cstArchivedStudents2015->Surname->CssStyle = "";
			$cstArchivedStudents2015->Surname->CssClass = "";
			$cstArchivedStudents2015->Surname->ViewCustomAttributes = "";

			// KnownAs
			$cstArchivedStudents2015->KnownAs->ViewValue = $cstArchivedStudents2015->KnownAs->CurrentValue;
			$cstArchivedStudents2015->KnownAs->CssStyle = "";
			$cstArchivedStudents2015->KnownAs->CssClass = "";
			$cstArchivedStudents2015->KnownAs->ViewCustomAttributes = "";

			// Organisation
			$cstArchivedStudents2015->Organisation->ViewValue = $cstArchivedStudents2015->Organisation->CurrentValue;
			$cstArchivedStudents2015->Organisation->CssStyle = "";
			$cstArchivedStudents2015->Organisation->CssClass = "";
			$cstArchivedStudents2015->Organisation->ViewCustomAttributes = "";

			// OrganisationType
			$cstArchivedStudents2015->OrganisationType->ViewValue = $cstArchivedStudents2015->OrganisationType->CurrentValue;
			$cstArchivedStudents2015->OrganisationType->CssStyle = "";
			$cstArchivedStudents2015->OrganisationType->CssClass = "";
			$cstArchivedStudents2015->OrganisationType->ViewCustomAttributes = "";

			// StudentNumber
			$cstArchivedStudents2015->StudentNumber->ViewValue = $cstArchivedStudents2015->StudentNumber->CurrentValue;
			$cstArchivedStudents2015->StudentNumber->CssStyle = "";
			$cstArchivedStudents2015->StudentNumber->CssClass = "";
			$cstArchivedStudents2015->StudentNumber->ViewCustomAttributes = "";

			// CCEFacilitatorID
			if (strval($cstArchivedStudents2015->CCEFacilitatorID->CurrentValue) <> "") {
				$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($cstArchivedStudents2015->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
					$cstArchivedStudents2015->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
					$rswrk->Close();
				} else {
					$cstArchivedStudents2015->CCEFacilitatorID->ViewValue = $cstArchivedStudents2015->CCEFacilitatorID->CurrentValue;
				}
			} else {
				$cstArchivedStudents2015->CCEFacilitatorID->ViewValue = NULL;
			}
			$cstArchivedStudents2015->CCEFacilitatorID->CssStyle = "";
			$cstArchivedStudents2015->CCEFacilitatorID->CssClass = "";
			$cstArchivedStudents2015->CCEFacilitatorID->ViewCustomAttributes = "";

			// Project
			if (strval($cstArchivedStudents2015->Project->CurrentValue) <> "") {
				$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($cstArchivedStudents2015->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
					$cstArchivedStudents2015->Project->ViewValue = $rswrk->fields('Project');
					$rswrk->Close();
				} else {
					$cstArchivedStudents2015->Project->ViewValue = $cstArchivedStudents2015->Project->CurrentValue;
				}
			} else {
				$cstArchivedStudents2015->Project->ViewValue = NULL;
			}
			$cstArchivedStudents2015->Project->CssStyle = "";
			$cstArchivedStudents2015->Project->CssClass = "";
			$cstArchivedStudents2015->Project->ViewCustomAttributes = "";

			// ProjectDiscipline
			$cstArchivedStudents2015->ProjectDiscipline->ViewValue = $cstArchivedStudents2015->ProjectDiscipline->CurrentValue;
			$cstArchivedStudents2015->ProjectDiscipline->CssStyle = "";
			$cstArchivedStudents2015->ProjectDiscipline->CssClass = "";
			$cstArchivedStudents2015->ProjectDiscipline->ViewCustomAttributes = "";

			// IDNumber
			$cstArchivedStudents2015->IDNumber->ViewValue = $cstArchivedStudents2015->IDNumber->CurrentValue;
			$cstArchivedStudents2015->IDNumber->CssStyle = "";
			$cstArchivedStudents2015->IDNumber->CssClass = "";
			$cstArchivedStudents2015->IDNumber->ViewCustomAttributes = "mso-number-format:General";

			// ECSANumber
			$cstArchivedStudents2015->ECSANumber->ViewValue = $cstArchivedStudents2015->ECSANumber->CurrentValue;
			$cstArchivedStudents2015->ECSANumber->CssStyle = "";
			$cstArchivedStudents2015->ECSANumber->CssClass = "";
			$cstArchivedStudents2015->ECSANumber->ViewCustomAttributes = "";

			// Age
			$cstArchivedStudents2015->Age->ViewValue = $cstArchivedStudents2015->Age->CurrentValue;
			$cstArchivedStudents2015->Age->CssStyle = "";
			$cstArchivedStudents2015->Age->CssClass = "";
			$cstArchivedStudents2015->Age->ViewCustomAttributes = "";

			// HighestQual
			$cstArchivedStudents2015->HighestQual->ViewValue = $cstArchivedStudents2015->HighestQual->CurrentValue;
			$cstArchivedStudents2015->HighestQual->CssStyle = "";
			$cstArchivedStudents2015->HighestQual->CssClass = "";
			$cstArchivedStudents2015->HighestQual->ViewCustomAttributes = "";

			// AreaDiscipline
			$cstArchivedStudents2015->AreaDiscipline->ViewValue = $cstArchivedStudents2015->AreaDiscipline->CurrentValue;
			$cstArchivedStudents2015->AreaDiscipline->CssStyle = "";
			$cstArchivedStudents2015->AreaDiscipline->CssClass = "";
			$cstArchivedStudents2015->AreaDiscipline->ViewCustomAttributes = "";

			// Telephone
			$cstArchivedStudents2015->Telephone->ViewValue = $cstArchivedStudents2015->Telephone->CurrentValue;
			$cstArchivedStudents2015->Telephone->CssStyle = "";
			$cstArchivedStudents2015->Telephone->CssClass = "";
			$cstArchivedStudents2015->Telephone->ViewCustomAttributes = "mso-number-format:General";

			// Cellphone
			$cstArchivedStudents2015->Cellphone->ViewValue = $cstArchivedStudents2015->Cellphone->CurrentValue;
			$cstArchivedStudents2015->Cellphone->CssStyle = "";
			$cstArchivedStudents2015->Cellphone->CssClass = "";
			$cstArchivedStudents2015->Cellphone->ViewCustomAttributes = "mso-number-format:General";

			// EmailAddress
			$cstArchivedStudents2015->EmailAddress->ViewValue = $cstArchivedStudents2015->EmailAddress->CurrentValue;
			$cstArchivedStudents2015->EmailAddress->CssStyle = "";
			$cstArchivedStudents2015->EmailAddress->CssClass = "";
			$cstArchivedStudents2015->EmailAddress->ViewCustomAttributes = "";

			// HomeAddress
			$cstArchivedStudents2015->HomeAddress->ViewValue = $cstArchivedStudents2015->HomeAddress->CurrentValue;
			$cstArchivedStudents2015->HomeAddress->CssStyle = "";
			$cstArchivedStudents2015->HomeAddress->CssClass = "";
			$cstArchivedStudents2015->HomeAddress->ViewCustomAttributes = "";

			// WorkAddress
			$cstArchivedStudents2015->WorkAddress->ViewValue = $cstArchivedStudents2015->WorkAddress->CurrentValue;
			$cstArchivedStudents2015->WorkAddress->CssStyle = "";
			$cstArchivedStudents2015->WorkAddress->CssClass = "";
			$cstArchivedStudents2015->WorkAddress->ViewCustomAttributes = "";

			// PostalAddress
			$cstArchivedStudents2015->PostalAddress->ViewValue = $cstArchivedStudents2015->PostalAddress->CurrentValue;
			$cstArchivedStudents2015->PostalAddress->CssStyle = "";
			$cstArchivedStudents2015->PostalAddress->CssClass = "";
			$cstArchivedStudents2015->PostalAddress->ViewCustomAttributes = "";

			// Designation
			$cstArchivedStudents2015->Designation->ViewValue = $cstArchivedStudents2015->Designation->CurrentValue;
			$cstArchivedStudents2015->Designation->CssStyle = "";
			$cstArchivedStudents2015->Designation->CssClass = "";
			$cstArchivedStudents2015->Designation->ViewCustomAttributes = "";

			// Department
			$cstArchivedStudents2015->Department->ViewValue = $cstArchivedStudents2015->Department->CurrentValue;
			$cstArchivedStudents2015->Department->CssStyle = "";
			$cstArchivedStudents2015->Department->CssClass = "";
			$cstArchivedStudents2015->Department->ViewCustomAttributes = "";

			// CESAAccountNo
			$cstArchivedStudents2015->CESAAccountNo->ViewValue = $cstArchivedStudents2015->CESAAccountNo->CurrentValue;
			$cstArchivedStudents2015->CESAAccountNo->CssStyle = "";
			$cstArchivedStudents2015->CESAAccountNo->CssClass = "";
			$cstArchivedStudents2015->CESAAccountNo->ViewCustomAttributes = "";

			// VATNo
			$cstArchivedStudents2015->VATNo->ViewValue = $cstArchivedStudents2015->VATNo->CurrentValue;
			$cstArchivedStudents2015->VATNo->CssStyle = "";
			$cstArchivedStudents2015->VATNo->CssClass = "";
			$cstArchivedStudents2015->VATNo->ViewCustomAttributes = "mso-number-format:General";

			// DietaryRequirements
			$cstArchivedStudents2015->DietaryRequirements->ViewValue = $cstArchivedStudents2015->DietaryRequirements->CurrentValue;
			$cstArchivedStudents2015->DietaryRequirements->CssStyle = "";
			$cstArchivedStudents2015->DietaryRequirements->CssClass = "";
			$cstArchivedStudents2015->DietaryRequirements->ViewCustomAttributes = "";

			// CVFile
			if (!ew_Empty($cstArchivedStudents2015->CVFile->Upload->DbValue)) {
				$cstArchivedStudents2015->CVFile->ViewValue = $cstArchivedStudents2015->CVFile->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->CVFile->ViewValue = "";
			}
			$cstArchivedStudents2015->CVFile->CssStyle = "";
			$cstArchivedStudents2015->CVFile->CssClass = "";
			$cstArchivedStudents2015->CVFile->ViewCustomAttributes = "";

			// QualCertificate1
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate1->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate1->ViewValue = $cstArchivedStudents2015->QualCertificate1->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->QualCertificate1->ViewValue = "";
			}
			$cstArchivedStudents2015->QualCertificate1->CssStyle = "";
			$cstArchivedStudents2015->QualCertificate1->CssClass = "";
			$cstArchivedStudents2015->QualCertificate1->ViewCustomAttributes = "";

			// QualCertificate2
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate2->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate2->ViewValue = $cstArchivedStudents2015->QualCertificate2->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->QualCertificate2->ViewValue = "";
			}
			$cstArchivedStudents2015->QualCertificate2->CssStyle = "";
			$cstArchivedStudents2015->QualCertificate2->CssClass = "";
			$cstArchivedStudents2015->QualCertificate2->ViewCustomAttributes = "";

			// QualCertificate3
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate3->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate3->ViewValue = $cstArchivedStudents2015->QualCertificate3->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->QualCertificate3->ViewValue = "";
			}
			$cstArchivedStudents2015->QualCertificate3->CssStyle = "";
			$cstArchivedStudents2015->QualCertificate3->CssClass = "";
			$cstArchivedStudents2015->QualCertificate3->ViewCustomAttributes = "";

			// MemorandumFile
			if (!ew_Empty($cstArchivedStudents2015->MemorandumFile->Upload->DbValue)) {
				$cstArchivedStudents2015->MemorandumFile->ViewValue = $cstArchivedStudents2015->MemorandumFile->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->MemorandumFile->ViewValue = "";
			}
			$cstArchivedStudents2015->MemorandumFile->CssStyle = "";
			$cstArchivedStudents2015->MemorandumFile->CssClass = "";
			$cstArchivedStudents2015->MemorandumFile->ViewCustomAttributes = "";

			// AgreementFile
			if (!ew_Empty($cstArchivedStudents2015->AgreementFile->Upload->DbValue)) {
				$cstArchivedStudents2015->AgreementFile->ViewValue = $cstArchivedStudents2015->AgreementFile->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->AgreementFile->ViewValue = "";
			}
			$cstArchivedStudents2015->AgreementFile->CssStyle = "";
			$cstArchivedStudents2015->AgreementFile->CssClass = "";
			$cstArchivedStudents2015->AgreementFile->ViewCustomAttributes = "";

			// OrderNo
			$cstArchivedStudents2015->OrderNo->ViewValue = $cstArchivedStudents2015->OrderNo->CurrentValue;
			$cstArchivedStudents2015->OrderNo->CssStyle = "";
			$cstArchivedStudents2015->OrderNo->CssClass = "";
			$cstArchivedStudents2015->OrderNo->ViewCustomAttributes = "";

			// BookedByName
			$cstArchivedStudents2015->BookedByName->ViewValue = $cstArchivedStudents2015->BookedByName->CurrentValue;
			$cstArchivedStudents2015->BookedByName->CssStyle = "";
			$cstArchivedStudents2015->BookedByName->CssClass = "";
			$cstArchivedStudents2015->BookedByName->ViewCustomAttributes = "";

			// BookedByDesignation
			$cstArchivedStudents2015->BookedByDesignation->ViewValue = $cstArchivedStudents2015->BookedByDesignation->CurrentValue;
			$cstArchivedStudents2015->BookedByDesignation->CssStyle = "";
			$cstArchivedStudents2015->BookedByDesignation->CssClass = "";
			$cstArchivedStudents2015->BookedByDesignation->ViewCustomAttributes = "";

			// BookedByTelNo
			$cstArchivedStudents2015->BookedByTelNo->ViewValue = $cstArchivedStudents2015->BookedByTelNo->CurrentValue;
			$cstArchivedStudents2015->BookedByTelNo->CssStyle = "";
			$cstArchivedStudents2015->BookedByTelNo->CssClass = "";
			$cstArchivedStudents2015->BookedByTelNo->ViewCustomAttributes = "mso-number-format:General";

			// BookedByFaxNo
			$cstArchivedStudents2015->BookedByFaxNo->ViewValue = $cstArchivedStudents2015->BookedByFaxNo->CurrentValue;
			$cstArchivedStudents2015->BookedByFaxNo->CssStyle = "";
			$cstArchivedStudents2015->BookedByFaxNo->CssClass = "";
			$cstArchivedStudents2015->BookedByFaxNo->ViewCustomAttributes = "mso-number-format:General";

			// BookedByCellNo
			$cstArchivedStudents2015->BookedByCellNo->ViewValue = $cstArchivedStudents2015->BookedByCellNo->CurrentValue;
			$cstArchivedStudents2015->BookedByCellNo->CssStyle = "";
			$cstArchivedStudents2015->BookedByCellNo->CssClass = "";
			$cstArchivedStudents2015->BookedByCellNo->ViewCustomAttributes = "mso-number-format:General";

			// BookedByEmail
			$cstArchivedStudents2015->BookedByEmail->ViewValue = $cstArchivedStudents2015->BookedByEmail->CurrentValue;
			$cstArchivedStudents2015->BookedByEmail->CssStyle = "";
			$cstArchivedStudents2015->BookedByEmail->CssClass = "";
			$cstArchivedStudents2015->BookedByEmail->ViewCustomAttributes = "";

			// WebUsername
			$cstArchivedStudents2015->WebUsername->ViewValue = $cstArchivedStudents2015->WebUsername->CurrentValue;
			$cstArchivedStudents2015->WebUsername->CssStyle = "";
			$cstArchivedStudents2015->WebUsername->CssClass = "";
			$cstArchivedStudents2015->WebUsername->ViewCustomAttributes = "";

			// WebPassword
			$cstArchivedStudents2015->WebPassword->ViewValue = $cstArchivedStudents2015->WebPassword->CurrentValue;
			$cstArchivedStudents2015->WebPassword->CssStyle = "";
			$cstArchivedStudents2015->WebPassword->CssClass = "";
			$cstArchivedStudents2015->WebPassword->ViewCustomAttributes = "";

			// MentorName
			$cstArchivedStudents2015->MentorName->ViewValue = $cstArchivedStudents2015->MentorName->CurrentValue;
			$cstArchivedStudents2015->MentorName->CssStyle = "";
			$cstArchivedStudents2015->MentorName->CssClass = "";
			$cstArchivedStudents2015->MentorName->ViewCustomAttributes = "";

			// MentorDesig
			$cstArchivedStudents2015->MentorDesig->ViewValue = $cstArchivedStudents2015->MentorDesig->CurrentValue;
			$cstArchivedStudents2015->MentorDesig->CssStyle = "";
			$cstArchivedStudents2015->MentorDesig->CssClass = "";
			$cstArchivedStudents2015->MentorDesig->ViewCustomAttributes = "";

			// MentorTel
			$cstArchivedStudents2015->MentorTel->ViewValue = $cstArchivedStudents2015->MentorTel->CurrentValue;
			$cstArchivedStudents2015->MentorTel->CssStyle = "";
			$cstArchivedStudents2015->MentorTel->CssClass = "";
			$cstArchivedStudents2015->MentorTel->ViewCustomAttributes = "";

			// MentorCell
			$cstArchivedStudents2015->MentorCell->ViewValue = $cstArchivedStudents2015->MentorCell->CurrentValue;
			$cstArchivedStudents2015->MentorCell->CssStyle = "";
			$cstArchivedStudents2015->MentorCell->CssClass = "";
			$cstArchivedStudents2015->MentorCell->ViewCustomAttributes = "";

			// MentorEmail
			$cstArchivedStudents2015->MentorEmail->ViewValue = $cstArchivedStudents2015->MentorEmail->CurrentValue;
			$cstArchivedStudents2015->MentorEmail->CssStyle = "";
			$cstArchivedStudents2015->MentorEmail->CssClass = "";
			$cstArchivedStudents2015->MentorEmail->ViewCustomAttributes = "";

			// HRManagerName
			$cstArchivedStudents2015->HRManagerName->ViewValue = $cstArchivedStudents2015->HRManagerName->CurrentValue;
			$cstArchivedStudents2015->HRManagerName->CssStyle = "";
			$cstArchivedStudents2015->HRManagerName->CssClass = "";
			$cstArchivedStudents2015->HRManagerName->ViewCustomAttributes = "";

			// HRManagerDesignation
			$cstArchivedStudents2015->HRManagerDesignation->ViewValue = $cstArchivedStudents2015->HRManagerDesignation->CurrentValue;
			$cstArchivedStudents2015->HRManagerDesignation->CssStyle = "";
			$cstArchivedStudents2015->HRManagerDesignation->CssClass = "";
			$cstArchivedStudents2015->HRManagerDesignation->ViewCustomAttributes = "";

			// HRManagerTelNo
			$cstArchivedStudents2015->HRManagerTelNo->ViewValue = $cstArchivedStudents2015->HRManagerTelNo->CurrentValue;
			$cstArchivedStudents2015->HRManagerTelNo->CssStyle = "";
			$cstArchivedStudents2015->HRManagerTelNo->CssClass = "";
			$cstArchivedStudents2015->HRManagerTelNo->ViewCustomAttributes = "";

			// HRManagerCellNo
			$cstArchivedStudents2015->HRManagerCellNo->ViewValue = $cstArchivedStudents2015->HRManagerCellNo->CurrentValue;
			$cstArchivedStudents2015->HRManagerCellNo->CssStyle = "";
			$cstArchivedStudents2015->HRManagerCellNo->CssClass = "";
			$cstArchivedStudents2015->HRManagerCellNo->ViewCustomAttributes = "";

			// HRManagerEmail
			$cstArchivedStudents2015->HRManagerEmail->ViewValue = $cstArchivedStudents2015->HRManagerEmail->CurrentValue;
			$cstArchivedStudents2015->HRManagerEmail->CssStyle = "";
			$cstArchivedStudents2015->HRManagerEmail->CssClass = "";
			$cstArchivedStudents2015->HRManagerEmail->ViewCustomAttributes = "";

			// LengthEmploy
			$cstArchivedStudents2015->LengthEmploy->ViewValue = $cstArchivedStudents2015->LengthEmploy->CurrentValue;
			$cstArchivedStudents2015->LengthEmploy->CssStyle = "";
			$cstArchivedStudents2015->LengthEmploy->CssClass = "";
			$cstArchivedStudents2015->LengthEmploy->ViewCustomAttributes = "";

			// BlockAccess
			if (strval($cstArchivedStudents2015->BlockAccess->CurrentValue) <> "") {
				switch ($cstArchivedStudents2015->BlockAccess->CurrentValue) {
					case "y":
						$cstArchivedStudents2015->BlockAccess->ViewValue = "Yes";
						break;
					case "n":
						$cstArchivedStudents2015->BlockAccess->ViewValue = "No";
						break;
					default:
						$cstArchivedStudents2015->BlockAccess->ViewValue = $cstArchivedStudents2015->BlockAccess->CurrentValue;
				}
			} else {
				$cstArchivedStudents2015->BlockAccess->ViewValue = NULL;
			}
			$cstArchivedStudents2015->BlockAccess->CssStyle = "";
			$cstArchivedStudents2015->BlockAccess->CssClass = "";
			$cstArchivedStudents2015->BlockAccess->ViewCustomAttributes = "";

			// Archived
			if (strval($cstArchivedStudents2015->Archived->CurrentValue) <> "") {
				$cstArchivedStudents2015->Archived->ViewValue = "";
				$arwrk = explode(",", strval($cstArchivedStudents2015->Archived->CurrentValue));
				for ($ari = 0; $ari < count($arwrk); $ari++) {
					switch (trim($arwrk[$ari])) {
						case "1":
							$cstArchivedStudents2015->Archived->ViewValue .= "Yes";
							break;
						default:
							$cstArchivedStudents2015->Archived->ViewValue .= trim($arwrk[$ari]);
					}
					if ($ari < count($arwrk)-1) $cstArchivedStudents2015->Archived->ViewValue .= ew_ViewOptionSeparator($ari);
				}
			} else {
				$cstArchivedStudents2015->Archived->ViewValue = NULL;
			}
			$cstArchivedStudents2015->Archived->CssStyle = "";
			$cstArchivedStudents2015->Archived->CssClass = "";
			$cstArchivedStudents2015->Archived->ViewCustomAttributes = "";

			// ResultLetter
			if (!ew_Empty($cstArchivedStudents2015->ResultLetter->Upload->DbValue)) {
				$cstArchivedStudents2015->ResultLetter->ViewValue = $cstArchivedStudents2015->ResultLetter->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->ResultLetter->ViewValue = "";
			}
			$cstArchivedStudents2015->ResultLetter->CssStyle = "";
			$cstArchivedStudents2015->ResultLetter->CssClass = "";
			$cstArchivedStudents2015->ResultLetter->ViewCustomAttributes = "";

			// Achieved
			if (strval($cstArchivedStudents2015->Achieved->CurrentValue) <> "") {
				$cstArchivedStudents2015->Achieved->ViewValue = "";
				$arwrk = explode(",", strval($cstArchivedStudents2015->Achieved->CurrentValue));
				for ($ari = 0; $ari < count($arwrk); $ari++) {
					switch (trim($arwrk[$ari])) {
						case "1":
							$cstArchivedStudents2015->Achieved->ViewValue .= "Yes";
							break;
						default:
							$cstArchivedStudents2015->Achieved->ViewValue .= trim($arwrk[$ari]);
					}
					if ($ari < count($arwrk)-1) $cstArchivedStudents2015->Achieved->ViewValue .= ew_ViewOptionSeparator($ari);
				}
			} else {
				$cstArchivedStudents2015->Achieved->ViewValue = NULL;
			}
			$cstArchivedStudents2015->Achieved->CssStyle = "";
			$cstArchivedStudents2015->Achieved->CssClass = "";
			$cstArchivedStudents2015->Achieved->ViewCustomAttributes = "";

			// IDFile
			if (!ew_Empty($cstArchivedStudents2015->IDFile->Upload->DbValue)) {
				$cstArchivedStudents2015->IDFile->ViewValue = $cstArchivedStudents2015->IDFile->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->IDFile->ViewValue = "";
			}
			$cstArchivedStudents2015->IDFile->CssStyle = "";
			$cstArchivedStudents2015->IDFile->CssClass = "";
			$cstArchivedStudents2015->IDFile->ViewCustomAttributes = "";

			// ReasonForLeaving
			$cstArchivedStudents2015->ReasonForLeaving->ViewValue = $cstArchivedStudents2015->ReasonForLeaving->CurrentValue;
			$cstArchivedStudents2015->ReasonForLeaving->CssStyle = "";
			$cstArchivedStudents2015->ReasonForLeaving->CssClass = "";
			$cstArchivedStudents2015->ReasonForLeaving->ViewCustomAttributes = "";

			// CCEStudentID
			$cstArchivedStudents2015->CCEStudentID->HrefValue = "";
			$cstArchivedStudents2015->CCEStudentID->TooltipValue = "";

			// Title
			$cstArchivedStudents2015->Title->HrefValue = "";
			$cstArchivedStudents2015->Title->TooltipValue = "";

			// FirstName
			$cstArchivedStudents2015->FirstName->HrefValue = "";
			$cstArchivedStudents2015->FirstName->TooltipValue = "";

			// Surname
			$cstArchivedStudents2015->Surname->HrefValue = "";
			$cstArchivedStudents2015->Surname->TooltipValue = "";

			// KnownAs
			$cstArchivedStudents2015->KnownAs->HrefValue = "";
			$cstArchivedStudents2015->KnownAs->TooltipValue = "";

			// Organisation
			$cstArchivedStudents2015->Organisation->HrefValue = "";
			$cstArchivedStudents2015->Organisation->TooltipValue = "";

			// OrganisationType
			$cstArchivedStudents2015->OrganisationType->HrefValue = "";
			$cstArchivedStudents2015->OrganisationType->TooltipValue = "";

			// StudentNumber
			$cstArchivedStudents2015->StudentNumber->HrefValue = "";
			$cstArchivedStudents2015->StudentNumber->TooltipValue = "";

			// CCEFacilitatorID
			$cstArchivedStudents2015->CCEFacilitatorID->HrefValue = "";
			$cstArchivedStudents2015->CCEFacilitatorID->TooltipValue = "";

			// Project
			$cstArchivedStudents2015->Project->HrefValue = "";
			$cstArchivedStudents2015->Project->TooltipValue = "";

			// ProjectDiscipline
			$cstArchivedStudents2015->ProjectDiscipline->HrefValue = "";
			$cstArchivedStudents2015->ProjectDiscipline->TooltipValue = "";

			// IDNumber
			$cstArchivedStudents2015->IDNumber->HrefValue = "";
			$cstArchivedStudents2015->IDNumber->TooltipValue = "";

			// ECSANumber
			$cstArchivedStudents2015->ECSANumber->HrefValue = "";
			$cstArchivedStudents2015->ECSANumber->TooltipValue = "";

			// Age
			$cstArchivedStudents2015->Age->HrefValue = "";
			$cstArchivedStudents2015->Age->TooltipValue = "";

			// HighestQual
			$cstArchivedStudents2015->HighestQual->HrefValue = "";
			$cstArchivedStudents2015->HighestQual->TooltipValue = "";

			// AreaDiscipline
			$cstArchivedStudents2015->AreaDiscipline->HrefValue = "";
			$cstArchivedStudents2015->AreaDiscipline->TooltipValue = "";

			// Telephone
			$cstArchivedStudents2015->Telephone->HrefValue = "";
			$cstArchivedStudents2015->Telephone->TooltipValue = "";

			// Cellphone
			$cstArchivedStudents2015->Cellphone->HrefValue = "";
			$cstArchivedStudents2015->Cellphone->TooltipValue = "";

			// EmailAddress
			$cstArchivedStudents2015->EmailAddress->HrefValue = "";
			$cstArchivedStudents2015->EmailAddress->TooltipValue = "";

			// HomeAddress
			$cstArchivedStudents2015->HomeAddress->HrefValue = "";
			$cstArchivedStudents2015->HomeAddress->TooltipValue = "";

			// WorkAddress
			$cstArchivedStudents2015->WorkAddress->HrefValue = "";
			$cstArchivedStudents2015->WorkAddress->TooltipValue = "";

			// PostalAddress
			$cstArchivedStudents2015->PostalAddress->HrefValue = "";
			$cstArchivedStudents2015->PostalAddress->TooltipValue = "";

			// Designation
			$cstArchivedStudents2015->Designation->HrefValue = "";
			$cstArchivedStudents2015->Designation->TooltipValue = "";

			// Department
			$cstArchivedStudents2015->Department->HrefValue = "";
			$cstArchivedStudents2015->Department->TooltipValue = "";

			// CESAAccountNo
			$cstArchivedStudents2015->CESAAccountNo->HrefValue = "";
			$cstArchivedStudents2015->CESAAccountNo->TooltipValue = "";

			// VATNo
			$cstArchivedStudents2015->VATNo->HrefValue = "";
			$cstArchivedStudents2015->VATNo->TooltipValue = "";

			// DietaryRequirements
			$cstArchivedStudents2015->DietaryRequirements->HrefValue = "";
			$cstArchivedStudents2015->DietaryRequirements->TooltipValue = "";

			// CVFile
			if (!ew_Empty($cstArchivedStudents2015->CVFile->Upload->DbValue)) {
				$cstArchivedStudents2015->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->CVFile->UploadPath) . ((!empty($cstArchivedStudents2015->CVFile->ViewValue)) ? $cstArchivedStudents2015->CVFile->ViewValue : $cstArchivedStudents2015->CVFile->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->CVFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->CVFile->HrefValue);
			} else {
				$cstArchivedStudents2015->CVFile->HrefValue = "";
			}
			$cstArchivedStudents2015->CVFile->TooltipValue = "";

			// QualCertificate1
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate1->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->QualCertificate1->UploadPath) . ((!empty($cstArchivedStudents2015->QualCertificate1->ViewValue)) ? $cstArchivedStudents2015->QualCertificate1->ViewValue : $cstArchivedStudents2015->QualCertificate1->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->QualCertificate1->HrefValue);
			} else {
				$cstArchivedStudents2015->QualCertificate1->HrefValue = "";
			}
			$cstArchivedStudents2015->QualCertificate1->TooltipValue = "";

			// QualCertificate2
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate2->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->QualCertificate2->UploadPath) . ((!empty($cstArchivedStudents2015->QualCertificate2->ViewValue)) ? $cstArchivedStudents2015->QualCertificate2->ViewValue : $cstArchivedStudents2015->QualCertificate2->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->QualCertificate2->HrefValue);
			} else {
				$cstArchivedStudents2015->QualCertificate2->HrefValue = "";
			}
			$cstArchivedStudents2015->QualCertificate2->TooltipValue = "";

			// QualCertificate3
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate3->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->QualCertificate3->UploadPath) . ((!empty($cstArchivedStudents2015->QualCertificate3->ViewValue)) ? $cstArchivedStudents2015->QualCertificate3->ViewValue : $cstArchivedStudents2015->QualCertificate3->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->QualCertificate3->HrefValue);
			} else {
				$cstArchivedStudents2015->QualCertificate3->HrefValue = "";
			}
			$cstArchivedStudents2015->QualCertificate3->TooltipValue = "";

			// MemorandumFile
			if (!ew_Empty($cstArchivedStudents2015->MemorandumFile->Upload->DbValue)) {
				$cstArchivedStudents2015->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->MemorandumFile->UploadPath) . ((!empty($cstArchivedStudents2015->MemorandumFile->ViewValue)) ? $cstArchivedStudents2015->MemorandumFile->ViewValue : $cstArchivedStudents2015->MemorandumFile->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->MemorandumFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->MemorandumFile->HrefValue);
			} else {
				$cstArchivedStudents2015->MemorandumFile->HrefValue = "";
			}
			$cstArchivedStudents2015->MemorandumFile->TooltipValue = "";

			// AgreementFile
			if (!ew_Empty($cstArchivedStudents2015->AgreementFile->Upload->DbValue)) {
				$cstArchivedStudents2015->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->AgreementFile->UploadPath) . ((!empty($cstArchivedStudents2015->AgreementFile->ViewValue)) ? $cstArchivedStudents2015->AgreementFile->ViewValue : $cstArchivedStudents2015->AgreementFile->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->AgreementFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->AgreementFile->HrefValue);
			} else {
				$cstArchivedStudents2015->AgreementFile->HrefValue = "";
			}
			$cstArchivedStudents2015->AgreementFile->TooltipValue = "";

			// OrderNo
			$cstArchivedStudents2015->OrderNo->HrefValue = "";
			$cstArchivedStudents2015->OrderNo->TooltipValue = "";

			// BookedByName
			$cstArchivedStudents2015->BookedByName->HrefValue = "";
			$cstArchivedStudents2015->BookedByName->TooltipValue = "";

			// BookedByDesignation
			$cstArchivedStudents2015->BookedByDesignation->HrefValue = "";
			$cstArchivedStudents2015->BookedByDesignation->TooltipValue = "";

			// BookedByTelNo
			$cstArchivedStudents2015->BookedByTelNo->HrefValue = "";
			$cstArchivedStudents2015->BookedByTelNo->TooltipValue = "";

			// BookedByFaxNo
			$cstArchivedStudents2015->BookedByFaxNo->HrefValue = "";
			$cstArchivedStudents2015->BookedByFaxNo->TooltipValue = "";

			// BookedByCellNo
			$cstArchivedStudents2015->BookedByCellNo->HrefValue = "";
			$cstArchivedStudents2015->BookedByCellNo->TooltipValue = "";

			// BookedByEmail
			$cstArchivedStudents2015->BookedByEmail->HrefValue = "";
			$cstArchivedStudents2015->BookedByEmail->TooltipValue = "";

			// WebUsername
			$cstArchivedStudents2015->WebUsername->HrefValue = "";
			$cstArchivedStudents2015->WebUsername->TooltipValue = "";

			// WebPassword
			$cstArchivedStudents2015->WebPassword->HrefValue = "";
			$cstArchivedStudents2015->WebPassword->TooltipValue = "";

			// MentorName
			$cstArchivedStudents2015->MentorName->HrefValue = "";
			$cstArchivedStudents2015->MentorName->TooltipValue = "";

			// MentorDesig
			$cstArchivedStudents2015->MentorDesig->HrefValue = "";
			$cstArchivedStudents2015->MentorDesig->TooltipValue = "";

			// MentorTel
			$cstArchivedStudents2015->MentorTel->HrefValue = "";
			$cstArchivedStudents2015->MentorTel->TooltipValue = "";

			// MentorCell
			$cstArchivedStudents2015->MentorCell->HrefValue = "";
			$cstArchivedStudents2015->MentorCell->TooltipValue = "";

			// MentorEmail
			$cstArchivedStudents2015->MentorEmail->HrefValue = "";
			$cstArchivedStudents2015->MentorEmail->TooltipValue = "";

			// HRManagerName
			$cstArchivedStudents2015->HRManagerName->HrefValue = "";
			$cstArchivedStudents2015->HRManagerName->TooltipValue = "";

			// HRManagerDesignation
			$cstArchivedStudents2015->HRManagerDesignation->HrefValue = "";
			$cstArchivedStudents2015->HRManagerDesignation->TooltipValue = "";

			// HRManagerTelNo
			$cstArchivedStudents2015->HRManagerTelNo->HrefValue = "";
			$cstArchivedStudents2015->HRManagerTelNo->TooltipValue = "";

			// HRManagerCellNo
			$cstArchivedStudents2015->HRManagerCellNo->HrefValue = "";
			$cstArchivedStudents2015->HRManagerCellNo->TooltipValue = "";

			// HRManagerEmail
			$cstArchivedStudents2015->HRManagerEmail->HrefValue = "";
			$cstArchivedStudents2015->HRManagerEmail->TooltipValue = "";

			// LengthEmploy
			$cstArchivedStudents2015->LengthEmploy->HrefValue = "";
			$cstArchivedStudents2015->LengthEmploy->TooltipValue = "";

			// BlockAccess
			$cstArchivedStudents2015->BlockAccess->HrefValue = "";
			$cstArchivedStudents2015->BlockAccess->TooltipValue = "";

			// Archived
			$cstArchivedStudents2015->Archived->HrefValue = "";
			$cstArchivedStudents2015->Archived->TooltipValue = "";

			// ResultLetter
			if (!ew_Empty($cstArchivedStudents2015->ResultLetter->Upload->DbValue)) {
				$cstArchivedStudents2015->ResultLetter->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->ResultLetter->UploadPath) . ((!empty($cstArchivedStudents2015->ResultLetter->ViewValue)) ? $cstArchivedStudents2015->ResultLetter->ViewValue : $cstArchivedStudents2015->ResultLetter->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->ResultLetter->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->ResultLetter->HrefValue);
			} else {
				$cstArchivedStudents2015->ResultLetter->HrefValue = "";
			}
			$cstArchivedStudents2015->ResultLetter->TooltipValue = "";

			// Achieved
			$cstArchivedStudents2015->Achieved->HrefValue = "";
			$cstArchivedStudents2015->Achieved->TooltipValue = "";

			// IDFile
			if (!ew_Empty($cstArchivedStudents2015->IDFile->Upload->DbValue)) {
				$cstArchivedStudents2015->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->IDFile->UploadPath) . ((!empty($cstArchivedStudents2015->IDFile->ViewValue)) ? $cstArchivedStudents2015->IDFile->ViewValue : $cstArchivedStudents2015->IDFile->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->IDFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->IDFile->HrefValue);
			} else {
				$cstArchivedStudents2015->IDFile->HrefValue = "";
			}
			$cstArchivedStudents2015->IDFile->TooltipValue = "";

			// ReasonForLeaving
			$cstArchivedStudents2015->ReasonForLeaving->HrefValue = "";
			$cstArchivedStudents2015->ReasonForLeaving->TooltipValue = "";
		} elseif ($cstArchivedStudents2015->RowType == EW_ROWTYPE_EDIT) { // Edit row

			// CCEStudentID
			$cstArchivedStudents2015->CCEStudentID->EditCustomAttributes = "";

			// Title
			$cstArchivedStudents2015->Title->EditCustomAttributes = "";
			$cstArchivedStudents2015->Title->EditValue = ew_HtmlEncode($cstArchivedStudents2015->Title->CurrentValue);

			// FirstName
			$cstArchivedStudents2015->FirstName->EditCustomAttributes = "";
			$cstArchivedStudents2015->FirstName->EditValue = ew_HtmlEncode($cstArchivedStudents2015->FirstName->CurrentValue);

			// Surname
			$cstArchivedStudents2015->Surname->EditCustomAttributes = "";
			$cstArchivedStudents2015->Surname->EditValue = ew_HtmlEncode($cstArchivedStudents2015->Surname->CurrentValue);

			// KnownAs
			$cstArchivedStudents2015->KnownAs->EditCustomAttributes = "";
			$cstArchivedStudents2015->KnownAs->EditValue = ew_HtmlEncode($cstArchivedStudents2015->KnownAs->CurrentValue);

			// Organisation
			$cstArchivedStudents2015->Organisation->EditCustomAttributes = "";
			$cstArchivedStudents2015->Organisation->EditValue = ew_HtmlEncode($cstArchivedStudents2015->Organisation->CurrentValue);

			// OrganisationType
			$cstArchivedStudents2015->OrganisationType->EditCustomAttributes = "";
			$cstArchivedStudents2015->OrganisationType->EditValue = ew_HtmlEncode($cstArchivedStudents2015->OrganisationType->CurrentValue);

			// StudentNumber
			$cstArchivedStudents2015->StudentNumber->EditCustomAttributes = "";
			$cstArchivedStudents2015->StudentNumber->EditValue = ew_HtmlEncode($cstArchivedStudents2015->StudentNumber->CurrentValue);

			// CCEFacilitatorID
			$cstArchivedStudents2015->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")));
			$cstArchivedStudents2015->CCEFacilitatorID->EditValue = $arwrk;

			// Project
			$cstArchivedStudents2015->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")));
			$cstArchivedStudents2015->Project->EditValue = $arwrk;

			// ProjectDiscipline
			$cstArchivedStudents2015->ProjectDiscipline->EditCustomAttributes = "";
			$cstArchivedStudents2015->ProjectDiscipline->EditValue = ew_HtmlEncode($cstArchivedStudents2015->ProjectDiscipline->CurrentValue);

			// IDNumber
			$cstArchivedStudents2015->IDNumber->EditCustomAttributes = "";
			$cstArchivedStudents2015->IDNumber->EditValue = ew_HtmlEncode($cstArchivedStudents2015->IDNumber->CurrentValue);

			// ECSANumber
			$cstArchivedStudents2015->ECSANumber->EditCustomAttributes = "";
			$cstArchivedStudents2015->ECSANumber->EditValue = ew_HtmlEncode($cstArchivedStudents2015->ECSANumber->CurrentValue);

			// Age
			$cstArchivedStudents2015->Age->EditCustomAttributes = "";
			$cstArchivedStudents2015->Age->EditValue = ew_HtmlEncode($cstArchivedStudents2015->Age->CurrentValue);

			// HighestQual
			$cstArchivedStudents2015->HighestQual->EditCustomAttributes = "";
			$cstArchivedStudents2015->HighestQual->EditValue = ew_HtmlEncode($cstArchivedStudents2015->HighestQual->CurrentValue);

			// AreaDiscipline
			$cstArchivedStudents2015->AreaDiscipline->EditCustomAttributes = "";
			$cstArchivedStudents2015->AreaDiscipline->EditValue = ew_HtmlEncode($cstArchivedStudents2015->AreaDiscipline->CurrentValue);

			// Telephone
			$cstArchivedStudents2015->Telephone->EditCustomAttributes = "";
			$cstArchivedStudents2015->Telephone->EditValue = ew_HtmlEncode($cstArchivedStudents2015->Telephone->CurrentValue);

			// Cellphone
			$cstArchivedStudents2015->Cellphone->EditCustomAttributes = "";
			$cstArchivedStudents2015->Cellphone->EditValue = ew_HtmlEncode($cstArchivedStudents2015->Cellphone->CurrentValue);

			// EmailAddress
			$cstArchivedStudents2015->EmailAddress->EditCustomAttributes = "";
			$cstArchivedStudents2015->EmailAddress->EditValue = ew_HtmlEncode($cstArchivedStudents2015->EmailAddress->CurrentValue);

			// HomeAddress
			$cstArchivedStudents2015->HomeAddress->EditCustomAttributes = "";
			$cstArchivedStudents2015->HomeAddress->EditValue = ew_HtmlEncode($cstArchivedStudents2015->HomeAddress->CurrentValue);

			// WorkAddress
			$cstArchivedStudents2015->WorkAddress->EditCustomAttributes = "";
			$cstArchivedStudents2015->WorkAddress->EditValue = ew_HtmlEncode($cstArchivedStudents2015->WorkAddress->CurrentValue);

			// PostalAddress
			$cstArchivedStudents2015->PostalAddress->EditCustomAttributes = "";
			$cstArchivedStudents2015->PostalAddress->EditValue = ew_HtmlEncode($cstArchivedStudents2015->PostalAddress->CurrentValue);

			// Designation
			$cstArchivedStudents2015->Designation->EditCustomAttributes = "";
			$cstArchivedStudents2015->Designation->EditValue = ew_HtmlEncode($cstArchivedStudents2015->Designation->CurrentValue);

			// Department
			$cstArchivedStudents2015->Department->EditCustomAttributes = "";
			$cstArchivedStudents2015->Department->EditValue = ew_HtmlEncode($cstArchivedStudents2015->Department->CurrentValue);

			// CESAAccountNo
			$cstArchivedStudents2015->CESAAccountNo->EditCustomAttributes = "";
			$cstArchivedStudents2015->CESAAccountNo->EditValue = ew_HtmlEncode($cstArchivedStudents2015->CESAAccountNo->CurrentValue);

			// VATNo
			$cstArchivedStudents2015->VATNo->EditCustomAttributes = "";
			$cstArchivedStudents2015->VATNo->EditValue = ew_HtmlEncode($cstArchivedStudents2015->VATNo->CurrentValue);

			// DietaryRequirements
			$cstArchivedStudents2015->DietaryRequirements->EditCustomAttributes = "";
			$cstArchivedStudents2015->DietaryRequirements->EditValue = ew_HtmlEncode($cstArchivedStudents2015->DietaryRequirements->CurrentValue);

			// CVFile
			$cstArchivedStudents2015->CVFile->EditCustomAttributes = "";
			if (!ew_Empty($cstArchivedStudents2015->CVFile->Upload->DbValue)) {
				$cstArchivedStudents2015->CVFile->EditValue = $cstArchivedStudents2015->CVFile->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->CVFile->EditValue = "";
			}

			// QualCertificate1
			$cstArchivedStudents2015->QualCertificate1->EditCustomAttributes = "";
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate1->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate1->EditValue = $cstArchivedStudents2015->QualCertificate1->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->QualCertificate1->EditValue = "";
			}

			// QualCertificate2
			$cstArchivedStudents2015->QualCertificate2->EditCustomAttributes = "";
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate2->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate2->EditValue = $cstArchivedStudents2015->QualCertificate2->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->QualCertificate2->EditValue = "";
			}

			// QualCertificate3
			$cstArchivedStudents2015->QualCertificate3->EditCustomAttributes = "";
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate3->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate3->EditValue = $cstArchivedStudents2015->QualCertificate3->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->QualCertificate3->EditValue = "";
			}

			// MemorandumFile
			$cstArchivedStudents2015->MemorandumFile->EditCustomAttributes = "";
			if (!ew_Empty($cstArchivedStudents2015->MemorandumFile->Upload->DbValue)) {
				$cstArchivedStudents2015->MemorandumFile->EditValue = $cstArchivedStudents2015->MemorandumFile->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->MemorandumFile->EditValue = "";
			}

			// AgreementFile
			$cstArchivedStudents2015->AgreementFile->EditCustomAttributes = "";
			if (!ew_Empty($cstArchivedStudents2015->AgreementFile->Upload->DbValue)) {
				$cstArchivedStudents2015->AgreementFile->EditValue = $cstArchivedStudents2015->AgreementFile->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->AgreementFile->EditValue = "";
			}

			// OrderNo
			$cstArchivedStudents2015->OrderNo->EditCustomAttributes = "";
			$cstArchivedStudents2015->OrderNo->EditValue = ew_HtmlEncode($cstArchivedStudents2015->OrderNo->CurrentValue);

			// BookedByName
			$cstArchivedStudents2015->BookedByName->EditCustomAttributes = "";
			$cstArchivedStudents2015->BookedByName->EditValue = ew_HtmlEncode($cstArchivedStudents2015->BookedByName->CurrentValue);

			// BookedByDesignation
			$cstArchivedStudents2015->BookedByDesignation->EditCustomAttributes = "";
			$cstArchivedStudents2015->BookedByDesignation->EditValue = ew_HtmlEncode($cstArchivedStudents2015->BookedByDesignation->CurrentValue);

			// BookedByTelNo
			$cstArchivedStudents2015->BookedByTelNo->EditCustomAttributes = "";
			$cstArchivedStudents2015->BookedByTelNo->EditValue = ew_HtmlEncode($cstArchivedStudents2015->BookedByTelNo->CurrentValue);

			// BookedByFaxNo
			$cstArchivedStudents2015->BookedByFaxNo->EditCustomAttributes = "";
			$cstArchivedStudents2015->BookedByFaxNo->EditValue = ew_HtmlEncode($cstArchivedStudents2015->BookedByFaxNo->CurrentValue);

			// BookedByCellNo
			$cstArchivedStudents2015->BookedByCellNo->EditCustomAttributes = "";
			$cstArchivedStudents2015->BookedByCellNo->EditValue = ew_HtmlEncode($cstArchivedStudents2015->BookedByCellNo->CurrentValue);

			// BookedByEmail
			$cstArchivedStudents2015->BookedByEmail->EditCustomAttributes = "";
			$cstArchivedStudents2015->BookedByEmail->EditValue = ew_HtmlEncode($cstArchivedStudents2015->BookedByEmail->CurrentValue);

			// WebUsername
			$cstArchivedStudents2015->WebUsername->EditCustomAttributes = "";
			$cstArchivedStudents2015->WebUsername->EditValue = ew_HtmlEncode($cstArchivedStudents2015->WebUsername->CurrentValue);

			// WebPassword
			$cstArchivedStudents2015->WebPassword->EditCustomAttributes = "";
			$cstArchivedStudents2015->WebPassword->EditValue = ew_HtmlEncode($cstArchivedStudents2015->WebPassword->CurrentValue);

			// MentorName
			$cstArchivedStudents2015->MentorName->EditCustomAttributes = "";
			$cstArchivedStudents2015->MentorName->EditValue = ew_HtmlEncode($cstArchivedStudents2015->MentorName->CurrentValue);

			// MentorDesig
			$cstArchivedStudents2015->MentorDesig->EditCustomAttributes = "";
			$cstArchivedStudents2015->MentorDesig->EditValue = ew_HtmlEncode($cstArchivedStudents2015->MentorDesig->CurrentValue);

			// MentorTel
			$cstArchivedStudents2015->MentorTel->EditCustomAttributes = "";
			$cstArchivedStudents2015->MentorTel->EditValue = ew_HtmlEncode($cstArchivedStudents2015->MentorTel->CurrentValue);

			// MentorCell
			$cstArchivedStudents2015->MentorCell->EditCustomAttributes = "";
			$cstArchivedStudents2015->MentorCell->EditValue = ew_HtmlEncode($cstArchivedStudents2015->MentorCell->CurrentValue);

			// MentorEmail
			$cstArchivedStudents2015->MentorEmail->EditCustomAttributes = "";
			$cstArchivedStudents2015->MentorEmail->EditValue = ew_HtmlEncode($cstArchivedStudents2015->MentorEmail->CurrentValue);

			// HRManagerName
			$cstArchivedStudents2015->HRManagerName->EditCustomAttributes = "";
			$cstArchivedStudents2015->HRManagerName->EditValue = ew_HtmlEncode($cstArchivedStudents2015->HRManagerName->CurrentValue);

			// HRManagerDesignation
			$cstArchivedStudents2015->HRManagerDesignation->EditCustomAttributes = "";
			$cstArchivedStudents2015->HRManagerDesignation->EditValue = ew_HtmlEncode($cstArchivedStudents2015->HRManagerDesignation->CurrentValue);

			// HRManagerTelNo
			$cstArchivedStudents2015->HRManagerTelNo->EditCustomAttributes = "";
			$cstArchivedStudents2015->HRManagerTelNo->EditValue = ew_HtmlEncode($cstArchivedStudents2015->HRManagerTelNo->CurrentValue);

			// HRManagerCellNo
			$cstArchivedStudents2015->HRManagerCellNo->EditCustomAttributes = "";
			$cstArchivedStudents2015->HRManagerCellNo->EditValue = ew_HtmlEncode($cstArchivedStudents2015->HRManagerCellNo->CurrentValue);

			// HRManagerEmail
			$cstArchivedStudents2015->HRManagerEmail->EditCustomAttributes = "";
			$cstArchivedStudents2015->HRManagerEmail->EditValue = ew_HtmlEncode($cstArchivedStudents2015->HRManagerEmail->CurrentValue);

			// LengthEmploy
			$cstArchivedStudents2015->LengthEmploy->EditCustomAttributes = "";
			$cstArchivedStudents2015->LengthEmploy->EditValue = ew_HtmlEncode($cstArchivedStudents2015->LengthEmploy->CurrentValue);

			// BlockAccess
			$cstArchivedStudents2015->BlockAccess->EditCustomAttributes = "";
			$arwrk = array();
			$arwrk[] = array("y", "Yes");
			$arwrk[] = array("n", "No");
			$cstArchivedStudents2015->BlockAccess->EditValue = $arwrk;

			// Archived
			$cstArchivedStudents2015->Archived->EditCustomAttributes = "";
			$arwrk = array();
			$arwrk[] = array("1", "Yes");
			$cstArchivedStudents2015->Archived->EditValue = $arwrk;

			// ResultLetter
			$cstArchivedStudents2015->ResultLetter->EditCustomAttributes = "";
			if (!ew_Empty($cstArchivedStudents2015->ResultLetter->Upload->DbValue)) {
				$cstArchivedStudents2015->ResultLetter->EditValue = $cstArchivedStudents2015->ResultLetter->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->ResultLetter->EditValue = "";
			}

			// Achieved
			$cstArchivedStudents2015->Achieved->EditCustomAttributes = "";
			$arwrk = array();
			$arwrk[] = array("1", "Yes");
			$cstArchivedStudents2015->Achieved->EditValue = $arwrk;

			// IDFile
			$cstArchivedStudents2015->IDFile->EditCustomAttributes = "";
			if (!ew_Empty($cstArchivedStudents2015->IDFile->Upload->DbValue)) {
				$cstArchivedStudents2015->IDFile->EditValue = $cstArchivedStudents2015->IDFile->Upload->DbValue;
			} else {
				$cstArchivedStudents2015->IDFile->EditValue = "";
			}

			// ReasonForLeaving
			$cstArchivedStudents2015->ReasonForLeaving->EditCustomAttributes = "";
			$cstArchivedStudents2015->ReasonForLeaving->EditValue = ew_HtmlEncode($cstArchivedStudents2015->ReasonForLeaving->CurrentValue);

			// Edit refer script
			// CCEStudentID

			$cstArchivedStudents2015->CCEStudentID->HrefValue = "";

			// Title
			$cstArchivedStudents2015->Title->HrefValue = "";

			// FirstName
			$cstArchivedStudents2015->FirstName->HrefValue = "";

			// Surname
			$cstArchivedStudents2015->Surname->HrefValue = "";

			// KnownAs
			$cstArchivedStudents2015->KnownAs->HrefValue = "";

			// Organisation
			$cstArchivedStudents2015->Organisation->HrefValue = "";

			// OrganisationType
			$cstArchivedStudents2015->OrganisationType->HrefValue = "";

			// StudentNumber
			$cstArchivedStudents2015->StudentNumber->HrefValue = "";

			// CCEFacilitatorID
			$cstArchivedStudents2015->CCEFacilitatorID->HrefValue = "";

			// Project
			$cstArchivedStudents2015->Project->HrefValue = "";

			// ProjectDiscipline
			$cstArchivedStudents2015->ProjectDiscipline->HrefValue = "";

			// IDNumber
			$cstArchivedStudents2015->IDNumber->HrefValue = "";

			// ECSANumber
			$cstArchivedStudents2015->ECSANumber->HrefValue = "";

			// Age
			$cstArchivedStudents2015->Age->HrefValue = "";

			// HighestQual
			$cstArchivedStudents2015->HighestQual->HrefValue = "";

			// AreaDiscipline
			$cstArchivedStudents2015->AreaDiscipline->HrefValue = "";

			// Telephone
			$cstArchivedStudents2015->Telephone->HrefValue = "";

			// Cellphone
			$cstArchivedStudents2015->Cellphone->HrefValue = "";

			// EmailAddress
			$cstArchivedStudents2015->EmailAddress->HrefValue = "";

			// HomeAddress
			$cstArchivedStudents2015->HomeAddress->HrefValue = "";

			// WorkAddress
			$cstArchivedStudents2015->WorkAddress->HrefValue = "";

			// PostalAddress
			$cstArchivedStudents2015->PostalAddress->HrefValue = "";

			// Designation
			$cstArchivedStudents2015->Designation->HrefValue = "";

			// Department
			$cstArchivedStudents2015->Department->HrefValue = "";

			// CESAAccountNo
			$cstArchivedStudents2015->CESAAccountNo->HrefValue = "";

			// VATNo
			$cstArchivedStudents2015->VATNo->HrefValue = "";

			// DietaryRequirements
			$cstArchivedStudents2015->DietaryRequirements->HrefValue = "";

			// CVFile
			if (!ew_Empty($cstArchivedStudents2015->CVFile->Upload->DbValue)) {
				$cstArchivedStudents2015->CVFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->CVFile->UploadPath) . ((!empty($cstArchivedStudents2015->CVFile->EditValue)) ? $cstArchivedStudents2015->CVFile->EditValue : $cstArchivedStudents2015->CVFile->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->CVFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->CVFile->HrefValue);
			} else {
				$cstArchivedStudents2015->CVFile->HrefValue = "";
			}

			// QualCertificate1
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate1->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->QualCertificate1->UploadPath) . ((!empty($cstArchivedStudents2015->QualCertificate1->EditValue)) ? $cstArchivedStudents2015->QualCertificate1->EditValue : $cstArchivedStudents2015->QualCertificate1->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->QualCertificate1->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->QualCertificate1->HrefValue);
			} else {
				$cstArchivedStudents2015->QualCertificate1->HrefValue = "";
			}

			// QualCertificate2
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate2->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->QualCertificate2->UploadPath) . ((!empty($cstArchivedStudents2015->QualCertificate2->EditValue)) ? $cstArchivedStudents2015->QualCertificate2->EditValue : $cstArchivedStudents2015->QualCertificate2->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->QualCertificate2->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->QualCertificate2->HrefValue);
			} else {
				$cstArchivedStudents2015->QualCertificate2->HrefValue = "";
			}

			// QualCertificate3
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate3->Upload->DbValue)) {
				$cstArchivedStudents2015->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->QualCertificate3->UploadPath) . ((!empty($cstArchivedStudents2015->QualCertificate3->EditValue)) ? $cstArchivedStudents2015->QualCertificate3->EditValue : $cstArchivedStudents2015->QualCertificate3->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->QualCertificate3->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->QualCertificate3->HrefValue);
			} else {
				$cstArchivedStudents2015->QualCertificate3->HrefValue = "";
			}

			// MemorandumFile
			if (!ew_Empty($cstArchivedStudents2015->MemorandumFile->Upload->DbValue)) {
				$cstArchivedStudents2015->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->MemorandumFile->UploadPath) . ((!empty($cstArchivedStudents2015->MemorandumFile->EditValue)) ? $cstArchivedStudents2015->MemorandumFile->EditValue : $cstArchivedStudents2015->MemorandumFile->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->MemorandumFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->MemorandumFile->HrefValue);
			} else {
				$cstArchivedStudents2015->MemorandumFile->HrefValue = "";
			}

			// AgreementFile
			if (!ew_Empty($cstArchivedStudents2015->AgreementFile->Upload->DbValue)) {
				$cstArchivedStudents2015->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->AgreementFile->UploadPath) . ((!empty($cstArchivedStudents2015->AgreementFile->EditValue)) ? $cstArchivedStudents2015->AgreementFile->EditValue : $cstArchivedStudents2015->AgreementFile->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->AgreementFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->AgreementFile->HrefValue);
			} else {
				$cstArchivedStudents2015->AgreementFile->HrefValue = "";
			}

			// OrderNo
			$cstArchivedStudents2015->OrderNo->HrefValue = "";

			// BookedByName
			$cstArchivedStudents2015->BookedByName->HrefValue = "";

			// BookedByDesignation
			$cstArchivedStudents2015->BookedByDesignation->HrefValue = "";

			// BookedByTelNo
			$cstArchivedStudents2015->BookedByTelNo->HrefValue = "";

			// BookedByFaxNo
			$cstArchivedStudents2015->BookedByFaxNo->HrefValue = "";

			// BookedByCellNo
			$cstArchivedStudents2015->BookedByCellNo->HrefValue = "";

			// BookedByEmail
			$cstArchivedStudents2015->BookedByEmail->HrefValue = "";

			// WebUsername
			$cstArchivedStudents2015->WebUsername->HrefValue = "";

			// WebPassword
			$cstArchivedStudents2015->WebPassword->HrefValue = "";

			// MentorName
			$cstArchivedStudents2015->MentorName->HrefValue = "";

			// MentorDesig
			$cstArchivedStudents2015->MentorDesig->HrefValue = "";

			// MentorTel
			$cstArchivedStudents2015->MentorTel->HrefValue = "";

			// MentorCell
			$cstArchivedStudents2015->MentorCell->HrefValue = "";

			// MentorEmail
			$cstArchivedStudents2015->MentorEmail->HrefValue = "";

			// HRManagerName
			$cstArchivedStudents2015->HRManagerName->HrefValue = "";

			// HRManagerDesignation
			$cstArchivedStudents2015->HRManagerDesignation->HrefValue = "";

			// HRManagerTelNo
			$cstArchivedStudents2015->HRManagerTelNo->HrefValue = "";

			// HRManagerCellNo
			$cstArchivedStudents2015->HRManagerCellNo->HrefValue = "";

			// HRManagerEmail
			$cstArchivedStudents2015->HRManagerEmail->HrefValue = "";

			// LengthEmploy
			$cstArchivedStudents2015->LengthEmploy->HrefValue = "";

			// BlockAccess
			$cstArchivedStudents2015->BlockAccess->HrefValue = "";

			// Archived
			$cstArchivedStudents2015->Archived->HrefValue = "";

			// ResultLetter
			if (!ew_Empty($cstArchivedStudents2015->ResultLetter->Upload->DbValue)) {
				$cstArchivedStudents2015->ResultLetter->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->ResultLetter->UploadPath) . ((!empty($cstArchivedStudents2015->ResultLetter->EditValue)) ? $cstArchivedStudents2015->ResultLetter->EditValue : $cstArchivedStudents2015->ResultLetter->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->ResultLetter->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->ResultLetter->HrefValue);
			} else {
				$cstArchivedStudents2015->ResultLetter->HrefValue = "";
			}

			// Achieved
			$cstArchivedStudents2015->Achieved->HrefValue = "";

			// IDFile
			if (!ew_Empty($cstArchivedStudents2015->IDFile->Upload->DbValue)) {
				$cstArchivedStudents2015->IDFile->HrefValue = ew_UploadPathEx(FALSE, $cstArchivedStudents2015->IDFile->UploadPath) . ((!empty($cstArchivedStudents2015->IDFile->EditValue)) ? $cstArchivedStudents2015->IDFile->EditValue : $cstArchivedStudents2015->IDFile->CurrentValue);
				if ($cstArchivedStudents2015->Export <> "") $cstArchivedStudents2015->IDFile->HrefValue = ew_ConvertFullUrl($cstArchivedStudents2015->IDFile->HrefValue);
			} else {
				$cstArchivedStudents2015->IDFile->HrefValue = "";
			}

			// ReasonForLeaving
			$cstArchivedStudents2015->ReasonForLeaving->HrefValue = "";
		}

		// Call Row Rendered event
		if ($cstArchivedStudents2015->RowType <> EW_ROWTYPE_AGGREGATEINIT)
			$cstArchivedStudents2015->Row_Rendered();
	}

	// Validate form
	function ValidateForm() {
		global $Language, $gsFormError, $cstArchivedStudents2015;

		// Initialize form error message
		$gsFormError = "";
		if (!ew_CheckFileType($cstArchivedStudents2015->CVFile->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($cstArchivedStudents2015->CVFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2015->CVFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($cstArchivedStudents2015->CVFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2015->CVFile->Upload->Error);
		}
		if (!ew_CheckFileType($cstArchivedStudents2015->QualCertificate1->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($cstArchivedStudents2015->QualCertificate1->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2015->QualCertificate1->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($cstArchivedStudents2015->QualCertificate1->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2015->QualCertificate1->Upload->Error);
		}
		if (!ew_CheckFileType($cstArchivedStudents2015->QualCertificate2->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($cstArchivedStudents2015->QualCertificate2->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2015->QualCertificate2->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($cstArchivedStudents2015->QualCertificate2->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2015->QualCertificate2->Upload->Error);
		}
		if (!ew_CheckFileType($cstArchivedStudents2015->QualCertificate3->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($cstArchivedStudents2015->QualCertificate3->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2015->QualCertificate3->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($cstArchivedStudents2015->QualCertificate3->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2015->QualCertificate3->Upload->Error);
		}
		if (!ew_CheckFileType($cstArchivedStudents2015->MemorandumFile->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($cstArchivedStudents2015->MemorandumFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2015->MemorandumFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($cstArchivedStudents2015->MemorandumFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2015->MemorandumFile->Upload->Error);
		}
		if (!ew_CheckFileType($cstArchivedStudents2015->AgreementFile->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($cstArchivedStudents2015->AgreementFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2015->AgreementFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($cstArchivedStudents2015->AgreementFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2015->AgreementFile->Upload->Error);
		}
		if (!ew_CheckFileType($cstArchivedStudents2015->ResultLetter->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($cstArchivedStudents2015->ResultLetter->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2015->ResultLetter->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($cstArchivedStudents2015->ResultLetter->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2015->ResultLetter->Upload->Error);
		}
		if (!ew_CheckFileType($cstArchivedStudents2015->IDFile->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($cstArchivedStudents2015->IDFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $cstArchivedStudents2015->IDFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($cstArchivedStudents2015->IDFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $cstArchivedStudents2015->IDFile->Upload->Error);
		}

		// Check if validation required
		if (!EW_SERVER_VALIDATE)
			return ($gsFormError == "");
		if (!is_null($cstArchivedStudents2015->FirstName->FormValue) && $cstArchivedStudents2015->FirstName->FormValue == "") {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $cstArchivedStudents2015->FirstName->FldCaption();
		}
		if (!is_null($cstArchivedStudents2015->Surname->FormValue) && $cstArchivedStudents2015->Surname->FormValue == "") {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $cstArchivedStudents2015->Surname->FldCaption();
		}
		if (!ew_CheckInteger($cstArchivedStudents2015->Age->FormValue)) {
			if ($gsFormError <> "") $gsFormError .= "<br>";
			$gsFormError .= $cstArchivedStudents2015->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, $cstArchivedStudents2015;
		$sFilter = $cstArchivedStudents2015->KeyFilter();
		$cstArchivedStudents2015->CurrentFilter = $sFilter;
		$sSql = $cstArchivedStudents2015->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
			$cstArchivedStudents2015->Title->SetDbValueDef($rsnew, $cstArchivedStudents2015->Title->CurrentValue, NULL, FALSE);

			// FirstName
			$cstArchivedStudents2015->FirstName->SetDbValueDef($rsnew, $cstArchivedStudents2015->FirstName->CurrentValue, "", FALSE);

			// Surname
			$cstArchivedStudents2015->Surname->SetDbValueDef($rsnew, $cstArchivedStudents2015->Surname->CurrentValue, "", FALSE);

			// KnownAs
			$cstArchivedStudents2015->KnownAs->SetDbValueDef($rsnew, $cstArchivedStudents2015->KnownAs->CurrentValue, NULL, FALSE);

			// Organisation
			$cstArchivedStudents2015->Organisation->SetDbValueDef($rsnew, $cstArchivedStudents2015->Organisation->CurrentValue, NULL, FALSE);

			// OrganisationType
			$cstArchivedStudents2015->OrganisationType->SetDbValueDef($rsnew, $cstArchivedStudents2015->OrganisationType->CurrentValue, NULL, FALSE);

			// StudentNumber
			$cstArchivedStudents2015->StudentNumber->SetDbValueDef($rsnew, $cstArchivedStudents2015->StudentNumber->CurrentValue, NULL, FALSE);

			// CCEFacilitatorID
			$cstArchivedStudents2015->CCEFacilitatorID->SetDbValueDef($rsnew, $cstArchivedStudents2015->CCEFacilitatorID->CurrentValue, NULL, FALSE);

			// Project
			$cstArchivedStudents2015->Project->SetDbValueDef($rsnew, $cstArchivedStudents2015->Project->CurrentValue, NULL, FALSE);

			// ProjectDiscipline
			$cstArchivedStudents2015->ProjectDiscipline->SetDbValueDef($rsnew, $cstArchivedStudents2015->ProjectDiscipline->CurrentValue, NULL, FALSE);

			// IDNumber
			$cstArchivedStudents2015->IDNumber->SetDbValueDef($rsnew, $cstArchivedStudents2015->IDNumber->CurrentValue, NULL, FALSE);

			// ECSANumber
			$cstArchivedStudents2015->ECSANumber->SetDbValueDef($rsnew, $cstArchivedStudents2015->ECSANumber->CurrentValue, NULL, FALSE);

			// Age
			$cstArchivedStudents2015->Age->SetDbValueDef($rsnew, $cstArchivedStudents2015->Age->CurrentValue, NULL, FALSE);

			// HighestQual
			$cstArchivedStudents2015->HighestQual->SetDbValueDef($rsnew, $cstArchivedStudents2015->HighestQual->CurrentValue, NULL, FALSE);

			// AreaDiscipline
			$cstArchivedStudents2015->AreaDiscipline->SetDbValueDef($rsnew, $cstArchivedStudents2015->AreaDiscipline->CurrentValue, NULL, FALSE);

			// Telephone
			$cstArchivedStudents2015->Telephone->SetDbValueDef($rsnew, $cstArchivedStudents2015->Telephone->CurrentValue, NULL, FALSE);

			// Cellphone
			$cstArchivedStudents2015->Cellphone->SetDbValueDef($rsnew, $cstArchivedStudents2015->Cellphone->CurrentValue, NULL, FALSE);

			// EmailAddress
			$cstArchivedStudents2015->EmailAddress->SetDbValueDef($rsnew, $cstArchivedStudents2015->EmailAddress->CurrentValue, NULL, FALSE);

			// HomeAddress
			$cstArchivedStudents2015->HomeAddress->SetDbValueDef($rsnew, $cstArchivedStudents2015->HomeAddress->CurrentValue, NULL, FALSE);

			// WorkAddress
			$cstArchivedStudents2015->WorkAddress->SetDbValueDef($rsnew, $cstArchivedStudents2015->WorkAddress->CurrentValue, NULL, FALSE);

			// PostalAddress
			$cstArchivedStudents2015->PostalAddress->SetDbValueDef($rsnew, $cstArchivedStudents2015->PostalAddress->CurrentValue, NULL, FALSE);

			// Designation
			$cstArchivedStudents2015->Designation->SetDbValueDef($rsnew, $cstArchivedStudents2015->Designation->CurrentValue, NULL, FALSE);

			// Department
			$cstArchivedStudents2015->Department->SetDbValueDef($rsnew, $cstArchivedStudents2015->Department->CurrentValue, NULL, FALSE);

			// CESAAccountNo
			$cstArchivedStudents2015->CESAAccountNo->SetDbValueDef($rsnew, $cstArchivedStudents2015->CESAAccountNo->CurrentValue, NULL, FALSE);

			// VATNo
			$cstArchivedStudents2015->VATNo->SetDbValueDef($rsnew, $cstArchivedStudents2015->VATNo->CurrentValue, NULL, FALSE);

			// DietaryRequirements
			$cstArchivedStudents2015->DietaryRequirements->SetDbValueDef($rsnew, $cstArchivedStudents2015->DietaryRequirements->CurrentValue, NULL, FALSE);

			// CVFile
			$cstArchivedStudents2015->CVFile->Upload->SaveToSession(); // Save file value to Session
						if ($cstArchivedStudents2015->CVFile->Upload->Action == "2" || $cstArchivedStudents2015->CVFile->Upload->Action == "3") { // Update/Remove
			$cstArchivedStudents2015->CVFile->Upload->DbValue = $rs->fields('CVFile'); // Get original value
			if (is_null($cstArchivedStudents2015->CVFile->Upload->Value)) {
				$rsnew['CVFile'] = NULL;
			} else {
				$rsnew['CVFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2015->CVFile->UploadPath), $cstArchivedStudents2015->CVFile->Upload->FileName);
			}
			}

			// QualCertificate1
			$cstArchivedStudents2015->QualCertificate1->Upload->SaveToSession(); // Save file value to Session
						if ($cstArchivedStudents2015->QualCertificate1->Upload->Action == "2" || $cstArchivedStudents2015->QualCertificate1->Upload->Action == "3") { // Update/Remove
			$cstArchivedStudents2015->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1'); // Get original value
			if (is_null($cstArchivedStudents2015->QualCertificate1->Upload->Value)) {
				$rsnew['QualCertificate1'] = NULL;
			} else {
				$rsnew['QualCertificate1'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2015->QualCertificate1->UploadPath), $cstArchivedStudents2015->QualCertificate1->Upload->FileName);
			}
			}

			// QualCertificate2
			$cstArchivedStudents2015->QualCertificate2->Upload->SaveToSession(); // Save file value to Session
						if ($cstArchivedStudents2015->QualCertificate2->Upload->Action == "2" || $cstArchivedStudents2015->QualCertificate2->Upload->Action == "3") { // Update/Remove
			$cstArchivedStudents2015->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2'); // Get original value
			if (is_null($cstArchivedStudents2015->QualCertificate2->Upload->Value)) {
				$rsnew['QualCertificate2'] = NULL;
			} else {
				$rsnew['QualCertificate2'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2015->QualCertificate2->UploadPath), $cstArchivedStudents2015->QualCertificate2->Upload->FileName);
			}
			}

			// QualCertificate3
			$cstArchivedStudents2015->QualCertificate3->Upload->SaveToSession(); // Save file value to Session
						if ($cstArchivedStudents2015->QualCertificate3->Upload->Action == "2" || $cstArchivedStudents2015->QualCertificate3->Upload->Action == "3") { // Update/Remove
			$cstArchivedStudents2015->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3'); // Get original value
			if (is_null($cstArchivedStudents2015->QualCertificate3->Upload->Value)) {
				$rsnew['QualCertificate3'] = NULL;
			} else {
				$rsnew['QualCertificate3'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2015->QualCertificate3->UploadPath), $cstArchivedStudents2015->QualCertificate3->Upload->FileName);
			}
			}

			// MemorandumFile
			$cstArchivedStudents2015->MemorandumFile->Upload->SaveToSession(); // Save file value to Session
						if ($cstArchivedStudents2015->MemorandumFile->Upload->Action == "2" || $cstArchivedStudents2015->MemorandumFile->Upload->Action == "3") { // Update/Remove
			$cstArchivedStudents2015->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile'); // Get original value
			if (is_null($cstArchivedStudents2015->MemorandumFile->Upload->Value)) {
				$rsnew['MemorandumFile'] = NULL;
			} else {
				$rsnew['MemorandumFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2015->MemorandumFile->UploadPath), $cstArchivedStudents2015->MemorandumFile->Upload->FileName);
			}
			}

			// AgreementFile
			$cstArchivedStudents2015->AgreementFile->Upload->SaveToSession(); // Save file value to Session
						if ($cstArchivedStudents2015->AgreementFile->Upload->Action == "2" || $cstArchivedStudents2015->AgreementFile->Upload->Action == "3") { // Update/Remove
			$cstArchivedStudents2015->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile'); // Get original value
			if (is_null($cstArchivedStudents2015->AgreementFile->Upload->Value)) {
				$rsnew['AgreementFile'] = NULL;
			} else {
				$rsnew['AgreementFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2015->AgreementFile->UploadPath), $cstArchivedStudents2015->AgreementFile->Upload->FileName);
			}
			}

			// OrderNo
			$cstArchivedStudents2015->OrderNo->SetDbValueDef($rsnew, $cstArchivedStudents2015->OrderNo->CurrentValue, NULL, FALSE);

			// BookedByName
			$cstArchivedStudents2015->BookedByName->SetDbValueDef($rsnew, $cstArchivedStudents2015->BookedByName->CurrentValue, NULL, FALSE);

			// BookedByDesignation
			$cstArchivedStudents2015->BookedByDesignation->SetDbValueDef($rsnew, $cstArchivedStudents2015->BookedByDesignation->CurrentValue, NULL, FALSE);

			// BookedByTelNo
			$cstArchivedStudents2015->BookedByTelNo->SetDbValueDef($rsnew, $cstArchivedStudents2015->BookedByTelNo->CurrentValue, NULL, FALSE);

			// BookedByFaxNo
			$cstArchivedStudents2015->BookedByFaxNo->SetDbValueDef($rsnew, $cstArchivedStudents2015->BookedByFaxNo->CurrentValue, NULL, FALSE);

			// BookedByCellNo
			$cstArchivedStudents2015->BookedByCellNo->SetDbValueDef($rsnew, $cstArchivedStudents2015->BookedByCellNo->CurrentValue, NULL, FALSE);

			// BookedByEmail
			$cstArchivedStudents2015->BookedByEmail->SetDbValueDef($rsnew, $cstArchivedStudents2015->BookedByEmail->CurrentValue, NULL, FALSE);

			// WebUsername
			$cstArchivedStudents2015->WebUsername->SetDbValueDef($rsnew, $cstArchivedStudents2015->WebUsername->CurrentValue, NULL, FALSE);

			// WebPassword
			$cstArchivedStudents2015->WebPassword->SetDbValueDef($rsnew, $cstArchivedStudents2015->WebPassword->CurrentValue, NULL, FALSE);

			// MentorName
			$cstArchivedStudents2015->MentorName->SetDbValueDef($rsnew, $cstArchivedStudents2015->MentorName->CurrentValue, NULL, FALSE);

			// MentorDesig
			$cstArchivedStudents2015->MentorDesig->SetDbValueDef($rsnew, $cstArchivedStudents2015->MentorDesig->CurrentValue, NULL, FALSE);

			// MentorTel
			$cstArchivedStudents2015->MentorTel->SetDbValueDef($rsnew, $cstArchivedStudents2015->MentorTel->CurrentValue, NULL, FALSE);

			// MentorCell
			$cstArchivedStudents2015->MentorCell->SetDbValueDef($rsnew, $cstArchivedStudents2015->MentorCell->CurrentValue, NULL, FALSE);

			// MentorEmail
			$cstArchivedStudents2015->MentorEmail->SetDbValueDef($rsnew, $cstArchivedStudents2015->MentorEmail->CurrentValue, NULL, FALSE);

			// HRManagerName
			$cstArchivedStudents2015->HRManagerName->SetDbValueDef($rsnew, $cstArchivedStudents2015->HRManagerName->CurrentValue, NULL, FALSE);

			// HRManagerDesignation
			$cstArchivedStudents2015->HRManagerDesignation->SetDbValueDef($rsnew, $cstArchivedStudents2015->HRManagerDesignation->CurrentValue, NULL, FALSE);

			// HRManagerTelNo
			$cstArchivedStudents2015->HRManagerTelNo->SetDbValueDef($rsnew, $cstArchivedStudents2015->HRManagerTelNo->CurrentValue, NULL, FALSE);

			// HRManagerCellNo
			$cstArchivedStudents2015->HRManagerCellNo->SetDbValueDef($rsnew, $cstArchivedStudents2015->HRManagerCellNo->CurrentValue, NULL, FALSE);

			// HRManagerEmail
			$cstArchivedStudents2015->HRManagerEmail->SetDbValueDef($rsnew, $cstArchivedStudents2015->HRManagerEmail->CurrentValue, NULL, FALSE);

			// LengthEmploy
			$cstArchivedStudents2015->LengthEmploy->SetDbValueDef($rsnew, $cstArchivedStudents2015->LengthEmploy->CurrentValue, NULL, FALSE);

			// BlockAccess
			$cstArchivedStudents2015->BlockAccess->SetDbValueDef($rsnew, $cstArchivedStudents2015->BlockAccess->CurrentValue, "", FALSE);

			// Archived
			$cstArchivedStudents2015->Archived->SetDbValueDef($rsnew, $cstArchivedStudents2015->Archived->CurrentValue, 0, FALSE);

			// ResultLetter
			$cstArchivedStudents2015->ResultLetter->Upload->SaveToSession(); // Save file value to Session
						if ($cstArchivedStudents2015->ResultLetter->Upload->Action == "2" || $cstArchivedStudents2015->ResultLetter->Upload->Action == "3") { // Update/Remove
			$cstArchivedStudents2015->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter'); // Get original value
			if (is_null($cstArchivedStudents2015->ResultLetter->Upload->Value)) {
				$rsnew['ResultLetter'] = NULL;
			} else {
				$rsnew['ResultLetter'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2015->ResultLetter->UploadPath), $cstArchivedStudents2015->ResultLetter->Upload->FileName);
			}
			}

			// Achieved
			$cstArchivedStudents2015->Achieved->SetDbValueDef($rsnew, $cstArchivedStudents2015->Achieved->CurrentValue, 0, FALSE);

			// IDFile
			$cstArchivedStudents2015->IDFile->Upload->SaveToSession(); // Save file value to Session
						if ($cstArchivedStudents2015->IDFile->Upload->Action == "2" || $cstArchivedStudents2015->IDFile->Upload->Action == "3") { // Update/Remove
			$cstArchivedStudents2015->IDFile->Upload->DbValue = $rs->fields('IDFile'); // Get original value
			if (is_null($cstArchivedStudents2015->IDFile->Upload->Value)) {
				$rsnew['IDFile'] = NULL;
			} else {
				$rsnew['IDFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $cstArchivedStudents2015->IDFile->UploadPath), $cstArchivedStudents2015->IDFile->Upload->FileName);
			}
			}

			// ReasonForLeaving
			$cstArchivedStudents2015->ReasonForLeaving->SetDbValueDef($rsnew, $cstArchivedStudents2015->ReasonForLeaving->CurrentValue, NULL, FALSE);

			// Call Row Updating event
			$bUpdateRow = $cstArchivedStudents2015->Row_Updating($rsold, $rsnew);
			if ($bUpdateRow) {
			if (!ew_Empty($cstArchivedStudents2015->CVFile->Upload->Value)) {
				$cstArchivedStudents2015->CVFile->Upload->SaveToFile($cstArchivedStudents2015->CVFile->UploadPath, $rsnew['CVFile'], FALSE);
			}
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate1->Upload->Value)) {
				$cstArchivedStudents2015->QualCertificate1->Upload->SaveToFile($cstArchivedStudents2015->QualCertificate1->UploadPath, $rsnew['QualCertificate1'], FALSE);
			}
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate2->Upload->Value)) {
				$cstArchivedStudents2015->QualCertificate2->Upload->SaveToFile($cstArchivedStudents2015->QualCertificate2->UploadPath, $rsnew['QualCertificate2'], FALSE);
			}
			if (!ew_Empty($cstArchivedStudents2015->QualCertificate3->Upload->Value)) {
				$cstArchivedStudents2015->QualCertificate3->Upload->SaveToFile($cstArchivedStudents2015->QualCertificate3->UploadPath, $rsnew['QualCertificate3'], FALSE);
			}
			if (!ew_Empty($cstArchivedStudents2015->MemorandumFile->Upload->Value)) {
				$cstArchivedStudents2015->MemorandumFile->Upload->SaveToFile($cstArchivedStudents2015->MemorandumFile->UploadPath, $rsnew['MemorandumFile'], FALSE);
			}
			if (!ew_Empty($cstArchivedStudents2015->AgreementFile->Upload->Value)) {
				$cstArchivedStudents2015->AgreementFile->Upload->SaveToFile($cstArchivedStudents2015->AgreementFile->UploadPath, $rsnew['AgreementFile'], FALSE);
			}
			if (!ew_Empty($cstArchivedStudents2015->ResultLetter->Upload->Value)) {
				$cstArchivedStudents2015->ResultLetter->Upload->SaveToFile($cstArchivedStudents2015->ResultLetter->UploadPath, $rsnew['ResultLetter'], FALSE);
			}
			if (!ew_Empty($cstArchivedStudents2015->IDFile->Upload->Value)) {
				$cstArchivedStudents2015->IDFile->Upload->SaveToFile($cstArchivedStudents2015->IDFile->UploadPath, $rsnew['IDFile'], FALSE);
			}
				$conn->raiseErrorFn = 'ew_ErrorFn';
				$EditRow = $conn->Execute($cstArchivedStudents2015->UpdateSQL($rsnew));
				$conn->raiseErrorFn = '';
			} else {
				if ($cstArchivedStudents2015->CancelMessage <> "") {
					$this->setMessage($cstArchivedStudents2015->CancelMessage);
					$cstArchivedStudents2015->CancelMessage = "";
				} else {
					$this->setMessage($Language->Phrase("UpdateCancelled"));
				}
				$EditRow = FALSE;
			}
		}

		// Call Row_Updated event
		if ($EditRow)
			$cstArchivedStudents2015->Row_Updated($rsold, $rsnew);
		$rs->Close();

		// CVFile
		$cstArchivedStudents2015->CVFile->Upload->RemoveFromSession(); // Remove file value from Session

		// QualCertificate1
		$cstArchivedStudents2015->QualCertificate1->Upload->RemoveFromSession(); // Remove file value from Session

		// QualCertificate2
		$cstArchivedStudents2015->QualCertificate2->Upload->RemoveFromSession(); // Remove file value from Session

		// QualCertificate3
		$cstArchivedStudents2015->QualCertificate3->Upload->RemoveFromSession(); // Remove file value from Session

		// MemorandumFile
		$cstArchivedStudents2015->MemorandumFile->Upload->RemoveFromSession(); // Remove file value from Session

		// AgreementFile
		$cstArchivedStudents2015->AgreementFile->Upload->RemoveFromSession(); // Remove file value from Session

		// ResultLetter
		$cstArchivedStudents2015->ResultLetter->Upload->RemoveFromSession(); // Remove file value from Session

		// IDFile
		$cstArchivedStudents2015->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;
	}
}
?>