<?php



$tdatampgsstemplate = array();
$tdatampgsstemplate[".searchableFields"] = array();
$tdatampgsstemplate[".ShortName"] = "mpgsstemplate";
$tdatampgsstemplate[".OwnerID"] = "";
$tdatampgsstemplate[".OriginalTable"] = "applicform";


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

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

//	field labels
$fieldLabelsmpgsstemplate = array();
$fieldToolTipsmpgsstemplate = array();
$pageTitlesmpgsstemplate = array();
$placeHoldersmpgsstemplate = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsmpgsstemplate["English"] = array();
	$fieldToolTipsmpgsstemplate["English"] = array();
	$placeHoldersmpgsstemplate["English"] = array();
	$pageTitlesmpgsstemplate["English"] = array();
	$fieldLabelsmpgsstemplate["English"]["Surname"] = "Surname";
	$fieldToolTipsmpgsstemplate["English"]["Surname"] = "";
	$placeHoldersmpgsstemplate["English"]["Surname"] = "";
	$fieldLabelsmpgsstemplate["English"]["FirstName"] = "First Name";
	$fieldToolTipsmpgsstemplate["English"]["FirstName"] = "";
	$placeHoldersmpgsstemplate["English"]["FirstName"] = "";
	$fieldLabelsmpgsstemplate["English"]["Gender"] = "Gender";
	$fieldToolTipsmpgsstemplate["English"]["Gender"] = "";
	$placeHoldersmpgsstemplate["English"]["Gender"] = "";
	$fieldLabelsmpgsstemplate["English"]["DateofBirth"] = "BirthDate ";
	$fieldToolTipsmpgsstemplate["English"]["DateofBirth"] = "";
	$placeHoldersmpgsstemplate["English"]["DateofBirth"] = "";
	$fieldLabelsmpgsstemplate["English"]["PlaceofBirth"] = "Birthplace";
	$fieldToolTipsmpgsstemplate["English"]["PlaceofBirth"] = "";
	$placeHoldersmpgsstemplate["English"]["PlaceofBirth"] = "";
	$fieldLabelsmpgsstemplate["English"]["DistrictOfBirth"] = "Birth District ";
	$fieldToolTipsmpgsstemplate["English"]["DistrictOfBirth"] = "";
	$placeHoldersmpgsstemplate["English"]["DistrictOfBirth"] = "";
	$fieldLabelsmpgsstemplate["English"]["ProvinceOfBirth"] = "Birth Province ";
	$fieldToolTipsmpgsstemplate["English"]["ProvinceOfBirth"] = "";
	$placeHoldersmpgsstemplate["English"]["ProvinceOfBirth"] = "";
	$fieldLabelsmpgsstemplate["English"]["FatherVillage"] = "Father Village";
	$fieldToolTipsmpgsstemplate["English"]["FatherVillage"] = "";
	$placeHoldersmpgsstemplate["English"]["FatherVillage"] = "";
	$fieldLabelsmpgsstemplate["English"]["FatherLLG"] = "Father LLG";
	$fieldToolTipsmpgsstemplate["English"]["FatherLLG"] = "";
	$placeHoldersmpgsstemplate["English"]["FatherLLG"] = "";
	$fieldLabelsmpgsstemplate["English"]["FatherDistrict"] = "Father District";
	$fieldToolTipsmpgsstemplate["English"]["FatherDistrict"] = "";
	$placeHoldersmpgsstemplate["English"]["FatherDistrict"] = "";
	$fieldLabelsmpgsstemplate["English"]["FATHERJOB"] = "Occupation";
	$fieldToolTipsmpgsstemplate["English"]["FATHERJOB"] = "";
	$placeHoldersmpgsstemplate["English"]["FATHERJOB"] = "";
	$fieldLabelsmpgsstemplate["English"]["FATHERSNAME"] = "First Name:";
	$fieldToolTipsmpgsstemplate["English"]["FATHERSNAME"] = "";
	$placeHoldersmpgsstemplate["English"]["FATHERSNAME"] = "";
	$fieldLabelsmpgsstemplate["English"]["FATHERSURNAME"] = "Surname:";
	$fieldToolTipsmpgsstemplate["English"]["FATHERSURNAME"] = "";
	$placeHoldersmpgsstemplate["English"]["FATHERSURNAME"] = "";
	$fieldLabelsmpgsstemplate["English"]["FATHERPROV"] = "Province:";
	$fieldToolTipsmpgsstemplate["English"]["FATHERPROV"] = "";
	$placeHoldersmpgsstemplate["English"]["FATHERPROV"] = "";
	$fieldLabelsmpgsstemplate["English"]["MOTHERJOB"] = "Occupation:";
	$fieldToolTipsmpgsstemplate["English"]["MOTHERJOB"] = "";
	$placeHoldersmpgsstemplate["English"]["MOTHERJOB"] = "";
	$fieldLabelsmpgsstemplate["English"]["MOTHERNAME"] = "Name:";
	$fieldToolTipsmpgsstemplate["English"]["MOTHERNAME"] = "";
	$placeHoldersmpgsstemplate["English"]["MOTHERNAME"] = "";
	$fieldLabelsmpgsstemplate["English"]["MOTHERSURNAME"] = "Surname:";
	$fieldToolTipsmpgsstemplate["English"]["MOTHERSURNAME"] = "";
	$placeHoldersmpgsstemplate["English"]["MOTHERSURNAME"] = "";
	$fieldLabelsmpgsstemplate["English"]["MOTHERNATIONAL"] = "Nationality:";
	$fieldToolTipsmpgsstemplate["English"]["MOTHERNATIONAL"] = "";
	$placeHoldersmpgsstemplate["English"]["MOTHERNATIONAL"] = "";
	$fieldLabelsmpgsstemplate["English"]["FATHERNATIONAL"] = "Nationality:";
	$fieldToolTipsmpgsstemplate["English"]["FATHERNATIONAL"] = "";
	$placeHoldersmpgsstemplate["English"]["FATHERNATIONAL"] = "";
	$fieldLabelsmpgsstemplate["English"]["FATHERCLAN"] = "Clan:";
	$fieldToolTipsmpgsstemplate["English"]["FATHERCLAN"] = "";
	$placeHoldersmpgsstemplate["English"]["FATHERCLAN"] = "";
	$fieldLabelsmpgsstemplate["English"]["MOTHERCLAN"] = "Clan:";
	$fieldToolTipsmpgsstemplate["English"]["MOTHERCLAN"] = "";
	$placeHoldersmpgsstemplate["English"]["MOTHERCLAN"] = "";
	$fieldLabelsmpgsstemplate["English"]["MOTHERRELIGION"] = "Religion:";
	$fieldToolTipsmpgsstemplate["English"]["MOTHERRELIGION"] = "";
	$placeHoldersmpgsstemplate["English"]["MOTHERRELIGION"] = "";
	$fieldLabelsmpgsstemplate["English"]["FATHERRELIGION"] = "Religion:";
	$fieldToolTipsmpgsstemplate["English"]["FATHERRELIGION"] = "";
	$placeHoldersmpgsstemplate["English"]["FATHERRELIGION"] = "";
	$fieldLabelsmpgsstemplate["English"]["FATHERBIRTHPLACE"] = "Birth Place:";
	$fieldToolTipsmpgsstemplate["English"]["FATHERBIRTHPLACE"] = "";
	$placeHoldersmpgsstemplate["English"]["FATHERBIRTHPLACE"] = "";
	$fieldLabelsmpgsstemplate["English"]["MOTHERBIRTHPLACE"] = "Birth Place:";
	$fieldToolTipsmpgsstemplate["English"]["MOTHERBIRTHPLACE"] = "";
	$placeHoldersmpgsstemplate["English"]["MOTHERBIRTHPLACE"] = "";
	$fieldLabelsmpgsstemplate["English"]["MotherVillage"] = "Village:";
	$fieldToolTipsmpgsstemplate["English"]["MotherVillage"] = "";
	$placeHoldersmpgsstemplate["English"]["MotherVillage"] = "";
	$fieldLabelsmpgsstemplate["English"]["MotherLLG"] = "LLG:";
	$fieldToolTipsmpgsstemplate["English"]["MotherLLG"] = "";
	$placeHoldersmpgsstemplate["English"]["MotherLLG"] = "";
	$fieldLabelsmpgsstemplate["English"]["MotherDistrict"] = "Mother District";
	$fieldToolTipsmpgsstemplate["English"]["MotherDistrict"] = "";
	$placeHoldersmpgsstemplate["English"]["MotherDistrict"] = "";
	$fieldLabelsmpgsstemplate["English"]["MOTHERPROV"] = "Province:";
	$fieldToolTipsmpgsstemplate["English"]["MOTHERPROV"] = "";
	$placeHoldersmpgsstemplate["English"]["MOTHERPROV"] = "";
	$fieldLabelsmpgsstemplate["English"]["LastInstitutuonAttended"] = "Last Institutuon";
	$fieldToolTipsmpgsstemplate["English"]["LastInstitutuonAttended"] = "";
	$placeHoldersmpgsstemplate["English"]["LastInstitutuonAttended"] = "";
	$fieldLabelsmpgsstemplate["English"]["HighestGradeCompleted"] = "Highest Grade";
	$fieldToolTipsmpgsstemplate["English"]["HighestGradeCompleted"] = "";
	$placeHoldersmpgsstemplate["English"]["HighestGradeCompleted"] = "";
	$fieldLabelsmpgsstemplate["English"]["YearHighestGradeCompleted"] = "Year Completed";
	$fieldToolTipsmpgsstemplate["English"]["YearHighestGradeCompleted"] = "";
	$placeHoldersmpgsstemplate["English"]["YearHighestGradeCompleted"] = "";
	$fieldLabelsmpgsstemplate["English"]["TertiaryInstitutionAdmitted"] = "Tertiary Institution";
	$fieldToolTipsmpgsstemplate["English"]["TertiaryInstitutionAdmitted"] = "";
	$placeHoldersmpgsstemplate["English"]["TertiaryInstitutionAdmitted"] = "";
	$fieldLabelsmpgsstemplate["English"]["ProgramName"] = "Program Name";
	$fieldToolTipsmpgsstemplate["English"]["ProgramName"] = "";
	$placeHoldersmpgsstemplate["English"]["ProgramName"] = "";
	$fieldLabelsmpgsstemplate["English"]["ProgramCode"] = "Program Code";
	$fieldToolTipsmpgsstemplate["English"]["ProgramCode"] = "";
	$placeHoldersmpgsstemplate["English"]["ProgramCode"] = "";
	$fieldLabelsmpgsstemplate["English"]["NewApplicant"] = "New Applicant";
	$fieldToolTipsmpgsstemplate["English"]["NewApplicant"] = "";
	$placeHoldersmpgsstemplate["English"]["NewApplicant"] = "";
	$fieldLabelsmpgsstemplate["English"]["Reapply"] = "Reapply";
	$fieldToolTipsmpgsstemplate["English"]["Reapply"] = "";
	$placeHoldersmpgsstemplate["English"]["Reapply"] = "";
	$fieldLabelsmpgsstemplate["English"]["EmailAddrssAppl"] = "Email";
	$fieldToolTipsmpgsstemplate["English"]["EmailAddrssAppl"] = "";
	$placeHoldersmpgsstemplate["English"]["EmailAddrssAppl"] = "";
	$fieldLabelsmpgsstemplate["English"]["MobileNoAppl"] = "Mobile:";
	$fieldToolTipsmpgsstemplate["English"]["MobileNoAppl"] = "";
	$placeHoldersmpgsstemplate["English"]["MobileNoAppl"] = "";
	$fieldLabelsmpgsstemplate["English"]["Photo"] = "Photo";
	$fieldToolTipsmpgsstemplate["English"]["Photo"] = "";
	$placeHoldersmpgsstemplate["English"]["Photo"] = "";
	$fieldLabelsmpgsstemplate["English"]["MPGID"] = "MPGID";
	$fieldToolTipsmpgsstemplate["English"]["MPGID"] = "";
	$placeHoldersmpgsstemplate["English"]["MPGID"] = "";
	$fieldLabelsmpgsstemplate["English"]["WitnessName"] = "Witness Name";
	$fieldToolTipsmpgsstemplate["English"]["WitnessName"] = "";
	$placeHoldersmpgsstemplate["English"]["WitnessName"] = "";
	$fieldLabelsmpgsstemplate["English"]["WitnessOccupation"] = "Witness Occupation";
	$fieldToolTipsmpgsstemplate["English"]["WitnessOccupation"] = "";
	$placeHoldersmpgsstemplate["English"]["WitnessOccupation"] = "";
	$fieldLabelsmpgsstemplate["English"]["WitnessAddress"] = "Signature:";
	$fieldToolTipsmpgsstemplate["English"]["WitnessAddress"] = "";
	$placeHoldersmpgsstemplate["English"]["WitnessAddress"] = "";
	$fieldLabelsmpgsstemplate["English"]["Documents"] = "Documents";
	$fieldToolTipsmpgsstemplate["English"]["Documents"] = "";
	$placeHoldersmpgsstemplate["English"]["Documents"] = "";
	$fieldLabelsmpgsstemplate["English"]["firstyear"] = "Year of this Application";
	$fieldToolTipsmpgsstemplate["English"]["firstyear"] = "";
	$placeHoldersmpgsstemplate["English"]["firstyear"] = "";
	$fieldLabelsmpgsstemplate["English"]["acceptletter"] = "Acceptance Letter";
	$fieldToolTipsmpgsstemplate["English"]["acceptletter"] = "";
	$placeHoldersmpgsstemplate["English"]["acceptletter"] = "";
	$fieldLabelsmpgsstemplate["English"]["gradetencert"] = "Grade Ten Certificate";
	$fieldToolTipsmpgsstemplate["English"]["gradetencert"] = "";
	$placeHoldersmpgsstemplate["English"]["gradetencert"] = "";
	$fieldLabelsmpgsstemplate["English"]["grade12cert"] = "Grade12 Certificate";
	$fieldToolTipsmpgsstemplate["English"]["grade12cert"] = "";
	$placeHoldersmpgsstemplate["English"]["grade12cert"] = "";
	if (count($fieldToolTipsmpgsstemplate["English"]))
		$tdatampgsstemplate[".isUseToolTips"] = true;
}


	$tdatampgsstemplate[".NCSearch"] = true;



$tdatampgsstemplate[".shortTableName"] = "mpgsstemplate";
$tdatampgsstemplate[".nSecOptions"] = 0;

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

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

	



$tdatampgsstemplate[".showAddInPopup"] = true;

$tdatampgsstemplate[".showEditInPopup"] = true;

$tdatampgsstemplate[".showViewInPopup"] = true;

//page's base css files names
$popupPagesLayoutNames = array();
			;
$popupPagesLayoutNames["add"] = "add";
			;
$popupPagesLayoutNames["edit"] = "add";
			;
$popupPagesLayoutNames["view"] = "add";
$tdatampgsstemplate[".popupPagesLayoutNames"] = $popupPagesLayoutNames;


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

	$tdatampgsstemplate[".audit"] = false;

	$tdatampgsstemplate[".locking"] = false;


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

if( $pages[PAGE_EDIT] ) {
	$tdatampgsstemplate[".edit"] = true;
	$tdatampgsstemplate[".afterEditAction"] = 2;
	$tdatampgsstemplate[".closePopupAfterEdit"] = 1;
	$tdatampgsstemplate[".afterEditActionDetTable"] = "Detail tables not found!";
}

if( $pages[PAGE_ADD] ) {
$tdatampgsstemplate[".add"] = true;
$tdatampgsstemplate[".afterAddAction"] = 2;
$tdatampgsstemplate[".closePopupAfterAdd"] = 1;
$tdatampgsstemplate[".afterAddActionDetTable"] = "Detail tables not found!";
}

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

$tdatampgsstemplate[".updateSelected"] = true;


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




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

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

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

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



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

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

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

$tdatampgsstemplate[".isUseAjaxSuggest"] = true;

$tdatampgsstemplate[".rowHighlite"] = true;



						

$tdatampgsstemplate[".ajaxCodeSnippetAdded"] = false;

$tdatampgsstemplate[".buttonsAdded"] = false;

$tdatampgsstemplate[".addPageEvents"] = false;

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




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

$tdatampgsstemplate[".googleLikeFields"] = array();
$tdatampgsstemplate[".googleLikeFields"][] = "MPGID";
$tdatampgsstemplate[".googleLikeFields"][] = "Surname";
$tdatampgsstemplate[".googleLikeFields"][] = "FirstName";
$tdatampgsstemplate[".googleLikeFields"][] = "Photo";
$tdatampgsstemplate[".googleLikeFields"][] = "Gender";
$tdatampgsstemplate[".googleLikeFields"][] = "DateofBirth";
$tdatampgsstemplate[".googleLikeFields"][] = "PlaceofBirth";
$tdatampgsstemplate[".googleLikeFields"][] = "DistrictOfBirth";
$tdatampgsstemplate[".googleLikeFields"][] = "ProvinceOfBirth";
$tdatampgsstemplate[".googleLikeFields"][] = "FatherVillage";
$tdatampgsstemplate[".googleLikeFields"][] = "FatherLLG";
$tdatampgsstemplate[".googleLikeFields"][] = "FatherDistrict";
$tdatampgsstemplate[".googleLikeFields"][] = "FATHERJOB";
$tdatampgsstemplate[".googleLikeFields"][] = "FATHERSNAME";
$tdatampgsstemplate[".googleLikeFields"][] = "FATHERSURNAME";
$tdatampgsstemplate[".googleLikeFields"][] = "FATHERPROV";
$tdatampgsstemplate[".googleLikeFields"][] = "MOTHERJOB";
$tdatampgsstemplate[".googleLikeFields"][] = "MOTHERNAME";
$tdatampgsstemplate[".googleLikeFields"][] = "MOTHERSURNAME";
$tdatampgsstemplate[".googleLikeFields"][] = "MOTHERNATIONAL";
$tdatampgsstemplate[".googleLikeFields"][] = "FATHERNATIONAL";
$tdatampgsstemplate[".googleLikeFields"][] = "FATHERCLAN";
$tdatampgsstemplate[".googleLikeFields"][] = "MOTHERCLAN";
$tdatampgsstemplate[".googleLikeFields"][] = "MOTHERRELIGION";
$tdatampgsstemplate[".googleLikeFields"][] = "FATHERRELIGION";
$tdatampgsstemplate[".googleLikeFields"][] = "FATHERBIRTHPLACE";
$tdatampgsstemplate[".googleLikeFields"][] = "MOTHERBIRTHPLACE";
$tdatampgsstemplate[".googleLikeFields"][] = "MotherVillage";
$tdatampgsstemplate[".googleLikeFields"][] = "MotherLLG";
$tdatampgsstemplate[".googleLikeFields"][] = "MotherDistrict";
$tdatampgsstemplate[".googleLikeFields"][] = "MOTHERPROV";
$tdatampgsstemplate[".googleLikeFields"][] = "LastInstitutuonAttended";
$tdatampgsstemplate[".googleLikeFields"][] = "HighestGradeCompleted";
$tdatampgsstemplate[".googleLikeFields"][] = "YearHighestGradeCompleted";
$tdatampgsstemplate[".googleLikeFields"][] = "TertiaryInstitutionAdmitted";
$tdatampgsstemplate[".googleLikeFields"][] = "ProgramName";
$tdatampgsstemplate[".googleLikeFields"][] = "ProgramCode";
$tdatampgsstemplate[".googleLikeFields"][] = "NewApplicant";
$tdatampgsstemplate[".googleLikeFields"][] = "Reapply";
$tdatampgsstemplate[".googleLikeFields"][] = "EmailAddrssAppl";
$tdatampgsstemplate[".googleLikeFields"][] = "MobileNoAppl";
$tdatampgsstemplate[".googleLikeFields"][] = "WitnessName";
$tdatampgsstemplate[".googleLikeFields"][] = "WitnessOccupation";
$tdatampgsstemplate[".googleLikeFields"][] = "WitnessAddress";
$tdatampgsstemplate[".googleLikeFields"][] = "Documents";
$tdatampgsstemplate[".googleLikeFields"][] = "firstyear";
$tdatampgsstemplate[".googleLikeFields"][] = "acceptletter";
$tdatampgsstemplate[".googleLikeFields"][] = "gradetencert";
$tdatampgsstemplate[".googleLikeFields"][] = "grade12cert";



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

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

$tdatampgsstemplate[".nPrinterSplitRecords"] = 40;

$tdatampgsstemplate[".geocodingEnabled"] = true;
$tdatampgsstemplate[".geocodingData"] = array();
$tdatampgsstemplate[".geocodingData"]["latField"] = "Lat";
$tdatampgsstemplate[".geocodingData"]["lngField"] = "Lng";
$tdatampgsstemplate[".geocodingData"]["addressFields"] = array();
	$tdatampgsstemplate[".geocodingData"]["addressFields"][] = "FirstName";
	$tdatampgsstemplate[".geocodingData"]["addressFields"][] = "Surname";
	$tdatampgsstemplate[".geocodingData"]["addressFields"][] = "MPGID";
	$tdatampgsstemplate[".geocodingData"]["addressFields"][] = "MobileNoAppl";
	$tdatampgsstemplate[".geocodingData"]["addressFields"][] = "StudentSchoolID";




$tdatampgsstemplate[".isDisplayLoading"] = true;

$tdatampgsstemplate[".isResizeColumns"] = true;





$tdatampgsstemplate[".pageSize"] = 20;

$tdatampgsstemplate[".warnLeavingPages"] = true;



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

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

$tdatampgsstemplate[".sqlHead"] = "SELECT MPGID,  Surname,  FirstName,  Photo,  Gender,  DateofBirth,  PlaceofBirth,  DistrictOfBirth,  ProvinceOfBirth,  FatherVillage,  FatherLLG,  FatherDistrict,  FATHERJOB,  FATHERSNAME,  FATHERSURNAME,  FATHERPROV,  MOTHERJOB,  MOTHERNAME,  MOTHERSURNAME,  MOTHERNATIONAL,  FATHERNATIONAL,  FATHERCLAN,  MOTHERCLAN,  MOTHERRELIGION,  FATHERRELIGION,  FATHERBIRTHPLACE,  MOTHERBIRTHPLACE,  MotherVillage,  MotherLLG,  MotherDistrict,  MOTHERPROV,  LastInstitutuonAttended,  HighestGradeCompleted,  YearHighestGradeCompleted,  TertiaryInstitutionAdmitted,  ProgramName,  ProgramCode,  NewApplicant,  Reapply,  EmailAddrssAppl,  MobileNoAppl,  WitnessName,  WitnessOccupation,  WitnessAddress,  Documents,  `1styear` AS firstyear,  acceptletter,  gradetencert,  grade12cert";
$tdatampgsstemplate[".sqlFrom"] = "FROM applicform";
$tdatampgsstemplate[".sqlWhereExpr"] = "";
$tdatampgsstemplate[".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;
$tdatampgsstemplate[".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;
$tdatampgsstemplate[".arrGroupsPerPage"] = $arrGPP;


$tableKeysmpgsstemplate = array();
$tableKeysmpgsstemplate[] = "MPGID";
$tdatampgsstemplate[".Keys"] = $tableKeysmpgsstemplate;


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




//	MPGID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "MPGID";
	$fdata["GoodName"] = "MPGID";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","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["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

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

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

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

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$edata["controlWidth"] = 91;

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

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$edata["controlWidth"] = 99;

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

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FirstName"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FirstName";
//	Photo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "Photo";
	$fdata["GoodName"] = "Photo";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","Photo");
	$fdata["FieldType"] = 201;

	
	
	
			

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

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

		$fdata["DeleteAssociatedFile"] = true;

	
		$fdata["UploadCodeExpression"] = true;

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

	$vdata = array("ViewFormat" => "File-based Image");

	
	
				$vdata["ShowThumbnail"] = true;
	$vdata["ThumbWidth"] = 150;
	$vdata["ThumbHeight"] = 150;
	$vdata["ImageWidth"] = 320;
	$vdata["ImageHeight"] = 240;

			$vdata["multipleImgMode"] = 1;
	$vdata["maxImages"] = 0;

			$vdata["showGallery"] = true;
	$vdata["galleryMode"] = 2;
	$vdata["captionMode"] = 2;
	$vdata["captionField"] = "";

	$vdata["imageBorder"] = 1;
	$vdata["imageFullWidth"] = 1;


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

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

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

	$edata = array("EditFormat" => "Document upload");

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


	
	



	
	
	
	
							$edata["acceptFileTypes"] = "bmp";
			$edata["acceptFileTypesHtml"] = ".bmp";
						$edata["acceptFileTypes"] .= "|gif";
			$edata["acceptFileTypesHtml"] .= ",.gif";
						$edata["acceptFileTypes"] .= "|jpe";
			$edata["acceptFileTypesHtml"] .= ",.jpe";
						$edata["acceptFileTypes"] .= "|jpeg";
			$edata["acceptFileTypesHtml"] .= ",.jpeg";
						$edata["acceptFileTypes"] .= "|jpg";
			$edata["acceptFileTypesHtml"] .= ",.jpg";
						$edata["acceptFileTypes"] .= "|png";
			$edata["acceptFileTypesHtml"] .= ",.png";
		$edata["acceptFileTypes"] = "(".$edata["acceptFileTypes"].")$";

		$edata["maxNumberOfFiles"] = 2;

		$edata["maxFileSize"] = 2500;

		$edata["maxTotalFilesSize"] = 6500;

	
	
	
	
		$edata["controlWidth"] = 150;

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

		$edata["CreateThumbnail"] = true;
	$edata["StrThumbnail"] = "th";
			$edata["ThumbnailSize"] = 320;

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["Photo"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "Photo";
//	Gender
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "Gender";
	$fdata["GoodName"] = "Gender";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","Gender");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

	$edata = array("EditFormat" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "gender";
	$edata["LookupConnId"] = "Tables";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "Gender";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "Gender";

	

	
	$edata["LookupOrderBy"] = "Gender";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["Gender"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "Gender";
//	DateofBirth
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "DateofBirth";
	$fdata["GoodName"] = "DateofBirth";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","DateofBirth");
	$fdata["FieldType"] = 135;

	
	
	
			

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

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

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

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

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

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

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


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 2;
	$edata["InitialYearFactor"] = 47;
	$edata["LastYearFactor"] = 0;

	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$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 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


	$tdatampgsstemplate["DateofBirth"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "DateofBirth";
//	PlaceofBirth
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "PlaceofBirth";
	$fdata["GoodName"] = "PlaceofBirth";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","PlaceofBirth");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["PlaceofBirth"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "PlaceofBirth";
//	DistrictOfBirth
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "DistrictOfBirth";
	$fdata["GoodName"] = "DistrictOfBirth";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","DistrictOfBirth");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "districts8";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "District";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "District";

	

	
	$edata["LookupOrderBy"] = "District";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["DistrictOfBirth"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "DistrictOfBirth";
//	ProvinceOfBirth
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "ProvinceOfBirth";
	$fdata["GoodName"] = "ProvinceOfBirth";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","ProvinceOfBirth");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "province9";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "name";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "name";

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["ProvinceOfBirth"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "ProvinceOfBirth";
//	FatherVillage
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "FatherVillage";
	$fdata["GoodName"] = "FatherVillage";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FatherVillage");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FatherVillage"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FatherVillage";
//	FatherLLG
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "FatherLLG";
	$fdata["GoodName"] = "FatherLLG";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FatherLLG");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
			
//  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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "llg3";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "LLG";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "LLG";

	

	
	$edata["LookupOrderBy"] = "LLG";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FatherLLG"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FatherLLG";
//	FatherDistrict
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "FatherDistrict";
	$fdata["GoodName"] = "FatherDistrict";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FatherDistrict");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

	$edata = array("EditFormat" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "districts8";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "District";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "District";

	

	
	$edata["LookupOrderBy"] = "District";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FatherDistrict"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FatherDistrict";
//	FATHERJOB
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "FATHERJOB";
	$fdata["GoodName"] = "FATHERJOB";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FATHERJOB");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FATHERJOB"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FATHERJOB";
//	FATHERSNAME
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "FATHERSNAME";
	$fdata["GoodName"] = "FATHERSNAME";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FATHERSNAME");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 185;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FATHERSNAME"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FATHERSNAME";
//	FATHERSURNAME
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "FATHERSURNAME";
	$fdata["GoodName"] = "FATHERSURNAME";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FATHERSURNAME");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FATHERSURNAME"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FATHERSURNAME";
//	FATHERPROV
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 16;
	$fdata["strName"] = "FATHERPROV";
	$fdata["GoodName"] = "FATHERPROV";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FATHERPROV");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "province9";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "name";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "name";

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FATHERPROV"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FATHERPROV";
//	MOTHERJOB
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 17;
	$fdata["strName"] = "MOTHERJOB";
	$fdata["GoodName"] = "MOTHERJOB";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MOTHERJOB");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MOTHERJOB"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MOTHERJOB";
//	MOTHERNAME
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 18;
	$fdata["strName"] = "MOTHERNAME";
	$fdata["GoodName"] = "MOTHERNAME";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MOTHERNAME");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MOTHERNAME"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MOTHERNAME";
//	MOTHERSURNAME
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 19;
	$fdata["strName"] = "MOTHERSURNAME";
	$fdata["GoodName"] = "MOTHERSURNAME";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MOTHERSURNAME");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MOTHERSURNAME"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MOTHERSURNAME";
//	MOTHERNATIONAL
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 20;
	$fdata["strName"] = "MOTHERNATIONAL";
	$fdata["GoodName"] = "MOTHERNATIONAL";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MOTHERNATIONAL");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MOTHERNATIONAL"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MOTHERNATIONAL";
//	FATHERNATIONAL
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 21;
	$fdata["strName"] = "FATHERNATIONAL";
	$fdata["GoodName"] = "FATHERNATIONAL";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FATHERNATIONAL");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FATHERNATIONAL"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FATHERNATIONAL";
//	FATHERCLAN
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 22;
	$fdata["strName"] = "FATHERCLAN";
	$fdata["GoodName"] = "FATHERCLAN";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FATHERCLAN");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FATHERCLAN"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FATHERCLAN";
//	MOTHERCLAN
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 23;
	$fdata["strName"] = "MOTHERCLAN";
	$fdata["GoodName"] = "MOTHERCLAN";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MOTHERCLAN");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MOTHERCLAN"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MOTHERCLAN";
//	MOTHERRELIGION
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 24;
	$fdata["strName"] = "MOTHERRELIGION";
	$fdata["GoodName"] = "MOTHERRELIGION";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MOTHERRELIGION");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MOTHERRELIGION"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MOTHERRELIGION";
//	FATHERRELIGION
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 25;
	$fdata["strName"] = "FATHERRELIGION";
	$fdata["GoodName"] = "FATHERRELIGION";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FATHERRELIGION");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FATHERRELIGION"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FATHERRELIGION";
//	FATHERBIRTHPLACE
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 26;
	$fdata["strName"] = "FATHERBIRTHPLACE";
	$fdata["GoodName"] = "FATHERBIRTHPLACE";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","FATHERBIRTHPLACE");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["FATHERBIRTHPLACE"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "FATHERBIRTHPLACE";
//	MOTHERBIRTHPLACE
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 27;
	$fdata["strName"] = "MOTHERBIRTHPLACE";
	$fdata["GoodName"] = "MOTHERBIRTHPLACE";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MOTHERBIRTHPLACE");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MOTHERBIRTHPLACE"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MOTHERBIRTHPLACE";
//	MotherVillage
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 28;
	$fdata["strName"] = "MotherVillage";
	$fdata["GoodName"] = "MotherVillage";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MotherVillage");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MotherVillage"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MotherVillage";
//	MotherLLG
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 29;
	$fdata["strName"] = "MotherLLG";
	$fdata["GoodName"] = "MotherLLG";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MotherLLG");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "llg3";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "LLG";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "LLG";

	

	
	$edata["LookupOrderBy"] = "LLG";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MotherLLG"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MotherLLG";
//	MotherDistrict
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 30;
	$fdata["strName"] = "MotherDistrict";
	$fdata["GoodName"] = "MotherDistrict";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MotherDistrict");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

	$edata = array("EditFormat" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "districts8";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "District";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "District";

	

	
	$edata["LookupOrderBy"] = "District";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MotherDistrict"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MotherDistrict";
//	MOTHERPROV
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 31;
	$fdata["strName"] = "MOTHERPROV";
	$fdata["GoodName"] = "MOTHERPROV";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MOTHERPROV");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "province9";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "name";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "name";

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MOTHERPROV"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MOTHERPROV";
//	LastInstitutuonAttended
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 32;
	$fdata["strName"] = "LastInstitutuonAttended";
	$fdata["GoodName"] = "LastInstitutuonAttended";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","LastInstitutuonAttended");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["LastInstitutuonAttended"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "LastInstitutuonAttended";
//	HighestGradeCompleted
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 33;
	$fdata["strName"] = "HighestGradeCompleted";
	$fdata["GoodName"] = "HighestGradeCompleted";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","HighestGradeCompleted");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["HighestGradeCompleted"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "HighestGradeCompleted";
//	YearHighestGradeCompleted
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 34;
	$fdata["strName"] = "YearHighestGradeCompleted";
	$fdata["GoodName"] = "YearHighestGradeCompleted";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","YearHighestGradeCompleted");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

		$edata["controlWidth"] = 206;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["YearHighestGradeCompleted"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "YearHighestGradeCompleted";
//	TertiaryInstitutionAdmitted
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 35;
	$fdata["strName"] = "TertiaryInstitutionAdmitted";
	$fdata["GoodName"] = "TertiaryInstitutionAdmitted";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "uniprograms10";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "University Name";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "University Name";

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 206;

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

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["TertiaryInstitutionAdmitted"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "TertiaryInstitutionAdmitted";
//	ProgramName
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 36;
	$fdata["strName"] = "ProgramName";
	$fdata["GoodName"] = "ProgramName";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","ProgramName");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

	$edata = array("EditFormat" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "uniprograms10";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "University Program Name";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "University Program Name";

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


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

	
	
	
			

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

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

	
	
			
//  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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 1;
	$edata["LookupTable"] = "uniprograms10";
	$edata["LookupConnId"] = "";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "Universtiy Program Code";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "Universtiy Program Code";

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["ProgramCode"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "ProgramCode";
//	NewApplicant
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 38;
	$fdata["strName"] = "NewApplicant";
	$fdata["GoodName"] = "NewApplicant";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","NewApplicant");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

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

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

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

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

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

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

	$edata = array("EditFormat" => "Checkbox");

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	//	End validation

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["NewApplicant"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "NewApplicant";
//	Reapply
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 39;
	$fdata["strName"] = "Reapply";
	$fdata["GoodName"] = "Reapply";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","Reapply");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

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

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

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

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

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

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

	$edata = array("EditFormat" => "Checkbox");

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 143;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["Reapply"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "Reapply";
//	EmailAddrssAppl
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 40;
	$fdata["strName"] = "EmailAddrssAppl";
	$fdata["GoodName"] = "EmailAddrssAppl";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","EmailAddrssAppl");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

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

		$edata["controlWidth"] = 240;

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

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


	$fdata["isSeparate"] = false;




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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["EmailAddrssAppl"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "EmailAddrssAppl";
//	MobileNoAppl
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 41;
	$fdata["strName"] = "MobileNoAppl";
	$fdata["GoodName"] = "MobileNoAppl";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","MobileNoAppl");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

		$edata["controlWidth"] = 161;

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

	// the end of search options settings


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatampgsstemplate["MobileNoAppl"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "MobileNoAppl";
//	WitnessName
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 42;
	$fdata["strName"] = "WitnessName";
	$fdata["GoodName"] = "WitnessName";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","WitnessName");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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


	$tdatampgsstemplate["WitnessName"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "WitnessName";
//	WitnessOccupation
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 43;
	$fdata["strName"] = "WitnessOccupation";
	$fdata["GoodName"] = "WitnessOccupation";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","WitnessOccupation");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

	
	
	
								$vdata["ShowIcon"] = true;
			$vdata["ShowCustomExpr"] = 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
	
			// 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


	$tdatampgsstemplate["WitnessOccupation"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "WitnessOccupation";
//	WitnessAddress
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 44;
	$fdata["strName"] = "WitnessAddress";
	$fdata["GoodName"] = "WitnessAddress";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","WitnessAddress");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

	
	
	
				$vdata["ShowThumbnail"] = true;
							$vdata["ShowCustomExpr"] = 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

		$edata["CreateThumbnail"] = true;
	$edata["StrThumbnail"] = "th";
			$edata["ThumbnailSize"] = 150;

			
	
	
	
	$fdata["EditFormats"]["edit"] = $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


	$tdatampgsstemplate["WitnessAddress"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "WitnessAddress";
//	Documents
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 45;
	$fdata["strName"] = "Documents";
	$fdata["GoodName"] = "Documents";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","Documents");
	$fdata["FieldType"] = 201;

	
	
	
			

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

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

		$fdata["DeleteAssociatedFile"] = true;

	
		$fdata["UploadCodeExpression"] = true;

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

	$vdata = array("ViewFormat" => "File-based Image");

	
	
				$vdata["ShowThumbnail"] = true;
	$vdata["ThumbWidth"] = 150;
	$vdata["ThumbHeight"] = 150;
	$vdata["ImageWidth"] = 320;
	$vdata["ImageHeight"] = 240;

			$vdata["multipleImgMode"] = 1;
	$vdata["maxImages"] = 0;

			$vdata["showGallery"] = true;
	$vdata["galleryMode"] = 2;
	$vdata["captionMode"] = 2;
	$vdata["captionField"] = "";

	$vdata["imageBorder"] = 1;
	$vdata["imageFullWidth"] = 1;


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

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

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

	$edata = array("EditFormat" => "Document upload");

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


	
	



	
	
	
	
							$edata["acceptFileTypes"] = "doc";
			$edata["acceptFileTypesHtml"] = ".doc";
						$edata["acceptFileTypes"] .= "|docx";
			$edata["acceptFileTypesHtml"] .= ",.docx";
						$edata["acceptFileTypes"] .= "|jpe";
			$edata["acceptFileTypesHtml"] .= ",.jpe";
						$edata["acceptFileTypes"] .= "|jpeg";
			$edata["acceptFileTypesHtml"] .= ",.jpeg";
						$edata["acceptFileTypes"] .= "|jpg";
			$edata["acceptFileTypesHtml"] .= ",.jpg";
						$edata["acceptFileTypes"] .= "|pdf";
			$edata["acceptFileTypesHtml"] .= ",.pdf";
						$edata["acceptFileTypes"] .= "|png";
			$edata["acceptFileTypesHtml"] .= ",.png";
						$edata["acceptFileTypes"] .= "|rtf";
			$edata["acceptFileTypesHtml"] .= ",.rtf";
						$edata["acceptFileTypes"] .= "|txt";
			$edata["acceptFileTypesHtml"] .= ",.txt";
		$edata["acceptFileTypes"] = "(".$edata["acceptFileTypes"].")$";

		$edata["maxNumberOfFiles"] = 9;

		$edata["maxFileSize"] = 2500;

		$edata["maxTotalFilesSize"] = 9000;

	
	
	
	
		$edata["controlWidth"] = 200;

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

		$edata["CreateThumbnail"] = true;
	$edata["StrThumbnail"] = "th";
			$edata["ThumbnailSize"] = 150;

			
	
	
	
	$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


	$tdatampgsstemplate["Documents"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "Documents";
//	firstyear
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 46;
	$fdata["strName"] = "firstyear";
	$fdata["GoodName"] = "firstyear";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","firstyear");
	$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["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


	$tdatampgsstemplate["firstyear"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "firstyear";
//	acceptletter
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 47;
	$fdata["strName"] = "acceptletter";
	$fdata["GoodName"] = "acceptletter";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","acceptletter");
	$fdata["FieldType"] = 201;

	
	
	
			

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

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

		$fdata["DeleteAssociatedFile"] = true;

	
		$fdata["UploadCodeExpression"] = true;

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

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

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

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

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

	$edata = array("EditFormat" => "Document upload");

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


	
	



	
	
	
	
							$edata["acceptFileTypes"] = "doc";
			$edata["acceptFileTypesHtml"] = ".doc";
						$edata["acceptFileTypes"] .= "|docx";
			$edata["acceptFileTypesHtml"] .= ",.docx";
						$edata["acceptFileTypes"] .= "|jpe";
			$edata["acceptFileTypesHtml"] .= ",.jpe";
						$edata["acceptFileTypes"] .= "|jpeg";
			$edata["acceptFileTypesHtml"] .= ",.jpeg";
						$edata["acceptFileTypes"] .= "|jpg";
			$edata["acceptFileTypesHtml"] .= ",.jpg";
						$edata["acceptFileTypes"] .= "|pdf";
			$edata["acceptFileTypesHtml"] .= ",.pdf";
						$edata["acceptFileTypes"] .= "|png";
			$edata["acceptFileTypesHtml"] .= ",.png";
						$edata["acceptFileTypes"] .= "|rtf";
			$edata["acceptFileTypesHtml"] .= ",.rtf";
						$edata["acceptFileTypes"] .= "|txt";
			$edata["acceptFileTypesHtml"] .= ",.txt";
		$edata["acceptFileTypes"] = "(".$edata["acceptFileTypes"].")$";

		$edata["maxNumberOfFiles"] = 1;

		$edata["maxFileSize"] = 2500;

		$edata["maxTotalFilesSize"] = 6500;

	
	
	
	
		$edata["controlWidth"] = 200;

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

		$edata["CreateThumbnail"] = true;
	$edata["StrThumbnail"] = "th";
			$edata["ThumbnailSize"] = 150;

			
	
	
	
	$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


	$tdatampgsstemplate["acceptletter"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "acceptletter";
//	gradetencert
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 48;
	$fdata["strName"] = "gradetencert";
	$fdata["GoodName"] = "gradetencert";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","gradetencert");
	$fdata["FieldType"] = 201;

	
	
	
			

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

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

		$fdata["DeleteAssociatedFile"] = true;

	
		$fdata["UploadCodeExpression"] = true;

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

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

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

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

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

	$edata = array("EditFormat" => "Document upload");

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


	
	



		$edata["IsRequired"] = true;

	
	
	
							$edata["acceptFileTypes"] = "bmp";
			$edata["acceptFileTypesHtml"] = ".bmp";
						$edata["acceptFileTypes"] .= "|docx";
			$edata["acceptFileTypesHtml"] .= ",.docx";
						$edata["acceptFileTypes"] .= "|gif";
			$edata["acceptFileTypesHtml"] .= ",.gif";
						$edata["acceptFileTypes"] .= "|jpg";
			$edata["acceptFileTypesHtml"] .= ",.jpg";
						$edata["acceptFileTypes"] .= "|pdf";
			$edata["acceptFileTypesHtml"] .= ",.pdf";
						$edata["acceptFileTypes"] .= "|png";
			$edata["acceptFileTypesHtml"] .= ",.png";
						$edata["acceptFileTypes"] .= "|rtf";
			$edata["acceptFileTypesHtml"] .= ",.rtf";
		$edata["acceptFileTypes"] = "(".$edata["acceptFileTypes"].")$";

		$edata["maxNumberOfFiles"] = 1;

		$edata["maxFileSize"] = 25000;

		$edata["maxTotalFilesSize"] = 5000;

	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$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


	$tdatampgsstemplate["gradetencert"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "gradetencert";
//	grade12cert
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 49;
	$fdata["strName"] = "grade12cert";
	$fdata["GoodName"] = "grade12cert";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgsstemplate","grade12cert");
	$fdata["FieldType"] = 201;

	
	
	
			

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

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

		$fdata["DeleteAssociatedFile"] = true;

	
		$fdata["UploadCodeExpression"] = true;

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

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

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

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

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

	$edata = array("EditFormat" => "Document upload");

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


	
	



	
	
	
	
							$edata["acceptFileTypes"] = "doc";
			$edata["acceptFileTypesHtml"] = ".doc";
						$edata["acceptFileTypes"] .= "|docx";
			$edata["acceptFileTypesHtml"] .= ",.docx";
						$edata["acceptFileTypes"] .= "|jpe";
			$edata["acceptFileTypesHtml"] .= ",.jpe";
						$edata["acceptFileTypes"] .= "|jpeg";
			$edata["acceptFileTypesHtml"] .= ",.jpeg";
						$edata["acceptFileTypes"] .= "|jpg";
			$edata["acceptFileTypesHtml"] .= ",.jpg";
						$edata["acceptFileTypes"] .= "|pdf";
			$edata["acceptFileTypesHtml"] .= ",.pdf";
						$edata["acceptFileTypes"] .= "|png";
			$edata["acceptFileTypesHtml"] .= ",.png";
						$edata["acceptFileTypes"] .= "|rtf";
			$edata["acceptFileTypesHtml"] .= ",.rtf";
						$edata["acceptFileTypes"] .= "|txt";
			$edata["acceptFileTypesHtml"] .= ",.txt";
		$edata["acceptFileTypes"] = "(".$edata["acceptFileTypes"].")$";

		$edata["maxNumberOfFiles"] = 1;

		$edata["maxFileSize"] = 2500;

		$edata["maxTotalFilesSize"] = 5000;

	
	
	
	
		$edata["controlWidth"] = 200;

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

		$edata["CreateThumbnail"] = true;
	$edata["StrThumbnail"] = "th";
			$edata["ThumbnailSize"] = 150;

			
	
	
	
	$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


	$tdatampgsstemplate["grade12cert"] = $fdata;
		$tdatampgsstemplate[".searchableFields"][] = "grade12cert";


$tables_data["mpgsstemplate"]=&$tdatampgsstemplate;
$field_labels["mpgsstemplate"] = &$fieldLabelsmpgsstemplate;
$fieldToolTips["mpgsstemplate"] = &$fieldToolTipsmpgsstemplate;
$placeHolders["mpgsstemplate"] = &$placeHoldersmpgsstemplate;
$page_titles["mpgsstemplate"] = &$pageTitlesmpgsstemplate;

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

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



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


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










function createSqlQuery_mpgsstemplate()
{
$proto3=array();
$proto3["m_strHead"] = "SELECT";
$proto3["m_strFieldList"] = "MPGID,  Surname,  FirstName,  Photo,  Gender,  DateofBirth,  PlaceofBirth,  DistrictOfBirth,  ProvinceOfBirth,  FatherVillage,  FatherLLG,  FatherDistrict,  FATHERJOB,  FATHERSNAME,  FATHERSURNAME,  FATHERPROV,  MOTHERJOB,  MOTHERNAME,  MOTHERSURNAME,  MOTHERNATIONAL,  FATHERNATIONAL,  FATHERCLAN,  MOTHERCLAN,  MOTHERRELIGION,  FATHERRELIGION,  FATHERBIRTHPLACE,  MOTHERBIRTHPLACE,  MotherVillage,  MotherLLG,  MotherDistrict,  MOTHERPROV,  LastInstitutuonAttended,  HighestGradeCompleted,  YearHighestGradeCompleted,  TertiaryInstitutionAdmitted,  ProgramName,  ProgramCode,  NewApplicant,  Reapply,  EmailAddrssAppl,  MobileNoAppl,  WitnessName,  WitnessOccupation,  WitnessAddress,  Documents,  `1styear` AS firstyear,  acceptletter,  gradetencert,  grade12cert";
$proto3["m_strFrom"] = "FROM applicform";
$proto3["m_strWhere"] = "";
$proto3["m_strOrderBy"] = "";
	
		;
			$proto3["cipherer"] = null;
$proto5=array();
$proto5["m_sql"] = "";
$proto5["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto3["m_having"] = $obj;
$proto3["m_fieldlist"] = array();
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "MPGID",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "Surname",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "FirstName",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "Photo",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto15["m_sql"] = "Photo";
$proto15["m_srcTableName"] = "mpgsstemplate";
$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto3["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "Gender",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "DateofBirth",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto19["m_sql"] = "DateofBirth";
$proto19["m_srcTableName"] = "mpgsstemplate";
$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto3["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "PlaceofBirth",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto21["m_sql"] = "PlaceofBirth";
$proto21["m_srcTableName"] = "mpgsstemplate";
$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto3["m_fieldlist"][]=$obj;
						$proto23=array();
			$obj = new SQLField(array(
	"m_strName" => "DistrictOfBirth",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto23["m_sql"] = "DistrictOfBirth";
$proto23["m_srcTableName"] = "mpgsstemplate";
$proto23["m_expr"]=$obj;
$proto23["m_alias"] = "";
$obj = new SQLFieldListItem($proto23);

$proto3["m_fieldlist"][]=$obj;
						$proto25=array();
			$obj = new SQLField(array(
	"m_strName" => "ProvinceOfBirth",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto25["m_sql"] = "ProvinceOfBirth";
$proto25["m_srcTableName"] = "mpgsstemplate";
$proto25["m_expr"]=$obj;
$proto25["m_alias"] = "";
$obj = new SQLFieldListItem($proto25);

$proto3["m_fieldlist"][]=$obj;
						$proto27=array();
			$obj = new SQLField(array(
	"m_strName" => "FatherVillage",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto27["m_sql"] = "FatherVillage";
$proto27["m_srcTableName"] = "mpgsstemplate";
$proto27["m_expr"]=$obj;
$proto27["m_alias"] = "";
$obj = new SQLFieldListItem($proto27);

$proto3["m_fieldlist"][]=$obj;
						$proto29=array();
			$obj = new SQLField(array(
	"m_strName" => "FatherLLG",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto29["m_sql"] = "FatherLLG";
$proto29["m_srcTableName"] = "mpgsstemplate";
$proto29["m_expr"]=$obj;
$proto29["m_alias"] = "";
$obj = new SQLFieldListItem($proto29);

$proto3["m_fieldlist"][]=$obj;
						$proto31=array();
			$obj = new SQLField(array(
	"m_strName" => "FatherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto33=array();
			$obj = new SQLField(array(
	"m_strName" => "FATHERJOB",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto33["m_sql"] = "FATHERJOB";
$proto33["m_srcTableName"] = "mpgsstemplate";
$proto33["m_expr"]=$obj;
$proto33["m_alias"] = "";
$obj = new SQLFieldListItem($proto33);

$proto3["m_fieldlist"][]=$obj;
						$proto35=array();
			$obj = new SQLField(array(
	"m_strName" => "FATHERSNAME",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto35["m_sql"] = "FATHERSNAME";
$proto35["m_srcTableName"] = "mpgsstemplate";
$proto35["m_expr"]=$obj;
$proto35["m_alias"] = "";
$obj = new SQLFieldListItem($proto35);

$proto3["m_fieldlist"][]=$obj;
						$proto37=array();
			$obj = new SQLField(array(
	"m_strName" => "FATHERSURNAME",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto37["m_sql"] = "FATHERSURNAME";
$proto37["m_srcTableName"] = "mpgsstemplate";
$proto37["m_expr"]=$obj;
$proto37["m_alias"] = "";
$obj = new SQLFieldListItem($proto37);

$proto3["m_fieldlist"][]=$obj;
						$proto39=array();
			$obj = new SQLField(array(
	"m_strName" => "FATHERPROV",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto39["m_sql"] = "FATHERPROV";
$proto39["m_srcTableName"] = "mpgsstemplate";
$proto39["m_expr"]=$obj;
$proto39["m_alias"] = "";
$obj = new SQLFieldListItem($proto39);

$proto3["m_fieldlist"][]=$obj;
						$proto41=array();
			$obj = new SQLField(array(
	"m_strName" => "MOTHERJOB",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto41["m_sql"] = "MOTHERJOB";
$proto41["m_srcTableName"] = "mpgsstemplate";
$proto41["m_expr"]=$obj;
$proto41["m_alias"] = "";
$obj = new SQLFieldListItem($proto41);

$proto3["m_fieldlist"][]=$obj;
						$proto43=array();
			$obj = new SQLField(array(
	"m_strName" => "MOTHERNAME",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto43["m_sql"] = "MOTHERNAME";
$proto43["m_srcTableName"] = "mpgsstemplate";
$proto43["m_expr"]=$obj;
$proto43["m_alias"] = "";
$obj = new SQLFieldListItem($proto43);

$proto3["m_fieldlist"][]=$obj;
						$proto45=array();
			$obj = new SQLField(array(
	"m_strName" => "MOTHERSURNAME",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto45["m_sql"] = "MOTHERSURNAME";
$proto45["m_srcTableName"] = "mpgsstemplate";
$proto45["m_expr"]=$obj;
$proto45["m_alias"] = "";
$obj = new SQLFieldListItem($proto45);

$proto3["m_fieldlist"][]=$obj;
						$proto47=array();
			$obj = new SQLField(array(
	"m_strName" => "MOTHERNATIONAL",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto47["m_sql"] = "MOTHERNATIONAL";
$proto47["m_srcTableName"] = "mpgsstemplate";
$proto47["m_expr"]=$obj;
$proto47["m_alias"] = "";
$obj = new SQLFieldListItem($proto47);

$proto3["m_fieldlist"][]=$obj;
						$proto49=array();
			$obj = new SQLField(array(
	"m_strName" => "FATHERNATIONAL",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto49["m_sql"] = "FATHERNATIONAL";
$proto49["m_srcTableName"] = "mpgsstemplate";
$proto49["m_expr"]=$obj;
$proto49["m_alias"] = "";
$obj = new SQLFieldListItem($proto49);

$proto3["m_fieldlist"][]=$obj;
						$proto51=array();
			$obj = new SQLField(array(
	"m_strName" => "FATHERCLAN",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto51["m_sql"] = "FATHERCLAN";
$proto51["m_srcTableName"] = "mpgsstemplate";
$proto51["m_expr"]=$obj;
$proto51["m_alias"] = "";
$obj = new SQLFieldListItem($proto51);

$proto3["m_fieldlist"][]=$obj;
						$proto53=array();
			$obj = new SQLField(array(
	"m_strName" => "MOTHERCLAN",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto53["m_sql"] = "MOTHERCLAN";
$proto53["m_srcTableName"] = "mpgsstemplate";
$proto53["m_expr"]=$obj;
$proto53["m_alias"] = "";
$obj = new SQLFieldListItem($proto53);

$proto3["m_fieldlist"][]=$obj;
						$proto55=array();
			$obj = new SQLField(array(
	"m_strName" => "MOTHERRELIGION",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto55["m_sql"] = "MOTHERRELIGION";
$proto55["m_srcTableName"] = "mpgsstemplate";
$proto55["m_expr"]=$obj;
$proto55["m_alias"] = "";
$obj = new SQLFieldListItem($proto55);

$proto3["m_fieldlist"][]=$obj;
						$proto57=array();
			$obj = new SQLField(array(
	"m_strName" => "FATHERRELIGION",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto57["m_sql"] = "FATHERRELIGION";
$proto57["m_srcTableName"] = "mpgsstemplate";
$proto57["m_expr"]=$obj;
$proto57["m_alias"] = "";
$obj = new SQLFieldListItem($proto57);

$proto3["m_fieldlist"][]=$obj;
						$proto59=array();
			$obj = new SQLField(array(
	"m_strName" => "FATHERBIRTHPLACE",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto59["m_sql"] = "FATHERBIRTHPLACE";
$proto59["m_srcTableName"] = "mpgsstemplate";
$proto59["m_expr"]=$obj;
$proto59["m_alias"] = "";
$obj = new SQLFieldListItem($proto59);

$proto3["m_fieldlist"][]=$obj;
						$proto61=array();
			$obj = new SQLField(array(
	"m_strName" => "MOTHERBIRTHPLACE",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto61["m_sql"] = "MOTHERBIRTHPLACE";
$proto61["m_srcTableName"] = "mpgsstemplate";
$proto61["m_expr"]=$obj;
$proto61["m_alias"] = "";
$obj = new SQLFieldListItem($proto61);

$proto3["m_fieldlist"][]=$obj;
						$proto63=array();
			$obj = new SQLField(array(
	"m_strName" => "MotherVillage",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto63["m_sql"] = "MotherVillage";
$proto63["m_srcTableName"] = "mpgsstemplate";
$proto63["m_expr"]=$obj;
$proto63["m_alias"] = "";
$obj = new SQLFieldListItem($proto63);

$proto3["m_fieldlist"][]=$obj;
						$proto65=array();
			$obj = new SQLField(array(
	"m_strName" => "MotherLLG",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto65["m_sql"] = "MotherLLG";
$proto65["m_srcTableName"] = "mpgsstemplate";
$proto65["m_expr"]=$obj;
$proto65["m_alias"] = "";
$obj = new SQLFieldListItem($proto65);

$proto3["m_fieldlist"][]=$obj;
						$proto67=array();
			$obj = new SQLField(array(
	"m_strName" => "MotherDistrict",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto69=array();
			$obj = new SQLField(array(
	"m_strName" => "MOTHERPROV",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto69["m_sql"] = "MOTHERPROV";
$proto69["m_srcTableName"] = "mpgsstemplate";
$proto69["m_expr"]=$obj;
$proto69["m_alias"] = "";
$obj = new SQLFieldListItem($proto69);

$proto3["m_fieldlist"][]=$obj;
						$proto71=array();
			$obj = new SQLField(array(
	"m_strName" => "LastInstitutuonAttended",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto71["m_sql"] = "LastInstitutuonAttended";
$proto71["m_srcTableName"] = "mpgsstemplate";
$proto71["m_expr"]=$obj;
$proto71["m_alias"] = "";
$obj = new SQLFieldListItem($proto71);

$proto3["m_fieldlist"][]=$obj;
						$proto73=array();
			$obj = new SQLField(array(
	"m_strName" => "HighestGradeCompleted",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto73["m_sql"] = "HighestGradeCompleted";
$proto73["m_srcTableName"] = "mpgsstemplate";
$proto73["m_expr"]=$obj;
$proto73["m_alias"] = "";
$obj = new SQLFieldListItem($proto73);

$proto3["m_fieldlist"][]=$obj;
						$proto75=array();
			$obj = new SQLField(array(
	"m_strName" => "YearHighestGradeCompleted",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto75["m_sql"] = "YearHighestGradeCompleted";
$proto75["m_srcTableName"] = "mpgsstemplate";
$proto75["m_expr"]=$obj;
$proto75["m_alias"] = "";
$obj = new SQLFieldListItem($proto75);

$proto3["m_fieldlist"][]=$obj;
						$proto77=array();
			$obj = new SQLField(array(
	"m_strName" => "TertiaryInstitutionAdmitted",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto79=array();
			$obj = new SQLField(array(
	"m_strName" => "ProgramName",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto81=array();
			$obj = new SQLField(array(
	"m_strName" => "ProgramCode",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto83=array();
			$obj = new SQLField(array(
	"m_strName" => "NewApplicant",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto83["m_sql"] = "NewApplicant";
$proto83["m_srcTableName"] = "mpgsstemplate";
$proto83["m_expr"]=$obj;
$proto83["m_alias"] = "";
$obj = new SQLFieldListItem($proto83);

$proto3["m_fieldlist"][]=$obj;
						$proto85=array();
			$obj = new SQLField(array(
	"m_strName" => "Reapply",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

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

$proto3["m_fieldlist"][]=$obj;
						$proto87=array();
			$obj = new SQLField(array(
	"m_strName" => "EmailAddrssAppl",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto87["m_sql"] = "EmailAddrssAppl";
$proto87["m_srcTableName"] = "mpgsstemplate";
$proto87["m_expr"]=$obj;
$proto87["m_alias"] = "";
$obj = new SQLFieldListItem($proto87);

$proto3["m_fieldlist"][]=$obj;
						$proto89=array();
			$obj = new SQLField(array(
	"m_strName" => "MobileNoAppl",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto89["m_sql"] = "MobileNoAppl";
$proto89["m_srcTableName"] = "mpgsstemplate";
$proto89["m_expr"]=$obj;
$proto89["m_alias"] = "";
$obj = new SQLFieldListItem($proto89);

$proto3["m_fieldlist"][]=$obj;
						$proto91=array();
			$obj = new SQLField(array(
	"m_strName" => "WitnessName",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto91["m_sql"] = "WitnessName";
$proto91["m_srcTableName"] = "mpgsstemplate";
$proto91["m_expr"]=$obj;
$proto91["m_alias"] = "";
$obj = new SQLFieldListItem($proto91);

$proto3["m_fieldlist"][]=$obj;
						$proto93=array();
			$obj = new SQLField(array(
	"m_strName" => "WitnessOccupation",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto93["m_sql"] = "WitnessOccupation";
$proto93["m_srcTableName"] = "mpgsstemplate";
$proto93["m_expr"]=$obj;
$proto93["m_alias"] = "";
$obj = new SQLFieldListItem($proto93);

$proto3["m_fieldlist"][]=$obj;
						$proto95=array();
			$obj = new SQLField(array(
	"m_strName" => "WitnessAddress",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto95["m_sql"] = "WitnessAddress";
$proto95["m_srcTableName"] = "mpgsstemplate";
$proto95["m_expr"]=$obj;
$proto95["m_alias"] = "";
$obj = new SQLFieldListItem($proto95);

$proto3["m_fieldlist"][]=$obj;
						$proto97=array();
			$obj = new SQLField(array(
	"m_strName" => "Documents",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto97["m_sql"] = "Documents";
$proto97["m_srcTableName"] = "mpgsstemplate";
$proto97["m_expr"]=$obj;
$proto97["m_alias"] = "";
$obj = new SQLFieldListItem($proto97);

$proto3["m_fieldlist"][]=$obj;
						$proto99=array();
			$obj = new SQLField(array(
	"m_strName" => "1styear",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto99["m_sql"] = "`1styear`";
$proto99["m_srcTableName"] = "mpgsstemplate";
$proto99["m_expr"]=$obj;
$proto99["m_alias"] = "firstyear";
$obj = new SQLFieldListItem($proto99);

$proto3["m_fieldlist"][]=$obj;
						$proto101=array();
			$obj = new SQLField(array(
	"m_strName" => "acceptletter",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto101["m_sql"] = "acceptletter";
$proto101["m_srcTableName"] = "mpgsstemplate";
$proto101["m_expr"]=$obj;
$proto101["m_alias"] = "";
$obj = new SQLFieldListItem($proto101);

$proto3["m_fieldlist"][]=$obj;
						$proto103=array();
			$obj = new SQLField(array(
	"m_strName" => "gradetencert",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto103["m_sql"] = "gradetencert";
$proto103["m_srcTableName"] = "mpgsstemplate";
$proto103["m_expr"]=$obj;
$proto103["m_alias"] = "";
$obj = new SQLFieldListItem($proto103);

$proto3["m_fieldlist"][]=$obj;
						$proto105=array();
			$obj = new SQLField(array(
	"m_strName" => "grade12cert",
	"m_strTable" => "applicform",
	"m_srcTableName" => "mpgsstemplate"
));

$proto105["m_sql"] = "grade12cert";
$proto105["m_srcTableName"] = "mpgsstemplate";
$proto105["m_expr"]=$obj;
$proto105["m_alias"] = "";
$obj = new SQLFieldListItem($proto105);

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

$proto107["m_table"] = $obj;
$proto107["m_sql"] = "applicform";
$proto107["m_alias"] = "";
$proto107["m_srcTableName"] = "mpgsstemplate";
$proto109=array();
$proto109["m_sql"] = "";
$proto109["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_mpgsstemplate = createSqlQuery_mpgsstemplate();


	
		;

																																																	

$tdatampgsstemplate[".sqlquery"] = $queryData_mpgsstemplate;

$tableEvents["mpgsstemplate"] = new eventsBase;
$tdatampgsstemplate[".hasEvents"] = false;

?>