Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/ccmadmin/
Upload File :
Current File : /var/www/cesa.co.za/ccmadmin/CCMStudentsadd.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 "CCMStudentsinfo.php" ?>
<?php include "CCMUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1 
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php

// Create page object
$CCMStudents_add = new cCCMStudents_add();
$Page =& $CCMStudents_add;

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

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

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

// page properties
CCMStudents_add.PageID = "add"; // page ID
CCMStudents_add.FormID = "fCCMStudentsadd"; // form ID
var EW_PAGE_ID = CCMStudents_add.PageID; // for backward compatibility

// extend page with ValidateForm function
CCMStudents_add.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($CCMStudents->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($CCMStudents->Surname->FldCaption()) ?>");
		elm = fobj.elements["x" + infix + "_DateofBirth"];
		if (elm && !ew_CheckDate(elm.value))
			return ew_OnError(this, elm, "<?php echo ew_JsEncode2($CCMStudents->DateofBirth->FldErrMsg()) ?>");
		elm = fobj.elements["x" + infix + "_DisabilityCertificate"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_Payslip"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_BankAccountProof"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_IDFile"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_CVFile"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_QualCertificate1"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_QualCertificate2"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_QualCertificate3"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_MentorUndertaking"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_CandUUndertaking"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_CompanyCandidatePolicy"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_ResidenceProof"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_SignedAppForm"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));
		elm = fobj.elements["x" + infix + "_Photograph"];
		if (elm && !ew_CheckFileType(elm.value))
			return ew_OnError(this, elm, ewLanguage.Phrase("WrongFileType"));

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

// extend page with Form_CustomValidate function
CCMStudents_add.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) { ?>
CCMStudents_add.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
CCMStudents_add.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("Add") ?>&nbsp;<?php echo $Language->Phrase("TblTypeTABLE") ?><?php echo $CCMStudents->TableCaption() ?><br><br>
<a href="<?php echo $CCMStudents->getReturnUrl() ?>"><?php echo $Language->Phrase("GoBack") ?></a></span></p>
<?php
if (EW_DEBUG_ENABLED)
	echo ew_DebugMsg();
$CCMStudents_add->ShowMessage();
?>
<form name="fCCMStudentsadd" id="fCCMStudentsadd" action="<?php echo ew_CurrentPage() ?>" method="post" enctype="multipart/form-data" onsubmit="return CCMStudents_add.ValidateForm(this);">
<p>
<input type="hidden" name="t" id="t" value="CCMStudents">
<input type="hidden" name="a_add" id="a_add" value="A">
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<?php if ($CCMStudents->SelectionCategory->Visible) { // SelectionCategory ?>
	<tr<?php echo $CCMStudents->SelectionCategory->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->SelectionCategory->FldCaption() ?></td>
		<td<?php echo $CCMStudents->SelectionCategory->CellAttributes() ?>><span id="el_SelectionCategory">
<input type="text" name="x_SelectionCategory" id="x_SelectionCategory" title="<?php echo $CCMStudents->SelectionCategory->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->SelectionCategory->EditValue ?>"<?php echo $CCMStudents->SelectionCategory->EditAttributes() ?>>
</span><?php echo $CCMStudents->SelectionCategory->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Title->Visible) { // Title ?>
	<tr<?php echo $CCMStudents->Title->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Title->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Title->CellAttributes() ?>><span id="el_Title">
<input type="text" name="x_Title" id="x_Title" title="<?php echo $CCMStudents->Title->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCMStudents->Title->EditValue ?>"<?php echo $CCMStudents->Title->EditAttributes() ?>>
</span><?php echo $CCMStudents->Title->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Initials->Visible) { // Initials ?>
	<tr<?php echo $CCMStudents->Initials->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Initials->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Initials->CellAttributes() ?>><span id="el_Initials">
<input type="text" name="x_Initials" id="x_Initials" title="<?php echo $CCMStudents->Initials->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCMStudents->Initials->EditValue ?>"<?php echo $CCMStudents->Initials->EditAttributes() ?>>
</span><?php echo $CCMStudents->Initials->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->FirstName->Visible) { // FirstName ?>
	<tr<?php echo $CCMStudents->FirstName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->FirstName->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $CCMStudents->FirstName->CellAttributes() ?>><span id="el_FirstName">
<input type="text" name="x_FirstName" id="x_FirstName" title="<?php echo $CCMStudents->FirstName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->FirstName->EditValue ?>"<?php echo $CCMStudents->FirstName->EditAttributes() ?>>
</span><?php echo $CCMStudents->FirstName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Surname->Visible) { // Surname ?>
	<tr<?php echo $CCMStudents->Surname->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Surname->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $CCMStudents->Surname->CellAttributes() ?>><span id="el_Surname">
<input type="text" name="x_Surname" id="x_Surname" title="<?php echo $CCMStudents->Surname->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->Surname->EditValue ?>"<?php echo $CCMStudents->Surname->EditAttributes() ?>>
</span><?php echo $CCMStudents->Surname->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->KnownAs->Visible) { // KnownAs ?>
	<tr<?php echo $CCMStudents->KnownAs->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->KnownAs->FldCaption() ?></td>
		<td<?php echo $CCMStudents->KnownAs->CellAttributes() ?>><span id="el_KnownAs">
<input type="text" name="x_KnownAs" id="x_KnownAs" title="<?php echo $CCMStudents->KnownAs->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->KnownAs->EditValue ?>"<?php echo $CCMStudents->KnownAs->EditAttributes() ?>>
</span><?php echo $CCMStudents->KnownAs->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->IDNumber->Visible) { // IDNumber ?>
	<tr<?php echo $CCMStudents->IDNumber->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->IDNumber->FldCaption() ?></td>
		<td<?php echo $CCMStudents->IDNumber->CellAttributes() ?>><span id="el_IDNumber">
<input type="text" name="x_IDNumber" id="x_IDNumber" title="<?php echo $CCMStudents->IDNumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCMStudents->IDNumber->EditValue ?>"<?php echo $CCMStudents->IDNumber->EditAttributes() ?>>
</span><?php echo $CCMStudents->IDNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Telephone->Visible) { // Telephone ?>
	<tr<?php echo $CCMStudents->Telephone->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Telephone->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Telephone->CellAttributes() ?>><span id="el_Telephone">
<input type="text" name="x_Telephone" id="x_Telephone" title="<?php echo $CCMStudents->Telephone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->Telephone->EditValue ?>"<?php echo $CCMStudents->Telephone->EditAttributes() ?>>
</span><?php echo $CCMStudents->Telephone->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Cellphone->Visible) { // Cellphone ?>
	<tr<?php echo $CCMStudents->Cellphone->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Cellphone->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Cellphone->CellAttributes() ?>><span id="el_Cellphone">
<input type="text" name="x_Cellphone" id="x_Cellphone" title="<?php echo $CCMStudents->Cellphone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->Cellphone->EditValue ?>"<?php echo $CCMStudents->Cellphone->EditAttributes() ?>>
</span><?php echo $CCMStudents->Cellphone->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->EmailAddress->Visible) { // EmailAddress ?>
	<tr<?php echo $CCMStudents->EmailAddress->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->EmailAddress->FldCaption() ?></td>
		<td<?php echo $CCMStudents->EmailAddress->CellAttributes() ?>><span id="el_EmailAddress">
<input type="text" name="x_EmailAddress" id="x_EmailAddress" title="<?php echo $CCMStudents->EmailAddress->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->EmailAddress->EditValue ?>"<?php echo $CCMStudents->EmailAddress->EditAttributes() ?>>
</span><?php echo $CCMStudents->EmailAddress->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->WorkAddress->Visible) { // WorkAddress ?>
	<tr<?php echo $CCMStudents->WorkAddress->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->WorkAddress->FldCaption() ?></td>
		<td<?php echo $CCMStudents->WorkAddress->CellAttributes() ?>><span id="el_WorkAddress">
<textarea name="x_WorkAddress" id="x_WorkAddress" title="<?php echo $CCMStudents->WorkAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $CCMStudents->WorkAddress->EditAttributes() ?>><?php echo $CCMStudents->WorkAddress->EditValue ?></textarea>
</span><?php echo $CCMStudents->WorkAddress->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->PostalAddress->Visible) { // PostalAddress ?>
	<tr<?php echo $CCMStudents->PostalAddress->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->PostalAddress->FldCaption() ?></td>
		<td<?php echo $CCMStudents->PostalAddress->CellAttributes() ?>><span id="el_PostalAddress">
<textarea name="x_PostalAddress" id="x_PostalAddress" title="<?php echo $CCMStudents->PostalAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $CCMStudents->PostalAddress->EditAttributes() ?>><?php echo $CCMStudents->PostalAddress->EditValue ?></textarea>
</span><?php echo $CCMStudents->PostalAddress->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Department->Visible) { // Department ?>
	<tr<?php echo $CCMStudents->Department->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Department->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Department->CellAttributes() ?>><span id="el_Department">
<input type="text" name="x_Department" id="x_Department" title="<?php echo $CCMStudents->Department->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->Department->EditValue ?>"<?php echo $CCMStudents->Department->EditAttributes() ?>>
</span><?php echo $CCMStudents->Department->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Organisation->Visible) { // Organisation ?>
	<tr<?php echo $CCMStudents->Organisation->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Organisation->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Organisation->CellAttributes() ?>><span id="el_Organisation">
<input type="text" name="x_Organisation" id="x_Organisation" title="<?php echo $CCMStudents->Organisation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->Organisation->EditValue ?>"<?php echo $CCMStudents->Organisation->EditAttributes() ?>>
</span><?php echo $CCMStudents->Organisation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->VATNo->Visible) { // VATNo ?>
	<tr<?php echo $CCMStudents->VATNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->VATNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->VATNo->CellAttributes() ?>><span id="el_VATNo">
<input type="text" name="x_VATNo" id="x_VATNo" title="<?php echo $CCMStudents->VATNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCMStudents->VATNo->EditValue ?>"<?php echo $CCMStudents->VATNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->VATNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->JobTitle->Visible) { // JobTitle ?>
	<tr<?php echo $CCMStudents->JobTitle->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->JobTitle->FldCaption() ?></td>
		<td<?php echo $CCMStudents->JobTitle->CellAttributes() ?>><span id="el_JobTitle">
<input type="text" name="x_JobTitle" id="x_JobTitle" title="<?php echo $CCMStudents->JobTitle->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->JobTitle->EditValue ?>"<?php echo $CCMStudents->JobTitle->EditAttributes() ?>>
</span><?php echo $CCMStudents->JobTitle->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->DateofBirth->Visible) { // DateofBirth ?>
	<tr<?php echo $CCMStudents->DateofBirth->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->DateofBirth->FldCaption() ?></td>
		<td<?php echo $CCMStudents->DateofBirth->CellAttributes() ?>><span id="el_DateofBirth">
<input type="text" name="x_DateofBirth" id="x_DateofBirth" title="<?php echo $CCMStudents->DateofBirth->FldTitle() ?>" value="<?php echo $CCMStudents->DateofBirth->EditValue ?>"<?php echo $CCMStudents->DateofBirth->EditAttributes() ?>>
</span><?php echo $CCMStudents->DateofBirth->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->PlaceofBirth->Visible) { // PlaceofBirth ?>
	<tr<?php echo $CCMStudents->PlaceofBirth->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->PlaceofBirth->FldCaption() ?></td>
		<td<?php echo $CCMStudents->PlaceofBirth->CellAttributes() ?>><span id="el_PlaceofBirth">
<input type="text" name="x_PlaceofBirth" id="x_PlaceofBirth" title="<?php echo $CCMStudents->PlaceofBirth->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->PlaceofBirth->EditValue ?>"<?php echo $CCMStudents->PlaceofBirth->EditAttributes() ?>>
</span><?php echo $CCMStudents->PlaceofBirth->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->CountryofBirth->Visible) { // CountryofBirth ?>
	<tr<?php echo $CCMStudents->CountryofBirth->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->CountryofBirth->FldCaption() ?></td>
		<td<?php echo $CCMStudents->CountryofBirth->CellAttributes() ?>><span id="el_CountryofBirth">
<input type="text" name="x_CountryofBirth" id="x_CountryofBirth" title="<?php echo $CCMStudents->CountryofBirth->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->CountryofBirth->EditValue ?>"<?php echo $CCMStudents->CountryofBirth->EditAttributes() ?>>
</span><?php echo $CCMStudents->CountryofBirth->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Province->Visible) { // Province ?>
	<tr<?php echo $CCMStudents->Province->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Province->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Province->CellAttributes() ?>><span id="el_Province">
<select id="x_Province" name="x_Province" title="<?php echo $CCMStudents->Province->FldTitle() ?>"<?php echo $CCMStudents->Province->EditAttributes() ?>>
<?php
if (is_array($CCMStudents->Province->EditValue)) {
	$arwrk = $CCMStudents->Province->EditValue;
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCMStudents->Province->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
</option>
<?php
	}
}
?>
</select>
</span><?php echo $CCMStudents->Province->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->MaleorFemale->Visible) { // MaleorFemale ?>
	<tr<?php echo $CCMStudents->MaleorFemale->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->MaleorFemale->FldCaption() ?></td>
		<td<?php echo $CCMStudents->MaleorFemale->CellAttributes() ?>><span id="el_MaleorFemale">
<input type="text" name="x_MaleorFemale" id="x_MaleorFemale" title="<?php echo $CCMStudents->MaleorFemale->FldTitle() ?>" size="30" maxlength="1" value="<?php echo $CCMStudents->MaleorFemale->EditValue ?>"<?php echo $CCMStudents->MaleorFemale->EditAttributes() ?>>
</span><?php echo $CCMStudents->MaleorFemale->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->RaceGroup->Visible) { // RaceGroup ?>
	<tr<?php echo $CCMStudents->RaceGroup->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->RaceGroup->FldCaption() ?></td>
		<td<?php echo $CCMStudents->RaceGroup->CellAttributes() ?>><span id="el_RaceGroup">
<input type="text" name="x_RaceGroup" id="x_RaceGroup" title="<?php echo $CCMStudents->RaceGroup->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->RaceGroup->EditValue ?>"<?php echo $CCMStudents->RaceGroup->EditAttributes() ?>>
</span><?php echo $CCMStudents->RaceGroup->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Disability->Visible) { // Disability ?>
	<tr<?php echo $CCMStudents->Disability->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Disability->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $CCMStudents->Disability->CellAttributes() ?>><span id="el_Disability">
<div id="tp_x_Disability" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Disability" id="x_Disability" title="<?php echo $CCMStudents->Disability->FldTitle() ?>" value="{value}"<?php echo $CCMStudents->Disability->EditAttributes() ?>></label></div>
<div id="dsl_x_Disability" repeatcolumn="5">
<?php
$arwrk = $CCMStudents->Disability->EditValue;
if (is_array($arwrk)) {
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCMStudents->Disability->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;

		// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Disability" id="x_Disability" title="<?php echo $CCMStudents->Disability->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCMStudents->Disability->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
	}
}
?>
</div>
</span><?php echo $CCMStudents->Disability->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->DisabilityNature->Visible) { // DisabilityNature ?>
	<tr<?php echo $CCMStudents->DisabilityNature->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->DisabilityNature->FldCaption() ?></td>
		<td<?php echo $CCMStudents->DisabilityNature->CellAttributes() ?>><span id="el_DisabilityNature">
<input type="text" name="x_DisabilityNature" id="x_DisabilityNature" title="<?php echo $CCMStudents->DisabilityNature->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->DisabilityNature->EditValue ?>"<?php echo $CCMStudents->DisabilityNature->EditAttributes() ?>>
</span><?php echo $CCMStudents->DisabilityNature->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->DisabilityCertificate->Visible) { // DisabilityCertificate ?>
	<tr<?php echo $CCMStudents->DisabilityCertificate->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->DisabilityCertificate->FldCaption() ?></td>
		<td<?php echo $CCMStudents->DisabilityCertificate->CellAttributes() ?>><span id="el_DisabilityCertificate">
<input type="file" name="x_DisabilityCertificate" id="x_DisabilityCertificate" title="<?php echo $CCMStudents->DisabilityCertificate->FldTitle() ?>" size="30"<?php echo $CCMStudents->DisabilityCertificate->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->DisabilityCertificate->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->ProfessionalCouncil->Visible) { // ProfessionalCouncil ?>
	<tr<?php echo $CCMStudents->ProfessionalCouncil->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->ProfessionalCouncil->FldCaption() ?></td>
		<td<?php echo $CCMStudents->ProfessionalCouncil->CellAttributes() ?>><span id="el_ProfessionalCouncil">
<input type="text" name="x_ProfessionalCouncil" id="x_ProfessionalCouncil" title="<?php echo $CCMStudents->ProfessionalCouncil->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->ProfessionalCouncil->EditValue ?>"<?php echo $CCMStudents->ProfessionalCouncil->EditAttributes() ?>>
</span><?php echo $CCMStudents->ProfessionalCouncil->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->CategoryReg->Visible) { // CategoryReg ?>
	<tr<?php echo $CCMStudents->CategoryReg->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->CategoryReg->FldCaption() ?></td>
		<td<?php echo $CCMStudents->CategoryReg->CellAttributes() ?>><span id="el_CategoryReg">
<input type="text" name="x_CategoryReg" id="x_CategoryReg" title="<?php echo $CCMStudents->CategoryReg->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->CategoryReg->EditValue ?>"<?php echo $CCMStudents->CategoryReg->EditAttributes() ?>>
</span><?php echo $CCMStudents->CategoryReg->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->CouncilRegNumber->Visible) { // CouncilRegNumber ?>
	<tr<?php echo $CCMStudents->CouncilRegNumber->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->CouncilRegNumber->FldCaption() ?></td>
		<td<?php echo $CCMStudents->CouncilRegNumber->CellAttributes() ?>><span id="el_CouncilRegNumber">
<input type="text" name="x_CouncilRegNumber" id="x_CouncilRegNumber" title="<?php echo $CCMStudents->CouncilRegNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->CouncilRegNumber->EditValue ?>"<?php echo $CCMStudents->CouncilRegNumber->EditAttributes() ?>>
</span><?php echo $CCMStudents->CouncilRegNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->LengthCandidateReg->Visible) { // LengthCandidateReg ?>
	<tr<?php echo $CCMStudents->LengthCandidateReg->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->LengthCandidateReg->FldCaption() ?></td>
		<td<?php echo $CCMStudents->LengthCandidateReg->CellAttributes() ?>><span id="el_LengthCandidateReg">
<input type="text" name="x_LengthCandidateReg" id="x_LengthCandidateReg" title="<?php echo $CCMStudents->LengthCandidateReg->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->LengthCandidateReg->EditValue ?>"<?php echo $CCMStudents->LengthCandidateReg->EditAttributes() ?>>
</span><?php echo $CCMStudents->LengthCandidateReg->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->YearsToProfReg->Visible) { // YearsToProfReg ?>
	<tr<?php echo $CCMStudents->YearsToProfReg->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->YearsToProfReg->FldCaption() ?></td>
		<td<?php echo $CCMStudents->YearsToProfReg->CellAttributes() ?>><span id="el_YearsToProfReg">
<input type="text" name="x_YearsToProfReg" id="x_YearsToProfReg" title="<?php echo $CCMStudents->YearsToProfReg->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->YearsToProfReg->EditValue ?>"<?php echo $CCMStudents->YearsToProfReg->EditAttributes() ?>>
</span><?php echo $CCMStudents->YearsToProfReg->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->FirstJobStart->Visible) { // FirstJobStart ?>
	<tr<?php echo $CCMStudents->FirstJobStart->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->FirstJobStart->FldCaption() ?></td>
		<td<?php echo $CCMStudents->FirstJobStart->CellAttributes() ?>><span id="el_FirstJobStart">
<input type="text" name="x_FirstJobStart" id="x_FirstJobStart" title="<?php echo $CCMStudents->FirstJobStart->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->FirstJobStart->EditValue ?>"<?php echo $CCMStudents->FirstJobStart->EditAttributes() ?>>
</span><?php echo $CCMStudents->FirstJobStart->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->VolAssociations->Visible) { // VolAssociations ?>
	<tr<?php echo $CCMStudents->VolAssociations->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->VolAssociations->FldCaption() ?></td>
		<td<?php echo $CCMStudents->VolAssociations->CellAttributes() ?>><span id="el_VolAssociations">
<input type="text" name="x_VolAssociations" id="x_VolAssociations" title="<?php echo $CCMStudents->VolAssociations->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->VolAssociations->EditValue ?>"<?php echo $CCMStudents->VolAssociations->EditAttributes() ?>>
</span><?php echo $CCMStudents->VolAssociations->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BelongsTo->Visible) { // BelongsTo ?>
	<tr<?php echo $CCMStudents->BelongsTo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BelongsTo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BelongsTo->CellAttributes() ?>><span id="el_BelongsTo">
<input type="text" name="x_BelongsTo" id="x_BelongsTo" title="<?php echo $CCMStudents->BelongsTo->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCMStudents->BelongsTo->EditValue ?>"<?php echo $CCMStudents->BelongsTo->EditAttributes() ?>>
</span><?php echo $CCMStudents->BelongsTo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->CESA_SABTACO_MemNum->Visible) { // CESA_SABTACO_MemNum ?>
	<tr<?php echo $CCMStudents->CESA_SABTACO_MemNum->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->CESA_SABTACO_MemNum->FldCaption() ?></td>
		<td<?php echo $CCMStudents->CESA_SABTACO_MemNum->CellAttributes() ?>><span id="el_CESA_SABTACO_MemNum">
<input type="text" name="x_CESA_SABTACO_MemNum" id="x_CESA_SABTACO_MemNum" title="<?php echo $CCMStudents->CESA_SABTACO_MemNum->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->CESA_SABTACO_MemNum->EditValue ?>"<?php echo $CCMStudents->CESA_SABTACO_MemNum->EditAttributes() ?>>
</span><?php echo $CCMStudents->CESA_SABTACO_MemNum->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->AreaDiscipline->Visible) { // AreaDiscipline ?>
	<tr<?php echo $CCMStudents->AreaDiscipline->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->AreaDiscipline->FldCaption() ?></td>
		<td<?php echo $CCMStudents->AreaDiscipline->CellAttributes() ?>><span id="el_AreaDiscipline">
<input type="text" name="x_AreaDiscipline" id="x_AreaDiscipline" title="<?php echo $CCMStudents->AreaDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->AreaDiscipline->EditValue ?>"<?php echo $CCMStudents->AreaDiscipline->EditAttributes() ?>>
</span><?php echo $CCMStudents->AreaDiscipline->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->AreaSubDiscipline->Visible) { // AreaSubDiscipline ?>
	<tr<?php echo $CCMStudents->AreaSubDiscipline->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->AreaSubDiscipline->FldCaption() ?></td>
		<td<?php echo $CCMStudents->AreaSubDiscipline->CellAttributes() ?>><span id="el_AreaSubDiscipline">
<input type="text" name="x_AreaSubDiscipline" id="x_AreaSubDiscipline" title="<?php echo $CCMStudents->AreaSubDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->AreaSubDiscipline->EditValue ?>"<?php echo $CCMStudents->AreaSubDiscipline->EditAttributes() ?>>
</span><?php echo $CCMStudents->AreaSubDiscipline->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Salary->Visible) { // Salary ?>
	<tr<?php echo $CCMStudents->Salary->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Salary->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Salary->CellAttributes() ?>><span id="el_Salary">
<input type="text" name="x_Salary" id="x_Salary" title="<?php echo $CCMStudents->Salary->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->Salary->EditValue ?>"<?php echo $CCMStudents->Salary->EditAttributes() ?>>
</span><?php echo $CCMStudents->Salary->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Payslip->Visible) { // Payslip ?>
	<tr<?php echo $CCMStudents->Payslip->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Payslip->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Payslip->CellAttributes() ?>><span id="el_Payslip">
<input type="file" name="x_Payslip" id="x_Payslip" title="<?php echo $CCMStudents->Payslip->FldTitle() ?>" size="30"<?php echo $CCMStudents->Payslip->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->Payslip->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountName->Visible) { // BankAccountName ?>
	<tr<?php echo $CCMStudents->BankAccountName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountName->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BankAccountName->CellAttributes() ?>><span id="el_BankAccountName">
<input type="text" name="x_BankAccountName" id="x_BankAccountName" title="<?php echo $CCMStudents->BankAccountName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BankAccountName->EditValue ?>"<?php echo $CCMStudents->BankAccountName->EditAttributes() ?>>
</span><?php echo $CCMStudents->BankAccountName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountBank->Visible) { // BankAccountBank ?>
	<tr<?php echo $CCMStudents->BankAccountBank->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountBank->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BankAccountBank->CellAttributes() ?>><span id="el_BankAccountBank">
<input type="text" name="x_BankAccountBank" id="x_BankAccountBank" title="<?php echo $CCMStudents->BankAccountBank->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BankAccountBank->EditValue ?>"<?php echo $CCMStudents->BankAccountBank->EditAttributes() ?>>
</span><?php echo $CCMStudents->BankAccountBank->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountBranch->Visible) { // BankAccountBranch ?>
	<tr<?php echo $CCMStudents->BankAccountBranch->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountBranch->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BankAccountBranch->CellAttributes() ?>><span id="el_BankAccountBranch">
<input type="text" name="x_BankAccountBranch" id="x_BankAccountBranch" title="<?php echo $CCMStudents->BankAccountBranch->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BankAccountBranch->EditValue ?>"<?php echo $CCMStudents->BankAccountBranch->EditAttributes() ?>>
</span><?php echo $CCMStudents->BankAccountBranch->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountNo->Visible) { // BankAccountNo ?>
	<tr<?php echo $CCMStudents->BankAccountNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BankAccountNo->CellAttributes() ?>><span id="el_BankAccountNo">
<input type="text" name="x_BankAccountNo" id="x_BankAccountNo" title="<?php echo $CCMStudents->BankAccountNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BankAccountNo->EditValue ?>"<?php echo $CCMStudents->BankAccountNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->BankAccountNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BankAccountProof->Visible) { // BankAccountProof ?>
	<tr<?php echo $CCMStudents->BankAccountProof->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BankAccountProof->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BankAccountProof->CellAttributes() ?>><span id="el_BankAccountProof">
<input type="file" name="x_BankAccountProof" id="x_BankAccountProof" title="<?php echo $CCMStudents->BankAccountProof->FldTitle() ?>" size="30"<?php echo $CCMStudents->BankAccountProof->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->BankAccountProof->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Funding->Visible) { // Funding ?>
	<tr<?php echo $CCMStudents->Funding->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Funding->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Funding->CellAttributes() ?>><span id="el_Funding">
<input type="text" name="x_Funding" id="x_Funding" title="<?php echo $CCMStudents->Funding->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->Funding->EditValue ?>"<?php echo $CCMStudents->Funding->EditAttributes() ?>>
</span><?php echo $CCMStudents->Funding->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->CWDTP->Visible) { // CWDTP ?>
	<tr<?php echo $CCMStudents->CWDTP->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->CWDTP->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $CCMStudents->CWDTP->CellAttributes() ?>><span id="el_CWDTP">
<input type="text" name="x_CWDTP" id="x_CWDTP" title="<?php echo $CCMStudents->CWDTP->FldTitle() ?>" size="30" maxlength="1" value="<?php echo $CCMStudents->CWDTP->EditValue ?>"<?php echo $CCMStudents->CWDTP->EditAttributes() ?>>
</span><?php echo $CCMStudents->CWDTP->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByName->Visible) { // BookedByName ?>
	<tr<?php echo $CCMStudents->BookedByName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BookedByName->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BookedByName->CellAttributes() ?>><span id="el_BookedByName">
<input type="text" name="x_BookedByName" id="x_BookedByName" title="<?php echo $CCMStudents->BookedByName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BookedByName->EditValue ?>"<?php echo $CCMStudents->BookedByName->EditAttributes() ?>>
</span><?php echo $CCMStudents->BookedByName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByDesignation->Visible) { // BookedByDesignation ?>
	<tr<?php echo $CCMStudents->BookedByDesignation->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BookedByDesignation->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BookedByDesignation->CellAttributes() ?>><span id="el_BookedByDesignation">
<input type="text" name="x_BookedByDesignation" id="x_BookedByDesignation" title="<?php echo $CCMStudents->BookedByDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BookedByDesignation->EditValue ?>"<?php echo $CCMStudents->BookedByDesignation->EditAttributes() ?>>
</span><?php echo $CCMStudents->BookedByDesignation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByTelNo->Visible) { // BookedByTelNo ?>
	<tr<?php echo $CCMStudents->BookedByTelNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BookedByTelNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BookedByTelNo->CellAttributes() ?>><span id="el_BookedByTelNo">
<input type="text" name="x_BookedByTelNo" id="x_BookedByTelNo" title="<?php echo $CCMStudents->BookedByTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BookedByTelNo->EditValue ?>"<?php echo $CCMStudents->BookedByTelNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->BookedByTelNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByFaxNo->Visible) { // BookedByFaxNo ?>
	<tr<?php echo $CCMStudents->BookedByFaxNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BookedByFaxNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BookedByFaxNo->CellAttributes() ?>><span id="el_BookedByFaxNo">
<input type="text" name="x_BookedByFaxNo" id="x_BookedByFaxNo" title="<?php echo $CCMStudents->BookedByFaxNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BookedByFaxNo->EditValue ?>"<?php echo $CCMStudents->BookedByFaxNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->BookedByFaxNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByCellNo->Visible) { // BookedByCellNo ?>
	<tr<?php echo $CCMStudents->BookedByCellNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BookedByCellNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BookedByCellNo->CellAttributes() ?>><span id="el_BookedByCellNo">
<input type="text" name="x_BookedByCellNo" id="x_BookedByCellNo" title="<?php echo $CCMStudents->BookedByCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BookedByCellNo->EditValue ?>"<?php echo $CCMStudents->BookedByCellNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->BookedByCellNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BookedByEmail->Visible) { // BookedByEmail ?>
	<tr<?php echo $CCMStudents->BookedByEmail->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BookedByEmail->FldCaption() ?></td>
		<td<?php echo $CCMStudents->BookedByEmail->CellAttributes() ?>><span id="el_BookedByEmail">
<input type="text" name="x_BookedByEmail" id="x_BookedByEmail" title="<?php echo $CCMStudents->BookedByEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->BookedByEmail->EditValue ?>"<?php echo $CCMStudents->BookedByEmail->EditAttributes() ?>>
</span><?php echo $CCMStudents->BookedByEmail->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->MentorID->Visible) { // MentorID ?>
	<tr<?php echo $CCMStudents->MentorID->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->MentorID->FldCaption() ?></td>
		<td<?php echo $CCMStudents->MentorID->CellAttributes() ?>><span id="el_MentorID">
<select id="x_MentorID" name="x_MentorID" title="<?php echo $CCMStudents->MentorID->FldTitle() ?>"<?php echo $CCMStudents->MentorID->EditAttributes() ?>>
<?php
if (is_array($CCMStudents->MentorID->EditValue)) {
	$arwrk = $CCMStudents->MentorID->EditValue;
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCMStudents->MentorID->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
<?php if ($arwrk[$rowcntwrk][2] <> "") { ?>
<?php echo ew_ValueSeparator($rowcntwrk) ?><?php echo $arwrk[$rowcntwrk][2] ?>
<?php } ?>
</option>
<?php
	}
}
?>
</select>
</span><?php echo $CCMStudents->MentorID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->EmployerID->Visible) { // EmployerID ?>
	<tr<?php echo $CCMStudents->EmployerID->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->EmployerID->FldCaption() ?></td>
		<td<?php echo $CCMStudents->EmployerID->CellAttributes() ?>><span id="el_EmployerID">
<select id="x_EmployerID" name="x_EmployerID" title="<?php echo $CCMStudents->EmployerID->FldTitle() ?>"<?php echo $CCMStudents->EmployerID->EditAttributes() ?>>
<?php
if (is_array($CCMStudents->EmployerID->EditValue)) {
	$arwrk = $CCMStudents->EmployerID->EditValue;
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCMStudents->EmployerID->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " selected=\"selected\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;
?>
<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
<?php echo $arwrk[$rowcntwrk][1] ?>
<?php if ($arwrk[$rowcntwrk][2] <> "") { ?>
<?php echo ew_ValueSeparator($rowcntwrk) ?><?php echo $arwrk[$rowcntwrk][2] ?>
<?php } ?>
</option>
<?php
	}
}
?>
</select>
</span><?php echo $CCMStudents->EmployerID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerName->Visible) { // HRManagerName ?>
	<tr<?php echo $CCMStudents->HRManagerName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerName->FldCaption() ?></td>
		<td<?php echo $CCMStudents->HRManagerName->CellAttributes() ?>><span id="el_HRManagerName">
<input type="text" name="x_HRManagerName" id="x_HRManagerName" title="<?php echo $CCMStudents->HRManagerName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->HRManagerName->EditValue ?>"<?php echo $CCMStudents->HRManagerName->EditAttributes() ?>>
</span><?php echo $CCMStudents->HRManagerName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerDesignation->Visible) { // HRManagerDesignation ?>
	<tr<?php echo $CCMStudents->HRManagerDesignation->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerDesignation->FldCaption() ?></td>
		<td<?php echo $CCMStudents->HRManagerDesignation->CellAttributes() ?>><span id="el_HRManagerDesignation">
<input type="text" name="x_HRManagerDesignation" id="x_HRManagerDesignation" title="<?php echo $CCMStudents->HRManagerDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->HRManagerDesignation->EditValue ?>"<?php echo $CCMStudents->HRManagerDesignation->EditAttributes() ?>>
</span><?php echo $CCMStudents->HRManagerDesignation->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerTelNo->Visible) { // HRManagerTelNo ?>
	<tr<?php echo $CCMStudents->HRManagerTelNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerTelNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->HRManagerTelNo->CellAttributes() ?>><span id="el_HRManagerTelNo">
<input type="text" name="x_HRManagerTelNo" id="x_HRManagerTelNo" title="<?php echo $CCMStudents->HRManagerTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->HRManagerTelNo->EditValue ?>"<?php echo $CCMStudents->HRManagerTelNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->HRManagerTelNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerCellNo->Visible) { // HRManagerCellNo ?>
	<tr<?php echo $CCMStudents->HRManagerCellNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerCellNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->HRManagerCellNo->CellAttributes() ?>><span id="el_HRManagerCellNo">
<input type="text" name="x_HRManagerCellNo" id="x_HRManagerCellNo" title="<?php echo $CCMStudents->HRManagerCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->HRManagerCellNo->EditValue ?>"<?php echo $CCMStudents->HRManagerCellNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->HRManagerCellNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->HRManagerEmail->Visible) { // HRManagerEmail ?>
	<tr<?php echo $CCMStudents->HRManagerEmail->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->HRManagerEmail->FldCaption() ?></td>
		<td<?php echo $CCMStudents->HRManagerEmail->CellAttributes() ?>><span id="el_HRManagerEmail">
<input type="text" name="x_HRManagerEmail" id="x_HRManagerEmail" title="<?php echo $CCMStudents->HRManagerEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->HRManagerEmail->EditValue ?>"<?php echo $CCMStudents->HRManagerEmail->EditAttributes() ?>>
</span><?php echo $CCMStudents->HRManagerEmail->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorName->Visible) { // SupervisorName ?>
	<tr<?php echo $CCMStudents->SupervisorName->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorName->FldCaption() ?></td>
		<td<?php echo $CCMStudents->SupervisorName->CellAttributes() ?>><span id="el_SupervisorName">
<input type="text" name="x_SupervisorName" id="x_SupervisorName" title="<?php echo $CCMStudents->SupervisorName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->SupervisorName->EditValue ?>"<?php echo $CCMStudents->SupervisorName->EditAttributes() ?>>
</span><?php echo $CCMStudents->SupervisorName->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorDesig->Visible) { // SupervisorDesig ?>
	<tr<?php echo $CCMStudents->SupervisorDesig->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorDesig->FldCaption() ?></td>
		<td<?php echo $CCMStudents->SupervisorDesig->CellAttributes() ?>><span id="el_SupervisorDesig">
<input type="text" name="x_SupervisorDesig" id="x_SupervisorDesig" title="<?php echo $CCMStudents->SupervisorDesig->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->SupervisorDesig->EditValue ?>"<?php echo $CCMStudents->SupervisorDesig->EditAttributes() ?>>
</span><?php echo $CCMStudents->SupervisorDesig->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorProfRegNo->Visible) { // SupervisorProfRegNo ?>
	<tr<?php echo $CCMStudents->SupervisorProfRegNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorProfRegNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->SupervisorProfRegNo->CellAttributes() ?>><span id="el_SupervisorProfRegNo">
<input type="text" name="x_SupervisorProfRegNo" id="x_SupervisorProfRegNo" title="<?php echo $CCMStudents->SupervisorProfRegNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->SupervisorProfRegNo->EditValue ?>"<?php echo $CCMStudents->SupervisorProfRegNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->SupervisorProfRegNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorTelNo->Visible) { // SupervisorTelNo ?>
	<tr<?php echo $CCMStudents->SupervisorTelNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorTelNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->SupervisorTelNo->CellAttributes() ?>><span id="el_SupervisorTelNo">
<input type="text" name="x_SupervisorTelNo" id="x_SupervisorTelNo" title="<?php echo $CCMStudents->SupervisorTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->SupervisorTelNo->EditValue ?>"<?php echo $CCMStudents->SupervisorTelNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->SupervisorTelNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorCellNo->Visible) { // SupervisorCellNo ?>
	<tr<?php echo $CCMStudents->SupervisorCellNo->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorCellNo->FldCaption() ?></td>
		<td<?php echo $CCMStudents->SupervisorCellNo->CellAttributes() ?>><span id="el_SupervisorCellNo">
<input type="text" name="x_SupervisorCellNo" id="x_SupervisorCellNo" title="<?php echo $CCMStudents->SupervisorCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->SupervisorCellNo->EditValue ?>"<?php echo $CCMStudents->SupervisorCellNo->EditAttributes() ?>>
</span><?php echo $CCMStudents->SupervisorCellNo->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->SupervisorEmail->Visible) { // SupervisorEmail ?>
	<tr<?php echo $CCMStudents->SupervisorEmail->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->SupervisorEmail->FldCaption() ?></td>
		<td<?php echo $CCMStudents->SupervisorEmail->CellAttributes() ?>><span id="el_SupervisorEmail">
<input type="text" name="x_SupervisorEmail" id="x_SupervisorEmail" title="<?php echo $CCMStudents->SupervisorEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->SupervisorEmail->EditValue ?>"<?php echo $CCMStudents->SupervisorEmail->EditAttributes() ?>>
</span><?php echo $CCMStudents->SupervisorEmail->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->EducationalInst->Visible) { // EducationalInst ?>
	<tr<?php echo $CCMStudents->EducationalInst->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->EducationalInst->FldCaption() ?></td>
		<td<?php echo $CCMStudents->EducationalInst->CellAttributes() ?>><span id="el_EducationalInst">
<input type="text" name="x_EducationalInst" id="x_EducationalInst" title="<?php echo $CCMStudents->EducationalInst->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->EducationalInst->EditValue ?>"<?php echo $CCMStudents->EducationalInst->EditAttributes() ?>>
</span><?php echo $CCMStudents->EducationalInst->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Qualifications->Visible) { // Qualifications ?>
	<tr<?php echo $CCMStudents->Qualifications->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Qualifications->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Qualifications->CellAttributes() ?>><span id="el_Qualifications">
<textarea name="x_Qualifications" id="x_Qualifications" title="<?php echo $CCMStudents->Qualifications->FldTitle() ?>" cols="35" rows="4"<?php echo $CCMStudents->Qualifications->EditAttributes() ?>><?php echo $CCMStudents->Qualifications->EditValue ?></textarea>
</span><?php echo $CCMStudents->Qualifications->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->DateFinalExam->Visible) { // DateFinalExam ?>
	<tr<?php echo $CCMStudents->DateFinalExam->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->DateFinalExam->FldCaption() ?></td>
		<td<?php echo $CCMStudents->DateFinalExam->CellAttributes() ?>><span id="el_DateFinalExam">
<input type="text" name="x_DateFinalExam" id="x_DateFinalExam" title="<?php echo $CCMStudents->DateFinalExam->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->DateFinalExam->EditValue ?>"<?php echo $CCMStudents->DateFinalExam->EditAttributes() ?>>
</span><?php echo $CCMStudents->DateFinalExam->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->IDFile->Visible) { // IDFile ?>
	<tr<?php echo $CCMStudents->IDFile->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->IDFile->FldCaption() ?></td>
		<td<?php echo $CCMStudents->IDFile->CellAttributes() ?>><span id="el_IDFile">
<input type="file" name="x_IDFile" id="x_IDFile" title="<?php echo $CCMStudents->IDFile->FldTitle() ?>" size="30"<?php echo $CCMStudents->IDFile->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->IDFile->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->CVFile->Visible) { // CVFile ?>
	<tr<?php echo $CCMStudents->CVFile->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->CVFile->FldCaption() ?></td>
		<td<?php echo $CCMStudents->CVFile->CellAttributes() ?>><span id="el_CVFile">
<input type="file" name="x_CVFile" id="x_CVFile" title="<?php echo $CCMStudents->CVFile->FldTitle() ?>" size="30"<?php echo $CCMStudents->CVFile->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->CVFile->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->QualCertificate1->Visible) { // QualCertificate1 ?>
	<tr<?php echo $CCMStudents->QualCertificate1->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->QualCertificate1->FldCaption() ?></td>
		<td<?php echo $CCMStudents->QualCertificate1->CellAttributes() ?>><span id="el_QualCertificate1">
<input type="file" name="x_QualCertificate1" id="x_QualCertificate1" title="<?php echo $CCMStudents->QualCertificate1->FldTitle() ?>" size="30"<?php echo $CCMStudents->QualCertificate1->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->QualCertificate1->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->QualCertificate2->Visible) { // QualCertificate2 ?>
	<tr<?php echo $CCMStudents->QualCertificate2->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->QualCertificate2->FldCaption() ?></td>
		<td<?php echo $CCMStudents->QualCertificate2->CellAttributes() ?>><span id="el_QualCertificate2">
<input type="file" name="x_QualCertificate2" id="x_QualCertificate2" title="<?php echo $CCMStudents->QualCertificate2->FldTitle() ?>" size="30"<?php echo $CCMStudents->QualCertificate2->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->QualCertificate2->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->QualCertificate3->Visible) { // QualCertificate3 ?>
	<tr<?php echo $CCMStudents->QualCertificate3->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->QualCertificate3->FldCaption() ?></td>
		<td<?php echo $CCMStudents->QualCertificate3->CellAttributes() ?>><span id="el_QualCertificate3">
<input type="file" name="x_QualCertificate3" id="x_QualCertificate3" title="<?php echo $CCMStudents->QualCertificate3->FldTitle() ?>" size="30"<?php echo $CCMStudents->QualCertificate3->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->QualCertificate3->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->MentorUndertaking->Visible) { // MentorUndertaking ?>
	<tr<?php echo $CCMStudents->MentorUndertaking->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->MentorUndertaking->FldCaption() ?></td>
		<td<?php echo $CCMStudents->MentorUndertaking->CellAttributes() ?>><span id="el_MentorUndertaking">
<input type="file" name="x_MentorUndertaking" id="x_MentorUndertaking" title="<?php echo $CCMStudents->MentorUndertaking->FldTitle() ?>" size="30"<?php echo $CCMStudents->MentorUndertaking->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->MentorUndertaking->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->CandUUndertaking->Visible) { // CandUUndertaking ?>
	<tr<?php echo $CCMStudents->CandUUndertaking->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->CandUUndertaking->FldCaption() ?></td>
		<td<?php echo $CCMStudents->CandUUndertaking->CellAttributes() ?>><span id="el_CandUUndertaking">
<input type="file" name="x_CandUUndertaking" id="x_CandUUndertaking" title="<?php echo $CCMStudents->CandUUndertaking->FldTitle() ?>" size="30"<?php echo $CCMStudents->CandUUndertaking->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->CandUUndertaking->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->CompanyCandidatePolicy->Visible) { // CompanyCandidatePolicy ?>
	<tr<?php echo $CCMStudents->CompanyCandidatePolicy->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->CompanyCandidatePolicy->FldCaption() ?></td>
		<td<?php echo $CCMStudents->CompanyCandidatePolicy->CellAttributes() ?>><span id="el_CompanyCandidatePolicy">
<input type="file" name="x_CompanyCandidatePolicy" id="x_CompanyCandidatePolicy" title="<?php echo $CCMStudents->CompanyCandidatePolicy->FldTitle() ?>" size="30"<?php echo $CCMStudents->CompanyCandidatePolicy->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->CompanyCandidatePolicy->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->ResidenceProof->Visible) { // ResidenceProof ?>
	<tr<?php echo $CCMStudents->ResidenceProof->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->ResidenceProof->FldCaption() ?></td>
		<td<?php echo $CCMStudents->ResidenceProof->CellAttributes() ?>><span id="el_ResidenceProof">
<input type="file" name="x_ResidenceProof" id="x_ResidenceProof" title="<?php echo $CCMStudents->ResidenceProof->FldTitle() ?>" size="30"<?php echo $CCMStudents->ResidenceProof->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->ResidenceProof->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->SignedAppForm->Visible) { // SignedAppForm ?>
	<tr<?php echo $CCMStudents->SignedAppForm->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->SignedAppForm->FldCaption() ?></td>
		<td<?php echo $CCMStudents->SignedAppForm->CellAttributes() ?>><span id="el_SignedAppForm">
<input type="file" name="x_SignedAppForm" id="x_SignedAppForm" title="<?php echo $CCMStudents->SignedAppForm->FldTitle() ?>" size="30"<?php echo $CCMStudents->SignedAppForm->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->SignedAppForm->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Photograph->Visible) { // Photograph ?>
	<tr<?php echo $CCMStudents->Photograph->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Photograph->FldCaption() ?></td>
		<td<?php echo $CCMStudents->Photograph->CellAttributes() ?>><span id="el_Photograph">
<input type="file" name="x_Photograph" id="x_Photograph" title="<?php echo $CCMStudents->Photograph->FldTitle() ?>" size="30"<?php echo $CCMStudents->Photograph->EditAttributes() ?>>
</div>
</span><?php echo $CCMStudents->Photograph->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->StudentNumber->Visible) { // StudentNumber ?>
	<tr<?php echo $CCMStudents->StudentNumber->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->StudentNumber->FldCaption() ?></td>
		<td<?php echo $CCMStudents->StudentNumber->CellAttributes() ?>><span id="el_StudentNumber">
<input type="text" name="x_StudentNumber" id="x_StudentNumber" title="<?php echo $CCMStudents->StudentNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCMStudents->StudentNumber->EditValue ?>"<?php echo $CCMStudents->StudentNumber->EditAttributes() ?>>
</span><?php echo $CCMStudents->StudentNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->WebUsername->Visible) { // WebUsername ?>
	<tr<?php echo $CCMStudents->WebUsername->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->WebUsername->FldCaption() ?></td>
		<td<?php echo $CCMStudents->WebUsername->CellAttributes() ?>><span id="el_WebUsername">
<input type="text" name="x_WebUsername" id="x_WebUsername" title="<?php echo $CCMStudents->WebUsername->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCMStudents->WebUsername->EditValue ?>"<?php echo $CCMStudents->WebUsername->EditAttributes() ?>>
</span><?php echo $CCMStudents->WebUsername->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->WebPassword->Visible) { // WebPassword ?>
	<tr<?php echo $CCMStudents->WebPassword->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->WebPassword->FldCaption() ?></td>
		<td<?php echo $CCMStudents->WebPassword->CellAttributes() ?>><span id="el_WebPassword">
<input type="text" name="x_WebPassword" id="x_WebPassword" title="<?php echo $CCMStudents->WebPassword->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCMStudents->WebPassword->EditValue ?>"<?php echo $CCMStudents->WebPassword->EditAttributes() ?>>
</span><?php echo $CCMStudents->WebPassword->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->BlockAccess->Visible) { // BlockAccess ?>
	<tr<?php echo $CCMStudents->BlockAccess->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->BlockAccess->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $CCMStudents->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 $CCMStudents->BlockAccess->FldTitle() ?>" value="{value}"<?php echo $CCMStudents->BlockAccess->EditAttributes() ?>></label></div>
<div id="dsl_x_BlockAccess" repeatcolumn="5">
<?php
$arwrk = $CCMStudents->BlockAccess->EditValue;
if (is_array($arwrk)) {
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCMStudents->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 $CCMStudents->BlockAccess->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCMStudents->BlockAccess->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
	}
}
?>
</div>
</span><?php echo $CCMStudents->BlockAccess->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php if ($CCMStudents->Archived->Visible) { // Archived ?>
	<tr<?php echo $CCMStudents->Archived->RowAttributes ?>>
		<td class="ewTableHeader"><?php echo $CCMStudents->Archived->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
		<td<?php echo $CCMStudents->Archived->CellAttributes() ?>><span id="el_Archived">
<div id="tp_x_Archived" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Archived" id="x_Archived" title="<?php echo $CCMStudents->Archived->FldTitle() ?>" value="{value}"<?php echo $CCMStudents->Archived->EditAttributes() ?>></label></div>
<div id="dsl_x_Archived" repeatcolumn="5">
<?php
$arwrk = $CCMStudents->Archived->EditValue;
if (is_array($arwrk)) {
	$rowswrk = count($arwrk);
	$emptywrk = TRUE;
	for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
		$selwrk = (strval($CCMStudents->Archived->CurrentValue) == strval($arwrk[$rowcntwrk][0])) ? " checked=\"checked\"" : "";
		if ($selwrk <> "") $emptywrk = FALSE;

		// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="radio" name="x_Archived" id="x_Archived" title="<?php echo $CCMStudents->Archived->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCMStudents->Archived->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
	}
}
?>
</div>
</span><?php echo $CCMStudents->Archived->CustomMsg ?></td>
	</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<p>
<input type="submit" name="btnAction" id="btnAction" value="<?php echo ew_BtnCaption($Language->Phrase("AddBtn")) ?>">
</form>
<script language="JavaScript" type="text/javascript">
<!--

// Write your table-specific startup script here
// document.write("page loaded");
//-->

</script>
<?php include "footer.php" ?>
<?php
$CCMStudents_add->Page_Terminate();
?>
<?php

//
// Page class
//
class cCCMStudents_add {

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

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

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

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

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

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

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

		// Table object (CCMStudents)
		$GLOBALS["CCMStudents"] = new cCCMStudents();

		// Table object (CCMUsers)
		$GLOBALS['CCMUsers'] = new cCCMUsers();

		// Page ID
		if (!defined("EW_PAGE_ID"))
			define("EW_PAGE_ID", 'add', TRUE);

		// Table name (for backward compatibility)
		if (!defined("EW_TABLE_NAME"))
			define("EW_TABLE_NAME", 'CCMStudents', 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 $CCMStudents;

		// 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->CanAdd()) {
			$Security->SaveLastUrl();
			$this->Page_Terminate("CCMStudentslist.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 = "";
	var $lPriv = 0;

	// 
	// Page main
	//
	function Page_Main() {
		global $objForm, $Language, $gsFormError, $CCMStudents;

		// Load key values from QueryString
		$bCopy = TRUE;
		if (@$_GET["CCMStudentID"] != "") {
		  $CCMStudents->CCMStudentID->setQueryStringValue($_GET["CCMStudentID"]);
		} else {
		  $bCopy = FALSE;
		}

		// Process form if post back
		if (@$_POST["a_add"] <> "") {
		   $CCMStudents->CurrentAction = $_POST["a_add"]; // Get form action
		  $this->GetUploadFiles(); // Get upload files
		  $this->LoadFormValues(); // Load form values

			// Validate form
			if (!$this->ValidateForm()) {
				$CCMStudents->CurrentAction = "I"; // Form error, reset action
				$this->setMessage($gsFormError);
			}
		} else { // Not post back
		  if ($bCopy) {
		    $CCMStudents->CurrentAction = "C"; // Copy record
		  } else {
		    $CCMStudents->CurrentAction = "I"; // Display blank record
		    $this->LoadDefaultValues(); // Load default values
		  }
		}

		// Perform action based on action code
		switch ($CCMStudents->CurrentAction) {
		  case "I": // Blank record, no action required
				break;
		  case "C": // Copy an existing record
		   if (!$this->LoadRow()) { // Load record based on key
		      $this->setMessage($Language->Phrase("NoRecord")); // No record found
		      $this->Page_Terminate("CCMStudentslist.php"); // No matching record, return to list
		    }
				break;
		  case "A": // ' Add new record
				$CCMStudents->SendEmail = TRUE; // Send email on add success
		    if ($this->AddRow()) { // Add successful
		      $this->setMessage($Language->Phrase("AddSuccess")); // Set up success message
					$sReturnUrl = $CCMStudents->getReturnUrl();
					if (ew_GetPageName($sReturnUrl) == "CCMStudentsview.php")
						$sReturnUrl = $CCMStudents->ViewUrl(); // View paging, return to view page with keyurl directly
					$this->Page_Terminate($sReturnUrl); // Clean up and return
		    } else {
		      $this->RestoreFormValues(); // Add failed, restore form values
		    }
		}

		// Render row based on row type
		$CCMStudents->RowType = EW_ROWTYPE_ADD;  // Render add type

		// Render row
		$this->RenderRow();
	}

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

		// Get upload data
			if ($CCMStudents->DisabilityCertificate->Upload->UploadFile()) {

				// No action required
			} else {
				echo $CCMStudents->DisabilityCertificate->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($CCMStudents->Payslip->Upload->UploadFile()) {

				// No action required
			} else {
				echo $CCMStudents->Payslip->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($CCMStudents->BankAccountProof->Upload->UploadFile()) {

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

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

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

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

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

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

				// No action required
			} else {
				echo $CCMStudents->MentorUndertaking->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($CCMStudents->CandUUndertaking->Upload->UploadFile()) {

				// No action required
			} else {
				echo $CCMStudents->CandUUndertaking->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($CCMStudents->CompanyCandidatePolicy->Upload->UploadFile()) {

				// No action required
			} else {
				echo $CCMStudents->CompanyCandidatePolicy->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($CCMStudents->ResidenceProof->Upload->UploadFile()) {

				// No action required
			} else {
				echo $CCMStudents->ResidenceProof->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($CCMStudents->SignedAppForm->Upload->UploadFile()) {

				// No action required
			} else {
				echo $CCMStudents->SignedAppForm->Upload->Message;
				$this->Page_Terminate();
				exit();
			}
			if ($CCMStudents->Photograph->Upload->UploadFile()) {

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

	// Load default values
	function LoadDefaultValues() {
		global $CCMStudents;
		$CCMStudents->Disability->CurrentValue = "N";
		$CCMStudents->DisabilityCertificate->CurrentValue = NULL; // Clear file related field
		$CCMStudents->Payslip->CurrentValue = NULL; // Clear file related field
		$CCMStudents->BankAccountProof->CurrentValue = NULL; // Clear file related field
		$CCMStudents->CWDTP->CurrentValue = "N";
		$CCMStudents->IDFile->CurrentValue = NULL; // Clear file related field
		$CCMStudents->CVFile->CurrentValue = NULL; // Clear file related field
		$CCMStudents->QualCertificate1->CurrentValue = NULL; // Clear file related field
		$CCMStudents->QualCertificate2->CurrentValue = NULL; // Clear file related field
		$CCMStudents->QualCertificate3->CurrentValue = NULL; // Clear file related field
		$CCMStudents->MentorUndertaking->CurrentValue = NULL; // Clear file related field
		$CCMStudents->CandUUndertaking->CurrentValue = NULL; // Clear file related field
		$CCMStudents->CompanyCandidatePolicy->CurrentValue = NULL; // Clear file related field
		$CCMStudents->ResidenceProof->CurrentValue = NULL; // Clear file related field
		$CCMStudents->SignedAppForm->CurrentValue = NULL; // Clear file related field
		$CCMStudents->Photograph->CurrentValue = NULL; // Clear file related field
		$CCMStudents->BlockAccess->CurrentValue = "n";
		$CCMStudents->Archived->CurrentValue = 0;
	}

	// Load form values
	function LoadFormValues() {

		// Load from form
		global $objForm, $CCMStudents;
		$CCMStudents->SelectionCategory->setFormValue($objForm->GetValue("x_SelectionCategory"));
		$CCMStudents->Title->setFormValue($objForm->GetValue("x_Title"));
		$CCMStudents->Initials->setFormValue($objForm->GetValue("x_Initials"));
		$CCMStudents->FirstName->setFormValue($objForm->GetValue("x_FirstName"));
		$CCMStudents->Surname->setFormValue($objForm->GetValue("x_Surname"));
		$CCMStudents->KnownAs->setFormValue($objForm->GetValue("x_KnownAs"));
		$CCMStudents->IDNumber->setFormValue($objForm->GetValue("x_IDNumber"));
		$CCMStudents->Telephone->setFormValue($objForm->GetValue("x_Telephone"));
		$CCMStudents->Cellphone->setFormValue($objForm->GetValue("x_Cellphone"));
		$CCMStudents->EmailAddress->setFormValue($objForm->GetValue("x_EmailAddress"));
		$CCMStudents->WorkAddress->setFormValue($objForm->GetValue("x_WorkAddress"));
		$CCMStudents->PostalAddress->setFormValue($objForm->GetValue("x_PostalAddress"));
		$CCMStudents->Department->setFormValue($objForm->GetValue("x_Department"));
		$CCMStudents->Organisation->setFormValue($objForm->GetValue("x_Organisation"));
		$CCMStudents->VATNo->setFormValue($objForm->GetValue("x_VATNo"));
		$CCMStudents->JobTitle->setFormValue($objForm->GetValue("x_JobTitle"));
		$CCMStudents->DateofBirth->setFormValue($objForm->GetValue("x_DateofBirth"));
		$CCMStudents->DateofBirth->CurrentValue = ew_UnFormatDateTime($CCMStudents->DateofBirth->CurrentValue, 5);
		$CCMStudents->PlaceofBirth->setFormValue($objForm->GetValue("x_PlaceofBirth"));
		$CCMStudents->CountryofBirth->setFormValue($objForm->GetValue("x_CountryofBirth"));
		$CCMStudents->Province->setFormValue($objForm->GetValue("x_Province"));
		$CCMStudents->MaleorFemale->setFormValue($objForm->GetValue("x_MaleorFemale"));
		$CCMStudents->RaceGroup->setFormValue($objForm->GetValue("x_RaceGroup"));
		$CCMStudents->Disability->setFormValue($objForm->GetValue("x_Disability"));
		$CCMStudents->DisabilityNature->setFormValue($objForm->GetValue("x_DisabilityNature"));
		$CCMStudents->ProfessionalCouncil->setFormValue($objForm->GetValue("x_ProfessionalCouncil"));
		$CCMStudents->CategoryReg->setFormValue($objForm->GetValue("x_CategoryReg"));
		$CCMStudents->CouncilRegNumber->setFormValue($objForm->GetValue("x_CouncilRegNumber"));
		$CCMStudents->LengthCandidateReg->setFormValue($objForm->GetValue("x_LengthCandidateReg"));
		$CCMStudents->YearsToProfReg->setFormValue($objForm->GetValue("x_YearsToProfReg"));
		$CCMStudents->FirstJobStart->setFormValue($objForm->GetValue("x_FirstJobStart"));
		$CCMStudents->VolAssociations->setFormValue($objForm->GetValue("x_VolAssociations"));
		$CCMStudents->BelongsTo->setFormValue($objForm->GetValue("x_BelongsTo"));
		$CCMStudents->CESA_SABTACO_MemNum->setFormValue($objForm->GetValue("x_CESA_SABTACO_MemNum"));
		$CCMStudents->AreaDiscipline->setFormValue($objForm->GetValue("x_AreaDiscipline"));
		$CCMStudents->AreaSubDiscipline->setFormValue($objForm->GetValue("x_AreaSubDiscipline"));
		$CCMStudents->Salary->setFormValue($objForm->GetValue("x_Salary"));
		$CCMStudents->BankAccountName->setFormValue($objForm->GetValue("x_BankAccountName"));
		$CCMStudents->BankAccountBank->setFormValue($objForm->GetValue("x_BankAccountBank"));
		$CCMStudents->BankAccountBranch->setFormValue($objForm->GetValue("x_BankAccountBranch"));
		$CCMStudents->BankAccountNo->setFormValue($objForm->GetValue("x_BankAccountNo"));
		$CCMStudents->Funding->setFormValue($objForm->GetValue("x_Funding"));
		$CCMStudents->CWDTP->setFormValue($objForm->GetValue("x_CWDTP"));
		$CCMStudents->BookedByName->setFormValue($objForm->GetValue("x_BookedByName"));
		$CCMStudents->BookedByDesignation->setFormValue($objForm->GetValue("x_BookedByDesignation"));
		$CCMStudents->BookedByTelNo->setFormValue($objForm->GetValue("x_BookedByTelNo"));
		$CCMStudents->BookedByFaxNo->setFormValue($objForm->GetValue("x_BookedByFaxNo"));
		$CCMStudents->BookedByCellNo->setFormValue($objForm->GetValue("x_BookedByCellNo"));
		$CCMStudents->BookedByEmail->setFormValue($objForm->GetValue("x_BookedByEmail"));
		$CCMStudents->MentorID->setFormValue($objForm->GetValue("x_MentorID"));
		$CCMStudents->EmployerID->setFormValue($objForm->GetValue("x_EmployerID"));
		$CCMStudents->HRManagerName->setFormValue($objForm->GetValue("x_HRManagerName"));
		$CCMStudents->HRManagerDesignation->setFormValue($objForm->GetValue("x_HRManagerDesignation"));
		$CCMStudents->HRManagerTelNo->setFormValue($objForm->GetValue("x_HRManagerTelNo"));
		$CCMStudents->HRManagerCellNo->setFormValue($objForm->GetValue("x_HRManagerCellNo"));
		$CCMStudents->HRManagerEmail->setFormValue($objForm->GetValue("x_HRManagerEmail"));
		$CCMStudents->SupervisorName->setFormValue($objForm->GetValue("x_SupervisorName"));
		$CCMStudents->SupervisorDesig->setFormValue($objForm->GetValue("x_SupervisorDesig"));
		$CCMStudents->SupervisorProfRegNo->setFormValue($objForm->GetValue("x_SupervisorProfRegNo"));
		$CCMStudents->SupervisorTelNo->setFormValue($objForm->GetValue("x_SupervisorTelNo"));
		$CCMStudents->SupervisorCellNo->setFormValue($objForm->GetValue("x_SupervisorCellNo"));
		$CCMStudents->SupervisorEmail->setFormValue($objForm->GetValue("x_SupervisorEmail"));
		$CCMStudents->EducationalInst->setFormValue($objForm->GetValue("x_EducationalInst"));
		$CCMStudents->Qualifications->setFormValue($objForm->GetValue("x_Qualifications"));
		$CCMStudents->DateFinalExam->setFormValue($objForm->GetValue("x_DateFinalExam"));
		$CCMStudents->StudentNumber->setFormValue($objForm->GetValue("x_StudentNumber"));
		$CCMStudents->WebUsername->setFormValue($objForm->GetValue("x_WebUsername"));
		$CCMStudents->WebPassword->setFormValue($objForm->GetValue("x_WebPassword"));
		$CCMStudents->BlockAccess->setFormValue($objForm->GetValue("x_BlockAccess"));
		$CCMStudents->Archived->setFormValue($objForm->GetValue("x_Archived"));
		$CCMStudents->CCMStudentID->setFormValue($objForm->GetValue("x_CCMStudentID"));
	}

	// Restore form values
	function RestoreFormValues() {
		global $objForm, $CCMStudents;
		$CCMStudents->CCMStudentID->CurrentValue = $CCMStudents->CCMStudentID->FormValue;
		$CCMStudents->SelectionCategory->CurrentValue = $CCMStudents->SelectionCategory->FormValue;
		$CCMStudents->Title->CurrentValue = $CCMStudents->Title->FormValue;
		$CCMStudents->Initials->CurrentValue = $CCMStudents->Initials->FormValue;
		$CCMStudents->FirstName->CurrentValue = $CCMStudents->FirstName->FormValue;
		$CCMStudents->Surname->CurrentValue = $CCMStudents->Surname->FormValue;
		$CCMStudents->KnownAs->CurrentValue = $CCMStudents->KnownAs->FormValue;
		$CCMStudents->IDNumber->CurrentValue = $CCMStudents->IDNumber->FormValue;
		$CCMStudents->Telephone->CurrentValue = $CCMStudents->Telephone->FormValue;
		$CCMStudents->Cellphone->CurrentValue = $CCMStudents->Cellphone->FormValue;
		$CCMStudents->EmailAddress->CurrentValue = $CCMStudents->EmailAddress->FormValue;
		$CCMStudents->WorkAddress->CurrentValue = $CCMStudents->WorkAddress->FormValue;
		$CCMStudents->PostalAddress->CurrentValue = $CCMStudents->PostalAddress->FormValue;
		$CCMStudents->Department->CurrentValue = $CCMStudents->Department->FormValue;
		$CCMStudents->Organisation->CurrentValue = $CCMStudents->Organisation->FormValue;
		$CCMStudents->VATNo->CurrentValue = $CCMStudents->VATNo->FormValue;
		$CCMStudents->JobTitle->CurrentValue = $CCMStudents->JobTitle->FormValue;
		$CCMStudents->DateofBirth->CurrentValue = $CCMStudents->DateofBirth->FormValue;
		$CCMStudents->DateofBirth->CurrentValue = ew_UnFormatDateTime($CCMStudents->DateofBirth->CurrentValue, 5);
		$CCMStudents->PlaceofBirth->CurrentValue = $CCMStudents->PlaceofBirth->FormValue;
		$CCMStudents->CountryofBirth->CurrentValue = $CCMStudents->CountryofBirth->FormValue;
		$CCMStudents->Province->CurrentValue = $CCMStudents->Province->FormValue;
		$CCMStudents->MaleorFemale->CurrentValue = $CCMStudents->MaleorFemale->FormValue;
		$CCMStudents->RaceGroup->CurrentValue = $CCMStudents->RaceGroup->FormValue;
		$CCMStudents->Disability->CurrentValue = $CCMStudents->Disability->FormValue;
		$CCMStudents->DisabilityNature->CurrentValue = $CCMStudents->DisabilityNature->FormValue;
		$CCMStudents->ProfessionalCouncil->CurrentValue = $CCMStudents->ProfessionalCouncil->FormValue;
		$CCMStudents->CategoryReg->CurrentValue = $CCMStudents->CategoryReg->FormValue;
		$CCMStudents->CouncilRegNumber->CurrentValue = $CCMStudents->CouncilRegNumber->FormValue;
		$CCMStudents->LengthCandidateReg->CurrentValue = $CCMStudents->LengthCandidateReg->FormValue;
		$CCMStudents->YearsToProfReg->CurrentValue = $CCMStudents->YearsToProfReg->FormValue;
		$CCMStudents->FirstJobStart->CurrentValue = $CCMStudents->FirstJobStart->FormValue;
		$CCMStudents->VolAssociations->CurrentValue = $CCMStudents->VolAssociations->FormValue;
		$CCMStudents->BelongsTo->CurrentValue = $CCMStudents->BelongsTo->FormValue;
		$CCMStudents->CESA_SABTACO_MemNum->CurrentValue = $CCMStudents->CESA_SABTACO_MemNum->FormValue;
		$CCMStudents->AreaDiscipline->CurrentValue = $CCMStudents->AreaDiscipline->FormValue;
		$CCMStudents->AreaSubDiscipline->CurrentValue = $CCMStudents->AreaSubDiscipline->FormValue;
		$CCMStudents->Salary->CurrentValue = $CCMStudents->Salary->FormValue;
		$CCMStudents->BankAccountName->CurrentValue = $CCMStudents->BankAccountName->FormValue;
		$CCMStudents->BankAccountBank->CurrentValue = $CCMStudents->BankAccountBank->FormValue;
		$CCMStudents->BankAccountBranch->CurrentValue = $CCMStudents->BankAccountBranch->FormValue;
		$CCMStudents->BankAccountNo->CurrentValue = $CCMStudents->BankAccountNo->FormValue;
		$CCMStudents->Funding->CurrentValue = $CCMStudents->Funding->FormValue;
		$CCMStudents->CWDTP->CurrentValue = $CCMStudents->CWDTP->FormValue;
		$CCMStudents->BookedByName->CurrentValue = $CCMStudents->BookedByName->FormValue;
		$CCMStudents->BookedByDesignation->CurrentValue = $CCMStudents->BookedByDesignation->FormValue;
		$CCMStudents->BookedByTelNo->CurrentValue = $CCMStudents->BookedByTelNo->FormValue;
		$CCMStudents->BookedByFaxNo->CurrentValue = $CCMStudents->BookedByFaxNo->FormValue;
		$CCMStudents->BookedByCellNo->CurrentValue = $CCMStudents->BookedByCellNo->FormValue;
		$CCMStudents->BookedByEmail->CurrentValue = $CCMStudents->BookedByEmail->FormValue;
		$CCMStudents->MentorID->CurrentValue = $CCMStudents->MentorID->FormValue;
		$CCMStudents->EmployerID->CurrentValue = $CCMStudents->EmployerID->FormValue;
		$CCMStudents->HRManagerName->CurrentValue = $CCMStudents->HRManagerName->FormValue;
		$CCMStudents->HRManagerDesignation->CurrentValue = $CCMStudents->HRManagerDesignation->FormValue;
		$CCMStudents->HRManagerTelNo->CurrentValue = $CCMStudents->HRManagerTelNo->FormValue;
		$CCMStudents->HRManagerCellNo->CurrentValue = $CCMStudents->HRManagerCellNo->FormValue;
		$CCMStudents->HRManagerEmail->CurrentValue = $CCMStudents->HRManagerEmail->FormValue;
		$CCMStudents->SupervisorName->CurrentValue = $CCMStudents->SupervisorName->FormValue;
		$CCMStudents->SupervisorDesig->CurrentValue = $CCMStudents->SupervisorDesig->FormValue;
		$CCMStudents->SupervisorProfRegNo->CurrentValue = $CCMStudents->SupervisorProfRegNo->FormValue;
		$CCMStudents->SupervisorTelNo->CurrentValue = $CCMStudents->SupervisorTelNo->FormValue;
		$CCMStudents->SupervisorCellNo->CurrentValue = $CCMStudents->SupervisorCellNo->FormValue;
		$CCMStudents->SupervisorEmail->CurrentValue = $CCMStudents->SupervisorEmail->FormValue;
		$CCMStudents->EducationalInst->CurrentValue = $CCMStudents->EducationalInst->FormValue;
		$CCMStudents->Qualifications->CurrentValue = $CCMStudents->Qualifications->FormValue;
		$CCMStudents->DateFinalExam->CurrentValue = $CCMStudents->DateFinalExam->FormValue;
		$CCMStudents->StudentNumber->CurrentValue = $CCMStudents->StudentNumber->FormValue;
		$CCMStudents->WebUsername->CurrentValue = $CCMStudents->WebUsername->FormValue;
		$CCMStudents->WebPassword->CurrentValue = $CCMStudents->WebPassword->FormValue;
		$CCMStudents->BlockAccess->CurrentValue = $CCMStudents->BlockAccess->FormValue;
		$CCMStudents->Archived->CurrentValue = $CCMStudents->Archived->FormValue;
	}

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

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

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

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

	// Load row values from recordset
	function LoadRowValues(&$rs) {
		global $conn, $CCMStudents;
		$CCMStudents->CCMStudentID->setDbValue($rs->fields('CCMStudentID'));
		$CCMStudents->SelectionCategory->setDbValue($rs->fields('SelectionCategory'));
		$CCMStudents->Title->setDbValue($rs->fields('Title'));
		$CCMStudents->Initials->setDbValue($rs->fields('Initials'));
		$CCMStudents->FirstName->setDbValue($rs->fields('FirstName'));
		$CCMStudents->Surname->setDbValue($rs->fields('Surname'));
		$CCMStudents->KnownAs->setDbValue($rs->fields('KnownAs'));
		$CCMStudents->IDNumber->setDbValue($rs->fields('IDNumber'));
		$CCMStudents->Telephone->setDbValue($rs->fields('Telephone'));
		$CCMStudents->Cellphone->setDbValue($rs->fields('Cellphone'));
		$CCMStudents->EmailAddress->setDbValue($rs->fields('EmailAddress'));
		$CCMStudents->WorkAddress->setDbValue($rs->fields('WorkAddress'));
		$CCMStudents->PostalAddress->setDbValue($rs->fields('PostalAddress'));
		$CCMStudents->Department->setDbValue($rs->fields('Department'));
		$CCMStudents->Organisation->setDbValue($rs->fields('Organisation'));
		$CCMStudents->VATNo->setDbValue($rs->fields('VATNo'));
		$CCMStudents->JobTitle->setDbValue($rs->fields('JobTitle'));
		$CCMStudents->DateofBirth->setDbValue($rs->fields('DateofBirth'));
		$CCMStudents->PlaceofBirth->setDbValue($rs->fields('PlaceofBirth'));
		$CCMStudents->CountryofBirth->setDbValue($rs->fields('CountryofBirth'));
		$CCMStudents->Province->setDbValue($rs->fields('Province'));
		$CCMStudents->MaleorFemale->setDbValue($rs->fields('MaleorFemale'));
		$CCMStudents->RaceGroup->setDbValue($rs->fields('RaceGroup'));
		$CCMStudents->Disability->setDbValue($rs->fields('Disability'));
		$CCMStudents->DisabilityNature->setDbValue($rs->fields('DisabilityNature'));
		$CCMStudents->DisabilityCertificate->Upload->DbValue = $rs->fields('DisabilityCertificate');
		$CCMStudents->ProfessionalCouncil->setDbValue($rs->fields('ProfessionalCouncil'));
		$CCMStudents->CategoryReg->setDbValue($rs->fields('CategoryReg'));
		$CCMStudents->CouncilRegNumber->setDbValue($rs->fields('CouncilRegNumber'));
		$CCMStudents->LengthCandidateReg->setDbValue($rs->fields('LengthCandidateReg'));
		$CCMStudents->YearsToProfReg->setDbValue($rs->fields('YearsToProfReg'));
		$CCMStudents->FirstJobStart->setDbValue($rs->fields('FirstJobStart'));
		$CCMStudents->VolAssociations->setDbValue($rs->fields('VolAssociations'));
		$CCMStudents->BelongsTo->setDbValue($rs->fields('BelongsTo'));
		$CCMStudents->CESA_SABTACO_MemNum->setDbValue($rs->fields('CESA_SABTACO_MemNum'));
		$CCMStudents->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
		$CCMStudents->AreaSubDiscipline->setDbValue($rs->fields('AreaSubDiscipline'));
		$CCMStudents->Salary->setDbValue($rs->fields('Salary'));
		$CCMStudents->Payslip->Upload->DbValue = $rs->fields('Payslip');
		$CCMStudents->BankAccountName->setDbValue($rs->fields('BankAccountName'));
		$CCMStudents->BankAccountBank->setDbValue($rs->fields('BankAccountBank'));
		$CCMStudents->BankAccountBranch->setDbValue($rs->fields('BankAccountBranch'));
		$CCMStudents->BankAccountNo->setDbValue($rs->fields('BankAccountNo'));
		$CCMStudents->BankAccountProof->Upload->DbValue = $rs->fields('BankAccountProof');
		$CCMStudents->Funding->setDbValue($rs->fields('Funding'));
		$CCMStudents->CWDTP->setDbValue($rs->fields('CWDTP'));
		$CCMStudents->BookedByName->setDbValue($rs->fields('BookedByName'));
		$CCMStudents->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
		$CCMStudents->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
		$CCMStudents->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
		$CCMStudents->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
		$CCMStudents->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
		$CCMStudents->MentorID->setDbValue($rs->fields('MentorID'));
		$CCMStudents->MentorName->setDbValue($rs->fields('MentorName'));
		$CCMStudents->MentorDesig->setDbValue($rs->fields('MentorDesig'));
		$CCMStudents->MentorProfRegNo->setDbValue($rs->fields('MentorProfRegNo'));
		$CCMStudents->MentorRegNo->setDbValue($rs->fields('MentorRegNo'));
		$CCMStudents->MentorTel->setDbValue($rs->fields('MentorTel'));
		$CCMStudents->MentorCell->setDbValue($rs->fields('MentorCell'));
		$CCMStudents->MentorEmail->setDbValue($rs->fields('MentorEmail'));
		$CCMStudents->EmployerID->setDbValue($rs->fields('EmployerID'));
		$CCMStudents->HRManagerName->setDbValue($rs->fields('HRManagerName'));
		$CCMStudents->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
		$CCMStudents->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
		$CCMStudents->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
		$CCMStudents->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
		$CCMStudents->SupervisorName->setDbValue($rs->fields('SupervisorName'));
		$CCMStudents->SupervisorDesig->setDbValue($rs->fields('SupervisorDesig'));
		$CCMStudents->SupervisorProfRegNo->setDbValue($rs->fields('SupervisorProfRegNo'));
		$CCMStudents->SupervisorTelNo->setDbValue($rs->fields('SupervisorTelNo'));
		$CCMStudents->SupervisorCellNo->setDbValue($rs->fields('SupervisorCellNo'));
		$CCMStudents->SupervisorEmail->setDbValue($rs->fields('SupervisorEmail'));
		$CCMStudents->EducationalInst->setDbValue($rs->fields('EducationalInst'));
		$CCMStudents->Qualifications->setDbValue($rs->fields('Qualifications'));
		$CCMStudents->DateFinalExam->setDbValue($rs->fields('DateFinalExam'));
		$CCMStudents->IDFile->Upload->DbValue = $rs->fields('IDFile');
		$CCMStudents->CVFile->Upload->DbValue = $rs->fields('CVFile');
		$CCMStudents->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
		$CCMStudents->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
		$CCMStudents->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
		$CCMStudents->MentorUndertaking->Upload->DbValue = $rs->fields('MentorUndertaking');
		$CCMStudents->CandUUndertaking->Upload->DbValue = $rs->fields('CandUUndertaking');
		$CCMStudents->CompanyCandidatePolicy->Upload->DbValue = $rs->fields('CompanyCandidatePolicy');
		$CCMStudents->ResidenceProof->Upload->DbValue = $rs->fields('ResidenceProof');
		$CCMStudents->SignedAppForm->Upload->DbValue = $rs->fields('SignedAppForm');
		$CCMStudents->Photograph->Upload->DbValue = $rs->fields('Photograph');
		$CCMStudents->StudentNumber->setDbValue($rs->fields('StudentNumber'));
		$CCMStudents->WebUsername->setDbValue($rs->fields('WebUsername'));
		$CCMStudents->WebPassword->setDbValue($rs->fields('WebPassword'));
		$CCMStudents->BlockAccess->setDbValue($rs->fields('BlockAccess'));
		$CCMStudents->SABTACO->setDbValue($rs->fields('SABTACO'));
		$CCMStudents->CESA->setDbValue($rs->fields('CESA'));
		$CCMStudents->Archived->setDbValue($rs->fields('Archived'));
	}

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

		// Initialize URLs
		// Call Row_Rendering event

		$CCMStudents->Row_Rendering();

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

		$CCMStudents->SelectionCategory->CellCssStyle = ""; $CCMStudents->SelectionCategory->CellCssClass = "";
		$CCMStudents->SelectionCategory->CellAttrs = array(); $CCMStudents->SelectionCategory->ViewAttrs = array(); $CCMStudents->SelectionCategory->EditAttrs = array();

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

		// Initials
		$CCMStudents->Initials->CellCssStyle = ""; $CCMStudents->Initials->CellCssClass = "";
		$CCMStudents->Initials->CellAttrs = array(); $CCMStudents->Initials->ViewAttrs = array(); $CCMStudents->Initials->EditAttrs = array();

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

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

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

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

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

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

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

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

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

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

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

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

		// JobTitle
		$CCMStudents->JobTitle->CellCssStyle = ""; $CCMStudents->JobTitle->CellCssClass = "";
		$CCMStudents->JobTitle->CellAttrs = array(); $CCMStudents->JobTitle->ViewAttrs = array(); $CCMStudents->JobTitle->EditAttrs = array();

		// DateofBirth
		$CCMStudents->DateofBirth->CellCssStyle = ""; $CCMStudents->DateofBirth->CellCssClass = "";
		$CCMStudents->DateofBirth->CellAttrs = array(); $CCMStudents->DateofBirth->ViewAttrs = array(); $CCMStudents->DateofBirth->EditAttrs = array();

		// PlaceofBirth
		$CCMStudents->PlaceofBirth->CellCssStyle = ""; $CCMStudents->PlaceofBirth->CellCssClass = "";
		$CCMStudents->PlaceofBirth->CellAttrs = array(); $CCMStudents->PlaceofBirth->ViewAttrs = array(); $CCMStudents->PlaceofBirth->EditAttrs = array();

		// CountryofBirth
		$CCMStudents->CountryofBirth->CellCssStyle = ""; $CCMStudents->CountryofBirth->CellCssClass = "";
		$CCMStudents->CountryofBirth->CellAttrs = array(); $CCMStudents->CountryofBirth->ViewAttrs = array(); $CCMStudents->CountryofBirth->EditAttrs = array();

		// Province
		$CCMStudents->Province->CellCssStyle = ""; $CCMStudents->Province->CellCssClass = "";
		$CCMStudents->Province->CellAttrs = array(); $CCMStudents->Province->ViewAttrs = array(); $CCMStudents->Province->EditAttrs = array();

		// MaleorFemale
		$CCMStudents->MaleorFemale->CellCssStyle = ""; $CCMStudents->MaleorFemale->CellCssClass = "";
		$CCMStudents->MaleorFemale->CellAttrs = array(); $CCMStudents->MaleorFemale->ViewAttrs = array(); $CCMStudents->MaleorFemale->EditAttrs = array();

		// RaceGroup
		$CCMStudents->RaceGroup->CellCssStyle = ""; $CCMStudents->RaceGroup->CellCssClass = "";
		$CCMStudents->RaceGroup->CellAttrs = array(); $CCMStudents->RaceGroup->ViewAttrs = array(); $CCMStudents->RaceGroup->EditAttrs = array();

		// Disability
		$CCMStudents->Disability->CellCssStyle = ""; $CCMStudents->Disability->CellCssClass = "";
		$CCMStudents->Disability->CellAttrs = array(); $CCMStudents->Disability->ViewAttrs = array(); $CCMStudents->Disability->EditAttrs = array();

		// DisabilityNature
		$CCMStudents->DisabilityNature->CellCssStyle = ""; $CCMStudents->DisabilityNature->CellCssClass = "";
		$CCMStudents->DisabilityNature->CellAttrs = array(); $CCMStudents->DisabilityNature->ViewAttrs = array(); $CCMStudents->DisabilityNature->EditAttrs = array();

		// DisabilityCertificate
		$CCMStudents->DisabilityCertificate->CellCssStyle = ""; $CCMStudents->DisabilityCertificate->CellCssClass = "";
		$CCMStudents->DisabilityCertificate->CellAttrs = array(); $CCMStudents->DisabilityCertificate->ViewAttrs = array(); $CCMStudents->DisabilityCertificate->EditAttrs = array();

		// ProfessionalCouncil
		$CCMStudents->ProfessionalCouncil->CellCssStyle = ""; $CCMStudents->ProfessionalCouncil->CellCssClass = "";
		$CCMStudents->ProfessionalCouncil->CellAttrs = array(); $CCMStudents->ProfessionalCouncil->ViewAttrs = array(); $CCMStudents->ProfessionalCouncil->EditAttrs = array();

		// CategoryReg
		$CCMStudents->CategoryReg->CellCssStyle = ""; $CCMStudents->CategoryReg->CellCssClass = "";
		$CCMStudents->CategoryReg->CellAttrs = array(); $CCMStudents->CategoryReg->ViewAttrs = array(); $CCMStudents->CategoryReg->EditAttrs = array();

		// CouncilRegNumber
		$CCMStudents->CouncilRegNumber->CellCssStyle = ""; $CCMStudents->CouncilRegNumber->CellCssClass = "";
		$CCMStudents->CouncilRegNumber->CellAttrs = array(); $CCMStudents->CouncilRegNumber->ViewAttrs = array(); $CCMStudents->CouncilRegNumber->EditAttrs = array();

		// LengthCandidateReg
		$CCMStudents->LengthCandidateReg->CellCssStyle = ""; $CCMStudents->LengthCandidateReg->CellCssClass = "";
		$CCMStudents->LengthCandidateReg->CellAttrs = array(); $CCMStudents->LengthCandidateReg->ViewAttrs = array(); $CCMStudents->LengthCandidateReg->EditAttrs = array();

		// YearsToProfReg
		$CCMStudents->YearsToProfReg->CellCssStyle = ""; $CCMStudents->YearsToProfReg->CellCssClass = "";
		$CCMStudents->YearsToProfReg->CellAttrs = array(); $CCMStudents->YearsToProfReg->ViewAttrs = array(); $CCMStudents->YearsToProfReg->EditAttrs = array();

		// FirstJobStart
		$CCMStudents->FirstJobStart->CellCssStyle = ""; $CCMStudents->FirstJobStart->CellCssClass = "";
		$CCMStudents->FirstJobStart->CellAttrs = array(); $CCMStudents->FirstJobStart->ViewAttrs = array(); $CCMStudents->FirstJobStart->EditAttrs = array();

		// VolAssociations
		$CCMStudents->VolAssociations->CellCssStyle = ""; $CCMStudents->VolAssociations->CellCssClass = "";
		$CCMStudents->VolAssociations->CellAttrs = array(); $CCMStudents->VolAssociations->ViewAttrs = array(); $CCMStudents->VolAssociations->EditAttrs = array();

		// BelongsTo
		$CCMStudents->BelongsTo->CellCssStyle = ""; $CCMStudents->BelongsTo->CellCssClass = "";
		$CCMStudents->BelongsTo->CellAttrs = array(); $CCMStudents->BelongsTo->ViewAttrs = array(); $CCMStudents->BelongsTo->EditAttrs = array();

		// CESA_SABTACO_MemNum
		$CCMStudents->CESA_SABTACO_MemNum->CellCssStyle = ""; $CCMStudents->CESA_SABTACO_MemNum->CellCssClass = "";
		$CCMStudents->CESA_SABTACO_MemNum->CellAttrs = array(); $CCMStudents->CESA_SABTACO_MemNum->ViewAttrs = array(); $CCMStudents->CESA_SABTACO_MemNum->EditAttrs = array();

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

		// AreaSubDiscipline
		$CCMStudents->AreaSubDiscipline->CellCssStyle = ""; $CCMStudents->AreaSubDiscipline->CellCssClass = "";
		$CCMStudents->AreaSubDiscipline->CellAttrs = array(); $CCMStudents->AreaSubDiscipline->ViewAttrs = array(); $CCMStudents->AreaSubDiscipline->EditAttrs = array();

		// Salary
		$CCMStudents->Salary->CellCssStyle = ""; $CCMStudents->Salary->CellCssClass = "";
		$CCMStudents->Salary->CellAttrs = array(); $CCMStudents->Salary->ViewAttrs = array(); $CCMStudents->Salary->EditAttrs = array();

		// Payslip
		$CCMStudents->Payslip->CellCssStyle = ""; $CCMStudents->Payslip->CellCssClass = "";
		$CCMStudents->Payslip->CellAttrs = array(); $CCMStudents->Payslip->ViewAttrs = array(); $CCMStudents->Payslip->EditAttrs = array();

		// BankAccountName
		$CCMStudents->BankAccountName->CellCssStyle = ""; $CCMStudents->BankAccountName->CellCssClass = "";
		$CCMStudents->BankAccountName->CellAttrs = array(); $CCMStudents->BankAccountName->ViewAttrs = array(); $CCMStudents->BankAccountName->EditAttrs = array();

		// BankAccountBank
		$CCMStudents->BankAccountBank->CellCssStyle = ""; $CCMStudents->BankAccountBank->CellCssClass = "";
		$CCMStudents->BankAccountBank->CellAttrs = array(); $CCMStudents->BankAccountBank->ViewAttrs = array(); $CCMStudents->BankAccountBank->EditAttrs = array();

		// BankAccountBranch
		$CCMStudents->BankAccountBranch->CellCssStyle = ""; $CCMStudents->BankAccountBranch->CellCssClass = "";
		$CCMStudents->BankAccountBranch->CellAttrs = array(); $CCMStudents->BankAccountBranch->ViewAttrs = array(); $CCMStudents->BankAccountBranch->EditAttrs = array();

		// BankAccountNo
		$CCMStudents->BankAccountNo->CellCssStyle = ""; $CCMStudents->BankAccountNo->CellCssClass = "";
		$CCMStudents->BankAccountNo->CellAttrs = array(); $CCMStudents->BankAccountNo->ViewAttrs = array(); $CCMStudents->BankAccountNo->EditAttrs = array();

		// BankAccountProof
		$CCMStudents->BankAccountProof->CellCssStyle = ""; $CCMStudents->BankAccountProof->CellCssClass = "";
		$CCMStudents->BankAccountProof->CellAttrs = array(); $CCMStudents->BankAccountProof->ViewAttrs = array(); $CCMStudents->BankAccountProof->EditAttrs = array();

		// Funding
		$CCMStudents->Funding->CellCssStyle = ""; $CCMStudents->Funding->CellCssClass = "";
		$CCMStudents->Funding->CellAttrs = array(); $CCMStudents->Funding->ViewAttrs = array(); $CCMStudents->Funding->EditAttrs = array();

		// CWDTP
		$CCMStudents->CWDTP->CellCssStyle = ""; $CCMStudents->CWDTP->CellCssClass = "";
		$CCMStudents->CWDTP->CellAttrs = array(); $CCMStudents->CWDTP->ViewAttrs = array(); $CCMStudents->CWDTP->EditAttrs = array();

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

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

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

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

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

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

		// MentorID
		$CCMStudents->MentorID->CellCssStyle = ""; $CCMStudents->MentorID->CellCssClass = "";
		$CCMStudents->MentorID->CellAttrs = array(); $CCMStudents->MentorID->ViewAttrs = array(); $CCMStudents->MentorID->EditAttrs = array();

		// EmployerID
		$CCMStudents->EmployerID->CellCssStyle = ""; $CCMStudents->EmployerID->CellCssClass = "";
		$CCMStudents->EmployerID->CellAttrs = array(); $CCMStudents->EmployerID->ViewAttrs = array(); $CCMStudents->EmployerID->EditAttrs = array();

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

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

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

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

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

		// SupervisorName
		$CCMStudents->SupervisorName->CellCssStyle = ""; $CCMStudents->SupervisorName->CellCssClass = "";
		$CCMStudents->SupervisorName->CellAttrs = array(); $CCMStudents->SupervisorName->ViewAttrs = array(); $CCMStudents->SupervisorName->EditAttrs = array();

		// SupervisorDesig
		$CCMStudents->SupervisorDesig->CellCssStyle = ""; $CCMStudents->SupervisorDesig->CellCssClass = "";
		$CCMStudents->SupervisorDesig->CellAttrs = array(); $CCMStudents->SupervisorDesig->ViewAttrs = array(); $CCMStudents->SupervisorDesig->EditAttrs = array();

		// SupervisorProfRegNo
		$CCMStudents->SupervisorProfRegNo->CellCssStyle = ""; $CCMStudents->SupervisorProfRegNo->CellCssClass = "";
		$CCMStudents->SupervisorProfRegNo->CellAttrs = array(); $CCMStudents->SupervisorProfRegNo->ViewAttrs = array(); $CCMStudents->SupervisorProfRegNo->EditAttrs = array();

		// SupervisorTelNo
		$CCMStudents->SupervisorTelNo->CellCssStyle = ""; $CCMStudents->SupervisorTelNo->CellCssClass = "";
		$CCMStudents->SupervisorTelNo->CellAttrs = array(); $CCMStudents->SupervisorTelNo->ViewAttrs = array(); $CCMStudents->SupervisorTelNo->EditAttrs = array();

		// SupervisorCellNo
		$CCMStudents->SupervisorCellNo->CellCssStyle = ""; $CCMStudents->SupervisorCellNo->CellCssClass = "";
		$CCMStudents->SupervisorCellNo->CellAttrs = array(); $CCMStudents->SupervisorCellNo->ViewAttrs = array(); $CCMStudents->SupervisorCellNo->EditAttrs = array();

		// SupervisorEmail
		$CCMStudents->SupervisorEmail->CellCssStyle = ""; $CCMStudents->SupervisorEmail->CellCssClass = "";
		$CCMStudents->SupervisorEmail->CellAttrs = array(); $CCMStudents->SupervisorEmail->ViewAttrs = array(); $CCMStudents->SupervisorEmail->EditAttrs = array();

		// EducationalInst
		$CCMStudents->EducationalInst->CellCssStyle = ""; $CCMStudents->EducationalInst->CellCssClass = "";
		$CCMStudents->EducationalInst->CellAttrs = array(); $CCMStudents->EducationalInst->ViewAttrs = array(); $CCMStudents->EducationalInst->EditAttrs = array();

		// Qualifications
		$CCMStudents->Qualifications->CellCssStyle = ""; $CCMStudents->Qualifications->CellCssClass = "";
		$CCMStudents->Qualifications->CellAttrs = array(); $CCMStudents->Qualifications->ViewAttrs = array(); $CCMStudents->Qualifications->EditAttrs = array();

		// DateFinalExam
		$CCMStudents->DateFinalExam->CellCssStyle = ""; $CCMStudents->DateFinalExam->CellCssClass = "";
		$CCMStudents->DateFinalExam->CellAttrs = array(); $CCMStudents->DateFinalExam->ViewAttrs = array(); $CCMStudents->DateFinalExam->EditAttrs = array();

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

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

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

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

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

		// MentorUndertaking
		$CCMStudents->MentorUndertaking->CellCssStyle = ""; $CCMStudents->MentorUndertaking->CellCssClass = "";
		$CCMStudents->MentorUndertaking->CellAttrs = array(); $CCMStudents->MentorUndertaking->ViewAttrs = array(); $CCMStudents->MentorUndertaking->EditAttrs = array();

		// CandUUndertaking
		$CCMStudents->CandUUndertaking->CellCssStyle = ""; $CCMStudents->CandUUndertaking->CellCssClass = "";
		$CCMStudents->CandUUndertaking->CellAttrs = array(); $CCMStudents->CandUUndertaking->ViewAttrs = array(); $CCMStudents->CandUUndertaking->EditAttrs = array();

		// CompanyCandidatePolicy
		$CCMStudents->CompanyCandidatePolicy->CellCssStyle = ""; $CCMStudents->CompanyCandidatePolicy->CellCssClass = "";
		$CCMStudents->CompanyCandidatePolicy->CellAttrs = array(); $CCMStudents->CompanyCandidatePolicy->ViewAttrs = array(); $CCMStudents->CompanyCandidatePolicy->EditAttrs = array();

		// ResidenceProof
		$CCMStudents->ResidenceProof->CellCssStyle = ""; $CCMStudents->ResidenceProof->CellCssClass = "";
		$CCMStudents->ResidenceProof->CellAttrs = array(); $CCMStudents->ResidenceProof->ViewAttrs = array(); $CCMStudents->ResidenceProof->EditAttrs = array();

		// SignedAppForm
		$CCMStudents->SignedAppForm->CellCssStyle = ""; $CCMStudents->SignedAppForm->CellCssClass = "";
		$CCMStudents->SignedAppForm->CellAttrs = array(); $CCMStudents->SignedAppForm->ViewAttrs = array(); $CCMStudents->SignedAppForm->EditAttrs = array();

		// Photograph
		$CCMStudents->Photograph->CellCssStyle = ""; $CCMStudents->Photograph->CellCssClass = "";
		$CCMStudents->Photograph->CellAttrs = array(); $CCMStudents->Photograph->ViewAttrs = array(); $CCMStudents->Photograph->EditAttrs = array();

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

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

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

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

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

			// SelectionCategory
			$CCMStudents->SelectionCategory->ViewValue = $CCMStudents->SelectionCategory->CurrentValue;
			$CCMStudents->SelectionCategory->CssStyle = "";
			$CCMStudents->SelectionCategory->CssClass = "";
			$CCMStudents->SelectionCategory->ViewCustomAttributes = "";

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

			// Initials
			$CCMStudents->Initials->ViewValue = $CCMStudents->Initials->CurrentValue;
			$CCMStudents->Initials->CssStyle = "";
			$CCMStudents->Initials->CssClass = "";
			$CCMStudents->Initials->ViewCustomAttributes = "";

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

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

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

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

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

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

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

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

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

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

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

			// VATNo
			$CCMStudents->VATNo->ViewValue = $CCMStudents->VATNo->CurrentValue;
			$CCMStudents->VATNo->CssStyle = "";
			$CCMStudents->VATNo->CssClass = "";
			$CCMStudents->VATNo->ViewCustomAttributes = "";

			// JobTitle
			$CCMStudents->JobTitle->ViewValue = $CCMStudents->JobTitle->CurrentValue;
			$CCMStudents->JobTitle->CssStyle = "";
			$CCMStudents->JobTitle->CssClass = "";
			$CCMStudents->JobTitle->ViewCustomAttributes = "";

			// DateofBirth
			$CCMStudents->DateofBirth->ViewValue = $CCMStudents->DateofBirth->CurrentValue;
			$CCMStudents->DateofBirth->ViewValue = ew_FormatDateTime($CCMStudents->DateofBirth->ViewValue, 5);
			$CCMStudents->DateofBirth->CssStyle = "";
			$CCMStudents->DateofBirth->CssClass = "";
			$CCMStudents->DateofBirth->ViewCustomAttributes = "";

			// PlaceofBirth
			$CCMStudents->PlaceofBirth->ViewValue = $CCMStudents->PlaceofBirth->CurrentValue;
			$CCMStudents->PlaceofBirth->CssStyle = "";
			$CCMStudents->PlaceofBirth->CssClass = "";
			$CCMStudents->PlaceofBirth->ViewCustomAttributes = "";

			// CountryofBirth
			$CCMStudents->CountryofBirth->ViewValue = $CCMStudents->CountryofBirth->CurrentValue;
			$CCMStudents->CountryofBirth->CssStyle = "";
			$CCMStudents->CountryofBirth->CssClass = "";
			$CCMStudents->CountryofBirth->ViewCustomAttributes = "";

			// Province
			if (strval($CCMStudents->Province->CurrentValue) <> "") {
				$sFilterWrk = "`LookupValue` = '" . ew_AdjustSql($CCMStudents->Province->CurrentValue) . "'";
			$sSqlWrk = "SELECT `LookupValue` FROM `Lookups`";
			$sWhereWrk = "";
			if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
			$sWhereWrk .= "(" . "LookupName='Province'" . ")";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `LookupValue`";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$CCMStudents->Province->ViewValue = $rswrk->fields('LookupValue');
					$rswrk->Close();
				} else {
					$CCMStudents->Province->ViewValue = $CCMStudents->Province->CurrentValue;
				}
			} else {
				$CCMStudents->Province->ViewValue = NULL;
			}
			$CCMStudents->Province->CssStyle = "";
			$CCMStudents->Province->CssClass = "";
			$CCMStudents->Province->ViewCustomAttributes = "";

			// MaleorFemale
			$CCMStudents->MaleorFemale->ViewValue = $CCMStudents->MaleorFemale->CurrentValue;
			$CCMStudents->MaleorFemale->CssStyle = "";
			$CCMStudents->MaleorFemale->CssClass = "";
			$CCMStudents->MaleorFemale->ViewCustomAttributes = "";

			// RaceGroup
			$CCMStudents->RaceGroup->ViewValue = $CCMStudents->RaceGroup->CurrentValue;
			$CCMStudents->RaceGroup->CssStyle = "";
			$CCMStudents->RaceGroup->CssClass = "";
			$CCMStudents->RaceGroup->ViewCustomAttributes = "";

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

			// DisabilityNature
			$CCMStudents->DisabilityNature->ViewValue = $CCMStudents->DisabilityNature->CurrentValue;
			$CCMStudents->DisabilityNature->CssStyle = "";
			$CCMStudents->DisabilityNature->CssClass = "";
			$CCMStudents->DisabilityNature->ViewCustomAttributes = "";

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

			// ProfessionalCouncil
			$CCMStudents->ProfessionalCouncil->ViewValue = $CCMStudents->ProfessionalCouncil->CurrentValue;
			$CCMStudents->ProfessionalCouncil->CssStyle = "";
			$CCMStudents->ProfessionalCouncil->CssClass = "";
			$CCMStudents->ProfessionalCouncil->ViewCustomAttributes = "";

			// CategoryReg
			$CCMStudents->CategoryReg->ViewValue = $CCMStudents->CategoryReg->CurrentValue;
			$CCMStudents->CategoryReg->CssStyle = "";
			$CCMStudents->CategoryReg->CssClass = "";
			$CCMStudents->CategoryReg->ViewCustomAttributes = "";

			// CouncilRegNumber
			$CCMStudents->CouncilRegNumber->ViewValue = $CCMStudents->CouncilRegNumber->CurrentValue;
			$CCMStudents->CouncilRegNumber->CssStyle = "";
			$CCMStudents->CouncilRegNumber->CssClass = "";
			$CCMStudents->CouncilRegNumber->ViewCustomAttributes = "";

			// LengthCandidateReg
			$CCMStudents->LengthCandidateReg->ViewValue = $CCMStudents->LengthCandidateReg->CurrentValue;
			$CCMStudents->LengthCandidateReg->CssStyle = "";
			$CCMStudents->LengthCandidateReg->CssClass = "";
			$CCMStudents->LengthCandidateReg->ViewCustomAttributes = "";

			// YearsToProfReg
			$CCMStudents->YearsToProfReg->ViewValue = $CCMStudents->YearsToProfReg->CurrentValue;
			$CCMStudents->YearsToProfReg->CssStyle = "";
			$CCMStudents->YearsToProfReg->CssClass = "";
			$CCMStudents->YearsToProfReg->ViewCustomAttributes = "";

			// FirstJobStart
			$CCMStudents->FirstJobStart->ViewValue = $CCMStudents->FirstJobStart->CurrentValue;
			$CCMStudents->FirstJobStart->CssStyle = "";
			$CCMStudents->FirstJobStart->CssClass = "";
			$CCMStudents->FirstJobStart->ViewCustomAttributes = "";

			// VolAssociations
			$CCMStudents->VolAssociations->ViewValue = $CCMStudents->VolAssociations->CurrentValue;
			$CCMStudents->VolAssociations->CssStyle = "";
			$CCMStudents->VolAssociations->CssClass = "";
			$CCMStudents->VolAssociations->ViewCustomAttributes = "";

			// BelongsTo
			$CCMStudents->BelongsTo->ViewValue = $CCMStudents->BelongsTo->CurrentValue;
			$CCMStudents->BelongsTo->CssStyle = "";
			$CCMStudents->BelongsTo->CssClass = "";
			$CCMStudents->BelongsTo->ViewCustomAttributes = "";

			// CESA_SABTACO_MemNum
			$CCMStudents->CESA_SABTACO_MemNum->ViewValue = $CCMStudents->CESA_SABTACO_MemNum->CurrentValue;
			$CCMStudents->CESA_SABTACO_MemNum->CssStyle = "";
			$CCMStudents->CESA_SABTACO_MemNum->CssClass = "";
			$CCMStudents->CESA_SABTACO_MemNum->ViewCustomAttributes = "";

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

			// AreaSubDiscipline
			$CCMStudents->AreaSubDiscipline->ViewValue = $CCMStudents->AreaSubDiscipline->CurrentValue;
			$CCMStudents->AreaSubDiscipline->CssStyle = "";
			$CCMStudents->AreaSubDiscipline->CssClass = "";
			$CCMStudents->AreaSubDiscipline->ViewCustomAttributes = "";

			// Salary
			$CCMStudents->Salary->ViewValue = $CCMStudents->Salary->CurrentValue;
			$CCMStudents->Salary->CssStyle = "";
			$CCMStudents->Salary->CssClass = "";
			$CCMStudents->Salary->ViewCustomAttributes = "";

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

			// BankAccountName
			$CCMStudents->BankAccountName->ViewValue = $CCMStudents->BankAccountName->CurrentValue;
			$CCMStudents->BankAccountName->CssStyle = "";
			$CCMStudents->BankAccountName->CssClass = "";
			$CCMStudents->BankAccountName->ViewCustomAttributes = "";

			// BankAccountBank
			$CCMStudents->BankAccountBank->ViewValue = $CCMStudents->BankAccountBank->CurrentValue;
			$CCMStudents->BankAccountBank->CssStyle = "";
			$CCMStudents->BankAccountBank->CssClass = "";
			$CCMStudents->BankAccountBank->ViewCustomAttributes = "";

			// BankAccountBranch
			$CCMStudents->BankAccountBranch->ViewValue = $CCMStudents->BankAccountBranch->CurrentValue;
			$CCMStudents->BankAccountBranch->CssStyle = "";
			$CCMStudents->BankAccountBranch->CssClass = "";
			$CCMStudents->BankAccountBranch->ViewCustomAttributes = "";

			// BankAccountNo
			$CCMStudents->BankAccountNo->ViewValue = $CCMStudents->BankAccountNo->CurrentValue;
			$CCMStudents->BankAccountNo->CssStyle = "";
			$CCMStudents->BankAccountNo->CssClass = "";
			$CCMStudents->BankAccountNo->ViewCustomAttributes = "";

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

			// Funding
			$CCMStudents->Funding->ViewValue = $CCMStudents->Funding->CurrentValue;
			$CCMStudents->Funding->CssStyle = "";
			$CCMStudents->Funding->CssClass = "";
			$CCMStudents->Funding->ViewCustomAttributes = "";

			// CWDTP
			$CCMStudents->CWDTP->ViewValue = $CCMStudents->CWDTP->CurrentValue;
			$CCMStudents->CWDTP->CssStyle = "";
			$CCMStudents->CWDTP->CssClass = "";
			$CCMStudents->CWDTP->ViewCustomAttributes = "";

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

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

			// BookedByTelNo
			$CCMStudents->BookedByTelNo->ViewValue = $CCMStudents->BookedByTelNo->CurrentValue;
			$CCMStudents->BookedByTelNo->CssStyle = "";
			$CCMStudents->BookedByTelNo->CssClass = "";
			$CCMStudents->BookedByTelNo->ViewCustomAttributes = "";

			// BookedByFaxNo
			$CCMStudents->BookedByFaxNo->ViewValue = $CCMStudents->BookedByFaxNo->CurrentValue;
			$CCMStudents->BookedByFaxNo->CssStyle = "";
			$CCMStudents->BookedByFaxNo->CssClass = "";
			$CCMStudents->BookedByFaxNo->ViewCustomAttributes = "";

			// BookedByCellNo
			$CCMStudents->BookedByCellNo->ViewValue = $CCMStudents->BookedByCellNo->CurrentValue;
			$CCMStudents->BookedByCellNo->CssStyle = "";
			$CCMStudents->BookedByCellNo->CssClass = "";
			$CCMStudents->BookedByCellNo->ViewCustomAttributes = "";

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

			// MentorID
			if (strval($CCMStudents->MentorID->CurrentValue) <> "") {
				$sFilterWrk = "`CCMMentorID` = " . ew_AdjustSql($CCMStudents->MentorID->CurrentValue) . "";
			$sSqlWrk = "SELECT `Surname`, `FirstName` FROM `CCMMentors`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `FirstName`";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$CCMStudents->MentorID->ViewValue = $rswrk->fields('Surname');
					$CCMStudents->MentorID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('FirstName');
					$rswrk->Close();
				} else {
					$CCMStudents->MentorID->ViewValue = $CCMStudents->MentorID->CurrentValue;
				}
			} else {
				$CCMStudents->MentorID->ViewValue = NULL;
			}
			$CCMStudents->MentorID->CssStyle = "";
			$CCMStudents->MentorID->CssClass = "";
			$CCMStudents->MentorID->ViewCustomAttributes = "";

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

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

			// MentorProfRegNo
			$CCMStudents->MentorProfRegNo->ViewValue = $CCMStudents->MentorProfRegNo->CurrentValue;
			$CCMStudents->MentorProfRegNo->CssStyle = "";
			$CCMStudents->MentorProfRegNo->CssClass = "";
			$CCMStudents->MentorProfRegNo->ViewCustomAttributes = "";

			// MentorRegNo
			$CCMStudents->MentorRegNo->ViewValue = $CCMStudents->MentorRegNo->CurrentValue;
			$CCMStudents->MentorRegNo->CssStyle = "";
			$CCMStudents->MentorRegNo->CssClass = "";
			$CCMStudents->MentorRegNo->ViewCustomAttributes = "";

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

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

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

			// EmployerID
			if (strval($CCMStudents->EmployerID->CurrentValue) <> "") {
				$sFilterWrk = "`CCMEmployerID` = " . ew_AdjustSql($CCMStudents->EmployerID->CurrentValue) . "";
			$sSqlWrk = "SELECT `Organisation`, `Surname` FROM `CCMEmployers`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `Organisation`";
				$rswrk = $conn->Execute($sSqlWrk);
				if ($rswrk && !$rswrk->EOF) { // Lookup values found
					$CCMStudents->EmployerID->ViewValue = $rswrk->fields('Organisation');
					$CCMStudents->EmployerID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('Surname');
					$rswrk->Close();
				} else {
					$CCMStudents->EmployerID->ViewValue = $CCMStudents->EmployerID->CurrentValue;
				}
			} else {
				$CCMStudents->EmployerID->ViewValue = NULL;
			}
			$CCMStudents->EmployerID->CssStyle = "";
			$CCMStudents->EmployerID->CssClass = "";
			$CCMStudents->EmployerID->ViewCustomAttributes = "";

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

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

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

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

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

			// SupervisorName
			$CCMStudents->SupervisorName->ViewValue = $CCMStudents->SupervisorName->CurrentValue;
			$CCMStudents->SupervisorName->CssStyle = "";
			$CCMStudents->SupervisorName->CssClass = "";
			$CCMStudents->SupervisorName->ViewCustomAttributes = "";

			// SupervisorDesig
			$CCMStudents->SupervisorDesig->ViewValue = $CCMStudents->SupervisorDesig->CurrentValue;
			$CCMStudents->SupervisorDesig->CssStyle = "";
			$CCMStudents->SupervisorDesig->CssClass = "";
			$CCMStudents->SupervisorDesig->ViewCustomAttributes = "";

			// SupervisorProfRegNo
			$CCMStudents->SupervisorProfRegNo->ViewValue = $CCMStudents->SupervisorProfRegNo->CurrentValue;
			$CCMStudents->SupervisorProfRegNo->CssStyle = "";
			$CCMStudents->SupervisorProfRegNo->CssClass = "";
			$CCMStudents->SupervisorProfRegNo->ViewCustomAttributes = "";

			// SupervisorTelNo
			$CCMStudents->SupervisorTelNo->ViewValue = $CCMStudents->SupervisorTelNo->CurrentValue;
			$CCMStudents->SupervisorTelNo->CssStyle = "";
			$CCMStudents->SupervisorTelNo->CssClass = "";
			$CCMStudents->SupervisorTelNo->ViewCustomAttributes = "";

			// SupervisorCellNo
			$CCMStudents->SupervisorCellNo->ViewValue = $CCMStudents->SupervisorCellNo->CurrentValue;
			$CCMStudents->SupervisorCellNo->CssStyle = "";
			$CCMStudents->SupervisorCellNo->CssClass = "";
			$CCMStudents->SupervisorCellNo->ViewCustomAttributes = "";

			// SupervisorEmail
			$CCMStudents->SupervisorEmail->ViewValue = $CCMStudents->SupervisorEmail->CurrentValue;
			$CCMStudents->SupervisorEmail->CssStyle = "";
			$CCMStudents->SupervisorEmail->CssClass = "";
			$CCMStudents->SupervisorEmail->ViewCustomAttributes = "";

			// EducationalInst
			$CCMStudents->EducationalInst->ViewValue = $CCMStudents->EducationalInst->CurrentValue;
			$CCMStudents->EducationalInst->CssStyle = "";
			$CCMStudents->EducationalInst->CssClass = "";
			$CCMStudents->EducationalInst->ViewCustomAttributes = "";

			// Qualifications
			$CCMStudents->Qualifications->ViewValue = $CCMStudents->Qualifications->CurrentValue;
			$CCMStudents->Qualifications->CssStyle = "";
			$CCMStudents->Qualifications->CssClass = "";
			$CCMStudents->Qualifications->ViewCustomAttributes = "";

			// DateFinalExam
			$CCMStudents->DateFinalExam->ViewValue = $CCMStudents->DateFinalExam->CurrentValue;
			$CCMStudents->DateFinalExam->CssStyle = "";
			$CCMStudents->DateFinalExam->CssClass = "";
			$CCMStudents->DateFinalExam->ViewCustomAttributes = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// SABTACO
			$CCMStudents->SABTACO->ViewValue = $CCMStudents->SABTACO->CurrentValue;
			$CCMStudents->SABTACO->CssStyle = "";
			$CCMStudents->SABTACO->CssClass = "";
			$CCMStudents->SABTACO->ViewCustomAttributes = "";

			// CESA
			$CCMStudents->CESA->ViewValue = $CCMStudents->CESA->CurrentValue;
			$CCMStudents->CESA->CssStyle = "";
			$CCMStudents->CESA->CssClass = "";
			$CCMStudents->CESA->ViewCustomAttributes = "";

			// Archived
			if (strval($CCMStudents->Archived->CurrentValue) <> "") {
				switch ($CCMStudents->Archived->CurrentValue) {
					case "1":
						$CCMStudents->Archived->ViewValue = "Yes";
						break;
					case "0":
						$CCMStudents->Archived->ViewValue = "No";
						break;
					default:
						$CCMStudents->Archived->ViewValue = $CCMStudents->Archived->CurrentValue;
				}
			} else {
				$CCMStudents->Archived->ViewValue = NULL;
			}
			$CCMStudents->Archived->CssStyle = "";
			$CCMStudents->Archived->CssClass = "";
			$CCMStudents->Archived->ViewCustomAttributes = "";

			// SelectionCategory
			$CCMStudents->SelectionCategory->HrefValue = "";
			$CCMStudents->SelectionCategory->TooltipValue = "";

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

			// Initials
			$CCMStudents->Initials->HrefValue = "";
			$CCMStudents->Initials->TooltipValue = "";

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

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

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

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

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

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

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

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

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

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

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

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

			// JobTitle
			$CCMStudents->JobTitle->HrefValue = "";
			$CCMStudents->JobTitle->TooltipValue = "";

			// DateofBirth
			$CCMStudents->DateofBirth->HrefValue = "";
			$CCMStudents->DateofBirth->TooltipValue = "";

			// PlaceofBirth
			$CCMStudents->PlaceofBirth->HrefValue = "";
			$CCMStudents->PlaceofBirth->TooltipValue = "";

			// CountryofBirth
			$CCMStudents->CountryofBirth->HrefValue = "";
			$CCMStudents->CountryofBirth->TooltipValue = "";

			// Province
			$CCMStudents->Province->HrefValue = "";
			$CCMStudents->Province->TooltipValue = "";

			// MaleorFemale
			$CCMStudents->MaleorFemale->HrefValue = "";
			$CCMStudents->MaleorFemale->TooltipValue = "";

			// RaceGroup
			$CCMStudents->RaceGroup->HrefValue = "";
			$CCMStudents->RaceGroup->TooltipValue = "";

			// Disability
			$CCMStudents->Disability->HrefValue = "";
			$CCMStudents->Disability->TooltipValue = "";

			// DisabilityNature
			$CCMStudents->DisabilityNature->HrefValue = "";
			$CCMStudents->DisabilityNature->TooltipValue = "";

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

			// ProfessionalCouncil
			$CCMStudents->ProfessionalCouncil->HrefValue = "";
			$CCMStudents->ProfessionalCouncil->TooltipValue = "";

			// CategoryReg
			$CCMStudents->CategoryReg->HrefValue = "";
			$CCMStudents->CategoryReg->TooltipValue = "";

			// CouncilRegNumber
			$CCMStudents->CouncilRegNumber->HrefValue = "";
			$CCMStudents->CouncilRegNumber->TooltipValue = "";

			// LengthCandidateReg
			$CCMStudents->LengthCandidateReg->HrefValue = "";
			$CCMStudents->LengthCandidateReg->TooltipValue = "";

			// YearsToProfReg
			$CCMStudents->YearsToProfReg->HrefValue = "";
			$CCMStudents->YearsToProfReg->TooltipValue = "";

			// FirstJobStart
			$CCMStudents->FirstJobStart->HrefValue = "";
			$CCMStudents->FirstJobStart->TooltipValue = "";

			// VolAssociations
			$CCMStudents->VolAssociations->HrefValue = "";
			$CCMStudents->VolAssociations->TooltipValue = "";

			// BelongsTo
			$CCMStudents->BelongsTo->HrefValue = "";
			$CCMStudents->BelongsTo->TooltipValue = "";

			// CESA_SABTACO_MemNum
			$CCMStudents->CESA_SABTACO_MemNum->HrefValue = "";
			$CCMStudents->CESA_SABTACO_MemNum->TooltipValue = "";

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

			// AreaSubDiscipline
			$CCMStudents->AreaSubDiscipline->HrefValue = "";
			$CCMStudents->AreaSubDiscipline->TooltipValue = "";

			// Salary
			$CCMStudents->Salary->HrefValue = "";
			$CCMStudents->Salary->TooltipValue = "";

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

			// BankAccountName
			$CCMStudents->BankAccountName->HrefValue = "";
			$CCMStudents->BankAccountName->TooltipValue = "";

			// BankAccountBank
			$CCMStudents->BankAccountBank->HrefValue = "";
			$CCMStudents->BankAccountBank->TooltipValue = "";

			// BankAccountBranch
			$CCMStudents->BankAccountBranch->HrefValue = "";
			$CCMStudents->BankAccountBranch->TooltipValue = "";

			// BankAccountNo
			$CCMStudents->BankAccountNo->HrefValue = "";
			$CCMStudents->BankAccountNo->TooltipValue = "";

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

			// Funding
			$CCMStudents->Funding->HrefValue = "";
			$CCMStudents->Funding->TooltipValue = "";

			// CWDTP
			$CCMStudents->CWDTP->HrefValue = "";
			$CCMStudents->CWDTP->TooltipValue = "";

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

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

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

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

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

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

			// MentorID
			$CCMStudents->MentorID->HrefValue = "";
			$CCMStudents->MentorID->TooltipValue = "";

			// EmployerID
			$CCMStudents->EmployerID->HrefValue = "";
			$CCMStudents->EmployerID->TooltipValue = "";

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

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

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

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

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

			// SupervisorName
			$CCMStudents->SupervisorName->HrefValue = "";
			$CCMStudents->SupervisorName->TooltipValue = "";

			// SupervisorDesig
			$CCMStudents->SupervisorDesig->HrefValue = "";
			$CCMStudents->SupervisorDesig->TooltipValue = "";

			// SupervisorProfRegNo
			$CCMStudents->SupervisorProfRegNo->HrefValue = "";
			$CCMStudents->SupervisorProfRegNo->TooltipValue = "";

			// SupervisorTelNo
			$CCMStudents->SupervisorTelNo->HrefValue = "";
			$CCMStudents->SupervisorTelNo->TooltipValue = "";

			// SupervisorCellNo
			$CCMStudents->SupervisorCellNo->HrefValue = "";
			$CCMStudents->SupervisorCellNo->TooltipValue = "";

			// SupervisorEmail
			$CCMStudents->SupervisorEmail->HrefValue = "";
			$CCMStudents->SupervisorEmail->TooltipValue = "";

			// EducationalInst
			$CCMStudents->EducationalInst->HrefValue = "";
			$CCMStudents->EducationalInst->TooltipValue = "";

			// Qualifications
			$CCMStudents->Qualifications->HrefValue = "";
			$CCMStudents->Qualifications->TooltipValue = "";

			// DateFinalExam
			$CCMStudents->DateFinalExam->HrefValue = "";
			$CCMStudents->DateFinalExam->TooltipValue = "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// Archived
			$CCMStudents->Archived->HrefValue = "";
			$CCMStudents->Archived->TooltipValue = "";
		} elseif ($CCMStudents->RowType == EW_ROWTYPE_ADD) { // Add row

			// SelectionCategory
			$CCMStudents->SelectionCategory->EditCustomAttributes = "";
			$CCMStudents->SelectionCategory->EditValue = ew_HtmlEncode($CCMStudents->SelectionCategory->CurrentValue);

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

			// Initials
			$CCMStudents->Initials->EditCustomAttributes = "";
			$CCMStudents->Initials->EditValue = ew_HtmlEncode($CCMStudents->Initials->CurrentValue);

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

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

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

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

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

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

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

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

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

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

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

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

			// JobTitle
			$CCMStudents->JobTitle->EditCustomAttributes = "";
			$CCMStudents->JobTitle->EditValue = ew_HtmlEncode($CCMStudents->JobTitle->CurrentValue);

			// DateofBirth
			$CCMStudents->DateofBirth->EditCustomAttributes = "";
			$CCMStudents->DateofBirth->EditValue = ew_HtmlEncode(ew_FormatDateTime($CCMStudents->DateofBirth->CurrentValue, 5));

			// PlaceofBirth
			$CCMStudents->PlaceofBirth->EditCustomAttributes = "";
			$CCMStudents->PlaceofBirth->EditValue = ew_HtmlEncode($CCMStudents->PlaceofBirth->CurrentValue);

			// CountryofBirth
			$CCMStudents->CountryofBirth->EditCustomAttributes = "";
			$CCMStudents->CountryofBirth->EditValue = ew_HtmlEncode($CCMStudents->CountryofBirth->CurrentValue);

			// Province
			$CCMStudents->Province->EditCustomAttributes = "";
				$sFilterWrk = "";
			$sSqlWrk = "SELECT `LookupValue`, `LookupValue`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `Lookups`";
			$sWhereWrk = "";
			if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
			$sWhereWrk .= "(" . "LookupName='Province'" . ")";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `LookupValue`";
			$rswrk = $conn->Execute($sSqlWrk);
			$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
			if ($rswrk) $rswrk->Close();
			array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
			$CCMStudents->Province->EditValue = $arwrk;

			// MaleorFemale
			$CCMStudents->MaleorFemale->EditCustomAttributes = "";
			$CCMStudents->MaleorFemale->EditValue = ew_HtmlEncode($CCMStudents->MaleorFemale->CurrentValue);

			// RaceGroup
			$CCMStudents->RaceGroup->EditCustomAttributes = "";
			$CCMStudents->RaceGroup->EditValue = ew_HtmlEncode($CCMStudents->RaceGroup->CurrentValue);

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

			// DisabilityNature
			$CCMStudents->DisabilityNature->EditCustomAttributes = "";
			$CCMStudents->DisabilityNature->EditValue = ew_HtmlEncode($CCMStudents->DisabilityNature->CurrentValue);

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

			// ProfessionalCouncil
			$CCMStudents->ProfessionalCouncil->EditCustomAttributes = "";
			$CCMStudents->ProfessionalCouncil->EditValue = ew_HtmlEncode($CCMStudents->ProfessionalCouncil->CurrentValue);

			// CategoryReg
			$CCMStudents->CategoryReg->EditCustomAttributes = "";
			$CCMStudents->CategoryReg->EditValue = ew_HtmlEncode($CCMStudents->CategoryReg->CurrentValue);

			// CouncilRegNumber
			$CCMStudents->CouncilRegNumber->EditCustomAttributes = "";
			$CCMStudents->CouncilRegNumber->EditValue = ew_HtmlEncode($CCMStudents->CouncilRegNumber->CurrentValue);

			// LengthCandidateReg
			$CCMStudents->LengthCandidateReg->EditCustomAttributes = "";
			$CCMStudents->LengthCandidateReg->EditValue = ew_HtmlEncode($CCMStudents->LengthCandidateReg->CurrentValue);

			// YearsToProfReg
			$CCMStudents->YearsToProfReg->EditCustomAttributes = "";
			$CCMStudents->YearsToProfReg->EditValue = ew_HtmlEncode($CCMStudents->YearsToProfReg->CurrentValue);

			// FirstJobStart
			$CCMStudents->FirstJobStart->EditCustomAttributes = "";
			$CCMStudents->FirstJobStart->EditValue = ew_HtmlEncode($CCMStudents->FirstJobStart->CurrentValue);

			// VolAssociations
			$CCMStudents->VolAssociations->EditCustomAttributes = "";
			$CCMStudents->VolAssociations->EditValue = ew_HtmlEncode($CCMStudents->VolAssociations->CurrentValue);

			// BelongsTo
			$CCMStudents->BelongsTo->EditCustomAttributes = "";
			$CCMStudents->BelongsTo->EditValue = ew_HtmlEncode($CCMStudents->BelongsTo->CurrentValue);

			// CESA_SABTACO_MemNum
			$CCMStudents->CESA_SABTACO_MemNum->EditCustomAttributes = "";
			$CCMStudents->CESA_SABTACO_MemNum->EditValue = ew_HtmlEncode($CCMStudents->CESA_SABTACO_MemNum->CurrentValue);

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

			// AreaSubDiscipline
			$CCMStudents->AreaSubDiscipline->EditCustomAttributes = "";
			$CCMStudents->AreaSubDiscipline->EditValue = ew_HtmlEncode($CCMStudents->AreaSubDiscipline->CurrentValue);

			// Salary
			$CCMStudents->Salary->EditCustomAttributes = "";
			$CCMStudents->Salary->EditValue = ew_HtmlEncode($CCMStudents->Salary->CurrentValue);

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

			// BankAccountName
			$CCMStudents->BankAccountName->EditCustomAttributes = "";
			$CCMStudents->BankAccountName->EditValue = ew_HtmlEncode($CCMStudents->BankAccountName->CurrentValue);

			// BankAccountBank
			$CCMStudents->BankAccountBank->EditCustomAttributes = "";
			$CCMStudents->BankAccountBank->EditValue = ew_HtmlEncode($CCMStudents->BankAccountBank->CurrentValue);

			// BankAccountBranch
			$CCMStudents->BankAccountBranch->EditCustomAttributes = "";
			$CCMStudents->BankAccountBranch->EditValue = ew_HtmlEncode($CCMStudents->BankAccountBranch->CurrentValue);

			// BankAccountNo
			$CCMStudents->BankAccountNo->EditCustomAttributes = "";
			$CCMStudents->BankAccountNo->EditValue = ew_HtmlEncode($CCMStudents->BankAccountNo->CurrentValue);

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

			// Funding
			$CCMStudents->Funding->EditCustomAttributes = "";
			$CCMStudents->Funding->EditValue = ew_HtmlEncode($CCMStudents->Funding->CurrentValue);

			// CWDTP
			$CCMStudents->CWDTP->EditCustomAttributes = "";
			$CCMStudents->CWDTP->EditValue = ew_HtmlEncode($CCMStudents->CWDTP->CurrentValue);

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

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

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

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

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

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

			// MentorID
			$CCMStudents->MentorID->EditCustomAttributes = "";
				$sFilterWrk = "";
			$sSqlWrk = "SELECT `CCMMentorID`, `Surname`, `FirstName`, '' AS SelectFilterFld FROM `CCMMentors`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `FirstName`";
			$rswrk = $conn->Execute($sSqlWrk);
			$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
			if ($rswrk) $rswrk->Close();
			array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), ""));
			$CCMStudents->MentorID->EditValue = $arwrk;

			// EmployerID
			$CCMStudents->EmployerID->EditCustomAttributes = "";
				$sFilterWrk = "";
			$sSqlWrk = "SELECT `CCMEmployerID`, `Organisation`, `Surname`, '' AS SelectFilterFld FROM `CCMEmployers`";
			$sWhereWrk = "";
			if ($sFilterWrk <> "") {
				if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
				$sWhereWrk .= "(" . $sFilterWrk . ")";
			}
			if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
			$sSqlWrk .= " ORDER BY `Organisation`";
			$rswrk = $conn->Execute($sSqlWrk);
			$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
			if ($rswrk) $rswrk->Close();
			array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), ""));
			$CCMStudents->EmployerID->EditValue = $arwrk;

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

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

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

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

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

			// SupervisorName
			$CCMStudents->SupervisorName->EditCustomAttributes = "";
			$CCMStudents->SupervisorName->EditValue = ew_HtmlEncode($CCMStudents->SupervisorName->CurrentValue);

			// SupervisorDesig
			$CCMStudents->SupervisorDesig->EditCustomAttributes = "";
			$CCMStudents->SupervisorDesig->EditValue = ew_HtmlEncode($CCMStudents->SupervisorDesig->CurrentValue);

			// SupervisorProfRegNo
			$CCMStudents->SupervisorProfRegNo->EditCustomAttributes = "";
			$CCMStudents->SupervisorProfRegNo->EditValue = ew_HtmlEncode($CCMStudents->SupervisorProfRegNo->CurrentValue);

			// SupervisorTelNo
			$CCMStudents->SupervisorTelNo->EditCustomAttributes = "";
			$CCMStudents->SupervisorTelNo->EditValue = ew_HtmlEncode($CCMStudents->SupervisorTelNo->CurrentValue);

			// SupervisorCellNo
			$CCMStudents->SupervisorCellNo->EditCustomAttributes = "";
			$CCMStudents->SupervisorCellNo->EditValue = ew_HtmlEncode($CCMStudents->SupervisorCellNo->CurrentValue);

			// SupervisorEmail
			$CCMStudents->SupervisorEmail->EditCustomAttributes = "";
			$CCMStudents->SupervisorEmail->EditValue = ew_HtmlEncode($CCMStudents->SupervisorEmail->CurrentValue);

			// EducationalInst
			$CCMStudents->EducationalInst->EditCustomAttributes = "";
			$CCMStudents->EducationalInst->EditValue = ew_HtmlEncode($CCMStudents->EducationalInst->CurrentValue);

			// Qualifications
			$CCMStudents->Qualifications->EditCustomAttributes = "";
			$CCMStudents->Qualifications->EditValue = ew_HtmlEncode($CCMStudents->Qualifications->CurrentValue);

			// DateFinalExam
			$CCMStudents->DateFinalExam->EditCustomAttributes = "";
			$CCMStudents->DateFinalExam->EditValue = ew_HtmlEncode($CCMStudents->DateFinalExam->CurrentValue);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

			// Archived
			$CCMStudents->Archived->EditCustomAttributes = "";
			$arwrk = array();
			$arwrk[] = array("1", "Yes");
			$arwrk[] = array("0", "No");
			$CCMStudents->Archived->EditValue = $arwrk;
		}

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

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

		// Initialize form error message
		$gsFormError = "";
		if (!ew_CheckFileType($CCMStudents->DisabilityCertificate->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->DisabilityCertificate->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->DisabilityCertificate->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->DisabilityCertificate->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->DisabilityCertificate->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->Payslip->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->Payslip->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->Payslip->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->Payslip->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->Payslip->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->BankAccountProof->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->BankAccountProof->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->BankAccountProof->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->BankAccountProof->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->BankAccountProof->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->IDFile->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->IDFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->IDFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->IDFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->IDFile->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->CVFile->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->CVFile->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->CVFile->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->CVFile->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->CVFile->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->QualCertificate1->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->QualCertificate1->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->QualCertificate1->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->QualCertificate1->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->QualCertificate1->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->QualCertificate2->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->QualCertificate2->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->QualCertificate2->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->QualCertificate2->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->QualCertificate2->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->QualCertificate3->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->QualCertificate3->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->QualCertificate3->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->QualCertificate3->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->QualCertificate3->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->MentorUndertaking->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->MentorUndertaking->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->MentorUndertaking->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->MentorUndertaking->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->MentorUndertaking->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->CandUUndertaking->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->CandUUndertaking->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->CandUUndertaking->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->CandUUndertaking->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->CandUUndertaking->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->CompanyCandidatePolicy->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->CompanyCandidatePolicy->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->CompanyCandidatePolicy->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->CompanyCandidatePolicy->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->CompanyCandidatePolicy->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->ResidenceProof->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->ResidenceProof->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->ResidenceProof->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->ResidenceProof->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->ResidenceProof->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->SignedAppForm->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->SignedAppForm->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->SignedAppForm->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->SignedAppForm->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->SignedAppForm->Upload->Error);
		}
		if (!ew_CheckFileType($CCMStudents->Photograph->Upload->FileName)) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("WrongFileType");
		}
		if ($CCMStudents->Photograph->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $CCMStudents->Photograph->Upload->FileSize > EW_MAX_FILE_SIZE) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize"));
		}
		if (in_array($CCMStudents->Photograph->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("PhpUploadErr" . $CCMStudents->Photograph->Upload->Error);
		}

		// Check if validation required
		if (!EW_SERVER_VALIDATE)
			return ($gsFormError == "");
		if (!is_null($CCMStudents->FirstName->FormValue) && $CCMStudents->FirstName->FormValue == "") {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $CCMStudents->FirstName->FldCaption();
		}
		if (!is_null($CCMStudents->Surname->FormValue) && $CCMStudents->Surname->FormValue == "") {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $CCMStudents->Surname->FldCaption();
		}
		if (!ew_CheckDate($CCMStudents->DateofBirth->FormValue)) {
			if ($gsFormError <> "") $gsFormError .= "<br>";
			$gsFormError .= $CCMStudents->DateofBirth->FldErrMsg();
		}

		// Return validate result
		$ValidateForm = ($gsFormError == "");

		// Call Form_CustomValidate event
		$sFormCustomError = "";
		$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
		if ($sFormCustomError <> "") {
			$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
			$gsFormError .= $sFormCustomError;
		}
		return $ValidateForm;
	}

	// Add record
	function AddRow() {
		global $conn, $Language, $Security, $CCMStudents;
		$rsnew = array();

		// SelectionCategory
		$CCMStudents->SelectionCategory->SetDbValueDef($rsnew, $CCMStudents->SelectionCategory->CurrentValue, NULL, FALSE);

		// Title
		$CCMStudents->Title->SetDbValueDef($rsnew, $CCMStudents->Title->CurrentValue, NULL, FALSE);

		// Initials
		$CCMStudents->Initials->SetDbValueDef($rsnew, $CCMStudents->Initials->CurrentValue, NULL, FALSE);

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

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

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

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

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

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

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

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

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

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

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

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

		// JobTitle
		$CCMStudents->JobTitle->SetDbValueDef($rsnew, $CCMStudents->JobTitle->CurrentValue, NULL, FALSE);

		// DateofBirth
		$CCMStudents->DateofBirth->SetDbValueDef($rsnew, ew_UnFormatDateTime($CCMStudents->DateofBirth->CurrentValue, 5, FALSE), NULL);

		// PlaceofBirth
		$CCMStudents->PlaceofBirth->SetDbValueDef($rsnew, $CCMStudents->PlaceofBirth->CurrentValue, NULL, FALSE);

		// CountryofBirth
		$CCMStudents->CountryofBirth->SetDbValueDef($rsnew, $CCMStudents->CountryofBirth->CurrentValue, NULL, FALSE);

		// Province
		$CCMStudents->Province->SetDbValueDef($rsnew, $CCMStudents->Province->CurrentValue, NULL, FALSE);

		// MaleorFemale
		$CCMStudents->MaleorFemale->SetDbValueDef($rsnew, $CCMStudents->MaleorFemale->CurrentValue, NULL, FALSE);

		// RaceGroup
		$CCMStudents->RaceGroup->SetDbValueDef($rsnew, $CCMStudents->RaceGroup->CurrentValue, NULL, FALSE);

		// Disability
		$CCMStudents->Disability->SetDbValueDef($rsnew, $CCMStudents->Disability->CurrentValue, "", TRUE);

		// DisabilityNature
		$CCMStudents->DisabilityNature->SetDbValueDef($rsnew, $CCMStudents->DisabilityNature->CurrentValue, NULL, FALSE);

		// DisabilityCertificate
		$CCMStudents->DisabilityCertificate->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->DisabilityCertificate->Upload->Value)) {
			$rsnew['DisabilityCertificate'] = NULL;
		} else {
			$rsnew['DisabilityCertificate'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->DisabilityCertificate->UploadPath), $CCMStudents->DisabilityCertificate->Upload->FileName);
		}

		// ProfessionalCouncil
		$CCMStudents->ProfessionalCouncil->SetDbValueDef($rsnew, $CCMStudents->ProfessionalCouncil->CurrentValue, NULL, FALSE);

		// CategoryReg
		$CCMStudents->CategoryReg->SetDbValueDef($rsnew, $CCMStudents->CategoryReg->CurrentValue, NULL, FALSE);

		// CouncilRegNumber
		$CCMStudents->CouncilRegNumber->SetDbValueDef($rsnew, $CCMStudents->CouncilRegNumber->CurrentValue, NULL, FALSE);

		// LengthCandidateReg
		$CCMStudents->LengthCandidateReg->SetDbValueDef($rsnew, $CCMStudents->LengthCandidateReg->CurrentValue, NULL, FALSE);

		// YearsToProfReg
		$CCMStudents->YearsToProfReg->SetDbValueDef($rsnew, $CCMStudents->YearsToProfReg->CurrentValue, NULL, FALSE);

		// FirstJobStart
		$CCMStudents->FirstJobStart->SetDbValueDef($rsnew, $CCMStudents->FirstJobStart->CurrentValue, NULL, FALSE);

		// VolAssociations
		$CCMStudents->VolAssociations->SetDbValueDef($rsnew, $CCMStudents->VolAssociations->CurrentValue, NULL, FALSE);

		// BelongsTo
		$CCMStudents->BelongsTo->SetDbValueDef($rsnew, $CCMStudents->BelongsTo->CurrentValue, NULL, FALSE);

		// CESA_SABTACO_MemNum
		$CCMStudents->CESA_SABTACO_MemNum->SetDbValueDef($rsnew, $CCMStudents->CESA_SABTACO_MemNum->CurrentValue, NULL, FALSE);

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

		// AreaSubDiscipline
		$CCMStudents->AreaSubDiscipline->SetDbValueDef($rsnew, $CCMStudents->AreaSubDiscipline->CurrentValue, NULL, FALSE);

		// Salary
		$CCMStudents->Salary->SetDbValueDef($rsnew, $CCMStudents->Salary->CurrentValue, NULL, FALSE);

		// Payslip
		$CCMStudents->Payslip->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->Payslip->Upload->Value)) {
			$rsnew['Payslip'] = NULL;
		} else {
			$rsnew['Payslip'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->Payslip->UploadPath), $CCMStudents->Payslip->Upload->FileName);
		}

		// BankAccountName
		$CCMStudents->BankAccountName->SetDbValueDef($rsnew, $CCMStudents->BankAccountName->CurrentValue, NULL, FALSE);

		// BankAccountBank
		$CCMStudents->BankAccountBank->SetDbValueDef($rsnew, $CCMStudents->BankAccountBank->CurrentValue, NULL, FALSE);

		// BankAccountBranch
		$CCMStudents->BankAccountBranch->SetDbValueDef($rsnew, $CCMStudents->BankAccountBranch->CurrentValue, NULL, FALSE);

		// BankAccountNo
		$CCMStudents->BankAccountNo->SetDbValueDef($rsnew, $CCMStudents->BankAccountNo->CurrentValue, NULL, FALSE);

		// BankAccountProof
		$CCMStudents->BankAccountProof->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->BankAccountProof->Upload->Value)) {
			$rsnew['BankAccountProof'] = NULL;
		} else {
			$rsnew['BankAccountProof'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->BankAccountProof->UploadPath), $CCMStudents->BankAccountProof->Upload->FileName);
		}

		// Funding
		$CCMStudents->Funding->SetDbValueDef($rsnew, $CCMStudents->Funding->CurrentValue, NULL, FALSE);

		// CWDTP
		$CCMStudents->CWDTP->SetDbValueDef($rsnew, $CCMStudents->CWDTP->CurrentValue, "", TRUE);

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

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

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

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

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

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

		// MentorID
		$CCMStudents->MentorID->SetDbValueDef($rsnew, $CCMStudents->MentorID->CurrentValue, NULL, FALSE);

		// EmployerID
		$CCMStudents->EmployerID->SetDbValueDef($rsnew, $CCMStudents->EmployerID->CurrentValue, NULL, FALSE);

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

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

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

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

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

		// SupervisorName
		$CCMStudents->SupervisorName->SetDbValueDef($rsnew, $CCMStudents->SupervisorName->CurrentValue, NULL, FALSE);

		// SupervisorDesig
		$CCMStudents->SupervisorDesig->SetDbValueDef($rsnew, $CCMStudents->SupervisorDesig->CurrentValue, NULL, FALSE);

		// SupervisorProfRegNo
		$CCMStudents->SupervisorProfRegNo->SetDbValueDef($rsnew, $CCMStudents->SupervisorProfRegNo->CurrentValue, NULL, FALSE);

		// SupervisorTelNo
		$CCMStudents->SupervisorTelNo->SetDbValueDef($rsnew, $CCMStudents->SupervisorTelNo->CurrentValue, NULL, FALSE);

		// SupervisorCellNo
		$CCMStudents->SupervisorCellNo->SetDbValueDef($rsnew, $CCMStudents->SupervisorCellNo->CurrentValue, NULL, FALSE);

		// SupervisorEmail
		$CCMStudents->SupervisorEmail->SetDbValueDef($rsnew, $CCMStudents->SupervisorEmail->CurrentValue, NULL, FALSE);

		// EducationalInst
		$CCMStudents->EducationalInst->SetDbValueDef($rsnew, $CCMStudents->EducationalInst->CurrentValue, NULL, FALSE);

		// Qualifications
		$CCMStudents->Qualifications->SetDbValueDef($rsnew, $CCMStudents->Qualifications->CurrentValue, NULL, FALSE);

		// DateFinalExam
		$CCMStudents->DateFinalExam->SetDbValueDef($rsnew, $CCMStudents->DateFinalExam->CurrentValue, NULL, FALSE);

		// IDFile
		$CCMStudents->IDFile->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->IDFile->Upload->Value)) {
			$rsnew['IDFile'] = NULL;
		} else {
			$rsnew['IDFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->IDFile->UploadPath), $CCMStudents->IDFile->Upload->FileName);
		}

		// CVFile
		$CCMStudents->CVFile->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->CVFile->Upload->Value)) {
			$rsnew['CVFile'] = NULL;
		} else {
			$rsnew['CVFile'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->CVFile->UploadPath), $CCMStudents->CVFile->Upload->FileName);
		}

		// QualCertificate1
		$CCMStudents->QualCertificate1->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->QualCertificate1->Upload->Value)) {
			$rsnew['QualCertificate1'] = NULL;
		} else {
			$rsnew['QualCertificate1'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->QualCertificate1->UploadPath), $CCMStudents->QualCertificate1->Upload->FileName);
		}

		// QualCertificate2
		$CCMStudents->QualCertificate2->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->QualCertificate2->Upload->Value)) {
			$rsnew['QualCertificate2'] = NULL;
		} else {
			$rsnew['QualCertificate2'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->QualCertificate2->UploadPath), $CCMStudents->QualCertificate2->Upload->FileName);
		}

		// QualCertificate3
		$CCMStudents->QualCertificate3->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->QualCertificate3->Upload->Value)) {
			$rsnew['QualCertificate3'] = NULL;
		} else {
			$rsnew['QualCertificate3'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->QualCertificate3->UploadPath), $CCMStudents->QualCertificate3->Upload->FileName);
		}

		// MentorUndertaking
		$CCMStudents->MentorUndertaking->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->MentorUndertaking->Upload->Value)) {
			$rsnew['MentorUndertaking'] = NULL;
		} else {
			$rsnew['MentorUndertaking'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->MentorUndertaking->UploadPath), $CCMStudents->MentorUndertaking->Upload->FileName);
		}

		// CandUUndertaking
		$CCMStudents->CandUUndertaking->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->CandUUndertaking->Upload->Value)) {
			$rsnew['CandUUndertaking'] = NULL;
		} else {
			$rsnew['CandUUndertaking'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->CandUUndertaking->UploadPath), $CCMStudents->CandUUndertaking->Upload->FileName);
		}

		// CompanyCandidatePolicy
		$CCMStudents->CompanyCandidatePolicy->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->CompanyCandidatePolicy->Upload->Value)) {
			$rsnew['CompanyCandidatePolicy'] = NULL;
		} else {
			$rsnew['CompanyCandidatePolicy'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->CompanyCandidatePolicy->UploadPath), $CCMStudents->CompanyCandidatePolicy->Upload->FileName);
		}

		// ResidenceProof
		$CCMStudents->ResidenceProof->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->ResidenceProof->Upload->Value)) {
			$rsnew['ResidenceProof'] = NULL;
		} else {
			$rsnew['ResidenceProof'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->ResidenceProof->UploadPath), $CCMStudents->ResidenceProof->Upload->FileName);
		}

		// SignedAppForm
		$CCMStudents->SignedAppForm->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->SignedAppForm->Upload->Value)) {
			$rsnew['SignedAppForm'] = NULL;
		} else {
			$rsnew['SignedAppForm'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->SignedAppForm->UploadPath), $CCMStudents->SignedAppForm->Upload->FileName);
		}

		// Photograph
		$CCMStudents->Photograph->Upload->SaveToSession(); // Save file value to Session
		if (is_null($CCMStudents->Photograph->Upload->Value)) {
			$rsnew['Photograph'] = NULL;
		} else {
			$rsnew['Photograph'] = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $CCMStudents->Photograph->UploadPath), $CCMStudents->Photograph->Upload->FileName);
		}

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

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

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

		// BlockAccess
		$CCMStudents->BlockAccess->SetDbValueDef($rsnew, $CCMStudents->BlockAccess->CurrentValue, "", TRUE);

		// Archived
		$CCMStudents->Archived->SetDbValueDef($rsnew, $CCMStudents->Archived->CurrentValue, 0, TRUE);

		// Call Row Inserting event
		$bInsertRow = $CCMStudents->Row_Inserting($rsnew);
		if ($bInsertRow) {
			if (!ew_Empty($CCMStudents->DisabilityCertificate->Upload->Value)) {
				$CCMStudents->DisabilityCertificate->Upload->SaveToFile($CCMStudents->DisabilityCertificate->UploadPath, $rsnew['DisabilityCertificate'], FALSE);
			}
			if (!ew_Empty($CCMStudents->Payslip->Upload->Value)) {
				$CCMStudents->Payslip->Upload->SaveToFile($CCMStudents->Payslip->UploadPath, $rsnew['Payslip'], FALSE);
			}
			if (!ew_Empty($CCMStudents->BankAccountProof->Upload->Value)) {
				$CCMStudents->BankAccountProof->Upload->SaveToFile($CCMStudents->BankAccountProof->UploadPath, $rsnew['BankAccountProof'], FALSE);
			}
			if (!ew_Empty($CCMStudents->IDFile->Upload->Value)) {
				$CCMStudents->IDFile->Upload->SaveToFile($CCMStudents->IDFile->UploadPath, $rsnew['IDFile'], FALSE);
			}
			if (!ew_Empty($CCMStudents->CVFile->Upload->Value)) {
				$CCMStudents->CVFile->Upload->SaveToFile($CCMStudents->CVFile->UploadPath, $rsnew['CVFile'], FALSE);
			}
			if (!ew_Empty($CCMStudents->QualCertificate1->Upload->Value)) {
				$CCMStudents->QualCertificate1->Upload->SaveToFile($CCMStudents->QualCertificate1->UploadPath, $rsnew['QualCertificate1'], FALSE);
			}
			if (!ew_Empty($CCMStudents->QualCertificate2->Upload->Value)) {
				$CCMStudents->QualCertificate2->Upload->SaveToFile($CCMStudents->QualCertificate2->UploadPath, $rsnew['QualCertificate2'], FALSE);
			}
			if (!ew_Empty($CCMStudents->QualCertificate3->Upload->Value)) {
				$CCMStudents->QualCertificate3->Upload->SaveToFile($CCMStudents->QualCertificate3->UploadPath, $rsnew['QualCertificate3'], FALSE);
			}
			if (!ew_Empty($CCMStudents->MentorUndertaking->Upload->Value)) {
				$CCMStudents->MentorUndertaking->Upload->SaveToFile($CCMStudents->MentorUndertaking->UploadPath, $rsnew['MentorUndertaking'], FALSE);
			}
			if (!ew_Empty($CCMStudents->CandUUndertaking->Upload->Value)) {
				$CCMStudents->CandUUndertaking->Upload->SaveToFile($CCMStudents->CandUUndertaking->UploadPath, $rsnew['CandUUndertaking'], FALSE);
			}
			if (!ew_Empty($CCMStudents->CompanyCandidatePolicy->Upload->Value)) {
				$CCMStudents->CompanyCandidatePolicy->Upload->SaveToFile($CCMStudents->CompanyCandidatePolicy->UploadPath, $rsnew['CompanyCandidatePolicy'], FALSE);
			}
			if (!ew_Empty($CCMStudents->ResidenceProof->Upload->Value)) {
				$CCMStudents->ResidenceProof->Upload->SaveToFile($CCMStudents->ResidenceProof->UploadPath, $rsnew['ResidenceProof'], FALSE);
			}
			if (!ew_Empty($CCMStudents->SignedAppForm->Upload->Value)) {
				$CCMStudents->SignedAppForm->Upload->SaveToFile($CCMStudents->SignedAppForm->UploadPath, $rsnew['SignedAppForm'], FALSE);
			}
			if (!ew_Empty($CCMStudents->Photograph->Upload->Value)) {
				$CCMStudents->Photograph->Upload->SaveToFile($CCMStudents->Photograph->UploadPath, $rsnew['Photograph'], FALSE);
			}
			$conn->raiseErrorFn = 'ew_ErrorFn';
			$AddRow = $conn->Execute($CCMStudents->InsertSQL($rsnew));
			$conn->raiseErrorFn = '';
		} else {
			if ($CCMStudents->CancelMessage <> "") {
				$this->setMessage($CCMStudents->CancelMessage);
				$CCMStudents->CancelMessage = "";
			} else {
				$this->setMessage($Language->Phrase("InsertCancelled"));
			}
			$AddRow = FALSE;
		}
		if ($AddRow) {
			$CCMStudents->CCMStudentID->setDbValue($conn->Insert_ID());
			$rsnew['CCMStudentID'] = $CCMStudents->CCMStudentID->DbValue;

			// Call Row Inserted event
			$CCMStudents->Row_Inserted($rsnew);
		}

		// DisabilityCertificate
		$CCMStudents->DisabilityCertificate->Upload->RemoveFromSession(); // Remove file value from Session

		// Payslip
		$CCMStudents->Payslip->Upload->RemoveFromSession(); // Remove file value from Session

		// BankAccountProof
		$CCMStudents->BankAccountProof->Upload->RemoveFromSession(); // Remove file value from Session

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

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

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

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

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

		// MentorUndertaking
		$CCMStudents->MentorUndertaking->Upload->RemoveFromSession(); // Remove file value from Session

		// CandUUndertaking
		$CCMStudents->CandUUndertaking->Upload->RemoveFromSession(); // Remove file value from Session

		// CompanyCandidatePolicy
		$CCMStudents->CompanyCandidatePolicy->Upload->RemoveFromSession(); // Remove file value from Session

		// ResidenceProof
		$CCMStudents->ResidenceProof->Upload->RemoveFromSession(); // Remove file value from Session

		// SignedAppForm
		$CCMStudents->SignedAppForm->Upload->RemoveFromSession(); // Remove file value from Session

		// Photograph
		$CCMStudents->Photograph->Upload->RemoveFromSession(); // Remove file value from Session
		return $AddRow;
	}

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