<?php



$tdataYearlyFinancialsByInstitution = array();
$tdataYearlyFinancialsByInstitution[".searchableFields"] = array();
$tdataYearlyFinancialsByInstitution[".ShortName"] = "YearlyFinancialsByInstitution";
$tdataYearlyFinancialsByInstitution[".OwnerID"] = "";
$tdataYearlyFinancialsByInstitution[".OriginalTable"] = "applicform";


$defaultPages = my_json_decode( "{\"report\":\"report\",\"rprint\":\"rprint\",\"search\":\"search\"}" );

$tdataYearlyFinancialsByInstitution[".pagesByType"] = my_json_decode( "{\"report\":[\"report\"],\"rprint\":[\"rprint\"],\"search\":[\"search\"]}" );
$tdataYearlyFinancialsByInstitution[".pages"] = types2pages( my_json_decode( "{\"report\":[\"report\"],\"rprint\":[\"rprint\"],\"search\":[\"search\"]}" ) );
$tdataYearlyFinancialsByInstitution[".defaultPages"] = $defaultPages;

//	field labels
$fieldLabelsYearlyFinancialsByInstitution = array();
$fieldToolTipsYearlyFinancialsByInstitution = array();
$pageTitlesYearlyFinancialsByInstitution = array();
$placeHoldersYearlyFinancialsByInstitution = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsYearlyFinancialsByInstitution["English"] = array();
	$fieldToolTipsYearlyFinancialsByInstitution["English"] = array();
	$placeHoldersYearlyFinancialsByInstitution["English"] = array();
	$pageTitlesYearlyFinancialsByInstitution["English"] = array();
	$fieldLabelsYearlyFinancialsByInstitution["English"]["StudentSchoolID"] = "School ID";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["StudentSchoolID"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["StudentSchoolID"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["Surname"] = "Surname";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["Surname"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["Surname"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["FirstName"] = "First Name";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["FirstName"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["FirstName"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["TertiaryInstitutionAdmitted"] = ":";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["TertiaryInstitutionAdmitted"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["TertiaryInstitutionAdmitted"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["FirstYearFee"] = "First Year Fee";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["FirstYearFee"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["FirstYearFee"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["SecondYearFee"] = "Second Year Fee";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["SecondYearFee"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["SecondYearFee"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["ThirdYearFee"] = "Third Year Fee";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["ThirdYearFee"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["ThirdYearFee"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["FourthYearFee"] = "Fourth Year Fee";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["FourthYearFee"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["FourthYearFee"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["FifthYearFee"] = "Fifth Year Fee";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["FifthYearFee"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["FifthYearFee"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["StudentTotall"] = "Student Totall";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["StudentTotall"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["StudentTotall"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["SecondYear"] = "Second Year";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["SecondYear"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["SecondYear"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["ThirdYear"] = "Third Year";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["ThirdYear"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["ThirdYear"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["FourthYear"] = "Fourth Year";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["FourthYear"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["FourthYear"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["FifthYear"] = "Fifth Year";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["FifthYear"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["FifthYear"] = "";
	$fieldLabelsYearlyFinancialsByInstitution["English"]["FirstYear"] = ":";
	$fieldToolTipsYearlyFinancialsByInstitution["English"]["FirstYear"] = "";
	$placeHoldersYearlyFinancialsByInstitution["English"]["FirstYear"] = "";
	if (count($fieldToolTipsYearlyFinancialsByInstitution["English"]))
		$tdataYearlyFinancialsByInstitution[".isUseToolTips"] = true;
}


	$tdataYearlyFinancialsByInstitution[".NCSearch"] = true;



$tdataYearlyFinancialsByInstitution[".shortTableName"] = "YearlyFinancialsByInstitution";
$tdataYearlyFinancialsByInstitution[".nSecOptions"] = 0;

$tdataYearlyFinancialsByInstitution[".mainTableOwnerID"] = "";
$tdataYearlyFinancialsByInstitution[".entityType"] = 2;

$tdataYearlyFinancialsByInstitution[".strOriginalTableName"] = "applicform";

	



$tdataYearlyFinancialsByInstitution[".showAddInPopup"] = false;

$tdataYearlyFinancialsByInstitution[".showEditInPopup"] = false;

$tdataYearlyFinancialsByInstitution[".showViewInPopup"] = false;

//page's base css files names
$popupPagesLayoutNames = array();
$tdataYearlyFinancialsByInstitution[".popupPagesLayoutNames"] = $popupPagesLayoutNames;


$tdataYearlyFinancialsByInstitution[".listAjax"] = false;
//	temporary
$tdataYearlyFinancialsByInstitution[".listAjax"] = false;

	$tdataYearlyFinancialsByInstitution[".audit"] = false;

	$tdataYearlyFinancialsByInstitution[".locking"] = false;


$pages = $tdataYearlyFinancialsByInstitution[".defaultPages"];

if( $pages[PAGE_EDIT] ) {
	$tdataYearlyFinancialsByInstitution[".edit"] = true;
	$tdataYearlyFinancialsByInstitution[".afterEditAction"] = 1;
	$tdataYearlyFinancialsByInstitution[".closePopupAfterEdit"] = 1;
	$tdataYearlyFinancialsByInstitution[".afterEditActionDetTable"] = "";
}

if( $pages[PAGE_ADD] ) {
$tdataYearlyFinancialsByInstitution[".add"] = true;
$tdataYearlyFinancialsByInstitution[".afterAddAction"] = 1;
$tdataYearlyFinancialsByInstitution[".closePopupAfterAdd"] = 1;
$tdataYearlyFinancialsByInstitution[".afterAddActionDetTable"] = "";
}

if( $pages[PAGE_LIST] ) {
	$tdataYearlyFinancialsByInstitution[".list"] = true;
}

$tdataYearlyFinancialsByInstitution[".updateSelected"] = true;


$tdataYearlyFinancialsByInstitution[".strSortControlSettingsJSON"] = "";




if( $pages[PAGE_VIEW] ) {
$tdataYearlyFinancialsByInstitution[".view"] = true;
}

if( $pages[PAGE_IMPORT] ) {
$tdataYearlyFinancialsByInstitution[".import"] = true;
}

if( $pages[PAGE_EXPORT] ) {
$tdataYearlyFinancialsByInstitution[".exportTo"] = true;
}

if( $pages[PAGE_PRINT] ) {
$tdataYearlyFinancialsByInstitution[".printFriendly"] = true;
}



$tdataYearlyFinancialsByInstitution[".showSimpleSearchOptions"] = true; // temp fix #13449

// Allow Show/Hide Fields in GRID
$tdataYearlyFinancialsByInstitution[".allowShowHideFields"] = true; // temp fix #13449
//

// Allow Fields Reordering in GRID
$tdataYearlyFinancialsByInstitution[".allowFieldsReordering"] = true; // temp fix #13449
//

$tdataYearlyFinancialsByInstitution[".isUseAjaxSuggest"] = true;




						

$tdataYearlyFinancialsByInstitution[".ajaxCodeSnippetAdded"] = false;

$tdataYearlyFinancialsByInstitution[".buttonsAdded"] = false;

$tdataYearlyFinancialsByInstitution[".addPageEvents"] = false;

// use timepicker for search panel
$tdataYearlyFinancialsByInstitution[".isUseTimeForSearch"] = false;




$tdataYearlyFinancialsByInstitution[".allSearchFields"] = array();
$tdataYearlyFinancialsByInstitution[".filterFields"] = array();
$tdataYearlyFinancialsByInstitution[".requiredSearchFields"] = array();

$tdataYearlyFinancialsByInstitution[".googleLikeFields"] = array();
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "Surname";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "FirstName";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "StudentSchoolID";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "TertiaryInstitutionAdmitted";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "FirstYear";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "FirstYearFee";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "SecondYear";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "SecondYearFee";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "ThirdYear";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "ThirdYearFee";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "FourthYear";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "FourthYearFee";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "FifthYear";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "FifthYearFee";
$tdataYearlyFinancialsByInstitution[".googleLikeFields"][] = "StudentTotall";



$tdataYearlyFinancialsByInstitution[".tableType"] = "report";

$tdataYearlyFinancialsByInstitution[".printerPageOrientation"] = 0;
$tdataYearlyFinancialsByInstitution[".nPrinterPageScale"] = 100;

$tdataYearlyFinancialsByInstitution[".nPrinterSplitRecords"] = 40;

$tdataYearlyFinancialsByInstitution[".geocodingEnabled"] = false;

//report settings
$tdataYearlyFinancialsByInstitution[".printReportLayout"] = 3;

$tdataYearlyFinancialsByInstitution[".reportPrintPartitionType"] = 1;
$tdataYearlyFinancialsByInstitution[".reportPrintGroupsPerPage"] = 3;
$tdataYearlyFinancialsByInstitution[".lowGroup"] = 2;



$tdataYearlyFinancialsByInstitution[".reportGroupFields"] = true;
$tdataYearlyFinancialsByInstitution[".pageSize"] = 5;
$tdataYearlyFinancialsByInstitution[".showGroupSummaryCount"] = true;
$reportGroupFieldsList = array();
$reportGroupFields = array();
	$reportGroupFieldsList []= "FirstYear";

	$rgroupField = array();
	$rgroupField['strGroupField'] = "FirstYear";
	$rgroupField['groupInterval'] = 0;
	$rgroupField['groupOrder'] = 1;
	$rgroupField['showGroupSummary'] = "1";
	$rgroupField['crossTabAxis'] = "0";
	$reportGroupFields[] = $rgroupField;
	$reportGroupFieldsList []= "TertiaryInstitutionAdmitted";

	$rgroupField = array();
	$rgroupField['strGroupField'] = "TertiaryInstitutionAdmitted";
	$rgroupField['groupInterval'] = 0;
	$rgroupField['groupOrder'] = 2;
	$rgroupField['showGroupSummary'] = "1";
	$rgroupField['crossTabAxis'] = "0";
	$reportGroupFields[] = $rgroupField;
$tdataYearlyFinancialsByInstitution[".reportGroupFieldsData"] = $reportGroupFields;
$tdataYearlyFinancialsByInstitution[".reportGroupFieldsList"] = $reportGroupFieldsList;


$tdataYearlyFinancialsByInstitution[".isExistTotalFields"] = true;



$tdataYearlyFinancialsByInstitution[".reportGlobalSummary"] = true;

$tdataYearlyFinancialsByInstitution[".repShowDet"] = true;

$tdataYearlyFinancialsByInstitution[".reportLayout"] = 3;

//end of report settings



$tdataYearlyFinancialsByInstitution[".isDisplayLoading"] = true;







$tstrOrderBy = "ORDER BY TertiaryInstitutionAdmitted";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdataYearlyFinancialsByInstitution[".strOrderBy"] = $tstrOrderBy;

$tdataYearlyFinancialsByInstitution[".orderindexes"] = array();
	$tdataYearlyFinancialsByInstitution[".orderindexes"][] = array(4, (1 ? "ASC" : "DESC"), "TertiaryInstitutionAdmitted");


$tdataYearlyFinancialsByInstitution[".sqlHead"] = "SELECT Surname,  FirstName,  StudentSchoolID,  TertiaryInstitutionAdmitted,  `1styear` AS FirstYear,  (`1styearFee`+ Repeatd1stYearFee) AS FirstYearFee,  (`1styear`+ 1) AS SecondYear,  (Fee2ndYear+Repeat2ndYearFee) AS SecondYearFee,  (`1styear`+ 2) AS ThirdYear,  (Fee3rdYear+Repeatd3rdYrFee) AS ThirdYearFee,  (`1styear`+ 3) AS FourthYear,  (Fee4thYear)+(Repeat4thYrFee) AS FourthYearFee,  (`1styear`+ 4) AS FifthYear,  (Fee5thYear+Repeat5thYrFEE) AS FifthYearFee,  (`1styearFee`+Repeatd1stYearFee+Fee2ndYear+Repeat2ndYearFee+Fee3rdYear+Repeatd3rdYrFee+Fee4thYear+Repeat4thYrFee+Fee5thYear+Repeat5thYrFEE) AS StudentTotall";
$tdataYearlyFinancialsByInstitution[".sqlFrom"] = "FROM applicform";
$tdataYearlyFinancialsByInstitution[".sqlWhereExpr"] = "(TertiaryInstitutionAdmitted <> '  ') AND (`1styear` <> ' ')";
$tdataYearlyFinancialsByInstitution[".sqlTail"] = "";










//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataYearlyFinancialsByInstitution[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdataYearlyFinancialsByInstitution[".arrGroupsPerPage"] = $arrGPP;

$tdataYearlyFinancialsByInstitution[".highlightSearchResults"] = true;

$tableKeysYearlyFinancialsByInstitution = array();
$tdataYearlyFinancialsByInstitution[".Keys"] = $tableKeysYearlyFinancialsByInstitution;


$tdataYearlyFinancialsByInstitution[".hideMobileList"] = array();




//	Surname
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "Surname";
	$fdata["GoodName"] = "Surname";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","Surname");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "Surname";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "Surname";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["Surname"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "Surname";
//	FirstName
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "FirstName";
	$fdata["GoodName"] = "FirstName";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","FirstName");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "FirstName";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "FirstName";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["FirstName"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "FirstName";
//	StudentSchoolID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "StudentSchoolID";
	$fdata["GoodName"] = "StudentSchoolID";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","StudentSchoolID");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "StudentSchoolID";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "StudentSchoolID";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["StudentSchoolID"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "StudentSchoolID";
//	TertiaryInstitutionAdmitted
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "TertiaryInstitutionAdmitted";
	$fdata["GoodName"] = "TertiaryInstitutionAdmitted";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","TertiaryInstitutionAdmitted");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "TertiaryInstitutionAdmitted";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "TertiaryInstitutionAdmitted";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["TertiaryInstitutionAdmitted"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "TertiaryInstitutionAdmitted";
//	FirstYear
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "FirstYear";
	$fdata["GoodName"] = "FirstYear";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","FirstYear");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "1styear";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`1styear`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["FirstYear"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "FirstYear";
//	FirstYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "FirstYearFee";
	$fdata["GoodName"] = "FirstYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","FirstYearFee");
	$fdata["FieldType"] = 5;

		// report field settings
					$fdata["isTotalSum"] = true;
	// end of report field settings

	
	
			

		$fdata["strField"] = "FirstYearFee";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(`1styearFee`+ Repeatd1stYearFee)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Currency");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["FirstYearFee"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "FirstYearFee";
//	SecondYear
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "SecondYear";
	$fdata["GoodName"] = "SecondYear";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","SecondYear");
	$fdata["FieldType"] = 5;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "SecondYear";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(`1styear`+ 1)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["SecondYear"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "SecondYear";
//	SecondYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "SecondYearFee";
	$fdata["GoodName"] = "SecondYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","SecondYearFee");
	$fdata["FieldType"] = 5;

		// report field settings
					$fdata["isTotalSum"] = true;
	// end of report field settings

	
	
			

		$fdata["strField"] = "SecondYearFee";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(Fee2ndYear+Repeat2ndYearFee)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Currency");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["SecondYearFee"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "SecondYearFee";
//	ThirdYear
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "ThirdYear";
	$fdata["GoodName"] = "ThirdYear";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","ThirdYear");
	$fdata["FieldType"] = 5;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "ThirdYear";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(`1styear`+ 2)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["ThirdYear"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "ThirdYear";
//	ThirdYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "ThirdYearFee";
	$fdata["GoodName"] = "ThirdYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","ThirdYearFee");
	$fdata["FieldType"] = 5;

		// report field settings
					$fdata["isTotalSum"] = true;
	// end of report field settings

	
	
			

		$fdata["strField"] = "ThirdYearFee";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(Fee3rdYear+Repeatd3rdYrFee)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Currency");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["ThirdYearFee"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "ThirdYearFee";
//	FourthYear
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "FourthYear";
	$fdata["GoodName"] = "FourthYear";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","FourthYear");
	$fdata["FieldType"] = 5;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "FourthYear";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(`1styear`+ 3)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["FourthYear"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "FourthYear";
//	FourthYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "FourthYearFee";
	$fdata["GoodName"] = "FourthYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","FourthYearFee");
	$fdata["FieldType"] = 5;

		// report field settings
					$fdata["isTotalSum"] = true;
	// end of report field settings

	
	
			

		$fdata["strField"] = "FourthYearFee";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(Fee4thYear)+(Repeat4thYrFee)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Currency");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["FourthYearFee"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "FourthYearFee";
//	FifthYear
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "FifthYear";
	$fdata["GoodName"] = "FifthYear";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","FifthYear");
	$fdata["FieldType"] = 5;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "FifthYear";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(`1styear`+ 4)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["FifthYear"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "FifthYear";
//	FifthYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "FifthYearFee";
	$fdata["GoodName"] = "FifthYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","FifthYearFee");
	$fdata["FieldType"] = 5;

		// report field settings
					$fdata["isTotalSum"] = true;
	// end of report field settings

	
	
			

		$fdata["strField"] = "FifthYearFee";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(Fee5thYear+Repeat5thYrFEE)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Currency");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["FifthYearFee"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "FifthYearFee";
//	StudentTotall
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "StudentTotall";
	$fdata["GoodName"] = "StudentTotall";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsByInstitution","StudentTotall");
	$fdata["FieldType"] = 5;

		// report field settings
					$fdata["isTotalSum"] = true;
	// end of report field settings

	
	
			

		$fdata["strField"] = "StudentTotall";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(`1styearFee`+Repeatd1stYearFee+Fee2ndYear+Repeat2ndYearFee+Fee3rdYear+Repeatd3rdYrFee+Fee4thYear+Repeat4thYrFee+Fee5thYear+Repeat5thYrFEE)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Currency");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
	
			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataYearlyFinancialsByInstitution["StudentTotall"] = $fdata;
		$tdataYearlyFinancialsByInstitution[".searchableFields"][] = "StudentTotall";


$tables_data["YearlyFinancialsByInstitution"]=&$tdataYearlyFinancialsByInstitution;
$field_labels["YearlyFinancialsByInstitution"] = &$fieldLabelsYearlyFinancialsByInstitution;
$fieldToolTips["YearlyFinancialsByInstitution"] = &$fieldToolTipsYearlyFinancialsByInstitution;
$placeHolders["YearlyFinancialsByInstitution"] = &$placeHoldersYearlyFinancialsByInstitution;
$page_titles["YearlyFinancialsByInstitution"] = &$pageTitlesYearlyFinancialsByInstitution;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["YearlyFinancialsByInstitution"] = array();

// tables which are master tables for current table (detail)
$masterTablesData["YearlyFinancialsByInstitution"] = array();



// -----------------end  prepare master-details data arrays ------------------------------//


require_once(getabspath("classes/sql.php"));










function createSqlQuery_YearlyFinancialsByInstitution()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "Surname,  FirstName,  StudentSchoolID,  TertiaryInstitutionAdmitted,  `1styear` AS FirstYear,  (`1styearFee`+ Repeatd1stYearFee) AS FirstYearFee,  (`1styear`+ 1) AS SecondYear,  (Fee2ndYear+Repeat2ndYearFee) AS SecondYearFee,  (`1styear`+ 2) AS ThirdYear,  (Fee3rdYear+Repeatd3rdYrFee) AS ThirdYearFee,  (`1styear`+ 3) AS FourthYear,  (Fee4thYear)+(Repeat4thYrFee) AS FourthYearFee,  (`1styear`+ 4) AS FifthYear,  (Fee5thYear+Repeat5thYrFEE) AS FifthYearFee,  (`1styearFee`+Repeatd1stYearFee+Fee2ndYear+Repeat2ndYearFee+Fee3rdYear+Repeatd3rdYrFee+Fee4thYear+Repeat4thYrFee+Fee5thYear+Repeat5thYrFEE) AS StudentTotall";
$proto0["m_strFrom"] = "FROM applicform";
$proto0["m_strWhere"] = "(TertiaryInstitutionAdmitted <> '  ') AND (`1styear` <> ' ')";
$proto0["m_strOrderBy"] = "ORDER BY TertiaryInstitutionAdmitted";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "(TertiaryInstitutionAdmitted <> '  ') AND (`1styear` <> ' ')";
$proto2["m_uniontype"] = "SQLL_AND";
	$obj = new SQLNonParsed(array(
	"m_sql" => "(TertiaryInstitutionAdmitted <> '  ') AND (`1styear` <> ' ')"
));

$proto2["m_column"]=$obj;
$proto2["m_contained"] = array();
						$proto4=array();
$proto4["m_sql"] = "TertiaryInstitutionAdmitted <> '  '";
$proto4["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "TertiaryInstitutionAdmitted",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsByInstitution"
));

$proto4["m_column"]=$obj;
$proto4["m_contained"] = array();
$proto4["m_strCase"] = "<> '  '";
$proto4["m_havingmode"] = false;
$proto4["m_inBrackets"] = true;
$proto4["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto4);

			$proto2["m_contained"][]=$obj;
						$proto6=array();
$proto6["m_sql"] = "`1styear` <> ' '";
$proto6["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "1styear",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsByInstitution"
));

$proto6["m_column"]=$obj;
$proto6["m_contained"] = array();
$proto6["m_strCase"] = "<> ' '";
$proto6["m_havingmode"] = false;
$proto6["m_inBrackets"] = true;
$proto6["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto6);

			$proto2["m_contained"][]=$obj;
$proto2["m_strCase"] = "";
$proto2["m_havingmode"] = false;
$proto2["m_inBrackets"] = false;
$proto2["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto2);

$proto0["m_where"] = $obj;
$proto8=array();
$proto8["m_sql"] = "";
$proto8["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto8["m_column"]=$obj;
$proto8["m_contained"] = array();
$proto8["m_strCase"] = "";
$proto8["m_havingmode"] = false;
$proto8["m_inBrackets"] = false;
$proto8["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto8);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto10=array();
			$obj = new SQLField(array(
	"m_strName" => "Surname",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsByInstitution"
));

$proto10["m_sql"] = "Surname";
$proto10["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);

$proto0["m_fieldlist"][]=$obj;
						$proto12=array();
			$obj = new SQLField(array(
	"m_strName" => "FirstName",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsByInstitution"
));

$proto12["m_sql"] = "FirstName";
$proto12["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$obj = new SQLField(array(
	"m_strName" => "StudentSchoolID",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsByInstitution"
));

$proto14["m_sql"] = "StudentSchoolID";
$proto14["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

$proto0["m_fieldlist"][]=$obj;
						$proto16=array();
			$obj = new SQLField(array(
	"m_strName" => "TertiaryInstitutionAdmitted",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsByInstitution"
));

$proto16["m_sql"] = "TertiaryInstitutionAdmitted";
$proto16["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

$proto0["m_fieldlist"][]=$obj;
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "1styear",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsByInstitution"
));

$proto18["m_sql"] = "`1styear`";
$proto18["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "FirstYear";
$obj = new SQLFieldListItem($proto18);

$proto0["m_fieldlist"][]=$obj;
						$proto20=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(`1styearFee`+ Repeatd1stYearFee)"
));

$proto20["m_sql"] = "(`1styearFee`+ Repeatd1stYearFee)";
$proto20["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "FirstYearFee";
$obj = new SQLFieldListItem($proto20);

$proto0["m_fieldlist"][]=$obj;
						$proto22=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(`1styear`+ 1)"
));

$proto22["m_sql"] = "(`1styear`+ 1)";
$proto22["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "SecondYear";
$obj = new SQLFieldListItem($proto22);

$proto0["m_fieldlist"][]=$obj;
						$proto24=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee2ndYear+Repeat2ndYearFee)"
));

$proto24["m_sql"] = "(Fee2ndYear+Repeat2ndYearFee)";
$proto24["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "SecondYearFee";
$obj = new SQLFieldListItem($proto24);

$proto0["m_fieldlist"][]=$obj;
						$proto26=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(`1styear`+ 2)"
));

$proto26["m_sql"] = "(`1styear`+ 2)";
$proto26["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto26["m_expr"]=$obj;
$proto26["m_alias"] = "ThirdYear";
$obj = new SQLFieldListItem($proto26);

$proto0["m_fieldlist"][]=$obj;
						$proto28=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee3rdYear+Repeatd3rdYrFee)"
));

$proto28["m_sql"] = "(Fee3rdYear+Repeatd3rdYrFee)";
$proto28["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "ThirdYearFee";
$obj = new SQLFieldListItem($proto28);

$proto0["m_fieldlist"][]=$obj;
						$proto30=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(`1styear`+ 3)"
));

$proto30["m_sql"] = "(`1styear`+ 3)";
$proto30["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto30["m_expr"]=$obj;
$proto30["m_alias"] = "FourthYear";
$obj = new SQLFieldListItem($proto30);

$proto0["m_fieldlist"][]=$obj;
						$proto32=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee4thYear)+(Repeat4thYrFee)"
));

$proto32["m_sql"] = "(Fee4thYear)+(Repeat4thYrFee)";
$proto32["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto32["m_expr"]=$obj;
$proto32["m_alias"] = "FourthYearFee";
$obj = new SQLFieldListItem($proto32);

$proto0["m_fieldlist"][]=$obj;
						$proto34=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(`1styear`+ 4)"
));

$proto34["m_sql"] = "(`1styear`+ 4)";
$proto34["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto34["m_expr"]=$obj;
$proto34["m_alias"] = "FifthYear";
$obj = new SQLFieldListItem($proto34);

$proto0["m_fieldlist"][]=$obj;
						$proto36=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee5thYear+Repeat5thYrFEE)"
));

$proto36["m_sql"] = "(Fee5thYear+Repeat5thYrFEE)";
$proto36["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto36["m_expr"]=$obj;
$proto36["m_alias"] = "FifthYearFee";
$obj = new SQLFieldListItem($proto36);

$proto0["m_fieldlist"][]=$obj;
						$proto38=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(`1styearFee`+Repeatd1stYearFee+Fee2ndYear+Repeat2ndYearFee+Fee3rdYear+Repeatd3rdYrFee+Fee4thYear+Repeat4thYrFee+Fee5thYear+Repeat5thYrFEE)"
));

$proto38["m_sql"] = "(`1styearFee`+Repeatd1stYearFee+Fee2ndYear+Repeat2ndYearFee+Fee3rdYear+Repeatd3rdYrFee+Fee4thYear+Repeat4thYrFee+Fee5thYear+Repeat5thYrFEE)";
$proto38["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto38["m_expr"]=$obj;
$proto38["m_alias"] = "StudentTotall";
$obj = new SQLFieldListItem($proto38);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto40=array();
$proto40["m_link"] = "SQLL_MAIN";
			$proto41=array();
$proto41["m_strName"] = "applicform";
$proto41["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto41["m_columns"] = array();
$proto41["m_columns"][] = "MPGID";
$proto41["m_columns"][] = "StudentSchoolID";
$proto41["m_columns"][] = "Surname";
$proto41["m_columns"][] = "FirstName";
$proto41["m_columns"][] = "Photo";
$proto41["m_columns"][] = "Gender";
$proto41["m_columns"][] = "DateofBirth";
$proto41["m_columns"][] = "PlaceofBirth";
$proto41["m_columns"][] = "DistrictOfBirth";
$proto41["m_columns"][] = "ProvinceOfBirth";
$proto41["m_columns"][] = "FatherVillage";
$proto41["m_columns"][] = "FatherLLG";
$proto41["m_columns"][] = "FatherDistrict";
$proto41["m_columns"][] = "FATHERJOB";
$proto41["m_columns"][] = "FATHERSNAME";
$proto41["m_columns"][] = "FATHERSURNAME";
$proto41["m_columns"][] = "FATHERPROV";
$proto41["m_columns"][] = "MOTHERJOB";
$proto41["m_columns"][] = "MOTHERNAME";
$proto41["m_columns"][] = "MOTHERSURNAME";
$proto41["m_columns"][] = "MOTHERNATIONAL";
$proto41["m_columns"][] = "FATHERNATIONAL";
$proto41["m_columns"][] = "FATHERCLAN";
$proto41["m_columns"][] = "MOTHERCLAN";
$proto41["m_columns"][] = "MOTHERRELIGION";
$proto41["m_columns"][] = "FATHERRELIGION";
$proto41["m_columns"][] = "FATHERBIRTHPLACE";
$proto41["m_columns"][] = "MOTHERBIRTHPLACE";
$proto41["m_columns"][] = "MotherVillage";
$proto41["m_columns"][] = "MotherLLG";
$proto41["m_columns"][] = "MotherDistrict";
$proto41["m_columns"][] = "MOTHERPROV";
$proto41["m_columns"][] = "LastInstitutuonAttended";
$proto41["m_columns"][] = "HighestGradeCompleted";
$proto41["m_columns"][] = "YearHighestGradeCompleted";
$proto41["m_columns"][] = "TertiaryInstitutionAdmitted";
$proto41["m_columns"][] = "ProgramName";
$proto41["m_columns"][] = "ProgramCode";
$proto41["m_columns"][] = "WitnessName";
$proto41["m_columns"][] = "WitnessOccupation";
$proto41["m_columns"][] = "WitnessAddress";
$proto41["m_columns"][] = "1styear";
$proto41["m_columns"][] = "1styearTesas";
$proto41["m_columns"][] = "1styearFee";
$proto41["m_columns"][] = "Paid1stYearFee";
$proto41["m_columns"][] = "Repeat1stYear";
$proto41["m_columns"][] = "Repeat1stTESAS";
$proto41["m_columns"][] = "Repeatd1stYearFee";
$proto41["m_columns"][] = "Paid1stYrRepeatFee";
$proto41["m_columns"][] = "Passd1stYear";
$proto41["m_columns"][] = "sem1year1";
$proto41["m_columns"][] = "Year2nd";
$proto41["m_columns"][] = "TESAS2ndYear";
$proto41["m_columns"][] = "Fee2ndYear";
$proto41["m_columns"][] = "Paid2ndYearFee";
$proto41["m_columns"][] = "Repeated2ndYear";
$proto41["m_columns"][] = "Repeat2ndYrTESAS";
$proto41["m_columns"][] = "Repeat2ndYearFee";
$proto41["m_columns"][] = "Paid2ndYrRepeatFee";
$proto41["m_columns"][] = "Passd2ndYear";
$proto41["m_columns"][] = "sem1year2";
$proto41["m_columns"][] = "Year3rd";
$proto41["m_columns"][] = "TESAS3rdYear";
$proto41["m_columns"][] = "Fee3rdYear";
$proto41["m_columns"][] = "Paid3rdYrFee";
$proto41["m_columns"][] = "Repeatd3rdYear";
$proto41["m_columns"][] = "Repeat3rdYrTESAS";
$proto41["m_columns"][] = "Repeatd3rdYrFee";
$proto41["m_columns"][] = "Paid3rdYrRepeatFee";
$proto41["m_columns"][] = "Passd3rdYear";
$proto41["m_columns"][] = "sem1year3";
$proto41["m_columns"][] = "Year4th";
$proto41["m_columns"][] = "TESAS4thYear";
$proto41["m_columns"][] = "Fee4thYear";
$proto41["m_columns"][] = "Paid4thYearFee";
$proto41["m_columns"][] = "Repeated4thYear";
$proto41["m_columns"][] = "Repeath4thYrTESAS";
$proto41["m_columns"][] = "Repeat4thYrFee";
$proto41["m_columns"][] = "Paid4thYrRepeatFee";
$proto41["m_columns"][] = "Passd4thYear";
$proto41["m_columns"][] = "sem1year4";
$proto41["m_columns"][] = "Year5th";
$proto41["m_columns"][] = "TESAS5thYear";
$proto41["m_columns"][] = "Fee5thYear";
$proto41["m_columns"][] = "Paid5thYearFee";
$proto41["m_columns"][] = "Repeat5thYear";
$proto41["m_columns"][] = "Repeat5thYrTESAS";
$proto41["m_columns"][] = "Repeat5thYrFEE";
$proto41["m_columns"][] = "Paid5thYrRepeatFee";
$proto41["m_columns"][] = "Passdd5thYr";
$proto41["m_columns"][] = "sem1year5";
$proto41["m_columns"][] = "Graduated";
$proto41["m_columns"][] = "YearGraduated";
$proto41["m_columns"][] = "PostingtoSchool";
$proto41["m_columns"][] = "PostingsLLG";
$proto41["m_columns"][] = "ScholarshipType";
$proto41["m_columns"][] = "Comments";
$proto41["m_columns"][] = "NewApplicant";
$proto41["m_columns"][] = "Judge1Comment";
$proto41["m_columns"][] = "Reapply";
$proto41["m_columns"][] = "EmailAddrssAppl";
$proto41["m_columns"][] = "MobileNoAppl";
$proto41["m_columns"][] = "GPA";
$proto41["m_columns"][] = "approved1";
$proto41["m_columns"][] = "approved2";
$proto41["m_columns"][] = "approved3";
$proto41["m_columns"][] = "Judge2Comment";
$proto41["m_columns"][] = "Judge3Comment";
$proto41["m_columns"][] = "JudgeComment";
$proto41["m_columns"][] = "Lat";
$proto41["m_columns"][] = "Lng";
$proto41["m_columns"][] = "Documents";
$proto41["m_columns"][] = "judge1id";
$proto41["m_columns"][] = "judee2id";
$proto41["m_columns"][] = "judge3id";
$proto41["m_columns"][] = "username";
$proto41["m_columns"][] = "transcripts";
$proto41["m_columns"][] = "acceptletter";
$proto41["m_columns"][] = "gradetencert";
$proto41["m_columns"][] = "grade12cert";
$proto41["m_columns"][] = "natid";
$proto41["m_columns"][] = "sem2year1";
$proto41["m_columns"][] = "sem2year2";
$proto41["m_columns"][] = "sem2year3";
$proto41["m_columns"][] = "sem2year4";
$proto41["m_columns"][] = "sem2year5";
$proto41["m_columns"][] = "y1housingtype";
$proto41["m_columns"][] = "y2housingtype";
$proto41["m_columns"][] = "y3housingtype";
$proto41["m_columns"][] = "y4housingtype";
$proto41["m_columns"][] = "y5housingtype";
$proto41["m_columns"][] = "comment1";
$proto41["m_columns"][] = "comment2";
$proto41["m_columns"][] = "comment3";
$proto41["m_columns"][] = "comment4";
$proto41["m_columns"][] = "comment5";
$proto41["m_columns"][] = "assessed";
$proto41["m_columns"][] = "assessed1";
$proto41["m_columns"][] = "assessed2";
$proto41["m_columns"][] = "assessed3";
$proto41["m_columns"][] = "assessed4";
$proto41["m_columns"][] = "assessed5";
$proto41["m_columns"][] = "parentsnowliving";
$proto41["m_columns"][] = "active";
$proto41["m_columns"][] = "reset_token";
$proto41["m_columns"][] = "reset_date";
$obj = new SQLTable($proto41);

$proto40["m_table"] = $obj;
$proto40["m_sql"] = "applicform";
$proto40["m_alias"] = "";
$proto40["m_srcTableName"] = "YearlyFinancialsByInstitution";
$proto42=array();
$proto42["m_sql"] = "";
$proto42["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto42["m_column"]=$obj;
$proto42["m_contained"] = array();
$proto42["m_strCase"] = "";
$proto42["m_havingmode"] = false;
$proto42["m_inBrackets"] = false;
$proto42["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto42);

$proto40["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto40);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
												$proto44=array();
						$obj = new SQLField(array(
	"m_strName" => "TertiaryInstitutionAdmitted",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsByInstitution"
));

$proto44["m_column"]=$obj;
$proto44["m_bAsc"] = 1;
$proto44["m_nColumn"] = 0;
$obj = new SQLOrderByItem($proto44);

$proto0["m_orderby"][]=$obj;					
$proto0["m_srcTableName"]="YearlyFinancialsByInstitution";		
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_YearlyFinancialsByInstitution = createSqlQuery_YearlyFinancialsByInstitution();


	
		;

															

$tdataYearlyFinancialsByInstitution[".sqlquery"] = $queryData_YearlyFinancialsByInstitution;

$tableEvents["YearlyFinancialsByInstitution"] = new eventsBase;
$tdataYearlyFinancialsByInstitution[".hasEvents"] = false;

?>