<?php



$tdataUnsortedNoInstitution = array();
$tdataUnsortedNoInstitution[".searchableFields"] = array();
$tdataUnsortedNoInstitution[".ShortName"] = "UnsortedNoInstitution";
$tdataUnsortedNoInstitution[".OwnerID"] = "";
$tdataUnsortedNoInstitution[".OriginalTable"] = "applicform";


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

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

//	field labels
$fieldLabelsUnsortedNoInstitution = array();
$fieldToolTipsUnsortedNoInstitution = array();
$pageTitlesUnsortedNoInstitution = array();
$placeHoldersUnsortedNoInstitution = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsUnsortedNoInstitution["English"] = array();
	$fieldToolTipsUnsortedNoInstitution["English"] = array();
	$placeHoldersUnsortedNoInstitution["English"] = array();
	$pageTitlesUnsortedNoInstitution["English"] = array();
	$fieldLabelsUnsortedNoInstitution["English"]["Surname"] = "Surname";
	$fieldToolTipsUnsortedNoInstitution["English"]["Surname"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["Surname"] = "";
	$fieldLabelsUnsortedNoInstitution["English"]["FirstName"] = "First Name";
	$fieldToolTipsUnsortedNoInstitution["English"]["FirstName"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["FirstName"] = "";
	$fieldLabelsUnsortedNoInstitution["English"]["TertiaryInstitutionAdmitted"] = "Tertiary Institution Admitted";
	$fieldToolTipsUnsortedNoInstitution["English"]["TertiaryInstitutionAdmitted"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["TertiaryInstitutionAdmitted"] = "";
	$fieldLabelsUnsortedNoInstitution["English"]["FirstYear"] = "First Year";
	$fieldToolTipsUnsortedNoInstitution["English"]["FirstYear"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["FirstYear"] = "";
	$fieldLabelsUnsortedNoInstitution["English"]["FirstYearFee"] = "First Year Fee";
	$fieldToolTipsUnsortedNoInstitution["English"]["FirstYearFee"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["FirstYearFee"] = "";
	$fieldLabelsUnsortedNoInstitution["English"]["SecondYearFee"] = "Second Year Fee";
	$fieldToolTipsUnsortedNoInstitution["English"]["SecondYearFee"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["SecondYearFee"] = "";
	$fieldLabelsUnsortedNoInstitution["English"]["ThirdYearFee"] = "Third Year Fee";
	$fieldToolTipsUnsortedNoInstitution["English"]["ThirdYearFee"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["ThirdYearFee"] = "";
	$fieldLabelsUnsortedNoInstitution["English"]["FourthYearFee"] = "Fourth Year Fee";
	$fieldToolTipsUnsortedNoInstitution["English"]["FourthYearFee"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["FourthYearFee"] = "";
	$fieldLabelsUnsortedNoInstitution["English"]["FifthYearFee"] = "Fifth Year Fee";
	$fieldToolTipsUnsortedNoInstitution["English"]["FifthYearFee"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["FifthYearFee"] = "";
	$fieldLabelsUnsortedNoInstitution["English"]["StudentTotall"] = "Student Totall";
	$fieldToolTipsUnsortedNoInstitution["English"]["StudentTotall"] = "";
	$placeHoldersUnsortedNoInstitution["English"]["StudentTotall"] = "";
	if (count($fieldToolTipsUnsortedNoInstitution["English"]))
		$tdataUnsortedNoInstitution[".isUseToolTips"] = true;
}


	$tdataUnsortedNoInstitution[".NCSearch"] = true;



$tdataUnsortedNoInstitution[".shortTableName"] = "UnsortedNoInstitution";
$tdataUnsortedNoInstitution[".nSecOptions"] = 0;

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

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

	



$tdataUnsortedNoInstitution[".showAddInPopup"] = false;

$tdataUnsortedNoInstitution[".showEditInPopup"] = false;

$tdataUnsortedNoInstitution[".showViewInPopup"] = false;

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


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

	$tdataUnsortedNoInstitution[".audit"] = false;

	$tdataUnsortedNoInstitution[".locking"] = false;


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

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

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

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

$tdataUnsortedNoInstitution[".updateSelected"] = true;


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




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

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

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

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



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

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

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

$tdataUnsortedNoInstitution[".isUseAjaxSuggest"] = true;




						

$tdataUnsortedNoInstitution[".ajaxCodeSnippetAdded"] = false;

$tdataUnsortedNoInstitution[".buttonsAdded"] = false;

$tdataUnsortedNoInstitution[".addPageEvents"] = false;

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




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

$tdataUnsortedNoInstitution[".googleLikeFields"] = array();
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "FirstName";
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "Surname";
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "TertiaryInstitutionAdmitted";
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "FirstYear";
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "FirstYearFee";
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "SecondYearFee";
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "ThirdYearFee";
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "FourthYearFee";
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "FifthYearFee";
$tdataUnsortedNoInstitution[".googleLikeFields"][] = "StudentTotall";



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

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

$tdataUnsortedNoInstitution[".nPrinterSplitRecords"] = 40;

$tdataUnsortedNoInstitution[".geocodingEnabled"] = false;

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

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



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

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

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


$tdataUnsortedNoInstitution[".isExistTotalFields"] = true;




$tdataUnsortedNoInstitution[".repShowDet"] = true;

$tdataUnsortedNoInstitution[".reportLayout"] = 3;

//end of report settings



$tdataUnsortedNoInstitution[".isDisplayLoading"] = true;







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

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

$tdataUnsortedNoInstitution[".sqlHead"] = "SELECT FirstName,  Surname,  TertiaryInstitutionAdmitted,  `1styear` AS FirstYear,  (`1styearFee`+ Repeatd1stYearFee) AS FirstYearFee,  (Fee2ndYear+Repeat2ndYearFee) AS SecondYearFee,  (Fee3rdYear+Repeatd3rdYrFee) AS ThirdYearFee,  (Fee4thYear)+(Repeat4thYrFee) AS FourthYearFee,  (Fee5thYear+Repeat5thYrFEE) AS FifthYearFee,  (`1styearFee`+Repeatd1stYearFee+Fee2ndYear+Repeat2ndYearFee+Fee3rdYear+Repeatd3rdYrFee+Fee4thYear+Repeat4thYrFee+Fee5thYear+Repeat5thYrFEE) AS StudentTotall";
$tdataUnsortedNoInstitution[".sqlFrom"] = "FROM applicform";
$tdataUnsortedNoInstitution[".sqlWhereExpr"] = "(Fee4thYear)+(Repeat4thYrFee) = 0 OR (Fee5thYear+Repeat5thYrFEE) =0 OR (Fee3rdYear+Repeatd3rdYrFee) =0 OR (Fee2ndYear+Repeat2ndYearFee) =0 OR (Fee2ndYear+Repeat2ndYearFee) =0 OR TertiaryInstitutionAdmitted is Null OR `1styear` is null";
$tdataUnsortedNoInstitution[".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;
$tdataUnsortedNoInstitution[".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;
$tdataUnsortedNoInstitution[".arrGroupsPerPage"] = $arrGPP;

$tdataUnsortedNoInstitution[".highlightSearchResults"] = true;

$tableKeysUnsortedNoInstitution = array();
$tdataUnsortedNoInstitution[".Keys"] = $tableKeysUnsortedNoInstitution;


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




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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$edata["controlWidth"] = 200;

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$edata["controlWidth"] = 200;

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataUnsortedNoInstitution["Surname"] = $fdata;
		$tdataUnsortedNoInstitution[".searchableFields"][] = "Surname";
//	TertiaryInstitutionAdmitted
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "TertiaryInstitutionAdmitted";
	$fdata["GoodName"] = "TertiaryInstitutionAdmitted";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("UnsortedNoInstitution","TertiaryInstitutionAdmitted");
	$fdata["FieldType"] = 200;

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$edata["controlWidth"] = 200;

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

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

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

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

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

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

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

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

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

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

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

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

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

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

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

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

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

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

	
	
			

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

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

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

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

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

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

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


	$fdata["isSeparate"] = false;




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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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


$tables_data["UnsortedNoInstitution"]=&$tdataUnsortedNoInstitution;
$field_labels["UnsortedNoInstitution"] = &$fieldLabelsUnsortedNoInstitution;
$fieldToolTips["UnsortedNoInstitution"] = &$fieldToolTipsUnsortedNoInstitution;
$placeHolders["UnsortedNoInstitution"] = &$placeHoldersUnsortedNoInstitution;
$page_titles["UnsortedNoInstitution"] = &$pageTitlesUnsortedNoInstitution;

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

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



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


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










function createSqlQuery_UnsortedNoInstitution()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "FirstName,  Surname,  TertiaryInstitutionAdmitted,  `1styear` AS FirstYear,  (`1styearFee`+ Repeatd1stYearFee) AS FirstYearFee,  (Fee2ndYear+Repeat2ndYearFee) AS SecondYearFee,  (Fee3rdYear+Repeatd3rdYrFee) AS ThirdYearFee,  (Fee4thYear)+(Repeat4thYrFee) AS FourthYearFee,  (Fee5thYear+Repeat5thYrFEE) AS FifthYearFee,  (`1styearFee`+Repeatd1stYearFee+Fee2ndYear+Repeat2ndYearFee+Fee3rdYear+Repeatd3rdYrFee+Fee4thYear+Repeat4thYrFee+Fee5thYear+Repeat5thYrFEE) AS StudentTotall";
$proto0["m_strFrom"] = "FROM applicform";
$proto0["m_strWhere"] = "(Fee4thYear)+(Repeat4thYrFee) = 0 OR (Fee5thYear+Repeat5thYrFEE) =0 OR (Fee3rdYear+Repeatd3rdYrFee) =0 OR (Fee2ndYear+Repeat2ndYearFee) =0 OR (Fee2ndYear+Repeat2ndYearFee) =0 OR TertiaryInstitutionAdmitted is Null OR `1styear` is null";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "(Fee4thYear)+(Repeat4thYrFee) = 0 OR (Fee5thYear+Repeat5thYrFEE) =0 OR (Fee3rdYear+Repeatd3rdYrFee) =0 OR (Fee2ndYear+Repeat2ndYearFee) =0 OR (Fee2ndYear+Repeat2ndYearFee) =0 OR TertiaryInstitutionAdmitted is Null OR `1styear` is null";
$proto2["m_uniontype"] = "SQLL_OR";
	$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee4thYear)+(Repeat4thYrFee) = 0 OR (Fee5thYear+Repeat5thYrFEE) =0 OR (Fee3rdYear+Repeatd3rdYrFee) =0 OR (Fee2ndYear+Repeat2ndYearFee) =0 OR (Fee2ndYear+Repeat2ndYearFee) =0 OR TertiaryInstitutionAdmitted is Null OR `1styear` is null"
));

$proto2["m_column"]=$obj;
$proto2["m_contained"] = array();
						$proto4=array();
$proto4["m_sql"] = "(Fee4thYear)+(Repeat4thYrFee) = 0";
$proto4["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee4thYear)+(Repeat4thYrFee)"
));

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

			$proto2["m_contained"][]=$obj;
						$proto6=array();
$proto6["m_sql"] = "(Fee5thYear+Repeat5thYrFEE) =0";
$proto6["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee5thYear+Repeat5thYrFEE)"
));

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

			$proto2["m_contained"][]=$obj;
						$proto8=array();
$proto8["m_sql"] = "(Fee3rdYear+Repeatd3rdYrFee) =0";
$proto8["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee3rdYear+Repeatd3rdYrFee)"
));

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

			$proto2["m_contained"][]=$obj;
						$proto10=array();
$proto10["m_sql"] = "(Fee2ndYear+Repeat2ndYearFee) =0";
$proto10["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee2ndYear+Repeat2ndYearFee)"
));

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

			$proto2["m_contained"][]=$obj;
						$proto12=array();
$proto12["m_sql"] = "(Fee2ndYear+Repeat2ndYearFee) =0";
$proto12["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLNonParsed(array(
	"m_sql" => "(Fee2ndYear+Repeat2ndYearFee)"
));

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

			$proto2["m_contained"][]=$obj;
						$proto14=array();
$proto14["m_sql"] = "TertiaryInstitutionAdmitted is Null";
$proto14["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "TertiaryInstitutionAdmitted",
	"m_strTable" => "applicform",
	"m_srcTableName" => "UnsortedNoInstitution"
));

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

			$proto2["m_contained"][]=$obj;
						$proto16=array();
$proto16["m_sql"] = "`1styear` is null";
$proto16["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "1styear",
	"m_strTable" => "applicform",
	"m_srcTableName" => "UnsortedNoInstitution"
));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	return $obj;
}
$queryData_UnsortedNoInstitution = createSqlQuery_UnsortedNoInstitution();


	
		;

										

$tdataUnsortedNoInstitution[".sqlquery"] = $queryData_UnsortedNoInstitution;

$tableEvents["UnsortedNoInstitution"] = new eventsBase;
$tdataUnsortedNoInstitution[".hasEvents"] = false;

?>