<?php



$tdataGPABALOB = array();
$tdataGPABALOB[".searchableFields"] = array();
$tdataGPABALOB[".ShortName"] = "GPABALOB";
$tdataGPABALOB[".OwnerID"] = "";
$tdataGPABALOB[".OriginalTable"] = "applicform";


$defaultPages = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );

$tdataGPABALOB[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdataGPABALOB[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdataGPABALOB[".defaultPages"] = $defaultPages;

//	field labels
$fieldLabelsGPABALOB = array();
$fieldToolTipsGPABALOB = array();
$pageTitlesGPABALOB = array();
$placeHoldersGPABALOB = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsGPABALOB["English"] = array();
	$fieldToolTipsGPABALOB["English"] = array();
	$placeHoldersGPABALOB["English"] = array();
	$pageTitlesGPABALOB["English"] = array();
	$fieldLabelsGPABALOB["English"]["StudentSchoolID"] = "Student School ID";
	$fieldToolTipsGPABALOB["English"]["StudentSchoolID"] = "";
	$placeHoldersGPABALOB["English"]["StudentSchoolID"] = "";
	$fieldLabelsGPABALOB["English"]["Surname"] = "Surname";
	$fieldToolTipsGPABALOB["English"]["Surname"] = "";
	$placeHoldersGPABALOB["English"]["Surname"] = "";
	$fieldLabelsGPABALOB["English"]["FirstName"] = "First Name";
	$fieldToolTipsGPABALOB["English"]["FirstName"] = "";
	$placeHoldersGPABALOB["English"]["FirstName"] = "";
	$fieldLabelsGPABALOB["English"]["TertiaryInstitutionAdmitted"] = "Tertiary Institution Admitted";
	$fieldToolTipsGPABALOB["English"]["TertiaryInstitutionAdmitted"] = "";
	$placeHoldersGPABALOB["English"]["TertiaryInstitutionAdmitted"] = "";
	$fieldLabelsGPABALOB["English"]["ProgramCode"] = "Program Code";
	$fieldToolTipsGPABALOB["English"]["ProgramCode"] = "";
	$placeHoldersGPABALOB["English"]["ProgramCode"] = "";
	$fieldLabelsGPABALOB["English"]["MPGID"] = "MPGID";
	$fieldToolTipsGPABALOB["English"]["MPGID"] = "";
	$placeHoldersGPABALOB["English"]["MPGID"] = "";
	$fieldLabelsGPABALOB["English"]["Cummulative_GPA"] = "Cumm. GPA";
	$fieldToolTipsGPABALOB["English"]["Cummulative_GPA"] = "";
	$placeHoldersGPABALOB["English"]["Cummulative_GPA"] = "";
	$fieldLabelsGPABALOB["English"]["1styear"] = "1styear";
	$fieldToolTipsGPABALOB["English"]["1styear"] = "";
	$placeHoldersGPABALOB["English"]["1styear"] = "";
	$fieldLabelsGPABALOB["English"]["Year2nd"] = "Year2nd";
	$fieldToolTipsGPABALOB["English"]["Year2nd"] = "";
	$placeHoldersGPABALOB["English"]["Year2nd"] = "";
	$fieldLabelsGPABALOB["English"]["Year3rd"] = "Year3rd";
	$fieldToolTipsGPABALOB["English"]["Year3rd"] = "";
	$placeHoldersGPABALOB["English"]["Year3rd"] = "";
	$fieldLabelsGPABALOB["English"]["GPA1"] = "GPA1";
	$fieldToolTipsGPABALOB["English"]["GPA1"] = "";
	$placeHoldersGPABALOB["English"]["GPA1"] = "";
	$fieldLabelsGPABALOB["English"]["GPA2"] = "GPA2";
	$fieldToolTipsGPABALOB["English"]["GPA2"] = "";
	$placeHoldersGPABALOB["English"]["GPA2"] = "";
	$fieldLabelsGPABALOB["English"]["GPA3"] = "GPA3";
	$fieldToolTipsGPABALOB["English"]["GPA3"] = "";
	$placeHoldersGPABALOB["English"]["GPA3"] = "";
	if (count($fieldToolTipsGPABALOB["English"]))
		$tdataGPABALOB[".isUseToolTips"] = true;
}


	$tdataGPABALOB[".NCSearch"] = true;



$tdataGPABALOB[".shortTableName"] = "GPABALOB";
$tdataGPABALOB[".nSecOptions"] = 0;

$tdataGPABALOB[".mainTableOwnerID"] = "";
$tdataGPABALOB[".entityType"] = 1;

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

	



$tdataGPABALOB[".showAddInPopup"] = false;

$tdataGPABALOB[".showEditInPopup"] = false;

$tdataGPABALOB[".showViewInPopup"] = false;

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


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

	$tdataGPABALOB[".audit"] = false;

	$tdataGPABALOB[".locking"] = false;


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

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

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

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

$tdataGPABALOB[".updateSelected"] = true;


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




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

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

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

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



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

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

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

$tdataGPABALOB[".isUseAjaxSuggest"] = true;

$tdataGPABALOB[".rowHighlite"] = true;



						

$tdataGPABALOB[".ajaxCodeSnippetAdded"] = false;

$tdataGPABALOB[".buttonsAdded"] = false;

$tdataGPABALOB[".addPageEvents"] = false;

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




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

$tdataGPABALOB[".googleLikeFields"] = array();
$tdataGPABALOB[".googleLikeFields"][] = "Surname";
$tdataGPABALOB[".googleLikeFields"][] = "FirstName";
$tdataGPABALOB[".googleLikeFields"][] = "StudentSchoolID";
$tdataGPABALOB[".googleLikeFields"][] = "TertiaryInstitutionAdmitted";
$tdataGPABALOB[".googleLikeFields"][] = "ProgramCode";
$tdataGPABALOB[".googleLikeFields"][] = "1styear";
$tdataGPABALOB[".googleLikeFields"][] = "GPA1";
$tdataGPABALOB[".googleLikeFields"][] = "Year2nd";
$tdataGPABALOB[".googleLikeFields"][] = "GPA2";
$tdataGPABALOB[".googleLikeFields"][] = "Year3rd";
$tdataGPABALOB[".googleLikeFields"][] = "GPA3";
$tdataGPABALOB[".googleLikeFields"][] = "Cummulative GPA";
$tdataGPABALOB[".googleLikeFields"][] = "MPGID";



$tdataGPABALOB[".tableType"] = "list";

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

$tdataGPABALOB[".nPrinterSplitRecords"] = 40;

$tdataGPABALOB[".geocodingEnabled"] = false;




$tdataGPABALOB[".isDisplayLoading"] = true;

$tdataGPABALOB[".isResizeColumns"] = true;





$tdataGPABALOB[".pageSize"] = 20;

$tdataGPABALOB[".warnLeavingPages"] = true;



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

$tdataGPABALOB[".orderindexes"] = array();
	$tdataGPABALOB[".orderindexes"][] = array(4, (0 ? "ASC" : "DESC"), "TertiaryInstitutionAdmitted");


$tdataGPABALOB[".sqlHead"] = "SELECT Surname,  FirstName,  StudentSchoolID,  TertiaryInstitutionAdmitted,  ProgramCode,  `1styear`,  Repeatd1stYearFee AS `GPA1`,  Year2nd,  Repeat2ndYearFee AS `GPA2`,  Year3rd,  Repeatd3rdYrFee AS `GPA3`,  GPA AS `Cummulative GPA`,  MPGID";
$tdataGPABALOB[".sqlFrom"] = "FROM applicform";
$tdataGPABALOB[".sqlWhereExpr"] = "(TertiaryInstitutionAdmitted ='Balob Teachers College')";
$tdataGPABALOB[".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;
$tdataGPABALOB[".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;
$tdataGPABALOB[".arrGroupsPerPage"] = $arrGPP;

$tdataGPABALOB[".highlightSearchResults"] = true;

$tableKeysGPABALOB = array();
$tableKeysGPABALOB[] = "MPGID";
$tdataGPABALOB[".Keys"] = $tableKeysGPABALOB;


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




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

	
	
	
			

		$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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

	
	
	
			

		$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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

	
	
	
			

		$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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

	
	
	
			

		$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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["TertiaryInstitutionAdmitted"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "TertiaryInstitutionAdmitted";
//	ProgramCode
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "ProgramCode";
	$fdata["GoodName"] = "ProgramCode";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GPABALOB","ProgramCode");
	$fdata["FieldType"] = 200;

	
	
	
			

		$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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["ProgramCode"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "ProgramCode";
//	1styear
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "1styear";
	$fdata["GoodName"] = "1styear";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GPABALOB","1styear");
	$fdata["FieldType"] = 200;

	
	
	
			

		$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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["1styear"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "1styear";
//	GPA1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "GPA1";
	$fdata["GoodName"] = "GPA1";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GPABALOB","GPA1");
	$fdata["FieldType"] = 5;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["GPA1"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "GPA1";
//	Year2nd
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "Year2nd";
	$fdata["GoodName"] = "Year2nd";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GPABALOB","Year2nd");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["Year2nd"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "Year2nd";
//	GPA2
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "GPA2";
	$fdata["GoodName"] = "GPA2";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GPABALOB","GPA2");
	$fdata["FieldType"] = 5;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["GPA2"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "GPA2";
//	Year3rd
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "Year3rd";
	$fdata["GoodName"] = "Year3rd";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GPABALOB","Year3rd");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["Year3rd"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "Year3rd";
//	GPA3
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "GPA3";
	$fdata["GoodName"] = "GPA3";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GPABALOB","GPA3");
	$fdata["FieldType"] = 5;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["GPA3"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "GPA3";
//	Cummulative GPA
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "Cummulative GPA";
	$fdata["GoodName"] = "Cummulative_GPA";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GPABALOB","Cummulative_GPA");
	$fdata["FieldType"] = 5;

	
	
	
			

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

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

	
	
				$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"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["Cummulative GPA"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "Cummulative GPA";
//	MPGID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "MPGID";
	$fdata["GoodName"] = "MPGID";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("GPABALOB","MPGID");
	$fdata["FieldType"] = 3;

	
		$fdata["AutoInc"] = true;

	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $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"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataGPABALOB["MPGID"] = $fdata;
		$tdataGPABALOB[".searchableFields"][] = "MPGID";


$tables_data["GPABALOB"]=&$tdataGPABALOB;
$field_labels["GPABALOB"] = &$fieldLabelsGPABALOB;
$fieldToolTips["GPABALOB"] = &$fieldToolTipsGPABALOB;
$placeHolders["GPABALOB"] = &$placeHoldersGPABALOB;
$page_titles["GPABALOB"] = &$pageTitlesGPABALOB;

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

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



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


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










function createSqlQuery_GPABALOB()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "Surname,  FirstName,  StudentSchoolID,  TertiaryInstitutionAdmitted,  ProgramCode,  `1styear`,  Repeatd1stYearFee AS `GPA1`,  Year2nd,  Repeat2ndYearFee AS `GPA2`,  Year3rd,  Repeatd3rdYrFee AS `GPA3`,  GPA AS `Cummulative GPA`,  MPGID";
$proto0["m_strFrom"] = "FROM applicform";
$proto0["m_strWhere"] = "(TertiaryInstitutionAdmitted ='Balob Teachers College')";
$proto0["m_strOrderBy"] = "ORDER BY TertiaryInstitutionAdmitted DESC";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "TertiaryInstitutionAdmitted ='Balob Teachers College'";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "TertiaryInstitutionAdmitted",
	"m_strTable" => "applicform",
	"m_srcTableName" => "GPABALOB"
));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto18["m_sql"] = "Repeatd1stYearFee";
$proto18["m_srcTableName"] = "GPABALOB";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "GPA1";
$obj = new SQLFieldListItem($proto18);

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

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

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

$proto22["m_sql"] = "Repeat2ndYearFee";
$proto22["m_srcTableName"] = "GPABALOB";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "GPA2";
$obj = new SQLFieldListItem($proto22);

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

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

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

$proto26["m_sql"] = "Repeatd3rdYrFee";
$proto26["m_srcTableName"] = "GPABALOB";
$proto26["m_expr"]=$obj;
$proto26["m_alias"] = "GPA3";
$obj = new SQLFieldListItem($proto26);

$proto0["m_fieldlist"][]=$obj;
						$proto28=array();
			$obj = new SQLField(array(
	"m_strName" => "GPA",
	"m_strTable" => "applicform",
	"m_srcTableName" => "GPABALOB"
));

$proto28["m_sql"] = "GPA";
$proto28["m_srcTableName"] = "GPABALOB";
$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "Cummulative GPA";
$obj = new SQLFieldListItem($proto28);

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

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

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

$proto32["m_table"] = $obj;
$proto32["m_sql"] = "applicform";
$proto32["m_alias"] = "";
$proto32["m_srcTableName"] = "GPABALOB";
$proto34=array();
$proto34["m_sql"] = "";
$proto34["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

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

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

	return $obj;
}
$queryData_GPABALOB = createSqlQuery_GPABALOB();


	
		;

													

$tdataGPABALOB[".sqlquery"] = $queryData_GPABALOB;

$tableEvents["GPABALOB"] = new eventsBase;
$tdataGPABALOB[".hasEvents"] = false;

?>