| Current Path : /var/www/cesa.co.za/cceadmin/ |
| Current File : /var/www/cesa.co.za/cceadmin/cstArchivedStudents2015list.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 "cstArchivedStudents2015info.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
$cstArchivedStudents2015_list = new ccstArchivedStudents2015_list();
$Page =& $cstArchivedStudents2015_list;
// Page init
$cstArchivedStudents2015_list->Page_Init();
// Page main
$cstArchivedStudents2015_list->Page_Main();
?>
<?php include "header.php" ?>
<?php if ($cstArchivedStudents2015->Export == "") { ?>
<script type="text/javascript">
<!--
// Create page object
var cstArchivedStudents2015_list = new ew_Page("cstArchivedStudents2015_list");
// page properties
cstArchivedStudents2015_list.PageID = "list"; // page ID
cstArchivedStudents2015_list.FormID = "fcstArchivedStudents2015list"; // form ID
var EW_PAGE_ID = cstArchivedStudents2015_list.PageID; // for backward compatibility
// extend page with Form_CustomValidate function
cstArchivedStudents2015_list.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) { ?>
cstArchivedStudents2015_list.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
cstArchivedStudents2015_list.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>
<?php } ?>
<?php if ($cstArchivedStudents2015->Export == "") { ?>
<?php } ?>
<?php
$bSelectLimit = EW_SELECT_LIMIT;
if ($bSelectLimit) {
$cstArchivedStudents2015_list->lTotalRecs = $cstArchivedStudents2015->SelectRecordCount();
} else {
if ($rs = $cstArchivedStudents2015_list->LoadRecordset())
$cstArchivedStudents2015_list->lTotalRecs = $rs->RecordCount();
}
$cstArchivedStudents2015_list->lStartRec = 1;
if ($cstArchivedStudents2015_list->lDisplayRecs <= 0 || ($cstArchivedStudents2015->Export <> "" && $cstArchivedStudents2015->ExportAll)) // Display all records
$cstArchivedStudents2015_list->lDisplayRecs = $cstArchivedStudents2015_list->lTotalRecs;
if (!($cstArchivedStudents2015->Export <> "" && $cstArchivedStudents2015->ExportAll))
$cstArchivedStudents2015_list->SetUpStartRec(); // Set up start record position
if ($bSelectLimit)
$rs = $cstArchivedStudents2015_list->LoadRecordset($cstArchivedStudents2015_list->lStartRec-1, $cstArchivedStudents2015_list->lDisplayRecs);
?>
<p><span class="phpmaker" style="white-space: nowrap;"><?php echo $Language->Phrase("TblTypeCUSTOMVIEW") ?><?php echo $cstArchivedStudents2015->TableCaption() ?>
<?php if ($cstArchivedStudents2015->Export == "" && $cstArchivedStudents2015->CurrentAction == "") { ?>
<a href="<?php echo $cstArchivedStudents2015_list->ExportPrintUrl ?>"><img src="images/print.gif" alt="<?php echo ew_HtmlEncode($Language->Phrase("PrinterFriendly")) ?>" title="<?php echo ew_HtmlEncode($Language->Phrase("PrinterFriendly")) ?>" width="16" height="16" border="0"></a>
<a href="<?php echo $cstArchivedStudents2015_list->ExportExcelUrl ?>"><img src='images/exportxls.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToExcel")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToExcel")) ?>' width='16' height='16' border='0'></a>
<a href="<?php echo $cstArchivedStudents2015_list->ExportWordUrl ?>"><img src='images/exportdoc.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToWord")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToWord")) ?>' width='16' height='16' border='0'></a>
<a name="emf_cstArchivedStudents2015" id="emf_cstArchivedStudents2015" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_cstArchivedStudents2015',hdr:ewLanguage.Phrase('ExportToEmail'),f:document.fcstArchivedStudents2015list,sel:false});"><img src='images/exportemail.gif' alt='<?php echo ew_HtmlEncode($Language->Phrase("ExportToEmail")) ?>' title='<?php echo ew_HtmlEncode($Language->Phrase("ExportToEmail")) ?>' width='16' height='16' border='0'></a>
<?php } ?>
</span></p>
<?php if ($Security->CanSearch()) { ?>
<?php if ($cstArchivedStudents2015->Export == "" && $cstArchivedStudents2015->CurrentAction == "") { ?>
<a href="javascript:ew_ToggleSearchPanel(cstArchivedStudents2015_list);" style="text-decoration: none;"><img id="cstArchivedStudents2015_list_SearchImage" src="images/collapse.gif" alt="" width="9" height="9" border="0"></a><span class="phpmaker"> <?php echo $Language->Phrase("Search") ?></span><br>
<div id="cstArchivedStudents2015_list_SearchPanel">
<form name="fcstArchivedStudents2015listsrch" id="fcstArchivedStudents2015listsrch" class="ewForm" action="<?php echo ew_CurrentPage() ?>">
<input type="hidden" id="t" name="t" value="cstArchivedStudents2015">
<table class="ewBasicSearch">
<tr>
<td><span class="phpmaker">
<input type="text" name="<?php echo EW_TABLE_BASIC_SEARCH ?>" id="<?php echo EW_TABLE_BASIC_SEARCH ?>" size="20" value="<?php echo ew_HtmlEncode($cstArchivedStudents2015->getSessionBasicSearchKeyword()) ?>">
<input type="Submit" name="Submit" id="Submit" value="<?php echo ew_BtnCaption($Language->Phrase("QuickSearchBtn")) ?>">
<a href="<?php echo $cstArchivedStudents2015_list->PageUrl() ?>cmd=reset"><?php echo $Language->Phrase("ShowAll") ?></a>
</span></td>
</tr>
<tr>
<td><span class="phpmaker"><label><input type="radio" name="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" id="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" value=""<?php if ($cstArchivedStudents2015->getSessionBasicSearchType() == "") { ?> checked="checked"<?php } ?>><?php echo $Language->Phrase("ExactPhrase") ?></label> <label><input type="radio" name="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" id="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" value="AND"<?php if ($cstArchivedStudents2015->getSessionBasicSearchType() == "AND") { ?> checked="checked"<?php } ?>><?php echo $Language->Phrase("AllWord") ?></label> <label><input type="radio" name="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" id="<?php echo EW_TABLE_BASIC_SEARCH_TYPE ?>" value="OR"<?php if ($cstArchivedStudents2015->getSessionBasicSearchType() == "OR") { ?> checked="checked"<?php } ?>><?php echo $Language->Phrase("AnyWord") ?></label></span></td>
</tr>
</table>
</form>
</div>
<?php } ?>
<?php } ?>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$cstArchivedStudents2015_list->ShowMessage();
?>
<br>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<?php if ($cstArchivedStudents2015->Export == "") { ?>
<div class="ewGridUpperPanel">
<?php if ($cstArchivedStudents2015->CurrentAction <> "gridadd" && $cstArchivedStudents2015->CurrentAction <> "gridedit") { ?>
<form name="ewpagerform" id="ewpagerform" class="ewForm" action="<?php echo ew_CurrentPage() ?>">
<table border="0" cellspacing="0" cellpadding="0" class="ewPager">
<tr>
<td nowrap>
<?php if (!isset($cstArchivedStudents2015_list->Pager)) $cstArchivedStudents2015_list->Pager = new cPrevNextPager($cstArchivedStudents2015_list->lStartRec, $cstArchivedStudents2015_list->lDisplayRecs, $cstArchivedStudents2015_list->lTotalRecs) ?>
<?php if ($cstArchivedStudents2015_list->Pager->RecordCount > 0) { ?>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><span class="phpmaker"><?php echo $Language->Phrase("Page") ?> </span></td>
<!--first page button-->
<?php if ($cstArchivedStudents2015_list->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2015_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2015_list->Pager->FirstButton->Start ?>"><img src="images/first.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/firstdisab.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--previous page button-->
<?php if ($cstArchivedStudents2015_list->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2015_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2015_list->Pager->PrevButton->Start ?>"><img src="images/prev.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/prevdisab.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--current page number-->
<td><input type="text" name="<?php echo EW_TABLE_PAGE_NO ?>" id="<?php echo EW_TABLE_PAGE_NO ?>" value="<?php echo $cstArchivedStudents2015_list->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($cstArchivedStudents2015_list->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2015_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2015_list->Pager->NextButton->Start ?>"><img src="images/next.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/nextdisab.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--last page button-->
<?php if ($cstArchivedStudents2015_list->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2015_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2015_list->Pager->LastButton->Start ?>"><img src="images/last.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/lastdisab.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<td><span class="phpmaker"> <?php echo $Language->Phrase("of") ?> <?php echo $cstArchivedStudents2015_list->Pager->PageCount ?></span></td>
</tr></table>
</td>
<td> </td>
<td>
<span class="phpmaker"><?php echo $Language->Phrase("Record") ?> <?php echo $cstArchivedStudents2015_list->Pager->FromIndex ?> <?php echo $Language->Phrase("To") ?> <?php echo $cstArchivedStudents2015_list->Pager->ToIndex ?> <?php echo $Language->Phrase("Of") ?> <?php echo $cstArchivedStudents2015_list->Pager->RecordCount ?></span>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($cstArchivedStudents2015_list->sSrchWhere == "0=101") { ?>
<span class="phpmaker"><?php echo $Language->Phrase("EnterSearchCriteria") ?></span>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoRecord") ?></span>
<?php } ?>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoPermission") ?></span>
<?php } ?>
<?php } ?>
</td>
</tr>
</table>
</form>
<?php } ?>
<span class="phpmaker">
</span>
</div>
<?php } ?>
<form name="fcstArchivedStudents2015list" id="fcstArchivedStudents2015list" class="ewForm" action="" method="post">
<div id="gmp_cstArchivedStudents2015" class="ewGridMiddlePanel">
<?php if ($cstArchivedStudents2015_list->lTotalRecs > 0) { ?>
<table cellspacing="0" rowhighlightclass="ewTableHighlightRow" rowselectclass="ewTableSelectRow" roweditclass="ewTableEditRow" class="ewTable ewTableSeparate">
<?php echo $cstArchivedStudents2015->TableCustomInnerHtml ?>
<thead><!-- Table header -->
<tr class="ewTableHeader">
<?php
// Render list options
$cstArchivedStudents2015_list->RenderListOptions();
// Render list options (header, left)
$cstArchivedStudents2015_list->ListOptions->Render("header", "left");
?>
<?php if ($cstArchivedStudents2015->FirstName->Visible) { // FirstName ?>
<?php if ($cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->FirstName) == "") { ?>
<td><?php echo $cstArchivedStudents2015->FirstName->FldCaption() ?></td>
<?php } else { ?>
<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->FirstName) ?>',2);">
<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2015->FirstName->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2015->FirstName->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2015->FirstName->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
</div></td>
<?php } ?>
<?php } ?>
<?php if ($cstArchivedStudents2015->Surname->Visible) { // Surname ?>
<?php if ($cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->Surname) == "") { ?>
<td><?php echo $cstArchivedStudents2015->Surname->FldCaption() ?></td>
<?php } else { ?>
<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->Surname) ?>',2);">
<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2015->Surname->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2015->Surname->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2015->Surname->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
</div></td>
<?php } ?>
<?php } ?>
<?php if ($cstArchivedStudents2015->KnownAs->Visible) { // KnownAs ?>
<?php if ($cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->KnownAs) == "") { ?>
<td><?php echo $cstArchivedStudents2015->KnownAs->FldCaption() ?></td>
<?php } else { ?>
<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->KnownAs) ?>',2);">
<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2015->KnownAs->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2015->KnownAs->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2015->KnownAs->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
</div></td>
<?php } ?>
<?php } ?>
<?php if ($cstArchivedStudents2015->Organisation->Visible) { // Organisation ?>
<?php if ($cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->Organisation) == "") { ?>
<td><?php echo $cstArchivedStudents2015->Organisation->FldCaption() ?></td>
<?php } else { ?>
<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->Organisation) ?>',2);">
<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2015->Organisation->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2015->Organisation->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2015->Organisation->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
</div></td>
<?php } ?>
<?php } ?>
<?php if ($cstArchivedStudents2015->StudentNumber->Visible) { // StudentNumber ?>
<?php if ($cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->StudentNumber) == "") { ?>
<td><?php echo $cstArchivedStudents2015->StudentNumber->FldCaption() ?></td>
<?php } else { ?>
<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->StudentNumber) ?>',2);">
<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2015->StudentNumber->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2015->StudentNumber->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2015->StudentNumber->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
</div></td>
<?php } ?>
<?php } ?>
<?php if ($cstArchivedStudents2015->Age->Visible) { // Age ?>
<?php if ($cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->Age) == "") { ?>
<td><?php echo $cstArchivedStudents2015->Age->FldCaption() ?></td>
<?php } else { ?>
<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->Age) ?>',2);">
<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2015->Age->FldCaption() ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2015->Age->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2015->Age->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
</div></td>
<?php } ?>
<?php } ?>
<?php if ($cstArchivedStudents2015->Cellphone->Visible) { // Cellphone ?>
<?php if ($cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->Cellphone) == "") { ?>
<td><?php echo $cstArchivedStudents2015->Cellphone->FldCaption() ?></td>
<?php } else { ?>
<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->Cellphone) ?>',2);">
<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2015->Cellphone->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2015->Cellphone->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2015->Cellphone->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
</div></td>
<?php } ?>
<?php } ?>
<?php if ($cstArchivedStudents2015->EmailAddress->Visible) { // EmailAddress ?>
<?php if ($cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->EmailAddress) == "") { ?>
<td><?php echo $cstArchivedStudents2015->EmailAddress->FldCaption() ?></td>
<?php } else { ?>
<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->EmailAddress) ?>',2);">
<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2015->EmailAddress->FldCaption() ?><?php echo $Language->Phrase("SrchLegend") ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2015->EmailAddress->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2015->EmailAddress->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
</div></td>
<?php } ?>
<?php } ?>
<?php if ($cstArchivedStudents2015->BlockAccess->Visible) { // BlockAccess ?>
<?php if ($cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->BlockAccess) == "") { ?>
<td><?php echo $cstArchivedStudents2015->BlockAccess->FldCaption() ?></td>
<?php } else { ?>
<td><div class="ewPointer" onmousedown="ew_Sort(event,'<?php echo $cstArchivedStudents2015->SortUrl($cstArchivedStudents2015->BlockAccess) ?>',2);">
<table cellspacing="0" class="ewTableHeaderBtn"><thead><tr><td><?php echo $cstArchivedStudents2015->BlockAccess->FldCaption() ?></td><td style="width: 10px;"><?php if ($cstArchivedStudents2015->BlockAccess->getSort() == "ASC") { ?><img src="images/sortup.gif" width="10" height="9" border="0"><?php } elseif ($cstArchivedStudents2015->BlockAccess->getSort() == "DESC") { ?><img src="images/sortdown.gif" width="10" height="9" border="0"><?php } ?></td></tr></thead></table>
</div></td>
<?php } ?>
<?php } ?>
<?php
// Render list options (header, right)
$cstArchivedStudents2015_list->ListOptions->Render("header", "right");
?>
</tr>
</thead>
<?php
if ($cstArchivedStudents2015->ExportAll && $cstArchivedStudents2015->Export <> "") {
$cstArchivedStudents2015_list->lStopRec = $cstArchivedStudents2015_list->lTotalRecs;
} else {
$cstArchivedStudents2015_list->lStopRec = $cstArchivedStudents2015_list->lStartRec + $cstArchivedStudents2015_list->lDisplayRecs - 1; // Set the last record to display
}
$cstArchivedStudents2015_list->lRecCount = $cstArchivedStudents2015_list->lStartRec - 1;
if ($rs && !$rs->EOF) {
$rs->MoveFirst();
if (!$bSelectLimit && $cstArchivedStudents2015_list->lStartRec > 1)
$rs->Move($cstArchivedStudents2015_list->lStartRec - 1);
}
// Initialize aggregate
$cstArchivedStudents2015->RowType = EW_ROWTYPE_AGGREGATEINIT;
$cstArchivedStudents2015_list->RenderRow();
$cstArchivedStudents2015_list->lRowCnt = 0;
while (($cstArchivedStudents2015->CurrentAction == "gridadd" || !$rs->EOF) &&
$cstArchivedStudents2015_list->lRecCount < $cstArchivedStudents2015_list->lStopRec) {
$cstArchivedStudents2015_list->lRecCount++;
if (intval($cstArchivedStudents2015_list->lRecCount) >= intval($cstArchivedStudents2015_list->lStartRec)) {
$cstArchivedStudents2015_list->lRowCnt++;
// Init row class and style
$cstArchivedStudents2015->CssClass = "";
$cstArchivedStudents2015->CssStyle = "";
$cstArchivedStudents2015->RowAttrs = array('onmouseover'=>'ew_MouseOver(event, this);', 'onmouseout'=>'ew_MouseOut(event, this);', 'onclick'=>'ew_Click(event, this);');
if ($cstArchivedStudents2015->CurrentAction == "gridadd") {
$cstArchivedStudents2015_list->LoadDefaultValues(); // Load default values
} else {
$cstArchivedStudents2015_list->LoadRowValues($rs); // Load row values
}
$cstArchivedStudents2015->RowType = EW_ROWTYPE_VIEW; // Render view
// Render row
$cstArchivedStudents2015_list->RenderRow();
// Render list options
$cstArchivedStudents2015_list->RenderListOptions();
?>
<tr<?php echo $cstArchivedStudents2015->RowAttributes() ?>>
<?php
// Render list options (body, left)
$cstArchivedStudents2015_list->ListOptions->Render("body", "left");
?>
<?php if ($cstArchivedStudents2015->FirstName->Visible) { // FirstName ?>
<td<?php echo $cstArchivedStudents2015->FirstName->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2015->FirstName->ViewAttributes() ?>><?php echo $cstArchivedStudents2015->FirstName->ListViewValue() ?></div>
</td>
<?php } ?>
<?php if ($cstArchivedStudents2015->Surname->Visible) { // Surname ?>
<td<?php echo $cstArchivedStudents2015->Surname->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2015->Surname->ViewAttributes() ?>><?php echo $cstArchivedStudents2015->Surname->ListViewValue() ?></div>
</td>
<?php } ?>
<?php if ($cstArchivedStudents2015->KnownAs->Visible) { // KnownAs ?>
<td<?php echo $cstArchivedStudents2015->KnownAs->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2015->KnownAs->ViewAttributes() ?>><?php echo $cstArchivedStudents2015->KnownAs->ListViewValue() ?></div>
</td>
<?php } ?>
<?php if ($cstArchivedStudents2015->Organisation->Visible) { // Organisation ?>
<td<?php echo $cstArchivedStudents2015->Organisation->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2015->Organisation->ViewAttributes() ?>><?php echo $cstArchivedStudents2015->Organisation->ListViewValue() ?></div>
</td>
<?php } ?>
<?php if ($cstArchivedStudents2015->StudentNumber->Visible) { // StudentNumber ?>
<td<?php echo $cstArchivedStudents2015->StudentNumber->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2015->StudentNumber->ViewAttributes() ?>><?php echo $cstArchivedStudents2015->StudentNumber->ListViewValue() ?></div>
</td>
<?php } ?>
<?php if ($cstArchivedStudents2015->Age->Visible) { // Age ?>
<td<?php echo $cstArchivedStudents2015->Age->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2015->Age->ViewAttributes() ?>><?php echo $cstArchivedStudents2015->Age->ListViewValue() ?></div>
</td>
<?php } ?>
<?php if ($cstArchivedStudents2015->Cellphone->Visible) { // Cellphone ?>
<td<?php echo $cstArchivedStudents2015->Cellphone->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2015->Cellphone->ViewAttributes() ?>><?php echo $cstArchivedStudents2015->Cellphone->ListViewValue() ?></div>
</td>
<?php } ?>
<?php if ($cstArchivedStudents2015->EmailAddress->Visible) { // EmailAddress ?>
<td<?php echo $cstArchivedStudents2015->EmailAddress->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2015->EmailAddress->ViewAttributes() ?>><?php echo $cstArchivedStudents2015->EmailAddress->ListViewValue() ?></div>
</td>
<?php } ?>
<?php if ($cstArchivedStudents2015->BlockAccess->Visible) { // BlockAccess ?>
<td<?php echo $cstArchivedStudents2015->BlockAccess->CellAttributes() ?>>
<div<?php echo $cstArchivedStudents2015->BlockAccess->ViewAttributes() ?>><?php echo $cstArchivedStudents2015->BlockAccess->ListViewValue() ?></div>
</td>
<?php } ?>
<?php
// Render list options (body, right)
$cstArchivedStudents2015_list->ListOptions->Render("body", "right");
?>
</tr>
<?php
}
if ($cstArchivedStudents2015->CurrentAction <> "gridadd")
$rs->MoveNext();
}
?>
</tbody>
</table>
<?php } ?>
</div>
</form>
<?php
// Close recordset
if ($rs)
$rs->Close();
?>
<?php if ($cstArchivedStudents2015_list->lTotalRecs > 0) { ?>
<?php if ($cstArchivedStudents2015->Export == "") { ?>
<div class="ewGridLowerPanel">
<?php if ($cstArchivedStudents2015->CurrentAction <> "gridadd" && $cstArchivedStudents2015->CurrentAction <> "gridedit") { ?>
<form name="ewpagerform" id="ewpagerform" class="ewForm" action="<?php echo ew_CurrentPage() ?>">
<table border="0" cellspacing="0" cellpadding="0" class="ewPager">
<tr>
<td nowrap>
<?php if (!isset($cstArchivedStudents2015_list->Pager)) $cstArchivedStudents2015_list->Pager = new cPrevNextPager($cstArchivedStudents2015_list->lStartRec, $cstArchivedStudents2015_list->lDisplayRecs, $cstArchivedStudents2015_list->lTotalRecs) ?>
<?php if ($cstArchivedStudents2015_list->Pager->RecordCount > 0) { ?>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><span class="phpmaker"><?php echo $Language->Phrase("Page") ?> </span></td>
<!--first page button-->
<?php if ($cstArchivedStudents2015_list->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2015_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2015_list->Pager->FirstButton->Start ?>"><img src="images/first.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/firstdisab.gif" alt="<?php echo $Language->Phrase("PagerFirst") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--previous page button-->
<?php if ($cstArchivedStudents2015_list->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2015_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2015_list->Pager->PrevButton->Start ?>"><img src="images/prev.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/prevdisab.gif" alt="<?php echo $Language->Phrase("PagerPrevious") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--current page number-->
<td><input type="text" name="<?php echo EW_TABLE_PAGE_NO ?>" id="<?php echo EW_TABLE_PAGE_NO ?>" value="<?php echo $cstArchivedStudents2015_list->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($cstArchivedStudents2015_list->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2015_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2015_list->Pager->NextButton->Start ?>"><img src="images/next.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/nextdisab.gif" alt="<?php echo $Language->Phrase("PagerNext") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<!--last page button-->
<?php if ($cstArchivedStudents2015_list->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $cstArchivedStudents2015_list->PageUrl() ?>start=<?php echo $cstArchivedStudents2015_list->Pager->LastButton->Start ?>"><img src="images/last.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></a></td>
<?php } else { ?>
<td><img src="images/lastdisab.gif" alt="<?php echo $Language->Phrase("PagerLast") ?>" width="16" height="16" border="0"></td>
<?php } ?>
<td><span class="phpmaker"> <?php echo $Language->Phrase("of") ?> <?php echo $cstArchivedStudents2015_list->Pager->PageCount ?></span></td>
</tr></table>
</td>
<td> </td>
<td>
<span class="phpmaker"><?php echo $Language->Phrase("Record") ?> <?php echo $cstArchivedStudents2015_list->Pager->FromIndex ?> <?php echo $Language->Phrase("To") ?> <?php echo $cstArchivedStudents2015_list->Pager->ToIndex ?> <?php echo $Language->Phrase("Of") ?> <?php echo $cstArchivedStudents2015_list->Pager->RecordCount ?></span>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($cstArchivedStudents2015_list->sSrchWhere == "0=101") { ?>
<span class="phpmaker"><?php echo $Language->Phrase("EnterSearchCriteria") ?></span>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoRecord") ?></span>
<?php } ?>
<?php } else { ?>
<span class="phpmaker"><?php echo $Language->Phrase("NoPermission") ?></span>
<?php } ?>
<?php } ?>
</td>
</tr>
</table>
</form>
<?php } ?>
<?php //if ($cstArchivedStudents2015_list->lTotalRecs > 0) { ?>
<span class="phpmaker">
</span>
<?php //} ?>
</div>
<?php } ?>
<?php } ?>
</td></tr></table>
<?php if ($cstArchivedStudents2015->Export == "" && $cstArchivedStudents2015->CurrentAction == "") { ?>
<?php } ?>
<?php if ($cstArchivedStudents2015->Export == "") { ?>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
<?php } ?>
<?php include "footer.php" ?>
<?php
$cstArchivedStudents2015_list->Page_Terminate();
?>
<?php
//
// Page class
//
class ccstArchivedStudents2015_list {
// Page ID
var $PageID = 'list';
// Table name
var $TableName = 'cstArchivedStudents2015';
// Page object name
var $PageObjName = 'cstArchivedStudents2015_list';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $cstArchivedStudents2015;
if ($cstArchivedStudents2015->UseTokenInUrl) $PageUrl .= "t=" . $cstArchivedStudents2015->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, $cstArchivedStudents2015;
if ($cstArchivedStudents2015->UseTokenInUrl) {
if ($objForm)
return ($cstArchivedStudents2015->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($cstArchivedStudents2015->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function __construct() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (cstArchivedStudents2015)
$GLOBALS["cstArchivedStudents2015"] = new ccstArchivedStudents2015();
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print";
$this->ExportExcelUrl = $this->PageUrl() . "export=excel";
$this->ExportWordUrl = $this->PageUrl() . "export=word";
$this->ExportHtmlUrl = $this->PageUrl() . "export=html";
$this->ExportXmlUrl = $this->PageUrl() . "export=xml";
$this->ExportCsvUrl = $this->PageUrl() . "export=csv";
$this->AddUrl = $GLOBALS["cstArchivedStudents2015"]->AddUrl();
$this->InlineAddUrl = $this->PageUrl() . "a=add";
$this->GridAddUrl = $this->PageUrl() . "a=gridadd";
$this->GridEditUrl = $this->PageUrl() . "a=gridedit";
$this->MultiDeleteUrl = "cstArchivedStudents2015delete.php";
$this->MultiUpdateUrl = "cstArchivedStudents2015update.php";
// Table object (CCEUsers)
$GLOBALS['CCEUsers'] = new cCCEUsers();
// Page ID
if (!defined("EW_PAGE_ID"))
define("EW_PAGE_ID", 'list', TRUE);
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME"))
define("EW_TABLE_NAME", 'cstArchivedStudents2015', TRUE);
// Start timer
$GLOBALS["gsTimer"] = new cTimer();
// Open connection
$conn = ew_Connect();
// List options
$this->ListOptions = new cListOptions();
}
//
// Page_Init
//
function Page_Init() {
global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
global $cstArchivedStudents2015;
// 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->CanList()) {
$Security->SaveLastUrl();
$this->Page_Terminate("login.php");
}
// Get export parameters
if (@$_GET["export"] <> "") {
$cstArchivedStudents2015->Export = $_GET["export"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] <> "")
$cstArchivedStudents2015->Export = $_POST["exporttype"];
} else {
$cstArchivedStudents2015->setExportReturnUrl(ew_CurrentUrl());
}
$gsExport = $cstArchivedStudents2015->Export; // Get export parameter, used in header
$gsExportFile = $cstArchivedStudents2015->TableVar; // Get export file, used in header
if ($cstArchivedStudents2015->Export == "excel") {
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=' . $gsExportFile .'.xls');
}
if ($cstArchivedStudents2015->Export == "word") {
header('Content-Type: application/vnd.ms-word');
header('Content-Disposition: attachment; filename=' . $gsExportFile .'.doc');
}
// 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();
}
// Class variables
var $ListOptions; // List options
var $lDisplayRecs = 20;
var $lStartRec;
var $lStopRec;
var $lTotalRecs = 0;
var $lRecRange = 10;
var $sSrchWhere = ""; // Search WHERE clause
var $lRecCnt = 0; // Record count
var $lEditRowCnt;
var $lRowCnt;
var $lRowIndex; // Row index
var $lRecPerRow = 0;
var $lColCnt = 0;
var $sDbMasterFilter = ""; // Master filter
var $sDbDetailFilter = ""; // Detail filter
var $bMasterRecordExists;
var $sMultiSelectKey;
var $RestoreSearch;
//
// Page main
//
function Page_Main() {
global $objForm, $Language, $gsSearchError, $Security, $cstArchivedStudents2015;
// Search filters
$sSrchAdvanced = ""; // Advanced search filter
$sSrchBasic = ""; // Basic search filter
$sFilter = "";
if ($this->IsPageRequest()) { // Validate request
// Handle reset command
$this->ResetCmd();
// Set up list options
$this->SetupListOptions();
// Get basic search values
$this->LoadBasicSearchValues();
// Restore search parms from Session
$this->RestoreSearchParms();
// Call Recordset SearchValidated event
$cstArchivedStudents2015->Recordset_SearchValidated();
// Set up sorting order
$this->SetUpSortOrder();
// Get basic search criteria
if ($gsSearchError == "")
$sSrchBasic = $this->BasicSearchWhere();
}
// Restore display records
if ($cstArchivedStudents2015->getRecordsPerPage() <> "") {
$this->lDisplayRecs = $cstArchivedStudents2015->getRecordsPerPage(); // Restore from Session
} else {
$this->lDisplayRecs = 20; // Load default
}
// Load Sorting Order
$this->LoadSortOrder();
// Build search criteria
if ($sSrchAdvanced <> "")
$this->sSrchWhere = ($this->sSrchWhere <> "") ? "(" . $this->sSrchWhere . ") AND (" . $sSrchAdvanced . ")" : $sSrchAdvanced;
if ($sSrchBasic <> "")
$this->sSrchWhere = ($this->sSrchWhere <> "") ? "(" . $this->sSrchWhere . ") AND (" . $sSrchBasic. ")" : $sSrchBasic;
// Call Recordset_Searching event
$cstArchivedStudents2015->Recordset_Searching($this->sSrchWhere);
// Save search criteria
if ($this->sSrchWhere <> "") {
if ($sSrchBasic == "")
$this->ResetBasicSearchParms();
$cstArchivedStudents2015->setSearchWhere($this->sSrchWhere); // Save to Session
if (!$this->RestoreSearch) {
$this->lStartRec = 1; // Reset start record counter
$cstArchivedStudents2015->setStartRecordNumber($this->lStartRec);
}
} else {
$this->sSrchWhere = $cstArchivedStudents2015->getSearchWhere();
}
// Build filter
$sFilter = "";
if (!$Security->CanList())
$sFilter = "(0=1)"; // Filter all records
if ($this->sDbDetailFilter <> "")
$sFilter = ($sFilter <> "") ? "(" . $sFilter . ") AND (" . $this->sDbDetailFilter . ")" : $this->sDbDetailFilter;
if ($this->sSrchWhere <> "")
$sFilter = ($sFilter <> "") ? "(" . $sFilter . ") AND (". $this->sSrchWhere . ")" : $this->sSrchWhere;
// Set up filter in session
$cstArchivedStudents2015->setSessionWhere($sFilter);
$cstArchivedStudents2015->CurrentFilter = "";
// Export data only
if (in_array($cstArchivedStudents2015->Export, array("html","word","excel","xml","csv","email"))) {
$this->ExportData();
if ($cstArchivedStudents2015->Export <> "email")
$this->Page_Terminate(); // Terminate response
exit();
}
}
// Return basic search SQL
function BasicSearchSQL($Keyword) {
global $cstArchivedStudents2015;
$sKeyword = ew_AdjustSql($Keyword);
$sWhere = "";
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->Title, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->FirstName, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->Surname, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->KnownAs, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->Organisation, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->OrganisationType, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->StudentNumber, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->ProjectDiscipline, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->IDNumber, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->ECSANumber, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->HighestQual, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->AreaDiscipline, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->Telephone, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->Cellphone, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->EmailAddress, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->HomeAddress, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->WorkAddress, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->PostalAddress, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->Designation, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->Department, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->CESAAccountNo, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->VATNo, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->DietaryRequirements, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->CVFile, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->QualCertificate1, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->QualCertificate2, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->QualCertificate3, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->MemorandumFile, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->AgreementFile, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->OrderNo, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->BookedByName, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->BookedByDesignation, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->BookedByTelNo, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->BookedByFaxNo, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->BookedByCellNo, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->BookedByEmail, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->WebUsername, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->WebPassword, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->MentorName, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->MentorDesig, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->MentorTel, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->MentorCell, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->MentorEmail, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->HRManagerName, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->HRManagerDesignation, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->HRManagerTelNo, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->HRManagerCellNo, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->HRManagerEmail, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->LengthEmploy, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->BlockAccess, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->ResultLetter, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->IDFile, $Keyword);
$this->BuildBasicSearchSQL($sWhere, $cstArchivedStudents2015->ReasonForLeaving, $Keyword);
return $sWhere;
}
// Build basic search SQL
function BuildBasicSearchSql(&$Where, &$Fld, $Keyword) {
$sFldExpression = ($Fld->FldVirtualExpression <> "") ? $Fld->FldVirtualExpression : $Fld->FldExpression;
$lFldDataType = ($Fld->FldIsVirtual) ? EW_DATATYPE_STRING : $Fld->FldDataType;
if ($lFldDataType == EW_DATATYPE_NUMBER) {
$sWrk = $sFldExpression . " = " . ew_QuotedValue($Keyword, $lFldDataType);
} else {
$sWrk = $sFldExpression . " LIKE " . ew_QuotedValue("%" . $Keyword . "%", $lFldDataType);
}
if ($Where <> "") $Where .= " OR ";
$Where .= $sWrk;
}
// Return basic search WHERE clause based on search keyword and type
function BasicSearchWhere() {
global $Security, $cstArchivedStudents2015;
$sSearchStr = "";
if (!$Security->CanSearch()) return "";
$sSearchKeyword = $cstArchivedStudents2015->BasicSearchKeyword;
$sSearchType = $cstArchivedStudents2015->BasicSearchType;
if ($sSearchKeyword <> "") {
$sSearch = trim($sSearchKeyword);
if ($sSearchType <> "") {
while (strpos($sSearch, " ") !== FALSE)
$sSearch = str_replace(" ", " ", $sSearch);
$arKeyword = explode(" ", trim($sSearch));
foreach ($arKeyword as $sKeyword) {
if ($sSearchStr <> "") $sSearchStr .= " " . $sSearchType . " ";
$sSearchStr .= "(" . $this->BasicSearchSQL($sKeyword) . ")";
}
} else {
$sSearchStr = $this->BasicSearchSQL($sSearch);
}
}
if ($sSearchKeyword <> "") {
$cstArchivedStudents2015->setSessionBasicSearchKeyword($sSearchKeyword);
$cstArchivedStudents2015->setSessionBasicSearchType($sSearchType);
}
return $sSearchStr;
}
// Clear all search parameters
function ResetSearchParms() {
global $cstArchivedStudents2015;
// Clear search WHERE clause
$this->sSrchWhere = "";
$cstArchivedStudents2015->setSearchWhere($this->sSrchWhere);
// Clear basic search parameters
$this->ResetBasicSearchParms();
}
// Clear all basic search parameters
function ResetBasicSearchParms() {
global $cstArchivedStudents2015;
$cstArchivedStudents2015->setSessionBasicSearchKeyword("");
$cstArchivedStudents2015->setSessionBasicSearchType("");
}
// Restore all search parameters
function RestoreSearchParms() {
global $cstArchivedStudents2015;
$bRestore = TRUE;
if (@$_GET[EW_TABLE_BASIC_SEARCH] <> "") $bRestore = FALSE;
$this->RestoreSearch = $bRestore;
if ($bRestore) {
// Restore basic search values
$cstArchivedStudents2015->BasicSearchKeyword = $cstArchivedStudents2015->getSessionBasicSearchKeyword();
$cstArchivedStudents2015->BasicSearchType = $cstArchivedStudents2015->getSessionBasicSearchType();
}
}
// Set up sort parameters
function SetUpSortOrder() {
global $cstArchivedStudents2015;
// Check for Ctrl pressed
$bCtrl = (@$_GET["ctrl"] <> "");
// Check for "order" parameter
if (@$_GET["order"] <> "") {
$cstArchivedStudents2015->CurrentOrder = ew_StripSlashes(@$_GET["order"]);
$cstArchivedStudents2015->CurrentOrderType = @$_GET["ordertype"];
$cstArchivedStudents2015->UpdateSort($cstArchivedStudents2015->FirstName, $bCtrl); // FirstName
$cstArchivedStudents2015->UpdateSort($cstArchivedStudents2015->Surname, $bCtrl); // Surname
$cstArchivedStudents2015->UpdateSort($cstArchivedStudents2015->KnownAs, $bCtrl); // KnownAs
$cstArchivedStudents2015->UpdateSort($cstArchivedStudents2015->Organisation, $bCtrl); // Organisation
$cstArchivedStudents2015->UpdateSort($cstArchivedStudents2015->StudentNumber, $bCtrl); // StudentNumber
$cstArchivedStudents2015->UpdateSort($cstArchivedStudents2015->Age, $bCtrl); // Age
$cstArchivedStudents2015->UpdateSort($cstArchivedStudents2015->Cellphone, $bCtrl); // Cellphone
$cstArchivedStudents2015->UpdateSort($cstArchivedStudents2015->EmailAddress, $bCtrl); // EmailAddress
$cstArchivedStudents2015->UpdateSort($cstArchivedStudents2015->BlockAccess, $bCtrl); // BlockAccess
$cstArchivedStudents2015->setStartRecordNumber(1); // Reset start position
}
}
// Load sort order parameters
function LoadSortOrder() {
global $cstArchivedStudents2015;
$sOrderBy = $cstArchivedStudents2015->getSessionOrderBy(); // Get ORDER BY from Session
if ($sOrderBy == "") {
if ($cstArchivedStudents2015->SqlOrderBy() <> "") {
$sOrderBy = $cstArchivedStudents2015->SqlOrderBy();
$cstArchivedStudents2015->setSessionOrderBy($sOrderBy);
}
}
}
// Reset command
// cmd=reset (Reset search parameters)
// cmd=resetall (Reset search and master/detail parameters)
// cmd=resetsort (Reset sort parameters)
function ResetCmd() {
global $cstArchivedStudents2015;
// Get reset command
if (@$_GET["cmd"] <> "") {
$sCmd = $_GET["cmd"];
// Reset search criteria
if (strtolower($sCmd) == "reset" || strtolower($sCmd) == "resetall")
$this->ResetSearchParms();
// Reset sorting order
if (strtolower($sCmd) == "resetsort") {
$sOrderBy = "";
$cstArchivedStudents2015->setSessionOrderBy($sOrderBy);
$cstArchivedStudents2015->FirstName->setSort("");
$cstArchivedStudents2015->Surname->setSort("");
$cstArchivedStudents2015->KnownAs->setSort("");
$cstArchivedStudents2015->Organisation->setSort("");
$cstArchivedStudents2015->StudentNumber->setSort("");
$cstArchivedStudents2015->Age->setSort("");
$cstArchivedStudents2015->Cellphone->setSort("");
$cstArchivedStudents2015->EmailAddress->setSort("");
$cstArchivedStudents2015->BlockAccess->setSort("");
}
// Reset start position
$this->lStartRec = 1;
$cstArchivedStudents2015->setStartRecordNumber($this->lStartRec);
}
}
// Set up list options
function SetupListOptions() {
global $Security, $cstArchivedStudents2015;
// "view"
$this->ListOptions->Add("view");
$item =& $this->ListOptions->Items["view"];
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->CanView();
$item->OnLeft = FALSE;
// "edit"
$this->ListOptions->Add("edit");
$item =& $this->ListOptions->Items["edit"];
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->CanEdit();
$item->OnLeft = FALSE;
// Call ListOptions_Load event
$this->ListOptions_Load();
if ($cstArchivedStudents2015->Export <> "" ||
$cstArchivedStudents2015->CurrentAction == "gridadd" ||
$cstArchivedStudents2015->CurrentAction == "gridedit")
$this->ListOptions->HideAllOptions();
}
// Render list options
function RenderListOptions() {
global $Security, $Language, $cstArchivedStudents2015;
$this->ListOptions->LoadDefault();
// "view"
$oListOpt =& $this->ListOptions->Items["view"];
if ($Security->CanView() && $oListOpt->Visible)
$oListOpt->Body = "<a href=\"" . $this->ViewUrl . "\">" . "<img src=\"images/view.gif\" alt=\"" . ew_HtmlEncode($Language->Phrase("ViewLink")) . "\" title=\"" . ew_HtmlEncode($Language->Phrase("ViewLink")) . "\" width=\"16\" height=\"16\" border=\"0\">" . "</a>";
// "edit"
$oListOpt =& $this->ListOptions->Items["edit"];
if ($Security->CanEdit() && $oListOpt->Visible) {
$oListOpt->Body = "<a href=\"" . $this->EditUrl . "\">" . "<img src=\"images/edit.gif\" alt=\"" . ew_HtmlEncode($Language->Phrase("EditLink")) . "\" title=\"" . ew_HtmlEncode($Language->Phrase("EditLink")) . "\" width=\"16\" height=\"16\" border=\"0\">" . "</a>";
}
$this->RenderListOptionsExt();
// Call ListOptions_Rendered event
$this->ListOptions_Rendered();
}
function RenderListOptionsExt() {
global $Security, $Language, $cstArchivedStudents2015;
}
// Set up starting record parameters
function SetUpStartRec() {
global $cstArchivedStudents2015;
if ($this->lDisplayRecs == 0)
return;
if ($this->IsPageRequest()) { // Validate request
if (@$_GET[EW_TABLE_START_REC] <> "") { // Check for "start" parameter
$this->lStartRec = $_GET[EW_TABLE_START_REC];
$cstArchivedStudents2015->setStartRecordNumber($this->lStartRec);
} elseif (@$_GET[EW_TABLE_PAGE_NO] <> "") {
$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];
if (is_numeric($this->nPageNo)) {
$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;
if ($this->lStartRec <= 0) {
$this->lStartRec = 1;
} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {
$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;
}
$cstArchivedStudents2015->setStartRecordNumber($this->lStartRec);
}
}
}
$this->lStartRec = $cstArchivedStudents2015->getStartRecordNumber();
// Check if correct start record counter
if (!is_numeric($this->lStartRec) || $this->lStartRec == "") { // Avoid invalid start record counter
$this->lStartRec = 1; // Reset start record counter
$cstArchivedStudents2015->setStartRecordNumber($this->lStartRec);
} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records
$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record
$cstArchivedStudents2015->setStartRecordNumber($this->lStartRec);
} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {
$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary
$cstArchivedStudents2015->setStartRecordNumber($this->lStartRec);
}
}
// Load basic search values
function LoadBasicSearchValues() {
global $cstArchivedStudents2015;
$cstArchivedStudents2015->BasicSearchKeyword = @$_GET[EW_TABLE_BASIC_SEARCH];
$cstArchivedStudents2015->BasicSearchType = @$_GET[EW_TABLE_BASIC_SEARCH_TYPE];
}
// Load recordset
function LoadRecordset($offset = -1, $rowcnt = -1) {
global $conn, $cstArchivedStudents2015;
// Call Recordset Selecting event
$cstArchivedStudents2015->Recordset_Selecting($cstArchivedStudents2015->CurrentFilter);
// Load List page SQL
$sSql = $cstArchivedStudents2015->SelectSQL();
if ($offset > -1 && $rowcnt > -1)
$sSql .= " LIMIT $offset, $rowcnt";
// Load recordset
$rs = ew_LoadRecordset($sSql);
// Call Recordset Selected event
$cstArchivedStudents2015->Recordset_Selected($rs);
return $rs;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $cstArchivedStudents2015;
$sFilter = $cstArchivedStudents2015->KeyFilter();
// Call Row Selecting event
$cstArchivedStudents2015->Row_Selecting($sFilter);
// Load SQL based on filter
$cstArchivedStudents2015->CurrentFilter = $sFilter;
$sSql = $cstArchivedStudents2015->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$cstArchivedStudents2015->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $cstArchivedStudents2015;
$cstArchivedStudents2015->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
$cstArchivedStudents2015->Title->setDbValue($rs->fields('Title'));
$cstArchivedStudents2015->FirstName->setDbValue($rs->fields('FirstName'));
$cstArchivedStudents2015->Surname->setDbValue($rs->fields('Surname'));
$cstArchivedStudents2015->KnownAs->setDbValue($rs->fields('KnownAs'));
$cstArchivedStudents2015->Organisation->setDbValue($rs->fields('Organisation'));
$cstArchivedStudents2015->OrganisationType->setDbValue($rs->fields('OrganisationType'));
$cstArchivedStudents2015->StudentNumber->setDbValue($rs->fields('StudentNumber'));
$cstArchivedStudents2015->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
$cstArchivedStudents2015->Project->setDbValue($rs->fields('Project'));
$cstArchivedStudents2015->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
$cstArchivedStudents2015->IDNumber->setDbValue($rs->fields('IDNumber'));
$cstArchivedStudents2015->ECSANumber->setDbValue($rs->fields('ECSANumber'));
$cstArchivedStudents2015->Age->setDbValue($rs->fields('Age'));
$cstArchivedStudents2015->HighestQual->setDbValue($rs->fields('HighestQual'));
$cstArchivedStudents2015->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
$cstArchivedStudents2015->Telephone->setDbValue($rs->fields('Telephone'));
$cstArchivedStudents2015->Cellphone->setDbValue($rs->fields('Cellphone'));
$cstArchivedStudents2015->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$cstArchivedStudents2015->HomeAddress->setDbValue($rs->fields('HomeAddress'));
$cstArchivedStudents2015->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$cstArchivedStudents2015->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$cstArchivedStudents2015->Designation->setDbValue($rs->fields('Designation'));
$cstArchivedStudents2015->Department->setDbValue($rs->fields('Department'));
$cstArchivedStudents2015->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
$cstArchivedStudents2015->VATNo->setDbValue($rs->fields('VATNo'));
$cstArchivedStudents2015->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
$cstArchivedStudents2015->CVFile->Upload->DbValue = $rs->fields('CVFile');
$cstArchivedStudents2015->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
$cstArchivedStudents2015->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
$cstArchivedStudents2015->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
$cstArchivedStudents2015->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
$cstArchivedStudents2015->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
$cstArchivedStudents2015->OrderNo->setDbValue($rs->fields('OrderNo'));
$cstArchivedStudents2015->BookedByName->setDbValue($rs->fields('BookedByName'));
$cstArchivedStudents2015->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
$cstArchivedStudents2015->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
$cstArchivedStudents2015->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
$cstArchivedStudents2015->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
$cstArchivedStudents2015->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
$cstArchivedStudents2015->WebUsername->setDbValue($rs->fields('WebUsername'));
$cstArchivedStudents2015->WebPassword->setDbValue($rs->fields('WebPassword'));
$cstArchivedStudents2015->MentorName->setDbValue($rs->fields('MentorName'));
$cstArchivedStudents2015->MentorDesig->setDbValue($rs->fields('MentorDesig'));
$cstArchivedStudents2015->MentorTel->setDbValue($rs->fields('MentorTel'));
$cstArchivedStudents2015->MentorCell->setDbValue($rs->fields('MentorCell'));
$cstArchivedStudents2015->MentorEmail->setDbValue($rs->fields('MentorEmail'));
$cstArchivedStudents2015->HRManagerName->setDbValue($rs->fields('HRManagerName'));
$cstArchivedStudents2015->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
$cstArchivedStudents2015->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
$cstArchivedStudents2015->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
$cstArchivedStudents2015->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
$cstArchivedStudents2015->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
$cstArchivedStudents2015->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$cstArchivedStudents2015->Archived->setDbValue($rs->fields('Archived'));
$cstArchivedStudents2015->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter');
$cstArchivedStudents2015->Achieved->setDbValue($rs->fields('Achieved'));
$cstArchivedStudents2015->IDFile->Upload->DbValue = $rs->fields('IDFile');
$cstArchivedStudents2015->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $cstArchivedStudents2015;
// Initialize URLs
$this->ViewUrl = $cstArchivedStudents2015->ViewUrl();
$this->EditUrl = $cstArchivedStudents2015->EditUrl();
$this->InlineEditUrl = $cstArchivedStudents2015->InlineEditUrl();
$this->CopyUrl = $cstArchivedStudents2015->CopyUrl();
$this->InlineCopyUrl = $cstArchivedStudents2015->InlineCopyUrl();
$this->DeleteUrl = $cstArchivedStudents2015->DeleteUrl();
// Call Row_Rendering event
$cstArchivedStudents2015->Row_Rendering();
// Common render codes for all row types
// FirstName
$cstArchivedStudents2015->FirstName->CellCssStyle = ""; $cstArchivedStudents2015->FirstName->CellCssClass = "";
$cstArchivedStudents2015->FirstName->CellAttrs = array(); $cstArchivedStudents2015->FirstName->ViewAttrs = array(); $cstArchivedStudents2015->FirstName->EditAttrs = array();
// Surname
$cstArchivedStudents2015->Surname->CellCssStyle = ""; $cstArchivedStudents2015->Surname->CellCssClass = "";
$cstArchivedStudents2015->Surname->CellAttrs = array(); $cstArchivedStudents2015->Surname->ViewAttrs = array(); $cstArchivedStudents2015->Surname->EditAttrs = array();
// KnownAs
$cstArchivedStudents2015->KnownAs->CellCssStyle = ""; $cstArchivedStudents2015->KnownAs->CellCssClass = "";
$cstArchivedStudents2015->KnownAs->CellAttrs = array(); $cstArchivedStudents2015->KnownAs->ViewAttrs = array(); $cstArchivedStudents2015->KnownAs->EditAttrs = array();
// Organisation
$cstArchivedStudents2015->Organisation->CellCssStyle = ""; $cstArchivedStudents2015->Organisation->CellCssClass = "";
$cstArchivedStudents2015->Organisation->CellAttrs = array(); $cstArchivedStudents2015->Organisation->ViewAttrs = array(); $cstArchivedStudents2015->Organisation->EditAttrs = array();
// StudentNumber
$cstArchivedStudents2015->StudentNumber->CellCssStyle = ""; $cstArchivedStudents2015->StudentNumber->CellCssClass = "";
$cstArchivedStudents2015->StudentNumber->CellAttrs = array(); $cstArchivedStudents2015->StudentNumber->ViewAttrs = array(); $cstArchivedStudents2015->StudentNumber->EditAttrs = array();
// Age
$cstArchivedStudents2015->Age->CellCssStyle = ""; $cstArchivedStudents2015->Age->CellCssClass = "";
$cstArchivedStudents2015->Age->CellAttrs = array(); $cstArchivedStudents2015->Age->ViewAttrs = array(); $cstArchivedStudents2015->Age->EditAttrs = array();
// Cellphone
$cstArchivedStudents2015->Cellphone->CellCssStyle = ""; $cstArchivedStudents2015->Cellphone->CellCssClass = "";
$cstArchivedStudents2015->Cellphone->CellAttrs = array(); $cstArchivedStudents2015->Cellphone->ViewAttrs = array(); $cstArchivedStudents2015->Cellphone->EditAttrs = array();
// EmailAddress
$cstArchivedStudents2015->EmailAddress->CellCssStyle = ""; $cstArchivedStudents2015->EmailAddress->CellCssClass = "";
$cstArchivedStudents2015->EmailAddress->CellAttrs = array(); $cstArchivedStudents2015->EmailAddress->ViewAttrs = array(); $cstArchivedStudents2015->EmailAddress->EditAttrs = array();
// BlockAccess
$cstArchivedStudents2015->BlockAccess->CellCssStyle = ""; $cstArchivedStudents2015->BlockAccess->CellCssClass = "";
$cstArchivedStudents2015->BlockAccess->CellAttrs = array(); $cstArchivedStudents2015->BlockAccess->ViewAttrs = array(); $cstArchivedStudents2015->BlockAccess->EditAttrs = array();
if ($cstArchivedStudents2015->RowType == EW_ROWTYPE_VIEW) { // View row
// Title
$cstArchivedStudents2015->Title->ViewValue = $cstArchivedStudents2015->Title->CurrentValue;
$cstArchivedStudents2015->Title->CssStyle = "";
$cstArchivedStudents2015->Title->CssClass = "";
$cstArchivedStudents2015->Title->ViewCustomAttributes = "";
// FirstName
$cstArchivedStudents2015->FirstName->ViewValue = $cstArchivedStudents2015->FirstName->CurrentValue;
$cstArchivedStudents2015->FirstName->CssStyle = "";
$cstArchivedStudents2015->FirstName->CssClass = "";
$cstArchivedStudents2015->FirstName->ViewCustomAttributes = "";
// Surname
$cstArchivedStudents2015->Surname->ViewValue = $cstArchivedStudents2015->Surname->CurrentValue;
$cstArchivedStudents2015->Surname->CssStyle = "";
$cstArchivedStudents2015->Surname->CssClass = "";
$cstArchivedStudents2015->Surname->ViewCustomAttributes = "";
// KnownAs
$cstArchivedStudents2015->KnownAs->ViewValue = $cstArchivedStudents2015->KnownAs->CurrentValue;
$cstArchivedStudents2015->KnownAs->CssStyle = "";
$cstArchivedStudents2015->KnownAs->CssClass = "";
$cstArchivedStudents2015->KnownAs->ViewCustomAttributes = "";
// Organisation
$cstArchivedStudents2015->Organisation->ViewValue = $cstArchivedStudents2015->Organisation->CurrentValue;
$cstArchivedStudents2015->Organisation->CssStyle = "";
$cstArchivedStudents2015->Organisation->CssClass = "";
$cstArchivedStudents2015->Organisation->ViewCustomAttributes = "";
// OrganisationType
$cstArchivedStudents2015->OrganisationType->ViewValue = $cstArchivedStudents2015->OrganisationType->CurrentValue;
$cstArchivedStudents2015->OrganisationType->CssStyle = "";
$cstArchivedStudents2015->OrganisationType->CssClass = "";
$cstArchivedStudents2015->OrganisationType->ViewCustomAttributes = "";
// StudentNumber
$cstArchivedStudents2015->StudentNumber->ViewValue = $cstArchivedStudents2015->StudentNumber->CurrentValue;
$cstArchivedStudents2015->StudentNumber->CssStyle = "";
$cstArchivedStudents2015->StudentNumber->CssClass = "";
$cstArchivedStudents2015->StudentNumber->ViewCustomAttributes = "";
// CCEFacilitatorID
if (strval($cstArchivedStudents2015->CCEFacilitatorID->CurrentValue) <> "") {
$sFilterWrk = "`FacilitatorID` = " . ew_AdjustSql($cstArchivedStudents2015->CCEFacilitatorID->CurrentValue) . "";
$sSqlWrk = "SELECT `FacilitatorName` FROM `CCEFacilitators`";
$sWhereWrk = "";
if ($sFilterWrk <> "") {
if ($sWhereWrk <> "") $sWhereWrk .= " AND ";
$sWhereWrk .= "(" . $sFilterWrk . ")";
}
if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
$sSqlWrk .= " ORDER BY `FacilitatorName`";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) { // Lookup values found
$cstArchivedStudents2015->CCEFacilitatorID->ViewValue = $rswrk->fields('FacilitatorName');
$rswrk->Close();
} else {
$cstArchivedStudents2015->CCEFacilitatorID->ViewValue = $cstArchivedStudents2015->CCEFacilitatorID->CurrentValue;
}
} else {
$cstArchivedStudents2015->CCEFacilitatorID->ViewValue = NULL;
}
$cstArchivedStudents2015->CCEFacilitatorID->CssStyle = "";
$cstArchivedStudents2015->CCEFacilitatorID->CssClass = "";
$cstArchivedStudents2015->CCEFacilitatorID->ViewCustomAttributes = "";
// Project
if (strval($cstArchivedStudents2015->Project->CurrentValue) <> "") {
$sFilterWrk = "`CCEProjectID` = " . ew_AdjustSql($cstArchivedStudents2015->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
$cstArchivedStudents2015->Project->ViewValue = $rswrk->fields('Project');
$rswrk->Close();
} else {
$cstArchivedStudents2015->Project->ViewValue = $cstArchivedStudents2015->Project->CurrentValue;
}
} else {
$cstArchivedStudents2015->Project->ViewValue = NULL;
}
$cstArchivedStudents2015->Project->CssStyle = "";
$cstArchivedStudents2015->Project->CssClass = "";
$cstArchivedStudents2015->Project->ViewCustomAttributes = "";
// ProjectDiscipline
$cstArchivedStudents2015->ProjectDiscipline->ViewValue = $cstArchivedStudents2015->ProjectDiscipline->CurrentValue;
$cstArchivedStudents2015->ProjectDiscipline->CssStyle = "";
$cstArchivedStudents2015->ProjectDiscipline->CssClass = "";
$cstArchivedStudents2015->ProjectDiscipline->ViewCustomAttributes = "";
// IDNumber
$cstArchivedStudents2015->IDNumber->ViewValue = $cstArchivedStudents2015->IDNumber->CurrentValue;
$cstArchivedStudents2015->IDNumber->CssStyle = "";
$cstArchivedStudents2015->IDNumber->CssClass = "";
$cstArchivedStudents2015->IDNumber->ViewCustomAttributes = "mso-number-format:General";
// ECSANumber
$cstArchivedStudents2015->ECSANumber->ViewValue = $cstArchivedStudents2015->ECSANumber->CurrentValue;
$cstArchivedStudents2015->ECSANumber->CssStyle = "";
$cstArchivedStudents2015->ECSANumber->CssClass = "";
$cstArchivedStudents2015->ECSANumber->ViewCustomAttributes = "";
// Age
$cstArchivedStudents2015->Age->ViewValue = $cstArchivedStudents2015->Age->CurrentValue;
$cstArchivedStudents2015->Age->CssStyle = "";
$cstArchivedStudents2015->Age->CssClass = "";
$cstArchivedStudents2015->Age->ViewCustomAttributes = "";
// HighestQual
$cstArchivedStudents2015->HighestQual->ViewValue = $cstArchivedStudents2015->HighestQual->CurrentValue;
$cstArchivedStudents2015->HighestQual->CssStyle = "";
$cstArchivedStudents2015->HighestQual->CssClass = "";
$cstArchivedStudents2015->HighestQual->ViewCustomAttributes = "";
// AreaDiscipline
$cstArchivedStudents2015->AreaDiscipline->ViewValue = $cstArchivedStudents2015->AreaDiscipline->CurrentValue;
$cstArchivedStudents2015->AreaDiscipline->CssStyle = "";
$cstArchivedStudents2015->AreaDiscipline->CssClass = "";
$cstArchivedStudents2015->AreaDiscipline->ViewCustomAttributes = "";
// Telephone
$cstArchivedStudents2015->Telephone->ViewValue = $cstArchivedStudents2015->Telephone->CurrentValue;
$cstArchivedStudents2015->Telephone->CssStyle = "";
$cstArchivedStudents2015->Telephone->CssClass = "";
$cstArchivedStudents2015->Telephone->ViewCustomAttributes = "mso-number-format:General";
// Cellphone
$cstArchivedStudents2015->Cellphone->ViewValue = $cstArchivedStudents2015->Cellphone->CurrentValue;
$cstArchivedStudents2015->Cellphone->CssStyle = "";
$cstArchivedStudents2015->Cellphone->CssClass = "";
$cstArchivedStudents2015->Cellphone->ViewCustomAttributes = "mso-number-format:General";
// EmailAddress
$cstArchivedStudents2015->EmailAddress->ViewValue = $cstArchivedStudents2015->EmailAddress->CurrentValue;
$cstArchivedStudents2015->EmailAddress->CssStyle = "";
$cstArchivedStudents2015->EmailAddress->CssClass = "";
$cstArchivedStudents2015->EmailAddress->ViewCustomAttributes = "";
// HomeAddress
$cstArchivedStudents2015->HomeAddress->ViewValue = $cstArchivedStudents2015->HomeAddress->CurrentValue;
$cstArchivedStudents2015->HomeAddress->CssStyle = "";
$cstArchivedStudents2015->HomeAddress->CssClass = "";
$cstArchivedStudents2015->HomeAddress->ViewCustomAttributes = "";
// WorkAddress
$cstArchivedStudents2015->WorkAddress->ViewValue = $cstArchivedStudents2015->WorkAddress->CurrentValue;
$cstArchivedStudents2015->WorkAddress->CssStyle = "";
$cstArchivedStudents2015->WorkAddress->CssClass = "";
$cstArchivedStudents2015->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$cstArchivedStudents2015->PostalAddress->ViewValue = $cstArchivedStudents2015->PostalAddress->CurrentValue;
$cstArchivedStudents2015->PostalAddress->CssStyle = "";
$cstArchivedStudents2015->PostalAddress->CssClass = "";
$cstArchivedStudents2015->PostalAddress->ViewCustomAttributes = "";
// Designation
$cstArchivedStudents2015->Designation->ViewValue = $cstArchivedStudents2015->Designation->CurrentValue;
$cstArchivedStudents2015->Designation->CssStyle = "";
$cstArchivedStudents2015->Designation->CssClass = "";
$cstArchivedStudents2015->Designation->ViewCustomAttributes = "";
// Department
$cstArchivedStudents2015->Department->ViewValue = $cstArchivedStudents2015->Department->CurrentValue;
$cstArchivedStudents2015->Department->CssStyle = "";
$cstArchivedStudents2015->Department->CssClass = "";
$cstArchivedStudents2015->Department->ViewCustomAttributes = "";
// CESAAccountNo
$cstArchivedStudents2015->CESAAccountNo->ViewValue = $cstArchivedStudents2015->CESAAccountNo->CurrentValue;
$cstArchivedStudents2015->CESAAccountNo->CssStyle = "";
$cstArchivedStudents2015->CESAAccountNo->CssClass = "";
$cstArchivedStudents2015->CESAAccountNo->ViewCustomAttributes = "";
// VATNo
$cstArchivedStudents2015->VATNo->ViewValue = $cstArchivedStudents2015->VATNo->CurrentValue;
$cstArchivedStudents2015->VATNo->CssStyle = "";
$cstArchivedStudents2015->VATNo->CssClass = "";
$cstArchivedStudents2015->VATNo->ViewCustomAttributes = "mso-number-format:General";
// DietaryRequirements
$cstArchivedStudents2015->DietaryRequirements->ViewValue = $cstArchivedStudents2015->DietaryRequirements->CurrentValue;
$cstArchivedStudents2015->DietaryRequirements->CssStyle = "";
$cstArchivedStudents2015->DietaryRequirements->CssClass = "";
$cstArchivedStudents2015->DietaryRequirements->ViewCustomAttributes = "";
// CVFile
if (!ew_Empty($cstArchivedStudents2015->CVFile->Upload->DbValue)) {
$cstArchivedStudents2015->CVFile->ViewValue = $cstArchivedStudents2015->CVFile->Upload->DbValue;
} else {
$cstArchivedStudents2015->CVFile->ViewValue = "";
}
$cstArchivedStudents2015->CVFile->CssStyle = "";
$cstArchivedStudents2015->CVFile->CssClass = "";
$cstArchivedStudents2015->CVFile->ViewCustomAttributes = "";
// QualCertificate1
if (!ew_Empty($cstArchivedStudents2015->QualCertificate1->Upload->DbValue)) {
$cstArchivedStudents2015->QualCertificate1->ViewValue = $cstArchivedStudents2015->QualCertificate1->Upload->DbValue;
} else {
$cstArchivedStudents2015->QualCertificate1->ViewValue = "";
}
$cstArchivedStudents2015->QualCertificate1->CssStyle = "";
$cstArchivedStudents2015->QualCertificate1->CssClass = "";
$cstArchivedStudents2015->QualCertificate1->ViewCustomAttributes = "";
// QualCertificate2
if (!ew_Empty($cstArchivedStudents2015->QualCertificate2->Upload->DbValue)) {
$cstArchivedStudents2015->QualCertificate2->ViewValue = $cstArchivedStudents2015->QualCertificate2->Upload->DbValue;
} else {
$cstArchivedStudents2015->QualCertificate2->ViewValue = "";
}
$cstArchivedStudents2015->QualCertificate2->CssStyle = "";
$cstArchivedStudents2015->QualCertificate2->CssClass = "";
$cstArchivedStudents2015->QualCertificate2->ViewCustomAttributes = "";
// QualCertificate3
if (!ew_Empty($cstArchivedStudents2015->QualCertificate3->Upload->DbValue)) {
$cstArchivedStudents2015->QualCertificate3->ViewValue = $cstArchivedStudents2015->QualCertificate3->Upload->DbValue;
} else {
$cstArchivedStudents2015->QualCertificate3->ViewValue = "";
}
$cstArchivedStudents2015->QualCertificate3->CssStyle = "";
$cstArchivedStudents2015->QualCertificate3->CssClass = "";
$cstArchivedStudents2015->QualCertificate3->ViewCustomAttributes = "";
// MemorandumFile
if (!ew_Empty($cstArchivedStudents2015->MemorandumFile->Upload->DbValue)) {
$cstArchivedStudents2015->MemorandumFile->ViewValue = $cstArchivedStudents2015->MemorandumFile->Upload->DbValue;
} else {
$cstArchivedStudents2015->MemorandumFile->ViewValue = "";
}
$cstArchivedStudents2015->MemorandumFile->CssStyle = "";
$cstArchivedStudents2015->MemorandumFile->CssClass = "";
$cstArchivedStudents2015->MemorandumFile->ViewCustomAttributes = "";
// AgreementFile
if (!ew_Empty($cstArchivedStudents2015->AgreementFile->Upload->DbValue)) {
$cstArchivedStudents2015->AgreementFile->ViewValue = $cstArchivedStudents2015->AgreementFile->Upload->DbValue;
} else {
$cstArchivedStudents2015->AgreementFile->ViewValue = "";
}
$cstArchivedStudents2015->AgreementFile->CssStyle = "";
$cstArchivedStudents2015->AgreementFile->CssClass = "";
$cstArchivedStudents2015->AgreementFile->ViewCustomAttributes = "";
// OrderNo
$cstArchivedStudents2015->OrderNo->ViewValue = $cstArchivedStudents2015->OrderNo->CurrentValue;
$cstArchivedStudents2015->OrderNo->CssStyle = "";
$cstArchivedStudents2015->OrderNo->CssClass = "";
$cstArchivedStudents2015->OrderNo->ViewCustomAttributes = "";
// BookedByName
$cstArchivedStudents2015->BookedByName->ViewValue = $cstArchivedStudents2015->BookedByName->CurrentValue;
$cstArchivedStudents2015->BookedByName->CssStyle = "";
$cstArchivedStudents2015->BookedByName->CssClass = "";
$cstArchivedStudents2015->BookedByName->ViewCustomAttributes = "";
// BookedByDesignation
$cstArchivedStudents2015->BookedByDesignation->ViewValue = $cstArchivedStudents2015->BookedByDesignation->CurrentValue;
$cstArchivedStudents2015->BookedByDesignation->CssStyle = "";
$cstArchivedStudents2015->BookedByDesignation->CssClass = "";
$cstArchivedStudents2015->BookedByDesignation->ViewCustomAttributes = "";
// BookedByTelNo
$cstArchivedStudents2015->BookedByTelNo->ViewValue = $cstArchivedStudents2015->BookedByTelNo->CurrentValue;
$cstArchivedStudents2015->BookedByTelNo->CssStyle = "";
$cstArchivedStudents2015->BookedByTelNo->CssClass = "";
$cstArchivedStudents2015->BookedByTelNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByFaxNo
$cstArchivedStudents2015->BookedByFaxNo->ViewValue = $cstArchivedStudents2015->BookedByFaxNo->CurrentValue;
$cstArchivedStudents2015->BookedByFaxNo->CssStyle = "";
$cstArchivedStudents2015->BookedByFaxNo->CssClass = "";
$cstArchivedStudents2015->BookedByFaxNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByCellNo
$cstArchivedStudents2015->BookedByCellNo->ViewValue = $cstArchivedStudents2015->BookedByCellNo->CurrentValue;
$cstArchivedStudents2015->BookedByCellNo->CssStyle = "";
$cstArchivedStudents2015->BookedByCellNo->CssClass = "";
$cstArchivedStudents2015->BookedByCellNo->ViewCustomAttributes = "mso-number-format:General";
// BookedByEmail
$cstArchivedStudents2015->BookedByEmail->ViewValue = $cstArchivedStudents2015->BookedByEmail->CurrentValue;
$cstArchivedStudents2015->BookedByEmail->CssStyle = "";
$cstArchivedStudents2015->BookedByEmail->CssClass = "";
$cstArchivedStudents2015->BookedByEmail->ViewCustomAttributes = "";
// WebUsername
$cstArchivedStudents2015->WebUsername->ViewValue = $cstArchivedStudents2015->WebUsername->CurrentValue;
$cstArchivedStudents2015->WebUsername->CssStyle = "";
$cstArchivedStudents2015->WebUsername->CssClass = "";
$cstArchivedStudents2015->WebUsername->ViewCustomAttributes = "";
// WebPassword
$cstArchivedStudents2015->WebPassword->ViewValue = $cstArchivedStudents2015->WebPassword->CurrentValue;
$cstArchivedStudents2015->WebPassword->CssStyle = "";
$cstArchivedStudents2015->WebPassword->CssClass = "";
$cstArchivedStudents2015->WebPassword->ViewCustomAttributes = "";
// MentorName
$cstArchivedStudents2015->MentorName->ViewValue = $cstArchivedStudents2015->MentorName->CurrentValue;
$cstArchivedStudents2015->MentorName->CssStyle = "";
$cstArchivedStudents2015->MentorName->CssClass = "";
$cstArchivedStudents2015->MentorName->ViewCustomAttributes = "";
// MentorDesig
$cstArchivedStudents2015->MentorDesig->ViewValue = $cstArchivedStudents2015->MentorDesig->CurrentValue;
$cstArchivedStudents2015->MentorDesig->CssStyle = "";
$cstArchivedStudents2015->MentorDesig->CssClass = "";
$cstArchivedStudents2015->MentorDesig->ViewCustomAttributes = "";
// MentorTel
$cstArchivedStudents2015->MentorTel->ViewValue = $cstArchivedStudents2015->MentorTel->CurrentValue;
$cstArchivedStudents2015->MentorTel->CssStyle = "";
$cstArchivedStudents2015->MentorTel->CssClass = "";
$cstArchivedStudents2015->MentorTel->ViewCustomAttributes = "";
// MentorCell
$cstArchivedStudents2015->MentorCell->ViewValue = $cstArchivedStudents2015->MentorCell->CurrentValue;
$cstArchivedStudents2015->MentorCell->CssStyle = "";
$cstArchivedStudents2015->MentorCell->CssClass = "";
$cstArchivedStudents2015->MentorCell->ViewCustomAttributes = "";
// MentorEmail
$cstArchivedStudents2015->MentorEmail->ViewValue = $cstArchivedStudents2015->MentorEmail->CurrentValue;
$cstArchivedStudents2015->MentorEmail->CssStyle = "";
$cstArchivedStudents2015->MentorEmail->CssClass = "";
$cstArchivedStudents2015->MentorEmail->ViewCustomAttributes = "";
// HRManagerName
$cstArchivedStudents2015->HRManagerName->ViewValue = $cstArchivedStudents2015->HRManagerName->CurrentValue;
$cstArchivedStudents2015->HRManagerName->CssStyle = "";
$cstArchivedStudents2015->HRManagerName->CssClass = "";
$cstArchivedStudents2015->HRManagerName->ViewCustomAttributes = "";
// HRManagerDesignation
$cstArchivedStudents2015->HRManagerDesignation->ViewValue = $cstArchivedStudents2015->HRManagerDesignation->CurrentValue;
$cstArchivedStudents2015->HRManagerDesignation->CssStyle = "";
$cstArchivedStudents2015->HRManagerDesignation->CssClass = "";
$cstArchivedStudents2015->HRManagerDesignation->ViewCustomAttributes = "";
// HRManagerTelNo
$cstArchivedStudents2015->HRManagerTelNo->ViewValue = $cstArchivedStudents2015->HRManagerTelNo->CurrentValue;
$cstArchivedStudents2015->HRManagerTelNo->CssStyle = "";
$cstArchivedStudents2015->HRManagerTelNo->CssClass = "";
$cstArchivedStudents2015->HRManagerTelNo->ViewCustomAttributes = "";
// HRManagerCellNo
$cstArchivedStudents2015->HRManagerCellNo->ViewValue = $cstArchivedStudents2015->HRManagerCellNo->CurrentValue;
$cstArchivedStudents2015->HRManagerCellNo->CssStyle = "";
$cstArchivedStudents2015->HRManagerCellNo->CssClass = "";
$cstArchivedStudents2015->HRManagerCellNo->ViewCustomAttributes = "";
// HRManagerEmail
$cstArchivedStudents2015->HRManagerEmail->ViewValue = $cstArchivedStudents2015->HRManagerEmail->CurrentValue;
$cstArchivedStudents2015->HRManagerEmail->CssStyle = "";
$cstArchivedStudents2015->HRManagerEmail->CssClass = "";
$cstArchivedStudents2015->HRManagerEmail->ViewCustomAttributes = "";
// LengthEmploy
$cstArchivedStudents2015->LengthEmploy->ViewValue = $cstArchivedStudents2015->LengthEmploy->CurrentValue;
$cstArchivedStudents2015->LengthEmploy->CssStyle = "";
$cstArchivedStudents2015->LengthEmploy->CssClass = "";
$cstArchivedStudents2015->LengthEmploy->ViewCustomAttributes = "";
// BlockAccess
if (strval($cstArchivedStudents2015->BlockAccess->CurrentValue) <> "") {
switch ($cstArchivedStudents2015->BlockAccess->CurrentValue) {
case "y":
$cstArchivedStudents2015->BlockAccess->ViewValue = "Yes";
break;
case "n":
$cstArchivedStudents2015->BlockAccess->ViewValue = "No";
break;
default:
$cstArchivedStudents2015->BlockAccess->ViewValue = $cstArchivedStudents2015->BlockAccess->CurrentValue;
}
} else {
$cstArchivedStudents2015->BlockAccess->ViewValue = NULL;
}
$cstArchivedStudents2015->BlockAccess->CssStyle = "";
$cstArchivedStudents2015->BlockAccess->CssClass = "";
$cstArchivedStudents2015->BlockAccess->ViewCustomAttributes = "";
// Archived
if (strval($cstArchivedStudents2015->Archived->CurrentValue) <> "") {
$cstArchivedStudents2015->Archived->ViewValue = "";
$arwrk = explode(",", strval($cstArchivedStudents2015->Archived->CurrentValue));
for ($ari = 0; $ari < count($arwrk); $ari++) {
switch (trim($arwrk[$ari])) {
case "1":
$cstArchivedStudents2015->Archived->ViewValue .= "Yes";
break;
default:
$cstArchivedStudents2015->Archived->ViewValue .= trim($arwrk[$ari]);
}
if ($ari < count($arwrk)-1) $cstArchivedStudents2015->Archived->ViewValue .= ew_ViewOptionSeparator($ari);
}
} else {
$cstArchivedStudents2015->Archived->ViewValue = NULL;
}
$cstArchivedStudents2015->Archived->CssStyle = "";
$cstArchivedStudents2015->Archived->CssClass = "";
$cstArchivedStudents2015->Archived->ViewCustomAttributes = "";
// ResultLetter
if (!ew_Empty($cstArchivedStudents2015->ResultLetter->Upload->DbValue)) {
$cstArchivedStudents2015->ResultLetter->ViewValue = $cstArchivedStudents2015->ResultLetter->Upload->DbValue;
} else {
$cstArchivedStudents2015->ResultLetter->ViewValue = "";
}
$cstArchivedStudents2015->ResultLetter->CssStyle = "";
$cstArchivedStudents2015->ResultLetter->CssClass = "";
$cstArchivedStudents2015->ResultLetter->ViewCustomAttributes = "";
// Achieved
if (strval($cstArchivedStudents2015->Achieved->CurrentValue) <> "") {
$cstArchivedStudents2015->Achieved->ViewValue = "";
$arwrk = explode(",", strval($cstArchivedStudents2015->Achieved->CurrentValue));
for ($ari = 0; $ari < count($arwrk); $ari++) {
switch (trim($arwrk[$ari])) {
case "1":
$cstArchivedStudents2015->Achieved->ViewValue .= "Yes";
break;
default:
$cstArchivedStudents2015->Achieved->ViewValue .= trim($arwrk[$ari]);
}
if ($ari < count($arwrk)-1) $cstArchivedStudents2015->Achieved->ViewValue .= ew_ViewOptionSeparator($ari);
}
} else {
$cstArchivedStudents2015->Achieved->ViewValue = NULL;
}
$cstArchivedStudents2015->Achieved->CssStyle = "";
$cstArchivedStudents2015->Achieved->CssClass = "";
$cstArchivedStudents2015->Achieved->ViewCustomAttributes = "";
// IDFile
if (!ew_Empty($cstArchivedStudents2015->IDFile->Upload->DbValue)) {
$cstArchivedStudents2015->IDFile->ViewValue = $cstArchivedStudents2015->IDFile->Upload->DbValue;
} else {
$cstArchivedStudents2015->IDFile->ViewValue = "";
}
$cstArchivedStudents2015->IDFile->CssStyle = "";
$cstArchivedStudents2015->IDFile->CssClass = "";
$cstArchivedStudents2015->IDFile->ViewCustomAttributes = "";
// FirstName
$cstArchivedStudents2015->FirstName->HrefValue = "";
$cstArchivedStudents2015->FirstName->TooltipValue = "";
// Surname
$cstArchivedStudents2015->Surname->HrefValue = "";
$cstArchivedStudents2015->Surname->TooltipValue = "";
// KnownAs
$cstArchivedStudents2015->KnownAs->HrefValue = "";
$cstArchivedStudents2015->KnownAs->TooltipValue = "";
// Organisation
$cstArchivedStudents2015->Organisation->HrefValue = "";
$cstArchivedStudents2015->Organisation->TooltipValue = "";
// StudentNumber
$cstArchivedStudents2015->StudentNumber->HrefValue = "";
$cstArchivedStudents2015->StudentNumber->TooltipValue = "";
// Age
$cstArchivedStudents2015->Age->HrefValue = "";
$cstArchivedStudents2015->Age->TooltipValue = "";
// Cellphone
$cstArchivedStudents2015->Cellphone->HrefValue = "";
$cstArchivedStudents2015->Cellphone->TooltipValue = "";
// EmailAddress
$cstArchivedStudents2015->EmailAddress->HrefValue = "";
$cstArchivedStudents2015->EmailAddress->TooltipValue = "";
// BlockAccess
$cstArchivedStudents2015->BlockAccess->HrefValue = "";
$cstArchivedStudents2015->BlockAccess->TooltipValue = "";
}
// Call Row Rendered event
if ($cstArchivedStudents2015->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$cstArchivedStudents2015->Row_Rendered();
}
// Export data in HTML/CSV/Word/Excel/XML/Email format
function ExportData() {
global $cstArchivedStudents2015;
$utf8 = FALSE;
$bSelectLimit = EW_SELECT_LIMIT;
// Load recordset
if ($bSelectLimit) {
$this->lTotalRecs = $cstArchivedStudents2015->SelectRecordCount();
} else {
if ($rs = $this->LoadRecordset())
$this->lTotalRecs = $rs->RecordCount();
}
$this->lStartRec = 1;
// Export all
if ($cstArchivedStudents2015->ExportAll) {
$this->lDisplayRecs = $this->lTotalRecs;
$this->lStopRec = $this->lTotalRecs;
} else { // Export one page only
$this->SetUpStartRec(); // Set up start record position
// Set the last record to display
if ($this->lDisplayRecs < 0) {
$this->lStopRec = $this->lTotalRecs;
} else {
$this->lStopRec = $this->lStartRec + $this->lDisplayRecs - 1;
}
}
if ($bSelectLimit)
$rs = $this->LoadRecordset($this->lStartRec-1, $this->lDisplayRecs);
if (!$rs) {
header("Content-Type:"); // Remove header
header("Content-Disposition:");
$this->ShowMessage();
return;
}
if ($cstArchivedStudents2015->Export == "xml") {
$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
$XmlDoc->AddRoot();
} else {
$ExportDoc = new cExportDocument($cstArchivedStudents2015, "h");
$ExportDoc->ExportHeader();
if ($ExportDoc->Horizontal) { // Horizontal format, write header
$ExportDoc->BeginExportRow();
$ExportDoc->ExportCaption($cstArchivedStudents2015->Title);
$ExportDoc->ExportCaption($cstArchivedStudents2015->FirstName);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Surname);
$ExportDoc->ExportCaption($cstArchivedStudents2015->KnownAs);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Organisation);
$ExportDoc->ExportCaption($cstArchivedStudents2015->OrganisationType);
$ExportDoc->ExportCaption($cstArchivedStudents2015->StudentNumber);
$ExportDoc->ExportCaption($cstArchivedStudents2015->CCEFacilitatorID);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Project);
$ExportDoc->ExportCaption($cstArchivedStudents2015->ProjectDiscipline);
$ExportDoc->ExportCaption($cstArchivedStudents2015->IDNumber);
$ExportDoc->ExportCaption($cstArchivedStudents2015->ECSANumber);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Age);
$ExportDoc->ExportCaption($cstArchivedStudents2015->HighestQual);
$ExportDoc->ExportCaption($cstArchivedStudents2015->AreaDiscipline);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Telephone);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Cellphone);
$ExportDoc->ExportCaption($cstArchivedStudents2015->EmailAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2015->HomeAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2015->WorkAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2015->PostalAddress);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Designation);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Department);
$ExportDoc->ExportCaption($cstArchivedStudents2015->CESAAccountNo);
$ExportDoc->ExportCaption($cstArchivedStudents2015->VATNo);
$ExportDoc->ExportCaption($cstArchivedStudents2015->DietaryRequirements);
$ExportDoc->ExportCaption($cstArchivedStudents2015->CVFile);
$ExportDoc->ExportCaption($cstArchivedStudents2015->QualCertificate1);
$ExportDoc->ExportCaption($cstArchivedStudents2015->QualCertificate2);
$ExportDoc->ExportCaption($cstArchivedStudents2015->QualCertificate3);
$ExportDoc->ExportCaption($cstArchivedStudents2015->MemorandumFile);
$ExportDoc->ExportCaption($cstArchivedStudents2015->AgreementFile);
$ExportDoc->ExportCaption($cstArchivedStudents2015->OrderNo);
$ExportDoc->ExportCaption($cstArchivedStudents2015->BookedByName);
$ExportDoc->ExportCaption($cstArchivedStudents2015->BookedByDesignation);
$ExportDoc->ExportCaption($cstArchivedStudents2015->BookedByTelNo);
$ExportDoc->ExportCaption($cstArchivedStudents2015->BookedByFaxNo);
$ExportDoc->ExportCaption($cstArchivedStudents2015->BookedByCellNo);
$ExportDoc->ExportCaption($cstArchivedStudents2015->BookedByEmail);
$ExportDoc->ExportCaption($cstArchivedStudents2015->WebUsername);
$ExportDoc->ExportCaption($cstArchivedStudents2015->WebPassword);
$ExportDoc->ExportCaption($cstArchivedStudents2015->MentorName);
$ExportDoc->ExportCaption($cstArchivedStudents2015->MentorDesig);
$ExportDoc->ExportCaption($cstArchivedStudents2015->MentorTel);
$ExportDoc->ExportCaption($cstArchivedStudents2015->MentorCell);
$ExportDoc->ExportCaption($cstArchivedStudents2015->MentorEmail);
$ExportDoc->ExportCaption($cstArchivedStudents2015->HRManagerName);
$ExportDoc->ExportCaption($cstArchivedStudents2015->HRManagerDesignation);
$ExportDoc->ExportCaption($cstArchivedStudents2015->HRManagerTelNo);
$ExportDoc->ExportCaption($cstArchivedStudents2015->HRManagerCellNo);
$ExportDoc->ExportCaption($cstArchivedStudents2015->HRManagerEmail);
$ExportDoc->ExportCaption($cstArchivedStudents2015->LengthEmploy);
$ExportDoc->ExportCaption($cstArchivedStudents2015->BlockAccess);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Archived);
$ExportDoc->ExportCaption($cstArchivedStudents2015->ResultLetter);
$ExportDoc->ExportCaption($cstArchivedStudents2015->Achieved);
$ExportDoc->ExportCaption($cstArchivedStudents2015->IDFile);
$ExportDoc->EndExportRow();
}
}
// Move to first record
$this->lRecCnt = $this->lStartRec - 1;
if (!$rs->EOF) {
$rs->MoveFirst();
if (!$bSelectLimit && $this->lStartRec > 1)
$rs->Move($this->lStartRec - 1);
}
while (!$rs->EOF && $this->lRecCnt < $this->lStopRec) {
$this->lRecCnt++;
if (intval($this->lRecCnt) >= intval($this->lStartRec)) {
$this->LoadRowValues($rs);
// Render row
$cstArchivedStudents2015->CssClass = "";
$cstArchivedStudents2015->CssStyle = "";
$cstArchivedStudents2015->RowType = EW_ROWTYPE_VIEW; // Render view
$this->RenderRow();
if ($cstArchivedStudents2015->Export == "xml") {
$XmlDoc->AddRow();
$XmlDoc->AddField('Title', $cstArchivedStudents2015->Title->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('FirstName', $cstArchivedStudents2015->FirstName->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Surname', $cstArchivedStudents2015->Surname->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('KnownAs', $cstArchivedStudents2015->KnownAs->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Organisation', $cstArchivedStudents2015->Organisation->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('OrganisationType', $cstArchivedStudents2015->OrganisationType->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('StudentNumber', $cstArchivedStudents2015->StudentNumber->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('CCEFacilitatorID', $cstArchivedStudents2015->CCEFacilitatorID->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Project', $cstArchivedStudents2015->Project->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('ProjectDiscipline', $cstArchivedStudents2015->ProjectDiscipline->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('IDNumber', $cstArchivedStudents2015->IDNumber->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('ECSANumber', $cstArchivedStudents2015->ECSANumber->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Age', $cstArchivedStudents2015->Age->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('HighestQual', $cstArchivedStudents2015->HighestQual->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('AreaDiscipline', $cstArchivedStudents2015->AreaDiscipline->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Telephone', $cstArchivedStudents2015->Telephone->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Cellphone', $cstArchivedStudents2015->Cellphone->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('EmailAddress', $cstArchivedStudents2015->EmailAddress->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('HomeAddress', $cstArchivedStudents2015->HomeAddress->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('WorkAddress', $cstArchivedStudents2015->WorkAddress->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('PostalAddress', $cstArchivedStudents2015->PostalAddress->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Designation', $cstArchivedStudents2015->Designation->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Department', $cstArchivedStudents2015->Department->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('CESAAccountNo', $cstArchivedStudents2015->CESAAccountNo->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('VATNo', $cstArchivedStudents2015->VATNo->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('DietaryRequirements', $cstArchivedStudents2015->DietaryRequirements->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('CVFile', $cstArchivedStudents2015->CVFile->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate1', $cstArchivedStudents2015->QualCertificate1->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate2', $cstArchivedStudents2015->QualCertificate2->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('QualCertificate3', $cstArchivedStudents2015->QualCertificate3->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('MemorandumFile', $cstArchivedStudents2015->MemorandumFile->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('AgreementFile', $cstArchivedStudents2015->AgreementFile->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('OrderNo', $cstArchivedStudents2015->OrderNo->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('BookedByName', $cstArchivedStudents2015->BookedByName->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('BookedByDesignation', $cstArchivedStudents2015->BookedByDesignation->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('BookedByTelNo', $cstArchivedStudents2015->BookedByTelNo->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('BookedByFaxNo', $cstArchivedStudents2015->BookedByFaxNo->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('BookedByCellNo', $cstArchivedStudents2015->BookedByCellNo->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('BookedByEmail', $cstArchivedStudents2015->BookedByEmail->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('WebUsername', $cstArchivedStudents2015->WebUsername->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('WebPassword', $cstArchivedStudents2015->WebPassword->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('MentorName', $cstArchivedStudents2015->MentorName->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('MentorDesig', $cstArchivedStudents2015->MentorDesig->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('MentorTel', $cstArchivedStudents2015->MentorTel->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('MentorCell', $cstArchivedStudents2015->MentorCell->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('MentorEmail', $cstArchivedStudents2015->MentorEmail->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('HRManagerName', $cstArchivedStudents2015->HRManagerName->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('HRManagerDesignation', $cstArchivedStudents2015->HRManagerDesignation->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('HRManagerTelNo', $cstArchivedStudents2015->HRManagerTelNo->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('HRManagerCellNo', $cstArchivedStudents2015->HRManagerCellNo->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('HRManagerEmail', $cstArchivedStudents2015->HRManagerEmail->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('LengthEmploy', $cstArchivedStudents2015->LengthEmploy->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('BlockAccess', $cstArchivedStudents2015->BlockAccess->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Archived', $cstArchivedStudents2015->Archived->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('ResultLetter', $cstArchivedStudents2015->ResultLetter->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('Achieved', $cstArchivedStudents2015->Achieved->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
$XmlDoc->AddField('IDFile', $cstArchivedStudents2015->IDFile->ExportValue($cstArchivedStudents2015->Export, $cstArchivedStudents2015->ExportOriginalValue));
} else {
$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
$ExportDoc->ExportField($cstArchivedStudents2015->Title);
$ExportDoc->ExportField($cstArchivedStudents2015->FirstName);
$ExportDoc->ExportField($cstArchivedStudents2015->Surname);
$ExportDoc->ExportField($cstArchivedStudents2015->KnownAs);
$ExportDoc->ExportField($cstArchivedStudents2015->Organisation);
$ExportDoc->ExportField($cstArchivedStudents2015->OrganisationType);
$ExportDoc->ExportField($cstArchivedStudents2015->StudentNumber);
$ExportDoc->ExportField($cstArchivedStudents2015->CCEFacilitatorID);
$ExportDoc->ExportField($cstArchivedStudents2015->Project);
$ExportDoc->ExportField($cstArchivedStudents2015->ProjectDiscipline);
$ExportDoc->ExportField($cstArchivedStudents2015->IDNumber);
$ExportDoc->ExportField($cstArchivedStudents2015->ECSANumber);
$ExportDoc->ExportField($cstArchivedStudents2015->Age);
$ExportDoc->ExportField($cstArchivedStudents2015->HighestQual);
$ExportDoc->ExportField($cstArchivedStudents2015->AreaDiscipline);
$ExportDoc->ExportField($cstArchivedStudents2015->Telephone);
$ExportDoc->ExportField($cstArchivedStudents2015->Cellphone);
$ExportDoc->ExportField($cstArchivedStudents2015->EmailAddress);
$ExportDoc->ExportField($cstArchivedStudents2015->HomeAddress);
$ExportDoc->ExportField($cstArchivedStudents2015->WorkAddress);
$ExportDoc->ExportField($cstArchivedStudents2015->PostalAddress);
$ExportDoc->ExportField($cstArchivedStudents2015->Designation);
$ExportDoc->ExportField($cstArchivedStudents2015->Department);
$ExportDoc->ExportField($cstArchivedStudents2015->CESAAccountNo);
$ExportDoc->ExportField($cstArchivedStudents2015->VATNo);
$ExportDoc->ExportField($cstArchivedStudents2015->DietaryRequirements);
$ExportDoc->ExportField($cstArchivedStudents2015->CVFile);
$ExportDoc->ExportField($cstArchivedStudents2015->QualCertificate1);
$ExportDoc->ExportField($cstArchivedStudents2015->QualCertificate2);
$ExportDoc->ExportField($cstArchivedStudents2015->QualCertificate3);
$ExportDoc->ExportField($cstArchivedStudents2015->MemorandumFile);
$ExportDoc->ExportField($cstArchivedStudents2015->AgreementFile);
$ExportDoc->ExportField($cstArchivedStudents2015->OrderNo);
$ExportDoc->ExportField($cstArchivedStudents2015->BookedByName);
$ExportDoc->ExportField($cstArchivedStudents2015->BookedByDesignation);
$ExportDoc->ExportField($cstArchivedStudents2015->BookedByTelNo);
$ExportDoc->ExportField($cstArchivedStudents2015->BookedByFaxNo);
$ExportDoc->ExportField($cstArchivedStudents2015->BookedByCellNo);
$ExportDoc->ExportField($cstArchivedStudents2015->BookedByEmail);
$ExportDoc->ExportField($cstArchivedStudents2015->WebUsername);
$ExportDoc->ExportField($cstArchivedStudents2015->WebPassword);
$ExportDoc->ExportField($cstArchivedStudents2015->MentorName);
$ExportDoc->ExportField($cstArchivedStudents2015->MentorDesig);
$ExportDoc->ExportField($cstArchivedStudents2015->MentorTel);
$ExportDoc->ExportField($cstArchivedStudents2015->MentorCell);
$ExportDoc->ExportField($cstArchivedStudents2015->MentorEmail);
$ExportDoc->ExportField($cstArchivedStudents2015->HRManagerName);
$ExportDoc->ExportField($cstArchivedStudents2015->HRManagerDesignation);
$ExportDoc->ExportField($cstArchivedStudents2015->HRManagerTelNo);
$ExportDoc->ExportField($cstArchivedStudents2015->HRManagerCellNo);
$ExportDoc->ExportField($cstArchivedStudents2015->HRManagerEmail);
$ExportDoc->ExportField($cstArchivedStudents2015->LengthEmploy);
$ExportDoc->ExportField($cstArchivedStudents2015->BlockAccess);
$ExportDoc->ExportField($cstArchivedStudents2015->Archived);
$ExportDoc->ExportField($cstArchivedStudents2015->ResultLetter);
$ExportDoc->ExportField($cstArchivedStudents2015->Achieved);
$ExportDoc->ExportField($cstArchivedStudents2015->IDFile);
$ExportDoc->EndExportRow();
}
}
$rs->MoveNext();
}
if ($cstArchivedStudents2015->Export <> "xml")
$ExportDoc->ExportFooter();
// Close recordset
$rs->Close();
// Clean output buffer
if (!EW_DEBUG_ENABLED && ob_get_length())
ob_end_clean();
// Write BOM if utf-8
if ($utf8 && !in_array($cstArchivedStudents2015->Export, array("email", "xml")))
echo "\xEF\xBB\xBF";
// Write debug message if enabled
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
// Output data
if ($cstArchivedStudents2015->Export == "xml") {
header("Content-Type: text/xml");
echo $XmlDoc->XML();
} elseif ($cstArchivedStudents2015->Export == "email") {
$this->ExportEmail($ExportDoc->Text);
$this->Page_Terminate($cstArchivedStudents2015->ExportReturnUrl());
} else {
echo $ExportDoc->Text;
}
}
// Export email
function ExportEmail($EmailContent) {
global $Language, $cstArchivedStudents2015;
$sSender = @$_GET["sender"];
$sRecipient = @$_GET["recipient"];
$sCc = @$_GET["cc"];
$sBcc = @$_GET["bcc"];
$sContentType = @$_GET["contenttype"];
// Subject
$sSubject = ew_StripSlashes(@$_GET["subject"]);
$sEmailSubject = $sSubject;
// Message
$sContent = ew_StripSlashes(@$_GET["message"]);
$sEmailMessage = $sContent;
// Check sender
if ($sSender == "") {
$this->setMessage($Language->Phrase("EnterSenderEmail"));
return;
}
if (!ew_CheckEmail($sSender)) {
$this->setMessage($Language->Phrase("EnterProperSenderEmail"));
return;
}
// Check recipient
if (!ew_CheckEmailList($sRecipient, EW_MAX_EMAIL_RECIPIENT)) {
$this->setMessage($Language->Phrase("EnterProperRecipientEmail"));
return;
}
// Check cc
if (!ew_CheckEmailList($sCc, EW_MAX_EMAIL_RECIPIENT)) {
$this->setMessage($Language->Phrase("EnterProperCcEmail"));
return;
}
// Check bcc
if (!ew_CheckEmailList($sBcc, EW_MAX_EMAIL_RECIPIENT)) {
$this->setMessage($Language->Phrase("EnterProperBccEmail"));
return;
}
// Check email sent count
if (!isset($_SESSION[EW_EXPORT_EMAIL_COUNTER]))
$_SESSION[EW_EXPORT_EMAIL_COUNTER] = 0;
if (intval($_SESSION[EW_EXPORT_EMAIL_COUNTER]) > EW_MAX_EMAIL_SENT_COUNT) {
$this->setMessage($Language->Phrase("ExceedMaxEmailExport"));
return;
}
if ($sEmailMessage <> "") {
$sEmailMessage = ew_RemoveXSS($sEmailMessage);
$sEmailMessage .= ($sContentType == "url") ? "\r\n\r\n" : "<br><br>";
}
if ($sContentType == "url") {
$sUrl = ew_ConvertFullUrl(ew_CurrentPage() . "?" . $this->ExportQueryString());
$sEmailMessage .= $sUrl; // send URL only
} else {
$sEmailMessage .= $EmailContent; // send HTML
}
// Send email
$Email = new cEmail();
$Email->Sender = $sSender; // Sender
$Email->Recipient = $sRecipient; // Recipient
$Email->Cc = $sCc; // Cc
$Email->Bcc = $sBcc; // Bcc
$Email->Subject = $sEmailSubject; // Subject
$Email->Content = $sEmailMessage; // Content
$Email->Format = ($sContentType == "url") ? "text" : "html";
$Email->Charset = EW_EMAIL_CHARSET;
$EventArgs = array();
$bEmailSent = FALSE;
if ($cstArchivedStudents2015->Email_Sending($Email, $EventArgs))
$bEmailSent = $Email->Send();
// Check email sent status
if ($bEmailSent) {
// Update email sent count
$_SESSION[EW_EXPORT_EMAIL_COUNTER]++;
// Sent email success
$this->setMessage($Language->Phrase("SendEmailSuccess"));
} else {
// Sent email failure
$this->setMessage($Email->SendErrDescription);
}
}
// Export QueryString
function ExportQueryString() {
global $cstArchivedStudents2015;
// Initialize
$sQry = "export=html";
// Build QueryString for search
if ($cstArchivedStudents2015->getSessionBasicSearchKeyword() <> "") {
$sQry .= "&" . EW_TABLE_BASIC_SEARCH . "=" . $cstArchivedStudents2015->getSessionBasicSearchKeyword() . "&" . EW_TABLE_BASIC_SEARCH_TYPE . "=" . $cstArchivedStudents2015->getSessionBasicSearchType();
}
// Build QueryString for pager
$sQry .= "&" . EW_TABLE_REC_PER_PAGE . "=" . $cstArchivedStudents2015->getRecordsPerPage() . "&" . EW_TABLE_START_REC . "=" . $cstArchivedStudents2015->getStartRecordNumber();
return $sQry;
}
// Add search QueryString
function AddSearchQueryString(&$Qry, &$Fld) {
global $cstArchivedStudents2015;
$FldParm = substr($Fld->FldVar, 2);
$FldSearchValue = $cstArchivedStudents2015->GetAdvancedSearch("x_" . $FldParm);
if (strval($FldSearchValue) <> "") {
$Qry .= "&x_" . $FldParm . "=" . FldSearchValue .
"&z_" . $FldParm . "=" . $cstArchivedStudents2015->GetAdvancedSearch("z_" . $FldParm);
}
$FldSearchValue2 = $cstArchivedStudents2015->GetAdvancedSearch("y_" . $FldParm);
if (strval($FldSearchValue2) <> "") {
$Qry .= "&v_" . $FldParm . "=" . $cstArchivedStudents2015->GetAdvancedSearch("v_" . $FldParm) .
"&y_" . $FldParm . "=" . $FldSearchValue2 .
"&w_" . $FldParm . "=" . $cstArchivedStudents2015->GetAdvancedSearch("w_" . $FldParm);
}
}
// 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;
}
// ListOptions Load event
function ListOptions_Load() {
// Example:
//$this->ListOptions->Add("new");
//$this->ListOptions->Items["new"]->OnLeft = TRUE; // Link on left
//$this->ListOptions->MoveItem("new", 0); // Move to first column
}
// ListOptions Rendered event
function ListOptions_Rendered() {
// Example:
//$this->ListOptions->Items["new"]->Body = "xxx";
}
}
?>