<?php



$tdataGraduatesByDistrict = array();
$tdataGraduatesByDistrict[".searchableFields"] = array();
$tdataGraduatesByDistrict[".ShortName"] = "GraduatesByDistrict";
$tdataGraduatesByDistrict[".OwnerID"] = "";
$tdataGraduatesByDistrict[".OriginalTable"] = "applicform";


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

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

//	field labels
$fieldLabelsGraduatesByDistrict = array();
$fieldToolTipsGraduatesByDistrict = array();
$pageTitlesGraduatesByDistrict = array();
$placeHoldersGraduatesByDistrict = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsGraduatesByDistrict["English"] = array();
	$fieldToolTipsGraduatesByDistrict["English"] = array();
	$placeHoldersGraduatesByDistrict["English"] = array();
	$pageTitlesGraduatesByDistrict["English"] = array();
	$fieldLabelsGraduatesByDistrict["English"]["Surname"] = "Surname";
	$fieldToolTipsGraduatesByDistrict["English"]["Surname"] = "";
	$placeHoldersGraduatesByDistrict["English"]["Surname"] = "";
	$fieldLabelsGraduatesByDistrict["English"]["Gender"] = "Gender";
	$fieldToolTipsGraduatesByDistrict["English"]["Gender"] = "";
	$placeHoldersGraduatesByDistrict["English"]["Gender"] = "";
	$fieldLabelsGraduatesByDistrict["English"]["FatherDistrict"] = "Father District";
	$fieldToolTipsGraduatesByDistrict["English"]["FatherDistrict"] = "";
	$placeHoldersGraduatesByDistrict["English"]["FatherDistrict"] = "";
	$fieldLabelsGraduatesByDistrict["English"]["ProgramName"] = "Program Name";
	$fieldToolTipsGraduatesByDistrict["English"]["ProgramName"] = "";
	$placeHoldersGraduatesByDistrict["English"]["ProgramName"] = "";
	$fieldLabelsGraduatesByDistrict["English"]["ProgramCode"] = "Program Code";
	$fieldToolTipsGraduatesByDistrict["English"]["ProgramCode"] = "";
	$placeHoldersGraduatesByDistrict["English"]["ProgramCode"] = "";
	$fieldLabelsGraduatesByDistrict["English"]["FirstName"] = "First Name";
	$fieldToolTipsGraduatesByDistrict["English"]["FirstName"] = "";
	$placeHoldersGraduatesByDistrict["English"]["FirstName"] = "";
	$fieldLabelsGraduatesByDistrict["English"]["TertiaryInstitutionAdmitted"] = "Tertiary Institution Admitted";
	$fieldToolTipsGraduatesByDistrict["English"]["TertiaryInstitutionAdmitted"] = "";
	$placeHoldersGraduatesByDistrict["English"]["TertiaryInstitutionAdmitted"] = "";
	$fieldLabelsGraduatesByDistrict["English"]["StudentSchoolID"] = "Student School ID";
	$fieldToolTipsGraduatesByDistrict["English"]["StudentSchoolID"] = "";
	$placeHoldersGraduatesByDistrict["English"]["StudentSchoolID"] = "";
	if (count($fieldToolTipsGraduatesByDistrict["English"]))
		$tdataGraduatesByDistrict[".isUseToolTips"] = true;
}


	$tdataGraduatesByDistrict[".NCSearch"] = true;



$tdataGraduatesByDistrict[".shortTableName"] = "GraduatesByDistrict";
$tdataGraduatesByDistrict[".nSecOptions"] = 0;

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

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

	



$tdataGraduatesByDistrict[".showAddInPopup"] = false;

$tdataGraduatesByDistrict[".showEditInPopup"] = false;

$tdataGraduatesByDistrict[".showViewInPopup"] = false;

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


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

	$tdataGraduatesByDistrict[".audit"] = false;

	$tdataGraduatesByDistrict[".locking"] = false;


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

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

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

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

$tdataGraduatesByDistrict[".updateSelected"] = true;


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




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

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

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

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



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

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

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

$tdataGraduatesByDistrict[".isUseAjaxSuggest"] = true;




						

$tdataGraduatesByDistrict[".ajaxCodeSnippetAdded"] = false;

$tdataGraduatesByDistrict[".buttonsAdded"] = false;

$tdataGraduatesByDistrict[".addPageEvents"] = false;

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


$tdataGraduatesByDistrict[".badgeColor"] = "DAA520";


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

$tdataGraduatesByDistrict[".googleLikeFields"] = array();
$tdataGraduatesByDistrict[".googleLikeFields"][] = "StudentSchoolID";
$tdataGraduatesByDistrict[".googleLikeFields"][] = "Surname";
$tdataGraduatesByDistrict[".googleLikeFields"][] = "FirstName";
$tdataGraduatesByDistrict[".googleLikeFields"][] = "Gender";
$tdataGraduatesByDistrict[".googleLikeFields"][] = "FatherDistrict";
$tdataGraduatesByDistrict[".googleLikeFields"][] = "TertiaryInstitutionAdmitted";
$tdataGraduatesByDistrict[".googleLikeFields"][] = "ProgramName";
$tdataGraduatesByDistrict[".googleLikeFields"][] = "ProgramCode";



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

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

$tdataGraduatesByDistrict[".nPrinterSplitRecords"] = 40;

$tdataGraduatesByDistrict[".geocodingEnabled"] = false;

//report settings

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



$tdataGraduatesByDistrict[".reportGroupFields"] = true;
$tdataGraduatesByDistrict[".pageSize"] = 5;
$tdataGraduatesByDistrict[".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;
$tdataGraduatesByDistrict[".reportGroupFieldsData"] = $reportGroupFields;
$tdataGraduatesByDistrict[".reportGroupFieldsList"] = $reportGroupFieldsList;






$tdataGraduatesByDistrict[".repShowDet"] = true;

$tdataGraduatesByDistrict[".reportLayout"] = 0;

//end of report settings



$tdataGraduatesByDistrict[".isDisplayLoading"] = true;







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

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


$tdataGraduatesByDistrict[".sqlHead"] = "SELECT StudentSchoolID,  Surname,  FirstName,  Gender,  FatherDistrict,  TertiaryInstitutionAdmitted,  ProgramName,  ProgramCode";
$tdataGraduatesByDistrict[".sqlFrom"] = "FROM applicform";
$tdataGraduatesByDistrict[".sqlWhereExpr"] = "(FatherDistrict is not null) AND (Graduated =1)";
$tdataGraduatesByDistrict[".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;
$tdataGraduatesByDistrict[".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;
$tdataGraduatesByDistrict[".arrGroupsPerPage"] = $arrGPP;


$tableKeysGraduatesByDistrict = array();
$tdataGraduatesByDistrict[".Keys"] = $tableKeysGraduatesByDistrict;


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




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

//	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"] = "Equals";

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

//	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"] = "Equals";

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

//	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"] = "Equals";

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGraduatesByDistrict["FirstName"] = $fdata;
		$tdataGraduatesByDistrict[".searchableFields"][] = "FirstName";
//	Gender
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "Gender";
	$fdata["GoodName"] = "Gender";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GraduatesByDistrict","Gender");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

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

//	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"] = "Equals";

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGraduatesByDistrict["Gender"] = $fdata;
		$tdataGraduatesByDistrict[".searchableFields"][] = "Gender";
//	FatherDistrict
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "FatherDistrict";
	$fdata["GoodName"] = "FatherDistrict";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GraduatesByDistrict","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"] = 143;

//	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"] = "Equals";

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGraduatesByDistrict["FatherDistrict"] = $fdata;
		$tdataGraduatesByDistrict[".searchableFields"][] = "FatherDistrict";
//	TertiaryInstitutionAdmitted
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "TertiaryInstitutionAdmitted";
	$fdata["GoodName"] = "TertiaryInstitutionAdmitted";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GraduatesByDistrict","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["controlWidth"] = 143;

//	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"] = "Equals";

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGraduatesByDistrict["TertiaryInstitutionAdmitted"] = $fdata;
		$tdataGraduatesByDistrict[".searchableFields"][] = "TertiaryInstitutionAdmitted";
//	ProgramName
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "ProgramName";
	$fdata["GoodName"] = "ProgramName";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GraduatesByDistrict","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"] = 143;

//	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"] = "Equals";

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGraduatesByDistrict["ProgramName"] = $fdata;
		$tdataGraduatesByDistrict[".searchableFields"][] = "ProgramName";
//	ProgramCode
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "ProgramCode";
	$fdata["GoodName"] = "ProgramCode";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GraduatesByDistrict","ProgramCode");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

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

//	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"] = "Equals";

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGraduatesByDistrict["ProgramCode"] = $fdata;
		$tdataGraduatesByDistrict[".searchableFields"][] = "ProgramCode";


$tables_data["GraduatesByDistrict"]=&$tdataGraduatesByDistrict;
$field_labels["GraduatesByDistrict"] = &$fieldLabelsGraduatesByDistrict;
$fieldToolTips["GraduatesByDistrict"] = &$fieldToolTipsGraduatesByDistrict;
$placeHolders["GraduatesByDistrict"] = &$placeHoldersGraduatesByDistrict;
$page_titles["GraduatesByDistrict"] = &$pageTitlesGraduatesByDistrict;

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

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



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


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










function createSqlQuery_GraduatesByDistrict()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "StudentSchoolID,  Surname,  FirstName,  Gender,  FatherDistrict,  TertiaryInstitutionAdmitted,  ProgramName,  ProgramCode";
$proto0["m_strFrom"] = "FROM applicform";
$proto0["m_strWhere"] = "(FatherDistrict is not null) AND (Graduated =1)";
$proto0["m_strOrderBy"] = "ORDER BY FatherDistrict";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "(FatherDistrict is not null) AND (Graduated =1)";
$proto2["m_uniontype"] = "SQLL_AND";
	$obj = new SQLNonParsed(array(
	"m_sql" => "(FatherDistrict is not null) AND (Graduated =1)"
));

$proto2["m_column"]=$obj;
$proto2["m_contained"] = array();
						$proto4=array();
$proto4["m_sql"] = "FatherDistrict is not null";
$proto4["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "GraduatesByDistrict"
));

$proto4["m_column"]=$obj;
$proto4["m_contained"] = array();
$proto4["m_strCase"] = "is not null";
$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"] = "Graduated =1";
$proto6["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Graduated",
	"m_strTable" => "applicform",
	"m_srcTableName" => "GraduatesByDistrict"
));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto0["m_fieldlist"][]=$obj;
						$proto24=array();
			$obj = new SQLField(array(
	"m_strName" => "ProgramCode",
	"m_strTable" => "applicform",
	"m_srcTableName" => "GraduatesByDistrict"
));

$proto24["m_sql"] = "ProgramCode";
$proto24["m_srcTableName"] = "GraduatesByDistrict";
$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

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

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

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

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

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
												$proto30=array();
						$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "GraduatesByDistrict"
));

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

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

	return $obj;
}
$queryData_GraduatesByDistrict = createSqlQuery_GraduatesByDistrict();


	
		;

								

$tdataGraduatesByDistrict[".sqlquery"] = $queryData_GraduatesByDistrict;

$tableEvents["GraduatesByDistrict"] = new eventsBase;
$tdataGraduatesByDistrict[".hasEvents"] = false;

?>