| Current Path : /var/www/cesa.co.za/echasl23/ |
| Current File : /var/www/cesa.co.za/echasl23/CCEStudentsinfo.php |
<?php
// Global variable for table object
$CCEStudents = NULL;
//
// Table class for CCEStudents
//
class cCCEStudents {
var $TableVar = 'CCEStudents';
var $TableName = 'CCEStudents';
var $TableType = 'TABLE';
var $CCEStudentID;
var $KnownAs;
var $FirstName;
var $Surname;
var $Organisation;
var $OrganisationType;
var $Designation;
var $Department;
var $StudentNumber;
var $CCEFacilitatorID;
var $Project;
var $ProjectDiscipline;
var $ProjectCode;
var $IDNumber;
var $ECSARegistered;
var $ECSACategory;
var $ECSANumber;
var $OtherStatutoryBodyRegistered;
var $OtherStatutoryBodyName;
var $OtherStatutoryBodyNumber;
var $OtherStatutoryBodyCategory;
var $CESAMemberFirm;
var $OtherCEFirms;
var $Age;
var $HighestQual;
var $AreaDiscipline;
var $Telephone;
var $Cellphone;
var $EmailAddress;
var $EmailAddress2;
var $HomeAddress;
var $WorkAddress;
var $PostalAddress;
var $CESAAccountNo;
var $VATNo;
var $DietaryRequirements;
var $OrderNo;
var $BookedByName;
var $BookedByDesignation;
var $BookedByTelNo;
var $BookedByFaxNo;
var $BookedByCellNo;
var $BookedByEmail;
var $WebUsername;
var $WebPassword;
var $MentorFirstName;
var $MentorSurname;
var $MentorCompany;
var $MentorDesig;
var $MentorTel;
var $MentorCell;
var $MentorEmail;
var $HRManagerName;
var $HRManagerDesignation;
var $HRManagerTelNo;
var $HRManagerCellNo;
var $HRManagerEmail;
var $LengthEmploy;
var $ResponsiblePayment;
var $BlockAccess;
var $Accepted;
var $Archived;
var $Achieved;
var $ReasonForLeaving;
var $ReasonNotAccepted;
var $ResultComments;
var $ResultStatus;
var $Cancelled;
var $CancelledReason;
var $CVFile;
var $Title;
var $QualCertificate1;
var $QualCertificate2;
var $QualCertificate3;
var $MemorandumFile;
var $AgreementFile;
var $ResultLetter;
var $IDFile;
var $PhotoFile;
var $SABTACOMemberFirm;
var $PreferredCourierAddress;
var $MotivationalLetter;
var $MentorName;
var $ModulesEnrolled;
var $Trimester1Report;
var $Trimester2Report;
var $Trimester3Report;
var $ExamResultLetter;
var $SupplementalExamLetter;
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('CCEStudents', 'CCEStudents', 'x_CCEStudentID', 'CCEStudentID', '`CCEStudentID`', 3, -1, FALSE, '`CCEStudentID`', FALSE);
$this->CCEStudentID->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
$this->fields['CCEStudentID'] =& $this->CCEStudentID;
// KnownAs
$this->KnownAs = new cField('CCEStudents', 'CCEStudents', 'x_KnownAs', 'KnownAs', '`KnownAs`', 200, -1, FALSE, '`KnownAs`', FALSE);
$this->fields['KnownAs'] =& $this->KnownAs;
// FirstName
$this->FirstName = new cField('CCEStudents', 'CCEStudents', 'x_FirstName', 'FirstName', '`FirstName`', 200, -1, FALSE, '`FirstName`', FALSE);
$this->fields['FirstName'] =& $this->FirstName;
// Surname
$this->Surname = new cField('CCEStudents', 'CCEStudents', 'x_Surname', 'Surname', '`Surname`', 200, -1, FALSE, '`Surname`', FALSE);
$this->fields['Surname'] =& $this->Surname;
// Organisation
$this->Organisation = new cField('CCEStudents', 'CCEStudents', 'x_Organisation', 'Organisation', '`Organisation`', 200, -1, FALSE, '`Organisation`', FALSE);
$this->fields['Organisation'] =& $this->Organisation;
// OrganisationType
$this->OrganisationType = new cField('CCEStudents', 'CCEStudents', 'x_OrganisationType', 'OrganisationType', '`OrganisationType`', 200, -1, FALSE, '`OrganisationType`', FALSE);
$this->fields['OrganisationType'] =& $this->OrganisationType;
// Designation
$this->Designation = new cField('CCEStudents', 'CCEStudents', 'x_Designation', 'Designation', '`Designation`', 200, -1, FALSE, '`Designation`', FALSE);
$this->fields['Designation'] =& $this->Designation;
// Department
$this->Department = new cField('CCEStudents', 'CCEStudents', 'x_Department', 'Department', '`Department`', 200, -1, FALSE, '`Department`', FALSE);
$this->fields['Department'] =& $this->Department;
// StudentNumber
$this->StudentNumber = new cField('CCEStudents', 'CCEStudents', 'x_StudentNumber', 'StudentNumber', '`StudentNumber`', 200, -1, FALSE, '`StudentNumber`', FALSE);
$this->fields['StudentNumber'] =& $this->StudentNumber;
// CCEFacilitatorID
$this->CCEFacilitatorID = new cField('CCEStudents', 'CCEStudents', 'x_CCEFacilitatorID', 'CCEFacilitatorID', '`CCEFacilitatorID`', 3, -1, FALSE, '`CCEFacilitatorID`', FALSE);
$this->CCEFacilitatorID->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
$this->fields['CCEFacilitatorID'] =& $this->CCEFacilitatorID;
// Project
$this->Project = new cField('CCEStudents', 'CCEStudents', 'x_Project', 'Project', '`Project`', 3, -1, FALSE, '`Project`', FALSE);
$this->Project->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
$this->fields['Project'] =& $this->Project;
// ProjectDiscipline
$this->ProjectDiscipline = new cField('CCEStudents', 'CCEStudents', 'x_ProjectDiscipline', 'ProjectDiscipline', '`ProjectDiscipline`', 200, -1, FALSE, '`ProjectDiscipline`', FALSE);
$this->fields['ProjectDiscipline'] =& $this->ProjectDiscipline;
// ProjectCode
$this->ProjectCode = new cField('CCEStudents', 'CCEStudents', 'x_ProjectCode', 'ProjectCode', '`ProjectCode`', 200, -1, FALSE, '`ProjectCode`', FALSE);
$this->fields['ProjectCode'] =& $this->ProjectCode;
// IDNumber
$this->IDNumber = new cField('CCEStudents', 'CCEStudents', 'x_IDNumber', 'IDNumber', '`IDNumber`', 200, -1, FALSE, '`IDNumber`', FALSE);
$this->fields['IDNumber'] =& $this->IDNumber;
// ECSARegistered
$this->ECSARegistered = new cField('CCEStudents', 'CCEStudents', 'x_ECSARegistered', 'ECSARegistered', '`ECSARegistered`', 200, -1, FALSE, '`ECSARegistered`', FALSE);
$this->fields['ECSARegistered'] =& $this->ECSARegistered;
// ECSACategory
$this->ECSACategory = new cField('CCEStudents', 'CCEStudents', 'x_ECSACategory', 'ECSACategory', '`ECSACategory`', 200, -1, FALSE, '`ECSACategory`', FALSE);
$this->fields['ECSACategory'] =& $this->ECSACategory;
// ECSANumber
$this->ECSANumber = new cField('CCEStudents', 'CCEStudents', 'x_ECSANumber', 'ECSANumber', '`ECSANumber`', 200, -1, FALSE, '`ECSANumber`', FALSE);
$this->fields['ECSANumber'] =& $this->ECSANumber;
// OtherStatutoryBodyRegistered
$this->OtherStatutoryBodyRegistered = new cField('CCEStudents', 'CCEStudents', 'x_OtherStatutoryBodyRegistered', 'OtherStatutoryBodyRegistered', '`OtherStatutoryBodyRegistered`', 16, -1, FALSE, '`OtherStatutoryBodyRegistered`', FALSE);
$this->OtherStatutoryBodyRegistered->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
$this->fields['OtherStatutoryBodyRegistered'] =& $this->OtherStatutoryBodyRegistered;
// OtherStatutoryBodyName
$this->OtherStatutoryBodyName = new cField('CCEStudents', 'CCEStudents', 'x_OtherStatutoryBodyName', 'OtherStatutoryBodyName', '`OtherStatutoryBodyName`', 200, -1, FALSE, '`OtherStatutoryBodyName`', FALSE);
$this->fields['OtherStatutoryBodyName'] =& $this->OtherStatutoryBodyName;
// OtherStatutoryBodyNumber
$this->OtherStatutoryBodyNumber = new cField('CCEStudents', 'CCEStudents', 'x_OtherStatutoryBodyNumber', 'OtherStatutoryBodyNumber', '`OtherStatutoryBodyNumber`', 200, -1, FALSE, '`OtherStatutoryBodyNumber`', FALSE);
$this->fields['OtherStatutoryBodyNumber'] =& $this->OtherStatutoryBodyNumber;
// OtherStatutoryBodyCategory
$this->OtherStatutoryBodyCategory = new cField('CCEStudents', 'CCEStudents', 'x_OtherStatutoryBodyCategory', 'OtherStatutoryBodyCategory', '`OtherStatutoryBodyCategory`', 200, -1, FALSE, '`OtherStatutoryBodyCategory`', FALSE);
$this->fields['OtherStatutoryBodyCategory'] =& $this->OtherStatutoryBodyCategory;
// CESAMemberFirm
$this->CESAMemberFirm = new cField('CCEStudents', 'CCEStudents', 'x_CESAMemberFirm', 'CESAMemberFirm', '`CESAMemberFirm`', 200, -1, FALSE, '`CESAMemberFirm`', FALSE);
$this->fields['CESAMemberFirm'] =& $this->CESAMemberFirm;
// OtherCEFirms
$this->OtherCEFirms = new cField('CCEStudents', 'CCEStudents', 'x_OtherCEFirms', 'OtherCEFirms', '`OtherCEFirms`', 201, -1, FALSE, '`OtherCEFirms`', FALSE);
$this->fields['OtherCEFirms'] =& $this->OtherCEFirms;
// Age
$this->Age = new cField('CCEStudents', 'CCEStudents', 'x_Age', 'Age', '`Age`', 3, -1, FALSE, '`Age`', FALSE);
$this->Age->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
$this->fields['Age'] =& $this->Age;
// HighestQual
$this->HighestQual = new cField('CCEStudents', 'CCEStudents', 'x_HighestQual', 'HighestQual', '`HighestQual`', 200, -1, FALSE, '`HighestQual`', FALSE);
$this->fields['HighestQual'] =& $this->HighestQual;
// AreaDiscipline
$this->AreaDiscipline = new cField('CCEStudents', 'CCEStudents', 'x_AreaDiscipline', 'AreaDiscipline', '`AreaDiscipline`', 200, -1, FALSE, '`AreaDiscipline`', FALSE);
$this->fields['AreaDiscipline'] =& $this->AreaDiscipline;
// Telephone
$this->Telephone = new cField('CCEStudents', 'CCEStudents', 'x_Telephone', 'Telephone', '`Telephone`', 200, -1, FALSE, '`Telephone`', FALSE);
$this->fields['Telephone'] =& $this->Telephone;
// Cellphone
$this->Cellphone = new cField('CCEStudents', 'CCEStudents', 'x_Cellphone', 'Cellphone', '`Cellphone`', 200, -1, FALSE, '`Cellphone`', FALSE);
$this->fields['Cellphone'] =& $this->Cellphone;
// EmailAddress
$this->EmailAddress = new cField('CCEStudents', 'CCEStudents', 'x_EmailAddress', 'EmailAddress', '`EmailAddress`', 200, -1, FALSE, '`EmailAddress`', FALSE);
$this->fields['EmailAddress'] =& $this->EmailAddress;
// EmailAddress2
$this->EmailAddress2 = new cField('CCEStudents', 'CCEStudents', 'x_EmailAddress2', 'EmailAddress2', '`EmailAddress2`', 200, -1, FALSE, '`EmailAddress2`', FALSE);
$this->fields['EmailAddress2'] =& $this->EmailAddress2;
// HomeAddress
$this->HomeAddress = new cField('CCEStudents', 'CCEStudents', 'x_HomeAddress', 'HomeAddress', '`HomeAddress`', 201, -1, FALSE, '`HomeAddress`', FALSE);
$this->fields['HomeAddress'] =& $this->HomeAddress;
// WorkAddress
$this->WorkAddress = new cField('CCEStudents', 'CCEStudents', 'x_WorkAddress', 'WorkAddress', '`WorkAddress`', 201, -1, FALSE, '`WorkAddress`', FALSE);
$this->fields['WorkAddress'] =& $this->WorkAddress;
// PostalAddress
$this->PostalAddress = new cField('CCEStudents', 'CCEStudents', 'x_PostalAddress', 'PostalAddress', '`PostalAddress`', 201, -1, FALSE, '`PostalAddress`', FALSE);
$this->fields['PostalAddress'] =& $this->PostalAddress;
// CESAAccountNo
$this->CESAAccountNo = new cField('CCEStudents', 'CCEStudents', 'x_CESAAccountNo', 'CESAAccountNo', '`CESAAccountNo`', 200, -1, FALSE, '`CESAAccountNo`', FALSE);
$this->fields['CESAAccountNo'] =& $this->CESAAccountNo;
// VATNo
$this->VATNo = new cField('CCEStudents', 'CCEStudents', 'x_VATNo', 'VATNo', '`VATNo`', 200, -1, FALSE, '`VATNo`', FALSE);
$this->fields['VATNo'] =& $this->VATNo;
// DietaryRequirements
$this->DietaryRequirements = new cField('CCEStudents', 'CCEStudents', 'x_DietaryRequirements', 'DietaryRequirements', '`DietaryRequirements`', 200, -1, FALSE, '`DietaryRequirements`', FALSE);
$this->fields['DietaryRequirements'] =& $this->DietaryRequirements;
// OrderNo
$this->OrderNo = new cField('CCEStudents', 'CCEStudents', 'x_OrderNo', 'OrderNo', '`OrderNo`', 200, -1, FALSE, '`OrderNo`', FALSE);
$this->fields['OrderNo'] =& $this->OrderNo;
// BookedByName
$this->BookedByName = new cField('CCEStudents', 'CCEStudents', 'x_BookedByName', 'BookedByName', '`BookedByName`', 200, -1, FALSE, '`BookedByName`', FALSE);
$this->fields['BookedByName'] =& $this->BookedByName;
// BookedByDesignation
$this->BookedByDesignation = new cField('CCEStudents', 'CCEStudents', 'x_BookedByDesignation', 'BookedByDesignation', '`BookedByDesignation`', 200, -1, FALSE, '`BookedByDesignation`', FALSE);
$this->fields['BookedByDesignation'] =& $this->BookedByDesignation;
// BookedByTelNo
$this->BookedByTelNo = new cField('CCEStudents', 'CCEStudents', 'x_BookedByTelNo', 'BookedByTelNo', '`BookedByTelNo`', 200, -1, FALSE, '`BookedByTelNo`', FALSE);
$this->fields['BookedByTelNo'] =& $this->BookedByTelNo;
// BookedByFaxNo
$this->BookedByFaxNo = new cField('CCEStudents', 'CCEStudents', 'x_BookedByFaxNo', 'BookedByFaxNo', '`BookedByFaxNo`', 200, -1, FALSE, '`BookedByFaxNo`', FALSE);
$this->fields['BookedByFaxNo'] =& $this->BookedByFaxNo;
// BookedByCellNo
$this->BookedByCellNo = new cField('CCEStudents', 'CCEStudents', 'x_BookedByCellNo', 'BookedByCellNo', '`BookedByCellNo`', 200, -1, FALSE, '`BookedByCellNo`', FALSE);
$this->fields['BookedByCellNo'] =& $this->BookedByCellNo;
// BookedByEmail
$this->BookedByEmail = new cField('CCEStudents', 'CCEStudents', 'x_BookedByEmail', 'BookedByEmail', '`BookedByEmail`', 200, -1, FALSE, '`BookedByEmail`', FALSE);
$this->fields['BookedByEmail'] =& $this->BookedByEmail;
// WebUsername
$this->WebUsername = new cField('CCEStudents', 'CCEStudents', 'x_WebUsername', 'WebUsername', '`WebUsername`', 200, -1, FALSE, '`WebUsername`', FALSE);
$this->fields['WebUsername'] =& $this->WebUsername;
// WebPassword
$this->WebPassword = new cField('CCEStudents', 'CCEStudents', 'x_WebPassword', 'WebPassword', '`WebPassword`', 200, -1, FALSE, '`WebPassword`', FALSE);
$this->fields['WebPassword'] =& $this->WebPassword;
// MentorFirstName
$this->MentorFirstName = new cField('CCEStudents', 'CCEStudents', 'x_MentorFirstName', 'MentorFirstName', '`MentorFirstName`', 200, -1, FALSE, '`MentorFirstName`', FALSE);
$this->fields['MentorFirstName'] =& $this->MentorFirstName;
// MentorSurname
$this->MentorSurname = new cField('CCEStudents', 'CCEStudents', 'x_MentorSurname', 'MentorSurname', '`MentorSurname`', 200, -1, FALSE, '`MentorSurname`', FALSE);
$this->fields['MentorSurname'] =& $this->MentorSurname;
// MentorCompany
$this->MentorCompany = new cField('CCEStudents', 'CCEStudents', 'x_MentorCompany', 'MentorCompany', '`MentorCompany`', 200, -1, FALSE, '`MentorCompany`', FALSE);
$this->fields['MentorCompany'] =& $this->MentorCompany;
// MentorDesig
$this->MentorDesig = new cField('CCEStudents', 'CCEStudents', 'x_MentorDesig', 'MentorDesig', '`MentorDesig`', 200, -1, FALSE, '`MentorDesig`', FALSE);
$this->fields['MentorDesig'] =& $this->MentorDesig;
// MentorTel
$this->MentorTel = new cField('CCEStudents', 'CCEStudents', 'x_MentorTel', 'MentorTel', '`MentorTel`', 200, -1, FALSE, '`MentorTel`', FALSE);
$this->fields['MentorTel'] =& $this->MentorTel;
// MentorCell
$this->MentorCell = new cField('CCEStudents', 'CCEStudents', 'x_MentorCell', 'MentorCell', '`MentorCell`', 200, -1, FALSE, '`MentorCell`', FALSE);
$this->fields['MentorCell'] =& $this->MentorCell;
// MentorEmail
$this->MentorEmail = new cField('CCEStudents', 'CCEStudents', 'x_MentorEmail', 'MentorEmail', '`MentorEmail`', 200, -1, FALSE, '`MentorEmail`', FALSE);
$this->fields['MentorEmail'] =& $this->MentorEmail;
// HRManagerName
$this->HRManagerName = new cField('CCEStudents', 'CCEStudents', 'x_HRManagerName', 'HRManagerName', '`HRManagerName`', 200, -1, FALSE, '`HRManagerName`', FALSE);
$this->fields['HRManagerName'] =& $this->HRManagerName;
// HRManagerDesignation
$this->HRManagerDesignation = new cField('CCEStudents', 'CCEStudents', 'x_HRManagerDesignation', 'HRManagerDesignation', '`HRManagerDesignation`', 200, -1, FALSE, '`HRManagerDesignation`', FALSE);
$this->fields['HRManagerDesignation'] =& $this->HRManagerDesignation;
// HRManagerTelNo
$this->HRManagerTelNo = new cField('CCEStudents', 'CCEStudents', 'x_HRManagerTelNo', 'HRManagerTelNo', '`HRManagerTelNo`', 200, -1, FALSE, '`HRManagerTelNo`', FALSE);
$this->fields['HRManagerTelNo'] =& $this->HRManagerTelNo;
// HRManagerCellNo
$this->HRManagerCellNo = new cField('CCEStudents', 'CCEStudents', 'x_HRManagerCellNo', 'HRManagerCellNo', '`HRManagerCellNo`', 200, -1, FALSE, '`HRManagerCellNo`', FALSE);
$this->fields['HRManagerCellNo'] =& $this->HRManagerCellNo;
// HRManagerEmail
$this->HRManagerEmail = new cField('CCEStudents', 'CCEStudents', 'x_HRManagerEmail', 'HRManagerEmail', '`HRManagerEmail`', 200, -1, FALSE, '`HRManagerEmail`', FALSE);
$this->fields['HRManagerEmail'] =& $this->HRManagerEmail;
// LengthEmploy
$this->LengthEmploy = new cField('CCEStudents', 'CCEStudents', 'x_LengthEmploy', 'LengthEmploy', '`LengthEmploy`', 200, -1, FALSE, '`LengthEmploy`', FALSE);
$this->fields['LengthEmploy'] =& $this->LengthEmploy;
// ResponsiblePayment
$this->ResponsiblePayment = new cField('CCEStudents', 'CCEStudents', 'x_ResponsiblePayment', 'ResponsiblePayment', '`ResponsiblePayment`', 200, -1, FALSE, '`ResponsiblePayment`', FALSE);
$this->fields['ResponsiblePayment'] =& $this->ResponsiblePayment;
// BlockAccess
$this->BlockAccess = new cField('CCEStudents', 'CCEStudents', 'x_BlockAccess', 'BlockAccess', '`BlockAccess`', 200, -1, FALSE, '`BlockAccess`', FALSE);
$this->fields['BlockAccess'] =& $this->BlockAccess;
// Accepted
$this->Accepted = new cField('CCEStudents', 'CCEStudents', 'x_Accepted', 'Accepted', '`Accepted`', 16, -1, FALSE, '`Accepted`', FALSE);
$this->Accepted->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
$this->fields['Accepted'] =& $this->Accepted;
// Archived
$this->Archived = new cField('CCEStudents', 'CCEStudents', 'x_Archived', 'Archived', '`Archived`', 16, -1, FALSE, '`Archived`', FALSE);
$this->Archived->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
$this->fields['Archived'] =& $this->Archived;
// Achieved
$this->Achieved = new cField('CCEStudents', 'CCEStudents', 'x_Achieved', 'Achieved', '`Achieved`', 16, -1, FALSE, '`Achieved`', FALSE);
$this->Achieved->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
$this->fields['Achieved'] =& $this->Achieved;
// ReasonForLeaving
$this->ReasonForLeaving = new cField('CCEStudents', 'CCEStudents', 'x_ReasonForLeaving', 'ReasonForLeaving', '`ReasonForLeaving`', 201, -1, FALSE, '`ReasonForLeaving`', FALSE);
$this->fields['ReasonForLeaving'] =& $this->ReasonForLeaving;
// ReasonNotAccepted
$this->ReasonNotAccepted = new cField('CCEStudents', 'CCEStudents', 'x_ReasonNotAccepted', 'ReasonNotAccepted', '`ReasonNotAccepted`', 201, -1, FALSE, '`ReasonNotAccepted`', FALSE);
$this->fields['ReasonNotAccepted'] =& $this->ReasonNotAccepted;
// ResultComments
$this->ResultComments = new cField('CCEStudents', 'CCEStudents', 'x_ResultComments', 'ResultComments', '`ResultComments`', 201, -1, FALSE, '`ResultComments`', FALSE);
$this->fields['ResultComments'] =& $this->ResultComments;
// ResultStatus
$this->ResultStatus = new cField('CCEStudents', 'CCEStudents', 'x_ResultStatus', 'ResultStatus', '`ResultStatus`', 200, -1, FALSE, '`ResultStatus`', FALSE);
$this->fields['ResultStatus'] =& $this->ResultStatus;
// Cancelled
$this->Cancelled = new cField('CCEStudents', 'CCEStudents', 'x_Cancelled', 'Cancelled', '`Cancelled`', 16, -1, FALSE, '`Cancelled`', FALSE);
$this->Cancelled->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
$this->fields['Cancelled'] =& $this->Cancelled;
// CancelledReason
$this->CancelledReason = new cField('CCEStudents', 'CCEStudents', 'x_CancelledReason', 'CancelledReason', '`CancelledReason`', 200, -1, FALSE, '`CancelledReason`', FALSE);
$this->fields['CancelledReason'] =& $this->CancelledReason;
// CVFile
$this->CVFile = new cField('CCEStudents', 'CCEStudents', 'x_CVFile', 'CVFile', '`CVFile`', 200, -1, TRUE, '`CVFile`', FALSE);
$this->CVFile->UploadPath = "../cceadmin/students";
$this->fields['CVFile'] =& $this->CVFile;
// Title
$this->Title = new cField('CCEStudents', 'CCEStudents', 'x_Title', 'Title', '`Title`', 200, -1, FALSE, '`Title`', FALSE);
$this->fields['Title'] =& $this->Title;
// QualCertificate1
$this->QualCertificate1 = new cField('CCEStudents', 'CCEStudents', 'x_QualCertificate1', 'QualCertificate1', '`QualCertificate1`', 200, -1, FALSE, '`QualCertificate1`', FALSE);
$this->fields['QualCertificate1'] =& $this->QualCertificate1;
// QualCertificate2
$this->QualCertificate2 = new cField('CCEStudents', 'CCEStudents', 'x_QualCertificate2', 'QualCertificate2', '`QualCertificate2`', 200, -1, FALSE, '`QualCertificate2`', FALSE);
$this->fields['QualCertificate2'] =& $this->QualCertificate2;
// QualCertificate3
$this->QualCertificate3 = new cField('CCEStudents', 'CCEStudents', 'x_QualCertificate3', 'QualCertificate3', '`QualCertificate3`', 200, -1, FALSE, '`QualCertificate3`', FALSE);
$this->fields['QualCertificate3'] =& $this->QualCertificate3;
// MemorandumFile
$this->MemorandumFile = new cField('CCEStudents', 'CCEStudents', 'x_MemorandumFile', 'MemorandumFile', '`MemorandumFile`', 200, -1, FALSE, '`MemorandumFile`', FALSE);
$this->fields['MemorandumFile'] =& $this->MemorandumFile;
// AgreementFile
$this->AgreementFile = new cField('CCEStudents', 'CCEStudents', 'x_AgreementFile', 'AgreementFile', '`AgreementFile`', 200, -1, FALSE, '`AgreementFile`', FALSE);
$this->fields['AgreementFile'] =& $this->AgreementFile;
// ResultLetter
$this->ResultLetter = new cField('CCEStudents', 'CCEStudents', 'x_ResultLetter', 'ResultLetter', '`ResultLetter`', 200, -1, FALSE, '`ResultLetter`', FALSE);
$this->fields['ResultLetter'] =& $this->ResultLetter;
// IDFile
$this->IDFile = new cField('CCEStudents', 'CCEStudents', 'x_IDFile', 'IDFile', '`IDFile`', 200, -1, FALSE, '`IDFile`', FALSE);
$this->fields['IDFile'] =& $this->IDFile;
// PhotoFile
$this->PhotoFile = new cField('CCEStudents', 'CCEStudents', 'x_PhotoFile', 'PhotoFile', '`PhotoFile`', 200, -1, FALSE, '`PhotoFile`', FALSE);
$this->fields['PhotoFile'] =& $this->PhotoFile;
// SABTACOMemberFirm
$this->SABTACOMemberFirm = new cField('CCEStudents', 'CCEStudents', 'x_SABTACOMemberFirm', 'SABTACOMemberFirm', '`SABTACOMemberFirm`', 200, -1, FALSE, '`SABTACOMemberFirm`', FALSE);
$this->fields['SABTACOMemberFirm'] =& $this->SABTACOMemberFirm;
// PreferredCourierAddress
$this->PreferredCourierAddress = new cField('CCEStudents', 'CCEStudents', 'x_PreferredCourierAddress', 'PreferredCourierAddress', '`PreferredCourierAddress`', 200, -1, FALSE, '`PreferredCourierAddress`', FALSE);
$this->fields['PreferredCourierAddress'] =& $this->PreferredCourierAddress;
// MotivationalLetter
$this->MotivationalLetter = new cField('CCEStudents', 'CCEStudents', 'x_MotivationalLetter', 'MotivationalLetter', '`MotivationalLetter`', 200, -1, FALSE, '`MotivationalLetter`', FALSE);
$this->fields['MotivationalLetter'] =& $this->MotivationalLetter;
// MentorName
$this->MentorName = new cField('CCEStudents', 'CCEStudents', 'x_MentorName', 'MentorName', '`MentorName`', 200, -1, FALSE, '`MentorName`', FALSE);
$this->fields['MentorName'] =& $this->MentorName;
// ModulesEnrolled
$this->ModulesEnrolled = new cField('CCEStudents', 'CCEStudents', 'x_ModulesEnrolled', 'ModulesEnrolled', '`ModulesEnrolled`', 200, -1, FALSE, '`ModulesEnrolled`', FALSE);
$this->fields['ModulesEnrolled'] =& $this->ModulesEnrolled;
// Trimester1Report
$this->Trimester1Report = new cField('CCEStudents', 'CCEStudents', 'x_Trimester1Report', 'Trimester1Report', '`Trimester1Report`', 200, -1, TRUE, '`Trimester1Report`', FALSE);
$this->Trimester1Report->UploadPath = "../cceadmin/students";
$this->fields['Trimester1Report'] =& $this->Trimester1Report;
// Trimester2Report
$this->Trimester2Report = new cField('CCEStudents', 'CCEStudents', 'x_Trimester2Report', 'Trimester2Report', '`Trimester2Report`', 200, -1, TRUE, '`Trimester2Report`', FALSE);
$this->Trimester2Report->UploadPath = "../cceadmin/students";
$this->fields['Trimester2Report'] =& $this->Trimester2Report;
// Trimester3Report
$this->Trimester3Report = new cField('CCEStudents', 'CCEStudents', 'x_Trimester3Report', 'Trimester3Report', '`Trimester3Report`', 200, -1, TRUE, '`Trimester3Report`', FALSE);
$this->Trimester3Report->UploadPath = "../cceadmin/students";
$this->fields['Trimester3Report'] =& $this->Trimester3Report;
// ExamResultLetter
$this->ExamResultLetter = new cField('CCEStudents', 'CCEStudents', 'x_ExamResultLetter', 'ExamResultLetter', '`ExamResultLetter`', 200, -1, TRUE, '`ExamResultLetter`', FALSE);
$this->ExamResultLetter->UploadPath = "../cceadmin/students";
$this->fields['ExamResultLetter'] =& $this->ExamResultLetter;
// SupplementalExamLetter
$this->SupplementalExamLetter = new cField('CCEStudents', 'CCEStudents', 'x_SupplementalExamLetter', 'SupplementalExamLetter', '`SupplementalExamLetter`', 200, -1, TRUE, '`SupplementalExamLetter`', FALSE);
$this->SupplementalExamLetter->UploadPath = "../cceadmin/students";
$this->fields['SupplementalExamLetter'] =& $this->SupplementalExamLetter;
}
// 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 "CCEStudents_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`";
}
function SqlSelect() { // Select
return "SELECT * FROM " . $this->SqlFrom();
}
function SqlWhere() { // Where
$sWhere = "";
$this->TableFilter = "Archived = 1 OR CCEStudentID IN (SELECT CCEStudentID FROM `CCEStudentCourses` WHERE CCECourseScheduleID IN (SELECT CCECourseScheduleID FROM `CCECourseSchedules` WHERE StartDate > NOW()))";
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` ($names) VALUES ($values)";
}
// UPDATE statement
function UpdateSQL(&$rs) {
global $conn;
$SQL = "UPDATE `CCEStudents` 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` 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 "`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 "CCEStudentslist.php";
}
}
function setReturnUrl($v) {
$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_RETURN_URL] = $v;
}
// List URL
function ListUrl() {
return "CCEStudentslist.php";
}
// View URL
function ViewUrl() {
return $this->KeyUrl("CCEStudentsview.php", $this->UrlParm());
}
// Add URL
function AddUrl() {
$AddUrl = "CCEStudentsadd.php";
$sUrlParm = $this->UrlParm();
if ($sUrlParm <> "")
$AddUrl .= "?" . $sUrlParm;
return $AddUrl;
}
// Edit URL
function EditUrl() {
return $this->KeyUrl("CCEStudentsedit.php", $this->UrlParm());
}
// Inline edit URL
function InlineEditUrl() {
return $this->KeyUrl(ew_CurrentPage(), $this->UrlParm("a=edit"));
}
// Copy URL
function CopyUrl() {
return $this->KeyUrl("CCEStudentsadd.php", $this->UrlParm());
}
// Inline copy URL
function InlineCopyUrl() {
return $this->KeyUrl(ew_CurrentPage(), $this->UrlParm("a=copy"));
}
// Delete URL
function DeleteUrl() {
return $this->KeyUrl("CCEStudentsdelete.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=CCEStudents" : "";
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->KnownAs->setDbValue($rs->fields('KnownAs'));
$this->FirstName->setDbValue($rs->fields('FirstName'));
$this->Surname->setDbValue($rs->fields('Surname'));
$this->Organisation->setDbValue($rs->fields('Organisation'));
$this->OrganisationType->setDbValue($rs->fields('OrganisationType'));
$this->Designation->setDbValue($rs->fields('Designation'));
$this->Department->setDbValue($rs->fields('Department'));
$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->ProjectCode->setDbValue($rs->fields('ProjectCode'));
$this->IDNumber->setDbValue($rs->fields('IDNumber'));
$this->ECSARegistered->setDbValue($rs->fields('ECSARegistered'));
$this->ECSACategory->setDbValue($rs->fields('ECSACategory'));
$this->ECSANumber->setDbValue($rs->fields('ECSANumber'));
$this->OtherStatutoryBodyRegistered->setDbValue($rs->fields('OtherStatutoryBodyRegistered'));
$this->OtherStatutoryBodyName->setDbValue($rs->fields('OtherStatutoryBodyName'));
$this->OtherStatutoryBodyNumber->setDbValue($rs->fields('OtherStatutoryBodyNumber'));
$this->OtherStatutoryBodyCategory->setDbValue($rs->fields('OtherStatutoryBodyCategory'));
$this->CESAMemberFirm->setDbValue($rs->fields('CESAMemberFirm'));
$this->OtherCEFirms->setDbValue($rs->fields('OtherCEFirms'));
$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->EmailAddress2->setDbValue($rs->fields('EmailAddress2'));
$this->HomeAddress->setDbValue($rs->fields('HomeAddress'));
$this->WorkAddress->setDbValue($rs->fields('WorkAddress'));
$this->PostalAddress->setDbValue($rs->fields('PostalAddress'));
$this->CESAAccountNo->setDbValue($rs->fields('CESAAccountNo'));
$this->VATNo->setDbValue($rs->fields('VATNo'));
$this->DietaryRequirements->setDbValue($rs->fields('DietaryRequirements'));
$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->MentorFirstName->setDbValue($rs->fields('MentorFirstName'));
$this->MentorSurname->setDbValue($rs->fields('MentorSurname'));
$this->MentorCompany->setDbValue($rs->fields('MentorCompany'));
$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->ResponsiblePayment->setDbValue($rs->fields('ResponsiblePayment'));
$this->BlockAccess->setDbValue($rs->fields('BlockAccess'));
$this->Accepted->setDbValue($rs->fields('Accepted'));
$this->Archived->setDbValue($rs->fields('Archived'));
$this->Achieved->setDbValue($rs->fields('Achieved'));
$this->ReasonForLeaving->setDbValue($rs->fields('ReasonForLeaving'));
$this->ReasonNotAccepted->setDbValue($rs->fields('ReasonNotAccepted'));
$this->ResultComments->setDbValue($rs->fields('ResultComments'));
$this->ResultStatus->setDbValue($rs->fields('ResultStatus'));
$this->Cancelled->setDbValue($rs->fields('Cancelled'));
$this->CancelledReason->setDbValue($rs->fields('CancelledReason'));
$this->CVFile->Upload->DbValue = $rs->fields('CVFile');
$this->Title->setDbValue($rs->fields('Title'));
$this->QualCertificate1->setDbValue($rs->fields('QualCertificate1'));
$this->QualCertificate2->setDbValue($rs->fields('QualCertificate2'));
$this->QualCertificate3->setDbValue($rs->fields('QualCertificate3'));
$this->MemorandumFile->setDbValue($rs->fields('MemorandumFile'));
$this->AgreementFile->setDbValue($rs->fields('AgreementFile'));
$this->ResultLetter->setDbValue($rs->fields('ResultLetter'));
$this->IDFile->setDbValue($rs->fields('IDFile'));
$this->PhotoFile->setDbValue($rs->fields('PhotoFile'));
$this->SABTACOMemberFirm->setDbValue($rs->fields('SABTACOMemberFirm'));
$this->PreferredCourierAddress->setDbValue($rs->fields('PreferredCourierAddress'));
$this->MotivationalLetter->setDbValue($rs->fields('MotivationalLetter'));
$this->MentorName->setDbValue($rs->fields('MentorName'));
$this->ModulesEnrolled->setDbValue($rs->fields('ModulesEnrolled'));
$this->Trimester1Report->Upload->DbValue = $rs->fields('Trimester1Report');
$this->Trimester2Report->Upload->DbValue = $rs->fields('Trimester2Report');
$this->Trimester3Report->Upload->DbValue = $rs->fields('Trimester3Report');
$this->ExamResultLetter->Upload->DbValue = $rs->fields('ExamResultLetter');
$this->SupplementalExamLetter->Upload->DbValue = $rs->fields('SupplementalExamLetter');
}
// Render list row values
function RenderListRow() {
global $conn, $Security;
// Call Row Rendering event
$this->Row_Rendering();
// Common render codes
// KnownAs
$this->KnownAs->CellCssStyle = ""; $this->KnownAs->CellCssClass = "";
$this->KnownAs->CellAttrs = array(); $this->KnownAs->ViewAttrs = array(); $this->KnownAs->EditAttrs = array();
// 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();
// 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();
// OtherStatutoryBodyCategory
$this->OtherStatutoryBodyCategory->CellCssStyle = ""; $this->OtherStatutoryBodyCategory->CellCssClass = "";
$this->OtherStatutoryBodyCategory->CellAttrs = array(); $this->OtherStatutoryBodyCategory->ViewAttrs = array(); $this->OtherStatutoryBodyCategory->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();
// KnownAs
$this->KnownAs->ViewValue = $this->KnownAs->CurrentValue;
$this->KnownAs->CssStyle = "";
$this->KnownAs->CssClass = "";
$this->KnownAs->ViewCustomAttributes = "";
// 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 = "";
// 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 = "";
// OtherStatutoryBodyCategory
$this->OtherStatutoryBodyCategory->ViewValue = $this->OtherStatutoryBodyCategory->CurrentValue;
$this->OtherStatutoryBodyCategory->CssStyle = "";
$this->OtherStatutoryBodyCategory->CssClass = "";
$this->OtherStatutoryBodyCategory->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 = "";
// 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 = "";
// KnownAs
$this->KnownAs->HrefValue = "";
$this->KnownAs->TooltipValue = "";
// FirstName
$this->FirstName->HrefValue = "";
$this->FirstName->TooltipValue = "";
// Surname
$this->Surname->HrefValue = "";
$this->Surname->TooltipValue = "";
// Organisation
$this->Organisation->HrefValue = "";
$this->Organisation->TooltipValue = "";
// StudentNumber
$this->StudentNumber->HrefValue = "";
$this->StudentNumber->TooltipValue = "";
// OtherStatutoryBodyCategory
$this->OtherStatutoryBodyCategory->HrefValue = "";
$this->OtherStatutoryBodyCategory->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;
}
}
?>