<?php



$tdataYearlyFinancials = array();
$tdataYearlyFinancials[".searchableFields"] = array();
$tdataYearlyFinancials[".ShortName"] = "YearlyFinancials";
$tdataYearlyFinancials[".OwnerID"] = "";
$tdataYearlyFinancials[".OriginalTable"] = "applicform";


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

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

//	field labels
$fieldLabelsYearlyFinancials = array();
$fieldToolTipsYearlyFinancials = array();
$pageTitlesYearlyFinancials = array();
$placeHoldersYearlyFinancials = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsYearlyFinancials["English"] = array();
	$fieldToolTipsYearlyFinancials["English"] = array();
	$placeHoldersYearlyFinancials["English"] = array();
	$pageTitlesYearlyFinancials["English"] = array();
	$fieldLabelsYearlyFinancials["English"]["StudentSchoolID"] = "Student School ID";
	$fieldToolTipsYearlyFinancials["English"]["StudentSchoolID"] = "";
	$placeHoldersYearlyFinancials["English"]["StudentSchoolID"] = "";
	$fieldLabelsYearlyFinancials["English"]["Surname"] = "Surname";
	$fieldToolTipsYearlyFinancials["English"]["Surname"] = "";
	$placeHoldersYearlyFinancials["English"]["Surname"] = "";
	$fieldLabelsYearlyFinancials["English"]["FirstName"] = "First Name";
	$fieldToolTipsYearlyFinancials["English"]["FirstName"] = "";
	$placeHoldersYearlyFinancials["English"]["FirstName"] = "";
	$fieldLabelsYearlyFinancials["English"]["FirstYearFee"] = "First Year Fee";
	$fieldToolTipsYearlyFinancials["English"]["FirstYearFee"] = "";
	$placeHoldersYearlyFinancials["English"]["FirstYearFee"] = "";
	$fieldLabelsYearlyFinancials["English"]["SecondYearFee"] = "Second Year Fee";
	$fieldToolTipsYearlyFinancials["English"]["SecondYearFee"] = "";
	$placeHoldersYearlyFinancials["English"]["SecondYearFee"] = "";
	$fieldLabelsYearlyFinancials["English"]["ThirdYearFee"] = "Third Year Fee";
	$fieldToolTipsYearlyFinancials["English"]["ThirdYearFee"] = "";
	$placeHoldersYearlyFinancials["English"]["ThirdYearFee"] = "";
	$fieldLabelsYearlyFinancials["English"]["FourthYearFee"] = "Fourth Year Fee";
	$fieldToolTipsYearlyFinancials["English"]["FourthYearFee"] = "";
	$placeHoldersYearlyFinancials["English"]["FourthYearFee"] = "";
	$fieldLabelsYearlyFinancials["English"]["FifthYearFee"] = "Fifth Year Fee";
	$fieldToolTipsYearlyFinancials["English"]["FifthYearFee"] = "";
	$placeHoldersYearlyFinancials["English"]["FifthYearFee"] = "";
	$fieldLabelsYearlyFinancials["English"]["StudentTotall"] = "Student Totall";
	$fieldToolTipsYearlyFinancials["English"]["StudentTotall"] = "";
	$placeHoldersYearlyFinancials["English"]["StudentTotall"] = "";
	$fieldLabelsYearlyFinancials["English"]["District"] = "District";
	$fieldToolTipsYearlyFinancials["English"]["District"] = "";
	$placeHoldersYearlyFinancials["English"]["District"] = "";
	if (count($fieldToolTipsYearlyFinancials["English"]))
		$tdataYearlyFinancials[".isUseToolTips"] = true;
}


	$tdataYearlyFinancials[".NCSearch"] = true;



$tdataYearlyFinancials[".shortTableName"] = "YearlyFinancials";
$tdataYearlyFinancials[".nSecOptions"] = 0;

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

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

	



$tdataYearlyFinancials[".showAddInPopup"] = false;

$tdataYearlyFinancials[".showEditInPopup"] = false;

$tdataYearlyFinancials[".showViewInPopup"] = false;

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


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

	$tdataYearlyFinancials[".audit"] = false;

	$tdataYearlyFinancials[".locking"] = false;


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

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

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

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

$tdataYearlyFinancials[".updateSelected"] = true;


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




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

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

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

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



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

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

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

$tdataYearlyFinancials[".isUseAjaxSuggest"] = true;




						

$tdataYearlyFinancials[".ajaxCodeSnippetAdded"] = false;

$tdataYearlyFinancials[".buttonsAdded"] = false;

$tdataYearlyFinancials[".addPageEvents"] = false;

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




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

$tdataYearlyFinancials[".googleLikeFields"] = array();
$tdataYearlyFinancials[".googleLikeFields"][] = "Surname";
$tdataYearlyFinancials[".googleLikeFields"][] = "FirstName";
$tdataYearlyFinancials[".googleLikeFields"][] = "StudentSchoolID";
$tdataYearlyFinancials[".googleLikeFields"][] = "District";
$tdataYearlyFinancials[".googleLikeFields"][] = "FirstYearFee";
$tdataYearlyFinancials[".googleLikeFields"][] = "SecondYearFee";
$tdataYearlyFinancials[".googleLikeFields"][] = "ThirdYearFee";
$tdataYearlyFinancials[".googleLikeFields"][] = "FourthYearFee";
$tdataYearlyFinancials[".googleLikeFields"][] = "FifthYearFee";
$tdataYearlyFinancials[".googleLikeFields"][] = "StudentTotall";



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

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

$tdataYearlyFinancials[".nPrinterSplitRecords"] = 40;

$tdataYearlyFinancials[".geocodingEnabled"] = false;

//report settings
$tdataYearlyFinancials[".printReportLayout"] = 6;

$tdataYearlyFinancials[".reportPrintPartitionType"] = 1;
$tdataYearlyFinancials[".reportPrintGroupsPerPage"] = 40;
$tdataYearlyFinancials[".lowGroup"] = 0;



$tdataYearlyFinancials[".pageSize"] = 20;


$tdataYearlyFinancials[".isExistTotalFields"] = true;




$tdataYearlyFinancials[".repShowDet"] = true;

$tdataYearlyFinancials[".reportLayout"] = 6;

//end of report settings



$tdataYearlyFinancials[".isDisplayLoading"] = true;







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

$tdataYearlyFinancials[".orderindexes"] = array();

$tdataYearlyFinancials[".sqlHead"] = "SELECT Surname,  FirstName,  StudentSchoolID,  FatherDistrict AS District,  (`1styearFee`+ Repeatd1stYearFee) AS FirstYearFee,  (Fee2ndYear + Repeat2ndYearFee) AS SecondYearFee,  (Fee3rdYear + Repeatd3rdYrFee) AS ThirdYearFee,  (Fee4thYear)+(Repeat4thYrFee) AS FourthYearFee,  (Fee5thYear + Repeat5thYrFEE) AS FifthYearFee,  (`1styearFee`+ Repeatd1stYearFee + Fee2ndYear + Repeat2ndYearFee + Fee3rdYear + Repeatd3rdYrFee + Fee4thYear + Repeat4thYrFee + Fee5thYear + Repeat5thYrFEE) AS StudentTotall";
$tdataYearlyFinancials[".sqlFrom"] = "FROM applicform";
$tdataYearlyFinancials[".sqlWhereExpr"] = "(FatherDistrict <> ' ')";
$tdataYearlyFinancials[".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;
$tdataYearlyFinancials[".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;
$tdataYearlyFinancials[".arrGroupsPerPage"] = $arrGPP;

$tdataYearlyFinancials[".highlightSearchResults"] = true;

$tableKeysYearlyFinancials = array();
$tdataYearlyFinancials[".Keys"] = $tableKeysYearlyFinancials;


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




//	Surname
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "Surname";
	$fdata["GoodName"] = "Surname";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("YearlyFinancials","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


	$tdataYearlyFinancials["Surname"] = $fdata;
		$tdataYearlyFinancials[".searchableFields"][] = "Surname";
//	FirstName
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "FirstName";
	$fdata["GoodName"] = "FirstName";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("YearlyFinancials","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


	$tdataYearlyFinancials["FirstName"] = $fdata;
		$tdataYearlyFinancials[".searchableFields"][] = "FirstName";
//	StudentSchoolID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "StudentSchoolID";
	$fdata["GoodName"] = "StudentSchoolID";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("YearlyFinancials","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


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

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

	
	
			

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

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

	
	
				$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


	$tdataYearlyFinancials["District"] = $fdata;
		$tdataYearlyFinancials[".searchableFields"][] = "District";
//	FirstYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "FirstYearFee";
	$fdata["GoodName"] = "FirstYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancials","FirstYearFee");
	$fdata["FieldType"] = 5;

		// report field settings
					// 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


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

		// report field settings
					// 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


	$tdataYearlyFinancials["SecondYearFee"] = $fdata;
		$tdataYearlyFinancials[".searchableFields"][] = "SecondYearFee";
//	ThirdYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "ThirdYearFee";
	$fdata["GoodName"] = "ThirdYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancials","ThirdYearFee");
	$fdata["FieldType"] = 5;

		// report field settings
					// 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


	$tdataYearlyFinancials["ThirdYearFee"] = $fdata;
		$tdataYearlyFinancials[".searchableFields"][] = "ThirdYearFee";
//	FourthYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "FourthYearFee";
	$fdata["GoodName"] = "FourthYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancials","FourthYearFee");
	$fdata["FieldType"] = 5;

		// report field settings
					// 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


	$tdataYearlyFinancials["FourthYearFee"] = $fdata;
		$tdataYearlyFinancials[".searchableFields"][] = "FourthYearFee";
//	FifthYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "FifthYearFee";
	$fdata["GoodName"] = "FifthYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancials","FifthYearFee");
	$fdata["FieldType"] = 5;

		// report field settings
					// 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


	$tdataYearlyFinancials["FifthYearFee"] = $fdata;
		$tdataYearlyFinancials[".searchableFields"][] = "FifthYearFee";
//	StudentTotall
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "StudentTotall";
	$fdata["GoodName"] = "StudentTotall";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancials","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


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


$tables_data["YearlyFinancials"]=&$tdataYearlyFinancials;
$field_labels["YearlyFinancials"] = &$fieldLabelsYearlyFinancials;
$fieldToolTips["YearlyFinancials"] = &$fieldToolTipsYearlyFinancials;
$placeHolders["YearlyFinancials"] = &$placeHoldersYearlyFinancials;
$page_titles["YearlyFinancials"] = &$pageTitlesYearlyFinancials;

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

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



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


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










function createSqlQuery_YearlyFinancials()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "Surname,  FirstName,  StudentSchoolID,  FatherDistrict AS District,  (`1styearFee`+ Repeatd1stYearFee) AS FirstYearFee,  (Fee2ndYear + Repeat2ndYearFee) AS SecondYearFee,  (Fee3rdYear + Repeatd3rdYrFee) AS ThirdYearFee,  (Fee4thYear)+(Repeat4thYrFee) AS FourthYearFee,  (Fee5thYear + Repeat5thYrFEE) AS FifthYearFee,  (`1styearFee`+ Repeatd1stYearFee + Fee2ndYear + Repeat2ndYearFee + Fee3rdYear + Repeatd3rdYrFee + Fee4thYear + Repeat4thYrFee + Fee5thYear + Repeat5thYrFEE) AS StudentTotall";
$proto0["m_strFrom"] = "FROM applicform";
$proto0["m_strWhere"] = "(FatherDistrict <> ' ')";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "FatherDistrict <> ' '";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancials"
));

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

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

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

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

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

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

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

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

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

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

$proto12["m_sql"] = "FatherDistrict";
$proto12["m_srcTableName"] = "YearlyFinancials";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "District";
$obj = new SQLFieldListItem($proto12);

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto26["m_table"] = $obj;
$proto26["m_sql"] = "applicform";
$proto26["m_alias"] = "";
$proto26["m_srcTableName"] = "YearlyFinancials";
$proto28=array();
$proto28["m_sql"] = "";
$proto28["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$proto0["m_srcTableName"]="YearlyFinancials";		
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_YearlyFinancials = createSqlQuery_YearlyFinancials();


	
		;

										

$tdataYearlyFinancials[".sqlquery"] = $queryData_YearlyFinancials;

$tableEvents["YearlyFinancials"] = new eventsBase;
$tdataYearlyFinancials[".hasEvents"] = false;

?>