| Current Path : /var/www/cesa.co.za/cceadmin/ |
| Current File : /var/www/cesa.co.za/cceadmin/CCEStudentssrch.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 "CCEStudentsinfo.php" ?>
<?php include "CCEUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
// Create page object
$CCEStudents_search = new cCCEStudents_search();
$Page =& $CCEStudents_search;
// Page init
$CCEStudents_search->Page_Init();
// Page main
$CCEStudents_search->Page_Main();
?>
<?php include "header.php" ?>
<script type="text/javascript">
<!--
// Create page object
var CCEStudents_search = new ew_Page("CCEStudents_search");
// page properties
CCEStudents_search.PageID = "search"; // page ID
CCEStudents_search.FormID = "fCCEStudentssearch"; // form ID
var EW_PAGE_ID = CCEStudents_search.PageID; // for backward compatibility
// extend page with validate function for search
CCEStudents_search.ValidateSearch = function(fobj) {
ew_PostAutoSuggest(fobj);
if (this.ValidateRequired) {
var infix = "";
elm = fobj.elements["x" + infix + "_Age"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "<?php echo ew_JsEncode2($CCEStudents->Age->FldErrMsg()) ?>");
// Call Form Custom Validate event
if (!this.Form_CustomValidate(fobj))
return false;
}
for (var i=0; i<fobj.elements.length; i++) {
var elem = fobj.elements[i];
if (elem.name.substring(0,2) == "s_" || elem.name.substring(0,3) == "sv_")
elem.value = "";
}
return true;
}
// extend page with Form_CustomValidate function
CCEStudents_search.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) { ?>
CCEStudents_search.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
CCEStudents_search.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("Search") ?> <?php echo $Language->Phrase("TblTypeTABLE") ?><?php echo $CCEStudents->TableCaption() ?><br><br>
<a href="<?php echo $CCEStudents->getReturnUrl() ?>"><?php echo $Language->Phrase("BackToList") ?></a></span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$CCEStudents_search->ShowMessage();
?>
<form name="fCCEStudentssearch" id="fCCEStudentssearch" action="<?php echo ew_CurrentPage() ?>" method="post" onsubmit="return CCEStudents_search.ValidateSearch(this);">
<p>
<input type="hidden" name="t" id="t" value="CCEStudents">
<input type="hidden" name="a_search" id="a_search" value="S">
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CCEStudentID->FldCaption() ?></td>
<td<?php echo $CCEStudents->CCEStudentID->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_CCEStudentID" id="z_CCEStudentID" value="="></span></td>
<td<?php echo $CCEStudents->CCEStudentID->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_CCEStudentID" id="x_CCEStudentID" title="<?php echo $CCEStudents->CCEStudentID->FldTitle() ?>" value="<?php echo $CCEStudents->CCEStudentID->EditValue ?>"<?php echo $CCEStudents->CCEStudentID->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Title->FldCaption() ?></td>
<td<?php echo $CCEStudents->Title->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_Title" id="z_Title" value="LIKE"></span></td>
<td<?php echo $CCEStudents->Title->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_Title" id="x_Title" title="<?php echo $CCEStudents->Title->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCEStudents->Title->EditValue ?>"<?php echo $CCEStudents->Title->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->KnownAs->FldCaption() ?></td>
<td<?php echo $CCEStudents->KnownAs->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_KnownAs" id="z_KnownAs" value="LIKE"></span></td>
<td<?php echo $CCEStudents->KnownAs->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_KnownAs" id="x_KnownAs" title="<?php echo $CCEStudents->KnownAs->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->KnownAs->EditValue ?>"<?php echo $CCEStudents->KnownAs->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->FirstName->FldCaption() ?></td>
<td<?php echo $CCEStudents->FirstName->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_FirstName" id="z_FirstName" value="LIKE"></span></td>
<td<?php echo $CCEStudents->FirstName->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_FirstName" id="x_FirstName" title="<?php echo $CCEStudents->FirstName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->FirstName->EditValue ?>"<?php echo $CCEStudents->FirstName->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Surname->FldCaption() ?></td>
<td<?php echo $CCEStudents->Surname->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_Surname" id="z_Surname" value="LIKE"></span></td>
<td<?php echo $CCEStudents->Surname->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_Surname" id="x_Surname" title="<?php echo $CCEStudents->Surname->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Surname->EditValue ?>"<?php echo $CCEStudents->Surname->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Organisation->FldCaption() ?></td>
<td<?php echo $CCEStudents->Organisation->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_Organisation" id="z_Organisation" value="LIKE"></span></td>
<td<?php echo $CCEStudents->Organisation->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_Organisation" id="x_Organisation" title="<?php echo $CCEStudents->Organisation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Organisation->EditValue ?>"<?php echo $CCEStudents->Organisation->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OrganisationType->FldCaption() ?></td>
<td<?php echo $CCEStudents->OrganisationType->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_OrganisationType" id="z_OrganisationType" value="LIKE"></span></td>
<td<?php echo $CCEStudents->OrganisationType->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_OrganisationType" id="x_OrganisationType" title="<?php echo $CCEStudents->OrganisationType->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->OrganisationType->EditValue ?>"<?php echo $CCEStudents->OrganisationType->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Designation->FldCaption() ?></td>
<td<?php echo $CCEStudents->Designation->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_Designation" id="z_Designation" value="LIKE"></span></td>
<td<?php echo $CCEStudents->Designation->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_Designation" id="x_Designation" title="<?php echo $CCEStudents->Designation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Designation->EditValue ?>"<?php echo $CCEStudents->Designation->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Department->FldCaption() ?></td>
<td<?php echo $CCEStudents->Department->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_Department" id="z_Department" value="LIKE"></span></td>
<td<?php echo $CCEStudents->Department->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_Department" id="x_Department" title="<?php echo $CCEStudents->Department->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Department->EditValue ?>"<?php echo $CCEStudents->Department->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->StudentNumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->StudentNumber->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_StudentNumber" id="z_StudentNumber" value="LIKE"></span></td>
<td<?php echo $CCEStudents->StudentNumber->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_StudentNumber" id="x_StudentNumber" title="<?php echo $CCEStudents->StudentNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->StudentNumber->EditValue ?>"<?php echo $CCEStudents->StudentNumber->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CCEFacilitatorID->FldCaption() ?></td>
<td<?php echo $CCEStudents->CCEFacilitatorID->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_CCEFacilitatorID" id="z_CCEFacilitatorID" value="="></span></td>
<td<?php echo $CCEStudents->CCEFacilitatorID->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<select id="x_CCEFacilitatorID" name="x_CCEFacilitatorID" title="<?php echo $CCEStudents->CCEFacilitatorID->FldTitle() ?>"<?php echo $CCEStudents->CCEFacilitatorID->EditAttributes() ?>>
<?php
if (is_array($CCEStudents->CCEFacilitatorID->EditValue)) {
$arwrk = $CCEStudents->CCEFacilitatorID->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->CCEFacilitatorID->AdvancedSearch->SearchValue) == 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>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Project->FldCaption() ?></td>
<td<?php echo $CCEStudents->Project->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_Project" id="z_Project" value="="></span></td>
<td<?php echo $CCEStudents->Project->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<select id="x_Project" name="x_Project" title="<?php echo $CCEStudents->Project->FldTitle() ?>"<?php echo $CCEStudents->Project->EditAttributes() ?>>
<?php
if (is_array($CCEStudents->Project->EditValue)) {
$arwrk = $CCEStudents->Project->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->Project->AdvancedSearch->SearchValue) == 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>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ProjectDiscipline->FldCaption() ?></td>
<td<?php echo $CCEStudents->ProjectDiscipline->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ProjectDiscipline" id="z_ProjectDiscipline" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ProjectDiscipline->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_ProjectDiscipline" id="x_ProjectDiscipline" title="<?php echo $CCEStudents->ProjectDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->ProjectDiscipline->EditValue ?>"<?php echo $CCEStudents->ProjectDiscipline->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ProjectCode->FldCaption() ?></td>
<td<?php echo $CCEStudents->ProjectCode->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ProjectCode" id="z_ProjectCode" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ProjectCode->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_ProjectCode" id="x_ProjectCode" title="<?php echo $CCEStudents->ProjectCode->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->ProjectCode->EditValue ?>"<?php echo $CCEStudents->ProjectCode->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->IDNumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->IDNumber->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_IDNumber" id="z_IDNumber" value="LIKE"></span></td>
<td<?php echo $CCEStudents->IDNumber->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_IDNumber" id="x_IDNumber" title="<?php echo $CCEStudents->IDNumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->IDNumber->EditValue ?>"<?php echo $CCEStudents->IDNumber->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ECSARegistered->FldCaption() ?></td>
<td<?php echo $CCEStudents->ECSARegistered->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ECSARegistered" id="z_ECSARegistered" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ECSARegistered->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<div id="tp_x_ECSARegistered" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_ECSARegistered" id="x_ECSARegistered" title="<?php echo $CCEStudents->ECSARegistered->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->ECSARegistered->EditAttributes() ?>></label></div>
<div id="dsl_x_ECSARegistered" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->ECSARegistered->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->ECSARegistered->AdvancedSearch->SearchValue) == 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_ECSARegistered" id="x_ECSARegistered" title="<?php echo $CCEStudents->ECSARegistered->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->ECSARegistered->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ECSACategory->FldCaption() ?></td>
<td<?php echo $CCEStudents->ECSACategory->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ECSACategory" id="z_ECSACategory" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ECSACategory->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<select id="x_ECSACategory" name="x_ECSACategory" title="<?php echo $CCEStudents->ECSACategory->FldTitle() ?>"<?php echo $CCEStudents->ECSACategory->EditAttributes() ?>>
<?php
if (is_array($CCEStudents->ECSACategory->EditValue)) {
$arwrk = $CCEStudents->ECSACategory->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->ECSACategory->AdvancedSearch->SearchValue) == 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>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ECSANumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->ECSANumber->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ECSANumber" id="z_ECSANumber" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ECSANumber->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_ECSANumber" id="x_ECSANumber" title="<?php echo $CCEStudents->ECSANumber->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->ECSANumber->EditValue ?>"<?php echo $CCEStudents->ECSANumber->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyRegistered->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyRegistered->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_OtherStatutoryBodyRegistered" id="z_OtherStatutoryBodyRegistered" value="="></span></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyRegistered->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<div id="tp_x_OtherStatutoryBodyRegistered" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_OtherStatutoryBodyRegistered" id="x_OtherStatutoryBodyRegistered" title="<?php echo $CCEStudents->OtherStatutoryBodyRegistered->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->OtherStatutoryBodyRegistered->EditAttributes() ?>></label></div>
<div id="dsl_x_OtherStatutoryBodyRegistered" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->OtherStatutoryBodyRegistered->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->OtherStatutoryBodyRegistered->AdvancedSearch->SearchValue) == 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_OtherStatutoryBodyRegistered" id="x_OtherStatutoryBodyRegistered" title="<?php echo $CCEStudents->OtherStatutoryBodyRegistered->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->OtherStatutoryBodyRegistered->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyName->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyName->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_OtherStatutoryBodyName" id="z_OtherStatutoryBodyName" value="LIKE"></span></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyName->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_OtherStatutoryBodyName" id="x_OtherStatutoryBodyName" title="<?php echo $CCEStudents->OtherStatutoryBodyName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->OtherStatutoryBodyName->EditValue ?>"<?php echo $CCEStudents->OtherStatutoryBodyName->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyNumber->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyNumber->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_OtherStatutoryBodyNumber" id="z_OtherStatutoryBodyNumber" value="LIKE"></span></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyNumber->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_OtherStatutoryBodyNumber" id="x_OtherStatutoryBodyNumber" title="<?php echo $CCEStudents->OtherStatutoryBodyNumber->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->OtherStatutoryBodyNumber->EditValue ?>"<?php echo $CCEStudents->OtherStatutoryBodyNumber->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherStatutoryBodyCategory->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyCategory->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_OtherStatutoryBodyCategory" id="z_OtherStatutoryBodyCategory" value="LIKE"></span></td>
<td<?php echo $CCEStudents->OtherStatutoryBodyCategory->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_OtherStatutoryBodyCategory" id="x_OtherStatutoryBodyCategory" title="<?php echo $CCEStudents->OtherStatutoryBodyCategory->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->OtherStatutoryBodyCategory->EditValue ?>"<?php echo $CCEStudents->OtherStatutoryBodyCategory->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CESAMemberFirm->FldCaption() ?></td>
<td<?php echo $CCEStudents->CESAMemberFirm->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_CESAMemberFirm" id="z_CESAMemberFirm" value="LIKE"></span></td>
<td<?php echo $CCEStudents->CESAMemberFirm->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<div id="tp_x_CESAMemberFirm" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_CESAMemberFirm" id="x_CESAMemberFirm" title="<?php echo $CCEStudents->CESAMemberFirm->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->CESAMemberFirm->EditAttributes() ?>></label></div>
<div id="dsl_x_CESAMemberFirm" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->CESAMemberFirm->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->CESAMemberFirm->AdvancedSearch->SearchValue) == 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_CESAMemberFirm" id="x_CESAMemberFirm" title="<?php echo $CCEStudents->CESAMemberFirm->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->CESAMemberFirm->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OtherCEFirms->FldCaption() ?></td>
<td<?php echo $CCEStudents->OtherCEFirms->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_OtherCEFirms" id="z_OtherCEFirms" value="LIKE"></span></td>
<td<?php echo $CCEStudents->OtherCEFirms->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<textarea name="x_OtherCEFirms" id="x_OtherCEFirms" title="<?php echo $CCEStudents->OtherCEFirms->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->OtherCEFirms->EditAttributes() ?>><?php echo $CCEStudents->OtherCEFirms->EditValue ?></textarea>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Age->FldCaption() ?></td>
<td<?php echo $CCEStudents->Age->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_Age" id="z_Age" value="="></span></td>
<td<?php echo $CCEStudents->Age->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_Age" id="x_Age" title="<?php echo $CCEStudents->Age->FldTitle() ?>" size="30" value="<?php echo $CCEStudents->Age->EditValue ?>"<?php echo $CCEStudents->Age->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HighestQual->FldCaption() ?></td>
<td<?php echo $CCEStudents->HighestQual->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_HighestQual" id="z_HighestQual" value="LIKE"></span></td>
<td<?php echo $CCEStudents->HighestQual->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_HighestQual" id="x_HighestQual" title="<?php echo $CCEStudents->HighestQual->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HighestQual->EditValue ?>"<?php echo $CCEStudents->HighestQual->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->AreaDiscipline->FldCaption() ?></td>
<td<?php echo $CCEStudents->AreaDiscipline->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_AreaDiscipline" id="z_AreaDiscipline" value="LIKE"></span></td>
<td<?php echo $CCEStudents->AreaDiscipline->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_AreaDiscipline" id="x_AreaDiscipline" title="<?php echo $CCEStudents->AreaDiscipline->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->AreaDiscipline->EditValue ?>"<?php echo $CCEStudents->AreaDiscipline->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Telephone->FldCaption() ?></td>
<td<?php echo $CCEStudents->Telephone->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_Telephone" id="z_Telephone" value="LIKE"></span></td>
<td<?php echo $CCEStudents->Telephone->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_Telephone" id="x_Telephone" title="<?php echo $CCEStudents->Telephone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Telephone->EditValue ?>"<?php echo $CCEStudents->Telephone->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Cellphone->FldCaption() ?></td>
<td<?php echo $CCEStudents->Cellphone->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_Cellphone" id="z_Cellphone" value="LIKE"></span></td>
<td<?php echo $CCEStudents->Cellphone->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_Cellphone" id="x_Cellphone" title="<?php echo $CCEStudents->Cellphone->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->Cellphone->EditValue ?>"<?php echo $CCEStudents->Cellphone->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->EmailAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->EmailAddress->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_EmailAddress" id="z_EmailAddress" value="LIKE"></span></td>
<td<?php echo $CCEStudents->EmailAddress->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_EmailAddress" id="x_EmailAddress" title="<?php echo $CCEStudents->EmailAddress->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->EmailAddress->EditValue ?>"<?php echo $CCEStudents->EmailAddress->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->EmailAddress2->FldCaption() ?></td>
<td<?php echo $CCEStudents->EmailAddress2->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_EmailAddress2" id="z_EmailAddress2" value="LIKE"></span></td>
<td<?php echo $CCEStudents->EmailAddress2->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_EmailAddress2" id="x_EmailAddress2" title="<?php echo $CCEStudents->EmailAddress2->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->EmailAddress2->EditValue ?>"<?php echo $CCEStudents->EmailAddress2->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HomeAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->HomeAddress->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_HomeAddress" id="z_HomeAddress" value="LIKE"></span></td>
<td<?php echo $CCEStudents->HomeAddress->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<textarea name="x_HomeAddress" id="x_HomeAddress" title="<?php echo $CCEStudents->HomeAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->HomeAddress->EditAttributes() ?>><?php echo $CCEStudents->HomeAddress->EditValue ?></textarea>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->WorkAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->WorkAddress->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_WorkAddress" id="z_WorkAddress" value="LIKE"></span></td>
<td<?php echo $CCEStudents->WorkAddress->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<textarea name="x_WorkAddress" id="x_WorkAddress" title="<?php echo $CCEStudents->WorkAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->WorkAddress->EditAttributes() ?>><?php echo $CCEStudents->WorkAddress->EditValue ?></textarea>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->PostalAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->PostalAddress->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_PostalAddress" id="z_PostalAddress" value="LIKE"></span></td>
<td<?php echo $CCEStudents->PostalAddress->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<textarea name="x_PostalAddress" id="x_PostalAddress" title="<?php echo $CCEStudents->PostalAddress->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->PostalAddress->EditAttributes() ?>><?php echo $CCEStudents->PostalAddress->EditValue ?></textarea>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->PreferredCourierAddress->FldCaption() ?></td>
<td<?php echo $CCEStudents->PreferredCourierAddress->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_PreferredCourierAddress" id="z_PreferredCourierAddress" value="LIKE"></span></td>
<td<?php echo $CCEStudents->PreferredCourierAddress->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<select id="x_PreferredCourierAddress" name="x_PreferredCourierAddress" title="<?php echo $CCEStudents->PreferredCourierAddress->FldTitle() ?>"<?php echo $CCEStudents->PreferredCourierAddress->EditAttributes() ?>>
<?php
if (is_array($CCEStudents->PreferredCourierAddress->EditValue)) {
$arwrk = $CCEStudents->PreferredCourierAddress->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->PreferredCourierAddress->AdvancedSearch->SearchValue) == 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>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CESAAccountNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->CESAAccountNo->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_CESAAccountNo" id="z_CESAAccountNo" value="LIKE"></span></td>
<td<?php echo $CCEStudents->CESAAccountNo->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_CESAAccountNo" id="x_CESAAccountNo" title="<?php echo $CCEStudents->CESAAccountNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->CESAAccountNo->EditValue ?>"<?php echo $CCEStudents->CESAAccountNo->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->VATNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->VATNo->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_VATNo" id="z_VATNo" value="LIKE"></span></td>
<td<?php echo $CCEStudents->VATNo->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_VATNo" id="x_VATNo" title="<?php echo $CCEStudents->VATNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->VATNo->EditValue ?>"<?php echo $CCEStudents->VATNo->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->DietaryRequirements->FldCaption() ?></td>
<td<?php echo $CCEStudents->DietaryRequirements->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_DietaryRequirements" id="z_DietaryRequirements" value="LIKE"></span></td>
<td<?php echo $CCEStudents->DietaryRequirements->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_DietaryRequirements" id="x_DietaryRequirements" title="<?php echo $CCEStudents->DietaryRequirements->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->DietaryRequirements->EditValue ?>"<?php echo $CCEStudents->DietaryRequirements->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->OrderNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->OrderNo->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_OrderNo" id="z_OrderNo" value="LIKE"></span></td>
<td<?php echo $CCEStudents->OrderNo->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_OrderNo" id="x_OrderNo" title="<?php echo $CCEStudents->OrderNo->FldTitle() ?>" size="30" maxlength="50" value="<?php echo $CCEStudents->OrderNo->EditValue ?>"<?php echo $CCEStudents->OrderNo->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByName->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByName->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_BookedByName" id="z_BookedByName" value="LIKE"></span></td>
<td<?php echo $CCEStudents->BookedByName->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_BookedByName" id="x_BookedByName" title="<?php echo $CCEStudents->BookedByName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByName->EditValue ?>"<?php echo $CCEStudents->BookedByName->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByDesignation->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByDesignation->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_BookedByDesignation" id="z_BookedByDesignation" value="LIKE"></span></td>
<td<?php echo $CCEStudents->BookedByDesignation->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_BookedByDesignation" id="x_BookedByDesignation" title="<?php echo $CCEStudents->BookedByDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByDesignation->EditValue ?>"<?php echo $CCEStudents->BookedByDesignation->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByTelNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByTelNo->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_BookedByTelNo" id="z_BookedByTelNo" value="LIKE"></span></td>
<td<?php echo $CCEStudents->BookedByTelNo->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_BookedByTelNo" id="x_BookedByTelNo" title="<?php echo $CCEStudents->BookedByTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByTelNo->EditValue ?>"<?php echo $CCEStudents->BookedByTelNo->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByFaxNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByFaxNo->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_BookedByFaxNo" id="z_BookedByFaxNo" value="LIKE"></span></td>
<td<?php echo $CCEStudents->BookedByFaxNo->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_BookedByFaxNo" id="x_BookedByFaxNo" title="<?php echo $CCEStudents->BookedByFaxNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByFaxNo->EditValue ?>"<?php echo $CCEStudents->BookedByFaxNo->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByCellNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByCellNo->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_BookedByCellNo" id="z_BookedByCellNo" value="LIKE"></span></td>
<td<?php echo $CCEStudents->BookedByCellNo->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_BookedByCellNo" id="x_BookedByCellNo" title="<?php echo $CCEStudents->BookedByCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByCellNo->EditValue ?>"<?php echo $CCEStudents->BookedByCellNo->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BookedByEmail->FldCaption() ?></td>
<td<?php echo $CCEStudents->BookedByEmail->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_BookedByEmail" id="z_BookedByEmail" value="LIKE"></span></td>
<td<?php echo $CCEStudents->BookedByEmail->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_BookedByEmail" id="x_BookedByEmail" title="<?php echo $CCEStudents->BookedByEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->BookedByEmail->EditValue ?>"<?php echo $CCEStudents->BookedByEmail->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->WebUsername->FldCaption() ?></td>
<td<?php echo $CCEStudents->WebUsername->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_WebUsername" id="z_WebUsername" value="LIKE"></span></td>
<td<?php echo $CCEStudents->WebUsername->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_WebUsername" id="x_WebUsername" title="<?php echo $CCEStudents->WebUsername->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCEStudents->WebUsername->EditValue ?>"<?php echo $CCEStudents->WebUsername->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->WebPassword->FldCaption() ?></td>
<td<?php echo $CCEStudents->WebPassword->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_WebPassword" id="z_WebPassword" value="LIKE"></span></td>
<td<?php echo $CCEStudents->WebPassword->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_WebPassword" id="x_WebPassword" title="<?php echo $CCEStudents->WebPassword->FldTitle() ?>" size="30" maxlength="20" value="<?php echo $CCEStudents->WebPassword->EditValue ?>"<?php echo $CCEStudents->WebPassword->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorFirstName->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorFirstName->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_MentorFirstName" id="z_MentorFirstName" value="LIKE"></span></td>
<td<?php echo $CCEStudents->MentorFirstName->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_MentorFirstName" id="x_MentorFirstName" title="<?php echo $CCEStudents->MentorFirstName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorFirstName->EditValue ?>"<?php echo $CCEStudents->MentorFirstName->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorSurname->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorSurname->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_MentorSurname" id="z_MentorSurname" value="LIKE"></span></td>
<td<?php echo $CCEStudents->MentorSurname->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_MentorSurname" id="x_MentorSurname" title="<?php echo $CCEStudents->MentorSurname->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorSurname->EditValue ?>"<?php echo $CCEStudents->MentorSurname->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorCompany->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorCompany->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_MentorCompany" id="z_MentorCompany" value="LIKE"></span></td>
<td<?php echo $CCEStudents->MentorCompany->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_MentorCompany" id="x_MentorCompany" title="<?php echo $CCEStudents->MentorCompany->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorCompany->EditValue ?>"<?php echo $CCEStudents->MentorCompany->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorDesig->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorDesig->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_MentorDesig" id="z_MentorDesig" value="LIKE"></span></td>
<td<?php echo $CCEStudents->MentorDesig->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_MentorDesig" id="x_MentorDesig" title="<?php echo $CCEStudents->MentorDesig->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorDesig->EditValue ?>"<?php echo $CCEStudents->MentorDesig->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorTel->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorTel->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_MentorTel" id="z_MentorTel" value="LIKE"></span></td>
<td<?php echo $CCEStudents->MentorTel->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_MentorTel" id="x_MentorTel" title="<?php echo $CCEStudents->MentorTel->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorTel->EditValue ?>"<?php echo $CCEStudents->MentorTel->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorCell->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorCell->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_MentorCell" id="z_MentorCell" value="LIKE"></span></td>
<td<?php echo $CCEStudents->MentorCell->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_MentorCell" id="x_MentorCell" title="<?php echo $CCEStudents->MentorCell->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorCell->EditValue ?>"<?php echo $CCEStudents->MentorCell->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MentorEmail->FldCaption() ?></td>
<td<?php echo $CCEStudents->MentorEmail->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_MentorEmail" id="z_MentorEmail" value="LIKE"></span></td>
<td<?php echo $CCEStudents->MentorEmail->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_MentorEmail" id="x_MentorEmail" title="<?php echo $CCEStudents->MentorEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->MentorEmail->EditValue ?>"<?php echo $CCEStudents->MentorEmail->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerName->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerName->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_HRManagerName" id="z_HRManagerName" value="LIKE"></span></td>
<td<?php echo $CCEStudents->HRManagerName->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_HRManagerName" id="x_HRManagerName" title="<?php echo $CCEStudents->HRManagerName->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerName->EditValue ?>"<?php echo $CCEStudents->HRManagerName->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerDesignation->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerDesignation->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_HRManagerDesignation" id="z_HRManagerDesignation" value="LIKE"></span></td>
<td<?php echo $CCEStudents->HRManagerDesignation->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_HRManagerDesignation" id="x_HRManagerDesignation" title="<?php echo $CCEStudents->HRManagerDesignation->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerDesignation->EditValue ?>"<?php echo $CCEStudents->HRManagerDesignation->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerTelNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerTelNo->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_HRManagerTelNo" id="z_HRManagerTelNo" value="LIKE"></span></td>
<td<?php echo $CCEStudents->HRManagerTelNo->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_HRManagerTelNo" id="x_HRManagerTelNo" title="<?php echo $CCEStudents->HRManagerTelNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerTelNo->EditValue ?>"<?php echo $CCEStudents->HRManagerTelNo->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerCellNo->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerCellNo->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_HRManagerCellNo" id="z_HRManagerCellNo" value="LIKE"></span></td>
<td<?php echo $CCEStudents->HRManagerCellNo->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_HRManagerCellNo" id="x_HRManagerCellNo" title="<?php echo $CCEStudents->HRManagerCellNo->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerCellNo->EditValue ?>"<?php echo $CCEStudents->HRManagerCellNo->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->HRManagerEmail->FldCaption() ?></td>
<td<?php echo $CCEStudents->HRManagerEmail->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_HRManagerEmail" id="z_HRManagerEmail" value="LIKE"></span></td>
<td<?php echo $CCEStudents->HRManagerEmail->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_HRManagerEmail" id="x_HRManagerEmail" title="<?php echo $CCEStudents->HRManagerEmail->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->HRManagerEmail->EditValue ?>"<?php echo $CCEStudents->HRManagerEmail->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->LengthEmploy->FldCaption() ?></td>
<td<?php echo $CCEStudents->LengthEmploy->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_LengthEmploy" id="z_LengthEmploy" value="LIKE"></span></td>
<td<?php echo $CCEStudents->LengthEmploy->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_LengthEmploy" id="x_LengthEmploy" title="<?php echo $CCEStudents->LengthEmploy->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->LengthEmploy->EditValue ?>"<?php echo $CCEStudents->LengthEmploy->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResponsiblePayment->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResponsiblePayment->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ResponsiblePayment" id="z_ResponsiblePayment" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ResponsiblePayment->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_ResponsiblePayment" id="x_ResponsiblePayment" title="<?php echo $CCEStudents->ResponsiblePayment->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->ResponsiblePayment->EditValue ?>"<?php echo $CCEStudents->ResponsiblePayment->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->BlockAccess->FldCaption() ?></td>
<td<?php echo $CCEStudents->BlockAccess->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_BlockAccess" id="z_BlockAccess" value="LIKE"></span></td>
<td<?php echo $CCEStudents->BlockAccess->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<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 $CCEStudents->BlockAccess->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->BlockAccess->EditAttributes() ?>></label></div>
<div id="dsl_x_BlockAccess" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->BlockAccess->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->BlockAccess->AdvancedSearch->SearchValue) == 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 $CCEStudents->BlockAccess->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->BlockAccess->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Accepted->FldCaption() ?></td>
<td<?php echo $CCEStudents->Accepted->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_Accepted" id="z_Accepted" value="="></span></td>
<td<?php echo $CCEStudents->Accepted->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<div id="tp_x_Accepted" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Accepted" id="x_Accepted" title="<?php echo $CCEStudents->Accepted->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->Accepted->EditAttributes() ?>></label></div>
<div id="dsl_x_Accepted" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->Accepted->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->Accepted->AdvancedSearch->SearchValue) == 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_Accepted" id="x_Accepted" title="<?php echo $CCEStudents->Accepted->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->Accepted->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Archived->FldCaption() ?></td>
<td<?php echo $CCEStudents->Archived->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_Archived" id="z_Archived" value="="></span></td>
<td<?php echo $CCEStudents->Archived->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<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 $CCEStudents->Archived->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->Archived->EditAttributes() ?>></label></div>
<div id="dsl_x_Archived" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->Archived->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->Archived->AdvancedSearch->SearchValue) == 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 $CCEStudents->Archived->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->Archived->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Achieved->FldCaption() ?></td>
<td<?php echo $CCEStudents->Achieved->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_Achieved" id="z_Achieved" value="="></span></td>
<td<?php echo $CCEStudents->Achieved->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<div id="tp_x_Achieved" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Achieved" id="x_Achieved" title="<?php echo $CCEStudents->Achieved->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->Achieved->EditAttributes() ?>></label></div>
<div id="dsl_x_Achieved" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->Achieved->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->Achieved->AdvancedSearch->SearchValue) == 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_Achieved" id="x_Achieved" title="<?php echo $CCEStudents->Achieved->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->Achieved->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ReasonForLeaving->FldCaption() ?></td>
<td<?php echo $CCEStudents->ReasonForLeaving->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ReasonForLeaving" id="z_ReasonForLeaving" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ReasonForLeaving->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<textarea name="x_ReasonForLeaving" id="x_ReasonForLeaving" title="<?php echo $CCEStudents->ReasonForLeaving->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->ReasonForLeaving->EditAttributes() ?>><?php echo $CCEStudents->ReasonForLeaving->EditValue ?></textarea>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ReasonNotAccepted->FldCaption() ?></td>
<td<?php echo $CCEStudents->ReasonNotAccepted->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ReasonNotAccepted" id="z_ReasonNotAccepted" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ReasonNotAccepted->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<textarea name="x_ReasonNotAccepted" id="x_ReasonNotAccepted" title="<?php echo $CCEStudents->ReasonNotAccepted->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->ReasonNotAccepted->EditAttributes() ?>><?php echo $CCEStudents->ReasonNotAccepted->EditValue ?></textarea>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResultComments->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResultComments->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ResultComments" id="z_ResultComments" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ResultComments->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<textarea name="x_ResultComments" id="x_ResultComments" title="<?php echo $CCEStudents->ResultComments->FldTitle() ?>" cols="35" rows="4"<?php echo $CCEStudents->ResultComments->EditAttributes() ?>><?php echo $CCEStudents->ResultComments->EditValue ?></textarea>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ResultStatus->FldCaption() ?></td>
<td<?php echo $CCEStudents->ResultStatus->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ResultStatus" id="z_ResultStatus" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ResultStatus->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<div id="tp_x_ResultStatus" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_ResultStatus" id="x_ResultStatus" title="<?php echo $CCEStudents->ResultStatus->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->ResultStatus->EditAttributes() ?>></label></div>
<div id="dsl_x_ResultStatus" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->ResultStatus->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->ResultStatus->AdvancedSearch->SearchValue) == 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_ResultStatus" id="x_ResultStatus" title="<?php echo $CCEStudents->ResultStatus->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->ResultStatus->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ModulesEnrolled->FldCaption() ?></td>
<td<?php echo $CCEStudents->ModulesEnrolled->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ModulesEnrolled" id="z_ModulesEnrolled" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ModulesEnrolled->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<div id="tp_x_ModulesEnrolled" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME; ?>"><input type="checkbox" name="x_ModulesEnrolled[]" id="x_ModulesEnrolled[]" title="<?php echo $CCEStudents->ModulesEnrolled->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->ModulesEnrolled->EditAttributes() ?>></div>
<div id="dsl_x_ModulesEnrolled" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->ModulesEnrolled->EditValue;
if (is_array($arwrk)) {
$armultiwrk= explode(",", strval($CCEStudents->ModulesEnrolled->AdvancedSearch->SearchValue));
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = "";
for ($ari = 0; $ari < count($armultiwrk); $ari++) {
if (strval($arwrk[$rowcntwrk][0]) == trim(strval($armultiwrk[$ari]))) {
$selwrk = " checked=\"checked\"";
if ($selwrk <> "") $emptywrk = FALSE;
break;
}
}
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="checkbox" name="x_ModulesEnrolled[]" id="x_ModulesEnrolled[]" title="<?php echo $CCEStudents->ModulesEnrolled->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->ModulesEnrolled->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?><?php echo ew_ValueSeparator($rowcntwrk) ?><?php echo $arwrk[$rowcntwrk][2] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->ModulesExcluded->FldCaption() ?></td>
<td<?php echo $CCEStudents->ModulesExcluded->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_ModulesExcluded" id="z_ModulesExcluded" value="LIKE"></span></td>
<td<?php echo $CCEStudents->ModulesExcluded->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<div id="tp_x_ModulesExcluded" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME; ?>"><input type="checkbox" name="x_ModulesExcluded[]" id="x_ModulesExcluded[]" title="<?php echo $CCEStudents->ModulesExcluded->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->ModulesExcluded->EditAttributes() ?>></div>
<div id="dsl_x_ModulesExcluded" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->ModulesExcluded->EditValue;
if (is_array($arwrk)) {
$armultiwrk= explode(",", strval($CCEStudents->ModulesExcluded->AdvancedSearch->SearchValue));
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = "";
for ($ari = 0; $ari < count($armultiwrk); $ari++) {
if (strval($arwrk[$rowcntwrk][0]) == trim(strval($armultiwrk[$ari]))) {
$selwrk = " checked=\"checked\"";
if ($selwrk <> "") $emptywrk = FALSE;
break;
}
}
// Note: No spacing within the LABEL tag
?>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1) ?>
<label><input type="checkbox" name="x_ModulesExcluded[]" id="x_ModulesExcluded[]" title="<?php echo $CCEStudents->ModulesExcluded->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->ModulesExcluded->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?><?php echo ew_ValueSeparator($rowcntwrk) ?><?php echo $arwrk[$rowcntwrk][2] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->Cancelled->FldCaption() ?></td>
<td<?php echo $CCEStudents->Cancelled->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("=") ?><input type="hidden" name="z_Cancelled" id="z_Cancelled" value="="></span></td>
<td<?php echo $CCEStudents->Cancelled->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<div id="tp_x_Cancelled" class="<?php echo EW_ITEM_TEMPLATE_CLASSNAME ?>"><label><input type="radio" name="x_Cancelled" id="x_Cancelled" title="<?php echo $CCEStudents->Cancelled->FldTitle() ?>" value="{value}"<?php echo $CCEStudents->Cancelled->EditAttributes() ?>></label></div>
<div id="dsl_x_Cancelled" repeatcolumn="5">
<?php
$arwrk = $CCEStudents->Cancelled->EditValue;
if (is_array($arwrk)) {
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->Cancelled->AdvancedSearch->SearchValue) == 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_Cancelled" id="x_Cancelled" title="<?php echo $CCEStudents->Cancelled->FldTitle() ?>" value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?><?php echo $CCEStudents->Cancelled->EditAttributes() ?>><?php echo $arwrk[$rowcntwrk][1] ?></label>
<?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2) ?>
<?php
}
}
?>
</div>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->CancelledReason->FldCaption() ?></td>
<td<?php echo $CCEStudents->CancelledReason->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_CancelledReason" id="z_CancelledReason" value="LIKE"></span></td>
<td<?php echo $CCEStudents->CancelledReason->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<input type="text" name="x_CancelledReason" id="x_CancelledReason" title="<?php echo $CCEStudents->CancelledReason->FldTitle() ?>" size="30" maxlength="255" value="<?php echo $CCEStudents->CancelledReason->EditValue ?>"<?php echo $CCEStudents->CancelledReason->EditAttributes() ?>>
</span>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MarketingSource->FldCaption() ?></td>
<td<?php echo $CCEStudents->MarketingSource->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_MarketingSource" id="z_MarketingSource" value="LIKE"></span></td>
<td<?php echo $CCEStudents->MarketingSource->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<select id="x_MarketingSource" name="x_MarketingSource" title="<?php echo $CCEStudents->MarketingSource->FldTitle() ?>"<?php echo $CCEStudents->MarketingSource->EditAttributes() ?>>
<?php
if (is_array($CCEStudents->MarketingSource->EditValue)) {
$arwrk = $CCEStudents->MarketingSource->EditValue;
$rowswrk = count($arwrk);
$emptywrk = TRUE;
for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
$selwrk = (strval($CCEStudents->MarketingSource->AdvancedSearch->SearchValue) == 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>
</div>
</td>
</tr>
<tr<?php echo $CCEStudents->RowAttributes() ?>>
<td class="ewTableHeader"><?php echo $CCEStudents->MarketingSourceOther->FldCaption() ?></td>
<td<?php echo $CCEStudents->MarketingSourceOther->CellAttributes() ?>><span class="ewSearchOpr"><?php echo $Language->Phrase("LIKE") ?><input type="hidden" name="z_MarketingSourceOther" id="z_MarketingSourceOther" value="LIKE"></span></td>
<td<?php echo $CCEStudents->MarketingSourceOther->CellAttributes() ?>>
<div style="white-space: nowrap;">
<span class="phpmaker" style="float: left;">
<textarea name="x_MarketingSourceOther" id="x_MarketingSourceOther" title="<?php echo $CCEStudents->MarketingSourceOther->FldTitle() ?>" cols="0" rows="0"<?php echo $CCEStudents->MarketingSourceOther->EditAttributes() ?>><?php echo $CCEStudents->MarketingSourceOther->EditValue ?></textarea>
</span>
</div>
</td>
</tr>
</table>
</div>
</td></tr></table>
<p>
<input type="submit" name="Action" id="Action" value="<?php echo ew_BtnCaption($Language->Phrase("Search")) ?>">
<input type="button" name="Reset" id="Reset" value="<?php echo ew_BtnCaption($Language->Phrase("Reset")) ?>" onclick="ew_ClearForm(this.form);">
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
<?php include "footer.php" ?>
<?php
$CCEStudents_search->Page_Terminate();
?>
<?php
//
// Page class
//
class cCCEStudents_search {
// Page ID
var $PageID = 'search';
// Table name
var $TableName = 'CCEStudents';
// Page object name
var $PageObjName = 'CCEStudents_search';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $CCEStudents;
if ($CCEStudents->UseTokenInUrl) $PageUrl .= "t=" . $CCEStudents->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, $CCEStudents;
if ($CCEStudents->UseTokenInUrl) {
if ($objForm)
return ($CCEStudents->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($CCEStudents->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function __construct() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (CCEStudents)
$GLOBALS["CCEStudents"] = new cCCEStudents();
// Table object (CCEUsers)
$GLOBALS['CCEUsers'] = new cCCEUsers();
// Page ID
if (!defined("EW_PAGE_ID"))
define("EW_PAGE_ID", 'search', TRUE);
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME"))
define("EW_TABLE_NAME", 'CCEStudents', 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 $CCEStudents;
// 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->CanSearch()) {
$Security->SaveLastUrl();
$this->Page_Terminate("CCEStudentslist.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();
}
//
// Page main
//
function Page_Main() {
global $objForm, $Language, $gsSearchError, $CCEStudents;
if ($this->IsPageRequest()) { // Validate request
// Get action
$CCEStudents->CurrentAction = $objForm->GetValue("a_search");
switch ($CCEStudents->CurrentAction) {
case "S": // Get search criteria
// Build search string for advanced search, remove blank field
$this->LoadSearchValues(); // Get search values
if ($this->ValidateSearch()) {
$sSrchStr = $this->BuildAdvancedSearch();
} else {
$sSrchStr = "";
$this->setMessage($gsSearchError);
}
if ($sSrchStr <> "") {
$sSrchStr = $CCEStudents->UrlParm($sSrchStr);
$this->Page_Terminate("CCEStudentslist.php" . "?" . $sSrchStr); // Go to list page
}
}
}
// Restore search settings from Session
if ($gsSearchError == "")
$this->LoadAdvancedSearch();
// Render row for search
$CCEStudents->RowType = EW_ROWTYPE_SEARCH;
$this->RenderRow();
}
// Build advanced search
function BuildAdvancedSearch() {
global $CCEStudents;
$sSrchUrl = "";
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->CCEStudentID); // CCEStudentID
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Title); // Title
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->KnownAs); // KnownAs
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->FirstName); // FirstName
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Surname); // Surname
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Organisation); // Organisation
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->OrganisationType); // OrganisationType
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Designation); // Designation
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Department); // Department
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->StudentNumber); // StudentNumber
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->CCEFacilitatorID); // CCEFacilitatorID
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Project); // Project
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ProjectDiscipline); // ProjectDiscipline
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ProjectCode); // ProjectCode
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->IDNumber); // IDNumber
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ECSARegistered); // ECSARegistered
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ECSACategory); // ECSACategory
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ECSANumber); // ECSANumber
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->OtherStatutoryBodyRegistered); // OtherStatutoryBodyRegistered
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->OtherStatutoryBodyName); // OtherStatutoryBodyName
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->OtherStatutoryBodyNumber); // OtherStatutoryBodyNumber
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->OtherStatutoryBodyCategory); // OtherStatutoryBodyCategory
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->CESAMemberFirm); // CESAMemberFirm
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->OtherCEFirms); // OtherCEFirms
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Age); // Age
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->HighestQual); // HighestQual
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->AreaDiscipline); // AreaDiscipline
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Telephone); // Telephone
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Cellphone); // Cellphone
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->EmailAddress); // EmailAddress
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->EmailAddress2); // EmailAddress2
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->HomeAddress); // HomeAddress
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->WorkAddress); // WorkAddress
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->PostalAddress); // PostalAddress
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->PreferredCourierAddress); // PreferredCourierAddress
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->CESAAccountNo); // CESAAccountNo
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->VATNo); // VATNo
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->DietaryRequirements); // DietaryRequirements
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->OrderNo); // OrderNo
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->BookedByName); // BookedByName
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->BookedByDesignation); // BookedByDesignation
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->BookedByTelNo); // BookedByTelNo
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->BookedByFaxNo); // BookedByFaxNo
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->BookedByCellNo); // BookedByCellNo
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->BookedByEmail); // BookedByEmail
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->WebUsername); // WebUsername
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->WebPassword); // WebPassword
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->MentorFirstName); // MentorFirstName
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->MentorSurname); // MentorSurname
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->MentorCompany); // MentorCompany
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->MentorDesig); // MentorDesig
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->MentorTel); // MentorTel
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->MentorCell); // MentorCell
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->MentorEmail); // MentorEmail
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->HRManagerName); // HRManagerName
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->HRManagerDesignation); // HRManagerDesignation
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->HRManagerTelNo); // HRManagerTelNo
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->HRManagerCellNo); // HRManagerCellNo
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->HRManagerEmail); // HRManagerEmail
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->LengthEmploy); // LengthEmploy
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ResponsiblePayment); // ResponsiblePayment
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->BlockAccess); // BlockAccess
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Accepted); // Accepted
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Archived); // Archived
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Achieved); // Achieved
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ReasonForLeaving); // ReasonForLeaving
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ReasonNotAccepted); // ReasonNotAccepted
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ResultComments); // ResultComments
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ResultStatus); // ResultStatus
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ModulesEnrolled); // ModulesEnrolled
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->ModulesExcluded); // ModulesExcluded
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->Cancelled); // Cancelled
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->CancelledReason); // CancelledReason
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->MarketingSource); // MarketingSource
$this->BuildSearchUrl($sSrchUrl, $CCEStudents->MarketingSourceOther); // MarketingSourceOther
return $sSrchUrl;
}
// Build search URL
function BuildSearchUrl(&$Url, &$Fld) {
global $objForm;
$sWrk = "";
$FldParm = substr($Fld->FldVar, 2);
$FldVal = $objForm->GetValue("x_$FldParm");
$FldOpr = $objForm->GetValue("z_$FldParm");
$FldCond = $objForm->GetValue("v_$FldParm");
$FldVal2 = $objForm->GetValue("y_$FldParm");
$FldOpr2 = $objForm->GetValue("w_$FldParm");
$FldVal = ew_StripSlashes($FldVal);
if (is_array($FldVal)) $FldVal = implode(",", $FldVal);
$FldVal2 = ew_StripSlashes($FldVal2);
if (is_array($FldVal2)) $FldVal2 = implode(",", $FldVal2);
$FldOpr = strtoupper(trim($FldOpr));
$lFldDataType = ($Fld->FldIsVirtual) ? EW_DATATYPE_STRING : $Fld->FldDataType;
if ($FldOpr == "BETWEEN") {
$IsValidValue = ($lFldDataType <> EW_DATATYPE_NUMBER) ||
($lFldDataType == EW_DATATYPE_NUMBER && is_numeric($FldVal) && is_numeric($FldVal2));
if ($FldVal <> "" && $FldVal2 <> "" && $IsValidValue) {
$sWrk = "x_" . $FldParm . "=" . urlencode($FldVal) .
"&y_" . $FldParm . "=" . urlencode($FldVal2) .
"&z_" . $FldParm . "=" . urlencode($FldOpr);
}
} elseif ($FldOpr == "IS NULL" || $FldOpr == "IS NOT NULL") {
$sWrk = "x_" . $FldParm . "=" . urlencode($FldVal) .
"&z_" . $FldParm . "=" . urlencode($FldOpr);
} else {
$IsValidValue = ($lFldDataType <> EW_DATATYPE_NUMBER) ||
($lFldDataType == EW_DATATYPE_NUMBER && is_numeric($FldVal));
if ($FldVal <> "" && $IsValidValue && ew_IsValidOpr($FldOpr, $lFldDataType)) {
//$FldVal = $this->ConvertSearchValue($Fld, $FldVal);
$sWrk = "x_" . $FldParm . "=" . urlencode($FldVal) .
"&z_" . $FldParm . "=" . urlencode($FldOpr);
}
$IsValidValue = ($lFldDataType <> EW_DATATYPE_NUMBER) ||
($lFldDataType == EW_DATATYPE_NUMBER && is_numeric($FldVal2));
if ($FldVal2 <> "" && $IsValidValue && ew_IsValidOpr($FldOpr2, $lFldDataType)) {
//$FldVal2 = $this->ConvertSearchValue($Fld, $FldVal2);
if ($sWrk <> "") $sWrk .= "&v_" . $FldParm . "=" . urlencode($FldCond) . "&";
$sWrk .= "&y_" . $FldParm . "=" . urlencode($FldVal2) .
"&w_" . $FldParm . "=" . urlencode($FldOpr2);
}
}
if ($sWrk <> "") {
if ($Url <> "") $Url .= "&";
$Url .= $sWrk;
}
}
// Convert search value for date
function ConvertSearchValue(&$Fld, $FldVal) {
$Value = $FldVal;
if ($Fld->FldDataType == EW_DATATYPE_DATE && $FldVal <> "")
$Value = ew_UnFormatDateTime($FldVal, $Fld->FldDateTimeFormat);
return $Value;
}
// Load search values for validation
function LoadSearchValues() {
global $objForm, $CCEStudents;
// Load search values
// CCEStudentID
$CCEStudents->CCEStudentID->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_CCEStudentID"));
$CCEStudents->CCEStudentID->AdvancedSearch->SearchOperator = $objForm->GetValue("z_CCEStudentID");
// Title
$CCEStudents->Title->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Title"));
$CCEStudents->Title->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Title");
// KnownAs
$CCEStudents->KnownAs->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_KnownAs"));
$CCEStudents->KnownAs->AdvancedSearch->SearchOperator = $objForm->GetValue("z_KnownAs");
// FirstName
$CCEStudents->FirstName->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_FirstName"));
$CCEStudents->FirstName->AdvancedSearch->SearchOperator = $objForm->GetValue("z_FirstName");
// Surname
$CCEStudents->Surname->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Surname"));
$CCEStudents->Surname->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Surname");
// Organisation
$CCEStudents->Organisation->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Organisation"));
$CCEStudents->Organisation->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Organisation");
// OrganisationType
$CCEStudents->OrganisationType->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_OrganisationType"));
$CCEStudents->OrganisationType->AdvancedSearch->SearchOperator = $objForm->GetValue("z_OrganisationType");
// Designation
$CCEStudents->Designation->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Designation"));
$CCEStudents->Designation->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Designation");
// Department
$CCEStudents->Department->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Department"));
$CCEStudents->Department->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Department");
// StudentNumber
$CCEStudents->StudentNumber->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_StudentNumber"));
$CCEStudents->StudentNumber->AdvancedSearch->SearchOperator = $objForm->GetValue("z_StudentNumber");
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_CCEFacilitatorID"));
$CCEStudents->CCEFacilitatorID->AdvancedSearch->SearchOperator = $objForm->GetValue("z_CCEFacilitatorID");
// Project
$CCEStudents->Project->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Project"));
$CCEStudents->Project->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Project");
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ProjectDiscipline"));
$CCEStudents->ProjectDiscipline->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ProjectDiscipline");
// ProjectCode
$CCEStudents->ProjectCode->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ProjectCode"));
$CCEStudents->ProjectCode->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ProjectCode");
// IDNumber
$CCEStudents->IDNumber->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_IDNumber"));
$CCEStudents->IDNumber->AdvancedSearch->SearchOperator = $objForm->GetValue("z_IDNumber");
// ECSARegistered
$CCEStudents->ECSARegistered->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ECSARegistered"));
$CCEStudents->ECSARegistered->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ECSARegistered");
// ECSACategory
$CCEStudents->ECSACategory->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ECSACategory"));
$CCEStudents->ECSACategory->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ECSACategory");
// ECSANumber
$CCEStudents->ECSANumber->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ECSANumber"));
$CCEStudents->ECSANumber->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ECSANumber");
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_OtherStatutoryBodyRegistered"));
$CCEStudents->OtherStatutoryBodyRegistered->AdvancedSearch->SearchOperator = $objForm->GetValue("z_OtherStatutoryBodyRegistered");
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_OtherStatutoryBodyName"));
$CCEStudents->OtherStatutoryBodyName->AdvancedSearch->SearchOperator = $objForm->GetValue("z_OtherStatutoryBodyName");
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_OtherStatutoryBodyNumber"));
$CCEStudents->OtherStatutoryBodyNumber->AdvancedSearch->SearchOperator = $objForm->GetValue("z_OtherStatutoryBodyNumber");
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_OtherStatutoryBodyCategory"));
$CCEStudents->OtherStatutoryBodyCategory->AdvancedSearch->SearchOperator = $objForm->GetValue("z_OtherStatutoryBodyCategory");
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_CESAMemberFirm"));
$CCEStudents->CESAMemberFirm->AdvancedSearch->SearchOperator = $objForm->GetValue("z_CESAMemberFirm");
// OtherCEFirms
$CCEStudents->OtherCEFirms->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_OtherCEFirms"));
$CCEStudents->OtherCEFirms->AdvancedSearch->SearchOperator = $objForm->GetValue("z_OtherCEFirms");
// Age
$CCEStudents->Age->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Age"));
$CCEStudents->Age->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Age");
// HighestQual
$CCEStudents->HighestQual->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_HighestQual"));
$CCEStudents->HighestQual->AdvancedSearch->SearchOperator = $objForm->GetValue("z_HighestQual");
// AreaDiscipline
$CCEStudents->AreaDiscipline->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_AreaDiscipline"));
$CCEStudents->AreaDiscipline->AdvancedSearch->SearchOperator = $objForm->GetValue("z_AreaDiscipline");
// Telephone
$CCEStudents->Telephone->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Telephone"));
$CCEStudents->Telephone->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Telephone");
// Cellphone
$CCEStudents->Cellphone->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Cellphone"));
$CCEStudents->Cellphone->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Cellphone");
// EmailAddress
$CCEStudents->EmailAddress->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_EmailAddress"));
$CCEStudents->EmailAddress->AdvancedSearch->SearchOperator = $objForm->GetValue("z_EmailAddress");
// EmailAddress2
$CCEStudents->EmailAddress2->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_EmailAddress2"));
$CCEStudents->EmailAddress2->AdvancedSearch->SearchOperator = $objForm->GetValue("z_EmailAddress2");
// HomeAddress
$CCEStudents->HomeAddress->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_HomeAddress"));
$CCEStudents->HomeAddress->AdvancedSearch->SearchOperator = $objForm->GetValue("z_HomeAddress");
// WorkAddress
$CCEStudents->WorkAddress->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_WorkAddress"));
$CCEStudents->WorkAddress->AdvancedSearch->SearchOperator = $objForm->GetValue("z_WorkAddress");
// PostalAddress
$CCEStudents->PostalAddress->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_PostalAddress"));
$CCEStudents->PostalAddress->AdvancedSearch->SearchOperator = $objForm->GetValue("z_PostalAddress");
// PreferredCourierAddress
$CCEStudents->PreferredCourierAddress->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_PreferredCourierAddress"));
$CCEStudents->PreferredCourierAddress->AdvancedSearch->SearchOperator = $objForm->GetValue("z_PreferredCourierAddress");
// CESAAccountNo
$CCEStudents->CESAAccountNo->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_CESAAccountNo"));
$CCEStudents->CESAAccountNo->AdvancedSearch->SearchOperator = $objForm->GetValue("z_CESAAccountNo");
// VATNo
$CCEStudents->VATNo->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_VATNo"));
$CCEStudents->VATNo->AdvancedSearch->SearchOperator = $objForm->GetValue("z_VATNo");
// DietaryRequirements
$CCEStudents->DietaryRequirements->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_DietaryRequirements"));
$CCEStudents->DietaryRequirements->AdvancedSearch->SearchOperator = $objForm->GetValue("z_DietaryRequirements");
// OrderNo
$CCEStudents->OrderNo->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_OrderNo"));
$CCEStudents->OrderNo->AdvancedSearch->SearchOperator = $objForm->GetValue("z_OrderNo");
// BookedByName
$CCEStudents->BookedByName->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_BookedByName"));
$CCEStudents->BookedByName->AdvancedSearch->SearchOperator = $objForm->GetValue("z_BookedByName");
// BookedByDesignation
$CCEStudents->BookedByDesignation->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_BookedByDesignation"));
$CCEStudents->BookedByDesignation->AdvancedSearch->SearchOperator = $objForm->GetValue("z_BookedByDesignation");
// BookedByTelNo
$CCEStudents->BookedByTelNo->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_BookedByTelNo"));
$CCEStudents->BookedByTelNo->AdvancedSearch->SearchOperator = $objForm->GetValue("z_BookedByTelNo");
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_BookedByFaxNo"));
$CCEStudents->BookedByFaxNo->AdvancedSearch->SearchOperator = $objForm->GetValue("z_BookedByFaxNo");
// BookedByCellNo
$CCEStudents->BookedByCellNo->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_BookedByCellNo"));
$CCEStudents->BookedByCellNo->AdvancedSearch->SearchOperator = $objForm->GetValue("z_BookedByCellNo");
// BookedByEmail
$CCEStudents->BookedByEmail->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_BookedByEmail"));
$CCEStudents->BookedByEmail->AdvancedSearch->SearchOperator = $objForm->GetValue("z_BookedByEmail");
// WebUsername
$CCEStudents->WebUsername->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_WebUsername"));
$CCEStudents->WebUsername->AdvancedSearch->SearchOperator = $objForm->GetValue("z_WebUsername");
// WebPassword
$CCEStudents->WebPassword->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_WebPassword"));
$CCEStudents->WebPassword->AdvancedSearch->SearchOperator = $objForm->GetValue("z_WebPassword");
// MentorFirstName
$CCEStudents->MentorFirstName->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_MentorFirstName"));
$CCEStudents->MentorFirstName->AdvancedSearch->SearchOperator = $objForm->GetValue("z_MentorFirstName");
// MentorSurname
$CCEStudents->MentorSurname->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_MentorSurname"));
$CCEStudents->MentorSurname->AdvancedSearch->SearchOperator = $objForm->GetValue("z_MentorSurname");
// MentorCompany
$CCEStudents->MentorCompany->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_MentorCompany"));
$CCEStudents->MentorCompany->AdvancedSearch->SearchOperator = $objForm->GetValue("z_MentorCompany");
// MentorDesig
$CCEStudents->MentorDesig->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_MentorDesig"));
$CCEStudents->MentorDesig->AdvancedSearch->SearchOperator = $objForm->GetValue("z_MentorDesig");
// MentorTel
$CCEStudents->MentorTel->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_MentorTel"));
$CCEStudents->MentorTel->AdvancedSearch->SearchOperator = $objForm->GetValue("z_MentorTel");
// MentorCell
$CCEStudents->MentorCell->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_MentorCell"));
$CCEStudents->MentorCell->AdvancedSearch->SearchOperator = $objForm->GetValue("z_MentorCell");
// MentorEmail
$CCEStudents->MentorEmail->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_MentorEmail"));
$CCEStudents->MentorEmail->AdvancedSearch->SearchOperator = $objForm->GetValue("z_MentorEmail");
// HRManagerName
$CCEStudents->HRManagerName->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_HRManagerName"));
$CCEStudents->HRManagerName->AdvancedSearch->SearchOperator = $objForm->GetValue("z_HRManagerName");
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_HRManagerDesignation"));
$CCEStudents->HRManagerDesignation->AdvancedSearch->SearchOperator = $objForm->GetValue("z_HRManagerDesignation");
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_HRManagerTelNo"));
$CCEStudents->HRManagerTelNo->AdvancedSearch->SearchOperator = $objForm->GetValue("z_HRManagerTelNo");
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_HRManagerCellNo"));
$CCEStudents->HRManagerCellNo->AdvancedSearch->SearchOperator = $objForm->GetValue("z_HRManagerCellNo");
// HRManagerEmail
$CCEStudents->HRManagerEmail->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_HRManagerEmail"));
$CCEStudents->HRManagerEmail->AdvancedSearch->SearchOperator = $objForm->GetValue("z_HRManagerEmail");
// LengthEmploy
$CCEStudents->LengthEmploy->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_LengthEmploy"));
$CCEStudents->LengthEmploy->AdvancedSearch->SearchOperator = $objForm->GetValue("z_LengthEmploy");
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ResponsiblePayment"));
$CCEStudents->ResponsiblePayment->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ResponsiblePayment");
// BlockAccess
$CCEStudents->BlockAccess->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_BlockAccess"));
$CCEStudents->BlockAccess->AdvancedSearch->SearchOperator = $objForm->GetValue("z_BlockAccess");
// Accepted
$CCEStudents->Accepted->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Accepted"));
$CCEStudents->Accepted->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Accepted");
// Archived
$CCEStudents->Archived->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Archived"));
$CCEStudents->Archived->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Archived");
// Achieved
$CCEStudents->Achieved->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Achieved"));
$CCEStudents->Achieved->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Achieved");
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ReasonForLeaving"));
$CCEStudents->ReasonForLeaving->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ReasonForLeaving");
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ReasonNotAccepted"));
$CCEStudents->ReasonNotAccepted->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ReasonNotAccepted");
// ResultComments
$CCEStudents->ResultComments->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ResultComments"));
$CCEStudents->ResultComments->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ResultComments");
// ResultStatus
$CCEStudents->ResultStatus->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ResultStatus"));
$CCEStudents->ResultStatus->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ResultStatus");
// ModulesEnrolled
$CCEStudents->ModulesEnrolled->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ModulesEnrolled"));
$CCEStudents->ModulesEnrolled->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ModulesEnrolled");
// ModulesExcluded
$CCEStudents->ModulesExcluded->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_ModulesExcluded"));
$CCEStudents->ModulesExcluded->AdvancedSearch->SearchOperator = $objForm->GetValue("z_ModulesExcluded");
// Cancelled
$CCEStudents->Cancelled->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_Cancelled"));
$CCEStudents->Cancelled->AdvancedSearch->SearchOperator = $objForm->GetValue("z_Cancelled");
// CancelledReason
$CCEStudents->CancelledReason->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_CancelledReason"));
$CCEStudents->CancelledReason->AdvancedSearch->SearchOperator = $objForm->GetValue("z_CancelledReason");
// MarketingSource
$CCEStudents->MarketingSource->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_MarketingSource"));
$CCEStudents->MarketingSource->AdvancedSearch->SearchOperator = $objForm->GetValue("z_MarketingSource");
// MarketingSourceOther
$CCEStudents->MarketingSourceOther->AdvancedSearch->SearchValue = ew_StripSlashes($objForm->GetValue("x_MarketingSourceOther"));
$CCEStudents->MarketingSourceOther->AdvancedSearch->SearchOperator = $objForm->GetValue("z_MarketingSourceOther");
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $CCEStudents;
// Initialize URLs
// Call Row_Rendering event
$CCEStudents->Row_Rendering();
// Common render codes for all row types
// CCEStudentID
$CCEStudents->CCEStudentID->CellCssStyle = ""; $CCEStudents->CCEStudentID->CellCssClass = "";
$CCEStudents->CCEStudentID->CellAttrs = array(); $CCEStudents->CCEStudentID->ViewAttrs = array(); $CCEStudents->CCEStudentID->EditAttrs = array();
// Title
$CCEStudents->Title->CellCssStyle = ""; $CCEStudents->Title->CellCssClass = "";
$CCEStudents->Title->CellAttrs = array(); $CCEStudents->Title->ViewAttrs = array(); $CCEStudents->Title->EditAttrs = array();
// KnownAs
$CCEStudents->KnownAs->CellCssStyle = ""; $CCEStudents->KnownAs->CellCssClass = "";
$CCEStudents->KnownAs->CellAttrs = array(); $CCEStudents->KnownAs->ViewAttrs = array(); $CCEStudents->KnownAs->EditAttrs = array();
// FirstName
$CCEStudents->FirstName->CellCssStyle = ""; $CCEStudents->FirstName->CellCssClass = "";
$CCEStudents->FirstName->CellAttrs = array(); $CCEStudents->FirstName->ViewAttrs = array(); $CCEStudents->FirstName->EditAttrs = array();
// Surname
$CCEStudents->Surname->CellCssStyle = ""; $CCEStudents->Surname->CellCssClass = "";
$CCEStudents->Surname->CellAttrs = array(); $CCEStudents->Surname->ViewAttrs = array(); $CCEStudents->Surname->EditAttrs = array();
// Organisation
$CCEStudents->Organisation->CellCssStyle = ""; $CCEStudents->Organisation->CellCssClass = "";
$CCEStudents->Organisation->CellAttrs = array(); $CCEStudents->Organisation->ViewAttrs = array(); $CCEStudents->Organisation->EditAttrs = array();
// OrganisationType
$CCEStudents->OrganisationType->CellCssStyle = ""; $CCEStudents->OrganisationType->CellCssClass = "";
$CCEStudents->OrganisationType->CellAttrs = array(); $CCEStudents->OrganisationType->ViewAttrs = array(); $CCEStudents->OrganisationType->EditAttrs = array();
// Designation
$CCEStudents->Designation->CellCssStyle = ""; $CCEStudents->Designation->CellCssClass = "";
$CCEStudents->Designation->CellAttrs = array(); $CCEStudents->Designation->ViewAttrs = array(); $CCEStudents->Designation->EditAttrs = array();
// Department
$CCEStudents->Department->CellCssStyle = ""; $CCEStudents->Department->CellCssClass = "";
$CCEStudents->Department->CellAttrs = array(); $CCEStudents->Department->ViewAttrs = array(); $CCEStudents->Department->EditAttrs = array();
// StudentNumber
$CCEStudents->StudentNumber->CellCssStyle = ""; $CCEStudents->StudentNumber->CellCssClass = "";
$CCEStudents->StudentNumber->CellAttrs = array(); $CCEStudents->StudentNumber->ViewAttrs = array(); $CCEStudents->StudentNumber->EditAttrs = array();
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->CellCssStyle = ""; $CCEStudents->CCEFacilitatorID->CellCssClass = "";
$CCEStudents->CCEFacilitatorID->CellAttrs = array(); $CCEStudents->CCEFacilitatorID->ViewAttrs = array(); $CCEStudents->CCEFacilitatorID->EditAttrs = array();
// Project
$CCEStudents->Project->CellCssStyle = ""; $CCEStudents->Project->CellCssClass = "";
$CCEStudents->Project->CellAttrs = array(); $CCEStudents->Project->ViewAttrs = array(); $CCEStudents->Project->EditAttrs = array();
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->CellCssStyle = ""; $CCEStudents->ProjectDiscipline->CellCssClass = "";
$CCEStudents->ProjectDiscipline->CellAttrs = array(); $CCEStudents->ProjectDiscipline->ViewAttrs = array(); $CCEStudents->ProjectDiscipline->EditAttrs = array();
// ProjectCode
$CCEStudents->ProjectCode->CellCssStyle = ""; $CCEStudents->ProjectCode->CellCssClass = "";
$CCEStudents->ProjectCode->CellAttrs = array(); $CCEStudents->ProjectCode->ViewAttrs = array(); $CCEStudents->ProjectCode->EditAttrs = array();
// IDNumber
$CCEStudents->IDNumber->CellCssStyle = ""; $CCEStudents->IDNumber->CellCssClass = "";
$CCEStudents->IDNumber->CellAttrs = array(); $CCEStudents->IDNumber->ViewAttrs = array(); $CCEStudents->IDNumber->EditAttrs = array();
// ECSARegistered
$CCEStudents->ECSARegistered->CellCssStyle = ""; $CCEStudents->ECSARegistered->CellCssClass = "";
$CCEStudents->ECSARegistered->CellAttrs = array(); $CCEStudents->ECSARegistered->ViewAttrs = array(); $CCEStudents->ECSARegistered->EditAttrs = array();
// ECSACategory
$CCEStudents->ECSACategory->CellCssStyle = ""; $CCEStudents->ECSACategory->CellCssClass = "";
$CCEStudents->ECSACategory->CellAttrs = array(); $CCEStudents->ECSACategory->ViewAttrs = array(); $CCEStudents->ECSACategory->EditAttrs = array();
// ECSANumber
$CCEStudents->ECSANumber->CellCssStyle = ""; $CCEStudents->ECSANumber->CellCssClass = "";
$CCEStudents->ECSANumber->CellAttrs = array(); $CCEStudents->ECSANumber->ViewAttrs = array(); $CCEStudents->ECSANumber->EditAttrs = array();
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyRegistered->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyRegistered->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyRegistered->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyRegistered->EditAttrs = array();
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyName->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyName->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyName->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyName->EditAttrs = array();
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyNumber->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyNumber->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyNumber->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyNumber->EditAttrs = array();
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->CellCssStyle = ""; $CCEStudents->OtherStatutoryBodyCategory->CellCssClass = "";
$CCEStudents->OtherStatutoryBodyCategory->CellAttrs = array(); $CCEStudents->OtherStatutoryBodyCategory->ViewAttrs = array(); $CCEStudents->OtherStatutoryBodyCategory->EditAttrs = array();
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->CellCssStyle = ""; $CCEStudents->CESAMemberFirm->CellCssClass = "";
$CCEStudents->CESAMemberFirm->CellAttrs = array(); $CCEStudents->CESAMemberFirm->ViewAttrs = array(); $CCEStudents->CESAMemberFirm->EditAttrs = array();
// OtherCEFirms
$CCEStudents->OtherCEFirms->CellCssStyle = ""; $CCEStudents->OtherCEFirms->CellCssClass = "";
$CCEStudents->OtherCEFirms->CellAttrs = array(); $CCEStudents->OtherCEFirms->ViewAttrs = array(); $CCEStudents->OtherCEFirms->EditAttrs = array();
// Age
$CCEStudents->Age->CellCssStyle = ""; $CCEStudents->Age->CellCssClass = "";
$CCEStudents->Age->CellAttrs = array(); $CCEStudents->Age->ViewAttrs = array(); $CCEStudents->Age->EditAttrs = array();
// HighestQual
$CCEStudents->HighestQual->CellCssStyle = ""; $CCEStudents->HighestQual->CellCssClass = "";
$CCEStudents->HighestQual->CellAttrs = array(); $CCEStudents->HighestQual->ViewAttrs = array(); $CCEStudents->HighestQual->EditAttrs = array();
// AreaDiscipline
$CCEStudents->AreaDiscipline->CellCssStyle = ""; $CCEStudents->AreaDiscipline->CellCssClass = "";
$CCEStudents->AreaDiscipline->CellAttrs = array(); $CCEStudents->AreaDiscipline->ViewAttrs = array(); $CCEStudents->AreaDiscipline->EditAttrs = array();
// Telephone
$CCEStudents->Telephone->CellCssStyle = ""; $CCEStudents->Telephone->CellCssClass = "";
$CCEStudents->Telephone->CellAttrs = array(); $CCEStudents->Telephone->ViewAttrs = array(); $CCEStudents->Telephone->EditAttrs = array();
// Cellphone
$CCEStudents->Cellphone->CellCssStyle = ""; $CCEStudents->Cellphone->CellCssClass = "";
$CCEStudents->Cellphone->CellAttrs = array(); $CCEStudents->Cellphone->ViewAttrs = array(); $CCEStudents->Cellphone->EditAttrs = array();
// EmailAddress
$CCEStudents->EmailAddress->CellCssStyle = ""; $CCEStudents->EmailAddress->CellCssClass = "";
$CCEStudents->EmailAddress->CellAttrs = array(); $CCEStudents->EmailAddress->ViewAttrs = array(); $CCEStudents->EmailAddress->EditAttrs = array();
// EmailAddress2
$CCEStudents->EmailAddress2->CellCssStyle = ""; $CCEStudents->EmailAddress2->CellCssClass = "";
$CCEStudents->EmailAddress2->CellAttrs = array(); $CCEStudents->EmailAddress2->ViewAttrs = array(); $CCEStudents->EmailAddress2->EditAttrs = array();
// HomeAddress
$CCEStudents->HomeAddress->CellCssStyle = ""; $CCEStudents->HomeAddress->CellCssClass = "";
$CCEStudents->HomeAddress->CellAttrs = array(); $CCEStudents->HomeAddress->ViewAttrs = array(); $CCEStudents->HomeAddress->EditAttrs = array();
// WorkAddress
$CCEStudents->WorkAddress->CellCssStyle = ""; $CCEStudents->WorkAddress->CellCssClass = "";
$CCEStudents->WorkAddress->CellAttrs = array(); $CCEStudents->WorkAddress->ViewAttrs = array(); $CCEStudents->WorkAddress->EditAttrs = array();
// PostalAddress
$CCEStudents->PostalAddress->CellCssStyle = ""; $CCEStudents->PostalAddress->CellCssClass = "";
$CCEStudents->PostalAddress->CellAttrs = array(); $CCEStudents->PostalAddress->ViewAttrs = array(); $CCEStudents->PostalAddress->EditAttrs = array();
// PreferredCourierAddress
$CCEStudents->PreferredCourierAddress->CellCssStyle = ""; $CCEStudents->PreferredCourierAddress->CellCssClass = "";
$CCEStudents->PreferredCourierAddress->CellAttrs = array(); $CCEStudents->PreferredCourierAddress->ViewAttrs = array(); $CCEStudents->PreferredCourierAddress->EditAttrs = array();
// CESAAccountNo
$CCEStudents->CESAAccountNo->CellCssStyle = ""; $CCEStudents->CESAAccountNo->CellCssClass = "";
$CCEStudents->CESAAccountNo->CellAttrs = array(); $CCEStudents->CESAAccountNo->ViewAttrs = array(); $CCEStudents->CESAAccountNo->EditAttrs = array();
// VATNo
$CCEStudents->VATNo->CellCssStyle = ""; $CCEStudents->VATNo->CellCssClass = "";
$CCEStudents->VATNo->CellAttrs = array(); $CCEStudents->VATNo->ViewAttrs = array(); $CCEStudents->VATNo->EditAttrs = array();
// DietaryRequirements
$CCEStudents->DietaryRequirements->CellCssStyle = ""; $CCEStudents->DietaryRequirements->CellCssClass = "";
$CCEStudents->DietaryRequirements->CellAttrs = array(); $CCEStudents->DietaryRequirements->ViewAttrs = array(); $CCEStudents->DietaryRequirements->EditAttrs = array();
// CVFile
$CCEStudents->CVFile->CellCssStyle = ""; $CCEStudents->CVFile->CellCssClass = "";
$CCEStudents->CVFile->CellAttrs = array(); $CCEStudents->CVFile->ViewAttrs = array(); $CCEStudents->CVFile->EditAttrs = array();
// IDFile
$CCEStudents->IDFile->CellCssStyle = ""; $CCEStudents->IDFile->CellCssClass = "";
$CCEStudents->IDFile->CellAttrs = array(); $CCEStudents->IDFile->ViewAttrs = array(); $CCEStudents->IDFile->EditAttrs = array();
// QualCertificate1
$CCEStudents->QualCertificate1->CellCssStyle = ""; $CCEStudents->QualCertificate1->CellCssClass = "";
$CCEStudents->QualCertificate1->CellAttrs = array(); $CCEStudents->QualCertificate1->ViewAttrs = array(); $CCEStudents->QualCertificate1->EditAttrs = array();
// QualCertificate2
$CCEStudents->QualCertificate2->CellCssStyle = ""; $CCEStudents->QualCertificate2->CellCssClass = "";
$CCEStudents->QualCertificate2->CellAttrs = array(); $CCEStudents->QualCertificate2->ViewAttrs = array(); $CCEStudents->QualCertificate2->EditAttrs = array();
// QualCertificate3
$CCEStudents->QualCertificate3->CellCssStyle = ""; $CCEStudents->QualCertificate3->CellCssClass = "";
$CCEStudents->QualCertificate3->CellAttrs = array(); $CCEStudents->QualCertificate3->ViewAttrs = array(); $CCEStudents->QualCertificate3->EditAttrs = array();
// MemorandumFile
$CCEStudents->MemorandumFile->CellCssStyle = ""; $CCEStudents->MemorandumFile->CellCssClass = "";
$CCEStudents->MemorandumFile->CellAttrs = array(); $CCEStudents->MemorandumFile->ViewAttrs = array(); $CCEStudents->MemorandumFile->EditAttrs = array();
// AgreementFile
$CCEStudents->AgreementFile->CellCssStyle = ""; $CCEStudents->AgreementFile->CellCssClass = "";
$CCEStudents->AgreementFile->CellAttrs = array(); $CCEStudents->AgreementFile->ViewAttrs = array(); $CCEStudents->AgreementFile->EditAttrs = array();
// MotivationalLetter
$CCEStudents->MotivationalLetter->CellCssStyle = ""; $CCEStudents->MotivationalLetter->CellCssClass = "";
$CCEStudents->MotivationalLetter->CellAttrs = array(); $CCEStudents->MotivationalLetter->ViewAttrs = array(); $CCEStudents->MotivationalLetter->EditAttrs = array();
// PhotoFile
$CCEStudents->PhotoFile->CellCssStyle = ""; $CCEStudents->PhotoFile->CellCssClass = "";
$CCEStudents->PhotoFile->CellAttrs = array(); $CCEStudents->PhotoFile->ViewAttrs = array(); $CCEStudents->PhotoFile->EditAttrs = array();
// OrderNo
$CCEStudents->OrderNo->CellCssStyle = ""; $CCEStudents->OrderNo->CellCssClass = "";
$CCEStudents->OrderNo->CellAttrs = array(); $CCEStudents->OrderNo->ViewAttrs = array(); $CCEStudents->OrderNo->EditAttrs = array();
// BookedByName
$CCEStudents->BookedByName->CellCssStyle = ""; $CCEStudents->BookedByName->CellCssClass = "";
$CCEStudents->BookedByName->CellAttrs = array(); $CCEStudents->BookedByName->ViewAttrs = array(); $CCEStudents->BookedByName->EditAttrs = array();
// BookedByDesignation
$CCEStudents->BookedByDesignation->CellCssStyle = ""; $CCEStudents->BookedByDesignation->CellCssClass = "";
$CCEStudents->BookedByDesignation->CellAttrs = array(); $CCEStudents->BookedByDesignation->ViewAttrs = array(); $CCEStudents->BookedByDesignation->EditAttrs = array();
// BookedByTelNo
$CCEStudents->BookedByTelNo->CellCssStyle = ""; $CCEStudents->BookedByTelNo->CellCssClass = "";
$CCEStudents->BookedByTelNo->CellAttrs = array(); $CCEStudents->BookedByTelNo->ViewAttrs = array(); $CCEStudents->BookedByTelNo->EditAttrs = array();
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->CellCssStyle = ""; $CCEStudents->BookedByFaxNo->CellCssClass = "";
$CCEStudents->BookedByFaxNo->CellAttrs = array(); $CCEStudents->BookedByFaxNo->ViewAttrs = array(); $CCEStudents->BookedByFaxNo->EditAttrs = array();
// BookedByCellNo
$CCEStudents->BookedByCellNo->CellCssStyle = ""; $CCEStudents->BookedByCellNo->CellCssClass = "";
$CCEStudents->BookedByCellNo->CellAttrs = array(); $CCEStudents->BookedByCellNo->ViewAttrs = array(); $CCEStudents->BookedByCellNo->EditAttrs = array();
// BookedByEmail
$CCEStudents->BookedByEmail->CellCssStyle = ""; $CCEStudents->BookedByEmail->CellCssClass = "";
$CCEStudents->BookedByEmail->CellAttrs = array(); $CCEStudents->BookedByEmail->ViewAttrs = array(); $CCEStudents->BookedByEmail->EditAttrs = array();
// WebUsername
$CCEStudents->WebUsername->CellCssStyle = ""; $CCEStudents->WebUsername->CellCssClass = "";
$CCEStudents->WebUsername->CellAttrs = array(); $CCEStudents->WebUsername->ViewAttrs = array(); $CCEStudents->WebUsername->EditAttrs = array();
// WebPassword
$CCEStudents->WebPassword->CellCssStyle = ""; $CCEStudents->WebPassword->CellCssClass = "";
$CCEStudents->WebPassword->CellAttrs = array(); $CCEStudents->WebPassword->ViewAttrs = array(); $CCEStudents->WebPassword->EditAttrs = array();
// MentorFirstName
$CCEStudents->MentorFirstName->CellCssStyle = ""; $CCEStudents->MentorFirstName->CellCssClass = "";
$CCEStudents->MentorFirstName->CellAttrs = array(); $CCEStudents->MentorFirstName->ViewAttrs = array(); $CCEStudents->MentorFirstName->EditAttrs = array();
// MentorSurname
$CCEStudents->MentorSurname->CellCssStyle = ""; $CCEStudents->MentorSurname->CellCssClass = "";
$CCEStudents->MentorSurname->CellAttrs = array(); $CCEStudents->MentorSurname->ViewAttrs = array(); $CCEStudents->MentorSurname->EditAttrs = array();
// MentorCompany
$CCEStudents->MentorCompany->CellCssStyle = ""; $CCEStudents->MentorCompany->CellCssClass = "";
$CCEStudents->MentorCompany->CellAttrs = array(); $CCEStudents->MentorCompany->ViewAttrs = array(); $CCEStudents->MentorCompany->EditAttrs = array();
// MentorDesig
$CCEStudents->MentorDesig->CellCssStyle = ""; $CCEStudents->MentorDesig->CellCssClass = "";
$CCEStudents->MentorDesig->CellAttrs = array(); $CCEStudents->MentorDesig->ViewAttrs = array(); $CCEStudents->MentorDesig->EditAttrs = array();
// MentorTel
$CCEStudents->MentorTel->CellCssStyle = ""; $CCEStudents->MentorTel->CellCssClass = "";
$CCEStudents->MentorTel->CellAttrs = array(); $CCEStudents->MentorTel->ViewAttrs = array(); $CCEStudents->MentorTel->EditAttrs = array();
// MentorCell
$CCEStudents->MentorCell->CellCssStyle = ""; $CCEStudents->MentorCell->CellCssClass = "";
$CCEStudents->MentorCell->CellAttrs = array(); $CCEStudents->MentorCell->ViewAttrs = array(); $CCEStudents->MentorCell->EditAttrs = array();
// MentorEmail
$CCEStudents->MentorEmail->CellCssStyle = ""; $CCEStudents->MentorEmail->CellCssClass = "";
$CCEStudents->MentorEmail->CellAttrs = array(); $CCEStudents->MentorEmail->ViewAttrs = array(); $CCEStudents->MentorEmail->EditAttrs = array();
// HRManagerName
$CCEStudents->HRManagerName->CellCssStyle = ""; $CCEStudents->HRManagerName->CellCssClass = "";
$CCEStudents->HRManagerName->CellAttrs = array(); $CCEStudents->HRManagerName->ViewAttrs = array(); $CCEStudents->HRManagerName->EditAttrs = array();
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->CellCssStyle = ""; $CCEStudents->HRManagerDesignation->CellCssClass = "";
$CCEStudents->HRManagerDesignation->CellAttrs = array(); $CCEStudents->HRManagerDesignation->ViewAttrs = array(); $CCEStudents->HRManagerDesignation->EditAttrs = array();
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->CellCssStyle = ""; $CCEStudents->HRManagerTelNo->CellCssClass = "";
$CCEStudents->HRManagerTelNo->CellAttrs = array(); $CCEStudents->HRManagerTelNo->ViewAttrs = array(); $CCEStudents->HRManagerTelNo->EditAttrs = array();
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->CellCssStyle = ""; $CCEStudents->HRManagerCellNo->CellCssClass = "";
$CCEStudents->HRManagerCellNo->CellAttrs = array(); $CCEStudents->HRManagerCellNo->ViewAttrs = array(); $CCEStudents->HRManagerCellNo->EditAttrs = array();
// HRManagerEmail
$CCEStudents->HRManagerEmail->CellCssStyle = ""; $CCEStudents->HRManagerEmail->CellCssClass = "";
$CCEStudents->HRManagerEmail->CellAttrs = array(); $CCEStudents->HRManagerEmail->ViewAttrs = array(); $CCEStudents->HRManagerEmail->EditAttrs = array();
// LengthEmploy
$CCEStudents->LengthEmploy->CellCssStyle = ""; $CCEStudents->LengthEmploy->CellCssClass = "";
$CCEStudents->LengthEmploy->CellAttrs = array(); $CCEStudents->LengthEmploy->ViewAttrs = array(); $CCEStudents->LengthEmploy->EditAttrs = array();
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->CellCssStyle = ""; $CCEStudents->ResponsiblePayment->CellCssClass = "";
$CCEStudents->ResponsiblePayment->CellAttrs = array(); $CCEStudents->ResponsiblePayment->ViewAttrs = array(); $CCEStudents->ResponsiblePayment->EditAttrs = array();
// BlockAccess
$CCEStudents->BlockAccess->CellCssStyle = ""; $CCEStudents->BlockAccess->CellCssClass = "";
$CCEStudents->BlockAccess->CellAttrs = array(); $CCEStudents->BlockAccess->ViewAttrs = array(); $CCEStudents->BlockAccess->EditAttrs = array();
// Accepted
$CCEStudents->Accepted->CellCssStyle = ""; $CCEStudents->Accepted->CellCssClass = "";
$CCEStudents->Accepted->CellAttrs = array(); $CCEStudents->Accepted->ViewAttrs = array(); $CCEStudents->Accepted->EditAttrs = array();
// Archived
$CCEStudents->Archived->CellCssStyle = ""; $CCEStudents->Archived->CellCssClass = "";
$CCEStudents->Archived->CellAttrs = array(); $CCEStudents->Archived->ViewAttrs = array(); $CCEStudents->Archived->EditAttrs = array();
// Achieved
$CCEStudents->Achieved->CellCssStyle = ""; $CCEStudents->Achieved->CellCssClass = "";
$CCEStudents->Achieved->CellAttrs = array(); $CCEStudents->Achieved->ViewAttrs = array(); $CCEStudents->Achieved->EditAttrs = array();
// ResultLetter
$CCEStudents->ResultLetter->CellCssStyle = ""; $CCEStudents->ResultLetter->CellCssClass = "";
$CCEStudents->ResultLetter->CellAttrs = array(); $CCEStudents->ResultLetter->ViewAttrs = array(); $CCEStudents->ResultLetter->EditAttrs = array();
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->CellCssStyle = ""; $CCEStudents->ReasonForLeaving->CellCssClass = "";
$CCEStudents->ReasonForLeaving->CellAttrs = array(); $CCEStudents->ReasonForLeaving->ViewAttrs = array(); $CCEStudents->ReasonForLeaving->EditAttrs = array();
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->CellCssStyle = ""; $CCEStudents->ReasonNotAccepted->CellCssClass = "";
$CCEStudents->ReasonNotAccepted->CellAttrs = array(); $CCEStudents->ReasonNotAccepted->ViewAttrs = array(); $CCEStudents->ReasonNotAccepted->EditAttrs = array();
// ResultComments
$CCEStudents->ResultComments->CellCssStyle = ""; $CCEStudents->ResultComments->CellCssClass = "";
$CCEStudents->ResultComments->CellAttrs = array(); $CCEStudents->ResultComments->ViewAttrs = array(); $CCEStudents->ResultComments->EditAttrs = array();
// ResultStatus
$CCEStudents->ResultStatus->CellCssStyle = ""; $CCEStudents->ResultStatus->CellCssClass = "";
$CCEStudents->ResultStatus->CellAttrs = array(); $CCEStudents->ResultStatus->ViewAttrs = array(); $CCEStudents->ResultStatus->EditAttrs = array();
// ModulesEnrolled
$CCEStudents->ModulesEnrolled->CellCssStyle = ""; $CCEStudents->ModulesEnrolled->CellCssClass = "";
$CCEStudents->ModulesEnrolled->CellAttrs = array(); $CCEStudents->ModulesEnrolled->ViewAttrs = array(); $CCEStudents->ModulesEnrolled->EditAttrs = array();
// ModulesExcluded
$CCEStudents->ModulesExcluded->CellCssStyle = ""; $CCEStudents->ModulesExcluded->CellCssClass = "";
$CCEStudents->ModulesExcluded->CellAttrs = array(); $CCEStudents->ModulesExcluded->ViewAttrs = array(); $CCEStudents->ModulesExcluded->EditAttrs = array();
// Cancelled
$CCEStudents->Cancelled->CellCssStyle = ""; $CCEStudents->Cancelled->CellCssClass = "";
$CCEStudents->Cancelled->CellAttrs = array(); $CCEStudents->Cancelled->ViewAttrs = array(); $CCEStudents->Cancelled->EditAttrs = array();
// CancelledReason
$CCEStudents->CancelledReason->CellCssStyle = ""; $CCEStudents->CancelledReason->CellCssClass = "";
$CCEStudents->CancelledReason->CellAttrs = array(); $CCEStudents->CancelledReason->ViewAttrs = array(); $CCEStudents->CancelledReason->EditAttrs = array();
// Trimester1Report
$CCEStudents->Trimester1Report->CellCssStyle = ""; $CCEStudents->Trimester1Report->CellCssClass = "";
$CCEStudents->Trimester1Report->CellAttrs = array(); $CCEStudents->Trimester1Report->ViewAttrs = array(); $CCEStudents->Trimester1Report->EditAttrs = array();
// Trimester2Report
$CCEStudents->Trimester2Report->CellCssStyle = ""; $CCEStudents->Trimester2Report->CellCssClass = "";
$CCEStudents->Trimester2Report->CellAttrs = array(); $CCEStudents->Trimester2Report->ViewAttrs = array(); $CCEStudents->Trimester2Report->EditAttrs = array();
// Trimester3Report
$CCEStudents->Trimester3Report->CellCssStyle = ""; $CCEStudents->Trimester3Report->CellCssClass = "";
$CCEStudents->Trimester3Report->CellAttrs = array(); $CCEStudents->Trimester3Report->ViewAttrs = array(); $CCEStudents->Trimester3Report->EditAttrs = array();
// ExamResultLetter
$CCEStudents->ExamResultLetter->CellCssStyle = ""; $CCEStudents->ExamResultLetter->CellCssClass = "";
$CCEStudents->ExamResultLetter->CellAttrs = array(); $CCEStudents->ExamResultLetter->ViewAttrs = array(); $CCEStudents->ExamResultLetter->EditAttrs = array();
// SupplementalExamLetter
$CCEStudents->SupplementalExamLetter->CellCssStyle = ""; $CCEStudents->SupplementalExamLetter->CellCssClass = "";
$CCEStudents->SupplementalExamLetter->CellAttrs = array(); $CCEStudents->SupplementalExamLetter->ViewAttrs = array(); $CCEStudents->SupplementalExamLetter->EditAttrs = array();
// MarketingSource
$CCEStudents->MarketingSource->CellCssStyle = ""; $CCEStudents->MarketingSource->CellCssClass = "";
$CCEStudents->MarketingSource->CellAttrs = array(); $CCEStudents->MarketingSource->ViewAttrs = array(); $CCEStudents->MarketingSource->EditAttrs = array();
// MarketingSourceOther
$CCEStudents->MarketingSourceOther->CellCssStyle = ""; $CCEStudents->MarketingSourceOther->CellCssClass = "";
$CCEStudents->MarketingSourceOther->CellAttrs = array(); $CCEStudents->MarketingSourceOther->ViewAttrs = array(); $CCEStudents->MarketingSourceOther->EditAttrs = array();
if ($CCEStudents->RowType == EW_ROWTYPE_VIEW) { // View row
// CCEStudentID
$CCEStudents->CCEStudentID->ViewValue = $CCEStudents->CCEStudentID->CurrentValue;
$CCEStudents->CCEStudentID->CssStyle = "";
$CCEStudents->CCEStudentID->CssClass = "";
$CCEStudents->CCEStudentID->ViewCustomAttributes = "";
// Title
$CCEStudents->Title->ViewValue = $CCEStudents->Title->CurrentValue;
$CCEStudents->Title->CssStyle = "";
$CCEStudents->Title->CssClass = "";
$CCEStudents->Title->ViewCustomAttributes = "";
// KnownAs
$CCEStudents->KnownAs->ViewValue = $CCEStudents->KnownAs->CurrentValue;
$CCEStudents->KnownAs->CssStyle = "";
$CCEStudents->KnownAs->CssClass = "";
$CCEStudents->KnownAs->ViewCustomAttributes = "";
// FirstName
$CCEStudents->FirstName->ViewValue = $CCEStudents->FirstName->CurrentValue;
$CCEStudents->FirstName->CssStyle = "";
$CCEStudents->FirstName->CssClass = "";
$CCEStudents->FirstName->ViewCustomAttributes = "";
// Surname
$CCEStudents->Surname->ViewValue = $CCEStudents->Surname->CurrentValue;
$CCEStudents->Surname->CssStyle = "";
$CCEStudents->Surname->CssClass = "";
$CCEStudents->Surname->ViewCustomAttributes = "";
// Organisation
$CCEStudents->Organisation->ViewValue = $CCEStudents->Organisation->CurrentValue;
$CCEStudents->Organisation->CssStyle = "";
$CCEStudents->Organisation->CssClass = "";
$CCEStudents->Organisation->ViewCustomAttributes = "";
// OrganisationType
$CCEStudents->OrganisationType->ViewValue = $CCEStudents->OrganisationType->CurrentValue;
$CCEStudents->OrganisationType->CssStyle = "";
$CCEStudents->OrganisationType->CssClass = "";
$CCEStudents->OrganisationType->ViewCustomAttributes = "";
// Designation
$CCEStudents->Designation->ViewValue = $CCEStudents->Designation->CurrentValue;
$CCEStudents->Designation->CssStyle = "";
$CCEStudents->Designation->CssClass = "";
$CCEStudents->Designation->ViewCustomAttributes = "";
// Department
$CCEStudents->Department->ViewValue = $CCEStudents->Department->CurrentValue;
$CCEStudents->Department->CssStyle = "";
$CCEStudents->Department->CssClass = "";
$CCEStudents->Department->ViewCustomAttributes = "";
// StudentNumber
$CCEStudents->StudentNumber->ViewValue = $CCEStudents->StudentNumber->CurrentValue;
$CCEStudents->StudentNumber->CssStyle = "";
$CCEStudents->StudentNumber->CssClass = "";
$CCEStudents->StudentNumber->ViewCustomAttributes = "";
// CCEFacilitatorID
if (strval($CCEStudents->CCEFacilitatorID->CurrentValue) <> "") {
$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($CCEStudents->CCEFacilitatorID->CurrentValue) . "";
$sSqlWrk = "SELECT `FacilitatorName` FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "Archived=0" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
$rswrk->Close();
} else {
$CCEStudents->CCEFacilitatorID->ViewValue = $CCEStudents->CCEFacilitatorID->CurrentValue;
}
} else {
$CCEStudents->CCEFacilitatorID->ViewValue = NULL;
}
$CCEStudents->CCEFacilitatorID->CssStyle = "";
$CCEStudents->CCEFacilitatorID->CssClass = "";
$CCEStudents->CCEFacilitatorID->ViewCustomAttributes = "";
// Project
if (strval($CCEStudents->Project->CurrentValue) <> "") {
$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($CCEStudents->Project->CurrentValue) . "";
$sSqlWrk = "SELECT `Project` FROM `CCEProjects`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->Project->ViewValue = $rswrk->fields('Project');
$rswrk->Close();
} else {
$CCEStudents->Project->ViewValue = $CCEStudents->Project->CurrentValue;
}
} else {
$CCEStudents->Project->ViewValue = NULL;
}
$CCEStudents->Project->CssStyle = "";
$CCEStudents->Project->CssClass = "";
$CCEStudents->Project->ViewCustomAttributes = "";
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->ViewValue = $CCEStudents->ProjectDiscipline->CurrentValue;
$CCEStudents->ProjectDiscipline->CssStyle = "";
$CCEStudents->ProjectDiscipline->CssClass = "";
$CCEStudents->ProjectDiscipline->ViewCustomAttributes = "";
// ProjectCode
$CCEStudents->ProjectCode->ViewValue = $CCEStudents->ProjectCode->CurrentValue;
$CCEStudents->ProjectCode->CssStyle = "";
$CCEStudents->ProjectCode->CssClass = "";
$CCEStudents->ProjectCode->ViewCustomAttributes = "";
// IDNumber
$CCEStudents->IDNumber->ViewValue = $CCEStudents->IDNumber->CurrentValue;
$CCEStudents->IDNumber->CssStyle = "";
$CCEStudents->IDNumber->CssClass = "";
$CCEStudents->IDNumber->ViewCustomAttributes = "mso-number-format:General";
// ECSARegistered
if (strval($CCEStudents->ECSARegistered->CurrentValue) <> "") {
switch ($CCEStudents->ECSARegistered->CurrentValue) {
case "y":
$CCEStudents->ECSARegistered->ViewValue = "Yes";
break;
case "n":
$CCEStudents->ECSARegistered->ViewValue = "No";
break;
default:
$CCEStudents->ECSARegistered->ViewValue = $CCEStudents->ECSARegistered->CurrentValue;
}
} else {
$CCEStudents->ECSARegistered->ViewValue = NULL;
}
$CCEStudents->ECSARegistered->CssStyle = "";
$CCEStudents->ECSARegistered->CssClass = "";
$CCEStudents->ECSARegistered->ViewCustomAttributes = "";
// ECSACategory
if (strval($CCEStudents->ECSACategory->CurrentValue) <> "") {
$sFilterWrk = "`PicklistValue` = '" . ew_AdjustSql($CCEStudents->ECSACategory->CurrentValue) . "'";
$sSqlWrk = "SELECT `PicklistLabel` FROM `Picklists`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "`Picklists`.`PicklistType` = 'ECSA Registration Categories'" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->ECSACategory->ViewValue = $rswrk->fields('PicklistLabel');
$rswrk->Close();
} else {
$CCEStudents->ECSACategory->ViewValue = $CCEStudents->ECSACategory->CurrentValue;
}
} else {
$CCEStudents->ECSACategory->ViewValue = NULL;
}
$CCEStudents->ECSACategory->CssStyle = "";
$CCEStudents->ECSACategory->CssClass = "";
$CCEStudents->ECSACategory->ViewCustomAttributes = "";
// ECSANumber
$CCEStudents->ECSANumber->ViewValue = $CCEStudents->ECSANumber->CurrentValue;
$CCEStudents->ECSANumber->CssStyle = "";
$CCEStudents->ECSANumber->CssClass = "";
$CCEStudents->ECSANumber->ViewCustomAttributes = "";
// OtherStatutoryBodyRegistered
if (strval($CCEStudents->OtherStatutoryBodyRegistered->CurrentValue) <> "") {
switch ($CCEStudents->OtherStatutoryBodyRegistered->CurrentValue) {
case "1":
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = "Yes";
break;
case "0":
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = "No";
break;
default:
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = $CCEStudents->OtherStatutoryBodyRegistered->CurrentValue;
}
} else {
$CCEStudents->OtherStatutoryBodyRegistered->ViewValue = NULL;
}
$CCEStudents->OtherStatutoryBodyRegistered->CssStyle = "";
$CCEStudents->OtherStatutoryBodyRegistered->CssClass = "";
$CCEStudents->OtherStatutoryBodyRegistered->ViewCustomAttributes = "";
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->ViewValue = $CCEStudents->OtherStatutoryBodyName->CurrentValue;
$CCEStudents->OtherStatutoryBodyName->CssStyle = "";
$CCEStudents->OtherStatutoryBodyName->CssClass = "";
$CCEStudents->OtherStatutoryBodyName->ViewCustomAttributes = "";
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->ViewValue = $CCEStudents->OtherStatutoryBodyNumber->CurrentValue;
$CCEStudents->OtherStatutoryBodyNumber->CssStyle = "";
$CCEStudents->OtherStatutoryBodyNumber->CssClass = "";
$CCEStudents->OtherStatutoryBodyNumber->ViewCustomAttributes = "";
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->ViewValue = $CCEStudents->OtherStatutoryBodyCategory->CurrentValue;
$CCEStudents->OtherStatutoryBodyCategory->CssStyle = "";
$CCEStudents->OtherStatutoryBodyCategory->CssClass = "";
$CCEStudents->OtherStatutoryBodyCategory->ViewCustomAttributes = "";
// CESAMemberFirm
if (strval($CCEStudents->CESAMemberFirm->CurrentValue) <> "") {
switch ($CCEStudents->CESAMemberFirm->CurrentValue) {
case "y":
$CCEStudents->CESAMemberFirm->ViewValue = "Yes";
break;
case "n":
$CCEStudents->CESAMemberFirm->ViewValue = "No";
break;
default:
$CCEStudents->CESAMemberFirm->ViewValue = $CCEStudents->CESAMemberFirm->CurrentValue;
}
} else {
$CCEStudents->CESAMemberFirm->ViewValue = NULL;
}
$CCEStudents->CESAMemberFirm->CssStyle = "";
$CCEStudents->CESAMemberFirm->CssClass = "";
$CCEStudents->CESAMemberFirm->ViewCustomAttributes = "";
// OtherCEFirms
$CCEStudents->OtherCEFirms->ViewValue = $CCEStudents->OtherCEFirms->CurrentValue;
$CCEStudents->OtherCEFirms->CssStyle = "";
$CCEStudents->OtherCEFirms->CssClass = "";
$CCEStudents->OtherCEFirms->ViewCustomAttributes = "";
// Age
$CCEStudents->Age->ViewValue = $CCEStudents->Age->CurrentValue;
$CCEStudents->Age->CssStyle = "";
$CCEStudents->Age->CssClass = "";
$CCEStudents->Age->ViewCustomAttributes = "";
// HighestQual
$CCEStudents->HighestQual->ViewValue = $CCEStudents->HighestQual->CurrentValue;
$CCEStudents->HighestQual->CssStyle = "";
$CCEStudents->HighestQual->CssClass = "";
$CCEStudents->HighestQual->ViewCustomAttributes = "";
// AreaDiscipline
$CCEStudents->AreaDiscipline->ViewValue = $CCEStudents->AreaDiscipline->CurrentValue;
$CCEStudents->AreaDiscipline->CssStyle = "";
$CCEStudents->AreaDiscipline->CssClass = "";
$CCEStudents->AreaDiscipline->ViewCustomAttributes = "";
// Telephone
$CCEStudents->Telephone->ViewValue = $CCEStudents->Telephone->CurrentValue;
$CCEStudents->Telephone->CssStyle = "";
$CCEStudents->Telephone->CssClass = "";
$CCEStudents->Telephone->ViewCustomAttributes = "mso-number-format:General";
// Cellphone
$CCEStudents->Cellphone->ViewValue = $CCEStudents->Cellphone->CurrentValue;
$CCEStudents->Cellphone->CssStyle = "";
$CCEStudents->Cellphone->CssClass = "";
$CCEStudents->Cellphone->ViewCustomAttributes = "mso-number-format:General";
// EmailAddress
$CCEStudents->EmailAddress->ViewValue = $CCEStudents->EmailAddress->CurrentValue;
$CCEStudents->EmailAddress->CssStyle = "";
$CCEStudents->EmailAddress->CssClass = "";
$CCEStudents->EmailAddress->ViewCustomAttributes = "";
// EmailAddress2
$CCEStudents->EmailAddress2->ViewValue = $CCEStudents->EmailAddress2->CurrentValue;
$CCEStudents->EmailAddress2->CssStyle = "";
$CCEStudents->EmailAddress2->CssClass = "";
$CCEStudents->EmailAddress2->ViewCustomAttributes = "";
// HomeAddress
$CCEStudents->HomeAddress->ViewValue = $CCEStudents->HomeAddress->CurrentValue;
$CCEStudents->HomeAddress->CssStyle = "";
$CCEStudents->HomeAddress->CssClass = "";
$CCEStudents->HomeAddress->ViewCustomAttributes = "";
// WorkAddress
$CCEStudents->WorkAddress->ViewValue = $CCEStudents->WorkAddress->CurrentValue;
$CCEStudents->WorkAddress->CssStyle = "";
$CCEStudents->WorkAddress->CssClass = "";
$CCEStudents->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$CCEStudents->PostalAddress->ViewValue = $CCEStudents->PostalAddress->CurrentValue;
$CCEStudents->PostalAddress->CssStyle = "";
$CCEStudents->PostalAddress->CssClass = "";
$CCEStudents->PostalAddress->ViewCustomAttributes = "";
// PreferredCourierAddress
if (strval($CCEStudents->PreferredCourierAddress->CurrentValue) <> "") {
switch ($CCEStudents->PreferredCourierAddress->CurrentValue) {
case "Home":
$CCEStudents->PreferredCourierAddress->ViewValue = "Home";
break;
case "Work":
$CCEStudents->PreferredCourierAddress->ViewValue = "Work";
break;
default:
$CCEStudents->PreferredCourierAddress->ViewValue = $CCEStudents->PreferredCourierAddress->CurrentValue;
}
} else {
$CCEStudents->PreferredCourierAddress->ViewValue = NULL;
}
$CCEStudents->PreferredCourierAddress->CssStyle = "";
$CCEStudents->PreferredCourierAddress->CssClass = "";
$CCEStudents->PreferredCourierAddress->ViewCustomAttributes = "";
// CESAAccountNo
$CCEStudents->CESAAccountNo->ViewValue = $CCEStudents->CESAAccountNo->CurrentValue;
$CCEStudents->CESAAccountNo->CssStyle = "";
$CCEStudents->CESAAccountNo->CssClass = "";
$CCEStudents->CESAAccountNo->ViewCustomAttributes = "";
// VATNo
$CCEStudents->VATNo->ViewValue = $CCEStudents->VATNo->CurrentValue;
$CCEStudents->VATNo->CssStyle = "";
$CCEStudents->VATNo->CssClass = "";
$CCEStudents->VATNo->ViewCustomAttributes = "mso-number-format:General";
// DietaryRequirements
$CCEStudents->DietaryRequirements->ViewValue = $CCEStudents->DietaryRequirements->CurrentValue;
$CCEStudents->DietaryRequirements->CssStyle = "";
$CCEStudents->DietaryRequirements->CssClass = "";
$CCEStudents->DietaryRequirements->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($CCEStudents->CVFile->Upload->DbValue)) {
$CCEStudents->CVFile->ViewValue = $CCEStudents->CVFile->Upload->DbValue;
} else {
$CCEStudents->CVFile->ViewValue = "";
}
$CCEStudents->CVFile->CssStyle = "";
$CCEStudents->CVFile->CssClass = "";
$CCEStudents->CVFile->ViewCustomAttributes = "";
// IDFile
if (!ew_Empty($CCEStudents->IDFile->Upload->DbValue)) {
$CCEStudents->IDFile->ViewValue = $CCEStudents->IDFile->Upload->DbValue;
} else {
$CCEStudents->IDFile->ViewValue = "";
}
$CCEStudents->IDFile->CssStyle = "";
$CCEStudents->IDFile->CssClass = "";
$CCEStudents->IDFile->ViewCustomAttributes = "";
// QualCertificate1
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->DbValue)) {
$CCEStudents->QualCertificate1->ViewValue = $CCEStudents->QualCertificate1->Upload->DbValue;
} else {
$CCEStudents->QualCertificate1->ViewValue = "";
}
$CCEStudents->QualCertificate1->CssStyle = "";
$CCEStudents->QualCertificate1->CssClass = "";
$CCEStudents->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->DbValue)) {
$CCEStudents->QualCertificate2->ViewValue = $CCEStudents->QualCertificate2->Upload->DbValue;
} else {
$CCEStudents->QualCertificate2->ViewValue = "";
}
$CCEStudents->QualCertificate2->CssStyle = "";
$CCEStudents->QualCertificate2->CssClass = "";
$CCEStudents->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->DbValue)) {
$CCEStudents->QualCertificate3->ViewValue = $CCEStudents->QualCertificate3->Upload->DbValue;
} else {
$CCEStudents->QualCertificate3->ViewValue = "";
}
$CCEStudents->QualCertificate3->CssStyle = "";
$CCEStudents->QualCertificate3->CssClass = "";
$CCEStudents->QualCertificate3->ViewCustomAttributes = "";
// MemorandumFile
if (!ew_Empty($CCEStudents->MemorandumFile->Upload->DbValue)) {
$CCEStudents->MemorandumFile->ViewValue = $CCEStudents->MemorandumFile->Upload->DbValue;
} else {
$CCEStudents->MemorandumFile->ViewValue = "";
}
$CCEStudents->MemorandumFile->CssStyle = "";
$CCEStudents->MemorandumFile->CssClass = "";
$CCEStudents->MemorandumFile->ViewCustomAttributes = "";
// AgreementFile
if (!ew_Empty($CCEStudents->AgreementFile->Upload->DbValue)) {
$CCEStudents->AgreementFile->ViewValue = $CCEStudents->AgreementFile->Upload->DbValue;
} else {
$CCEStudents->AgreementFile->ViewValue = "";
}
$CCEStudents->AgreementFile->CssStyle = "";
$CCEStudents->AgreementFile->CssClass = "";
$CCEStudents->AgreementFile->ViewCustomAttributes = "";
// MotivationalLetter
if (!ew_Empty($CCEStudents->MotivationalLetter->Upload->DbValue)) {
$CCEStudents->MotivationalLetter->ViewValue = $CCEStudents->MotivationalLetter->Upload->DbValue;
} else {
$CCEStudents->MotivationalLetter->ViewValue = "";
}
$CCEStudents->MotivationalLetter->CssStyle = "";
$CCEStudents->MotivationalLetter->CssClass = "";
$CCEStudents->MotivationalLetter->ViewCustomAttributes = "";
// PhotoFile
if (!ew_Empty($CCEStudents->PhotoFile->Upload->DbValue)) {
$CCEStudents->PhotoFile->ViewValue = $CCEStudents->PhotoFile->Upload->DbValue;
$CCEStudents->PhotoFile->ImageWidth = 200;
$CCEStudents->PhotoFile->ImageHeight = 0;
$CCEStudents->PhotoFile->ImageAlt = $CCEStudents->PhotoFile->FldAlt();
} else {
$CCEStudents->PhotoFile->ViewValue = "";
}
$CCEStudents->PhotoFile->CssStyle = "";
$CCEStudents->PhotoFile->CssClass = "";
$CCEStudents->PhotoFile->ViewCustomAttributes = "";
// OrderNo
$CCEStudents->OrderNo->ViewValue = $CCEStudents->OrderNo->CurrentValue;
$CCEStudents->OrderNo->CssStyle = "";
$CCEStudents->OrderNo->CssClass = "";
$CCEStudents->OrderNo->ViewCustomAttributes = "";
// BookedByName
$CCEStudents->BookedByName->ViewValue = $CCEStudents->BookedByName->CurrentValue;
$CCEStudents->BookedByName->CssStyle = "";
$CCEStudents->BookedByName->CssClass = "";
$CCEStudents->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$CCEStudents->BookedByDesignation->ViewValue = $CCEStudents->BookedByDesignation->CurrentValue;
$CCEStudents->BookedByDesignation->CssStyle = "";
$CCEStudents->BookedByDesignation->CssClass = "";
$CCEStudents->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$CCEStudents->BookedByTelNo->ViewValue = $CCEStudents->BookedByTelNo->CurrentValue;
$CCEStudents->BookedByTelNo->CssStyle = "";
$CCEStudents->BookedByTelNo->CssClass = "";
$CCEStudents->BookedByTelNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->ViewValue = $CCEStudents->BookedByFaxNo->CurrentValue;
$CCEStudents->BookedByFaxNo->CssStyle = "";
$CCEStudents->BookedByFaxNo->CssClass = "";
$CCEStudents->BookedByFaxNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByCellNo
$CCEStudents->BookedByCellNo->ViewValue = $CCEStudents->BookedByCellNo->CurrentValue;
$CCEStudents->BookedByCellNo->CssStyle = "";
$CCEStudents->BookedByCellNo->CssClass = "";
$CCEStudents->BookedByCellNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByEmail
$CCEStudents->BookedByEmail->ViewValue = $CCEStudents->BookedByEmail->CurrentValue;
$CCEStudents->BookedByEmail->CssStyle = "";
$CCEStudents->BookedByEmail->CssClass = "";
$CCEStudents->BookedByEmail->ViewCustomAttributes = "";
// WebUsername
$CCEStudents->WebUsername->ViewValue = $CCEStudents->WebUsername->CurrentValue;
$CCEStudents->WebUsername->CssStyle = "";
$CCEStudents->WebUsername->CssClass = "";
$CCEStudents->WebUsername->ViewCustomAttributes = "";
// WebPassword
$CCEStudents->WebPassword->ViewValue = $CCEStudents->WebPassword->CurrentValue;
$CCEStudents->WebPassword->CssStyle = "";
$CCEStudents->WebPassword->CssClass = "";
$CCEStudents->WebPassword->ViewCustomAttributes = "";
// MentorFirstName
$CCEStudents->MentorFirstName->ViewValue = $CCEStudents->MentorFirstName->CurrentValue;
$CCEStudents->MentorFirstName->CssStyle = "";
$CCEStudents->MentorFirstName->CssClass = "";
$CCEStudents->MentorFirstName->ViewCustomAttributes = "";
// MentorSurname
$CCEStudents->MentorSurname->ViewValue = $CCEStudents->MentorSurname->CurrentValue;
$CCEStudents->MentorSurname->CssStyle = "";
$CCEStudents->MentorSurname->CssClass = "";
$CCEStudents->MentorSurname->ViewCustomAttributes = "";
// MentorCompany
$CCEStudents->MentorCompany->ViewValue = $CCEStudents->MentorCompany->CurrentValue;
$CCEStudents->MentorCompany->CssStyle = "";
$CCEStudents->MentorCompany->CssClass = "";
$CCEStudents->MentorCompany->ViewCustomAttributes = "";
// MentorDesig
$CCEStudents->MentorDesig->ViewValue = $CCEStudents->MentorDesig->CurrentValue;
$CCEStudents->MentorDesig->CssStyle = "";
$CCEStudents->MentorDesig->CssClass = "";
$CCEStudents->MentorDesig->ViewCustomAttributes = "";
// MentorTel
$CCEStudents->MentorTel->ViewValue = $CCEStudents->MentorTel->CurrentValue;
$CCEStudents->MentorTel->CssStyle = "";
$CCEStudents->MentorTel->CssClass = "";
$CCEStudents->MentorTel->ViewCustomAttributes = "";
// MentorCell
$CCEStudents->MentorCell->ViewValue = $CCEStudents->MentorCell->CurrentValue;
$CCEStudents->MentorCell->CssStyle = "";
$CCEStudents->MentorCell->CssClass = "";
$CCEStudents->MentorCell->ViewCustomAttributes = "";
// MentorEmail
$CCEStudents->MentorEmail->ViewValue = $CCEStudents->MentorEmail->CurrentValue;
$CCEStudents->MentorEmail->CssStyle = "";
$CCEStudents->MentorEmail->CssClass = "";
$CCEStudents->MentorEmail->ViewCustomAttributes = "";
// HRManagerName
$CCEStudents->HRManagerName->ViewValue = $CCEStudents->HRManagerName->CurrentValue;
$CCEStudents->HRManagerName->CssStyle = "";
$CCEStudents->HRManagerName->CssClass = "";
$CCEStudents->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->ViewValue = $CCEStudents->HRManagerDesignation->CurrentValue;
$CCEStudents->HRManagerDesignation->CssStyle = "";
$CCEStudents->HRManagerDesignation->CssClass = "";
$CCEStudents->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->ViewValue = $CCEStudents->HRManagerTelNo->CurrentValue;
$CCEStudents->HRManagerTelNo->CssStyle = "";
$CCEStudents->HRManagerTelNo->CssClass = "";
$CCEStudents->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->ViewValue = $CCEStudents->HRManagerCellNo->CurrentValue;
$CCEStudents->HRManagerCellNo->CssStyle = "";
$CCEStudents->HRManagerCellNo->CssClass = "";
$CCEStudents->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$CCEStudents->HRManagerEmail->ViewValue = $CCEStudents->HRManagerEmail->CurrentValue;
$CCEStudents->HRManagerEmail->CssStyle = "";
$CCEStudents->HRManagerEmail->CssClass = "";
$CCEStudents->HRManagerEmail->ViewCustomAttributes = "";
// LengthEmploy
$CCEStudents->LengthEmploy->ViewValue = $CCEStudents->LengthEmploy->CurrentValue;
$CCEStudents->LengthEmploy->CssStyle = "";
$CCEStudents->LengthEmploy->CssClass = "";
$CCEStudents->LengthEmploy->ViewCustomAttributes = "";
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->ViewValue = $CCEStudents->ResponsiblePayment->CurrentValue;
$CCEStudents->ResponsiblePayment->CssStyle = "";
$CCEStudents->ResponsiblePayment->CssClass = "";
$CCEStudents->ResponsiblePayment->ViewCustomAttributes = "";
// BlockAccess
if (strval($CCEStudents->BlockAccess->CurrentValue) <> "") {
switch ($CCEStudents->BlockAccess->CurrentValue) {
case "y":
$CCEStudents->BlockAccess->ViewValue = "Yes";
break;
case "n":
$CCEStudents->BlockAccess->ViewValue = "No";
break;
default:
$CCEStudents->BlockAccess->ViewValue = $CCEStudents->BlockAccess->CurrentValue;
}
} else {
$CCEStudents->BlockAccess->ViewValue = NULL;
}
$CCEStudents->BlockAccess->CssStyle = "";
$CCEStudents->BlockAccess->CssClass = "";
$CCEStudents->BlockAccess->ViewCustomAttributes = "";
// Accepted
if (strval($CCEStudents->Accepted->CurrentValue) <> "") {
switch ($CCEStudents->Accepted->CurrentValue) {
case "1":
$CCEStudents->Accepted->ViewValue = "Yes";
break;
case "0":
$CCEStudents->Accepted->ViewValue = "No";
break;
default:
$CCEStudents->Accepted->ViewValue = $CCEStudents->Accepted->CurrentValue;
}
} else {
$CCEStudents->Accepted->ViewValue = NULL;
}
$CCEStudents->Accepted->CssStyle = "";
$CCEStudents->Accepted->CssClass = "";
$CCEStudents->Accepted->ViewCustomAttributes = "";
// Archived
if (strval($CCEStudents->Archived->CurrentValue) <> "") {
switch ($CCEStudents->Archived->CurrentValue) {
case "1":
$CCEStudents->Archived->ViewValue = "Yes";
break;
case "0":
$CCEStudents->Archived->ViewValue = "No";
break;
default:
$CCEStudents->Archived->ViewValue = $CCEStudents->Archived->CurrentValue;
}
} else {
$CCEStudents->Archived->ViewValue = NULL;
}
$CCEStudents->Archived->CssStyle = "";
$CCEStudents->Archived->CssClass = "";
$CCEStudents->Archived->ViewCustomAttributes = "";
// Achieved
if (strval($CCEStudents->Achieved->CurrentValue) <> "") {
switch ($CCEStudents->Achieved->CurrentValue) {
case "1":
$CCEStudents->Achieved->ViewValue = "Yes";
break;
case "0":
$CCEStudents->Achieved->ViewValue = "No";
break;
default:
$CCEStudents->Achieved->ViewValue = $CCEStudents->Achieved->CurrentValue;
}
} else {
$CCEStudents->Achieved->ViewValue = NULL;
}
$CCEStudents->Achieved->CssStyle = "";
$CCEStudents->Achieved->CssClass = "";
$CCEStudents->Achieved->ViewCustomAttributes = "";
// ResultLetter
if (!ew_Empty($CCEStudents->ResultLetter->Upload->DbValue)) {
$CCEStudents->ResultLetter->ViewValue = $CCEStudents->ResultLetter->Upload->DbValue;
} else {
$CCEStudents->ResultLetter->ViewValue = "";
}
$CCEStudents->ResultLetter->CssStyle = "";
$CCEStudents->ResultLetter->CssClass = "";
$CCEStudents->ResultLetter->ViewCustomAttributes = "";
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->ViewValue = $CCEStudents->ReasonForLeaving->CurrentValue;
$CCEStudents->ReasonForLeaving->CssStyle = "";
$CCEStudents->ReasonForLeaving->CssClass = "";
$CCEStudents->ReasonForLeaving->ViewCustomAttributes = "";
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->ViewValue = $CCEStudents->ReasonNotAccepted->CurrentValue;
$CCEStudents->ReasonNotAccepted->CssStyle = "";
$CCEStudents->ReasonNotAccepted->CssClass = "";
$CCEStudents->ReasonNotAccepted->ViewCustomAttributes = "";
// ResultComments
$CCEStudents->ResultComments->ViewValue = $CCEStudents->ResultComments->CurrentValue;
$CCEStudents->ResultComments->CssStyle = "";
$CCEStudents->ResultComments->CssClass = "";
$CCEStudents->ResultComments->ViewCustomAttributes = "";
// ResultStatus
if (strval($CCEStudents->ResultStatus->CurrentValue) <> "") {
switch ($CCEStudents->ResultStatus->CurrentValue) {
case "":
$CCEStudents->ResultStatus->ViewValue = "No Result Yet";
break;
case "P":
$CCEStudents->ResultStatus->ViewValue = "Passed";
break;
case "S":
$CCEStudents->ResultStatus->ViewValue = "Pending Supplementary Exams";
break;
default:
$CCEStudents->ResultStatus->ViewValue = $CCEStudents->ResultStatus->CurrentValue;
}
} else {
$CCEStudents->ResultStatus->ViewValue = NULL;
}
$CCEStudents->ResultStatus->CssStyle = "";
$CCEStudents->ResultStatus->CssClass = "";
$CCEStudents->ResultStatus->ViewCustomAttributes = "";
// ModulesEnrolled
if (strval($CCEStudents->ModulesEnrolled->CurrentValue) <> "") {
$arwrk = explode(",", $CCEStudents->ModulesEnrolled->CurrentValue);
$sFilterWrk = "";
foreach ($arwrk as $wrk) {
if ($sFilterWrk <> "") $sFilterWrk .= " OR ";
$sFilterWrk .= "`CCEModuleID` = " . ew_AdjustSql(trim($wrk)) . "";
}
$sSqlWrk = "SELECT `ModuleNum`, `ModuleName` FROM `CCEModules`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `ModuleNum`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->ModulesEnrolled->ViewValue = "";
$ari = 0;
while (!$rswrk->EOF) {
$CCEStudents->ModulesEnrolled->ViewValue .= $rswrk->fields('ModuleNum');
$CCEStudents->ModulesEnrolled->ViewValue .= ew_ValueSeparator($ari) . $rswrk->fields('ModuleName');
$rswrk->MoveNext();
if (!$rswrk->EOF) $CCEStudents->ModulesEnrolled->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options
$ari++;
}
$rswrk->Close();
} else {
$CCEStudents->ModulesEnrolled->ViewValue = $CCEStudents->ModulesEnrolled->CurrentValue;
}
} else {
$CCEStudents->ModulesEnrolled->ViewValue = NULL;
}
$CCEStudents->ModulesEnrolled->CssStyle = "";
$CCEStudents->ModulesEnrolled->CssClass = "";
$CCEStudents->ModulesEnrolled->ViewCustomAttributes = "";
// ModulesExcluded
if (strval($CCEStudents->ModulesExcluded->CurrentValue) <> "") {
$arwrk = explode(",", $CCEStudents->ModulesExcluded->CurrentValue);
$sFilterWrk = "";
foreach ($arwrk as $wrk) {
if ($sFilterWrk <> "") $sFilterWrk .= " OR ";
$sFilterWrk .= "`CCEModuleID` = " . ew_AdjustSql(trim($wrk)) . "";
}
$sSqlWrk = "SELECT `ModuleNum`, `ModuleName` FROM `CCEModules`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `ModuleNum`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$CCEStudents->ModulesExcluded->ViewValue = "";
$ari = 0;
while (!$rswrk->EOF) {
$CCEStudents->ModulesExcluded->ViewValue .= $rswrk->fields('ModuleNum');
$CCEStudents->ModulesExcluded->ViewValue .= ew_ValueSeparator($ari) . $rswrk->fields('ModuleName');
$rswrk->MoveNext();
if (!$rswrk->EOF) $CCEStudents->ModulesExcluded->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options
$ari++;
}
$rswrk->Close();
} else {
$CCEStudents->ModulesExcluded->ViewValue = $CCEStudents->ModulesExcluded->CurrentValue;
}
} else {
$CCEStudents->ModulesExcluded->ViewValue = NULL;
}
$CCEStudents->ModulesExcluded->CssStyle = "";
$CCEStudents->ModulesExcluded->CssClass = "";
$CCEStudents->ModulesExcluded->ViewCustomAttributes = "";
// Cancelled
if (strval($CCEStudents->Cancelled->CurrentValue) <> "") {
switch ($CCEStudents->Cancelled->CurrentValue) {
case "1":
$CCEStudents->Cancelled->ViewValue = "Cancelled";
break;
case "0":
$CCEStudents->Cancelled->ViewValue = "Not Cancelled";
break;
default:
$CCEStudents->Cancelled->ViewValue = $CCEStudents->Cancelled->CurrentValue;
}
} else {
$CCEStudents->Cancelled->ViewValue = NULL;
}
$CCEStudents->Cancelled->CssStyle = "";
$CCEStudents->Cancelled->CssClass = "";
$CCEStudents->Cancelled->ViewCustomAttributes = "";
// CancelledReason
$CCEStudents->CancelledReason->ViewValue = $CCEStudents->CancelledReason->CurrentValue;
$CCEStudents->CancelledReason->CssStyle = "";
$CCEStudents->CancelledReason->CssClass = "";
$CCEStudents->CancelledReason->ViewCustomAttributes = "";
// Trimester1Report
if (!ew_Empty($CCEStudents->Trimester1Report->Upload->DbValue)) {
$CCEStudents->Trimester1Report->ViewValue = $CCEStudents->Trimester1Report->Upload->DbValue;
} else {
$CCEStudents->Trimester1Report->ViewValue = "";
}
$CCEStudents->Trimester1Report->CssStyle = "";
$CCEStudents->Trimester1Report->CssClass = "";
$CCEStudents->Trimester1Report->ViewCustomAttributes = "";
// Trimester2Report
if (!ew_Empty($CCEStudents->Trimester2Report->Upload->DbValue)) {
$CCEStudents->Trimester2Report->ViewValue = $CCEStudents->Trimester2Report->Upload->DbValue;
} else {
$CCEStudents->Trimester2Report->ViewValue = "";
}
$CCEStudents->Trimester2Report->CssStyle = "";
$CCEStudents->Trimester2Report->CssClass = "";
$CCEStudents->Trimester2Report->ViewCustomAttributes = "";
// Trimester3Report
if (!ew_Empty($CCEStudents->Trimester3Report->Upload->DbValue)) {
$CCEStudents->Trimester3Report->ViewValue = $CCEStudents->Trimester3Report->Upload->DbValue;
} else {
$CCEStudents->Trimester3Report->ViewValue = "";
}
$CCEStudents->Trimester3Report->CssStyle = "";
$CCEStudents->Trimester3Report->CssClass = "";
$CCEStudents->Trimester3Report->ViewCustomAttributes = "";
// ExamResultLetter
if (!ew_Empty($CCEStudents->ExamResultLetter->Upload->DbValue)) {
$CCEStudents->ExamResultLetter->ViewValue = $CCEStudents->ExamResultLetter->Upload->DbValue;
} else {
$CCEStudents->ExamResultLetter->ViewValue = "";
}
$CCEStudents->ExamResultLetter->CssStyle = "";
$CCEStudents->ExamResultLetter->CssClass = "";
$CCEStudents->ExamResultLetter->ViewCustomAttributes = "";
// SupplementalExamLetter
if (!ew_Empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) {
$CCEStudents->SupplementalExamLetter->ViewValue = $CCEStudents->SupplementalExamLetter->Upload->DbValue;
} else {
$CCEStudents->SupplementalExamLetter->ViewValue = "";
}
$CCEStudents->SupplementalExamLetter->CssStyle = "";
$CCEStudents->SupplementalExamLetter->CssClass = "";
$CCEStudents->SupplementalExamLetter->ViewCustomAttributes = "";
// MarketingSource
if (strval($CCEStudents->MarketingSource->CurrentValue) <> "") {
switch ($CCEStudents->MarketingSource->CurrentValue) {
case "CESA.co.za":
$CCEStudents->MarketingSource->ViewValue = "CESA.co.za";
break;
case "E-mail advertisement":
$CCEStudents->MarketingSource->ViewValue = "E-mail advertisement";
break;
case "Word of Mouth":
$CCEStudents->MarketingSource->ViewValue = "Word of Mouth";
break;
case "Other":
$CCEStudents->MarketingSource->ViewValue = "Other";
break;
default:
$CCEStudents->MarketingSource->ViewValue = $CCEStudents->MarketingSource->CurrentValue;
}
} else {
$CCEStudents->MarketingSource->ViewValue = NULL;
}
$CCEStudents->MarketingSource->CssStyle = "";
$CCEStudents->MarketingSource->CssClass = "";
$CCEStudents->MarketingSource->ViewCustomAttributes = "";
// MarketingSourceOther
$CCEStudents->MarketingSourceOther->ViewValue = $CCEStudents->MarketingSourceOther->CurrentValue;
$CCEStudents->MarketingSourceOther->CssStyle = "";
$CCEStudents->MarketingSourceOther->CssClass = "";
$CCEStudents->MarketingSourceOther->ViewCustomAttributes = "";
// CCEStudentID
$CCEStudents->CCEStudentID->HrefValue = "";
$CCEStudents->CCEStudentID->TooltipValue = "";
// Title
$CCEStudents->Title->HrefValue = "";
$CCEStudents->Title->TooltipValue = "";
// KnownAs
$CCEStudents->KnownAs->HrefValue = "";
$CCEStudents->KnownAs->TooltipValue = "";
// FirstName
$CCEStudents->FirstName->HrefValue = "";
$CCEStudents->FirstName->TooltipValue = "";
// Surname
$CCEStudents->Surname->HrefValue = "";
$CCEStudents->Surname->TooltipValue = "";
// Organisation
$CCEStudents->Organisation->HrefValue = "";
$CCEStudents->Organisation->TooltipValue = "";
// OrganisationType
$CCEStudents->OrganisationType->HrefValue = "";
$CCEStudents->OrganisationType->TooltipValue = "";
// Designation
$CCEStudents->Designation->HrefValue = "";
$CCEStudents->Designation->TooltipValue = "";
// Department
$CCEStudents->Department->HrefValue = "";
$CCEStudents->Department->TooltipValue = "";
// StudentNumber
$CCEStudents->StudentNumber->HrefValue = "";
$CCEStudents->StudentNumber->TooltipValue = "";
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->HrefValue = "";
$CCEStudents->CCEFacilitatorID->TooltipValue = "";
// Project
$CCEStudents->Project->HrefValue = "";
$CCEStudents->Project->TooltipValue = "";
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->HrefValue = "";
$CCEStudents->ProjectDiscipline->TooltipValue = "";
// ProjectCode
$CCEStudents->ProjectCode->HrefValue = "";
$CCEStudents->ProjectCode->TooltipValue = "";
// IDNumber
$CCEStudents->IDNumber->HrefValue = "";
$CCEStudents->IDNumber->TooltipValue = "";
// ECSARegistered
$CCEStudents->ECSARegistered->HrefValue = "";
$CCEStudents->ECSARegistered->TooltipValue = "";
// ECSACategory
$CCEStudents->ECSACategory->HrefValue = "";
$CCEStudents->ECSACategory->TooltipValue = "";
// ECSANumber
$CCEStudents->ECSANumber->HrefValue = "";
$CCEStudents->ECSANumber->TooltipValue = "";
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->HrefValue = "";
$CCEStudents->OtherStatutoryBodyRegistered->TooltipValue = "";
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->HrefValue = "";
$CCEStudents->OtherStatutoryBodyName->TooltipValue = "";
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->HrefValue = "";
$CCEStudents->OtherStatutoryBodyNumber->TooltipValue = "";
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->HrefValue = "";
$CCEStudents->OtherStatutoryBodyCategory->TooltipValue = "";
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->HrefValue = "";
$CCEStudents->CESAMemberFirm->TooltipValue = "";
// OtherCEFirms
$CCEStudents->OtherCEFirms->HrefValue = "";
$CCEStudents->OtherCEFirms->TooltipValue = "";
// Age
$CCEStudents->Age->HrefValue = "";
$CCEStudents->Age->TooltipValue = "";
// HighestQual
$CCEStudents->HighestQual->HrefValue = "";
$CCEStudents->HighestQual->TooltipValue = "";
// AreaDiscipline
$CCEStudents->AreaDiscipline->HrefValue = "";
$CCEStudents->AreaDiscipline->TooltipValue = "";
// Telephone
$CCEStudents->Telephone->HrefValue = "";
$CCEStudents->Telephone->TooltipValue = "";
// Cellphone
$CCEStudents->Cellphone->HrefValue = "";
$CCEStudents->Cellphone->TooltipValue = "";
// EmailAddress
$CCEStudents->EmailAddress->HrefValue = "";
$CCEStudents->EmailAddress->TooltipValue = "";
// EmailAddress2
$CCEStudents->EmailAddress2->HrefValue = "";
$CCEStudents->EmailAddress2->TooltipValue = "";
// HomeAddress
$CCEStudents->HomeAddress->HrefValue = "";
$CCEStudents->HomeAddress->TooltipValue = "";
// WorkAddress
$CCEStudents->WorkAddress->HrefValue = "";
$CCEStudents->WorkAddress->TooltipValue = "";
// PostalAddress
$CCEStudents->PostalAddress->HrefValue = "";
$CCEStudents->PostalAddress->TooltipValue = "";
// PreferredCourierAddress
$CCEStudents->PreferredCourierAddress->HrefValue = "";
$CCEStudents->PreferredCourierAddress->TooltipValue = "";
// CESAAccountNo
$CCEStudents->CESAAccountNo->HrefValue = "";
$CCEStudents->CESAAccountNo->TooltipValue = "";
// VATNo
$CCEStudents->VATNo->HrefValue = "";
$CCEStudents->VATNo->TooltipValue = "";
// DietaryRequirements
$CCEStudents->DietaryRequirements->HrefValue = "";
$CCEStudents->DietaryRequirements->TooltipValue = "";
// CVFile
if (!ew_Empty($CCEStudents->CVFile->Upload->DbValue)) {
$CCEStudents->CVFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->CVFile->UploadPath) . ((!empty($CCEStudents->CVFile->ViewValue)) ? $CCEStudents->CVFile->ViewValue : $CCEStudents->CVFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->CVFile->HrefValue = ew_ConvertFullUrl($CCEStudents->CVFile->HrefValue);
} else {
$CCEStudents->CVFile->HrefValue = "";
}
$CCEStudents->CVFile->TooltipValue = "";
// IDFile
if (!ew_Empty($CCEStudents->IDFile->Upload->DbValue)) {
$CCEStudents->IDFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->IDFile->UploadPath) . ((!empty($CCEStudents->IDFile->ViewValue)) ? $CCEStudents->IDFile->ViewValue : $CCEStudents->IDFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->IDFile->HrefValue = ew_ConvertFullUrl($CCEStudents->IDFile->HrefValue);
} else {
$CCEStudents->IDFile->HrefValue = "";
}
$CCEStudents->IDFile->TooltipValue = "";
// QualCertificate1
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->DbValue)) {
$CCEStudents->QualCertificate1->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate1->UploadPath) . ((!empty($CCEStudents->QualCertificate1->ViewValue)) ? $CCEStudents->QualCertificate1->ViewValue : $CCEStudents->QualCertificate1->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate1->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate1->HrefValue);
} else {
$CCEStudents->QualCertificate1->HrefValue = "";
}
$CCEStudents->QualCertificate1->TooltipValue = "";
// QualCertificate2
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->DbValue)) {
$CCEStudents->QualCertificate2->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate2->UploadPath) . ((!empty($CCEStudents->QualCertificate2->ViewValue)) ? $CCEStudents->QualCertificate2->ViewValue : $CCEStudents->QualCertificate2->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate2->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate2->HrefValue);
} else {
$CCEStudents->QualCertificate2->HrefValue = "";
}
$CCEStudents->QualCertificate2->TooltipValue = "";
// QualCertificate3
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->DbValue)) {
$CCEStudents->QualCertificate3->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->QualCertificate3->UploadPath) . ((!empty($CCEStudents->QualCertificate3->ViewValue)) ? $CCEStudents->QualCertificate3->ViewValue : $CCEStudents->QualCertificate3->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->QualCertificate3->HrefValue = ew_ConvertFullUrl($CCEStudents->QualCertificate3->HrefValue);
} else {
$CCEStudents->QualCertificate3->HrefValue = "";
}
$CCEStudents->QualCertificate3->TooltipValue = "";
// MemorandumFile
if (!ew_Empty($CCEStudents->MemorandumFile->Upload->DbValue)) {
$CCEStudents->MemorandumFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->MemorandumFile->UploadPath) . ((!empty($CCEStudents->MemorandumFile->ViewValue)) ? $CCEStudents->MemorandumFile->ViewValue : $CCEStudents->MemorandumFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->MemorandumFile->HrefValue = ew_ConvertFullUrl($CCEStudents->MemorandumFile->HrefValue);
} else {
$CCEStudents->MemorandumFile->HrefValue = "";
}
$CCEStudents->MemorandumFile->TooltipValue = "";
// AgreementFile
if (!ew_Empty($CCEStudents->AgreementFile->Upload->DbValue)) {
$CCEStudents->AgreementFile->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->AgreementFile->UploadPath) . ((!empty($CCEStudents->AgreementFile->ViewValue)) ? $CCEStudents->AgreementFile->ViewValue : $CCEStudents->AgreementFile->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->AgreementFile->HrefValue = ew_ConvertFullUrl($CCEStudents->AgreementFile->HrefValue);
} else {
$CCEStudents->AgreementFile->HrefValue = "";
}
$CCEStudents->AgreementFile->TooltipValue = "";
// MotivationalLetter
if (!ew_Empty($CCEStudents->MotivationalLetter->Upload->DbValue)) {
$CCEStudents->MotivationalLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->MotivationalLetter->UploadPath) . ((!empty($CCEStudents->MotivationalLetter->ViewValue)) ? $CCEStudents->MotivationalLetter->ViewValue : $CCEStudents->MotivationalLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->MotivationalLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->MotivationalLetter->HrefValue);
} else {
$CCEStudents->MotivationalLetter->HrefValue = "";
}
$CCEStudents->MotivationalLetter->TooltipValue = "";
// PhotoFile
$CCEStudents->PhotoFile->HrefValue = "";
$CCEStudents->PhotoFile->TooltipValue = "";
// OrderNo
$CCEStudents->OrderNo->HrefValue = "";
$CCEStudents->OrderNo->TooltipValue = "";
// BookedByName
$CCEStudents->BookedByName->HrefValue = "";
$CCEStudents->BookedByName->TooltipValue = "";
// BookedByDesignation
$CCEStudents->BookedByDesignation->HrefValue = "";
$CCEStudents->BookedByDesignation->TooltipValue = "";
// BookedByTelNo
$CCEStudents->BookedByTelNo->HrefValue = "";
$CCEStudents->BookedByTelNo->TooltipValue = "";
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->HrefValue = "";
$CCEStudents->BookedByFaxNo->TooltipValue = "";
// BookedByCellNo
$CCEStudents->BookedByCellNo->HrefValue = "";
$CCEStudents->BookedByCellNo->TooltipValue = "";
// BookedByEmail
$CCEStudents->BookedByEmail->HrefValue = "";
$CCEStudents->BookedByEmail->TooltipValue = "";
// WebUsername
$CCEStudents->WebUsername->HrefValue = "";
$CCEStudents->WebUsername->TooltipValue = "";
// WebPassword
$CCEStudents->WebPassword->HrefValue = "";
$CCEStudents->WebPassword->TooltipValue = "";
// MentorFirstName
$CCEStudents->MentorFirstName->HrefValue = "";
$CCEStudents->MentorFirstName->TooltipValue = "";
// MentorSurname
$CCEStudents->MentorSurname->HrefValue = "";
$CCEStudents->MentorSurname->TooltipValue = "";
// MentorCompany
$CCEStudents->MentorCompany->HrefValue = "";
$CCEStudents->MentorCompany->TooltipValue = "";
// MentorDesig
$CCEStudents->MentorDesig->HrefValue = "";
$CCEStudents->MentorDesig->TooltipValue = "";
// MentorTel
$CCEStudents->MentorTel->HrefValue = "";
$CCEStudents->MentorTel->TooltipValue = "";
// MentorCell
$CCEStudents->MentorCell->HrefValue = "";
$CCEStudents->MentorCell->TooltipValue = "";
// MentorEmail
$CCEStudents->MentorEmail->HrefValue = "";
$CCEStudents->MentorEmail->TooltipValue = "";
// HRManagerName
$CCEStudents->HRManagerName->HrefValue = "";
$CCEStudents->HRManagerName->TooltipValue = "";
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->HrefValue = "";
$CCEStudents->HRManagerDesignation->TooltipValue = "";
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->HrefValue = "";
$CCEStudents->HRManagerTelNo->TooltipValue = "";
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->HrefValue = "";
$CCEStudents->HRManagerCellNo->TooltipValue = "";
// HRManagerEmail
$CCEStudents->HRManagerEmail->HrefValue = "";
$CCEStudents->HRManagerEmail->TooltipValue = "";
// LengthEmploy
$CCEStudents->LengthEmploy->HrefValue = "";
$CCEStudents->LengthEmploy->TooltipValue = "";
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->HrefValue = "";
$CCEStudents->ResponsiblePayment->TooltipValue = "";
// BlockAccess
$CCEStudents->BlockAccess->HrefValue = "";
$CCEStudents->BlockAccess->TooltipValue = "";
// Accepted
$CCEStudents->Accepted->HrefValue = "";
$CCEStudents->Accepted->TooltipValue = "";
// Archived
$CCEStudents->Archived->HrefValue = "";
$CCEStudents->Archived->TooltipValue = "";
// Achieved
$CCEStudents->Achieved->HrefValue = "";
$CCEStudents->Achieved->TooltipValue = "";
// ResultLetter
if (!ew_Empty($CCEStudents->ResultLetter->Upload->DbValue)) {
$CCEStudents->ResultLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->ResultLetter->UploadPath) . ((!empty($CCEStudents->ResultLetter->ViewValue)) ? $CCEStudents->ResultLetter->ViewValue : $CCEStudents->ResultLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->ResultLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->ResultLetter->HrefValue);
} else {
$CCEStudents->ResultLetter->HrefValue = "";
}
$CCEStudents->ResultLetter->TooltipValue = "";
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->HrefValue = "";
$CCEStudents->ReasonForLeaving->TooltipValue = "";
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->HrefValue = "";
$CCEStudents->ReasonNotAccepted->TooltipValue = "";
// ResultComments
$CCEStudents->ResultComments->HrefValue = "";
$CCEStudents->ResultComments->TooltipValue = "";
// ResultStatus
$CCEStudents->ResultStatus->HrefValue = "";
$CCEStudents->ResultStatus->TooltipValue = "";
// ModulesEnrolled
$CCEStudents->ModulesEnrolled->HrefValue = "";
$CCEStudents->ModulesEnrolled->TooltipValue = "";
// ModulesExcluded
$CCEStudents->ModulesExcluded->HrefValue = "";
$CCEStudents->ModulesExcluded->TooltipValue = "";
// Cancelled
$CCEStudents->Cancelled->HrefValue = "";
$CCEStudents->Cancelled->TooltipValue = "";
// CancelledReason
$CCEStudents->CancelledReason->HrefValue = "";
$CCEStudents->CancelledReason->TooltipValue = "";
// Trimester1Report
if (!ew_Empty($CCEStudents->Trimester1Report->Upload->DbValue)) {
$CCEStudents->Trimester1Report->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->Trimester1Report->UploadPath) . ((!empty($CCEStudents->Trimester1Report->ViewValue)) ? $CCEStudents->Trimester1Report->ViewValue : $CCEStudents->Trimester1Report->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->Trimester1Report->HrefValue = ew_ConvertFullUrl($CCEStudents->Trimester1Report->HrefValue);
} else {
$CCEStudents->Trimester1Report->HrefValue = "";
}
$CCEStudents->Trimester1Report->TooltipValue = "";
// Trimester2Report
if (!ew_Empty($CCEStudents->Trimester2Report->Upload->DbValue)) {
$CCEStudents->Trimester2Report->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->Trimester2Report->UploadPath) . ((!empty($CCEStudents->Trimester2Report->ViewValue)) ? $CCEStudents->Trimester2Report->ViewValue : $CCEStudents->Trimester2Report->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->Trimester2Report->HrefValue = ew_ConvertFullUrl($CCEStudents->Trimester2Report->HrefValue);
} else {
$CCEStudents->Trimester2Report->HrefValue = "";
}
$CCEStudents->Trimester2Report->TooltipValue = "";
// Trimester3Report
if (!ew_Empty($CCEStudents->Trimester3Report->Upload->DbValue)) {
$CCEStudents->Trimester3Report->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->Trimester3Report->UploadPath) . ((!empty($CCEStudents->Trimester3Report->ViewValue)) ? $CCEStudents->Trimester3Report->ViewValue : $CCEStudents->Trimester3Report->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->Trimester3Report->HrefValue = ew_ConvertFullUrl($CCEStudents->Trimester3Report->HrefValue);
} else {
$CCEStudents->Trimester3Report->HrefValue = "";
}
$CCEStudents->Trimester3Report->TooltipValue = "";
// ExamResultLetter
if (!ew_Empty($CCEStudents->ExamResultLetter->Upload->DbValue)) {
$CCEStudents->ExamResultLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->ExamResultLetter->UploadPath) . ((!empty($CCEStudents->ExamResultLetter->ViewValue)) ? $CCEStudents->ExamResultLetter->ViewValue : $CCEStudents->ExamResultLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->ExamResultLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->ExamResultLetter->HrefValue);
} else {
$CCEStudents->ExamResultLetter->HrefValue = "";
}
$CCEStudents->ExamResultLetter->TooltipValue = "";
// SupplementalExamLetter
if (!ew_Empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) {
$CCEStudents->SupplementalExamLetter->HrefValue = ew_UploadPathEx(FALSE, $CCEStudents->SupplementalExamLetter->UploadPath) . ((!empty($CCEStudents->SupplementalExamLetter->ViewValue)) ? $CCEStudents->SupplementalExamLetter->ViewValue : $CCEStudents->SupplementalExamLetter->CurrentValue);
if ($CCEStudents->Export <> "") $CCEStudents->SupplementalExamLetter->HrefValue = ew_ConvertFullUrl($CCEStudents->SupplementalExamLetter->HrefValue);
} else {
$CCEStudents->SupplementalExamLetter->HrefValue = "";
}
$CCEStudents->SupplementalExamLetter->TooltipValue = "";
// MarketingSource
$CCEStudents->MarketingSource->HrefValue = "";
$CCEStudents->MarketingSource->TooltipValue = "";
// MarketingSourceOther
$CCEStudents->MarketingSourceOther->HrefValue = "";
$CCEStudents->MarketingSourceOther->TooltipValue = "";
} elseif ($CCEStudents->RowType == EW_ROWTYPE_SEARCH) { // Search row
// CCEStudentID
$CCEStudents->CCEStudentID->EditCustomAttributes = "";
$CCEStudents->CCEStudentID->EditValue = ew_HtmlEncode($CCEStudents->CCEStudentID->AdvancedSearch->SearchValue);
// Title
$CCEStudents->Title->EditCustomAttributes = "";
$CCEStudents->Title->EditValue = ew_HtmlEncode($CCEStudents->Title->AdvancedSearch->SearchValue);
// KnownAs
$CCEStudents->KnownAs->EditCustomAttributes = "";
$CCEStudents->KnownAs->EditValue = ew_HtmlEncode($CCEStudents->KnownAs->AdvancedSearch->SearchValue);
// FirstName
$CCEStudents->FirstName->EditCustomAttributes = "";
$CCEStudents->FirstName->EditValue = ew_HtmlEncode($CCEStudents->FirstName->AdvancedSearch->SearchValue);
// Surname
$CCEStudents->Surname->EditCustomAttributes = "";
$CCEStudents->Surname->EditValue = ew_HtmlEncode($CCEStudents->Surname->AdvancedSearch->SearchValue);
// Organisation
$CCEStudents->Organisation->EditCustomAttributes = "";
$CCEStudents->Organisation->EditValue = ew_HtmlEncode($CCEStudents->Organisation->AdvancedSearch->SearchValue);
// OrganisationType
$CCEStudents->OrganisationType->EditCustomAttributes = "";
$CCEStudents->OrganisationType->EditValue = ew_HtmlEncode($CCEStudents->OrganisationType->AdvancedSearch->SearchValue);
// Designation
$CCEStudents->Designation->EditCustomAttributes = "";
$CCEStudents->Designation->EditValue = ew_HtmlEncode($CCEStudents->Designation->AdvancedSearch->SearchValue);
// Department
$CCEStudents->Department->EditCustomAttributes = "";
$CCEStudents->Department->EditValue = ew_HtmlEncode($CCEStudents->Department->AdvancedSearch->SearchValue);
// StudentNumber
$CCEStudents->StudentNumber->EditCustomAttributes = "";
$CCEStudents->StudentNumber->EditValue = ew_HtmlEncode($CCEStudents->StudentNumber->AdvancedSearch->SearchValue);
// CCEFacilitatorID
$CCEStudents->CCEFacilitatorID->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `FacilitatorID`, `FacilitatorName`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "Archived=0" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName`";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
$CCEStudents->CCEFacilitatorID->EditValue = $arwrk;
// Project
$CCEStudents->Project->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `CCEProjectID`, `Project`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `CCEProjects`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder`";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
$CCEStudents->Project->EditValue = $arwrk;
// ProjectDiscipline
$CCEStudents->ProjectDiscipline->EditCustomAttributes = "";
$CCEStudents->ProjectDiscipline->EditValue = ew_HtmlEncode($CCEStudents->ProjectDiscipline->AdvancedSearch->SearchValue);
// ProjectCode
$CCEStudents->ProjectCode->EditCustomAttributes = "";
$CCEStudents->ProjectCode->EditValue = ew_HtmlEncode($CCEStudents->ProjectCode->AdvancedSearch->SearchValue);
// IDNumber
$CCEStudents->IDNumber->EditCustomAttributes = "";
$CCEStudents->IDNumber->EditValue = ew_HtmlEncode($CCEStudents->IDNumber->AdvancedSearch->SearchValue);
// ECSARegistered
$CCEStudents->ECSARegistered->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("y", "Yes");
$arwrk[] = array("n", "No");
$CCEStudents->ECSARegistered->EditValue = $arwrk;
// ECSACategory
$CCEStudents->ECSACategory->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `PicklistValue`, `PicklistLabel`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `Picklists`";
$sWhereWrk = "";
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . "`Picklists`.`PicklistType` = 'ECSA Registration Categories'" . ")";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `DisplayOrder` Asc";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
$CCEStudents->ECSACategory->EditValue = $arwrk;
// ECSANumber
$CCEStudents->ECSANumber->EditCustomAttributes = "";
$CCEStudents->ECSANumber->EditValue = ew_HtmlEncode($CCEStudents->ECSANumber->AdvancedSearch->SearchValue);
// OtherStatutoryBodyRegistered
$CCEStudents->OtherStatutoryBodyRegistered->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$CCEStudents->OtherStatutoryBodyRegistered->EditValue = $arwrk;
// OtherStatutoryBodyName
$CCEStudents->OtherStatutoryBodyName->EditCustomAttributes = "";
$CCEStudents->OtherStatutoryBodyName->EditValue = ew_HtmlEncode($CCEStudents->OtherStatutoryBodyName->AdvancedSearch->SearchValue);
// OtherStatutoryBodyNumber
$CCEStudents->OtherStatutoryBodyNumber->EditCustomAttributes = "";
$CCEStudents->OtherStatutoryBodyNumber->EditValue = ew_HtmlEncode($CCEStudents->OtherStatutoryBodyNumber->AdvancedSearch->SearchValue);
// OtherStatutoryBodyCategory
$CCEStudents->OtherStatutoryBodyCategory->EditCustomAttributes = "";
$CCEStudents->OtherStatutoryBodyCategory->EditValue = ew_HtmlEncode($CCEStudents->OtherStatutoryBodyCategory->AdvancedSearch->SearchValue);
// CESAMemberFirm
$CCEStudents->CESAMemberFirm->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("y", "Yes");
$arwrk[] = array("n", "No");
$CCEStudents->CESAMemberFirm->EditValue = $arwrk;
// OtherCEFirms
$CCEStudents->OtherCEFirms->EditCustomAttributes = "";
$CCEStudents->OtherCEFirms->EditValue = ew_HtmlEncode($CCEStudents->OtherCEFirms->AdvancedSearch->SearchValue);
// Age
$CCEStudents->Age->EditCustomAttributes = "";
$CCEStudents->Age->EditValue = ew_HtmlEncode($CCEStudents->Age->AdvancedSearch->SearchValue);
// HighestQual
$CCEStudents->HighestQual->EditCustomAttributes = "";
$CCEStudents->HighestQual->EditValue = ew_HtmlEncode($CCEStudents->HighestQual->AdvancedSearch->SearchValue);
// AreaDiscipline
$CCEStudents->AreaDiscipline->EditCustomAttributes = "";
$CCEStudents->AreaDiscipline->EditValue = ew_HtmlEncode($CCEStudents->AreaDiscipline->AdvancedSearch->SearchValue);
// Telephone
$CCEStudents->Telephone->EditCustomAttributes = "";
$CCEStudents->Telephone->EditValue = ew_HtmlEncode($CCEStudents->Telephone->AdvancedSearch->SearchValue);
// Cellphone
$CCEStudents->Cellphone->EditCustomAttributes = "";
$CCEStudents->Cellphone->EditValue = ew_HtmlEncode($CCEStudents->Cellphone->AdvancedSearch->SearchValue);
// EmailAddress
$CCEStudents->EmailAddress->EditCustomAttributes = "";
$CCEStudents->EmailAddress->EditValue = ew_HtmlEncode($CCEStudents->EmailAddress->AdvancedSearch->SearchValue);
// EmailAddress2
$CCEStudents->EmailAddress2->EditCustomAttributes = "";
$CCEStudents->EmailAddress2->EditValue = ew_HtmlEncode($CCEStudents->EmailAddress2->AdvancedSearch->SearchValue);
// HomeAddress
$CCEStudents->HomeAddress->EditCustomAttributes = "";
$CCEStudents->HomeAddress->EditValue = ew_HtmlEncode($CCEStudents->HomeAddress->AdvancedSearch->SearchValue);
// WorkAddress
$CCEStudents->WorkAddress->EditCustomAttributes = "";
$CCEStudents->WorkAddress->EditValue = ew_HtmlEncode($CCEStudents->WorkAddress->AdvancedSearch->SearchValue);
// PostalAddress
$CCEStudents->PostalAddress->EditCustomAttributes = "";
$CCEStudents->PostalAddress->EditValue = ew_HtmlEncode($CCEStudents->PostalAddress->AdvancedSearch->SearchValue);
// PreferredCourierAddress
$CCEStudents->PreferredCourierAddress->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("Home", "Home");
$arwrk[] = array("Work", "Work");
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
$CCEStudents->PreferredCourierAddress->EditValue = $arwrk;
// CESAAccountNo
$CCEStudents->CESAAccountNo->EditCustomAttributes = "";
$CCEStudents->CESAAccountNo->EditValue = ew_HtmlEncode($CCEStudents->CESAAccountNo->AdvancedSearch->SearchValue);
// VATNo
$CCEStudents->VATNo->EditCustomAttributes = "";
$CCEStudents->VATNo->EditValue = ew_HtmlEncode($CCEStudents->VATNo->AdvancedSearch->SearchValue);
// DietaryRequirements
$CCEStudents->DietaryRequirements->EditCustomAttributes = "";
$CCEStudents->DietaryRequirements->EditValue = ew_HtmlEncode($CCEStudents->DietaryRequirements->AdvancedSearch->SearchValue);
// CVFile
$CCEStudents->CVFile->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->CVFile->Upload->DbValue)) {
$CCEStudents->CVFile->EditValue = $CCEStudents->CVFile->Upload->DbValue;
} else {
$CCEStudents->CVFile->EditValue = "";
}
// IDFile
$CCEStudents->IDFile->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->IDFile->Upload->DbValue)) {
$CCEStudents->IDFile->EditValue = $CCEStudents->IDFile->Upload->DbValue;
} else {
$CCEStudents->IDFile->EditValue = "";
}
// QualCertificate1
$CCEStudents->QualCertificate1->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->QualCertificate1->Upload->DbValue)) {
$CCEStudents->QualCertificate1->EditValue = $CCEStudents->QualCertificate1->Upload->DbValue;
} else {
$CCEStudents->QualCertificate1->EditValue = "";
}
// QualCertificate2
$CCEStudents->QualCertificate2->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->QualCertificate2->Upload->DbValue)) {
$CCEStudents->QualCertificate2->EditValue = $CCEStudents->QualCertificate2->Upload->DbValue;
} else {
$CCEStudents->QualCertificate2->EditValue = "";
}
// QualCertificate3
$CCEStudents->QualCertificate3->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->QualCertificate3->Upload->DbValue)) {
$CCEStudents->QualCertificate3->EditValue = $CCEStudents->QualCertificate3->Upload->DbValue;
} else {
$CCEStudents->QualCertificate3->EditValue = "";
}
// MemorandumFile
$CCEStudents->MemorandumFile->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->MemorandumFile->Upload->DbValue)) {
$CCEStudents->MemorandumFile->EditValue = $CCEStudents->MemorandumFile->Upload->DbValue;
} else {
$CCEStudents->MemorandumFile->EditValue = "";
}
// AgreementFile
$CCEStudents->AgreementFile->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->AgreementFile->Upload->DbValue)) {
$CCEStudents->AgreementFile->EditValue = $CCEStudents->AgreementFile->Upload->DbValue;
} else {
$CCEStudents->AgreementFile->EditValue = "";
}
// MotivationalLetter
$CCEStudents->MotivationalLetter->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->MotivationalLetter->Upload->DbValue)) {
$CCEStudents->MotivationalLetter->EditValue = $CCEStudents->MotivationalLetter->Upload->DbValue;
} else {
$CCEStudents->MotivationalLetter->EditValue = "";
}
// PhotoFile
$CCEStudents->PhotoFile->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->PhotoFile->Upload->DbValue)) {
$CCEStudents->PhotoFile->EditValue = $CCEStudents->PhotoFile->Upload->DbValue;
$CCEStudents->PhotoFile->ImageWidth = 200;
$CCEStudents->PhotoFile->ImageHeight = 0;
$CCEStudents->PhotoFile->ImageAlt = $CCEStudents->PhotoFile->FldAlt();
} else {
$CCEStudents->PhotoFile->EditValue = "";
}
// OrderNo
$CCEStudents->OrderNo->EditCustomAttributes = "";
$CCEStudents->OrderNo->EditValue = ew_HtmlEncode($CCEStudents->OrderNo->AdvancedSearch->SearchValue);
// BookedByName
$CCEStudents->BookedByName->EditCustomAttributes = "";
$CCEStudents->BookedByName->EditValue = ew_HtmlEncode($CCEStudents->BookedByName->AdvancedSearch->SearchValue);
// BookedByDesignation
$CCEStudents->BookedByDesignation->EditCustomAttributes = "";
$CCEStudents->BookedByDesignation->EditValue = ew_HtmlEncode($CCEStudents->BookedByDesignation->AdvancedSearch->SearchValue);
// BookedByTelNo
$CCEStudents->BookedByTelNo->EditCustomAttributes = "";
$CCEStudents->BookedByTelNo->EditValue = ew_HtmlEncode($CCEStudents->BookedByTelNo->AdvancedSearch->SearchValue);
// BookedByFaxNo
$CCEStudents->BookedByFaxNo->EditCustomAttributes = "";
$CCEStudents->BookedByFaxNo->EditValue = ew_HtmlEncode($CCEStudents->BookedByFaxNo->AdvancedSearch->SearchValue);
// BookedByCellNo
$CCEStudents->BookedByCellNo->EditCustomAttributes = "";
$CCEStudents->BookedByCellNo->EditValue = ew_HtmlEncode($CCEStudents->BookedByCellNo->AdvancedSearch->SearchValue);
// BookedByEmail
$CCEStudents->BookedByEmail->EditCustomAttributes = "";
$CCEStudents->BookedByEmail->EditValue = ew_HtmlEncode($CCEStudents->BookedByEmail->AdvancedSearch->SearchValue);
// WebUsername
$CCEStudents->WebUsername->EditCustomAttributes = "";
$CCEStudents->WebUsername->EditValue = ew_HtmlEncode($CCEStudents->WebUsername->AdvancedSearch->SearchValue);
// WebPassword
$CCEStudents->WebPassword->EditCustomAttributes = "";
$CCEStudents->WebPassword->EditValue = ew_HtmlEncode($CCEStudents->WebPassword->AdvancedSearch->SearchValue);
// MentorFirstName
$CCEStudents->MentorFirstName->EditCustomAttributes = "";
$CCEStudents->MentorFirstName->EditValue = ew_HtmlEncode($CCEStudents->MentorFirstName->AdvancedSearch->SearchValue);
// MentorSurname
$CCEStudents->MentorSurname->EditCustomAttributes = "";
$CCEStudents->MentorSurname->EditValue = ew_HtmlEncode($CCEStudents->MentorSurname->AdvancedSearch->SearchValue);
// MentorCompany
$CCEStudents->MentorCompany->EditCustomAttributes = "";
$CCEStudents->MentorCompany->EditValue = ew_HtmlEncode($CCEStudents->MentorCompany->AdvancedSearch->SearchValue);
// MentorDesig
$CCEStudents->MentorDesig->EditCustomAttributes = "";
$CCEStudents->MentorDesig->EditValue = ew_HtmlEncode($CCEStudents->MentorDesig->AdvancedSearch->SearchValue);
// MentorTel
$CCEStudents->MentorTel->EditCustomAttributes = "";
$CCEStudents->MentorTel->EditValue = ew_HtmlEncode($CCEStudents->MentorTel->AdvancedSearch->SearchValue);
// MentorCell
$CCEStudents->MentorCell->EditCustomAttributes = "";
$CCEStudents->MentorCell->EditValue = ew_HtmlEncode($CCEStudents->MentorCell->AdvancedSearch->SearchValue);
// MentorEmail
$CCEStudents->MentorEmail->EditCustomAttributes = "";
$CCEStudents->MentorEmail->EditValue = ew_HtmlEncode($CCEStudents->MentorEmail->AdvancedSearch->SearchValue);
// HRManagerName
$CCEStudents->HRManagerName->EditCustomAttributes = "";
$CCEStudents->HRManagerName->EditValue = ew_HtmlEncode($CCEStudents->HRManagerName->AdvancedSearch->SearchValue);
// HRManagerDesignation
$CCEStudents->HRManagerDesignation->EditCustomAttributes = "";
$CCEStudents->HRManagerDesignation->EditValue = ew_HtmlEncode($CCEStudents->HRManagerDesignation->AdvancedSearch->SearchValue);
// HRManagerTelNo
$CCEStudents->HRManagerTelNo->EditCustomAttributes = "";
$CCEStudents->HRManagerTelNo->EditValue = ew_HtmlEncode($CCEStudents->HRManagerTelNo->AdvancedSearch->SearchValue);
// HRManagerCellNo
$CCEStudents->HRManagerCellNo->EditCustomAttributes = "";
$CCEStudents->HRManagerCellNo->EditValue = ew_HtmlEncode($CCEStudents->HRManagerCellNo->AdvancedSearch->SearchValue);
// HRManagerEmail
$CCEStudents->HRManagerEmail->EditCustomAttributes = "";
$CCEStudents->HRManagerEmail->EditValue = ew_HtmlEncode($CCEStudents->HRManagerEmail->AdvancedSearch->SearchValue);
// LengthEmploy
$CCEStudents->LengthEmploy->EditCustomAttributes = "";
$CCEStudents->LengthEmploy->EditValue = ew_HtmlEncode($CCEStudents->LengthEmploy->AdvancedSearch->SearchValue);
// ResponsiblePayment
$CCEStudents->ResponsiblePayment->EditCustomAttributes = "";
$CCEStudents->ResponsiblePayment->EditValue = ew_HtmlEncode($CCEStudents->ResponsiblePayment->AdvancedSearch->SearchValue);
// BlockAccess
$CCEStudents->BlockAccess->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("y", "Yes");
$arwrk[] = array("n", "No");
$CCEStudents->BlockAccess->EditValue = $arwrk;
// Accepted
$CCEStudents->Accepted->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$CCEStudents->Accepted->EditValue = $arwrk;
// Archived
$CCEStudents->Archived->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$CCEStudents->Archived->EditValue = $arwrk;
// Achieved
$CCEStudents->Achieved->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Yes");
$arwrk[] = array("0", "No");
$CCEStudents->Achieved->EditValue = $arwrk;
// ResultLetter
$CCEStudents->ResultLetter->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->ResultLetter->Upload->DbValue)) {
$CCEStudents->ResultLetter->EditValue = $CCEStudents->ResultLetter->Upload->DbValue;
} else {
$CCEStudents->ResultLetter->EditValue = "";
}
// ReasonForLeaving
$CCEStudents->ReasonForLeaving->EditCustomAttributes = "";
$CCEStudents->ReasonForLeaving->EditValue = ew_HtmlEncode($CCEStudents->ReasonForLeaving->AdvancedSearch->SearchValue);
// ReasonNotAccepted
$CCEStudents->ReasonNotAccepted->EditCustomAttributes = "";
$CCEStudents->ReasonNotAccepted->EditValue = ew_HtmlEncode($CCEStudents->ReasonNotAccepted->AdvancedSearch->SearchValue);
// ResultComments
$CCEStudents->ResultComments->EditCustomAttributes = "";
$CCEStudents->ResultComments->EditValue = ew_HtmlEncode($CCEStudents->ResultComments->AdvancedSearch->SearchValue);
// ResultStatus
$CCEStudents->ResultStatus->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("", "No Result Yet");
$arwrk[] = array("P", "Passed");
$arwrk[] = array("S", "Pending Supplementary Exams");
$CCEStudents->ResultStatus->EditValue = $arwrk;
// ModulesEnrolled
$CCEStudents->ModulesEnrolled->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `CCEModuleID`, `ModuleNum`, `ModuleName`, '' AS SelectFilterFld FROM `CCEModules`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `ModuleNum`";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
$CCEStudents->ModulesEnrolled->EditValue = $arwrk;
// ModulesExcluded
$CCEStudents->ModulesExcluded->EditCustomAttributes = "";
$sFilterWrk = "";
$sSqlWrk = "SELECT `CCEModuleID`, `ModuleNum`, `ModuleName`, '' AS SelectFilterFld FROM `CCEModules`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `ModuleNum`";
$rswrk = $conn->Execute($sSqlWrk);
$arwrk = ($rswrk) ? $rswrk->GetRows() : array();
if ($rswrk) $rswrk->Close();
$CCEStudents->ModulesExcluded->EditValue = $arwrk;
// Cancelled
$CCEStudents->Cancelled->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("1", "Cancelled");
$arwrk[] = array("0", "Not Cancelled");
$CCEStudents->Cancelled->EditValue = $arwrk;
// CancelledReason
$CCEStudents->CancelledReason->EditCustomAttributes = "";
$CCEStudents->CancelledReason->EditValue = ew_HtmlEncode($CCEStudents->CancelledReason->AdvancedSearch->SearchValue);
// Trimester1Report
$CCEStudents->Trimester1Report->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->Trimester1Report->Upload->DbValue)) {
$CCEStudents->Trimester1Report->EditValue = $CCEStudents->Trimester1Report->Upload->DbValue;
} else {
$CCEStudents->Trimester1Report->EditValue = "";
}
// Trimester2Report
$CCEStudents->Trimester2Report->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->Trimester2Report->Upload->DbValue)) {
$CCEStudents->Trimester2Report->EditValue = $CCEStudents->Trimester2Report->Upload->DbValue;
} else {
$CCEStudents->Trimester2Report->EditValue = "";
}
// Trimester3Report
$CCEStudents->Trimester3Report->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->Trimester3Report->Upload->DbValue)) {
$CCEStudents->Trimester3Report->EditValue = $CCEStudents->Trimester3Report->Upload->DbValue;
} else {
$CCEStudents->Trimester3Report->EditValue = "";
}
// ExamResultLetter
$CCEStudents->ExamResultLetter->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->ExamResultLetter->Upload->DbValue)) {
$CCEStudents->ExamResultLetter->EditValue = $CCEStudents->ExamResultLetter->Upload->DbValue;
} else {
$CCEStudents->ExamResultLetter->EditValue = "";
}
// SupplementalExamLetter
$CCEStudents->SupplementalExamLetter->EditCustomAttributes = "";
if (!ew_Empty($CCEStudents->SupplementalExamLetter->Upload->DbValue)) {
$CCEStudents->SupplementalExamLetter->EditValue = $CCEStudents->SupplementalExamLetter->Upload->DbValue;
} else {
$CCEStudents->SupplementalExamLetter->EditValue = "";
}
// MarketingSource
$CCEStudents->MarketingSource->EditCustomAttributes = "";
$arwrk = array();
$arwrk[] = array("CESA.co.za", "CESA.co.za");
$arwrk[] = array("E-mail advertisement", "E-mail advertisement");
$arwrk[] = array("Word of Mouth", "Word of Mouth");
$arwrk[] = array("Other", "Other");
array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect")));
$CCEStudents->MarketingSource->EditValue = $arwrk;
// MarketingSourceOther
$CCEStudents->MarketingSourceOther->EditCustomAttributes = "";
$CCEStudents->MarketingSourceOther->EditValue = ew_HtmlEncode($CCEStudents->MarketingSourceOther->AdvancedSearch->SearchValue);
}
// Call Row Rendered event
if ($CCEStudents->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$CCEStudents->Row_Rendered();
}
// Validate search
function ValidateSearch() {
global $gsSearchError, $CCEStudents;
// Initialize
$gsSearchError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE)
return TRUE;
if (!ew_CheckInteger($CCEStudents->Age->AdvancedSearch->SearchValue)) {
if ($gsSearchError <> "") $gsSearchError .= "<br>";
$gsSearchError .= $CCEStudents->Age->FldErrMsg();
}
// Return validate result
$ValidateSearch = ($gsSearchError == "");
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateSearch = $ValidateSearch && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError <> "") {
if ($gsSearchError <> "") $gsSearchError .= "<br>";
$gsSearchError .= $sFormCustomError;
}
return $ValidateSearch;
}
// Load advanced search
function LoadAdvancedSearch() {
global $CCEStudents;
$CCEStudents->CCEStudentID->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_CCEStudentID");
$CCEStudents->Title->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Title");
$CCEStudents->KnownAs->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_KnownAs");
$CCEStudents->FirstName->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_FirstName");
$CCEStudents->Surname->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Surname");
$CCEStudents->Organisation->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Organisation");
$CCEStudents->OrganisationType->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_OrganisationType");
$CCEStudents->Designation->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Designation");
$CCEStudents->Department->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Department");
$CCEStudents->StudentNumber->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_StudentNumber");
$CCEStudents->CCEFacilitatorID->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_CCEFacilitatorID");
$CCEStudents->Project->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Project");
$CCEStudents->ProjectDiscipline->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ProjectDiscipline");
$CCEStudents->ProjectCode->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ProjectCode");
$CCEStudents->IDNumber->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_IDNumber");
$CCEStudents->ECSARegistered->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ECSARegistered");
$CCEStudents->ECSACategory->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ECSACategory");
$CCEStudents->ECSANumber->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ECSANumber");
$CCEStudents->OtherStatutoryBodyRegistered->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_OtherStatutoryBodyRegistered");
$CCEStudents->OtherStatutoryBodyName->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_OtherStatutoryBodyName");
$CCEStudents->OtherStatutoryBodyNumber->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_OtherStatutoryBodyNumber");
$CCEStudents->OtherStatutoryBodyCategory->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_OtherStatutoryBodyCategory");
$CCEStudents->CESAMemberFirm->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_CESAMemberFirm");
$CCEStudents->OtherCEFirms->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_OtherCEFirms");
$CCEStudents->Age->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Age");
$CCEStudents->HighestQual->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_HighestQual");
$CCEStudents->AreaDiscipline->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_AreaDiscipline");
$CCEStudents->Telephone->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Telephone");
$CCEStudents->Cellphone->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Cellphone");
$CCEStudents->EmailAddress->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_EmailAddress");
$CCEStudents->EmailAddress2->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_EmailAddress2");
$CCEStudents->HomeAddress->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_HomeAddress");
$CCEStudents->WorkAddress->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_WorkAddress");
$CCEStudents->PostalAddress->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_PostalAddress");
$CCEStudents->PreferredCourierAddress->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_PreferredCourierAddress");
$CCEStudents->CESAAccountNo->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_CESAAccountNo");
$CCEStudents->VATNo->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_VATNo");
$CCEStudents->DietaryRequirements->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_DietaryRequirements");
$CCEStudents->OrderNo->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_OrderNo");
$CCEStudents->BookedByName->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_BookedByName");
$CCEStudents->BookedByDesignation->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_BookedByDesignation");
$CCEStudents->BookedByTelNo->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_BookedByTelNo");
$CCEStudents->BookedByFaxNo->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_BookedByFaxNo");
$CCEStudents->BookedByCellNo->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_BookedByCellNo");
$CCEStudents->BookedByEmail->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_BookedByEmail");
$CCEStudents->WebUsername->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_WebUsername");
$CCEStudents->WebPassword->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_WebPassword");
$CCEStudents->MentorFirstName->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_MentorFirstName");
$CCEStudents->MentorSurname->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_MentorSurname");
$CCEStudents->MentorCompany->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_MentorCompany");
$CCEStudents->MentorDesig->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_MentorDesig");
$CCEStudents->MentorTel->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_MentorTel");
$CCEStudents->MentorCell->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_MentorCell");
$CCEStudents->MentorEmail->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_MentorEmail");
$CCEStudents->HRManagerName->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_HRManagerName");
$CCEStudents->HRManagerDesignation->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_HRManagerDesignation");
$CCEStudents->HRManagerTelNo->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_HRManagerTelNo");
$CCEStudents->HRManagerCellNo->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_HRManagerCellNo");
$CCEStudents->HRManagerEmail->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_HRManagerEmail");
$CCEStudents->LengthEmploy->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_LengthEmploy");
$CCEStudents->ResponsiblePayment->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ResponsiblePayment");
$CCEStudents->BlockAccess->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_BlockAccess");
$CCEStudents->Accepted->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Accepted");
$CCEStudents->Archived->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Archived");
$CCEStudents->Achieved->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Achieved");
$CCEStudents->ReasonForLeaving->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ReasonForLeaving");
$CCEStudents->ReasonNotAccepted->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ReasonNotAccepted");
$CCEStudents->ResultComments->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ResultComments");
$CCEStudents->ResultStatus->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ResultStatus");
$CCEStudents->ModulesEnrolled->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ModulesEnrolled");
$CCEStudents->ModulesExcluded->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_ModulesExcluded");
$CCEStudents->Cancelled->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_Cancelled");
$CCEStudents->CancelledReason->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_CancelledReason");
$CCEStudents->MarketingSource->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_MarketingSource");
$CCEStudents->MarketingSourceOther->AdvancedSearch->SearchValue = $CCEStudents->getAdvancedSearch("x_MarketingSourceOther");
}
// 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;
}
}
?>