Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/cceadmin/
Upload File :
Current File : /var/www/cesa.co.za/cceadmin/cstArchivedStudents2013edit.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 "cstArchivedStudents2013info.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
$cstArchivedStudents2013_edit = new ccstArchivedStudents2013_edit();
$Page =& $cstArchivedStudents2013_edit;

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

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

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

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

// extend page with ValidateForm function
cstArchivedStudents2013_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($cstArchivedStudents2013->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($cstArchivedStudents2013->Surname->FldCaption()) ?>");
		elm = fobj.elements["x" + infix + "_Age"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php echo ew_JsEncode2($cstArchivedStudents2013->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 + "_IDFile"];
		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"));

		// Call Form Custom Validate event
		if (!this.Form_CustomValidate(fobj)) return false;
	}
	return true;
}

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

//
// Page class
//
class ccstArchivedStudents2013_edit {

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

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

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

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

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

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

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

		// Table object (cstArchivedStudents2013)
		$GLOBALS["cstArchivedStudents2013"] = new ccstArchivedStudents2013();

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

		// 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("cstArchivedStudents2013list.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, $cstArchivedStudents2013;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	// Load form values
	function LoadFormValues() {

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

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

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

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

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

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

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

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

		// Initialize URLs
		// Call Row_Rendering event

		$cstArchivedStudents2013->Row_Rendering();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

		// ReasonForLeaving
		$cstArchivedStudents2013->ReasonForLeaving->CellCssStyle = ""; $cstArchivedStudents2013->ReasonForLeaving->CellCssClass = "";
		$cstArchivedStudents2013->ReasonForLeaving->CellAttrs = array(); $cstArchivedStudents2013->ReasonForLeaving->ViewAttrs = array(); $cstArchivedStudents2013->ReasonForLeaving->EditAttrs = array();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// ReasonForLeaving
			$cstArchivedStudents2013->ReasonForLeaving->HrefValue = "";
			$cstArchivedStudents2013->ReasonForLeaving->TooltipValue = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// Edit refer script
			// CCEStudentID

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// ReasonForLeaving
			$cstArchivedStudents2013->ReasonForLeaving->HrefValue = "";

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

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

			// Achieved
			$cstArchivedStudents2013->Achieved->HrefValue = "";
		}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

		// IDFile
		$cstArchivedStudents2013->IDFile->Upload->RemoveFromSession(); // Remove file value from Session

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

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

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

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

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

		// ResultLetter
		$cstArchivedStudents2013->ResultLetter->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;
	}
}
?>