<?php



$tdatampgssdatasearch = array();
$tdatampgssdatasearch[".searchableFields"] = array();
$tdatampgssdatasearch[".ShortName"] = "mpgssdatasearch";
$tdatampgssdatasearch[".OwnerID"] = "";
$tdatampgssdatasearch[".OriginalTable"] = "applicform";


$defaultPages = my_json_decode( "{\"list\":\"list\"}" );

$tdatampgssdatasearch[".pagesByType"] = my_json_decode( "{\"list\":[\"list\"]}" );
$tdatampgssdatasearch[".pages"] = types2pages( my_json_decode( "{\"list\":[\"list\"]}" ) );
$tdatampgssdatasearch[".defaultPages"] = $defaultPages;

//	field labels
$fieldLabelsmpgssdatasearch = array();
$fieldToolTipsmpgssdatasearch = array();
$pageTitlesmpgssdatasearch = array();
$placeHoldersmpgssdatasearch = array();

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


	$tdatampgssdatasearch[".NCSearch"] = true;



$tdatampgssdatasearch[".shortTableName"] = "mpgssdatasearch";
$tdatampgssdatasearch[".nSecOptions"] = 0;

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

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

	



$tdatampgssdatasearch[".showAddInPopup"] = true;

$tdatampgssdatasearch[".showEditInPopup"] = true;

$tdatampgssdatasearch[".showViewInPopup"] = true;

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


	$tdatampgssdatasearch[".listAjax"] = true;
//	temporary
$tdatampgssdatasearch[".listAjax"] = false;

	$tdatampgssdatasearch[".audit"] = false;

	$tdatampgssdatasearch[".locking"] = false;


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

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

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

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

$tdatampgssdatasearch[".updateSelected"] = true;


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




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

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

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

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



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

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

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

$tdatampgssdatasearch[".isUseAjaxSuggest"] = true;

$tdatampgssdatasearch[".rowHighlite"] = true;



						

$tdatampgssdatasearch[".ajaxCodeSnippetAdded"] = false;

$tdatampgssdatasearch[".buttonsAdded"] = false;

$tdatampgssdatasearch[".addPageEvents"] = false;

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




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

$tdatampgssdatasearch[".googleLikeFields"] = array();
$tdatampgssdatasearch[".googleLikeFields"][] = "Surname";
$tdatampgssdatasearch[".googleLikeFields"][] = "FirstName";
$tdatampgssdatasearch[".googleLikeFields"][] = "FatherDistrict";
$tdatampgssdatasearch[".googleLikeFields"][] = "FATHERSNAME";
$tdatampgssdatasearch[".googleLikeFields"][] = "FATHERSURNAME";
$tdatampgssdatasearch[".googleLikeFields"][] = "TertiaryInstitutionAdmitted";
$tdatampgssdatasearch[".googleLikeFields"][] = "ProgramName";
$tdatampgssdatasearch[".googleLikeFields"][] = "ProgramCode";
$tdatampgssdatasearch[".googleLikeFields"][] = "firstyear";



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

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

$tdatampgssdatasearch[".nPrinterSplitRecords"] = 40;

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




$tdatampgssdatasearch[".isDisplayLoading"] = true;

$tdatampgssdatasearch[".isResizeColumns"] = true;


$tdatampgssdatasearch[".noRecordsFirstPage"] = true;



$tdatampgssdatasearch[".pageSize"] = 20;

$tdatampgssdatasearch[".warnLeavingPages"] = true;



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

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

$tdatampgssdatasearch[".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";
$tdatampgssdatasearch[".sqlFrom"] = "FROM applicform";
$tdatampgssdatasearch[".sqlWhereExpr"] = "";
$tdatampgssdatasearch[".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;
$tdatampgssdatasearch[".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;
$tdatampgssdatasearch[".arrGroupsPerPage"] = $arrGPP;


$tableKeysmpgssdatasearch = array();
$tableKeysmpgssdatasearch[] = "MPGID";
$tdatampgssdatasearch[".Keys"] = $tableKeysmpgssdatasearch;


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




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


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

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
// 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


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

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
// 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


	$tdatampgssdatasearch["FirstName"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FirstName";
//	Photo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "Photo";
	$fdata["GoodName"] = "Photo";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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"] = 72;
	$vdata["ThumbHeight"] = 72;
	$vdata["ImageWidth"] = 300;
	$vdata["ImageHeight"] = 300;

			$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"] .= "|pdf";
			$edata["acceptFileTypesHtml"] .= ",.pdf";
						$edata["acceptFileTypes"] .= "|png";
			$edata["acceptFileTypesHtml"] .= ",.png";
		$edata["acceptFileTypes"] = "(".$edata["acceptFileTypes"].")$";

		$edata["maxNumberOfFiles"] = 2;

		$edata["maxFileSize"] = 2500;

		$edata["maxTotalFilesSize"] = 5000;

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

				$edata["ResizeImage"] = true;
				$edata["NewSize"] = 640;

	
	
	
	$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


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


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


	$tdatampgssdatasearch["DateofBirth"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "DateofBirth";
//	PlaceofBirth
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "PlaceofBirth";
	$fdata["GoodName"] = "PlaceofBirth";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["PlaceofBirth"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "PlaceofBirth";
//	DistrictOfBirth
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "DistrictOfBirth";
	$fdata["GoodName"] = "DistrictOfBirth";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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"] = "districts3";
	$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


	$tdatampgssdatasearch["DistrictOfBirth"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "DistrictOfBirth";
//	ProvinceOfBirth
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "ProvinceOfBirth";
	$fdata["GoodName"] = "ProvinceOfBirth";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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" => "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


	$tdatampgssdatasearch["ProvinceOfBirth"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "ProvinceOfBirth";
//	FatherVillage
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "FatherVillage";
	$fdata["GoodName"] = "FatherVillage";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["FatherVillage"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FatherVillage";
//	FatherLLG
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "FatherLLG";
	$fdata["GoodName"] = "FatherLLG";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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"] = "llg";
	$edata["LookupConnId"] = "Tables";
			$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


	$tdatampgssdatasearch["FatherLLG"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FatherLLG";
//	FatherDistrict
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "FatherDistrict";
	$fdata["GoodName"] = "FatherDistrict";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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"] = "districts5";
	$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"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
// 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


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


	$tdatampgssdatasearch["FATHERJOB"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FATHERJOB";
//	FATHERSNAME
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "FATHERSNAME";
	$fdata["GoodName"] = "FATHERSNAME";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
// 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


	$tdatampgssdatasearch["FATHERSNAME"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FATHERSNAME";
//	FATHERSURNAME
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "FATHERSURNAME";
	$fdata["GoodName"] = "FATHERSURNAME";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
// 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


	$tdatampgssdatasearch["FATHERSURNAME"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FATHERSURNAME";
//	FATHERPROV
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 16;
	$fdata["strName"] = "FATHERPROV";
	$fdata["GoodName"] = "FATHERPROV";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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" => "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


	$tdatampgssdatasearch["FATHERPROV"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FATHERPROV";
//	MOTHERJOB
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 17;
	$fdata["strName"] = "MOTHERJOB";
	$fdata["GoodName"] = "MOTHERJOB";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["MOTHERJOB"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MOTHERJOB";
//	MOTHERNAME
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 18;
	$fdata["strName"] = "MOTHERNAME";
	$fdata["GoodName"] = "MOTHERNAME";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["MOTHERNAME"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MOTHERNAME";
//	MOTHERSURNAME
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 19;
	$fdata["strName"] = "MOTHERSURNAME";
	$fdata["GoodName"] = "MOTHERSURNAME";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["MOTHERSURNAME"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MOTHERSURNAME";
//	MOTHERNATIONAL
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 20;
	$fdata["strName"] = "MOTHERNATIONAL";
	$fdata["GoodName"] = "MOTHERNATIONAL";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["MOTHERNATIONAL"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MOTHERNATIONAL";
//	FATHERNATIONAL
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 21;
	$fdata["strName"] = "FATHERNATIONAL";
	$fdata["GoodName"] = "FATHERNATIONAL";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["FATHERNATIONAL"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FATHERNATIONAL";
//	FATHERCLAN
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 22;
	$fdata["strName"] = "FATHERCLAN";
	$fdata["GoodName"] = "FATHERCLAN";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["FATHERCLAN"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FATHERCLAN";
//	MOTHERCLAN
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 23;
	$fdata["strName"] = "MOTHERCLAN";
	$fdata["GoodName"] = "MOTHERCLAN";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["MOTHERCLAN"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MOTHERCLAN";
//	MOTHERRELIGION
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 24;
	$fdata["strName"] = "MOTHERRELIGION";
	$fdata["GoodName"] = "MOTHERRELIGION";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["MOTHERRELIGION"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MOTHERRELIGION";
//	FATHERRELIGION
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 25;
	$fdata["strName"] = "FATHERRELIGION";
	$fdata["GoodName"] = "FATHERRELIGION";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["FATHERRELIGION"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FATHERRELIGION";
//	FATHERBIRTHPLACE
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 26;
	$fdata["strName"] = "FATHERBIRTHPLACE";
	$fdata["GoodName"] = "FATHERBIRTHPLACE";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["FATHERBIRTHPLACE"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "FATHERBIRTHPLACE";
//	MOTHERBIRTHPLACE
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 27;
	$fdata["strName"] = "MOTHERBIRTHPLACE";
	$fdata["GoodName"] = "MOTHERBIRTHPLACE";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["MOTHERBIRTHPLACE"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MOTHERBIRTHPLACE";
//	MotherVillage
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 28;
	$fdata["strName"] = "MotherVillage";
	$fdata["GoodName"] = "MotherVillage";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["MotherVillage"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MotherVillage";
//	MotherLLG
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 29;
	$fdata["strName"] = "MotherLLG";
	$fdata["GoodName"] = "MotherLLG";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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"] = "llg";
	$edata["LookupConnId"] = "Tables";
			$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


	$tdatampgssdatasearch["MotherLLG"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MotherLLG";
//	MotherDistrict
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 30;
	$fdata["strName"] = "MotherDistrict";
	$fdata["GoodName"] = "MotherDistrict";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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"] = "districts3";
	$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


	$tdatampgssdatasearch["MotherDistrict"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MotherDistrict";
//	MOTHERPROV
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 31;
	$fdata["strName"] = "MOTHERPROV";
	$fdata["GoodName"] = "MOTHERPROV";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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" => "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


	$tdatampgssdatasearch["MOTHERPROV"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MOTHERPROV";
//	LastInstitutuonAttended
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 32;
	$fdata["strName"] = "LastInstitutuonAttended";
	$fdata["GoodName"] = "LastInstitutuonAttended";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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" => "Lookup wizard");

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


	
	

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

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

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$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


	$tdatampgssdatasearch["LastInstitutuonAttended"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "LastInstitutuonAttended";
//	HighestGradeCompleted
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 33;
	$fdata["strName"] = "HighestGradeCompleted";
	$fdata["GoodName"] = "HighestGradeCompleted";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["HighestGradeCompleted"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "HighestGradeCompleted";
//	YearHighestGradeCompleted
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 34;
	$fdata["strName"] = "YearHighestGradeCompleted";
	$fdata["GoodName"] = "YearHighestGradeCompleted";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


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

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
// 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


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

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
// 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


	$tdatampgssdatasearch["ProgramName"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "ProgramName";
//	ProgramCode
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 37;
	$fdata["strName"] = "ProgramCode";
	$fdata["GoodName"] = "ProgramCode";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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"] = "uniprograms7";
	$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["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"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
// 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


	$tdatampgssdatasearch["ProgramCode"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "ProgramCode";
//	NewApplicant
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 38;
	$fdata["strName"] = "NewApplicant";
	$fdata["GoodName"] = "NewApplicant";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["NewApplicant"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "NewApplicant";
//	Reapply
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 39;
	$fdata["strName"] = "Reapply";
	$fdata["GoodName"] = "Reapply";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["Reapply"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "Reapply";
//	EmailAddrssAppl
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 40;
	$fdata["strName"] = "EmailAddrssAppl";
	$fdata["GoodName"] = "EmailAddrssAppl";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["EmailAddrssAppl"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "EmailAddrssAppl";
//	MobileNoAppl
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 41;
	$fdata["strName"] = "MobileNoAppl";
	$fdata["GoodName"] = "MobileNoAppl";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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


	$tdatampgssdatasearch["MobileNoAppl"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "MobileNoAppl";
//	WitnessName
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 42;
	$fdata["strName"] = "WitnessName";
	$fdata["GoodName"] = "WitnessName";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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
		$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


	$tdatampgssdatasearch["WitnessName"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "WitnessName";
//	WitnessOccupation
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 43;
	$fdata["strName"] = "WitnessOccupation";
	$fdata["GoodName"] = "WitnessOccupation";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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
		$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


	$tdatampgssdatasearch["WitnessOccupation"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "WitnessOccupation";
//	WitnessAddress
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 44;
	$fdata["strName"] = "WitnessAddress";
	$fdata["GoodName"] = "WitnessAddress";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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
		$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


	$tdatampgssdatasearch["WitnessAddress"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "WitnessAddress";
//	Documents
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 45;
	$fdata["strName"] = "Documents";
	$fdata["GoodName"] = "Documents";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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" => "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"] = "bmp";
			$edata["acceptFileTypesHtml"] = ".bmp";
						$edata["acceptFileTypes"] .= "|doc";
			$edata["acceptFileTypesHtml"] .= ",.doc";
						$edata["acceptFileTypes"] .= "|docx";
			$edata["acceptFileTypesHtml"] .= ",.docx";
						$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"] .= "|pcx";
			$edata["acceptFileTypesHtml"] .= ",.pcx";
						$edata["acceptFileTypes"] .= "|pdf";
			$edata["acceptFileTypesHtml"] .= ",.pdf";
						$edata["acceptFileTypes"] .= "|pic";
			$edata["acceptFileTypesHtml"] .= ",.pic";
						$edata["acceptFileTypes"] .= "|png";
			$edata["acceptFileTypesHtml"] .= ",.png";
						$edata["acceptFileTypes"] .= "|rtf";
			$edata["acceptFileTypesHtml"] .= ",.rtf";
		$edata["acceptFileTypes"] = "(".$edata["acceptFileTypes"].")$";

		$edata["maxNumberOfFiles"] = 9;

		$edata["maxFileSize"] = 2000;

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

				$edata["ResizeImage"] = true;
				$edata["NewSize"] = 640;

	
	
	
	$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


	$tdatampgssdatasearch["Documents"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "Documents";
//	firstyear
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 46;
	$fdata["strName"] = "firstyear";
	$fdata["GoodName"] = "firstyear";
	$fdata["ownerTable"] = "applicform";
	$fdata["Label"] = GetFieldLabel("mpgssdatasearch","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 user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "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


	$tdatampgssdatasearch["firstyear"] = $fdata;
		$tdatampgssdatasearch[".searchableFields"][] = "firstyear";


$tables_data["mpgssdatasearch"]=&$tdatampgssdatasearch;
$field_labels["mpgssdatasearch"] = &$fieldLabelsmpgssdatasearch;
$fieldToolTips["mpgssdatasearch"] = &$fieldToolTipsmpgssdatasearch;
$placeHolders["mpgssdatasearch"] = &$placeHoldersmpgssdatasearch;
$page_titles["mpgssdatasearch"] = &$pageTitlesmpgssdatasearch;

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

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



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


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










function createSqlQuery_mpgssdatasearch()
{
$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";
$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" => "mpgssdatasearch"
));

$proto9["m_sql"] = "MPGID";
$proto9["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto11["m_sql"] = "Surname";
$proto11["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto13["m_sql"] = "FirstName";
$proto13["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto15["m_sql"] = "Photo";
$proto15["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto17["m_sql"] = "Gender";
$proto17["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto19["m_sql"] = "DateofBirth";
$proto19["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto21["m_sql"] = "PlaceofBirth";
$proto21["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto23["m_sql"] = "DistrictOfBirth";
$proto23["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto25["m_sql"] = "ProvinceOfBirth";
$proto25["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto27["m_sql"] = "FatherVillage";
$proto27["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto29["m_sql"] = "FatherLLG";
$proto29["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto31["m_sql"] = "FatherDistrict";
$proto31["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto33["m_sql"] = "FATHERJOB";
$proto33["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto35["m_sql"] = "FATHERSNAME";
$proto35["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto37["m_sql"] = "FATHERSURNAME";
$proto37["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto39["m_sql"] = "FATHERPROV";
$proto39["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto41["m_sql"] = "MOTHERJOB";
$proto41["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto43["m_sql"] = "MOTHERNAME";
$proto43["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto45["m_sql"] = "MOTHERSURNAME";
$proto45["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto47["m_sql"] = "MOTHERNATIONAL";
$proto47["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto49["m_sql"] = "FATHERNATIONAL";
$proto49["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto51["m_sql"] = "FATHERCLAN";
$proto51["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto53["m_sql"] = "MOTHERCLAN";
$proto53["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto55["m_sql"] = "MOTHERRELIGION";
$proto55["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto57["m_sql"] = "FATHERRELIGION";
$proto57["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto59["m_sql"] = "FATHERBIRTHPLACE";
$proto59["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto61["m_sql"] = "MOTHERBIRTHPLACE";
$proto61["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto63["m_sql"] = "MotherVillage";
$proto63["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto65["m_sql"] = "MotherLLG";
$proto65["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto67["m_sql"] = "MotherDistrict";
$proto67["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto69["m_sql"] = "MOTHERPROV";
$proto69["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto71["m_sql"] = "LastInstitutuonAttended";
$proto71["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto73["m_sql"] = "HighestGradeCompleted";
$proto73["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto75["m_sql"] = "YearHighestGradeCompleted";
$proto75["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto77["m_sql"] = "TertiaryInstitutionAdmitted";
$proto77["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto79["m_sql"] = "ProgramName";
$proto79["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto81["m_sql"] = "ProgramCode";
$proto81["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto83["m_sql"] = "NewApplicant";
$proto83["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto85["m_sql"] = "Reapply";
$proto85["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto87["m_sql"] = "EmailAddrssAppl";
$proto87["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto89["m_sql"] = "MobileNoAppl";
$proto89["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto91["m_sql"] = "WitnessName";
$proto91["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto93["m_sql"] = "WitnessOccupation";
$proto93["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto95["m_sql"] = "WitnessAddress";
$proto95["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

$proto97["m_sql"] = "Documents";
$proto97["m_srcTableName"] = "mpgssdatasearch";
$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" => "mpgssdatasearch"
));

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

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

$proto101["m_table"] = $obj;
$proto101["m_sql"] = "applicform";
$proto101["m_alias"] = "";
$proto101["m_srcTableName"] = "mpgssdatasearch";
$proto103=array();
$proto103["m_sql"] = "";
$proto103["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_mpgssdatasearch = createSqlQuery_mpgssdatasearch();


	
		;

																																														

$tdatampgssdatasearch[".sqlquery"] = $queryData_mpgssdatasearch;

$tableEvents["mpgssdatasearch"] = new eventsBase;
$tdatampgssdatasearch[".hasEvents"] = false;

?>