| Current Path : /var/www/cesa.co.za/ccmadmin/ |
| Current File : /var/www/cesa.co.za/ccmadmin/cstArchivedMentorsedit.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 "cstArchivedMentorsinfo.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
$cstArchivedMentors_edit = new ccstArchivedMentors_edit();
$Page =& $cstArchivedMentors_edit;
// Page init
$cstArchivedMentors_edit->Page_Init();
// Page main
$cstArchivedMentors_edit->Page_Main();
?>
<?php include "header.php" ?>
<script type="text/javascript">
<!--
// Create page object
var cstArchivedMentors_edit = new ew_Page("cstArchivedMentors_edit");
// page properties
cstArchivedMentors_edit.PageID = "edit"; // page ID
cstArchivedMentors_edit.FormID = "fcstArchivedMentorsedit"; // form ID
var EW_PAGE_ID = cstArchivedMentors_edit.PageID; // for backward compatibility
// extend page with ValidateForm function
cstArchivedMentors_edit.ValidateForm = function(fobj) {
ew_PostAutoSuggest(fobj);
if (!this.ValidateRequired)
return true; // ignore validation
if (fobj.a_confirm && fobj.a_confirm.value == "F")
return true;
var i, elm, aelm, infix;
var rowcnt = (fobj.key_count) ? Number(fobj.key_count.value) : 1;
for (i=0; i<rowcnt; i++) {
infix = (fobj.key_count) ? String(i+1) : "";
elm = fobj.elements["x" + infix + "_FirstName"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php echo ew_JsEncode2($cstArchivedMentors->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($cstArchivedMentors->Surname->FldCaption()) ?>");
// Call Form Custom Validate event
if (!this.Form_CustomValidate(fobj)) return false;
}
return true;
}
// extend page with Form_CustomValidate function
cstArchivedMentors_edit.Form_CustomValidate =
function(fobj) { // DO NOT CHANGE THIS LINE!
// Your custom validation code here, return false if invalid.
return true;
}
<?php if (EW_CLIENT_VALIDATE) { ?>
cstArchivedMentors_edit.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedMentors_edit.ValidateRequired = false; // no JavaScript validation
<?php } ?>
//-->
</script>
<script type="text/javascript">
<!--
var ew_DHTMLEditors = [];
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
// Write your client script here, no need to add script tags.
// To include another .js script, use:
// ew_ClientScriptInclude("my_javascript.js");
//-->
</script>
<p><span class="phpmaker"><?php echo $Language->Phrase("Edit") ?> <?php echo $Language->Phrase("TblTypeCUSTOMVIEW") ?><?php echo $cstArchivedMentors->TableCaption() ?><br><br>
<a href="<?php echo $cstArchivedMentors->getReturnUrl() ?>"><?php echo $Language->Phrase("GoBack") ?></a></span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$cstArchivedMentors_edit->ShowMessage();
?>
<form name="fcstArchivedMentorsedit" id="fcstArchivedMentorsedit" action="<?php echo ew_CurrentPage() ?>" method="post" onsubmit="return cstArchivedMentors_edit.ValidateForm(this);">
<p>
<input type="hidden" name="a_table" id="a_table" value="cstArchivedMentors">
<input type="hidden" name="a_edit" id="a_edit" value="U">
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<?php if ($cstArchivedMentors->CCMMentorID->Visible) { // CCMMentorID ?>
<tr<?php echo $cstArchivedMentors->CCMMentorID->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->CCMMentorID->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->CCMMentorID->CellAttributes() ?>><span id="el_CCMMentorID">
<div<?php echo $cstArchivedMentors->CCMMentorID->ViewAttributes() ?>><?php echo $cstArchivedMentors->CCMMentorID->EditValue ?></div><input type="hidden" name="x_CCMMentorID" id="x_CCMMentorID" value="<?php echo ew_HtmlEncode($cstArchivedMentors->CCMMentorID->CurrentValue) ?>">
</span><?php echo $cstArchivedMentors->CCMMentorID->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Organisation->Visible) { // Organisation ?>
<tr<?php echo $cstArchivedMentors->Organisation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Organisation->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->Organisation->CellAttributes() ?>><span id="el_Organisation">
<input type="text" name="x_Organisation" id="x_Organisation" title="<?php echo $cstArchivedMentors->Organisation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->Organisation->EditValue ?>"<?php echo $cstArchivedMentors->Organisation->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->Organisation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Title->Visible) { // Title ?>
<tr<?php echo $cstArchivedMentors->Title->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Title->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->Title->CellAttributes() ?>><span id="el_Title">
<input type="text" name="x_Title" id="x_Title" title="<?php echo $cstArchivedMentors->Title->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedMentors->Title->EditValue ?>"<?php echo $cstArchivedMentors->Title->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->Title->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->FirstName->Visible) { // FirstName ?>
<tr<?php echo $cstArchivedMentors->FirstName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->FirstName->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedMentors->FirstName->CellAttributes() ?>><span id="el_FirstName">
<input type="text" name="x_FirstName" id="x_FirstName" title="<?php echo $cstArchivedMentors->FirstName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->FirstName->EditValue ?>"<?php echo $cstArchivedMentors->FirstName->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->FirstName->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Surname->Visible) { // Surname ?>
<tr<?php echo $cstArchivedMentors->Surname->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Surname->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedMentors->Surname->CellAttributes() ?>><span id="el_Surname">
<input type="text" name="x_Surname" id="x_Surname" title="<?php echo $cstArchivedMentors->Surname->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->Surname->EditValue ?>"<?php echo $cstArchivedMentors->Surname->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->Surname->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $cstArchivedMentors->KnownAs->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->KnownAs->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->KnownAs->CellAttributes() ?>><span id="el_KnownAs">
<input type="text" name="x_KnownAs" id="x_KnownAs" title="<?php echo $cstArchivedMentors->KnownAs->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->KnownAs->EditValue ?>"<?php echo $cstArchivedMentors->KnownAs->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->KnownAs->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $cstArchivedMentors->IDNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->IDNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->IDNumber->CellAttributes() ?>><span id="el_IDNumber">
<input type="text" name="x_IDNumber" id="x_IDNumber" title="<?php echo $cstArchivedMentors->IDNumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedMentors->IDNumber->EditValue ?>"<?php echo $cstArchivedMentors->IDNumber->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->IDNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->CategoryReg->Visible) { // CategoryReg ?>
<tr<?php echo $cstArchivedMentors->CategoryReg->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->CategoryReg->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->CategoryReg->CellAttributes() ?>><span id="el_CategoryReg">
<input type="text" name="x_CategoryReg" id="x_CategoryReg" title="<?php echo $cstArchivedMentors->CategoryReg->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->CategoryReg->EditValue ?>"<?php echo $cstArchivedMentors->CategoryReg->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->CategoryReg->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->ProfessionalCouncil->Visible) { // ProfessionalCouncil ?>
<tr<?php echo $cstArchivedMentors->ProfessionalCouncil->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->ProfessionalCouncil->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->ProfessionalCouncil->CellAttributes() ?>><span id="el_ProfessionalCouncil">
<input type="text" name="x_ProfessionalCouncil" id="x_ProfessionalCouncil" title="<?php echo $cstArchivedMentors->ProfessionalCouncil->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->ProfessionalCouncil->EditValue ?>"<?php echo $cstArchivedMentors->ProfessionalCouncil->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->ProfessionalCouncil->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->CouncilRegNumber->Visible) { // CouncilRegNumber ?>
<tr<?php echo $cstArchivedMentors->CouncilRegNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->CouncilRegNumber->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->CouncilRegNumber->CellAttributes() ?>><span id="el_CouncilRegNumber">
<input type="text" name="x_CouncilRegNumber" id="x_CouncilRegNumber" title="<?php echo $cstArchivedMentors->CouncilRegNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->CouncilRegNumber->EditValue ?>"<?php echo $cstArchivedMentors->CouncilRegNumber->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->CouncilRegNumber->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Telephone->Visible) { // Telephone ?>
<tr<?php echo $cstArchivedMentors->Telephone->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Telephone->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->Telephone->CellAttributes() ?>><span id="el_Telephone">
<input type="text" name="x_Telephone" id="x_Telephone" title="<?php echo $cstArchivedMentors->Telephone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->Telephone->EditValue ?>"<?php echo $cstArchivedMentors->Telephone->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->Telephone->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $cstArchivedMentors->Cellphone->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Cellphone->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->Cellphone->CellAttributes() ?>><span id="el_Cellphone">
<input type="text" name="x_Cellphone" id="x_Cellphone" title="<?php echo $cstArchivedMentors->Cellphone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->Cellphone->EditValue ?>"<?php echo $cstArchivedMentors->Cellphone->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->Cellphone->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $cstArchivedMentors->EmailAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->EmailAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->EmailAddress->CellAttributes() ?>><span id="el_EmailAddress">
<input type="text" name="x_EmailAddress" id="x_EmailAddress" title="<?php echo $cstArchivedMentors->EmailAddress->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->EmailAddress->EditValue ?>"<?php echo $cstArchivedMentors->EmailAddress->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->EmailAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->WorkAddress->Visible) { // WorkAddress ?>
<tr<?php echo $cstArchivedMentors->WorkAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->WorkAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->WorkAddress->CellAttributes() ?>><span id="el_WorkAddress">
<textarea name="x_WorkAddress" id="x_WorkAddress" title="<?php echo $cstArchivedMentors->WorkAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedMentors->WorkAddress->EditAttributes() ?>><?php echo $cstArchivedMentors->WorkAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedMentors->WorkAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->PostalAddress->Visible) { // PostalAddress ?>
<tr<?php echo $cstArchivedMentors->PostalAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->PostalAddress->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->PostalAddress->CellAttributes() ?>><span id="el_PostalAddress">
<textarea name="x_PostalAddress" id="x_PostalAddress" title="<?php echo $cstArchivedMentors->PostalAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedMentors->PostalAddress->EditAttributes() ?>><?php echo $cstArchivedMentors->PostalAddress->EditValue ?></textarea>
</span><?php echo $cstArchivedMentors->PostalAddress->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->EducationalInst->Visible) { // EducationalInst ?>
<tr<?php echo $cstArchivedMentors->EducationalInst->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->EducationalInst->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->EducationalInst->CellAttributes() ?>><span id="el_EducationalInst">
<input type="text" name="x_EducationalInst" id="x_EducationalInst" title="<?php echo $cstArchivedMentors->EducationalInst->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->EducationalInst->EditValue ?>"<?php echo $cstArchivedMentors->EducationalInst->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->EducationalInst->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Qualifications->Visible) { // Qualifications ?>
<tr<?php echo $cstArchivedMentors->Qualifications->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Qualifications->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->Qualifications->CellAttributes() ?>><span id="el_Qualifications">
<textarea name="x_Qualifications" id="x_Qualifications" title="<?php echo $cstArchivedMentors->Qualifications->FldTitle() ?>" cols="35" rows="4"<?php echo $cstArchivedMentors->Qualifications->EditAttributes() ?>><?php echo $cstArchivedMentors->Qualifications->EditValue ?></textarea>
</span><?php echo $cstArchivedMentors->Qualifications->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->CVFile->Visible) { // CVFile ?>
<tr<?php echo $cstArchivedMentors->CVFile->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->CVFile->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->CVFile->CellAttributes() ?>><span id="el_CVFile">
<input type="text" name="x_CVFile" id="x_CVFile" title="<?php echo $cstArchivedMentors->CVFile->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->CVFile->EditValue ?>"<?php echo $cstArchivedMentors->CVFile->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->CVFile->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->MentorUndertaking->Visible) { // MentorUndertaking ?>
<tr<?php echo $cstArchivedMentors->MentorUndertaking->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->MentorUndertaking->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->MentorUndertaking->CellAttributes() ?>><span id="el_MentorUndertaking">
<input type="text" name="x_MentorUndertaking" id="x_MentorUndertaking" title="<?php echo $cstArchivedMentors->MentorUndertaking->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->MentorUndertaking->EditValue ?>"<?php echo $cstArchivedMentors->MentorUndertaking->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->MentorUndertaking->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->CandUUndertaking->Visible) { // CandUUndertaking ?>
<tr<?php echo $cstArchivedMentors->CandUUndertaking->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->CandUUndertaking->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->CandUUndertaking->CellAttributes() ?>><span id="el_CandUUndertaking">
<input type="text" name="x_CandUUndertaking" id="x_CandUUndertaking" title="<?php echo $cstArchivedMentors->CandUUndertaking->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $cstArchivedMentors->CandUUndertaking->EditValue ?>"<?php echo $cstArchivedMentors->CandUUndertaking->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->CandUUndertaking->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $cstArchivedMentors->WebUsername->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->WebUsername->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->WebUsername->CellAttributes() ?>><span id="el_WebUsername">
<input type="text" name="x_WebUsername" id="x_WebUsername" title="<?php echo $cstArchivedMentors->WebUsername->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedMentors->WebUsername->EditValue ?>"<?php echo $cstArchivedMentors->WebUsername->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->WebUsername->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $cstArchivedMentors->WebPassword->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->WebPassword->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->WebPassword->CellAttributes() ?>><span id="el_WebPassword">
<input type="text" name="x_WebPassword" id="x_WebPassword" title="<?php echo $cstArchivedMentors->WebPassword->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $cstArchivedMentors->WebPassword->EditValue ?>"<?php echo $cstArchivedMentors->WebPassword->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->WebPassword->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->BlockAccess->Visible) { // BlockAccess ?>
<tr<?php echo $cstArchivedMentors->BlockAccess->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->BlockAccess->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedMentors->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 $cstArchivedMentors->BlockAccess->FldTitle() ?>" value="{value}"<?php echo $cstArchivedMentors->BlockAccess->EditAttributes() ?>></label></div>
<div id="dsl_x_BlockAccess" repeatcolumn="5">
<?php
$arwrk = $cstArchivedMentors->BlockAccess->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedMentors->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 $cstArchivedMentors->BlockAccess->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedMentors->BlockAccess->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $cstArchivedMentors->BlockAccess->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Initials->Visible) { // Initials ?>
<tr<?php echo $cstArchivedMentors->Initials->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Initials->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->Initials->CellAttributes() ?>><span id="el_Initials">
<input type="text" name="x_Initials" id="x_Initials" title="<?php echo $cstArchivedMentors->Initials->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedMentors->Initials->EditValue ?>"<?php echo $cstArchivedMentors->Initials->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->Initials->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Archived->Visible) { // Archived ?>
<tr<?php echo $cstArchivedMentors->Archived->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Archived->FldCaption() ?><?php echo $Language->Phrase("FieldRequiredIndicator") ?></td>
<td<?php echo $cstArchivedMentors->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 $cstArchivedMentors->Archived->FldTitle() ?>" value="{value}"<?php echo $cstArchivedMentors->Archived->EditAttributes() ?>></label></div>
<div id="dsl_x_Archived" repeatcolumn="5">
<?php
$arwrk = $cstArchivedMentors->Archived->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($cstArchivedMentors->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 $cstArchivedMentors->Archived->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $cstArchivedMentors->Archived->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span><?php echo $cstArchivedMentors->Archived->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Designation->Visible) { // Designation ?>
<tr<?php echo $cstArchivedMentors->Designation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Designation->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->Designation->CellAttributes() ?>><span id="el_Designation">
<input type="text" name="x_Designation" id="x_Designation" title="<?php echo $cstArchivedMentors->Designation->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedMentors->Designation->EditValue ?>"<?php echo $cstArchivedMentors->Designation->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->Designation->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Prof_Reg_No->Visible) { // Prof Reg No ?>
<tr<?php echo $cstArchivedMentors->Prof_Reg_No->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Prof_Reg_No->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->Prof_Reg_No->CellAttributes() ?>><span id="el_Prof_Reg_No">
<input type="text" name="x_Prof_Reg_No" id="x_Prof_Reg_No" title="<?php echo $cstArchivedMentors->Prof_Reg_No->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedMentors->Prof_Reg_No->EditValue ?>"<?php echo $cstArchivedMentors->Prof_Reg_No->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->Prof_Reg_No->CustomMsg ?></td>
</tr>
<?php } ?>
<?php if ($cstArchivedMentors->Reg_No->Visible) { // Reg No ?>
<tr<?php echo $cstArchivedMentors->Reg_No->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $cstArchivedMentors->Reg_No->FldCaption() ?></td>
<td<?php echo $cstArchivedMentors->Reg_No->CellAttributes() ?>><span id="el_Reg_No">
<input type="text" name="x_Reg_No" id="x_Reg_No" title="<?php echo $cstArchivedMentors->Reg_No->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $cstArchivedMentors->Reg_No->EditValue ?>"<?php echo $cstArchivedMentors->Reg_No->EditAttributes() ?>>
</span><?php echo $cstArchivedMentors->Reg_No->CustomMsg ?></td>
</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<p>
<input type="submit" name="btnAction" id="btnAction" value="<?php echo ew_BtnCaption($Language->Phrase("EditBtn")) ?>">
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
<?php include "footer.php" ?>
<?php
$cstArchivedMentors_edit->Page_Terminate();
?>
<?php
//
// Page class
//
class ccstArchivedMentors_edit {
// Page ID
var $PageID = 'edit';
// Table name
var $TableName = 'cstArchivedMentors';
// Page object name
var $PageObjName = 'cstArchivedMentors_edit';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $cstArchivedMentors;
if ($cstArchivedMentors->UseTokenInUrl) $PageUrl .= "t=" . $cstArchivedMentors->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, $cstArchivedMentors;
if ($cstArchivedMentors->UseTokenInUrl) {
if ($objForm)
return ($cstArchivedMentors->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($cstArchivedMentors->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function ccstArchivedMentors_edit() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (cstArchivedMentors)
$GLOBALS["cstArchivedMentors"] = new ccstArchivedMentors();
// Table object (CCMUsers)
$GLOBALS['CCMUsers'] = new cCCMUsers();
// Page ID
if (!defined("EW_PAGE_ID"))
define("EW_PAGE_ID", 'edit', TRUE);
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME"))
define("EW_TABLE_NAME", 'cstArchivedMentors', 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 $cstArchivedMentors;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) $Security->AutoLogin();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
$Security->TablePermission_Loading();
$Security->LoadCurrentUserLevel($this->TableName);
$Security->TablePermission_Loaded();
if (!$Security->IsLoggedIn()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
if (!$Security->CanEdit()) {
$Security->SaveLastUrl();
$this->Page_Terminate("cstArchivedMentorslist.php");
}
// Create form object
$objForm = new cFormObj();
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
}
//
// Page_Terminate
//
function Page_Terminate($url = "") {
global $conn;
// Page Unload event
$this->Page_Unload();
// Global Page Unloaded event (in userfn*.php)
Page_Unloaded();
// Close connection
$conn->Close();
// Go to URL if specified
$this->Page_Redirecting($url);
if ($url <> "") {
if (!EW_DEBUG_ENABLED && ob_get_length())
ob_end_clean();
header("Location: " . $url);
}
exit();
}
var $sDbMasterFilter;
var $sDbDetailFilter;
//
// Page main
//
function Page_Main() {
global $objForm, $Language, $gsFormError, $cstArchivedMentors;
// Load key from QueryString
if (@$_GET["CCMMentorID"] <> "")
$cstArchivedMentors->CCMMentorID->setQueryStringValue($_GET["CCMMentorID"]);
if (@$_POST["a_edit"] <> "") {
$cstArchivedMentors->CurrentAction = $_POST["a_edit"]; // Get action code
$this->LoadFormValues(); // Get form values
// Validate form
if (!$this->ValidateForm()) {
$cstArchivedMentors->CurrentAction = ""; // Form error, reset action
$this->setMessage($gsFormError);
$cstArchivedMentors->EventCancelled = TRUE; // Event cancelled
$this->RestoreFormValues();
}
} else {
$cstArchivedMentors->CurrentAction = "I"; // Default action is display
}
// Check if valid key
if ($cstArchivedMentors->CCMMentorID->CurrentValue == "")
$this->Page_Terminate("cstArchivedMentorslist.php"); // Invalid key, return to list
switch ($cstArchivedMentors->CurrentAction) {
case "I": // Get a record to display
if (!$this->LoadRow()) { // Load record based on key
$this->setMessage($Language->Phrase("NoRecord")); // No record found
$this->Page_Terminate("cstArchivedMentorslist.php"); // No matching record, return to list
}
break;
Case "U": // Update
$cstArchivedMentors->SendEmail = TRUE; // Send email on update success
if ($this->EditRow()) { // Update record based on key
$this->setMessage($Language->Phrase("UpdateSuccess")); // Update success
$sReturnUrl = $cstArchivedMentors->getReturnUrl();
if (ew_GetPageName($sReturnUrl) == "cstArchivedMentorsview.php")
$sReturnUrl = $cstArchivedMentors->ViewUrl(); // View paging, return to View page directly
$this->Page_Terminate($sReturnUrl); // Return to caller
} else {
$cstArchivedMentors->EventCancelled = TRUE; // Event cancelled
$this->RestoreFormValues(); // Restore form values if update failed
}
}
// Render the record
$cstArchivedMentors->RowType = EW_ROWTYPE_EDIT; // Render as Edit
$this->RenderRow();
}
// Get upload files
function GetUploadFiles() {
global $objForm, $cstArchivedMentors;
// Get upload data
}
// Load form values
function LoadFormValues() {
// Load from form
global $objForm, $cstArchivedMentors;
$cstArchivedMentors->CCMMentorID->setFormValue($objForm->GetValue("x_CCMMentorID"));
$cstArchivedMentors->Organisation->setFormValue($objForm->GetValue("x_Organisation"));
$cstArchivedMentors->Title->setFormValue($objForm->GetValue("x_Title"));
$cstArchivedMentors->FirstName->setFormValue($objForm->GetValue("x_FirstName"));
$cstArchivedMentors->Surname->setFormValue($objForm->GetValue("x_Surname"));
$cstArchivedMentors->KnownAs->setFormValue($objForm->GetValue("x_KnownAs"));
$cstArchivedMentors->IDNumber->setFormValue($objForm->GetValue("x_IDNumber"));
$cstArchivedMentors->CategoryReg->setFormValue($objForm->GetValue("x_CategoryReg"));
$cstArchivedMentors->ProfessionalCouncil->setFormValue($objForm->GetValue("x_ProfessionalCouncil"));
$cstArchivedMentors->CouncilRegNumber->setFormValue($objForm->GetValue("x_CouncilRegNumber"));
$cstArchivedMentors->Telephone->setFormValue($objForm->GetValue("x_Telephone"));
$cstArchivedMentors->Cellphone->setFormValue($objForm->GetValue("x_Cellphone"));
$cstArchivedMentors->EmailAddress->setFormValue($objForm->GetValue("x_EmailAddress"));
$cstArchivedMentors->WorkAddress->setFormValue($objForm->GetValue("x_WorkAddress"));
$cstArchivedMentors->PostalAddress->setFormValue($objForm->GetValue("x_PostalAddress"));
$cstArchivedMentors->EducationalInst->setFormValue($objForm->GetValue("x_EducationalInst"));
$cstArchivedMentors->Qualifications->setFormValue($objForm->GetValue("x_Qualifications"));
$cstArchivedMentors->CVFile->setFormValue($objForm->GetValue("x_CVFile"));
$cstArchivedMentors->MentorUndertaking->setFormValue($objForm->GetValue("x_MentorUndertaking"));
$cstArchivedMentors->CandUUndertaking->setFormValue($objForm->GetValue("x_CandUUndertaking"));
$cstArchivedMentors->WebUsername->setFormValue($objForm->GetValue("x_WebUsername"));
$cstArchivedMentors->WebPassword->setFormValue($objForm->GetValue("x_WebPassword"));
$cstArchivedMentors->BlockAccess->setFormValue($objForm->GetValue("x_BlockAccess"));
$cstArchivedMentors->Initials->setFormValue($objForm->GetValue("x_Initials"));
$cstArchivedMentors->Archived->setFormValue($objForm->GetValue("x_Archived"));
$cstArchivedMentors->Designation->setFormValue($objForm->GetValue("x_Designation"));
$cstArchivedMentors->Prof_Reg_No->setFormValue($objForm->GetValue("x_Prof_Reg_No"));
$cstArchivedMentors->Reg_No->setFormValue($objForm->GetValue("x_Reg_No"));
}
// Restore form values
function RestoreFormValues() {
global $objForm, $cstArchivedMentors;
$this->LoadRow();
$cstArchivedMentors->CCMMentorID->CurrentValue = $cstArchivedMentors->CCMMentorID->FormValue;
$cstArchivedMentors->Organisation->CurrentValue = $cstArchivedMentors->Organisation->FormValue;
$cstArchivedMentors->Title->CurrentValue = $cstArchivedMentors->Title->FormValue;
$cstArchivedMentors->FirstName->CurrentValue = $cstArchivedMentors->FirstName->FormValue;
$cstArchivedMentors->Surname->CurrentValue = $cstArchivedMentors->Surname->FormValue;
$cstArchivedMentors->KnownAs->CurrentValue = $cstArchivedMentors->KnownAs->FormValue;
$cstArchivedMentors->IDNumber->CurrentValue = $cstArchivedMentors->IDNumber->FormValue;
$cstArchivedMentors->CategoryReg->CurrentValue = $cstArchivedMentors->CategoryReg->FormValue;
$cstArchivedMentors->ProfessionalCouncil->CurrentValue = $cstArchivedMentors->ProfessionalCouncil->FormValue;
$cstArchivedMentors->CouncilRegNumber->CurrentValue = $cstArchivedMentors->CouncilRegNumber->FormValue;
$cstArchivedMentors->Telephone->CurrentValue = $cstArchivedMentors->Telephone->FormValue;
$cstArchivedMentors->Cellphone->CurrentValue = $cstArchivedMentors->Cellphone->FormValue;
$cstArchivedMentors->EmailAddress->CurrentValue = $cstArchivedMentors->EmailAddress->FormValue;
$cstArchivedMentors->WorkAddress->CurrentValue = $cstArchivedMentors->WorkAddress->FormValue;
$cstArchivedMentors->PostalAddress->CurrentValue = $cstArchivedMentors->PostalAddress->FormValue;
$cstArchivedMentors->EducationalInst->CurrentValue = $cstArchivedMentors->EducationalInst->FormValue;
$cstArchivedMentors->Qualifications->CurrentValue = $cstArchivedMentors->Qualifications->FormValue;
$cstArchivedMentors->CVFile->CurrentValue = $cstArchivedMentors->CVFile->FormValue;
$cstArchivedMentors->MentorUndertaking->CurrentValue = $cstArchivedMentors->MentorUndertaking->FormValue;
$cstArchivedMentors->CandUUndertaking->CurrentValue = $cstArchivedMentors->CandUUndertaking->FormValue;
$cstArchivedMentors->WebUsername->CurrentValue = $cstArchivedMentors->WebUsername->FormValue;
$cstArchivedMentors->WebPassword->CurrentValue = $cstArchivedMentors->WebPassword->FormValue;
$cstArchivedMentors->BlockAccess->CurrentValue = $cstArchivedMentors->BlockAccess->FormValue;
$cstArchivedMentors->Initials->CurrentValue = $cstArchivedMentors->Initials->FormValue;
$cstArchivedMentors->Archived->CurrentValue = $cstArchivedMentors->Archived->FormValue;
$cstArchivedMentors->Designation->CurrentValue = $cstArchivedMentors->Designation->FormValue;
$cstArchivedMentors->Prof_Reg_No->CurrentValue = $cstArchivedMentors->Prof_Reg_No->FormValue;
$cstArchivedMentors->Reg_No->CurrentValue = $cstArchivedMentors->Reg_No->FormValue;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $cstArchivedMentors;
$sFilter = $cstArchivedMentors->KeyFilter();
// Call Row Selecting event
$cstArchivedMentors->Row_Selecting($sFilter);
// Load SQL based on filter
$cstArchivedMentors->CurrentFilter = $sFilter;
$sSql = $cstArchivedMentors->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$cstArchivedMentors->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $cstArchivedMentors;
$cstArchivedMentors->CCMMentorID->setDbValue($rs->fields('CCMMentorID'));
$cstArchivedMentors->Organisation->setDbValue($rs->fields('Organisation'));
$cstArchivedMentors->Title->setDbValue($rs->fields('Title'));
$cstArchivedMentors->FirstName->setDbValue($rs->fields('FirstName'));
$cstArchivedMentors->Surname->setDbValue($rs->fields('Surname'));
$cstArchivedMentors->KnownAs->setDbValue($rs->fields('KnownAs'));
$cstArchivedMentors->IDNumber->setDbValue($rs->fields('IDNumber'));
$cstArchivedMentors->CategoryReg->setDbValue($rs->fields('CategoryReg'));
$cstArchivedMentors->ProfessionalCouncil->setDbValue($rs->fields('ProfessionalCouncil'));
$cstArchivedMentors->CouncilRegNumber->setDbValue($rs->fields('CouncilRegNumber'));
$cstArchivedMentors->Telephone->setDbValue($rs->fields('Telephone'));
$cstArchivedMentors->Cellphone->setDbValue($rs->fields('Cellphone'));
$cstArchivedMentors->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$cstArchivedMentors->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$cstArchivedMentors->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$cstArchivedMentors->EducationalInst->setDbValue($rs->fields('EducationalInst'));
$cstArchivedMentors->Qualifications->setDbValue($rs->fields('Qualifications'));
$cstArchivedMentors->CVFile->setDbValue($rs->fields('CVFile'));
$cstArchivedMentors->MentorUndertaking->setDbValue($rs->fields('MentorUndertaking'));
$cstArchivedMentors->CandUUndertaking->setDbValue($rs->fields('CandUUndertaking'));
$cstArchivedMentors->WebUsername->setDbValue($rs->fields('WebUsername'));
$cstArchivedMentors->WebPassword->setDbValue($rs->fields('WebPassword'));
$cstArchivedMentors->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$cstArchivedMentors->Initials->setDbValue($rs->fields('Initials'));
$cstArchivedMentors->Archived->setDbValue($rs->fields('Archived'));
$cstArchivedMentors->Designation->setDbValue($rs->fields('Designation'));
$cstArchivedMentors->Prof_Reg_No->setDbValue($rs->fields('Prof Reg No'));
$cstArchivedMentors->Reg_No->setDbValue($rs->fields('Reg No'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $cstArchivedMentors;
// Initialize URLs
// Call Row_Rendering event
$cstArchivedMentors->Row_Rendering();
// Common render codes for all row types
// CCMMentorID
$cstArchivedMentors->CCMMentorID->CellCssStyle = ""; $cstArchivedMentors->CCMMentorID->CellCssClass = "";
$cstArchivedMentors->CCMMentorID->CellAttrs = array(); $cstArchivedMentors->CCMMentorID->ViewAttrs = array(); $cstArchivedMentors->CCMMentorID->EditAttrs = array();
// Organisation
$cstArchivedMentors->Organisation->CellCssStyle = ""; $cstArchivedMentors->Organisation->CellCssClass = "";
$cstArchivedMentors->Organisation->CellAttrs = array(); $cstArchivedMentors->Organisation->ViewAttrs = array(); $cstArchivedMentors->Organisation->EditAttrs = array();
// Title
$cstArchivedMentors->Title->CellCssStyle = ""; $cstArchivedMentors->Title->CellCssClass = "";
$cstArchivedMentors->Title->CellAttrs = array(); $cstArchivedMentors->Title->ViewAttrs = array(); $cstArchivedMentors->Title->EditAttrs = array();
// FirstName
$cstArchivedMentors->FirstName->CellCssStyle = ""; $cstArchivedMentors->FirstName->CellCssClass = "";
$cstArchivedMentors->FirstName->CellAttrs = array(); $cstArchivedMentors->FirstName->ViewAttrs = array(); $cstArchivedMentors->FirstName->EditAttrs = array();
// Surname
$cstArchivedMentors->Surname->CellCssStyle = ""; $cstArchivedMentors->Surname->CellCssClass = "";
$cstArchivedMentors->Surname->CellAttrs = array(); $cstArchivedMentors->Surname->ViewAttrs = array(); $cstArchivedMentors->Surname->EditAttrs = array();
// KnownAs
$cstArchivedMentors->KnownAs->CellCssStyle = ""; $cstArchivedMentors->KnownAs->CellCssClass = "";
$cstArchivedMentors->KnownAs->CellAttrs = array(); $cstArchivedMentors->KnownAs->ViewAttrs = array(); $cstArchivedMentors->KnownAs->EditAttrs = array();
// IDNumber
$cstArchivedMentors->IDNumber->CellCssStyle = ""; $cstArchivedMentors->IDNumber->CellCssClass = "";
$cstArchivedMentors->IDNumber->CellAttrs = array(); $cstArchivedMentors->IDNumber->ViewAttrs = array(); $cstArchivedMentors->IDNumber->EditAttrs = array();
// CategoryReg
$cstArchivedMentors->CategoryReg->CellCssStyle = ""; $cstArchivedMentors->CategoryReg->CellCssClass = "";
$cstArchivedMentors->CategoryReg->CellAttrs = array(); $cstArchivedMentors->CategoryReg->ViewAttrs = array(); $cstArchivedMentors->CategoryReg->EditAttrs = array();
// ProfessionalCouncil
$cstArchivedMentors->ProfessionalCouncil->CellCssStyle = ""; $cstArchivedMentors->ProfessionalCouncil->CellCssClass = "";
$cstArchivedMentors->ProfessionalCouncil->CellAttrs = array(); $cstArchivedMentors->ProfessionalCouncil->ViewAttrs = array(); $cstArchivedMentors->ProfessionalCouncil->EditAttrs = array();
// CouncilRegNumber
$cstArchivedMentors->CouncilRegNumber->CellCssStyle = ""; $cstArchivedMentors->CouncilRegNumber->CellCssClass = "";
$cstArchivedMentors->CouncilRegNumber->CellAttrs = array(); $cstArchivedMentors->CouncilRegNumber->ViewAttrs = array(); $cstArchivedMentors->CouncilRegNumber->EditAttrs = array();
// Telephone
$cstArchivedMentors->Telephone->CellCssStyle = ""; $cstArchivedMentors->Telephone->CellCssClass = "";
$cstArchivedMentors->Telephone->CellAttrs = array(); $cstArchivedMentors->Telephone->ViewAttrs = array(); $cstArchivedMentors->Telephone->EditAttrs = array();
// Cellphone
$cstArchivedMentors->Cellphone->CellCssStyle = ""; $cstArchivedMentors->Cellphone->CellCssClass = "";
$cstArchivedMentors->Cellphone->CellAttrs = array(); $cstArchivedMentors->Cellphone->ViewAttrs = array(); $cstArchivedMentors->Cellphone->EditAttrs = array();
// EmailAddress
$cstArchivedMentors->EmailAddress->CellCssStyle = ""; $cstArchivedMentors->EmailAddress->CellCssClass = "";
$cstArchivedMentors->EmailAddress->CellAttrs = array(); $cstArchivedMentors->EmailAddress->ViewAttrs = array(); $cstArchivedMentors->EmailAddress->EditAttrs = array();
// WorkAddress
$cstArchivedMentors->WorkAddress->CellCssStyle = ""; $cstArchivedMentors->WorkAddress->CellCssClass = "";
$cstArchivedMentors->WorkAddress->CellAttrs = array(); $cstArchivedMentors->WorkAddress->ViewAttrs = array(); $cstArchivedMentors->WorkAddress->EditAttrs = array();
// PostalAddress
$cstArchivedMentors->PostalAddress->CellCssStyle = ""; $cstArchivedMentors->PostalAddress->CellCssClass = "";
$cstArchivedMentors->PostalAddress->CellAttrs = array(); $cstArchivedMentors->PostalAddress->ViewAttrs = array(); $cstArchivedMentors->PostalAddress->EditAttrs = array();
// EducationalInst
$cstArchivedMentors->EducationalInst->CellCssStyle = ""; $cstArchivedMentors->EducationalInst->CellCssClass = "";
$cstArchivedMentors->EducationalInst->CellAttrs = array(); $cstArchivedMentors->EducationalInst->ViewAttrs = array(); $cstArchivedMentors->EducationalInst->EditAttrs = array();
// Qualifications
$cstArchivedMentors->Qualifications->CellCssStyle = ""; $cstArchivedMentors->Qualifications->CellCssClass = "";
$cstArchivedMentors->Qualifications->CellAttrs = array(); $cstArchivedMentors->Qualifications->ViewAttrs = array(); $cstArchivedMentors->Qualifications->EditAttrs = array();
// CVFile
$cstArchivedMentors->CVFile->CellCssStyle = ""; $cstArchivedMentors->CVFile->CellCssClass = "";
$cstArchivedMentors->CVFile->CellAttrs = array(); $cstArchivedMentors->CVFile->ViewAttrs = array(); $cstArchivedMentors->CVFile->EditAttrs = array();
// MentorUndertaking
$cstArchivedMentors->MentorUndertaking->CellCssStyle = ""; $cstArchivedMentors->MentorUndertaking->CellCssClass = "";
$cstArchivedMentors->MentorUndertaking->CellAttrs = array(); $cstArchivedMentors->MentorUndertaking->ViewAttrs = array(); $cstArchivedMentors->MentorUndertaking->EditAttrs = array();
// CandUUndertaking
$cstArchivedMentors->CandUUndertaking->CellCssStyle = ""; $cstArchivedMentors->CandUUndertaking->CellCssClass = "";
$cstArchivedMentors->CandUUndertaking->CellAttrs = array(); $cstArchivedMentors->CandUUndertaking->ViewAttrs = array(); $cstArchivedMentors->CandUUndertaking->EditAttrs = array();
// WebUsername
$cstArchivedMentors->WebUsername->CellCssStyle = ""; $cstArchivedMentors->WebUsername->CellCssClass = "";
$cstArchivedMentors->WebUsername->CellAttrs = array(); $cstArchivedMentors->WebUsername->ViewAttrs = array(); $cstArchivedMentors->WebUsername->EditAttrs = array();
// WebPassword
$cstArchivedMentors->WebPassword->CellCssStyle = ""; $cstArchivedMentors->WebPassword->CellCssClass = "";
$cstArchivedMentors->WebPassword->CellAttrs = array(); $cstArchivedMentors->WebPassword->ViewAttrs = array(); $cstArchivedMentors->WebPassword->EditAttrs = array();
// BlockAccess
$cstArchivedMentors->BlockAccess->CellCssStyle = ""; $cstArchivedMentors->BlockAccess->CellCssClass = "";
$cstArchivedMentors->BlockAccess->CellAttrs = array(); $cstArchivedMentors->BlockAccess->ViewAttrs = array(); $cstArchivedMentors->BlockAccess->EditAttrs = array();
// Initials
$cstArchivedMentors->Initials->CellCssStyle = ""; $cstArchivedMentors->Initials->CellCssClass = "";
$cstArchivedMentors->Initials->CellAttrs = array(); $cstArchivedMentors->Initials->ViewAttrs = array(); $cstArchivedMentors->Initials->EditAttrs = array();
// Archived
$cstArchivedMentors->Archived->CellCssStyle = ""; $cstArchivedMentors->Archived->CellCssClass = "";
$cstArchivedMentors->Archived->CellAttrs = array(); $cstArchivedMentors->Archived->ViewAttrs = array(); $cstArchivedMentors->Archived->EditAttrs = array();
// Designation
$cstArchivedMentors->Designation->CellCssStyle = ""; $cstArchivedMentors->Designation->CellCssClass = "";
$cstArchivedMentors->Designation->CellAttrs = array(); $cstArchivedMentors->Designation->ViewAttrs = array(); $cstArchivedMentors->Designation->EditAttrs = array();
// Prof Reg No
$cstArchivedMentors->Prof_Reg_No->CellCssStyle = ""; $cstArchivedMentors->Prof_Reg_No->CellCssClass = "";
$cstArchivedMentors->Prof_Reg_No->CellAttrs = array(); $cstArchivedMentors->Prof_Reg_No->ViewAttrs = array(); $cstArchivedMentors->Prof_Reg_No->EditAttrs = array();
// Reg No
$cstArchivedMentors->Reg_No->CellCssStyle = ""; $cstArchivedMentors->Reg_No->CellCssClass = "";
$cstArchivedMentors->Reg_No->CellAttrs = array(); $cstArchivedMentors->Reg_No->ViewAttrs = array(); $cstArchivedMentors->Reg_No->EditAttrs = array();
if ($cstArchivedMentors->RowType == EW_ROWTYPE_VIEW) { // View row
// CCMMentorID
$cstArchivedMentors->CCMMentorID->ViewValue = $cstArchivedMentors->CCMMentorID->CurrentValue;
$cstArchivedMentors->CCMMentorID->CssStyle = "";
$cstArchivedMentors->CCMMentorID->CssClass = "";
$cstArchivedMentors->CCMMentorID->ViewCustomAttributes = "";
// Organisation
$cstArchivedMentors->Organisation->ViewValue = $cstArchivedMentors->Organisation->CurrentValue;
$cstArchivedMentors->Organisation->CssStyle = "";
$cstArchivedMentors->Organisation->CssClass = "";
$cstArchivedMentors->Organisation->ViewCustomAttributes = "";
// Title
$cstArchivedMentors->Title->ViewValue = $cstArchivedMentors->Title->CurrentValue;
$cstArchivedMentors->Title->CssStyle = "";
$cstArchivedMentors->Title->CssClass = "";
$cstArchivedMentors->Title->ViewCustomAttributes = "";
// FirstName
$cstArchivedMentors->FirstName->ViewValue = $cstArchivedMentors->FirstName->CurrentValue;
$cstArchivedMentors->FirstName->CssStyle = "";
$cstArchivedMentors->FirstName->CssClass = "";
$cstArchivedMentors->FirstName->ViewCustomAttributes = "";
// Surname
$cstArchivedMentors->Surname->ViewValue = $cstArchivedMentors->Surname->CurrentValue;
$cstArchivedMentors->Surname->CssStyle = "";
$cstArchivedMentors->Surname->CssClass = "";
$cstArchivedMentors->Surname->ViewCustomAttributes = "";
// KnownAs
$cstArchivedMentors->KnownAs->ViewValue = $cstArchivedMentors->KnownAs->CurrentValue;
$cstArchivedMentors->KnownAs->CssStyle = "";
$cstArchivedMentors->KnownAs->CssClass = "";
$cstArchivedMentors->KnownAs->ViewCustomAttributes = "";
// IDNumber
$cstArchivedMentors->IDNumber->ViewValue = $cstArchivedMentors->IDNumber->CurrentValue;
$cstArchivedMentors->IDNumber->CssStyle = "";
$cstArchivedMentors->IDNumber->CssClass = "";
$cstArchivedMentors->IDNumber->ViewCustomAttributes = "";
// CategoryReg
$cstArchivedMentors->CategoryReg->ViewValue = $cstArchivedMentors->CategoryReg->CurrentValue;
$cstArchivedMentors->CategoryReg->CssStyle = "";
$cstArchivedMentors->CategoryReg->CssClass = "";
$cstArchivedMentors->CategoryReg->ViewCustomAttributes = "";
// ProfessionalCouncil
$cstArchivedMentors->ProfessionalCouncil->ViewValue = $cstArchivedMentors->ProfessionalCouncil->CurrentValue;
$cstArchivedMentors->ProfessionalCouncil->CssStyle = "";
$cstArchivedMentors->ProfessionalCouncil->CssClass = "";
$cstArchivedMentors->ProfessionalCouncil->ViewCustomAttributes = "";
// CouncilRegNumber
$cstArchivedMentors->CouncilRegNumber->ViewValue = $cstArchivedMentors->CouncilRegNumber->CurrentValue;
$cstArchivedMentors->CouncilRegNumber->CssStyle = "";
$cstArchivedMentors->CouncilRegNumber->CssClass = "";
$cstArchivedMentors->CouncilRegNumber->ViewCustomAttributes = "";
// Telephone
$cstArchivedMentors->Telephone->ViewValue = $cstArchivedMentors->Telephone->CurrentValue;
$cstArchivedMentors->Telephone->CssStyle = "";
$cstArchivedMentors->Telephone->CssClass = "";
$cstArchivedMentors->Telephone->ViewCustomAttributes = "";
// Cellphone
$cstArchivedMentors->Cellphone->ViewValue = $cstArchivedMentors->Cellphone->CurrentValue;
$cstArchivedMentors->Cellphone->CssStyle = "";
$cstArchivedMentors->Cellphone->CssClass = "";
$cstArchivedMentors->Cellphone->ViewCustomAttributes = "";
// EmailAddress
$cstArchivedMentors->EmailAddress->ViewValue = $cstArchivedMentors->EmailAddress->CurrentValue;
$cstArchivedMentors->EmailAddress->CssStyle = "";
$cstArchivedMentors->EmailAddress->CssClass = "";
$cstArchivedMentors->EmailAddress->ViewCustomAttributes = "";
// WorkAddress
$cstArchivedMentors->WorkAddress->ViewValue = $cstArchivedMentors->WorkAddress->CurrentValue;
$cstArchivedMentors->WorkAddress->CssStyle = "";
$cstArchivedMentors->WorkAddress->CssClass = "";
$cstArchivedMentors->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$cstArchivedMentors->PostalAddress->ViewValue = $cstArchivedMentors->PostalAddress->CurrentValue;
$cstArchivedMentors->PostalAddress->CssStyle = "";
$cstArchivedMentors->PostalAddress->CssClass = "";
$cstArchivedMentors->PostalAddress->ViewCustomAttributes = "";
// EducationalInst
$cstArchivedMentors->EducationalInst->ViewValue = $cstArchivedMentors->EducationalInst->CurrentValue;
$cstArchivedMentors->EducationalInst->CssStyle = "";
$cstArchivedMentors->EducationalInst->CssClass = "";
$cstArchivedMentors->EducationalInst->ViewCustomAttributes = "";
// Qualifications
$cstArchivedMentors->Qualifications->ViewValue = $cstArchivedMentors->Qualifications->CurrentValue;
$cstArchivedMentors->Qualifications->CssStyle = "";
$cstArchivedMentors->Qualifications->CssClass = "";
$cstArchivedMentors->Qualifications->ViewCustomAttributes = "";
// CVFile
$cstArchivedMentors->CVFile->ViewValue = $cstArchivedMentors->CVFile->CurrentValue;
$cstArchivedMentors->CVFile->CssStyle = "";
$cstArchivedMentors->CVFile->CssClass = "";
$cstArchivedMentors->CVFile->ViewCustomAttributes = "";
// MentorUndertaking
$cstArchivedMentors->MentorUndertaking->ViewValue = $cstArchivedMentors->MentorUndertaking->CurrentValue;
$cstArchivedMentors->MentorUndertaking->CssStyle = "";
$cstArchivedMentors->MentorUndertaking->CssClass = "";
$cstArchivedMentors->MentorUndertaking->ViewCustomAttributes = "";
// CandUUndertaking
$cstArchivedMentors->CandUUndertaking->ViewValue = $cstArchivedMentors->CandUUndertaking->CurrentValue;
$cstArchivedMentors->CandUUndertaking->CssStyle = "";
$cstArchivedMentors->CandUUndertaking->CssClass = "";
$cstArchivedMentors->CandUUndertaking->ViewCustomAttributes = "";
// WebUsername
$cstArchivedMentors->WebUsername->ViewValue = $cstArchivedMentors->WebUsername->CurrentValue;
$cstArchivedMentors->WebUsername->CssStyle = "";
$cstArchivedMentors->WebUsername->CssClass = "";
$cstArchivedMentors->WebUsername->ViewCustomAttributes = "";
// WebPassword
$cstArchivedMentors->WebPassword->ViewValue = $cstArchivedMentors->WebPassword->CurrentValue;
$cstArchivedMentors->WebPassword->CssStyle = "";
$cstArchivedMentors->WebPassword->CssClass = "";
$cstArchivedMentors->WebPassword->ViewCustomAttributes = "";
// BlockAccess
if (strval($cstArchivedMentors->BlockAccess->CurrentValue) <> "") {
switch ($cstArchivedMentors->BlockAccess->CurrentValue) {
case "y":
$cstArchivedMentors->BlockAccess->ViewValue = "Yes";
break;
case "n":
$cstArchivedMentors->BlockAccess->ViewValue = "No";
break;
default:
$cstArchivedMentors->BlockAccess->ViewValue = $cstArchivedMentors->BlockAccess->CurrentValue;
}
} else {
$cstArchivedMentors->BlockAccess->ViewValue = NULL;
}
$cstArchivedMentors->BlockAccess->CssStyle = "";
$cstArchivedMentors->BlockAccess->CssClass = "";
$cstArchivedMentors->BlockAccess->ViewCustomAttributes = "";
// Initials
$cstArchivedMentors->Initials->ViewValue = $cstArchivedMentors->Initials->CurrentValue;
$cstArchivedMentors->Initials->CssStyle = "";
$cstArchivedMentors->Initials->CssClass = "";
$cstArchivedMentors->Initials->ViewCustomAttributes = "";
// Archived
if (strval($cstArchivedMentors->Archived->CurrentValue) <> "") {
switch ($cstArchivedMentors->Archived->CurrentValue) {
case "1":
$cstArchivedMentors->Archived->ViewValue = "Yes";
break;
case "0":
$cstArchivedMentors->Archived->ViewValue = "No";
break;
default:
$cstArchivedMentors->Archived->ViewValue = $cstArchivedMentors->Archived->CurrentValue;
}
} else {
$cstArchivedMentors->Archived->ViewValue = NULL;
}
$cstArchivedMentors->Archived->CssStyle = "";
$cstArchivedMentors->Archived->CssClass = "";
$cstArchivedMentors->Archived->ViewCustomAttributes = "";
// Designation
$cstArchivedMentors->Designation->ViewValue = $cstArchivedMentors->Designation->CurrentValue;
$cstArchivedMentors->Designation->CssStyle = "";
$cstArchivedMentors->Designation->CssClass = "";
$cstArchivedMentors->Designation->ViewCustomAttributes = "";
// Prof Reg No
$cstArchivedMentors->Prof_Reg_No->ViewValue = $cstArchivedMentors->Prof_Reg_No->CurrentValue;
$cstArchivedMentors->Prof_Reg_No->CssStyle = "";
$cstArchivedMentors->Prof_Reg_No->CssClass = "";
$cstArchivedMentors->Prof_Reg_No->ViewCustomAttributes = "";
// Reg No
$cstArchivedMentors->Reg_No->ViewValue = $cstArchivedMentors->Reg_No->CurrentValue;
$cstArchivedMentors->Reg_No->CssStyle = "";
$cstArchivedMentors->Reg_No->CssClass = "";
$cstArchivedMentors->Reg_No->ViewCustomAttributes = "";
// CCMMentorID
$cstArchivedMentors->CCMMentorID->HrefValue = "";
$cstArchivedMentors->CCMMentorID->TooltipValue = "";
// Organisation
$cstArchivedMentors->Organisation->HrefValue = "";
$cstArchivedMentors->Organisation->TooltipValue = "";
// Title
$cstArchivedMentors->Title->HrefValue = "";
$cstArchivedMentors->Title->TooltipValue = "";
// FirstName
$cstArchivedMentors->FirstName->HrefValue = "";
$cstArchivedMentors->FirstName->TooltipValue = "";
// Surname
$cstArchivedMentors->Surname->HrefValue = "";
$cstArchivedMentors->Surname->TooltipValue = "";
// KnownAs
$cstArchivedMentors->KnownAs->HrefValue = "";
$cstArchivedMentors->KnownAs->TooltipValue = "";
// IDNumber
$cstArchivedMentors->IDNumber->HrefValue = "";
$cstArchivedMentors->IDNumber->TooltipValue = "";
// CategoryReg
$cstArchivedMentors->CategoryReg->HrefValue = "";
$cstArchivedMentors->CategoryReg->TooltipValue = "";
// ProfessionalCouncil
$cstArchivedMentors->ProfessionalCouncil->HrefValue = "";
$cstArchivedMentors->ProfessionalCouncil->TooltipValue = "";
// CouncilRegNumber
$cstArchivedMentors->CouncilRegNumber->HrefValue = "";
$cstArchivedMentors->CouncilRegNumber->TooltipValue = "";
// Telephone
$cstArchivedMentors->Telephone->HrefValue = "";
$cstArchivedMentors->Telephone->TooltipValue = "";
// Cellphone
$cstArchivedMentors->Cellphone->HrefValue = "";
$cstArchivedMentors->Cellphone->TooltipValue = "";
// EmailAddress
$cstArchivedMentors->EmailAddress->HrefValue = "";
$cstArchivedMentors->EmailAddress->TooltipValue = "";
// WorkAddress
$cstArchivedMentors->WorkAddress->HrefValue = "";
$cstArchivedMentors->WorkAddress->TooltipValue = "";
// PostalAddress
$cstArchivedMentors->PostalAddress->HrefValue = "";
$cstArchivedMentors->PostalAddress->TooltipValue = "";
// EducationalInst
$cstArchivedMentors->EducationalInst->HrefValue = "";
$cstArchivedMentors->EducationalInst->TooltipValue = "";
// Qualifications
$cstArchivedMentors->Qualifications->HrefValue = "";
$cstArchivedMentors->Qualifications->TooltipValue = "";
// CVFile
$cstArchivedMentors->CVFile->HrefValue = "";
$cstArchivedMentors->CVFile->TooltipValue = "";
// MentorUndertaking
$cstArchivedMentors->MentorUndertaking->HrefValue = "";
$cstArchivedMentors->MentorUndertaking->TooltipValue = "";
// CandUUndertaking
$cstArchivedMentors->CandUUndertaking->HrefValue = "";
$cstArchivedMentors->CandUUndertaking->TooltipValue = "";
// WebUsername
$cstArchivedMentors->WebUsername->HrefValue = "";
$cstArchivedMentors->WebUsername->TooltipValue = "";
// WebPassword
$cstArchivedMentors->WebPassword->HrefValue = "";
$cstArchivedMentors->WebPassword->TooltipValue = "";
// BlockAccess
$cstArchivedMentors->BlockAccess->HrefValue = "";
$cstArchivedMentors->BlockAccess->TooltipValue = "";
// Initials
$cstArchivedMentors->Initials->HrefValue = "";
$cstArchivedMentors->Initials->TooltipValue = "";
// Archived
$cstArchivedMentors->Archived->HrefValue = "";
$cstArchivedMentors->Archived->TooltipValue = "";
// Designation
$cstArchivedMentors->Designation->HrefValue = "";
$cstArchivedMentors->Designation->TooltipValue = "";
// Prof Reg No
$cstArchivedMentors->Prof_Reg_No->HrefValue = "";
$cstArchivedMentors->Prof_Reg_No->TooltipValue = "";
// Reg No
$cstArchivedMentors->Reg_No->HrefValue = "";
$cstArchivedMentors->Reg_No->TooltipValue = "";
} elseif ($cstArchivedMentors->RowType == EW_ROWTYPE_EDIT) { // Edit row
// CCMMentorID
$cstArchivedMentors->CCMMentorID->EditCustomAttributes = "";
$cstArchivedMentors->CCMMentorID->EditValue = $cstArchivedMentors->CCMMentorID->CurrentValue;
$cstArchivedMentors->CCMMentorID->CssStyle = "";
$cstArchivedMentors->CCMMentorID->CssClass = "";
$cstArchivedMentors->CCMMentorID->ViewCustomAttributes = "";
// Organisation
$cstArchivedMentors->Organisation->EditCustomAttributes = "";
$cstArchivedMentors->Organisation->EditValue = ew_HtmlEncode($cstArchivedMentors->Organisation->CurrentValue);
// Title
$cstArchivedMentors->Title->EditCustomAttributes = "";
$cstArchivedMentors->Title->EditValue = ew_HtmlEncode($cstArchivedMentors->Title->CurrentValue);
// FirstName
$cstArchivedMentors->FirstName->EditCustomAttributes = "";
$cstArchivedMentors->FirstName->EditValue = ew_HtmlEncode($cstArchivedMentors->FirstName->CurrentValue);
// Surname
$cstArchivedMentors->Surname->EditCustomAttributes = "";
$cstArchivedMentors->Surname->EditValue = ew_HtmlEncode($cstArchivedMentors->Surname->CurrentValue);
// KnownAs
$cstArchivedMentors->KnownAs->EditCustomAttributes = "";
$cstArchivedMentors->KnownAs->EditValue = ew_HtmlEncode($cstArchivedMentors->KnownAs->CurrentValue);
// IDNumber
$cstArchivedMentors->IDNumber->EditCustomAttributes = "";
$cstArchivedMentors->IDNumber->EditValue = ew_HtmlEncode($cstArchivedMentors->IDNumber->CurrentValue);
// CategoryReg
$cstArchivedMentors->CategoryReg->EditCustomAttributes = "";
$cstArchivedMentors->CategoryReg->EditValue = ew_HtmlEncode($cstArchivedMentors->CategoryReg->CurrentValue);
// ProfessionalCouncil
$cstArchivedMentors->ProfessionalCouncil->EditCustomAttributes = "";
$cstArchivedMentors->ProfessionalCouncil->EditValue = ew_HtmlEncode($cstArchivedMentors->ProfessionalCouncil->CurrentValue);
// CouncilRegNumber
$cstArchivedMentors->CouncilRegNumber->EditCustomAttributes = "";
$cstArchivedMentors->CouncilRegNumber->EditValue = ew_HtmlEncode($cstArchivedMentors->CouncilRegNumber->CurrentValue);
// Telephone
$cstArchivedMentors->Telephone->EditCustomAttributes = "";
$cstArchivedMentors->Telephone->EditValue = ew_HtmlEncode($cstArchivedMentors->Telephone->CurrentValue);
// Cellphone
$cstArchivedMentors->Cellphone->EditCustomAttributes = "";
$cstArchivedMentors->Cellphone->EditValue = ew_HtmlEncode($cstArchivedMentors->Cellphone->CurrentValue);
// EmailAddress
$cstArchivedMentors->EmailAddress->EditCustomAttributes = "";
$cstArchivedMentors->EmailAddress->EditValue = ew_HtmlEncode($cstArchivedMentors->EmailAddress->CurrentValue);
// WorkAddress
$cstArchivedMentors->WorkAddress->EditCustomAttributes = "";
$cstArchivedMentors->WorkAddress->EditValue = ew_HtmlEncode($cstArchivedMentors->WorkAddress->CurrentValue);
// PostalAddress
$cstArchivedMentors->PostalAddress->EditCustomAttributes = "";
$cstArchivedMentors->PostalAddress->EditValue = ew_HtmlEncode($cstArchivedMentors->PostalAddress->CurrentValue);
// EducationalInst
$cstArchivedMentors->EducationalInst->EditCustomAttributes = "";
$cstArchivedMentors->EducationalInst->EditValue = ew_HtmlEncode($cstArchivedMentors->EducationalInst->CurrentValue);
// Qualifications
$cstArchivedMentors->Qualifications->EditCustomAttributes = "";
$cstArchivedMentors->Qualifications->EditValue = ew_HtmlEncode($cstArchivedMentors->Qualifications->CurrentValue);
// CVFile
$cstArchivedMentors->CVFile->EditCustomAttributes = "";
$cstArchivedMentors->CVFile->EditValue = ew_HtmlEncode($cstArchivedMentors->CVFile->CurrentValue);
// MentorUndertaking
$cstArchivedMentors->MentorUndertaking->EditCustomAttributes = "";
$cstArchivedMentors->MentorUndertaking->EditValue = ew_HtmlEncode($cstArchivedMentors->MentorUndertaking->CurrentValue);
// CandUUndertaking
$cstArchivedMentors->CandUUndertaking->EditCustomAttributes = "";
$cstArchivedMentors->CandUUndertaking->EditValue = ew_HtmlEncode($cstArchivedMentors->CandUUndertaking->CurrentValue);
// WebUsername
$cstArchivedMentors->WebUsername->EditCustomAttributes = "";
$cstArchivedMentors->WebUsername->EditValue = ew_HtmlEncode($cstArchivedMentors->WebUsername->CurrentValue);
// WebPassword
$cstArchivedMentors->WebPassword->EditCustomAttributes = "";
$cstArchivedMentors->WebPassword->EditValue = ew_HtmlEncode($cstArchivedMentors->WebPassword->CurrentValue);
// BlockAccess
$cstArchivedMentors->BlockAccess->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("y", "Yes");
$arwrk[] = array("n", "No");
$cstArchivedMentors->BlockAccess->EditValue = $arwrk;
// Initials
$cstArchivedMentors->Initials->EditCustomAttributes = "";
$cstArchivedMentors->Initials->EditValue = ew_HtmlEncode($cstArchivedMentors->Initials->CurrentValue);
// Archived
$cstArchivedMentors->Archived->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$cstArchivedMentors->Archived->EditValue = $arwrk;
// Designation
$cstArchivedMentors->Designation->EditCustomAttributes = "";
$cstArchivedMentors->Designation->EditValue = ew_HtmlEncode($cstArchivedMentors->Designation->CurrentValue);
// Prof Reg No
$cstArchivedMentors->Prof_Reg_No->EditCustomAttributes = "";
$cstArchivedMentors->Prof_Reg_No->EditValue = ew_HtmlEncode($cstArchivedMentors->Prof_Reg_No->CurrentValue);
// Reg No
$cstArchivedMentors->Reg_No->EditCustomAttributes = "";
$cstArchivedMentors->Reg_No->EditValue = ew_HtmlEncode($cstArchivedMentors->Reg_No->CurrentValue);
// Edit refer script
// CCMMentorID
$cstArchivedMentors->CCMMentorID->HrefValue = "";
// Organisation
$cstArchivedMentors->Organisation->HrefValue = "";
// Title
$cstArchivedMentors->Title->HrefValue = "";
// FirstName
$cstArchivedMentors->FirstName->HrefValue = "";
// Surname
$cstArchivedMentors->Surname->HrefValue = "";
// KnownAs
$cstArchivedMentors->KnownAs->HrefValue = "";
// IDNumber
$cstArchivedMentors->IDNumber->HrefValue = "";
// CategoryReg
$cstArchivedMentors->CategoryReg->HrefValue = "";
// ProfessionalCouncil
$cstArchivedMentors->ProfessionalCouncil->HrefValue = "";
// CouncilRegNumber
$cstArchivedMentors->CouncilRegNumber->HrefValue = "";
// Telephone
$cstArchivedMentors->Telephone->HrefValue = "";
// Cellphone
$cstArchivedMentors->Cellphone->HrefValue = "";
// EmailAddress
$cstArchivedMentors->EmailAddress->HrefValue = "";
// WorkAddress
$cstArchivedMentors->WorkAddress->HrefValue = "";
// PostalAddress
$cstArchivedMentors->PostalAddress->HrefValue = "";
// EducationalInst
$cstArchivedMentors->EducationalInst->HrefValue = "";
// Qualifications
$cstArchivedMentors->Qualifications->HrefValue = "";
// CVFile
$cstArchivedMentors->CVFile->HrefValue = "";
// MentorUndertaking
$cstArchivedMentors->MentorUndertaking->HrefValue = "";
// CandUUndertaking
$cstArchivedMentors->CandUUndertaking->HrefValue = "";
// WebUsername
$cstArchivedMentors->WebUsername->HrefValue = "";
// WebPassword
$cstArchivedMentors->WebPassword->HrefValue = "";
// BlockAccess
$cstArchivedMentors->BlockAccess->HrefValue = "";
// Initials
$cstArchivedMentors->Initials->HrefValue = "";
// Archived
$cstArchivedMentors->Archived->HrefValue = "";
// Designation
$cstArchivedMentors->Designation->HrefValue = "";
// Prof Reg No
$cstArchivedMentors->Prof_Reg_No->HrefValue = "";
// Reg No
$cstArchivedMentors->Reg_No->HrefValue = "";
}
// Call Row Rendered event
if ($cstArchivedMentors->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$cstArchivedMentors->Row_Rendered();
}
// Validate form
function ValidateForm() {
global $Language, $gsFormError, $cstArchivedMentors;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE)
return ($gsFormError == "");
if (!is_null($cstArchivedMentors->FirstName->FormValue) && $cstArchivedMentors->FirstName->FormValue == "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $cstArchivedMentors->FirstName->FldCaption();
}
if (!is_null($cstArchivedMentors->Surname->FormValue) && $cstArchivedMentors->Surname->FormValue == "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $cstArchivedMentors->Surname->FldCaption();
}
// Return validate result
$ValidateForm = ($gsFormError == "");
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError <> "") {
$gsFormError .= ($gsFormError <> "") ? "<br>" : "";
$gsFormError .= $sFormCustomError;
}
return $ValidateForm;
}
// Update record based on key values
function EditRow() {
global $conn, $Security, $Language, $cstArchivedMentors;
$sFilter = $cstArchivedMentors->KeyFilter();
$cstArchivedMentors->CurrentFilter = $sFilter;
$sSql = $cstArchivedMentors->SQL();
$conn->raiseErrorFn = 'ew_ErrorFn';
$rs = $conn->Execute($sSql);
$conn->raiseErrorFn = '';
if ($rs === FALSE)
return FALSE;
if ($rs->EOF) {
$EditRow = FALSE; // Update Failed
} else {
// Save old values
$rsold =& $rs->fields;
$rsnew = array();
// Organisation
$cstArchivedMentors->Organisation->SetDbValueDef($rsnew, $cstArchivedMentors->Organisation->CurrentValue, NULL, FALSE);
// Title
$cstArchivedMentors->Title->SetDbValueDef($rsnew, $cstArchivedMentors->Title->CurrentValue, NULL, FALSE);
// FirstName
$cstArchivedMentors->FirstName->SetDbValueDef($rsnew, $cstArchivedMentors->FirstName->CurrentValue, "", FALSE);
// Surname
$cstArchivedMentors->Surname->SetDbValueDef($rsnew, $cstArchivedMentors->Surname->CurrentValue, "", FALSE);
// KnownAs
$cstArchivedMentors->KnownAs->SetDbValueDef($rsnew, $cstArchivedMentors->KnownAs->CurrentValue, NULL, FALSE);
// IDNumber
$cstArchivedMentors->IDNumber->SetDbValueDef($rsnew, $cstArchivedMentors->IDNumber->CurrentValue, NULL, FALSE);
// CategoryReg
$cstArchivedMentors->CategoryReg->SetDbValueDef($rsnew, $cstArchivedMentors->CategoryReg->CurrentValue, NULL, FALSE);
// ProfessionalCouncil
$cstArchivedMentors->ProfessionalCouncil->SetDbValueDef($rsnew, $cstArchivedMentors->ProfessionalCouncil->CurrentValue, NULL, FALSE);
// CouncilRegNumber
$cstArchivedMentors->CouncilRegNumber->SetDbValueDef($rsnew, $cstArchivedMentors->CouncilRegNumber->CurrentValue, NULL, FALSE);
// Telephone
$cstArchivedMentors->Telephone->SetDbValueDef($rsnew, $cstArchivedMentors->Telephone->CurrentValue, NULL, FALSE);
// Cellphone
$cstArchivedMentors->Cellphone->SetDbValueDef($rsnew, $cstArchivedMentors->Cellphone->CurrentValue, NULL, FALSE);
// EmailAddress
$cstArchivedMentors->EmailAddress->SetDbValueDef($rsnew, $cstArchivedMentors->EmailAddress->CurrentValue, NULL, FALSE);
// WorkAddress
$cstArchivedMentors->WorkAddress->SetDbValueDef($rsnew, $cstArchivedMentors->WorkAddress->CurrentValue, NULL, FALSE);
// PostalAddress
$cstArchivedMentors->PostalAddress->SetDbValueDef($rsnew, $cstArchivedMentors->PostalAddress->CurrentValue, NULL, FALSE);
// EducationalInst
$cstArchivedMentors->EducationalInst->SetDbValueDef($rsnew, $cstArchivedMentors->EducationalInst->CurrentValue, NULL, FALSE);
// Qualifications
$cstArchivedMentors->Qualifications->SetDbValueDef($rsnew, $cstArchivedMentors->Qualifications->CurrentValue, NULL, FALSE);
// CVFile
$cstArchivedMentors->CVFile->SetDbValueDef($rsnew, $cstArchivedMentors->CVFile->CurrentValue, NULL, FALSE);
// MentorUndertaking
$cstArchivedMentors->MentorUndertaking->SetDbValueDef($rsnew, $cstArchivedMentors->MentorUndertaking->CurrentValue, NULL, FALSE);
// CandUUndertaking
$cstArchivedMentors->CandUUndertaking->SetDbValueDef($rsnew, $cstArchivedMentors->CandUUndertaking->CurrentValue, NULL, FALSE);
// WebUsername
$cstArchivedMentors->WebUsername->SetDbValueDef($rsnew, $cstArchivedMentors->WebUsername->CurrentValue, NULL, FALSE);
// WebPassword
$cstArchivedMentors->WebPassword->SetDbValueDef($rsnew, $cstArchivedMentors->WebPassword->CurrentValue, NULL, FALSE);
// BlockAccess
$cstArchivedMentors->BlockAccess->SetDbValueDef($rsnew, $cstArchivedMentors->BlockAccess->CurrentValue, "", FALSE);
// Initials
$cstArchivedMentors->Initials->SetDbValueDef($rsnew, $cstArchivedMentors->Initials->CurrentValue, NULL, FALSE);
// Archived
$cstArchivedMentors->Archived->SetDbValueDef($rsnew, $cstArchivedMentors->Archived->CurrentValue, 0, FALSE);
// Designation
$cstArchivedMentors->Designation->SetDbValueDef($rsnew, $cstArchivedMentors->Designation->CurrentValue, NULL, FALSE);
// Prof Reg No
$cstArchivedMentors->Prof_Reg_No->SetDbValueDef($rsnew, $cstArchivedMentors->Prof_Reg_No->CurrentValue, NULL, FALSE);
// Reg No
$cstArchivedMentors->Reg_No->SetDbValueDef($rsnew, $cstArchivedMentors->Reg_No->CurrentValue, NULL, FALSE);
// Call Row Updating event
$bUpdateRow = $cstArchivedMentors->Row_Updating($rsold, $rsnew);
if ($bUpdateRow) {
$conn->raiseErrorFn = 'ew_ErrorFn';
$EditRow = $conn->Execute($cstArchivedMentors->UpdateSQL($rsnew));
$conn->raiseErrorFn = '';
} else {
if ($cstArchivedMentors->CancelMessage <> "") {
$this->setMessage($cstArchivedMentors->CancelMessage);
$cstArchivedMentors->CancelMessage = "";
} else {
$this->setMessage($Language->Phrase("UpdateCancelled"));
}
$EditRow = FALSE;
}
}
// Call Row_Updated event
if ($EditRow)
$cstArchivedMentors->Row_Updated($rsold, $rsnew);
$rs->Close();
return $EditRow;
}
// Page Load event
function Page_Load() {
//echo "Page Load";
}
// Page Unload event
function Page_Unload() {
//echo "Page Unload";
}
// Page Redirecting event
function Page_Redirecting(&$url) {
// Example:
//$url = "your URL";
}
// Message Showing event
function Message_Showing(&$msg) {
// Example:
//$msg = "your new message";
}
// Form Custom Validate event
function Form_CustomValidate(&$CustomError) {
// Return error message in CustomError
return TRUE;
}
}
?>