Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/cceadmin/
Upload File :
Current File : /var/www/cesa.co.za/cceadmin/cstArchivedStudents2017info.php

<?php

// Global variable for table object
$cstArchivedStudents2017 = NULL;

//
// Table class for cstArchivedStudents2017
//
class ccstArchivedStudents2017 {
	var $TableVar = 'cstArchivedStudents2017';
	var $TableName = 'cstArchivedStudents2017';
	var $TableType = 'CUSTOMVIEW';
	var $CCEStudentID;
	var $Title;
	var $FirstName;
	var $Surname;
	var $KnownAs;
	var $Organisation;
	var $OrganisationType;
	var $StudentNumber;
	var $CCEFacilitatorID;
	var $Project;
	var $ProjectDiscipline;
	var $IDNumber;
	var $ECSANumber;
	var $Age;
	var $HighestQual;
	var $AreaDiscipline;
	var $Telephone;
	var $Cellphone;
	var $EmailAddress;
	var $HomeAddress;
	var $WorkAddress;
	var $PostalAddress;
	var $Designation;
	var $Department;
	var $CESAAccountNo;
	var $VATNo;
	var $DietaryRequirements;
	var $CVFile;
	var $QualCertificate1;
	var $QualCertificate2;
	var $QualCertificate3;
	var $MemorandumFile;
	var $AgreementFile;
	var $OrderNo;
	var $BookedByName;
	var $BookedByDesignation;
	var $BookedByTelNo;
	var $BookedByFaxNo;
	var $BookedByCellNo;
	var $BookedByEmail;
	var $WebUsername;
	var $WebPassword;
	var $MentorName;
	var $MentorDesig;
	var $MentorTel;
	var $MentorCell;
	var $MentorEmail;
	var $HRManagerName;
	var $HRManagerDesignation;
	var $HRManagerTelNo;
	var $HRManagerCellNo;
	var $HRManagerEmail;
	var $LengthEmploy;
	var $BlockAccess;
	var $Archived;
	var $ResultLetter;
	var $Achieved;
	var $IDFile;
	var $ReasonForLeaving;
	var $fields = array();
	var $UseTokenInUrl = EW_USE_TOKEN_IN_URL;
	var $Export; // Export
	var $ExportOriginalValue = EW_EXPORT_ORIGINAL_VALUE;
	var $ExportAll = TRUE;
	var $SendEmail; // Send email
	var $TableCustomInnerHtml; // Custom inner HTML
	var $BasicSearchKeyword; // Basic search keyword
	var $BasicSearchType; // Basic search type
	var $CurrentFilter; // Current filter
	var $CurrentOrder; // Current order
	var $CurrentOrderType; // Current order type
	var $RowType; // Row type
	var $CssClass; // CSS class
	var $CssStyle; // CSS style
	var $RowAttrs = array(); // Row custom attributes
	var $TableFilter = "";
	var $CurrentAction; // Current action
	var $UpdateConflict; // Update conflict
	var $EventName; // Event name
	var $EventCancelled; // Event cancelled
	var $CancelMessage; // Cancel message

	//
	// Table class constructor
	//
	function __construct() {
		global $Language;

		// CCEStudentID
		$this->CCEStudentID = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_CCEStudentID', 'CCEStudentID', 'CCEStudents.CCEStudentID', 3, -1, FALSE, 'CCEStudents.CCEStudentID', FALSE);
		$this->CCEStudentID->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['CCEStudentID'] =& $this->CCEStudentID;

		// Title
		$this->Title = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Title', 'Title', 'CCEStudents.Title', 200, -1, FALSE, 'CCEStudents.Title', FALSE);
		$this->fields['Title'] =& $this->Title;

		// FirstName
		$this->FirstName = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_FirstName', 'FirstName', 'CCEStudents.FirstName', 200, -1, FALSE, 'CCEStudents.FirstName', FALSE);
		$this->fields['FirstName'] =& $this->FirstName;

		// Surname
		$this->Surname = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Surname', 'Surname', 'CCEStudents.Surname', 200, -1, FALSE, 'CCEStudents.Surname', FALSE);
		$this->fields['Surname'] =& $this->Surname;

		// KnownAs
		$this->KnownAs = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_KnownAs', 'KnownAs', 'CCEStudents.KnownAs', 200, -1, FALSE, 'CCEStudents.KnownAs', FALSE);
		$this->fields['KnownAs'] =& $this->KnownAs;

		// Organisation
		$this->Organisation = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Organisation', 'Organisation', 'CCEStudents.Organisation', 200, -1, FALSE, 'CCEStudents.Organisation', FALSE);
		$this->fields['Organisation'] =& $this->Organisation;

		// OrganisationType
		$this->OrganisationType = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_OrganisationType', 'OrganisationType', 'CCEStudents.OrganisationType', 200, -1, FALSE, 'CCEStudents.OrganisationType', FALSE);
		$this->fields['OrganisationType'] =& $this->OrganisationType;

		// StudentNumber
		$this->StudentNumber = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_StudentNumber', 'StudentNumber', 'CCEStudents.StudentNumber', 200, -1, FALSE, 'CCEStudents.StudentNumber', FALSE);
		$this->fields['StudentNumber'] =& $this->StudentNumber;

		// CCEFacilitatorID
		$this->CCEFacilitatorID = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_CCEFacilitatorID', 'CCEFacilitatorID', 'CCEStudents.CCEFacilitatorID', 3, -1, FALSE, 'CCEStudents.CCEFacilitatorID', FALSE);
		$this->CCEFacilitatorID->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['CCEFacilitatorID'] =& $this->CCEFacilitatorID;

		// Project
		$this->Project = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Project', 'Project', 'CCEStudents.Project', 3, -1, FALSE, 'CCEStudents.Project', FALSE);
		$this->Project->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['Project'] =& $this->Project;

		// ProjectDiscipline
		$this->ProjectDiscipline = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_ProjectDiscipline', 'ProjectDiscipline', 'CCEStudents.ProjectDiscipline', 200, -1, FALSE, 'CCEStudents.ProjectDiscipline', FALSE);
		$this->fields['ProjectDiscipline'] =& $this->ProjectDiscipline;

		// IDNumber
		$this->IDNumber = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_IDNumber', 'IDNumber', 'CCEStudents.IDNumber', 200, -1, FALSE, 'CCEStudents.IDNumber', FALSE);
		$this->fields['IDNumber'] =& $this->IDNumber;

		// ECSANumber
		$this->ECSANumber = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_ECSANumber', 'ECSANumber', 'CCEStudents.ECSANumber', 200, -1, FALSE, 'CCEStudents.ECSANumber', FALSE);
		$this->fields['ECSANumber'] =& $this->ECSANumber;

		// Age
		$this->Age = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Age', 'Age', 'CCEStudents.Age', 3, -1, FALSE, 'CCEStudents.Age', FALSE);
		$this->Age->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['Age'] =& $this->Age;

		// HighestQual
		$this->HighestQual = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_HighestQual', 'HighestQual', 'CCEStudents.HighestQual', 200, -1, FALSE, 'CCEStudents.HighestQual', FALSE);
		$this->fields['HighestQual'] =& $this->HighestQual;

		// AreaDiscipline
		$this->AreaDiscipline = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_AreaDiscipline', 'AreaDiscipline', 'CCEStudents.AreaDiscipline', 200, -1, FALSE, 'CCEStudents.AreaDiscipline', FALSE);
		$this->fields['AreaDiscipline'] =& $this->AreaDiscipline;

		// Telephone
		$this->Telephone = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Telephone', 'Telephone', 'CCEStudents.Telephone', 200, -1, FALSE, 'CCEStudents.Telephone', FALSE);
		$this->fields['Telephone'] =& $this->Telephone;

		// Cellphone
		$this->Cellphone = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Cellphone', 'Cellphone', 'CCEStudents.Cellphone', 200, -1, FALSE, 'CCEStudents.Cellphone', FALSE);
		$this->fields['Cellphone'] =& $this->Cellphone;

		// EmailAddress
		$this->EmailAddress = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_EmailAddress', 'EmailAddress', 'CCEStudents.EmailAddress', 200, -1, FALSE, 'CCEStudents.EmailAddress', FALSE);
		$this->fields['EmailAddress'] =& $this->EmailAddress;

		// HomeAddress
		$this->HomeAddress = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_HomeAddress', 'HomeAddress', 'CCEStudents.HomeAddress', 201, -1, FALSE, 'CCEStudents.HomeAddress', FALSE);
		$this->fields['HomeAddress'] =& $this->HomeAddress;

		// WorkAddress
		$this->WorkAddress = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_WorkAddress', 'WorkAddress', 'CCEStudents.WorkAddress', 201, -1, FALSE, 'CCEStudents.WorkAddress', FALSE);
		$this->fields['WorkAddress'] =& $this->WorkAddress;

		// PostalAddress
		$this->PostalAddress = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_PostalAddress', 'PostalAddress', 'CCEStudents.PostalAddress', 201, -1, FALSE, 'CCEStudents.PostalAddress', FALSE);
		$this->fields['PostalAddress'] =& $this->PostalAddress;

		// Designation
		$this->Designation = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Designation', 'Designation', 'CCEStudents.Designation', 200, -1, FALSE, 'CCEStudents.Designation', FALSE);
		$this->fields['Designation'] =& $this->Designation;

		// Department
		$this->Department = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Department', 'Department', 'CCEStudents.Department', 200, -1, FALSE, 'CCEStudents.Department', FALSE);
		$this->fields['Department'] =& $this->Department;

		// CESAAccountNo
		$this->CESAAccountNo = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_CESAAccountNo', 'CESAAccountNo', 'CCEStudents.CESAAccountNo', 200, -1, FALSE, 'CCEStudents.CESAAccountNo', FALSE);
		$this->fields['CESAAccountNo'] =& $this->CESAAccountNo;

		// VATNo
		$this->VATNo = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_VATNo', 'VATNo', 'CCEStudents.VATNo', 200, -1, FALSE, 'CCEStudents.VATNo', FALSE);
		$this->fields['VATNo'] =& $this->VATNo;

		// DietaryRequirements
		$this->DietaryRequirements = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_DietaryRequirements', 'DietaryRequirements', 'CCEStudents.DietaryRequirements', 200, -1, FALSE, 'CCEStudents.DietaryRequirements', FALSE);
		$this->fields['DietaryRequirements'] =& $this->DietaryRequirements;

		// CVFile
		$this->CVFile = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_CVFile', 'CVFile', 'CCEStudents.CVFile', 200, -1, TRUE, 'CCEStudents.CVFile', FALSE);
		$this->CVFile->UploadPath = "students";
		$this->fields['CVFile'] =& $this->CVFile;

		// QualCertificate1
		$this->QualCertificate1 = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_QualCertificate1', 'QualCertificate1', 'CCEStudents.QualCertificate1', 200, -1, TRUE, 'CCEStudents.QualCertificate1', FALSE);
		$this->QualCertificate1->UploadPath = "students";
		$this->fields['QualCertificate1'] =& $this->QualCertificate1;

		// QualCertificate2
		$this->QualCertificate2 = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_QualCertificate2', 'QualCertificate2', 'CCEStudents.QualCertificate2', 200, -1, TRUE, 'CCEStudents.QualCertificate2', FALSE);
		$this->QualCertificate2->UploadPath = "students";
		$this->fields['QualCertificate2'] =& $this->QualCertificate2;

		// QualCertificate3
		$this->QualCertificate3 = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_QualCertificate3', 'QualCertificate3', 'CCEStudents.QualCertificate3', 200, -1, TRUE, 'CCEStudents.QualCertificate3', FALSE);
		$this->QualCertificate3->UploadPath = "students";
		$this->fields['QualCertificate3'] =& $this->QualCertificate3;

		// MemorandumFile
		$this->MemorandumFile = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_MemorandumFile', 'MemorandumFile', 'CCEStudents.MemorandumFile', 200, -1, TRUE, 'CCEStudents.MemorandumFile', FALSE);
		$this->MemorandumFile->UploadPath = "students";
		$this->fields['MemorandumFile'] =& $this->MemorandumFile;

		// AgreementFile
		$this->AgreementFile = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_AgreementFile', 'AgreementFile', 'CCEStudents.AgreementFile', 200, -1, TRUE, 'CCEStudents.AgreementFile', FALSE);
		$this->AgreementFile->UploadPath = "students";
		$this->fields['AgreementFile'] =& $this->AgreementFile;

		// OrderNo
		$this->OrderNo = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_OrderNo', 'OrderNo', 'CCEStudents.OrderNo', 200, -1, FALSE, 'CCEStudents.OrderNo', FALSE);
		$this->fields['OrderNo'] =& $this->OrderNo;

		// BookedByName
		$this->BookedByName = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_BookedByName', 'BookedByName', 'CCEStudents.BookedByName', 200, -1, FALSE, 'CCEStudents.BookedByName', FALSE);
		$this->fields['BookedByName'] =& $this->BookedByName;

		// BookedByDesignation
		$this->BookedByDesignation = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_BookedByDesignation', 'BookedByDesignation', 'CCEStudents.BookedByDesignation', 200, -1, FALSE, 'CCEStudents.BookedByDesignation', FALSE);
		$this->fields['BookedByDesignation'] =& $this->BookedByDesignation;

		// BookedByTelNo
		$this->BookedByTelNo = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_BookedByTelNo', 'BookedByTelNo', 'CCEStudents.BookedByTelNo', 200, -1, FALSE, 'CCEStudents.BookedByTelNo', FALSE);
		$this->fields['BookedByTelNo'] =& $this->BookedByTelNo;

		// BookedByFaxNo
		$this->BookedByFaxNo = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_BookedByFaxNo', 'BookedByFaxNo', 'CCEStudents.BookedByFaxNo', 200, -1, FALSE, 'CCEStudents.BookedByFaxNo', FALSE);
		$this->fields['BookedByFaxNo'] =& $this->BookedByFaxNo;

		// BookedByCellNo
		$this->BookedByCellNo = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_BookedByCellNo', 'BookedByCellNo', 'CCEStudents.BookedByCellNo', 200, -1, FALSE, 'CCEStudents.BookedByCellNo', FALSE);
		$this->fields['BookedByCellNo'] =& $this->BookedByCellNo;

		// BookedByEmail
		$this->BookedByEmail = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_BookedByEmail', 'BookedByEmail', 'CCEStudents.BookedByEmail', 200, -1, FALSE, 'CCEStudents.BookedByEmail', FALSE);
		$this->fields['BookedByEmail'] =& $this->BookedByEmail;

		// WebUsername
		$this->WebUsername = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_WebUsername', 'WebUsername', 'CCEStudents.WebUsername', 200, -1, FALSE, 'CCEStudents.WebUsername', FALSE);
		$this->fields['WebUsername'] =& $this->WebUsername;

		// WebPassword
		$this->WebPassword = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_WebPassword', 'WebPassword', 'CCEStudents.WebPassword', 200, -1, FALSE, 'CCEStudents.WebPassword', FALSE);
		$this->fields['WebPassword'] =& $this->WebPassword;

		// MentorName
		$this->MentorName = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_MentorName', 'MentorName', 'CCEStudents.MentorName', 200, -1, FALSE, 'CCEStudents.MentorName', FALSE);
		$this->fields['MentorName'] =& $this->MentorName;

		// MentorDesig
		$this->MentorDesig = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_MentorDesig', 'MentorDesig', 'CCEStudents.MentorDesig', 200, -1, FALSE, 'CCEStudents.MentorDesig', FALSE);
		$this->fields['MentorDesig'] =& $this->MentorDesig;

		// MentorTel
		$this->MentorTel = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_MentorTel', 'MentorTel', 'CCEStudents.MentorTel', 200, -1, FALSE, 'CCEStudents.MentorTel', FALSE);
		$this->fields['MentorTel'] =& $this->MentorTel;

		// MentorCell
		$this->MentorCell = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_MentorCell', 'MentorCell', 'CCEStudents.MentorCell', 200, -1, FALSE, 'CCEStudents.MentorCell', FALSE);
		$this->fields['MentorCell'] =& $this->MentorCell;

		// MentorEmail
		$this->MentorEmail = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_MentorEmail', 'MentorEmail', 'CCEStudents.MentorEmail', 200, -1, FALSE, 'CCEStudents.MentorEmail', FALSE);
		$this->fields['MentorEmail'] =& $this->MentorEmail;

		// HRManagerName
		$this->HRManagerName = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_HRManagerName', 'HRManagerName', 'CCEStudents.HRManagerName', 200, -1, FALSE, 'CCEStudents.HRManagerName', FALSE);
		$this->fields['HRManagerName'] =& $this->HRManagerName;

		// HRManagerDesignation
		$this->HRManagerDesignation = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_HRManagerDesignation', 'HRManagerDesignation', 'CCEStudents.HRManagerDesignation', 200, -1, FALSE, 'CCEStudents.HRManagerDesignation', FALSE);
		$this->fields['HRManagerDesignation'] =& $this->HRManagerDesignation;

		// HRManagerTelNo
		$this->HRManagerTelNo = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_HRManagerTelNo', 'HRManagerTelNo', 'CCEStudents.HRManagerTelNo', 200, -1, FALSE, 'CCEStudents.HRManagerTelNo', FALSE);
		$this->fields['HRManagerTelNo'] =& $this->HRManagerTelNo;

		// HRManagerCellNo
		$this->HRManagerCellNo = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_HRManagerCellNo', 'HRManagerCellNo', 'CCEStudents.HRManagerCellNo', 200, -1, FALSE, 'CCEStudents.HRManagerCellNo', FALSE);
		$this->fields['HRManagerCellNo'] =& $this->HRManagerCellNo;

		// HRManagerEmail
		$this->HRManagerEmail = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_HRManagerEmail', 'HRManagerEmail', 'CCEStudents.HRManagerEmail', 200, -1, FALSE, 'CCEStudents.HRManagerEmail', FALSE);
		$this->fields['HRManagerEmail'] =& $this->HRManagerEmail;

		// LengthEmploy
		$this->LengthEmploy = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_LengthEmploy', 'LengthEmploy', 'CCEStudents.LengthEmploy', 200, -1, FALSE, 'CCEStudents.LengthEmploy', FALSE);
		$this->fields['LengthEmploy'] =& $this->LengthEmploy;

		// BlockAccess
		$this->BlockAccess = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_BlockAccess', 'BlockAccess', 'CCEStudents.BlockAccess', 200, -1, FALSE, 'CCEStudents.BlockAccess', FALSE);
		$this->fields['BlockAccess'] =& $this->BlockAccess;

		// Archived
		$this->Archived = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Archived', 'Archived', 'CCEStudents.Archived', 16, -1, FALSE, 'CCEStudents.Archived', FALSE);
		$this->Archived->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['Archived'] =& $this->Archived;

		// ResultLetter
		$this->ResultLetter = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_ResultLetter', 'ResultLetter', 'CCEStudents.ResultLetter', 200, -1, TRUE, 'CCEStudents.ResultLetter', FALSE);
		$this->ResultLetter->UploadPath = "students";
		$this->fields['ResultLetter'] =& $this->ResultLetter;

		// Achieved
		$this->Achieved = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_Achieved', 'Achieved', 'CCEStudents.Achieved', 16, -1, FALSE, 'CCEStudents.Achieved', FALSE);
		$this->Achieved->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['Achieved'] =& $this->Achieved;

		// IDFile
		$this->IDFile = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_IDFile', 'IDFile', 'CCEStudents.IDFile', 200, -1, TRUE, 'CCEStudents.IDFile', FALSE);
		$this->IDFile->UploadPath = "students";
		$this->fields['IDFile'] =& $this->IDFile;

		// ReasonForLeaving
		$this->ReasonForLeaving = new cField('cstArchivedStudents2017', 'cstArchivedStudents2017', 'x_ReasonForLeaving', 'ReasonForLeaving', 'CCEStudents.ReasonForLeaving', 201, -1, FALSE, 'CCEStudents.ReasonForLeaving', FALSE);
		$this->fields['ReasonForLeaving'] =& $this->ReasonForLeaving;
	}

	// Table caption
	function TableCaption() {
		global $Language;
		return $Language->TablePhrase($this->TableVar, "TblCaption");
	}

	// Page caption
	function PageCaption($Page) {
		global $Language;
		$Caption = $Language->TablePhrase($this->TableVar, "TblPageCaption" . $Page);
		if ($Caption == "") $Caption = "Page " . $Page;
		return $Caption;
	}

	// Export return page
	function ExportReturnUrl() {
		$url = @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_EXPORT_RETURN_URL];
		return ($url <> "") ? $url : ew_CurrentPage();
	}

	function setExportReturnUrl($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_EXPORT_RETURN_URL] = $v;
	}

	// Records per page
	function getRecordsPerPage() {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_REC_PER_PAGE];
	}

	function setRecordsPerPage($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_REC_PER_PAGE] = $v;
	}

	// Start record number
	function getStartRecordNumber() {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_START_REC];
	}

	function setStartRecordNumber($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_START_REC] = $v;
	}

	// Search highlight name
	function HighlightName() {
		return "cstArchivedStudents2017_Highlight";
	}

	// Advanced search
	function getAdvancedSearch($fld) {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_ADVANCED_SEARCH . "_" . $fld];
	}

	function setAdvancedSearch($fld, $v) {
		if (@$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_ADVANCED_SEARCH . "_" . $fld] <> $v) {
			$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_ADVANCED_SEARCH . "_" . $fld] = $v;
		}
	}

	// Basic search keyword
	function getSessionBasicSearchKeyword() {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_BASIC_SEARCH];
	}

	function setSessionBasicSearchKeyword($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_BASIC_SEARCH] = $v;
	}

	// Basic search type
	function getSessionBasicSearchType() {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_BASIC_SEARCH_TYPE];
	}

	function setSessionBasicSearchType($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_BASIC_SEARCH_TYPE] = $v;
	}

	// Search WHERE clause
	function getSearchWhere() {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_SEARCH_WHERE];
	}

	function setSearchWhere($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_SEARCH_WHERE] = $v;
	}

	// Multiple column sort
	function UpdateSort(&$ofld, $ctrl) {
		if ($this->CurrentOrder == $ofld->FldName) {
			$sSortField = $ofld->FldExpression;
			$sLastSort = $ofld->getSort();
			if ($this->CurrentOrderType == "ASC" || $this->CurrentOrderType == "DESC") {
				$sThisSort = $this->CurrentOrderType;
			} else {
				$sThisSort = ($sLastSort == "ASC") ? "DESC" : "ASC";
			}
			$ofld->setSort($sThisSort);
			if ($ctrl) {
				$sOrderBy = $this->getSessionOrderBy();
				if (strpos($sOrderBy, $sSortField . " " . $sLastSort) !== FALSE) {
					$sOrderBy = str_replace($sSortField . " " . $sLastSort, $sSortField . " " . $sThisSort, $sOrderBy);
				} else {
					if ($sOrderBy <> "") $sOrderBy .= ", ";
					$sOrderBy .= $sSortField . " " . $sThisSort;
				}
				$this->setSessionOrderBy($sOrderBy); // Save to Session
			} else {
				$this->setSessionOrderBy($sSortField . " " . $sThisSort); // Save to Session
			}
		} else {
			if (!$ctrl) $ofld->setSort("");
		}
	}

	// Session WHERE clause
	function getSessionWhere() {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_WHERE];
	}

	function setSessionWhere($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_WHERE] = $v;
	}

	// Session ORDER BY
	function getSessionOrderBy() {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_ORDER_BY];
	}

	function setSessionOrderBy($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_ORDER_BY] = $v;
	}

	// Session key
	function getKey($fld) {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_KEY . "_" . $fld];
	}

	function setKey($fld, $v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_KEY . "_" . $fld] = $v;
	}

	// Table level SQL
	function SqlFrom() { // From
		return "CCEStudents Inner Join CCEStudentCourses On CCEStudents.CCEStudentID = CCEStudentCourses.CCEStudentID";
	}

	function SqlSelect() { // Select
		return "SELECT CCEStudents.CCEStudentID, CCEStudents.Title, CCEStudents.FirstName, CCEStudents.Surname, CCEStudents.KnownAs, CCEStudents.Organisation, CCEStudents.OrganisationType, CCEStudents.StudentNumber, CCEStudents.CCEFacilitatorID, CCEStudents.Project, CCEStudents.ProjectDiscipline, CCEStudents.IDNumber, CCEStudents.ECSANumber, CCEStudents.Age, CCEStudents.HighestQual, CCEStudents.AreaDiscipline, CCEStudents.Telephone, CCEStudents.Cellphone, CCEStudents.EmailAddress, CCEStudents.HomeAddress, CCEStudents.WorkAddress, CCEStudents.PostalAddress, CCEStudents.Designation, CCEStudents.Department, CCEStudents.CESAAccountNo, CCEStudents.VATNo, CCEStudents.DietaryRequirements, CCEStudents.CVFile, CCEStudents.QualCertificate1, CCEStudents.QualCertificate2, CCEStudents.QualCertificate3, CCEStudents.MemorandumFile, CCEStudents.AgreementFile, CCEStudents.OrderNo, CCEStudents.BookedByName, CCEStudents.BookedByDesignation, CCEStudents.BookedByTelNo, CCEStudents.BookedByFaxNo, CCEStudents.BookedByCellNo, CCEStudents.BookedByEmail, CCEStudents.WebUsername, CCEStudents.WebPassword, CCEStudents.MentorName, CCEStudents.MentorDesig, CCEStudents.MentorTel, CCEStudents.MentorCell, CCEStudents.MentorEmail, CCEStudents.HRManagerName, CCEStudents.HRManagerDesignation, CCEStudents.HRManagerTelNo, CCEStudents.HRManagerCellNo, CCEStudents.HRManagerEmail, CCEStudents.LengthEmploy, CCEStudents.BlockAccess, CCEStudents.Archived, CCEStudents.ResultLetter, CCEStudents.Achieved, CCEStudents.IDFile, CCEStudents.ReasonForLeaving FROM " . $this->SqlFrom();
	}

	function SqlWhere() { // Where
		$sWhere = "CCEStudents.Archived = 1 And CCEStudentCourses.CCECourseScheduleID = 8";
		$this->TableFilter = "";
		if ($this->TableFilter <> "") {
			if ($sWhere <> "") $sWhere = "(" . $sWhere . ") AND (";
			$sWhere .= "(" . $this->TableFilter . ")";
		}
		return $sWhere;
	}

	function SqlGroupBy() { // Group By
		return "";
	}

	function SqlHaving() { // Having
		return "";
	}

	function SqlOrderBy() { // Order By
		return "";
	}

	// Check if Anonymous User is allowed
	function AllowAnonymousUser() {
		switch (EW_PAGE_ID) {
			case "add":
			case "register":
			case "addopt":
				return FALSE;
			case "edit":
			case "update":
				return FALSE;
			case "delete":
				return FALSE;
			case "view":
				return FALSE;
			case "search":
				return FALSE;
			default:
				return FALSE;
		}
	}

	// Apply User ID filters
	function ApplyUserIDFilters($sFilter) {
		return $sFilter;
	}

	// Get SQL
	function GetSQL($where, $orderby) {
		return ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(),
			$this->SqlGroupBy(), $this->SqlHaving(), $this->SqlOrderBy(),
			$where, $orderby);
	}

	// Table SQL
	function SQL() {
		$sFilter = $this->CurrentFilter;
		$sFilter = $this->ApplyUserIDFilters($sFilter);
		$sSort = $this->getSessionOrderBy();
		return ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(),
			$this->SqlGroupBy(), $this->SqlHaving(), $this->SqlOrderBy(),
			$sFilter, $sSort);
	}

	// Table SQL with List page filter
	function SelectSQL() {
		$sFilter = $this->getSessionWhere();
		if ($this->CurrentFilter <> "") {
			if ($sFilter <> "") $sFilter = "(" . $sFilter . ") AND ";
			$sFilter .= "(" . $this->CurrentFilter . ")";
		}
		$sFilter = $this->ApplyUserIDFilters($sFilter);
		$sSort = $this->getSessionOrderBy();
		return ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(), $this->SqlGroupBy(),
			$this->SqlHaving(), $this->SqlOrderBy(), $sFilter, $sSort);
	}

	// Try to get record count
	function TryGetRecordCount($sSql) {
		global $conn;
		$cnt = -1;
		if ($this->TableType == 'TABLE' || $this->TableType == 'VIEW') {
			$sSql = "SELECT COUNT(*) FROM" . substr($sSql, 13);
		} else {
			$sSql = "SELECT COUNT(*) FROM (" . $sSql . ") EW_COUNT_TABLE";
		}
		if ($rs = $conn->Execute($sSql)) {
			if (!$rs->EOF && $rs->FieldCount() > 0) {
				$cnt = $rs->fields[0];
				$rs->Close();
			}
		}
		return intval($cnt);
	}

	// Get record count based on filter (for detail record count in master table pages)
	function LoadRecordCount($sFilter) {
		$origFilter = $this->CurrentFilter;
		$this->CurrentFilter = $sFilter;
		$this->Recordset_Selecting($this->CurrentFilter);
		$sSql = $this->SQL();
		$cnt = $this->TryGetRecordCount($sSql);
		if ($cnt == -1) {
			if ($rs = $this->LoadRs($this->CurrentFilter)) {
				$cnt = $rs->RecordCount();
				$rs->Close();
			}
		}
		$this->CurrentFilter = $origFilter;
		return intval($cnt);
	}

	// Get record count (for current List page)
	function SelectRecordCount() {
		global $conn;
		$origFilter = $this->CurrentFilter;
		$this->Recordset_Selecting($this->CurrentFilter);
		$sSql = $this->SelectSQL();
		$cnt = $this->TryGetRecordCount($sSql);
		if ($cnt == -1) {
			if ($rs = $conn->Execute($this->SelectSQL())) {
				$cnt = $rs->RecordCount();
				$rs->Close();
			}
		}
		$this->CurrentFilter = $origFilter;
		return intval($cnt);
	}

	// INSERT statement
	function InsertSQL(&$rs) {
		global $conn;
		$names = "";
		$values = "";
		foreach ($rs as $name => $value) {
			$names .= $this->fields[$name]->FldExpression . ",";
			$values .= ew_QuotedValue($value, $this->fields[$name]->FldDataType) . ",";
		}
		if (substr($names, -1) == ",") $names = substr($names, 0, strlen($names)-1);
		if (substr($values, -1) == ",") $values = substr($values, 0, strlen($values)-1);
		return "INSERT INTO CCEStudents Inner Join CCEStudentCourses On CCEStudents.CCEStudentID = CCEStudentCourses.CCEStudentID ($names) VALUES ($values)";
	}

	// UPDATE statement
	function UpdateSQL(&$rs) {
		global $conn;
		$SQL = "UPDATE CCEStudents Inner Join CCEStudentCourses On CCEStudents.CCEStudentID = CCEStudentCourses.CCEStudentID SET ";
		foreach ($rs as $name => $value) {
			$SQL .= $this->fields[$name]->FldExpression . "=";
			$SQL .= ew_QuotedValue($value, $this->fields[$name]->FldDataType) . ",";
		}
		if (substr($SQL, -1) == ",") $SQL = substr($SQL, 0, strlen($SQL)-1);
		if ($this->CurrentFilter <> "")	$SQL .= " WHERE " . $this->CurrentFilter;
		return $SQL;
	}

	// DELETE statement
	function DeleteSQL(&$rs) {
		$SQL = "DELETE FROM CCEStudents Inner Join CCEStudentCourses On CCEStudents.CCEStudentID = CCEStudentCourses.CCEStudentID WHERE ";
		$SQL .= ew_QuotedName('CCEStudentID') . '=' . ew_QuotedValue($rs['CCEStudentID'], $this->CCEStudentID->FldDataType) . ' AND ';
		if (substr($SQL, -5) == " AND ") $SQL = substr($SQL, 0, strlen($SQL)-5);
		if ($this->CurrentFilter <> "")	$SQL .= " AND " . $this->CurrentFilter;
		return $SQL;
	}

	// Key filter WHERE clause
	function SqlKeyFilter() {
		return "CCEStudents.CCEStudentID = @CCEStudentID@";
	}

	// Key filter
	function KeyFilter() {
		$sKeyFilter = $this->SqlKeyFilter();
		if (!is_numeric($this->CCEStudentID->CurrentValue))
			$sKeyFilter = "0=1"; // Invalid key
		$sKeyFilter = str_replace("@CCEStudentID@", ew_AdjustSql($this->CCEStudentID->CurrentValue), $sKeyFilter); // Replace key value
		return $sKeyFilter;
	}

	// Return page URL
	function getReturnUrl() {
		$name = EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_RETURN_URL;

		// Get referer URL automatically
		if (ew_ServerVar("HTTP_REFERER") <> "" && ew_ReferPage() <> ew_CurrentPage() && ew_ReferPage() <> "login.php") // Referer not same page or login page
			$_SESSION[$name] = ew_ServerVar("HTTP_REFERER"); // Save to Session
		if (@$_SESSION[$name] <> "") {
			return $_SESSION[$name];
		} else {
			return "cstArchivedStudents2017list.php";
		}
	}

	function setReturnUrl($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_RETURN_URL] = $v;
	}

	// List URL
	function ListUrl() {
		return "cstArchivedStudents2017list.php";
	}

	// View URL
	function ViewUrl() {
		return $this->KeyUrl("cstArchivedStudents2017view.php", $this->UrlParm());
	}

	// Add URL
	function AddUrl() {
		$AddUrl = "cstArchivedStudents2017add.php";
		$sUrlParm = $this->UrlParm();
		if ($sUrlParm <> "")
			$AddUrl .= "?" . $sUrlParm;
		return $AddUrl;
	}

	// Edit URL
	function EditUrl() {
		return $this->KeyUrl("cstArchivedStudents2017edit.php", $this->UrlParm());
	}

	// Inline edit URL
	function InlineEditUrl() {
		return $this->KeyUrl(ew_CurrentPage(), $this->UrlParm("a=edit"));
	}

	// Copy URL
	function CopyUrl() {
		return $this->KeyUrl("cstArchivedStudents2017add.php", $this->UrlParm());
	}

	// Inline copy URL
	function InlineCopyUrl() {
		return $this->KeyUrl(ew_CurrentPage(), $this->UrlParm("a=copy"));
	}

	// Delete URL
	function DeleteUrl() {
		return $this->KeyUrl("cstArchivedStudents2017delete.php", $this->UrlParm());
	}

	// Add key value to URL
	function KeyUrl($url, $parm = "") {
		$sUrl = $url . "?";
		if ($parm <> "") $sUrl .= $parm . "&";
		if (!is_null($this->CCEStudentID->CurrentValue)) {
			$sUrl .= "CCEStudentID=" . urlencode($this->CCEStudentID->CurrentValue);
		} else {
			return "javascript:alert(ewLanguage.Phrase(\"InvalidRecord\"));";
		}
		return $sUrl;
	}

	// Sort URL
	function SortUrl(&$fld) {
		if ($this->CurrentAction <> "" || $this->Export <> "" ||
			in_array($fld->FldType, array(128, 204, 205))) { // Unsortable data type
				return "";
		} elseif ($fld->Sortable) {
			$sUrlParm = $this->UrlParm("order=" . urlencode($fld->FldName) . "&ordertype=" . $fld->ReverseSort());
			return ew_CurrentPage() . "?" . $sUrlParm;
		} else {
			return "";
		}
	}

	// Add URL parameter
	function UrlParm($parm = "") {
		$UrlParm = ($this->UseTokenInUrl) ? "t=cstArchivedStudents2017" : "";
		if ($parm <> "") {
			if ($UrlParm <> "")
				$UrlParm .= "&";
			$UrlParm .= $parm;
		}
		return $UrlParm;
	}

	// Load rows based on filter
	function &LoadRs($sFilter) {
		global $conn;

		// Set up filter (SQL WHERE clause) and get return SQL
		$this->CurrentFilter = $sFilter;
		$sSql = $this->SQL();
		return $conn->Execute($sSql);
	}

	// Load row values from recordset
	function LoadListRowValues(&$rs) {
		$this->CCEStudentID->setDbValue($rs->fields('CCEStudentID'));
		$this->Title->setDbValue($rs->fields('Title'));
		$this->FirstName->setDbValue($rs->fields('FirstName'));
		$this->Surname->setDbValue($rs->fields('Surname'));
		$this->KnownAs->setDbValue($rs->fields('KnownAs'));
		$this->Organisation->setDbValue($rs->fields('Organisation'));
		$this->OrganisationType->setDbValue($rs->fields('OrganisationType'));
		$this->StudentNumber->setDbValue($rs->fields('StudentNumber'));
		$this->CCEFacilitatorID->setDbValue($rs->fields('CCEFacilitatorID'));
		$this->Project->setDbValue($rs->fields('Project'));
		$this->ProjectDiscipline->setDbValue($rs->fields('ProjectDiscipline'));
		$this->IDNumber->setDbValue($rs->fields('IDNumber'));
		$this->ECSANumber->setDbValue($rs->fields('ECSANumber'));
		$this->Age->setDbValue($rs->fields('Age'));
		$this->HighestQual->setDbValue($rs->fields('HighestQual'));
		$this->AreaDiscipline->setDbValue($rs->fields('AreaDiscipline'));
		$this->Telephone->setDbValue($rs->fields('Telephone'));
		$this->Cellphone->setDbValue($rs->fields('Cellphone'));
		$this->EmailAddress->setDbValue($rs->fields('EmailAddress'));
		$this->HomeAddress->setDbValue($rs->fields('HomeAddress'));
		$this->WorkAddress->setDbValue($rs->fields('WorkAddress'));
		$this->PostalAddress->setDbValue($rs->fields('PostalAddress'));
		$this->Designation->setDbValue($rs->fields('Designation'));
		$this->Department->setDbValue($rs->fields('Department'));
		$this->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
		$this->VATNo->setDbValue($rs->fields('VATNo'));
		$this->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
		$this->CVFile->Upload->DbValue = $rs->fields('CVFile');
		$this->QualCertificate1->Upload->DbValue = $rs->fields('QualCertificate1');
		$this->QualCertificate2->Upload->DbValue = $rs->fields('QualCertificate2');
		$this->QualCertificate3->Upload->DbValue = $rs->fields('QualCertificate3');
		$this->MemorandumFile->Upload->DbValue = $rs->fields('MemorandumFile');
		$this->AgreementFile->Upload->DbValue = $rs->fields('AgreementFile');
		$this->OrderNo->setDbValue($rs->fields('OrderNo'));
		$this->BookedByName->setDbValue($rs->fields('BookedByName'));
		$this->BookedByDesignation->setDbValue($rs->fields('BookedByDesignation'));
		$this->BookedByTelNo->setDbValue($rs->fields('BookedByTelNo'));
		$this->BookedByFaxNo->setDbValue($rs->fields('BookedByFaxNo'));
		$this->BookedByCellNo->setDbValue($rs->fields('BookedByCellNo'));
		$this->BookedByEmail->setDbValue($rs->fields('BookedByEmail'));
		$this->WebUsername->setDbValue($rs->fields('WebUsername'));
		$this->WebPassword->setDbValue($rs->fields('WebPassword'));
		$this->MentorName->setDbValue($rs->fields('MentorName'));
		$this->MentorDesig->setDbValue($rs->fields('MentorDesig'));
		$this->MentorTel->setDbValue($rs->fields('MentorTel'));
		$this->MentorCell->setDbValue($rs->fields('MentorCell'));
		$this->MentorEmail->setDbValue($rs->fields('MentorEmail'));
		$this->HRManagerName->setDbValue($rs->fields('HRManagerName'));
		$this->HRManagerDesignation->setDbValue($rs->fields('HRManagerDesignation'));
		$this->HRManagerTelNo->setDbValue($rs->fields('HRManagerTelNo'));
		$this->HRManagerCellNo->setDbValue($rs->fields('HRManagerCellNo'));
		$this->HRManagerEmail->setDbValue($rs->fields('HRManagerEmail'));
		$this->LengthEmploy->setDbValue($rs->fields('LengthEmploy'));
		$this->BlockAccess->setDbValue($rs->fields('BlockAccess'));
		$this->Archived->setDbValue($rs->fields('Archived'));
		$this->ResultLetter->Upload->DbValue = $rs->fields('ResultLetter');
		$this->Achieved->setDbValue($rs->fields('Achieved'));
		$this->IDFile->Upload->DbValue = $rs->fields('IDFile');
		$this->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
	}

	// Render list row values
	function RenderListRow() {
		global $conn, $Security;

		// Call Row Rendering event
		$this->Row_Rendering();

   // Common render codes
		// FirstName

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

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

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

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

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

		// Age
		$this->Age->CellCssStyle = ""; $this->Age->CellCssClass = "";
		$this->Age->CellAttrs = array(); $this->Age->ViewAttrs = array(); $this->Age->EditAttrs = array();

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

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

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

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

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

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

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

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

		// Age
		$this->Age->ViewValue = $this->Age->CurrentValue;
		$this->Age->CssStyle = "";
		$this->Age->CssClass = "";
		$this->Age->ViewCustomAttributes = "";

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

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

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

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

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

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

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

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

		// Age
		$this->Age->HrefValue = "";
		$this->Age->TooltipValue = "";

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

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

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

		// Call Row Rendered event
		$this->Row_Rendered();
	}

	// Aggregate list row values
	function AggregateListRowValues() {
	}

	// Aggregate list row (for rendering)
	function AggregateListRow() {
	}

	// Row styles
	function RowStyles() {
		$sAtt = "";
		$sStyle = trim($this->CssStyle);
		if (@$this->RowAttrs["style"] <> "")
			$sStyle .= " " . $this->RowAttrs["style"];
		$sClass = trim($this->CssClass);
		if (@$this->RowAttrs["class"] <> "")
			$sClass .= " " . $this->RowAttrs["class"];
		if (trim($sStyle) <> "")
			$sAtt .= " style=\"" . trim($sStyle) . "\"";
		if (trim($sClass) <> "")
			$sAtt .= " class=\"" . trim($sClass) . "\"";
		return $sAtt;
	}

	// Row attributes
	function RowAttributes() {
		$sAtt = $this->RowStyles();
		if ($this->Export == "") {
			foreach ($this->RowAttrs as $k => $v) {
				if ($k <> "class" && $k <> "style" && trim($v) <> "")
					$sAtt .= " " . $k . "=\"" . trim($v) . "\"";
			}
		}
		return $sAtt;
	}

	// Field object by name
	function fields($fldname) {
		return $this->fields[$fldname];
	}

	// Table level events
	// Recordset Selecting event
	function Recordset_Selecting(&$filter) {

		// Enter your code here	
	}

	// Recordset Selected event
	function Recordset_Selected(&$rs) {

		//echo "Recordset Selected";
	}

	// Recordset Search Validated event
	function Recordset_SearchValidated() {

		// Example:
		//$this->MyField1->AdvancedSearch->SearchValue = "your search criteria"; // Search value

	}

	// Recordset Searching event
	function Recordset_Searching(&$filter) {

		// Enter your code here	
	}

	// Row_Selecting event
	function Row_Selecting(&$filter) {

		// Enter your code here	
	}

	// Row Selected event
	function Row_Selected(&$rs) {

		//echo "Row Selected";
	}

	// Row Rendering event
	function Row_Rendering() {

		// Enter your code here	
	}

	// Row Rendered event
	function Row_Rendered() {

		// To view properties of field class, use:
		//var_dump($this-><FieldName>); 

	}

	// Row Inserting event
	function Row_Inserting(&$rs) {

		// Enter your code here
		// To cancel, set return value to FALSE

		return TRUE;
	}

	// Row Inserted event
	function Row_Inserted(&$rs) {

		//echo "Row Inserted"
	}

	// Row Updating event
	function Row_Updating(&$rsold, &$rsnew) {

		// Enter your code here
		// To cancel, set return value to FALSE

		return TRUE;
	}

	// Row Updated event
	function Row_Updated(&$rsold, &$rsnew) {

		//echo "Row Updated";
	}

	// Row Update Conflict event
	function Row_UpdateConflict(&$rsold, &$rsnew) {

		// Enter your code here
		// To ignore conflict, set return value to FALSE

		return TRUE;
	}

	// Row Deleting event
	function Row_Deleting(&$rs) {

		// Enter your code here
		// To cancel, set return value to False

		return TRUE;
	}

	// Row Deleted event
	function Row_Deleted(&$rs) {

		//echo "Row Deleted";
	}

	// Email Sending event
	function Email_Sending(&$Email, &$Args) {

		//var_dump($Email); var_dump($Args); exit();
		return TRUE;
	}
}
?>