<?php



$tdataYearlyFinancialsbyDistrict = array();
$tdataYearlyFinancialsbyDistrict[".searchableFields"] = array();
$tdataYearlyFinancialsbyDistrict[".ShortName"] = "YearlyFinancialsbyDistrict";
$tdataYearlyFinancialsbyDistrict[".OwnerID"] = "";
$tdataYearlyFinancialsbyDistrict[".OriginalTable"] = "applicform";


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

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

//	field labels
$fieldLabelsYearlyFinancialsbyDistrict = array();
$fieldToolTipsYearlyFinancialsbyDistrict = array();
$pageTitlesYearlyFinancialsbyDistrict = array();
$placeHoldersYearlyFinancialsbyDistrict = array();

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


	$tdataYearlyFinancialsbyDistrict[".NCSearch"] = true;



$tdataYearlyFinancialsbyDistrict[".shortTableName"] = "YearlyFinancialsbyDistrict";
$tdataYearlyFinancialsbyDistrict[".nSecOptions"] = 0;

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

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

	



$tdataYearlyFinancialsbyDistrict[".showAddInPopup"] = false;

$tdataYearlyFinancialsbyDistrict[".showEditInPopup"] = false;

$tdataYearlyFinancialsbyDistrict[".showViewInPopup"] = false;

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


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

	$tdataYearlyFinancialsbyDistrict[".audit"] = false;

	$tdataYearlyFinancialsbyDistrict[".locking"] = false;


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

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

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

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

$tdataYearlyFinancialsbyDistrict[".updateSelected"] = true;


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




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

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

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

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



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

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

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

$tdataYearlyFinancialsbyDistrict[".isUseAjaxSuggest"] = true;




						

$tdataYearlyFinancialsbyDistrict[".ajaxCodeSnippetAdded"] = false;

$tdataYearlyFinancialsbyDistrict[".buttonsAdded"] = false;

$tdataYearlyFinancialsbyDistrict[".addPageEvents"] = false;

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




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

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



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

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

$tdataYearlyFinancialsbyDistrict[".nPrinterSplitRecords"] = 40;

$tdataYearlyFinancialsbyDistrict[".geocodingEnabled"] = false;

//report settings

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



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

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


$tdataYearlyFinancialsbyDistrict[".isExistTotalFields"] = true;


$tdataYearlyFinancialsbyDistrict[".reportPageSummary"] = true;

$tdataYearlyFinancialsbyDistrict[".reportGlobalSummary"] = true;

$tdataYearlyFinancialsbyDistrict[".repShowDet"] = true;

$tdataYearlyFinancialsbyDistrict[".reportLayout"] = 0;

//end of report settings



$tdataYearlyFinancialsbyDistrict[".isDisplayLoading"] = true;







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

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

$tdataYearlyFinancialsbyDistrict[".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";
$tdataYearlyFinancialsbyDistrict[".sqlFrom"] = "FROM applicform";
$tdataYearlyFinancialsbyDistrict[".sqlWhereExpr"] = "(FatherDistrict <> ' ') AND ((FatherDistrict ='Lae') OR (FatherDistrict ='Bulolo') OR (FatherDistrict ='Menyama') OR (FatherDistrict ='Finschaffen') OR (FatherDistrict ='Wau') OR (FatherDistrict ='Kabwum') OR (FatherDistrict ='Nawaeb') OR (FatherDistrict ='Huon') OR (FatherDistrict ='Markham') OR (FatherDistrict ='Tewai-Siassi'))";
$tdataYearlyFinancialsbyDistrict[".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;
$tdataYearlyFinancialsbyDistrict[".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;
$tdataYearlyFinancialsbyDistrict[".arrGroupsPerPage"] = $arrGPP;

$tdataYearlyFinancialsbyDistrict[".highlightSearchResults"] = true;

$tableKeysYearlyFinancialsbyDistrict = array();
$tdataYearlyFinancialsbyDistrict[".Keys"] = $tableKeysYearlyFinancialsbyDistrict;


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




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


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


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


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


	$tdataYearlyFinancialsbyDistrict["District"] = $fdata;
		$tdataYearlyFinancialsbyDistrict[".searchableFields"][] = "District";
//	FirstYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "FirstYearFee";
	$fdata["GoodName"] = "FirstYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsbyDistrict","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


	$tdataYearlyFinancialsbyDistrict["FirstYearFee"] = $fdata;
		$tdataYearlyFinancialsbyDistrict[".searchableFields"][] = "FirstYearFee";
//	SecondYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "SecondYearFee";
	$fdata["GoodName"] = "SecondYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsbyDistrict","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


	$tdataYearlyFinancialsbyDistrict["SecondYearFee"] = $fdata;
		$tdataYearlyFinancialsbyDistrict[".searchableFields"][] = "SecondYearFee";
//	ThirdYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "ThirdYearFee";
	$fdata["GoodName"] = "ThirdYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsbyDistrict","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


	$tdataYearlyFinancialsbyDistrict["ThirdYearFee"] = $fdata;
		$tdataYearlyFinancialsbyDistrict[".searchableFields"][] = "ThirdYearFee";
//	FourthYearFee
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "FourthYearFee";
	$fdata["GoodName"] = "FourthYearFee";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("YearlyFinancialsbyDistrict","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


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


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


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


$tables_data["YearlyFinancialsbyDistrict"]=&$tdataYearlyFinancialsbyDistrict;
$field_labels["YearlyFinancialsbyDistrict"] = &$fieldLabelsYearlyFinancialsbyDistrict;
$fieldToolTips["YearlyFinancialsbyDistrict"] = &$fieldToolTipsYearlyFinancialsbyDistrict;
$placeHolders["YearlyFinancialsbyDistrict"] = &$placeHoldersYearlyFinancialsbyDistrict;
$page_titles["YearlyFinancialsbyDistrict"] = &$pageTitlesYearlyFinancialsbyDistrict;

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

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



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


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










function createSqlQuery_YearlyFinancialsbyDistrict()
{
$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 <> ' ') AND ((FatherDistrict ='Lae') OR (FatherDistrict ='Bulolo') OR (FatherDistrict ='Menyama') OR (FatherDistrict ='Finschaffen') OR (FatherDistrict ='Wau') OR (FatherDistrict ='Kabwum') OR (FatherDistrict ='Nawaeb') OR (FatherDistrict ='Huon') OR (FatherDistrict ='Markham') OR (FatherDistrict ='Tewai-Siassi'))";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "(FatherDistrict <> ' ') AND ((FatherDistrict ='Lae') OR (FatherDistrict ='Bulolo') OR (FatherDistrict ='Menyama') OR (FatherDistrict ='Finschaffen') OR (FatherDistrict ='Wau') OR (FatherDistrict ='Kabwum') OR (FatherDistrict ='Nawaeb') OR (FatherDistrict ='Huon') OR (FatherDistrict ='Markham') OR (FatherDistrict ='Tewai-Siassi'))";
$proto2["m_uniontype"] = "SQLL_AND";
	$obj = new SQLNonParsed(array(
	"m_sql" => "(FatherDistrict <> ' ') AND ((FatherDistrict ='Lae') OR (FatherDistrict ='Bulolo') OR (FatherDistrict ='Menyama') OR (FatherDistrict ='Finschaffen') OR (FatherDistrict ='Wau') OR (FatherDistrict ='Kabwum') OR (FatherDistrict ='Nawaeb') OR (FatherDistrict ='Huon') OR (FatherDistrict ='Markham') OR (FatherDistrict ='Tewai-Siassi'))"
));

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

$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"] = "(FatherDistrict ='Lae') OR (FatherDistrict ='Bulolo') OR (FatherDistrict ='Menyama') OR (FatherDistrict ='Finschaffen') OR (FatherDistrict ='Wau') OR (FatherDistrict ='Kabwum') OR (FatherDistrict ='Nawaeb') OR (FatherDistrict ='Huon') OR (FatherDistrict ='Markham') OR (FatherDistrict ='Tewai-Siassi')";
$proto6["m_uniontype"] = "SQLL_OR";
	$obj = new SQLNonParsed(array(
	"m_sql" => "(FatherDistrict ='Lae') OR (FatherDistrict ='Bulolo') OR (FatherDistrict ='Menyama') OR (FatherDistrict ='Finschaffen') OR (FatherDistrict ='Wau') OR (FatherDistrict ='Kabwum') OR (FatherDistrict ='Nawaeb') OR (FatherDistrict ='Huon') OR (FatherDistrict ='Markham') OR (FatherDistrict ='Tewai-Siassi')"
));

$proto6["m_column"]=$obj;
$proto6["m_contained"] = array();
						$proto8=array();
$proto8["m_sql"] = "FatherDistrict ='Lae'";
$proto8["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

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

			$proto6["m_contained"][]=$obj;
						$proto10=array();
$proto10["m_sql"] = "FatherDistrict ='Bulolo'";
$proto10["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

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

			$proto6["m_contained"][]=$obj;
						$proto12=array();
$proto12["m_sql"] = "FatherDistrict ='Menyama'";
$proto12["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

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

			$proto6["m_contained"][]=$obj;
						$proto14=array();
$proto14["m_sql"] = "FatherDistrict ='Finschaffen'";
$proto14["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

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

			$proto6["m_contained"][]=$obj;
						$proto16=array();
$proto16["m_sql"] = "FatherDistrict ='Wau'";
$proto16["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

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

			$proto6["m_contained"][]=$obj;
						$proto18=array();
$proto18["m_sql"] = "FatherDistrict ='Kabwum'";
$proto18["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

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

			$proto6["m_contained"][]=$obj;
						$proto20=array();
$proto20["m_sql"] = "FatherDistrict ='Nawaeb'";
$proto20["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

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

			$proto6["m_contained"][]=$obj;
						$proto22=array();
$proto22["m_sql"] = "FatherDistrict ='Huon'";
$proto22["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

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

			$proto6["m_contained"][]=$obj;
						$proto24=array();
$proto24["m_sql"] = "FatherDistrict ='Markham'";
$proto24["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

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

			$proto6["m_contained"][]=$obj;
						$proto26=array();
$proto26["m_sql"] = "FatherDistrict ='Tewai-Siassi'";
$proto26["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "YearlyFinancialsbyDistrict"
));

$proto26["m_column"]=$obj;
$proto26["m_contained"] = array();
$proto26["m_strCase"] = "='Tewai-Siassi'";
$proto26["m_havingmode"] = false;
$proto26["m_inBrackets"] = true;
$proto26["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto26);

			$proto6["m_contained"][]=$obj;
$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;
$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);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto50["m_table"] = $obj;
$proto50["m_sql"] = "applicform";
$proto50["m_alias"] = "";
$proto50["m_srcTableName"] = "YearlyFinancialsbyDistrict";
$proto52=array();
$proto52["m_sql"] = "";
$proto52["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_YearlyFinancialsbyDistrict = createSqlQuery_YearlyFinancialsbyDistrict();


	
		;

										

$tdataYearlyFinancialsbyDistrict[".sqlquery"] = $queryData_YearlyFinancialsbyDistrict;

$tableEvents["YearlyFinancialsbyDistrict"] = new eventsBase;
$tdataYearlyFinancialsbyDistrict[".hasEvents"] = false;

?>