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