| Current Path : /var/www/cesa.co.za/ccmadmin/ |
| Current File : /var/www/cesa.co.za/ccmadmin/CCMMentorsview.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 "CCMMentorsinfo.php" ?>
<?php include "CCMUsersinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
// Create page object
$CCMMentors_view = new cCCMMentors_view();
$Page =& $CCMMentors_view;
// Page init
$CCMMentors_view->Page_Init();
// Page main
$CCMMentors_view->Page_Main();
?>
<?php include "header.php" ?>
<?php if ($CCMMentors->Export == "") { ?>
<script type="text/javascript">
<!--
// Create page object
var CCMMentors_view = new ew_Page("CCMMentors_view");
// page properties
CCMMentors_view.PageID = "view"; // page ID
CCMMentors_view.FormID = "fCCMMentorsview"; // form ID
var EW_PAGE_ID = CCMMentors_view.PageID; // for backward compatibility
// extend page with Form_CustomValidate function
CCMMentors_view.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) { ?>
CCMMentors_view.ValidateRequired = true; // uses JavaScript validation
<?php } else { ?>
CCMMentors_view.ValidateRequired = false; // no JavaScript validation
<?php } ?>
//-->
</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 } ?>
<p><span class="phpmaker"><?php echo $Language->Phrase("View") ?> <?php echo $Language->Phrase("TblTypeTABLE") ?><?php echo $CCMMentors->TableCaption() ?>
<?php if ($CCMMentors->Export == "") { ?>
<a href="<?php echo $CCMMentors_view->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 $CCMMentors_view->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 $CCMMentors_view->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_CCMMentors" id="emf_CCMMentors" href="javascript:void(0);" onclick="ew_EmailDialogShow({lnk:'emf_CCMMentors',hdr:ewLanguage.Phrase('ExportToEmail'),key:<?php echo ew_ArrayToJsonAttr($CCMMentors_view->arRecKey) ?>,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 } ?>
<br><br>
<?php if ($CCMMentors->Export == "") { ?>
<a href="<?php echo $CCMMentors_view->ListUrl ?>"><?php echo $Language->Phrase("BackToList") ?></a>
<?php if ($Security->CanAdd()) { ?>
<a href="<?php echo $CCMMentors_view->AddUrl ?>"><?php echo $Language->Phrase("ViewPageAddLink") ?></a>
<?php } ?>
<?php if ($Security->CanEdit()) { ?>
<a href="<?php echo $CCMMentors_view->EditUrl ?>"><?php echo $Language->Phrase("ViewPageEditLink") ?></a>
<?php } ?>
<?php if ($Security->CanDelete()) { ?>
<a href="<?php echo $CCMMentors_view->DeleteUrl ?>"><?php echo $Language->Phrase("ViewPageDeleteLink") ?></a>
<?php } ?>
<?php if ($Security->AllowList('CCMMilestones')) { ?>
<a href="CCMMilestoneslist.php?<?php echo EW_TABLE_SHOW_MASTER ?>=CCMMentors&CCMMentorID=<?php echo urlencode(strval($CCMMentors->CCMMentorID->CurrentValue)) ?>"><?php echo $Language->Phrase("ViewPageDetailLink") ?><?php echo $Language->TablePhrase("CCMMilestones", "TblCaption") ?>
</a>
<?php } ?>
<?php } ?>
</span></p>
<?php
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
$CCMMentors_view->ShowMessage();
?>
<p>
<?php if ($CCMMentors->Export == "") { ?>
<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($CCMMentors_view->Pager)) $CCMMentors_view->Pager = new cPrevNextPager($CCMMentors_view->lStartRec, $CCMMentors_view->lDisplayRecs, $CCMMentors_view->lTotalRecs) ?>
<?php if ($CCMMentors_view->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 ($CCMMentors_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $CCMMentors_view->PageUrl() ?>start=<?php echo $CCMMentors_view->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 ($CCMMentors_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $CCMMentors_view->PageUrl() ?>start=<?php echo $CCMMentors_view->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 $CCMMentors_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($CCMMentors_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $CCMMentors_view->PageUrl() ?>start=<?php echo $CCMMentors_view->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 ($CCMMentors_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $CCMMentors_view->PageUrl() ?>start=<?php echo $CCMMentors_view->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 $CCMMentors_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($CCMMentors_view->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>
<br>
<?php } ?>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<?php if ($CCMMentors->Organisation->Visible) { // Organisation ?>
<tr<?php echo $CCMMentors->Organisation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Organisation->FldCaption() ?></td>
<td<?php echo $CCMMentors->Organisation->CellAttributes() ?>>
<div<?php echo $CCMMentors->Organisation->ViewAttributes() ?>><?php echo $CCMMentors->Organisation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->Title->Visible) { // Title ?>
<tr<?php echo $CCMMentors->Title->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Title->FldCaption() ?></td>
<td<?php echo $CCMMentors->Title->CellAttributes() ?>>
<div<?php echo $CCMMentors->Title->ViewAttributes() ?>><?php echo $CCMMentors->Title->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->FirstName->Visible) { // FirstName ?>
<tr<?php echo $CCMMentors->FirstName->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->FirstName->FldCaption() ?></td>
<td<?php echo $CCMMentors->FirstName->CellAttributes() ?>>
<div<?php echo $CCMMentors->FirstName->ViewAttributes() ?>><?php echo $CCMMentors->FirstName->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->Surname->Visible) { // Surname ?>
<tr<?php echo $CCMMentors->Surname->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Surname->FldCaption() ?></td>
<td<?php echo $CCMMentors->Surname->CellAttributes() ?>>
<div<?php echo $CCMMentors->Surname->ViewAttributes() ?>><?php echo $CCMMentors->Surname->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->Initials->Visible) { // Initials ?>
<tr<?php echo $CCMMentors->Initials->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Initials->FldCaption() ?></td>
<td<?php echo $CCMMentors->Initials->CellAttributes() ?>>
<div<?php echo $CCMMentors->Initials->ViewAttributes() ?>><?php echo $CCMMentors->Initials->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->KnownAs->Visible) { // KnownAs ?>
<tr<?php echo $CCMMentors->KnownAs->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->KnownAs->FldCaption() ?></td>
<td<?php echo $CCMMentors->KnownAs->CellAttributes() ?>>
<div<?php echo $CCMMentors->KnownAs->ViewAttributes() ?>><?php echo $CCMMentors->KnownAs->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->IDNumber->Visible) { // IDNumber ?>
<tr<?php echo $CCMMentors->IDNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->IDNumber->FldCaption() ?></td>
<td<?php echo $CCMMentors->IDNumber->CellAttributes() ?>>
<div<?php echo $CCMMentors->IDNumber->ViewAttributes() ?>><?php echo $CCMMentors->IDNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->ProfessionalCouncil->Visible) { // ProfessionalCouncil ?>
<tr<?php echo $CCMMentors->ProfessionalCouncil->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->ProfessionalCouncil->FldCaption() ?></td>
<td<?php echo $CCMMentors->ProfessionalCouncil->CellAttributes() ?>>
<div<?php echo $CCMMentors->ProfessionalCouncil->ViewAttributes() ?>><?php echo $CCMMentors->ProfessionalCouncil->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->CategoryReg->Visible) { // CategoryReg ?>
<tr<?php echo $CCMMentors->CategoryReg->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->CategoryReg->FldCaption() ?></td>
<td<?php echo $CCMMentors->CategoryReg->CellAttributes() ?>>
<div<?php echo $CCMMentors->CategoryReg->ViewAttributes() ?>><?php echo $CCMMentors->CategoryReg->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->CouncilRegNumber->Visible) { // CouncilRegNumber ?>
<tr<?php echo $CCMMentors->CouncilRegNumber->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->CouncilRegNumber->FldCaption() ?></td>
<td<?php echo $CCMMentors->CouncilRegNumber->CellAttributes() ?>>
<div<?php echo $CCMMentors->CouncilRegNumber->ViewAttributes() ?>><?php echo $CCMMentors->CouncilRegNumber->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->Telephone->Visible) { // Telephone ?>
<tr<?php echo $CCMMentors->Telephone->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Telephone->FldCaption() ?></td>
<td<?php echo $CCMMentors->Telephone->CellAttributes() ?>>
<div<?php echo $CCMMentors->Telephone->ViewAttributes() ?>><?php echo $CCMMentors->Telephone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->Cellphone->Visible) { // Cellphone ?>
<tr<?php echo $CCMMentors->Cellphone->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Cellphone->FldCaption() ?></td>
<td<?php echo $CCMMentors->Cellphone->CellAttributes() ?>>
<div<?php echo $CCMMentors->Cellphone->ViewAttributes() ?>><?php echo $CCMMentors->Cellphone->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->EmailAddress->Visible) { // EmailAddress ?>
<tr<?php echo $CCMMentors->EmailAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->EmailAddress->FldCaption() ?></td>
<td<?php echo $CCMMentors->EmailAddress->CellAttributes() ?>>
<div<?php echo $CCMMentors->EmailAddress->ViewAttributes() ?>><?php echo $CCMMentors->EmailAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->WorkAddress->Visible) { // WorkAddress ?>
<tr<?php echo $CCMMentors->WorkAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->WorkAddress->FldCaption() ?></td>
<td<?php echo $CCMMentors->WorkAddress->CellAttributes() ?>>
<div<?php echo $CCMMentors->WorkAddress->ViewAttributes() ?>><?php echo $CCMMentors->WorkAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->PostalAddress->Visible) { // PostalAddress ?>
<tr<?php echo $CCMMentors->PostalAddress->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->PostalAddress->FldCaption() ?></td>
<td<?php echo $CCMMentors->PostalAddress->CellAttributes() ?>>
<div<?php echo $CCMMentors->PostalAddress->ViewAttributes() ?>><?php echo $CCMMentors->PostalAddress->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->CandUUndertaking->Visible) { // CandUUndertaking ?>
<tr<?php echo $CCMMentors->CandUUndertaking->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->CandUUndertaking->FldCaption() ?></td>
<td<?php echo $CCMMentors->CandUUndertaking->CellAttributes() ?>>
<div<?php echo $CCMMentors->CandUUndertaking->ViewAttributes() ?>><?php echo $CCMMentors->CandUUndertaking->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->WebUsername->Visible) { // WebUsername ?>
<tr<?php echo $CCMMentors->WebUsername->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->WebUsername->FldCaption() ?></td>
<td<?php echo $CCMMentors->WebUsername->CellAttributes() ?>>
<div<?php echo $CCMMentors->WebUsername->ViewAttributes() ?>><?php echo $CCMMentors->WebUsername->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->WebPassword->Visible) { // WebPassword ?>
<tr<?php echo $CCMMentors->WebPassword->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->WebPassword->FldCaption() ?></td>
<td<?php echo $CCMMentors->WebPassword->CellAttributes() ?>>
<div<?php echo $CCMMentors->WebPassword->ViewAttributes() ?>><?php echo $CCMMentors->WebPassword->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->BlockAccess->Visible) { // BlockAccess ?>
<tr<?php echo $CCMMentors->BlockAccess->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->BlockAccess->FldCaption() ?></td>
<td<?php echo $CCMMentors->BlockAccess->CellAttributes() ?>>
<div<?php echo $CCMMentors->BlockAccess->ViewAttributes() ?>><?php echo $CCMMentors->BlockAccess->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->Archived->Visible) { // Archived ?>
<tr<?php echo $CCMMentors->Archived->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Archived->FldCaption() ?></td>
<td<?php echo $CCMMentors->Archived->CellAttributes() ?>>
<div<?php echo $CCMMentors->Archived->ViewAttributes() ?>><?php echo $CCMMentors->Archived->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->Designation->Visible) { // Designation ?>
<tr<?php echo $CCMMentors->Designation->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Designation->FldCaption() ?></td>
<td<?php echo $CCMMentors->Designation->CellAttributes() ?>>
<div<?php echo $CCMMentors->Designation->ViewAttributes() ?>><?php echo $CCMMentors->Designation->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->Prof_Reg_No->Visible) { // Prof Reg No ?>
<tr<?php echo $CCMMentors->Prof_Reg_No->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Prof_Reg_No->FldCaption() ?></td>
<td<?php echo $CCMMentors->Prof_Reg_No->CellAttributes() ?>>
<div<?php echo $CCMMentors->Prof_Reg_No->ViewAttributes() ?>><?php echo $CCMMentors->Prof_Reg_No->ViewValue ?></div></td>
</tr>
<?php } ?>
<?php if ($CCMMentors->Reg_No->Visible) { // Reg No ?>
<tr<?php echo $CCMMentors->Reg_No->RowAttributes ?>>
<td class="ewTableHeader"><?php echo $CCMMentors->Reg_No->FldCaption() ?></td>
<td<?php echo $CCMMentors->Reg_No->CellAttributes() ?>>
<div<?php echo $CCMMentors->Reg_No->ViewAttributes() ?>><?php echo $CCMMentors->Reg_No->ViewValue ?></div></td>
</tr>
<?php } ?>
</table>
</div>
</td></tr></table>
<?php if ($CCMMentors->Export == "") { ?>
<br>
<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($CCMMentors_view->Pager)) $CCMMentors_view->Pager = new cPrevNextPager($CCMMentors_view->lStartRec, $CCMMentors_view->lDisplayRecs, $CCMMentors_view->lTotalRecs) ?>
<?php if ($CCMMentors_view->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 ($CCMMentors_view->Pager->FirstButton->Enabled) { ?>
<td><a href="<?php echo $CCMMentors_view->PageUrl() ?>start=<?php echo $CCMMentors_view->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 ($CCMMentors_view->Pager->PrevButton->Enabled) { ?>
<td><a href="<?php echo $CCMMentors_view->PageUrl() ?>start=<?php echo $CCMMentors_view->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 $CCMMentors_view->Pager->CurrentPage ?>" size="4"></td>
<!--next page button-->
<?php if ($CCMMentors_view->Pager->NextButton->Enabled) { ?>
<td><a href="<?php echo $CCMMentors_view->PageUrl() ?>start=<?php echo $CCMMentors_view->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 ($CCMMentors_view->Pager->LastButton->Enabled) { ?>
<td><a href="<?php echo $CCMMentors_view->PageUrl() ?>start=<?php echo $CCMMentors_view->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 $CCMMentors_view->Pager->PageCount ?></span></td>
</tr></table>
<?php } else { ?>
<?php if ($Security->CanList()) { ?>
<?php if ($CCMMentors_view->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 } ?>
<p>
<?php if ($CCMMentors->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
$CCMMentors_view->Page_Terminate();
?>
<?php
//
// Page class
//
class cCCMMentors_view {
// Page ID
var $PageID = 'view';
// Table name
var $TableName = 'CCMMentors';
// Page object name
var $PageObjName = 'CCMMentors_view';
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
$PageUrl = ew_CurrentPage() . "?";
global $CCMMentors;
if ($CCMMentors->UseTokenInUrl) $PageUrl .= "t=" . $CCMMentors->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, $CCMMentors;
if ($CCMMentors->UseTokenInUrl) {
if ($objForm)
return ($CCMMentors->TableVar == $objForm->GetValue("t"));
if (@$_GET["t"] <> "")
return ($CCMMentors->TableVar == $_GET["t"]);
} else {
return TRUE;
}
}
//
// Page class constructor
//
function cCCMMentors_view() {
global $conn, $Language;
// Language object
$Language = new cLanguage();
// Table object (CCMMentors)
$GLOBALS["CCMMentors"] = new cCCMMentors();
// Table object (CCMUsers)
$GLOBALS['CCMUsers'] = new cCCMUsers();
// Page ID
if (!defined("EW_PAGE_ID"))
define("EW_PAGE_ID", 'view', TRUE);
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME"))
define("EW_TABLE_NAME", 'CCMMentors', TRUE);
// Start timer
$GLOBALS["gsTimer"] = new cTimer();
// Open connection
$conn = ew_Connect();
}
//
// Page_Init
//
function Page_Init() {
global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
global $CCMMentors;
// 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->CanView()) {
$Security->SaveLastUrl();
$this->Page_Terminate("CCMMentorslist.php");
}
// Get export parameters
if (@$_GET["export"] <> "") {
$CCMMentors->Export = $_GET["export"];
} elseif (ew_IsHttpPost()) {
if (@$_POST["exporttype"] <> "")
$CCMMentors->Export = $_POST["exporttype"];
} else {
$CCMMentors->setExportReturnUrl(ew_CurrentUrl());
}
$gsExport = $CCMMentors->Export; // Get export parameter, used in header
$gsExportFile = $CCMMentors->TableVar; // Get export file, used in header
if (@$_GET["CCMMentorID"] <> "") {
if ($gsExportFile <> "") $gsExportFile .= "_";
$gsExportFile .= ew_StripSlashes($_GET["CCMMentorID"]);
}
if ($CCMMentors->Export == "excel") {
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=' . $gsExportFile .'.xls');
}
if ($CCMMentors->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();
}
var $lDisplayRecs = 1;
var $lStartRec;
var $lStopRec;
var $lTotalRecs = 0;
var $lRecRange = 10;
var $lRecCnt;
var $arRecKey = array();
//
// Page main
//
function Page_Main() {
global $Language, $CCMMentors;
// Load current record
$bLoadCurrentRecord = FALSE;
$sReturnUrl = "";
$bMatchRecord = FALSE;
if ($this->IsPageRequest()) { // Validate request
if (@$_GET["CCMMentorID"] <> "") {
$CCMMentors->CCMMentorID->setQueryStringValue($_GET["CCMMentorID"]);
$this->arRecKey["CCMMentorID"] = $CCMMentors->CCMMentorID->QueryStringValue;
} else {
$bLoadCurrentRecord = TRUE;
}
// Get action
$CCMMentors->CurrentAction = "I"; // Display form
switch ($CCMMentors->CurrentAction) {
case "I": // Get a record to display
$this->lStartRec = 1; // Initialize start position
if ($rs = $this->LoadRecordset()) // Load records
$this->lTotalRecs = $rs->RecordCount(); // Get record count
if ($this->lTotalRecs <= 0) { // No record found
$this->setMessage($Language->Phrase("NoRecord")); // Set no record message
$this->Page_Terminate("CCMMentorslist.php"); // Return to list page
} elseif ($bLoadCurrentRecord) { // Load current record position
$this->SetUpStartRec(); // Set up start record position
// Point to current record
if (intval($this->lStartRec) <= intval($this->lTotalRecs)) {
$bMatchRecord = TRUE;
$rs->Move($this->lStartRec-1);
}
} else { // Match key values
while (!$rs->EOF) {
if (strval($CCMMentors->CCMMentorID->CurrentValue) == strval($rs->fields('CCMMentorID'))) {
$CCMMentors->setStartRecordNumber($this->lStartRec); // Save record position
$bMatchRecord = TRUE;
break;
} else {
$this->lStartRec++;
$rs->MoveNext();
}
}
}
if (!$bMatchRecord) {
$this->setMessage($Language->Phrase("NoRecord")); // Set no record message
$sReturnUrl = "CCMMentorslist.php"; // No matching record, return to list
} else {
$this->LoadRowValues($rs); // Load row values
}
}
// Export data only
if (in_array($CCMMentors->Export, array("html","word","excel","xml","csv","email"))) {
$this->ExportData();
if ($CCMMentors->Export <> "email")
$this->Page_Terminate(); // Terminate response
exit();
}
} else {
$sReturnUrl = "CCMMentorslist.php"; // Not page request, return to list
}
if ($sReturnUrl <> "")
$this->Page_Terminate($sReturnUrl);
// Render row
$CCMMentors->RowType = EW_ROWTYPE_VIEW;
$this->RenderRow();
}
// Set up starting record parameters
function SetUpStartRec() {
global $CCMMentors;
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];
$CCMMentors->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;
}
$CCMMentors->setStartRecordNumber($this->lStartRec);
}
}
}
$this->lStartRec = $CCMMentors->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
$CCMMentors->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
$CCMMentors->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
$CCMMentors->setStartRecordNumber($this->lStartRec);
}
}
// Load recordset
function LoadRecordset($offset = -1, $rowcnt = -1) {
global $conn, $CCMMentors;
// Call Recordset Selecting event
$CCMMentors->Recordset_Selecting($CCMMentors->CurrentFilter);
// Load List page SQL
$sSql = $CCMMentors->SelectSQL();
if ($offset > -1 && $rowcnt > -1)
$sSql .= " LIMIT $offset, $rowcnt";
// Load recordset
$rs = ew_LoadRecordset($sSql);
// Call Recordset Selected event
$CCMMentors->Recordset_Selected($rs);
return $rs;
}
// Load row based on key values
function LoadRow() {
global $conn, $Security, $CCMMentors;
$sFilter = $CCMMentors->KeyFilter();
// Call Row Selecting event
$CCMMentors->Row_Selecting($sFilter);
// Load SQL based on filter
$CCMMentors->CurrentFilter = $sFilter;
$sSql = $CCMMentors->SQL();
$res = FALSE;
$rs = ew_LoadRecordset($sSql);
if ($rs && !$rs->EOF) {
$res = TRUE;
$this->LoadRowValues($rs); // Load row values
// Call Row Selected event
$CCMMentors->Row_Selected($rs);
$rs->Close();
}
return $res;
}
// Load row values from recordset
function LoadRowValues(&$rs) {
global $conn, $CCMMentors;
$CCMMentors->CCMMentorID->setDbValue($rs->fields('CCMMentorID'));
$CCMMentors->Organisation->setDbValue($rs->fields('Organisation'));
$CCMMentors->Title->setDbValue($rs->fields('Title'));
$CCMMentors->FirstName->setDbValue($rs->fields('FirstName'));
$CCMMentors->Surname->setDbValue($rs->fields('Surname'));
$CCMMentors->Initials->setDbValue($rs->fields('Initials'));
$CCMMentors->KnownAs->setDbValue($rs->fields('KnownAs'));
$CCMMentors->IDNumber->setDbValue($rs->fields('IDNumber'));
$CCMMentors->ProfessionalCouncil->setDbValue($rs->fields('ProfessionalCouncil'));
$CCMMentors->CategoryReg->setDbValue($rs->fields('CategoryReg'));
$CCMMentors->CouncilRegNumber->setDbValue($rs->fields('CouncilRegNumber'));
$CCMMentors->Telephone->setDbValue($rs->fields('Telephone'));
$CCMMentors->Cellphone->setDbValue($rs->fields('Cellphone'));
$CCMMentors->EmailAddress->setDbValue($rs->fields('EmailAddress'));
$CCMMentors->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$CCMMentors->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$CCMMentors->EducationalInst->setDbValue($rs->fields('EducationalInst'));
$CCMMentors->Qualifications->setDbValue($rs->fields('Qualifications'));
$CCMMentors->CVFile->setDbValue($rs->fields('CVFile'));
$CCMMentors->MentorUndertaking->setDbValue($rs->fields('MentorUndertaking'));
$CCMMentors->CandUUndertaking->setDbValue($rs->fields('CandUUndertaking'));
$CCMMentors->WebUsername->setDbValue($rs->fields('WebUsername'));
$CCMMentors->WebPassword->setDbValue($rs->fields('WebPassword'));
$CCMMentors->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$CCMMentors->Archived->setDbValue($rs->fields('Archived'));
$CCMMentors->Designation->setDbValue($rs->fields('Designation'));
$CCMMentors->Prof_Reg_No->setDbValue($rs->fields('Prof Reg No'));
$CCMMentors->Reg_No->setDbValue($rs->fields('Reg No'));
}
// Render row values based on field settings
function RenderRow() {
global $conn, $Security, $Language, $CCMMentors;
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print&" . "CCMMentorID=" . urlencode($CCMMentors->CCMMentorID->CurrentValue);
$this->ExportHtmlUrl = $this->PageUrl() . "export=html&" . "CCMMentorID=" . urlencode($CCMMentors->CCMMentorID->CurrentValue);
$this->ExportExcelUrl = $this->PageUrl() . "export=excel&" . "CCMMentorID=" . urlencode($CCMMentors->CCMMentorID->CurrentValue);
$this->ExportWordUrl = $this->PageUrl() . "export=word&" . "CCMMentorID=" . urlencode($CCMMentors->CCMMentorID->CurrentValue);
$this->ExportXmlUrl = $this->PageUrl() . "export=xml&" . "CCMMentorID=" . urlencode($CCMMentors->CCMMentorID->CurrentValue);
$this->ExportCsvUrl = $this->PageUrl() . "export=csv&" . "CCMMentorID=" . urlencode($CCMMentors->CCMMentorID->CurrentValue);
$this->AddUrl = $CCMMentors->AddUrl();
$this->EditUrl = $CCMMentors->EditUrl();
$this->CopyUrl = $CCMMentors->CopyUrl();
$this->DeleteUrl = $CCMMentors->DeleteUrl();
$this->ListUrl = $CCMMentors->ListUrl();
// Call Row_Rendering event
$CCMMentors->Row_Rendering();
// Common render codes for all row types
// Organisation
$CCMMentors->Organisation->CellCssStyle = ""; $CCMMentors->Organisation->CellCssClass = "";
$CCMMentors->Organisation->CellAttrs = array(); $CCMMentors->Organisation->ViewAttrs = array(); $CCMMentors->Organisation->EditAttrs = array();
// Title
$CCMMentors->Title->CellCssStyle = ""; $CCMMentors->Title->CellCssClass = "";
$CCMMentors->Title->CellAttrs = array(); $CCMMentors->Title->ViewAttrs = array(); $CCMMentors->Title->EditAttrs = array();
// FirstName
$CCMMentors->FirstName->CellCssStyle = ""; $CCMMentors->FirstName->CellCssClass = "";
$CCMMentors->FirstName->CellAttrs = array(); $CCMMentors->FirstName->ViewAttrs = array(); $CCMMentors->FirstName->EditAttrs = array();
// Surname
$CCMMentors->Surname->CellCssStyle = ""; $CCMMentors->Surname->CellCssClass = "";
$CCMMentors->Surname->CellAttrs = array(); $CCMMentors->Surname->ViewAttrs = array(); $CCMMentors->Surname->EditAttrs = array();
// Initials
$CCMMentors->Initials->CellCssStyle = ""; $CCMMentors->Initials->CellCssClass = "";
$CCMMentors->Initials->CellAttrs = array(); $CCMMentors->Initials->ViewAttrs = array(); $CCMMentors->Initials->EditAttrs = array();
// KnownAs
$CCMMentors->KnownAs->CellCssStyle = ""; $CCMMentors->KnownAs->CellCssClass = "";
$CCMMentors->KnownAs->CellAttrs = array(); $CCMMentors->KnownAs->ViewAttrs = array(); $CCMMentors->KnownAs->EditAttrs = array();
// IDNumber
$CCMMentors->IDNumber->CellCssStyle = ""; $CCMMentors->IDNumber->CellCssClass = "";
$CCMMentors->IDNumber->CellAttrs = array(); $CCMMentors->IDNumber->ViewAttrs = array(); $CCMMentors->IDNumber->EditAttrs = array();
// ProfessionalCouncil
$CCMMentors->ProfessionalCouncil->CellCssStyle = ""; $CCMMentors->ProfessionalCouncil->CellCssClass = "";
$CCMMentors->ProfessionalCouncil->CellAttrs = array(); $CCMMentors->ProfessionalCouncil->ViewAttrs = array(); $CCMMentors->ProfessionalCouncil->EditAttrs = array();
// CategoryReg
$CCMMentors->CategoryReg->CellCssStyle = ""; $CCMMentors->CategoryReg->CellCssClass = "";
$CCMMentors->CategoryReg->CellAttrs = array(); $CCMMentors->CategoryReg->ViewAttrs = array(); $CCMMentors->CategoryReg->EditAttrs = array();
// CouncilRegNumber
$CCMMentors->CouncilRegNumber->CellCssStyle = ""; $CCMMentors->CouncilRegNumber->CellCssClass = "";
$CCMMentors->CouncilRegNumber->CellAttrs = array(); $CCMMentors->CouncilRegNumber->ViewAttrs = array(); $CCMMentors->CouncilRegNumber->EditAttrs = array();
// Telephone
$CCMMentors->Telephone->CellCssStyle = ""; $CCMMentors->Telephone->CellCssClass = "";
$CCMMentors->Telephone->CellAttrs = array(); $CCMMentors->Telephone->ViewAttrs = array(); $CCMMentors->Telephone->EditAttrs = array();
// Cellphone
$CCMMentors->Cellphone->CellCssStyle = ""; $CCMMentors->Cellphone->CellCssClass = "";
$CCMMentors->Cellphone->CellAttrs = array(); $CCMMentors->Cellphone->ViewAttrs = array(); $CCMMentors->Cellphone->EditAttrs = array();
// EmailAddress
$CCMMentors->EmailAddress->CellCssStyle = ""; $CCMMentors->EmailAddress->CellCssClass = "";
$CCMMentors->EmailAddress->CellAttrs = array(); $CCMMentors->EmailAddress->ViewAttrs = array(); $CCMMentors->EmailAddress->EditAttrs = array();
// WorkAddress
$CCMMentors->WorkAddress->CellCssStyle = ""; $CCMMentors->WorkAddress->CellCssClass = "";
$CCMMentors->WorkAddress->CellAttrs = array(); $CCMMentors->WorkAddress->ViewAttrs = array(); $CCMMentors->WorkAddress->EditAttrs = array();
// PostalAddress
$CCMMentors->PostalAddress->CellCssStyle = ""; $CCMMentors->PostalAddress->CellCssClass = "";
$CCMMentors->PostalAddress->CellAttrs = array(); $CCMMentors->PostalAddress->ViewAttrs = array(); $CCMMentors->PostalAddress->EditAttrs = array();
// CandUUndertaking
$CCMMentors->CandUUndertaking->CellCssStyle = ""; $CCMMentors->CandUUndertaking->CellCssClass = "";
$CCMMentors->CandUUndertaking->CellAttrs = array(); $CCMMentors->CandUUndertaking->ViewAttrs = array(); $CCMMentors->CandUUndertaking->EditAttrs = array();
// WebUsername
$CCMMentors->WebUsername->CellCssStyle = ""; $CCMMentors->WebUsername->CellCssClass = "";
$CCMMentors->WebUsername->CellAttrs = array(); $CCMMentors->WebUsername->ViewAttrs = array(); $CCMMentors->WebUsername->EditAttrs = array();
// WebPassword
$CCMMentors->WebPassword->CellCssStyle = ""; $CCMMentors->WebPassword->CellCssClass = "";
$CCMMentors->WebPassword->CellAttrs = array(); $CCMMentors->WebPassword->ViewAttrs = array(); $CCMMentors->WebPassword->EditAttrs = array();
// BlockAccess
$CCMMentors->BlockAccess->CellCssStyle = ""; $CCMMentors->BlockAccess->CellCssClass = "";
$CCMMentors->BlockAccess->CellAttrs = array(); $CCMMentors->BlockAccess->ViewAttrs = array(); $CCMMentors->BlockAccess->EditAttrs = array();
// Archived
$CCMMentors->Archived->CellCssStyle = ""; $CCMMentors->Archived->CellCssClass = "";
$CCMMentors->Archived->CellAttrs = array(); $CCMMentors->Archived->ViewAttrs = array(); $CCMMentors->Archived->EditAttrs = array();
// Designation
$CCMMentors->Designation->CellCssStyle = ""; $CCMMentors->Designation->CellCssClass = "";
$CCMMentors->Designation->CellAttrs = array(); $CCMMentors->Designation->ViewAttrs = array(); $CCMMentors->Designation->EditAttrs = array();
// Prof Reg No
$CCMMentors->Prof_Reg_No->CellCssStyle = ""; $CCMMentors->Prof_Reg_No->CellCssClass = "";
$CCMMentors->Prof_Reg_No->CellAttrs = array(); $CCMMentors->Prof_Reg_No->ViewAttrs = array(); $CCMMentors->Prof_Reg_No->EditAttrs = array();
// Reg No
$CCMMentors->Reg_No->CellCssStyle = ""; $CCMMentors->Reg_No->CellCssClass = "";
$CCMMentors->Reg_No->CellAttrs = array(); $CCMMentors->Reg_No->ViewAttrs = array(); $CCMMentors->Reg_No->EditAttrs = array();
if ($CCMMentors->RowType == EW_ROWTYPE_VIEW) { // View row
// CCMMentorID
$CCMMentors->CCMMentorID->ViewValue = $CCMMentors->CCMMentorID->CurrentValue;
$CCMMentors->CCMMentorID->CssStyle = "";
$CCMMentors->CCMMentorID->CssClass = "";
$CCMMentors->CCMMentorID->ViewCustomAttributes = "";
// Organisation
$CCMMentors->Organisation->ViewValue = $CCMMentors->Organisation->CurrentValue;
$CCMMentors->Organisation->CssStyle = "";
$CCMMentors->Organisation->CssClass = "";
$CCMMentors->Organisation->ViewCustomAttributes = "";
// Title
$CCMMentors->Title->ViewValue = $CCMMentors->Title->CurrentValue;
$CCMMentors->Title->CssStyle = "";
$CCMMentors->Title->CssClass = "";
$CCMMentors->Title->ViewCustomAttributes = "";
// FirstName
$CCMMentors->FirstName->ViewValue = $CCMMentors->FirstName->CurrentValue;
$CCMMentors->FirstName->CssStyle = "";
$CCMMentors->FirstName->CssClass = "";
$CCMMentors->FirstName->ViewCustomAttributes = "";
// Surname
$CCMMentors->Surname->ViewValue = $CCMMentors->Surname->CurrentValue;
$CCMMentors->Surname->CssStyle = "";
$CCMMentors->Surname->CssClass = "";
$CCMMentors->Surname->ViewCustomAttributes = "";
// Initials
$CCMMentors->Initials->ViewValue = $CCMMentors->Initials->CurrentValue;
$CCMMentors->Initials->CssStyle = "";
$CCMMentors->Initials->CssClass = "";
$CCMMentors->Initials->ViewCustomAttributes = "";
// KnownAs
$CCMMentors->KnownAs->ViewValue = $CCMMentors->KnownAs->CurrentValue;
$CCMMentors->KnownAs->CssStyle = "";
$CCMMentors->KnownAs->CssClass = "";
$CCMMentors->KnownAs->ViewCustomAttributes = "";
// IDNumber
$CCMMentors->IDNumber->ViewValue = $CCMMentors->IDNumber->CurrentValue;
$CCMMentors->IDNumber->CssStyle = "";
$CCMMentors->IDNumber->CssClass = "";
$CCMMentors->IDNumber->ViewCustomAttributes = "";
// ProfessionalCouncil
$CCMMentors->ProfessionalCouncil->ViewValue = $CCMMentors->ProfessionalCouncil->CurrentValue;
$CCMMentors->ProfessionalCouncil->CssStyle = "";
$CCMMentors->ProfessionalCouncil->CssClass = "";
$CCMMentors->ProfessionalCouncil->ViewCustomAttributes = "";
// CategoryReg
$CCMMentors->CategoryReg->ViewValue = $CCMMentors->CategoryReg->CurrentValue;
$CCMMentors->CategoryReg->CssStyle = "";
$CCMMentors->CategoryReg->CssClass = "";
$CCMMentors->CategoryReg->ViewCustomAttributes = "";
// CouncilRegNumber
$CCMMentors->CouncilRegNumber->ViewValue = $CCMMentors->CouncilRegNumber->CurrentValue;
$CCMMentors->CouncilRegNumber->CssStyle = "";
$CCMMentors->CouncilRegNumber->CssClass = "";
$CCMMentors->CouncilRegNumber->ViewCustomAttributes = "";
// Telephone
$CCMMentors->Telephone->ViewValue = $CCMMentors->Telephone->CurrentValue;
$CCMMentors->Telephone->CssStyle = "";
$CCMMentors->Telephone->CssClass = "";
$CCMMentors->Telephone->ViewCustomAttributes = "";
// Cellphone
$CCMMentors->Cellphone->ViewValue = $CCMMentors->Cellphone->CurrentValue;
$CCMMentors->Cellphone->CssStyle = "";
$CCMMentors->Cellphone->CssClass = "";
$CCMMentors->Cellphone->ViewCustomAttributes = "";
// EmailAddress
$CCMMentors->EmailAddress->ViewValue = $CCMMentors->EmailAddress->CurrentValue;
$CCMMentors->EmailAddress->CssStyle = "";
$CCMMentors->EmailAddress->CssClass = "";
$CCMMentors->EmailAddress->ViewCustomAttributes = "";
// WorkAddress
$CCMMentors->WorkAddress->ViewValue = $CCMMentors->WorkAddress->CurrentValue;
$CCMMentors->WorkAddress->CssStyle = "";
$CCMMentors->WorkAddress->CssClass = "";
$CCMMentors->WorkAddress->ViewCustomAttributes = "";
// PostalAddress
$CCMMentors->PostalAddress->ViewValue = $CCMMentors->PostalAddress->CurrentValue;
$CCMMentors->PostalAddress->CssStyle = "";
$CCMMentors->PostalAddress->CssClass = "";
$CCMMentors->PostalAddress->ViewCustomAttributes = "";
// CandUUndertaking
$CCMMentors->CandUUndertaking->ViewValue = $CCMMentors->CandUUndertaking->CurrentValue;
$CCMMentors->CandUUndertaking->CssStyle = "";
$CCMMentors->CandUUndertaking->CssClass = "";
$CCMMentors->CandUUndertaking->ViewCustomAttributes = "";
// WebUsername
$CCMMentors->WebUsername->ViewValue = $CCMMentors->WebUsername->CurrentValue;
$CCMMentors->WebUsername->CssStyle = "";
$CCMMentors->WebUsername->CssClass = "";
$CCMMentors->WebUsername->ViewCustomAttributes = "";
// WebPassword
$CCMMentors->WebPassword->ViewValue = $CCMMentors->WebPassword->CurrentValue;
$CCMMentors->WebPassword->CssStyle = "";
$CCMMentors->WebPassword->CssClass = "";
$CCMMentors->WebPassword->ViewCustomAttributes = "";
// BlockAccess
if (strval($CCMMentors->BlockAccess->CurrentValue) <> "") {
switch ($CCMMentors->BlockAccess->CurrentValue) {
case "y":
$CCMMentors->BlockAccess->ViewValue = "Yes";
break;
case "n":
$CCMMentors->BlockAccess->ViewValue = "No";
break;
default:
$CCMMentors->BlockAccess->ViewValue = $CCMMentors->BlockAccess->CurrentValue;
}
} else {
$CCMMentors->BlockAccess->ViewValue = NULL;
}
$CCMMentors->BlockAccess->CssStyle = "";
$CCMMentors->BlockAccess->CssClass = "";
$CCMMentors->BlockAccess->ViewCustomAttributes = "";
// Archived
if (strval($CCMMentors->Archived->CurrentValue) <> "") {
switch ($CCMMentors->Archived->CurrentValue) {
case "1":
$CCMMentors->Archived->ViewValue = "Yes";
break;
case "0":
$CCMMentors->Archived->ViewValue = "No";
break;
default:
$CCMMentors->Archived->ViewValue = $CCMMentors->Archived->CurrentValue;
}
} else {
$CCMMentors->Archived->ViewValue = NULL;
}
$CCMMentors->Archived->CssStyle = "";
$CCMMentors->Archived->CssClass = "";
$CCMMentors->Archived->ViewCustomAttributes = "";
// Designation
$CCMMentors->Designation->ViewValue = $CCMMentors->Designation->CurrentValue;
$CCMMentors->Designation->CssStyle = "";
$CCMMentors->Designation->CssClass = "";
$CCMMentors->Designation->ViewCustomAttributes = "";
// Prof Reg No
$CCMMentors->Prof_Reg_No->ViewValue = $CCMMentors->Prof_Reg_No->CurrentValue;
$CCMMentors->Prof_Reg_No->CssStyle = "";
$CCMMentors->Prof_Reg_No->CssClass = "";
$CCMMentors->Prof_Reg_No->ViewCustomAttributes = "";
// Reg No
$CCMMentors->Reg_No->ViewValue = $CCMMentors->Reg_No->CurrentValue;
$CCMMentors->Reg_No->CssStyle = "";
$CCMMentors->Reg_No->CssClass = "";
$CCMMentors->Reg_No->ViewCustomAttributes = "";
// Organisation
$CCMMentors->Organisation->HrefValue = "";
$CCMMentors->Organisation->TooltipValue = "";
// Title
$CCMMentors->Title->HrefValue = "";
$CCMMentors->Title->TooltipValue = "";
// FirstName
$CCMMentors->FirstName->HrefValue = "";
$CCMMentors->FirstName->TooltipValue = "";
// Surname
$CCMMentors->Surname->HrefValue = "";
$CCMMentors->Surname->TooltipValue = "";
// Initials
$CCMMentors->Initials->HrefValue = "";
$CCMMentors->Initials->TooltipValue = "";
// KnownAs
$CCMMentors->KnownAs->HrefValue = "";
$CCMMentors->KnownAs->TooltipValue = "";
// IDNumber
$CCMMentors->IDNumber->HrefValue = "";
$CCMMentors->IDNumber->TooltipValue = "";
// ProfessionalCouncil
$CCMMentors->ProfessionalCouncil->HrefValue = "";
$CCMMentors->ProfessionalCouncil->TooltipValue = "";
// CategoryReg
$CCMMentors->CategoryReg->HrefValue = "";
$CCMMentors->CategoryReg->TooltipValue = "";
// CouncilRegNumber
$CCMMentors->CouncilRegNumber->HrefValue = "";
$CCMMentors->CouncilRegNumber->TooltipValue = "";
// Telephone
$CCMMentors->Telephone->HrefValue = "";
$CCMMentors->Telephone->TooltipValue = "";
// Cellphone
$CCMMentors->Cellphone->HrefValue = "";
$CCMMentors->Cellphone->TooltipValue = "";
// EmailAddress
$CCMMentors->EmailAddress->HrefValue = "";
$CCMMentors->EmailAddress->TooltipValue = "";
// WorkAddress
$CCMMentors->WorkAddress->HrefValue = "";
$CCMMentors->WorkAddress->TooltipValue = "";
// PostalAddress
$CCMMentors->PostalAddress->HrefValue = "";
$CCMMentors->PostalAddress->TooltipValue = "";
// CandUUndertaking
$CCMMentors->CandUUndertaking->HrefValue = "";
$CCMMentors->CandUUndertaking->TooltipValue = "";
// WebUsername
$CCMMentors->WebUsername->HrefValue = "";
$CCMMentors->WebUsername->TooltipValue = "";
// WebPassword
$CCMMentors->WebPassword->HrefValue = "";
$CCMMentors->WebPassword->TooltipValue = "";
// BlockAccess
$CCMMentors->BlockAccess->HrefValue = "";
$CCMMentors->BlockAccess->TooltipValue = "";
// Archived
$CCMMentors->Archived->HrefValue = "";
$CCMMentors->Archived->TooltipValue = "";
// Designation
$CCMMentors->Designation->HrefValue = "";
$CCMMentors->Designation->TooltipValue = "";
// Prof Reg No
$CCMMentors->Prof_Reg_No->HrefValue = "";
$CCMMentors->Prof_Reg_No->TooltipValue = "";
// Reg No
$CCMMentors->Reg_No->HrefValue = "";
$CCMMentors->Reg_No->TooltipValue = "";
}
// Call Row Rendered event
if ($CCMMentors->RowType <> EW_ROWTYPE_AGGREGATEINIT)
$CCMMentors->Row_Rendered();
}
// Export data in HTML/CSV/Word/Excel/XML/Email format
function ExportData() {
global $CCMMentors;
$utf8 = FALSE;
$bSelectLimit = FALSE;
// Load recordset
if ($bSelectLimit) {
$this->lTotalRecs = $CCMMentors->SelectRecordCount();
} else {
if ($rs = $this->LoadRecordset())
$this->lTotalRecs = $rs->RecordCount();
}
$this->lStartRec = 1;
$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 (!$rs) {
header("Content-Type:"); // Remove header
header("Content-Disposition:");
$this->ShowMessage();
return;
}
if ($CCMMentors->Export == "xml") {
$XmlDoc = new cXMLDocument(EW_XML_ENCODING);
$XmlDoc->AddRoot();
} else {
$ExportDoc = new cExportDocument($CCMMentors, "v");
$ExportDoc->ExportHeader();
if ($ExportDoc->Horizontal) { // Horizontal format, write header
$ExportDoc->BeginExportRow();
$ExportDoc->ExportCaption($CCMMentors->CCMMentorID);
$ExportDoc->ExportCaption($CCMMentors->Organisation);
$ExportDoc->ExportCaption($CCMMentors->Title);
$ExportDoc->ExportCaption($CCMMentors->FirstName);
$ExportDoc->ExportCaption($CCMMentors->Surname);
$ExportDoc->ExportCaption($CCMMentors->Initials);
$ExportDoc->ExportCaption($CCMMentors->KnownAs);
$ExportDoc->ExportCaption($CCMMentors->IDNumber);
$ExportDoc->ExportCaption($CCMMentors->ProfessionalCouncil);
$ExportDoc->ExportCaption($CCMMentors->CategoryReg);
$ExportDoc->ExportCaption($CCMMentors->CouncilRegNumber);
$ExportDoc->ExportCaption($CCMMentors->Telephone);
$ExportDoc->ExportCaption($CCMMentors->Cellphone);
$ExportDoc->ExportCaption($CCMMentors->EmailAddress);
$ExportDoc->ExportCaption($CCMMentors->WorkAddress);
$ExportDoc->ExportCaption($CCMMentors->PostalAddress);
$ExportDoc->ExportCaption($CCMMentors->CandUUndertaking);
$ExportDoc->ExportCaption($CCMMentors->WebUsername);
$ExportDoc->ExportCaption($CCMMentors->WebPassword);
$ExportDoc->ExportCaption($CCMMentors->BlockAccess);
$ExportDoc->ExportCaption($CCMMentors->Archived);
$ExportDoc->ExportCaption($CCMMentors->Designation);
$ExportDoc->ExportCaption($CCMMentors->Prof_Reg_No);
$ExportDoc->ExportCaption($CCMMentors->Reg_No);
$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
$CCMMentors->CssClass = "";
$CCMMentors->CssStyle = "";
$CCMMentors->RowType = EW_ROWTYPE_VIEW; // Render view
$this->RenderRow();
if ($CCMMentors->Export == "xml") {
$XmlDoc->AddRow();
$XmlDoc->AddField('CCMMentorID', $CCMMentors->CCMMentorID->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Organisation', $CCMMentors->Organisation->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Title', $CCMMentors->Title->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('FirstName', $CCMMentors->FirstName->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Surname', $CCMMentors->Surname->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Initials', $CCMMentors->Initials->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('KnownAs', $CCMMentors->KnownAs->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('IDNumber', $CCMMentors->IDNumber->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('ProfessionalCouncil', $CCMMentors->ProfessionalCouncil->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('CategoryReg', $CCMMentors->CategoryReg->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('CouncilRegNumber', $CCMMentors->CouncilRegNumber->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Telephone', $CCMMentors->Telephone->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Cellphone', $CCMMentors->Cellphone->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('EmailAddress', $CCMMentors->EmailAddress->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('WorkAddress', $CCMMentors->WorkAddress->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('PostalAddress', $CCMMentors->PostalAddress->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('CandUUndertaking', $CCMMentors->CandUUndertaking->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('WebUsername', $CCMMentors->WebUsername->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('WebPassword', $CCMMentors->WebPassword->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('BlockAccess', $CCMMentors->BlockAccess->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Archived', $CCMMentors->Archived->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Designation', $CCMMentors->Designation->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Prof_Reg_No', $CCMMentors->Prof_Reg_No->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
$XmlDoc->AddField('Reg_No', $CCMMentors->Reg_No->ExportValue($CCMMentors->Export, $CCMMentors->ExportOriginalValue));
} else {
$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled
$ExportDoc->ExportField($CCMMentors->CCMMentorID);
$ExportDoc->ExportField($CCMMentors->Organisation);
$ExportDoc->ExportField($CCMMentors->Title);
$ExportDoc->ExportField($CCMMentors->FirstName);
$ExportDoc->ExportField($CCMMentors->Surname);
$ExportDoc->ExportField($CCMMentors->Initials);
$ExportDoc->ExportField($CCMMentors->KnownAs);
$ExportDoc->ExportField($CCMMentors->IDNumber);
$ExportDoc->ExportField($CCMMentors->ProfessionalCouncil);
$ExportDoc->ExportField($CCMMentors->CategoryReg);
$ExportDoc->ExportField($CCMMentors->CouncilRegNumber);
$ExportDoc->ExportField($CCMMentors->Telephone);
$ExportDoc->ExportField($CCMMentors->Cellphone);
$ExportDoc->ExportField($CCMMentors->EmailAddress);
$ExportDoc->ExportField($CCMMentors->WorkAddress);
$ExportDoc->ExportField($CCMMentors->PostalAddress);
$ExportDoc->ExportField($CCMMentors->CandUUndertaking);
$ExportDoc->ExportField($CCMMentors->WebUsername);
$ExportDoc->ExportField($CCMMentors->WebPassword);
$ExportDoc->ExportField($CCMMentors->BlockAccess);
$ExportDoc->ExportField($CCMMentors->Archived);
$ExportDoc->ExportField($CCMMentors->Designation);
$ExportDoc->ExportField($CCMMentors->Prof_Reg_No);
$ExportDoc->ExportField($CCMMentors->Reg_No);
$ExportDoc->EndExportRow();
}
}
$rs->MoveNext();
}
if ($CCMMentors->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($CCMMentors->Export, array("email", "xml")))
echo "\xEF\xBB\xBF";
// Write debug message if enabled
if (EW_DEBUG_ENABLED)
echo ew_DebugMsg();
// Output data
if ($CCMMentors->Export == "xml") {
header("Content-Type: text/xml");
echo $XmlDoc->XML();
} elseif ($CCMMentors->Export == "email") {
$this->ExportEmail($ExportDoc->Text);
$this->Page_Terminate($CCMMentors->ExportReturnUrl());
} else {
echo $ExportDoc->Text;
}
}
// Export email
function ExportEmail($EmailContent) {
global $Language, $CCMMentors;
$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 ($CCMMentors->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 $CCMMentors;
// Initialize
$sQry = "export=html";
// Add record key QueryString
$sQry .= "&" . substr($CCMMentors->KeyUrl("", ""), 1);
return $sQry;
}
// 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";
}
}
?>