<?php
$tdataArea_Details=array();
	$tdataArea_Details[".NumberOfChars"]=80; 
	$tdataArea_Details[".ShortName"]="Area_Details";
	$tdataArea_Details[".OwnerID"]="";
	$tdataArea_Details[".OriginalTable"]="area";


	
//	field labels
$fieldLabelsArea_Details = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsArea_Details["English"]=array();
	$fieldToolTipsArea_Details["English"]=array();
	$fieldLabelsArea_Details["English"]["IDAREA"] = "IDAREA";
	$fieldToolTipsArea_Details["English"]["IDAREA"] = "";
	$fieldLabelsArea_Details["English"]["Region"] = "Region";
	$fieldToolTipsArea_Details["English"]["Region"] = "";
	$fieldLabelsArea_Details["English"]["Area_Name"] = "Area Name";
	$fieldToolTipsArea_Details["English"]["Area Name"] = "";
	$fieldLabelsArea_Details["English"]["Description"] = "Description";
	$fieldToolTipsArea_Details["English"]["Description"] = "";
	if (count($fieldToolTipsArea_Details["English"])){
		$tdataArea_Details[".isUseToolTips"]=true;
	}
}


	
	$tdataArea_Details[".NCSearch"]=true;

	

$tdataArea_Details[".shortTableName"] = "Area_Details";
$tdataArea_Details[".nSecOptions"] = 0;
$tdataArea_Details[".recsPerRowList"] = 1;	
$tdataArea_Details[".tableGroupBy"] = "0";
$tdataArea_Details[".mainTableOwnerID"] = "";
$tdataArea_Details[".moveNext"] = 1;




$tdataArea_Details[".showAddInPopup"] = false;

$tdataArea_Details[".showEditInPopup"] = false;

$tdataArea_Details[".showViewInPopup"] = false;


$tdataArea_Details[".fieldsForRegister"] = array();

$tdataArea_Details[".listAjax"] = false;

	$tdataArea_Details[".audit"] = false;

	$tdataArea_Details[".locking"] = false;
	
$tdataArea_Details[".listIcons"] = true;




$tdataArea_Details[".showSimpleSearchOptions"] = false;

$tdataArea_Details[".showSearchPanel"] = true;


$tdataArea_Details[".isUseAjaxSuggest"] = true;

$tdataArea_Details[".rowHighlite"] = true;


// button handlers file names

$tdataArea_Details[".addPageEvents"] = false;

$tdataArea_Details[".arrKeyFields"][] = "IDAREA";

// use datepicker for search panel
$tdataArea_Details[".isUseCalendarForSearch"] = false;

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

$tdataArea_Details[".isUseiBox"] = false;



$tdataArea_Details[".isUseInlineAdd"] = true;

$tdataArea_Details[".isUseInlineJs"] = $tdataArea_Details[".isUseInlineAdd"] || $tdataArea_Details[".isUseInlineEdit"];

$tdataArea_Details[".allSearchFields"] = array();

$tdataArea_Details[".globSearchFields"][] = "IDAREA";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("IDAREA", $tdataArea_Details[".allSearchFields"]))
{
	$tdataArea_Details[".allSearchFields"][] = "IDAREA";	
}
$tdataArea_Details[".globSearchFields"][] = "Region";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Region", $tdataArea_Details[".allSearchFields"]))
{
	$tdataArea_Details[".allSearchFields"][] = "Region";	
}
$tdataArea_Details[".globSearchFields"][] = "Area Name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Area Name", $tdataArea_Details[".allSearchFields"]))
{
	$tdataArea_Details[".allSearchFields"][] = "Area Name";	
}
$tdataArea_Details[".globSearchFields"][] = "Description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Description", $tdataArea_Details[".allSearchFields"]))
{
	$tdataArea_Details[".allSearchFields"][] = "Description";	
}


$tdataArea_Details[".googleLikeFields"][] = "IDAREA";
$tdataArea_Details[".googleLikeFields"][] = "Region";
$tdataArea_Details[".googleLikeFields"][] = "Area Name";
$tdataArea_Details[".googleLikeFields"][] = "Description";



$tdataArea_Details[".advSearchFields"][] = "IDAREA";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("IDAREA", $tdataArea_Details[".allSearchFields"])) 
{
	$tdataArea_Details[".allSearchFields"][] = "IDAREA";	
}
$tdataArea_Details[".advSearchFields"][] = "Region";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Region", $tdataArea_Details[".allSearchFields"])) 
{
	$tdataArea_Details[".allSearchFields"][] = "Region";	
}
$tdataArea_Details[".advSearchFields"][] = "Area Name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Area Name", $tdataArea_Details[".allSearchFields"])) 
{
	$tdataArea_Details[".allSearchFields"][] = "Area Name";	
}
$tdataArea_Details[".advSearchFields"][] = "Description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Description", $tdataArea_Details[".allSearchFields"])) 
{
	$tdataArea_Details[".allSearchFields"][] = "Description";	
}

$tdataArea_Details[".isTableType"] = "list";


	

$tdataArea_Details[".isDisplayLoading"] = true;

$tdataArea_Details[".isResizeColumns"] = false;





$tdataArea_Details[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataArea_Details[".strOrderBy"] = $gstrOrderBy;
	
$tdataArea_Details[".orderindexes"] = array();

$tdataArea_Details[".sqlHead"] = "SELECT IDAREA,   Region,   `Area Name`,   Description";
$tdataArea_Details[".sqlFrom"] = "FROM area";
$tdataArea_Details[".sqlWhereExpr"] = "";
$tdataArea_Details[".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;
$tdataArea_Details[".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;
$tdataArea_Details[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "IDAREA";
	$tdataArea_Details[".Keys"] = $tableKeys;

//	IDAREA
	$fdata = array();
	$fdata["strName"] = "IDAREA";
	$fdata["ownerTable"] = "area";
		
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "IDAREA";
	
		$fdata["FullName"]= "IDAREA";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataArea_Details["IDAREA"]=$fdata;
//	Region
	$fdata = array();
	$fdata["strName"] = "Region";
	$fdata["ownerTable"] = "area";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="Region Name";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="Region Name";
				$fdata["LookupTable"]="region";
	$fdata["LookupOrderBy"]="Region Name";
																			$fdata["SimpleAdd"]=true;
	
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Region";
	
		$fdata["FullName"]= "Region";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataArea_Details["Region"]=$fdata;
//	Area Name
	$fdata = array();
	$fdata["strName"] = "Area Name";
	$fdata["ownerTable"] = "area";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Area_Name";
	
		$fdata["FullName"]= "`Area Name`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataArea_Details["Area Name"]=$fdata;
//	Description
	$fdata = array();
	$fdata["strName"] = "Description";
	$fdata["ownerTable"] = "area";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Description";
	
		$fdata["FullName"]= "Description";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataArea_Details["Description"]=$fdata;

	
$tables_data["Area_Details"]=&$tdataArea_Details;
$field_labels["Area_Details"] = &$fieldLabelsArea_Details;
$fieldToolTips["Area_Details"] = &$fieldToolTipsArea_Details;

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

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

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

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










$proto320=array();
$proto320["m_strHead"] = "SELECT";
$proto320["m_strFieldList"] = "IDAREA,   Region,   `Area Name`,   Description";
$proto320["m_strFrom"] = "FROM area";
$proto320["m_strWhere"] = "";
$proto320["m_strOrderBy"] = "";
$proto320["m_strTail"] = "";
$proto321=array();
$proto321["m_sql"] = "";
$proto321["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto320["m_having"] = $obj;
$proto320["m_fieldlist"] = array();
						$proto325=array();
			$obj = new SQLField(array(
	"m_strName" => "IDAREA",
	"m_strTable" => "area"
));

$proto325["m_expr"]=$obj;
$proto325["m_alias"] = "";
$obj = new SQLFieldListItem($proto325);

$proto320["m_fieldlist"][]=$obj;
						$proto327=array();
			$obj = new SQLField(array(
	"m_strName" => "Region",
	"m_strTable" => "area"
));

$proto327["m_expr"]=$obj;
$proto327["m_alias"] = "";
$obj = new SQLFieldListItem($proto327);

$proto320["m_fieldlist"][]=$obj;
						$proto329=array();
			$obj = new SQLField(array(
	"m_strName" => "Area Name",
	"m_strTable" => "area"
));

$proto329["m_expr"]=$obj;
$proto329["m_alias"] = "";
$obj = new SQLFieldListItem($proto329);

$proto320["m_fieldlist"][]=$obj;
						$proto331=array();
			$obj = new SQLField(array(
	"m_strName" => "Description",
	"m_strTable" => "area"
));

$proto331["m_expr"]=$obj;
$proto331["m_alias"] = "";
$obj = new SQLFieldListItem($proto331);

$proto320["m_fieldlist"][]=$obj;
$proto320["m_fromlist"] = array();
												$proto333=array();
$proto333["m_link"] = "SQLL_MAIN";
			$proto334=array();
$proto334["m_strName"] = "area";
$proto334["m_columns"] = array();
$proto334["m_columns"][] = "IDAREA";
$proto334["m_columns"][] = "Region";
$proto334["m_columns"][] = "Area Name";
$proto334["m_columns"][] = "Description";
$obj = new SQLTable($proto334);

$proto333["m_table"] = $obj;
$proto333["m_alias"] = "";
$proto335=array();
$proto335["m_sql"] = "";
$proto335["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto320["m_fromlist"][]=$obj;
$proto320["m_groupby"] = array();
$proto320["m_orderby"] = array();
$obj = new SQLQuery($proto320);

$queryData_Area_Details = $obj;
$tdataArea_Details[".sqlquery"] = $queryData_Area_Details;

$tableEvents["Area_Details"] = new eventsBase;

?>
