<?php



$tdataNewApprovd2017byDistrict = array();
$tdataNewApprovd2017byDistrict[".searchableFields"] = array();
$tdataNewApprovd2017byDistrict[".ShortName"] = "NewApprovd2017byDistrict";
$tdataNewApprovd2017byDistrict[".OwnerID"] = "";
$tdataNewApprovd2017byDistrict[".OriginalTable"] = "applicform";


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

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

//	field labels
$fieldLabelsNewApprovd2017byDistrict = array();
$fieldToolTipsNewApprovd2017byDistrict = array();
$pageTitlesNewApprovd2017byDistrict = array();
$placeHoldersNewApprovd2017byDistrict = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsNewApprovd2017byDistrict["English"] = array();
	$fieldToolTipsNewApprovd2017byDistrict["English"] = array();
	$placeHoldersNewApprovd2017byDistrict["English"] = array();
	$pageTitlesNewApprovd2017byDistrict["English"] = array();
	$fieldLabelsNewApprovd2017byDistrict["English"]["Surname"] = "Surname";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["Surname"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["Surname"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["FirstName"] = "First Name";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["FirstName"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["FirstName"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["TertiaryInstitutionAdmitted"] = "Tertiary Institution Admitted";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["TertiaryInstitutionAdmitted"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["TertiaryInstitutionAdmitted"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["ScholarshipType"] = "Scholarship Type";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["ScholarshipType"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["ScholarshipType"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["Reapply"] = "Reapply";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["Reapply"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["Reapply"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["ProgramName"] = "Program Name";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["ProgramName"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["ProgramName"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["1styear"] = "1styear";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["1styear"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["1styear"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["Year2nd"] = "Year2nd";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["Year2nd"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["Year2nd"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["Year3rd"] = "Year3rd";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["Year3rd"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["Year3rd"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["Year4th"] = "Year4th";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["Year4th"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["Year4th"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["Year5th"] = "Year5th";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["Year5th"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["Year5th"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["assessed"] = "Assessed";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["assessed"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["assessed"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["FatherDistrict"] = "District";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["FatherDistrict"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["FatherDistrict"] = "";
	$fieldLabelsNewApprovd2017byDistrict["English"]["MotherDistrict"] = "Mother District";
	$fieldToolTipsNewApprovd2017byDistrict["English"]["MotherDistrict"] = "";
	$placeHoldersNewApprovd2017byDistrict["English"]["MotherDistrict"] = "";
	if (count($fieldToolTipsNewApprovd2017byDistrict["English"]))
		$tdataNewApprovd2017byDistrict[".isUseToolTips"] = true;
}


	$tdataNewApprovd2017byDistrict[".NCSearch"] = true;



$tdataNewApprovd2017byDistrict[".shortTableName"] = "NewApprovd2017byDistrict";
$tdataNewApprovd2017byDistrict[".nSecOptions"] = 0;

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

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

	



$tdataNewApprovd2017byDistrict[".showAddInPopup"] = false;

$tdataNewApprovd2017byDistrict[".showEditInPopup"] = false;

$tdataNewApprovd2017byDistrict[".showViewInPopup"] = false;

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


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

	$tdataNewApprovd2017byDistrict[".audit"] = false;

	$tdataNewApprovd2017byDistrict[".locking"] = false;


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

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

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

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

$tdataNewApprovd2017byDistrict[".updateSelected"] = true;


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




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

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

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

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



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

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

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

$tdataNewApprovd2017byDistrict[".isUseAjaxSuggest"] = true;




						

$tdataNewApprovd2017byDistrict[".ajaxCodeSnippetAdded"] = false;

$tdataNewApprovd2017byDistrict[".buttonsAdded"] = false;

$tdataNewApprovd2017byDistrict[".addPageEvents"] = false;

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




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

$tdataNewApprovd2017byDistrict[".googleLikeFields"] = array();
$tdataNewApprovd2017byDistrict[".googleLikeFields"][] = "Surname";
$tdataNewApprovd2017byDistrict[".googleLikeFields"][] = "FirstName";
$tdataNewApprovd2017byDistrict[".googleLikeFields"][] = "TertiaryInstitutionAdmitted";
$tdataNewApprovd2017byDistrict[".googleLikeFields"][] = "ProgramName";
$tdataNewApprovd2017byDistrict[".googleLikeFields"][] = "FatherDistrict";
$tdataNewApprovd2017byDistrict[".googleLikeFields"][] = "MotherDistrict";



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

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

$tdataNewApprovd2017byDistrict[".nPrinterSplitRecords"] = 40;

$tdataNewApprovd2017byDistrict[".geocodingEnabled"] = false;

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

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



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

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




$tdataNewApprovd2017byDistrict[".reportPageSummary"] = true;

$tdataNewApprovd2017byDistrict[".reportGlobalSummary"] = true;

$tdataNewApprovd2017byDistrict[".repShowDet"] = true;

$tdataNewApprovd2017byDistrict[".reportLayout"] = 3;

//end of report settings



$tdataNewApprovd2017byDistrict[".isDisplayLoading"] = true;







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

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

	$tdataNewApprovd2017byDistrict[".orderindexes"][] = array(13, (1 ? "ASC" : "DESC"), "FatherDistrict");

	$tdataNewApprovd2017byDistrict[".orderindexes"][] = array(14, (1 ? "ASC" : "DESC"), "MotherDistrict");


$tdataNewApprovd2017byDistrict[".sqlHead"] = "SELECT Surname,  FirstName,  `1styear`,  Year2nd,  Year3rd,  Year4th,  Year5th,  Reapply,  TertiaryInstitutionAdmitted,  ScholarshipType,  ProgramName,  assessed,  FatherDistrict,  MotherDistrict";
$tdataNewApprovd2017byDistrict[".sqlFrom"] = "FROM applicform";
$tdataNewApprovd2017byDistrict[".sqlWhereExpr"] = "(NewApplicant is true) and (((`1styear` > 2013) or (Year2nd > 2013) or (Year3rd > 2017) or (Year4th > 2013) or (Year5th > 2013)) is true) AND  (assessed is true) AND (TertiaryInstitutionAdmitted is not null) AND (((approved1 IS TRUE) AND (approved2 IS TRUE) AND (approved3 IS TRUE)) is true) AND   (((FatherDistrict='Bulolo') or (MotherDistrict='Bulolo')) is true) OR   (((FatherDistrict='Huon') or (MotherDistrict='Huon')) is true) OR   (((FatherDistrict='Markham') or (MotherDistrict='Markham')) is true) OR   (((FatherDistrict='Menyama') or (MotherDistrict='Menyama')) is true) OR   (((FatherDistrict='Finshafen') or (MotherDistrict='Finshafen')) is true) OR   (((FatherDistrict='Lae') or (MotherDistrict='Lae')) is true) OR   (((FatherDistrict='Nawaeb') or (MotherDistrict='Nawae')) is true) AND   (((FatherDistrict <> 'Non-Morobean') or (MotherDistrict <> 'Non-Morobean')) is true)";
$tdataNewApprovd2017byDistrict[".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;
$tdataNewApprovd2017byDistrict[".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;
$tdataNewApprovd2017byDistrict[".arrGroupsPerPage"] = $arrGPP;

$tdataNewApprovd2017byDistrict[".highlightSearchResults"] = true;

$tableKeysNewApprovd2017byDistrict = array();
$tdataNewApprovd2017byDistrict[".Keys"] = $tableKeysNewApprovd2017byDistrict;


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




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

			// 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


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

			// 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


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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["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
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["1styear"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "1styear";
//	Year2nd
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "Year2nd";
	$fdata["GoodName"] = "Year2nd";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","Year2nd");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

	
	
				$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
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["Year2nd"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "Year2nd";
//	Year3rd
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "Year3rd";
	$fdata["GoodName"] = "Year3rd";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","Year3rd");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

	
	
				$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
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["Year3rd"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "Year3rd";
//	Year4th
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "Year4th";
	$fdata["GoodName"] = "Year4th";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","Year4th");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

	
	
				$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
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["Year4th"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "Year4th";
//	Year5th
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "Year5th";
	$fdata["GoodName"] = "Year5th";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","Year5th");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

	
	
				$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
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["Year5th"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "Year5th";
//	Reapply
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "Reapply";
	$fdata["GoodName"] = "Reapply";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","Reapply");
	$fdata["FieldType"] = 3;

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

	
	
			

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

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

	
	
				$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"] = "number";

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

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

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


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["Reapply"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "Reapply";
//	TertiaryInstitutionAdmitted
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "TertiaryInstitutionAdmitted";
	$fdata["GoodName"] = "TertiaryInstitutionAdmitted";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","TertiaryInstitutionAdmitted");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$edata["controlWidth"] = 200;

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

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


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["TertiaryInstitutionAdmitted"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "TertiaryInstitutionAdmitted";
//	ScholarshipType
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "ScholarshipType";
	$fdata["GoodName"] = "ScholarshipType";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","ScholarshipType");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

	
	
				$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=255";

		$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
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["ScholarshipType"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "ScholarshipType";
//	ProgramName
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "ProgramName";
	$fdata["GoodName"] = "ProgramName";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","ProgramName");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

	
	
				$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
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["ProgramName"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "ProgramName";
//	assessed
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "assessed";
	$fdata["GoodName"] = "assessed";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","assessed");
	$fdata["FieldType"] = 3;

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

	
	
			

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

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

	
	
				$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"] = "number";

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

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

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


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["assessed"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "assessed";
//	FatherDistrict
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "FatherDistrict";
	$fdata["GoodName"] = "FatherDistrict";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","FatherDistrict");
	$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["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
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["FatherDistrict"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "FatherDistrict";
//	MotherDistrict
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "MotherDistrict";
	$fdata["GoodName"] = "MotherDistrict";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("NewApprovd2017byDistrict","MotherDistrict");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

	
	
				$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
		$fdata["defaultSearchOption"] = "Contains";

			// 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


	$tdataNewApprovd2017byDistrict["MotherDistrict"] = $fdata;
		$tdataNewApprovd2017byDistrict[".searchableFields"][] = "MotherDistrict";


$tables_data["NewApprovd2017byDistrict"]=&$tdataNewApprovd2017byDistrict;
$field_labels["NewApprovd2017byDistrict"] = &$fieldLabelsNewApprovd2017byDistrict;
$fieldToolTips["NewApprovd2017byDistrict"] = &$fieldToolTipsNewApprovd2017byDistrict;
$placeHolders["NewApprovd2017byDistrict"] = &$placeHoldersNewApprovd2017byDistrict;
$page_titles["NewApprovd2017byDistrict"] = &$pageTitlesNewApprovd2017byDistrict;

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

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



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


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










function createSqlQuery_NewApprovd2017byDistrict()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "Surname,  FirstName,  `1styear`,  Year2nd,  Year3rd,  Year4th,  Year5th,  Reapply,  TertiaryInstitutionAdmitted,  ScholarshipType,  ProgramName,  assessed,  FatherDistrict,  MotherDistrict";
$proto0["m_strFrom"] = "FROM applicform";
$proto0["m_strWhere"] = "(NewApplicant is true) and (((`1styear` > 2013) or (Year2nd > 2013) or (Year3rd > 2017) or (Year4th > 2013) or (Year5th > 2013)) is true) AND  (assessed is true) AND (TertiaryInstitutionAdmitted is not null) AND (((approved1 IS TRUE) AND (approved2 IS TRUE) AND (approved3 IS TRUE)) is true) AND   (((FatherDistrict='Bulolo') or (MotherDistrict='Bulolo')) is true) OR   (((FatherDistrict='Huon') or (MotherDistrict='Huon')) is true) OR   (((FatherDistrict='Markham') or (MotherDistrict='Markham')) is true) OR   (((FatherDistrict='Menyama') or (MotherDistrict='Menyama')) is true) OR   (((FatherDistrict='Finshafen') or (MotherDistrict='Finshafen')) is true) OR   (((FatherDistrict='Lae') or (MotherDistrict='Lae')) is true) OR   (((FatherDistrict='Nawaeb') or (MotherDistrict='Nawae')) is true) AND   (((FatherDistrict <> 'Non-Morobean') or (MotherDistrict <> 'Non-Morobean')) is true)";
$proto0["m_strOrderBy"] = "ORDER BY TertiaryInstitutionAdmitted, FatherDistrict, MotherDistrict";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "(NewApplicant is true) and (((`1styear` > 2013) or (Year2nd > 2013) or (Year3rd > 2017) or (Year4th > 2013) or (Year5th > 2013)) is true) AND  (assessed is true) AND (TertiaryInstitutionAdmitted is not null) AND (((approved1 IS TRUE) AND (approved2 IS TRUE) AND (approved3 IS TRUE)) is true) AND   (((FatherDistrict='Bulolo') or (MotherDistrict='Bulolo')) is true) OR   (((FatherDistrict='Huon') or (MotherDistrict='Huon')) is true) OR   (((FatherDistrict='Markham') or (MotherDistrict='Markham')) is true) OR   (((FatherDistrict='Menyama') or (MotherDistrict='Menyama')) is true) OR   (((FatherDistrict='Finshafen') or (MotherDistrict='Finshafen')) is true) OR   (((FatherDistrict='Lae') or (MotherDistrict='Lae')) is true) OR   (((FatherDistrict='Nawaeb') or (MotherDistrict='Nawae')) is true) AND   (((FatherDistrict <> 'Non-Morobean') or (MotherDistrict <> 'Non-Morobean')) is true)";
$proto2["m_uniontype"] = "SQLL_OR";
	$obj = new SQLNonParsed(array(
	"m_sql" => "(NewApplicant is true) and (((`1styear` > 2013) or (Year2nd > 2013) or (Year3rd > 2017) or (Year4th > 2013) or (Year5th > 2013)) is true) AND  (assessed is true) AND (TertiaryInstitutionAdmitted is not null) AND (((approved1 IS TRUE) AND (approved2 IS TRUE) AND (approved3 IS TRUE)) is true) AND   (((FatherDistrict='Bulolo') or (MotherDistrict='Bulolo')) is true) OR   (((FatherDistrict='Huon') or (MotherDistrict='Huon')) is true) OR   (((FatherDistrict='Markham') or (MotherDistrict='Markham')) is true) OR   (((FatherDistrict='Menyama') or (MotherDistrict='Menyama')) is true) OR   (((FatherDistrict='Finshafen') or (MotherDistrict='Finshafen')) is true) OR   (((FatherDistrict='Lae') or (MotherDistrict='Lae')) is true) OR   (((FatherDistrict='Nawaeb') or (MotherDistrict='Nawae')) is true) AND   (((FatherDistrict <> 'Non-Morobean') or (MotherDistrict <> 'Non-Morobean')) is true)"
));

$proto2["m_column"]=$obj;
$proto2["m_contained"] = array();
						$proto4=array();
$proto4["m_sql"] = "(NewApplicant is true) and (((`1styear` > 2013) or (Year2nd > 2013) or (Year3rd > 2017) or (Year4th > 2013) or (Year5th > 2013)) is true) AND  (assessed is true) AND (TertiaryInstitutionAdmitted is not null) AND (((approved1 IS TRUE) AND (approved2 IS TRUE) AND (approved3 IS TRUE)) is true) AND   (((FatherDistrict='Bulolo') or (MotherDistrict='Bulolo')) is true)";
$proto4["m_uniontype"] = "SQLL_AND";
	$obj = new SQLNonParsed(array(
	"m_sql" => "(NewApplicant is true) and (((`1styear` > 2013) or (Year2nd > 2013) or (Year3rd > 2017) or (Year4th > 2013) or (Year5th > 2013)) is true) AND  (assessed is true) AND (TertiaryInstitutionAdmitted is not null) AND (((approved1 IS TRUE) AND (approved2 IS TRUE) AND (approved3 IS TRUE)) is true) AND   (((FatherDistrict='Bulolo') or (MotherDistrict='Bulolo')) is true)"
));

$proto4["m_column"]=$obj;
$proto4["m_contained"] = array();
						$proto6=array();
$proto6["m_sql"] = "NewApplicant is true";
$proto6["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "NewApplicant",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

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

			$proto4["m_contained"][]=$obj;
						$proto8=array();
$proto8["m_sql"] = "((`1styear` > 2013) or (Year2nd > 2013) or (Year3rd > 2017) or (Year4th > 2013) or (Year5th > 2013)) is true";
$proto8["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((`1styear` > 2013) or (Year2nd > 2013) or (Year3rd > 2017) or (Year4th > 2013) or (Year5th > 2013))"
));

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

			$proto4["m_contained"][]=$obj;
						$proto10=array();
$proto10["m_sql"] = "assessed is true";
$proto10["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "assessed",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

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

			$proto4["m_contained"][]=$obj;
						$proto12=array();
$proto12["m_sql"] = "TertiaryInstitutionAdmitted is not null";
$proto12["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "TertiaryInstitutionAdmitted",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

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

			$proto4["m_contained"][]=$obj;
						$proto14=array();
$proto14["m_sql"] = "((approved1 IS TRUE) AND (approved2 IS TRUE) AND (approved3 IS TRUE)) is true";
$proto14["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((approved1 IS TRUE) AND (approved2 IS TRUE) AND (approved3 IS TRUE))"
));

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

			$proto4["m_contained"][]=$obj;
						$proto16=array();
$proto16["m_sql"] = "((FatherDistrict='Bulolo') or (MotherDistrict='Bulolo')) is true";
$proto16["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((FatherDistrict='Bulolo') or (MotherDistrict='Bulolo'))"
));

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

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

			$proto2["m_contained"][]=$obj;
						$proto18=array();
$proto18["m_sql"] = "((FatherDistrict='Huon') or (MotherDistrict='Huon')) is true";
$proto18["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((FatherDistrict='Huon') or (MotherDistrict='Huon'))"
));

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

			$proto2["m_contained"][]=$obj;
						$proto20=array();
$proto20["m_sql"] = "((FatherDistrict='Markham') or (MotherDistrict='Markham')) is true";
$proto20["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((FatherDistrict='Markham') or (MotherDistrict='Markham'))"
));

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

			$proto2["m_contained"][]=$obj;
						$proto22=array();
$proto22["m_sql"] = "((FatherDistrict='Menyama') or (MotherDistrict='Menyama')) is true";
$proto22["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((FatherDistrict='Menyama') or (MotherDistrict='Menyama'))"
));

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

			$proto2["m_contained"][]=$obj;
						$proto24=array();
$proto24["m_sql"] = "((FatherDistrict='Finshafen') or (MotherDistrict='Finshafen')) is true";
$proto24["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((FatherDistrict='Finshafen') or (MotherDistrict='Finshafen'))"
));

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

			$proto2["m_contained"][]=$obj;
						$proto26=array();
$proto26["m_sql"] = "((FatherDistrict='Lae') or (MotherDistrict='Lae')) is true";
$proto26["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((FatherDistrict='Lae') or (MotherDistrict='Lae'))"
));

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

			$proto2["m_contained"][]=$obj;
						$proto28=array();
$proto28["m_sql"] = "(((FatherDistrict='Nawaeb') or (MotherDistrict='Nawae')) is true) AND   (((FatherDistrict <> 'Non-Morobean') or (MotherDistrict <> 'Non-Morobean')) is true)";
$proto28["m_uniontype"] = "SQLL_AND";
	$obj = new SQLNonParsed(array(
	"m_sql" => "(((FatherDistrict='Nawaeb') or (MotherDistrict='Nawae')) is true) AND   (((FatherDistrict <> 'Non-Morobean') or (MotherDistrict <> 'Non-Morobean')) is true)"
));

$proto28["m_column"]=$obj;
$proto28["m_contained"] = array();
						$proto30=array();
$proto30["m_sql"] = "((FatherDistrict='Nawaeb') or (MotherDistrict='Nawae')) is true";
$proto30["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((FatherDistrict='Nawaeb') or (MotherDistrict='Nawae'))"
));

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

			$proto28["m_contained"][]=$obj;
						$proto32=array();
$proto32["m_sql"] = "((FatherDistrict <> 'Non-Morobean') or (MotherDistrict <> 'Non-Morobean')) is true";
$proto32["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "((FatherDistrict <> 'Non-Morobean') or (MotherDistrict <> 'Non-Morobean'))"
));

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

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

			$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;
$proto34=array();
$proto34["m_sql"] = "";
$proto34["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

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

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

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

$proto40["m_sql"] = "`1styear`";
$proto40["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto40["m_expr"]=$obj;
$proto40["m_alias"] = "";
$obj = new SQLFieldListItem($proto40);

$proto0["m_fieldlist"][]=$obj;
						$proto42=array();
			$obj = new SQLField(array(
	"m_strName" => "Year2nd",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

$proto42["m_sql"] = "Year2nd";
$proto42["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto42["m_expr"]=$obj;
$proto42["m_alias"] = "";
$obj = new SQLFieldListItem($proto42);

$proto0["m_fieldlist"][]=$obj;
						$proto44=array();
			$obj = new SQLField(array(
	"m_strName" => "Year3rd",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

$proto44["m_sql"] = "Year3rd";
$proto44["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto44["m_expr"]=$obj;
$proto44["m_alias"] = "";
$obj = new SQLFieldListItem($proto44);

$proto0["m_fieldlist"][]=$obj;
						$proto46=array();
			$obj = new SQLField(array(
	"m_strName" => "Year4th",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

$proto46["m_sql"] = "Year4th";
$proto46["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto46["m_expr"]=$obj;
$proto46["m_alias"] = "";
$obj = new SQLFieldListItem($proto46);

$proto0["m_fieldlist"][]=$obj;
						$proto48=array();
			$obj = new SQLField(array(
	"m_strName" => "Year5th",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

$proto48["m_sql"] = "Year5th";
$proto48["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto48["m_expr"]=$obj;
$proto48["m_alias"] = "";
$obj = new SQLFieldListItem($proto48);

$proto0["m_fieldlist"][]=$obj;
						$proto50=array();
			$obj = new SQLField(array(
	"m_strName" => "Reapply",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

$proto50["m_sql"] = "Reapply";
$proto50["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto50["m_expr"]=$obj;
$proto50["m_alias"] = "";
$obj = new SQLFieldListItem($proto50);

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

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

$proto0["m_fieldlist"][]=$obj;
						$proto54=array();
			$obj = new SQLField(array(
	"m_strName" => "ScholarshipType",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

$proto54["m_sql"] = "ScholarshipType";
$proto54["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto54["m_expr"]=$obj;
$proto54["m_alias"] = "";
$obj = new SQLFieldListItem($proto54);

$proto0["m_fieldlist"][]=$obj;
						$proto56=array();
			$obj = new SQLField(array(
	"m_strName" => "ProgramName",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

$proto56["m_sql"] = "ProgramName";
$proto56["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto56["m_expr"]=$obj;
$proto56["m_alias"] = "";
$obj = new SQLFieldListItem($proto56);

$proto0["m_fieldlist"][]=$obj;
						$proto58=array();
			$obj = new SQLField(array(
	"m_strName" => "assessed",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

$proto58["m_sql"] = "assessed";
$proto58["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto58["m_expr"]=$obj;
$proto58["m_alias"] = "";
$obj = new SQLFieldListItem($proto58);

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

$proto60["m_sql"] = "FatherDistrict";
$proto60["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto60["m_expr"]=$obj;
$proto60["m_alias"] = "";
$obj = new SQLFieldListItem($proto60);

$proto0["m_fieldlist"][]=$obj;
						$proto62=array();
			$obj = new SQLField(array(
	"m_strName" => "MotherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

$proto62["m_sql"] = "MotherDistrict";
$proto62["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto62["m_expr"]=$obj;
$proto62["m_alias"] = "";
$obj = new SQLFieldListItem($proto62);

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

$proto64["m_table"] = $obj;
$proto64["m_sql"] = "applicform";
$proto64["m_alias"] = "";
$proto64["m_srcTableName"] = "NewApprovd2017byDistrict";
$proto66=array();
$proto66["m_sql"] = "";
$proto66["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

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

$proto0["m_orderby"][]=$obj;					
												$proto70=array();
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

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

$proto0["m_orderby"][]=$obj;					
												$proto72=array();
						$obj = new SQLField(array(
	"m_strName" => "MotherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "NewApprovd2017byDistrict"
));

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

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

	return $obj;
}
$queryData_NewApprovd2017byDistrict = createSqlQuery_NewApprovd2017byDistrict();


	
		;

														

$tdataNewApprovd2017byDistrict[".sqlquery"] = $queryData_NewApprovd2017byDistrict;

$tableEvents["NewApprovd2017byDistrict"] = new eventsBase;
$tdataNewApprovd2017byDistrict[".hasEvents"] = false;

?>