<?php
$tdataorganizations = array();
$tdataorganizations[".searchableFields"] = array();
$tdataorganizations[".ShortName"] = "organizations";
$tdataorganizations[".OwnerID"] = "";
$tdataorganizations[".OriginalTable"] = "organizations";


$tdataorganizations[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"masterlist\":[\"masterlist\"],\"masterprint\":[\"masterprint\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdataorganizations[".originalPagesByType"] = $tdataorganizations[".pagesByType"];
$tdataorganizations[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"masterlist\":[\"masterlist\"],\"masterprint\":[\"masterprint\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdataorganizations[".originalPages"] = $tdataorganizations[".pages"];
$tdataorganizations[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"masterlist\":\"masterlist\",\"masterprint\":\"masterprint\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
$tdataorganizations[".originalDefaultPages"] = $tdataorganizations[".defaultPages"];

//	field labels
$fieldLabelsorganizations = array();
$fieldToolTipsorganizations = array();
$pageTitlesorganizations = array();
$placeHoldersorganizations = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsorganizations["English"] = array();
	$fieldToolTipsorganizations["English"] = array();
	$placeHoldersorganizations["English"] = array();
	$pageTitlesorganizations["English"] = array();
	$fieldLabelsorganizations["English"]["OrgID"] = "#";
	$fieldToolTipsorganizations["English"]["OrgID"] = "";
	$placeHoldersorganizations["English"]["OrgID"] = "";
	$fieldLabelsorganizations["English"]["BusinessName"] = "ຊື່ອົງການຈັດຕັ້ງ";
	$fieldToolTipsorganizations["English"]["BusinessName"] = "";
	$placeHoldersorganizations["English"]["BusinessName"] = "";
	$fieldLabelsorganizations["English"]["ContactName"] = "ຜູ້ປະສານງານ";
	$fieldToolTipsorganizations["English"]["ContactName"] = "";
	$placeHoldersorganizations["English"]["ContactName"] = "";
	$fieldLabelsorganizations["English"]["Tel"] = "ໂທ";
	$fieldToolTipsorganizations["English"]["Tel"] = "";
	$placeHoldersorganizations["English"]["Tel"] = "";
	$fieldLabelsorganizations["English"]["Email"] = "Email";
	$fieldToolTipsorganizations["English"]["Email"] = "";
	$placeHoldersorganizations["English"]["Email"] = "";
	$fieldLabelsorganizations["English"]["Address"] = "ທີຢູ່";
	$fieldToolTipsorganizations["English"]["Address"] = "";
	$placeHoldersorganizations["English"]["Address"] = "";
	if (count($fieldToolTipsorganizations["English"]))
		$tdataorganizations[".isUseToolTips"] = true;
}


	$tdataorganizations[".NCSearch"] = true;



$tdataorganizations[".shortTableName"] = "organizations";
$tdataorganizations[".nSecOptions"] = 0;

$tdataorganizations[".mainTableOwnerID"] = "";
$tdataorganizations[".entityType"] = 0;
$tdataorganizations[".connId"] = "eflejob_at_localhost";


$tdataorganizations[".strOriginalTableName"] = "organizations";

	



$tdataorganizations[".showAddInPopup"] = false;

$tdataorganizations[".showEditInPopup"] = false;

$tdataorganizations[".showViewInPopup"] = false;

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

	$tdataorganizations[".audit"] = false;

	$tdataorganizations[".locking"] = false;


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

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

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

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



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




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

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

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

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



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

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

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

$tdataorganizations[".isUseAjaxSuggest"] = true;



			

$tdataorganizations[".ajaxCodeSnippetAdded"] = false;

$tdataorganizations[".buttonsAdded"] = false;

$tdataorganizations[".addPageEvents"] = false;

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


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


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

$tdataorganizations[".googleLikeFields"] = array();
$tdataorganizations[".googleLikeFields"][] = "OrgID";
$tdataorganizations[".googleLikeFields"][] = "BusinessName";
$tdataorganizations[".googleLikeFields"][] = "ContactName";
$tdataorganizations[".googleLikeFields"][] = "Tel";
$tdataorganizations[".googleLikeFields"][] = "Email";
$tdataorganizations[".googleLikeFields"][] = "Address";



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

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

$tdataorganizations[".nPrinterSplitRecords"] = 40;

$tdataorganizations[".geocodingEnabled"] = false;










$tdataorganizations[".pageSize"] = 20;

$tdataorganizations[".warnLeavingPages"] = true;



$tstrOrderBy = "";
$tdataorganizations[".strOrderBy"] = $tstrOrderBy;

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


$tdataorganizations[".sqlHead"] = "SELECT OrgID,  	BusinessName,  	ContactName,  	Tel,  	Email,  	Address";
$tdataorganizations[".sqlFrom"] = "FROM organizations";
$tdataorganizations[".sqlWhereExpr"] = "";
$tdataorganizations[".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;
$tdataorganizations[".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;
$tdataorganizations[".arrGroupsPerPage"] = $arrGPP;

$tdataorganizations[".highlightSearchResults"] = true;

$tableKeysorganizations = array();
$tableKeysorganizations[] = "OrgID";
$tdataorganizations[".Keys"] = $tableKeysorganizations;


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




//	OrgID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "OrgID";
	$fdata["GoodName"] = "OrgID";
	$fdata["ownerTable"] = "organizations";
	$fdata["Label"] = GetFieldLabel("organizations","OrgID");
	$fdata["FieldType"] = 3;


		$fdata["AutoInc"] = true;

	
			

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

		$fdata["sourceSingle"] = "OrgID";

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

	
	
				$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["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();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
//	End validation

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


	$fdata["isSeparate"] = false;




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

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


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

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataorganizations["OrgID"] = $fdata;
		$tdataorganizations[".searchableFields"][] = "OrgID";
//	BusinessName
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "BusinessName";
	$fdata["GoodName"] = "BusinessName";
	$fdata["ownerTable"] = "organizations";
	$fdata["Label"] = GetFieldLabel("organizations","BusinessName");
	$fdata["FieldType"] = 200;


	
	
			

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

		$fdata["sourceSingle"] = "BusinessName";

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

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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$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


	$tdataorganizations["BusinessName"] = $fdata;
		$tdataorganizations[".searchableFields"][] = "BusinessName";
//	ContactName
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "ContactName";
	$fdata["GoodName"] = "ContactName";
	$fdata["ownerTable"] = "organizations";
	$fdata["Label"] = GetFieldLabel("organizations","ContactName");
	$fdata["FieldType"] = 200;


	
	
			

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

		$fdata["sourceSingle"] = "ContactName";

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

	
	
				$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["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


	$tdataorganizations["ContactName"] = $fdata;
		$tdataorganizations[".searchableFields"][] = "ContactName";
//	Tel
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "Tel";
	$fdata["GoodName"] = "Tel";
	$fdata["ownerTable"] = "organizations";
	$fdata["Label"] = GetFieldLabel("organizations","Tel");
	$fdata["FieldType"] = 200;


	
	
			

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

		$fdata["sourceSingle"] = "Tel";

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

	
	
				$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["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


	$tdataorganizations["Tel"] = $fdata;
		$tdataorganizations[".searchableFields"][] = "Tel";
//	Email
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "Email";
	$fdata["GoodName"] = "Email";
	$fdata["ownerTable"] = "organizations";
	$fdata["Label"] = GetFieldLabel("organizations","Email");
	$fdata["FieldType"] = 200;


	
	
			

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

		$fdata["sourceSingle"] = "Email";

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

	
	
				$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["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


	$tdataorganizations["Email"] = $fdata;
		$tdataorganizations[".searchableFields"][] = "Email";
//	Address
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "Address";
	$fdata["GoodName"] = "Address";
	$fdata["ownerTable"] = "organizations";
	$fdata["Label"] = GetFieldLabel("organizations","Address");
	$fdata["FieldType"] = 200;


	
	
			

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

		$fdata["sourceSingle"] = "Address";

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

	
	
				$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["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


	$tdataorganizations["Address"] = $fdata;
		$tdataorganizations[".searchableFields"][] = "Address";


$tables_data["organizations"]=&$tdataorganizations;
$field_labels["organizations"] = &$fieldLabelsorganizations;
$fieldToolTips["organizations"] = &$fieldToolTipsorganizations;
$placeHolders["organizations"] = &$placeHoldersorganizations;
$page_titles["organizations"] = &$pageTitlesorganizations;


changeTextControlsToDate( "organizations" );

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)

//if !@TABLE.bReportCrossTab

$detailsTablesData["organizations"] = array();
//	stockout
	
	

		$dIndex = 0;
	$detailsParam = array();
	$detailsParam["dDataSourceTable"]="stockout";
		$detailsParam["dOriginalTable"] = "stockout";



		
		$detailsParam["dType"]=PAGE_LIST;
	$detailsParam["dShortTable"] = "stockout";
	$detailsParam["dCaptionTable"] = GetTableCaption("stockout");
	$detailsParam["masterKeys"] =array();
	$detailsParam["detailKeys"] =array();


		
	$detailsTablesData["organizations"][$dIndex] = $detailsParam;

	
		$detailsTablesData["organizations"][$dIndex]["masterKeys"] = array();

	$detailsTablesData["organizations"][$dIndex]["masterKeys"][]="OrgID";

				$detailsTablesData["organizations"][$dIndex]["detailKeys"] = array();

	$detailsTablesData["organizations"][$dIndex]["detailKeys"][]="orgID";
//endif

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



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



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











function createSqlQuery_organizations()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "OrgID,  	BusinessName,  	ContactName,  	Tel,  	Email,  	Address";
$proto0["m_strFrom"] = "FROM organizations";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto18=array();
$proto18["m_link"] = "SQLL_MAIN";
			$proto19=array();
$proto19["m_strName"] = "organizations";
$proto19["m_srcTableName"] = "organizations";
$proto19["m_columns"] = array();
$proto19["m_columns"][] = "OrgID";
$proto19["m_columns"][] = "BusinessName";
$proto19["m_columns"][] = "ContactName";
$proto19["m_columns"][] = "Tel";
$proto19["m_columns"][] = "Email";
$proto19["m_columns"][] = "Address";
$obj = new SQLTable($proto19);

$proto18["m_table"] = $obj;
$proto18["m_sql"] = "organizations";
$proto18["m_alias"] = "";
$proto18["m_srcTableName"] = "organizations";
$proto20=array();
$proto20["m_sql"] = "";
$proto20["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_organizations = createSqlQuery_organizations();


	
		;

						

$tdataorganizations[".sqlquery"] = $queryData_organizations;



$tdataorganizations[".hasEvents"] = false;

?>