<?php
$tdataActive_Customers=array();
	$tdataActive_Customers[".NumberOfChars"]=80; 
	$tdataActive_Customers[".ShortName"]="Active_Customers";
	$tdataActive_Customers[".OwnerID"]="Assigned Executive";
	$tdataActive_Customers[".OriginalTable"]="customer_list";


	
//	field labels
$fieldLabelsActive_Customers = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsActive_Customers["English"]=array();
	$fieldToolTipsActive_Customers["English"]=array();
	$fieldLabelsActive_Customers["English"]["idCL"] = "Id CL";
	$fieldToolTipsActive_Customers["English"]["idCL"] = "";
	$fieldLabelsActive_Customers["English"]["Region"] = "Region";
	$fieldToolTipsActive_Customers["English"]["Region"] = "";
	$fieldLabelsActive_Customers["English"]["Customer_Name"] = "Customer Name";
	$fieldToolTipsActive_Customers["English"]["Customer Name"] = "";
	$fieldLabelsActive_Customers["English"]["Address"] = "Address";
	$fieldToolTipsActive_Customers["English"]["Address"] = "";
	$fieldLabelsActive_Customers["English"]["City"] = "City";
	$fieldToolTipsActive_Customers["English"]["City"] = "";
	$fieldLabelsActive_Customers["English"]["State"] = "State";
	$fieldToolTipsActive_Customers["English"]["State"] = "";
	$fieldLabelsActive_Customers["English"]["Country"] = "Country";
	$fieldToolTipsActive_Customers["English"]["Country"] = "";
	$fieldLabelsActive_Customers["English"]["Postal_Code"] = "Postal Code";
	$fieldToolTipsActive_Customers["English"]["Postal Code"] = "";
	$fieldLabelsActive_Customers["English"]["Web_address"] = "Web Address";
	$fieldToolTipsActive_Customers["English"]["Web address"] = "";
	$fieldLabelsActive_Customers["English"]["Area"] = "Area";
	$fieldToolTipsActive_Customers["English"]["Area"] = "";
	$fieldLabelsActive_Customers["English"]["Customer_Category"] = "Customer Category";
	$fieldToolTipsActive_Customers["English"]["Customer_Category"] = "";
	$fieldLabelsActive_Customers["English"]["Breif_About_the_Company"] = "Breif About the Company";
	$fieldToolTipsActive_Customers["English"]["Breif About the Company"] = "";
	$fieldLabelsActive_Customers["English"]["Existing_Setup"] = "Existing Setup";
	$fieldToolTipsActive_Customers["English"]["Existing Setup"] = "";
	$fieldLabelsActive_Customers["English"]["Interaction_Summary"] = "Interaction Summary";
	$fieldToolTipsActive_Customers["English"]["Interaction Summary"] = "";
	$fieldLabelsActive_Customers["English"]["Commercial_Summary"] = "Commercial Summary";
	$fieldToolTipsActive_Customers["English"]["Commercial Summary"] = "";
	$fieldLabelsActive_Customers["English"]["Customer_Status"] = "Customer Status";
	$fieldToolTipsActive_Customers["English"]["Customer Status"] = "";
	$fieldLabelsActive_Customers["English"]["Assigned_Executive"] = "Assigned Executive";
	$fieldToolTipsActive_Customers["English"]["Assigned Executive"] = "";
	$fieldLabelsActive_Customers["English"]["Assigned_Date"] = "Assigned Date";
	$fieldToolTipsActive_Customers["English"]["Assigned Date"] = "";
	$fieldLabelsActive_Customers["English"]["Last_Updated_on"] = "Last Updated on";
	$fieldToolTipsActive_Customers["English"]["Last Updated on"] = "";
	$fieldLabelsActive_Customers["English"]["Aligned_Partner"] = "Aligned Partner";
	$fieldToolTipsActive_Customers["English"]["Aligned Partner"] = "";
	if (count($fieldToolTipsActive_Customers["English"])){
		$tdataActive_Customers[".isUseToolTips"]=true;
	}
}


	
	$tdataActive_Customers[".NCSearch"]=true;

	

$tdataActive_Customers[".shortTableName"] = "Active_Customers";
$tdataActive_Customers[".nSecOptions"] = 1;
$tdataActive_Customers[".recsPerRowList"] = 1;	
$tdataActive_Customers[".tableGroupBy"] = "0";
$tdataActive_Customers[".mainTableOwnerID"] = "Assigned Executive";
$tdataActive_Customers[".moveNext"] = 1;




$tdataActive_Customers[".showAddInPopup"] = false;

$tdataActive_Customers[".showEditInPopup"] = false;

$tdataActive_Customers[".showViewInPopup"] = false;


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

$tdataActive_Customers[".listAjax"] = false;

	$tdataActive_Customers[".audit"] = false;

	$tdataActive_Customers[".locking"] = false;
	
$tdataActive_Customers[".listIcons"] = true;
$tdataActive_Customers[".edit"] = true;
$tdataActive_Customers[".view"] = true;




$tdataActive_Customers[".showSimpleSearchOptions"] = false;

$tdataActive_Customers[".showSearchPanel"] = true;


$tdataActive_Customers[".isUseAjaxSuggest"] = true;

$tdataActive_Customers[".rowHighlite"] = true;


// button handlers file names

$tdataActive_Customers[".addPageEvents"] = false;

$tdataActive_Customers[".arrKeyFields"][] = "idCL";

// use datepicker for search panel
$tdataActive_Customers[".isUseCalendarForSearch"] = true;

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

$tdataActive_Customers[".isUseiBox"] = false;


$tdataActive_Customers[".useDetailsPreview"] = true;	


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

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

$tdataActive_Customers[".globSearchFields"][] = "Customer 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("Customer Name", $tdataActive_Customers[".allSearchFields"]))
{
	$tdataActive_Customers[".allSearchFields"][] = "Customer Name";	
}
$tdataActive_Customers[".globSearchFields"][] = "Aligned Partner";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Aligned Partner", $tdataActive_Customers[".allSearchFields"]))
{
	$tdataActive_Customers[".allSearchFields"][] = "Aligned Partner";	
}


$tdataActive_Customers[".googleLikeFields"][] = "idCL";
$tdataActive_Customers[".googleLikeFields"][] = "Customer Name";
$tdataActive_Customers[".googleLikeFields"][] = "Address";
$tdataActive_Customers[".googleLikeFields"][] = "City";
$tdataActive_Customers[".googleLikeFields"][] = "State";
$tdataActive_Customers[".googleLikeFields"][] = "Country";
$tdataActive_Customers[".googleLikeFields"][] = "Postal Code";
$tdataActive_Customers[".googleLikeFields"][] = "Region";
$tdataActive_Customers[".googleLikeFields"][] = "Area";
$tdataActive_Customers[".googleLikeFields"][] = "Web address";
$tdataActive_Customers[".googleLikeFields"][] = "Customer_Category";
$tdataActive_Customers[".googleLikeFields"][] = "Last Updated on";
$tdataActive_Customers[".googleLikeFields"][] = "Assigned Executive";
$tdataActive_Customers[".googleLikeFields"][] = "Assigned Date";
$tdataActive_Customers[".googleLikeFields"][] = "Customer Status";
$tdataActive_Customers[".googleLikeFields"][] = "Aligned Partner";
$tdataActive_Customers[".googleLikeFields"][] = "Breif About the Company";
$tdataActive_Customers[".googleLikeFields"][] = "Existing Setup";
$tdataActive_Customers[".googleLikeFields"][] = "Interaction Summary";
$tdataActive_Customers[".googleLikeFields"][] = "Commercial Summary";



$tdataActive_Customers[".advSearchFields"][] = "idCL";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("idCL", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "idCL";	
}
$tdataActive_Customers[".advSearchFields"][] = "Customer 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("Customer Name", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Customer Name";	
}
$tdataActive_Customers[".advSearchFields"][] = "Address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Address", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Address";	
}
$tdataActive_Customers[".advSearchFields"][] = "City";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("City", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "City";	
}
$tdataActive_Customers[".advSearchFields"][] = "State";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("State", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "State";	
}
$tdataActive_Customers[".advSearchFields"][] = "Country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Country", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Country";	
}
$tdataActive_Customers[".advSearchFields"][] = "Postal Code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Postal Code", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Postal Code";	
}
$tdataActive_Customers[".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", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Region";	
}
$tdataActive_Customers[".advSearchFields"][] = "Area";
// 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", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Area";	
}
$tdataActive_Customers[".advSearchFields"][] = "Web address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Web address", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Web address";	
}
$tdataActive_Customers[".advSearchFields"][] = "Customer_Category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Customer_Category", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Customer_Category";	
}
$tdataActive_Customers[".advSearchFields"][] = "Last Updated on";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Last Updated on", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Last Updated on";	
}
$tdataActive_Customers[".advSearchFields"][] = "Assigned Executive";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Assigned Executive", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Assigned Executive";	
}
$tdataActive_Customers[".advSearchFields"][] = "Assigned Date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Assigned Date", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Assigned Date";	
}
$tdataActive_Customers[".advSearchFields"][] = "Customer Status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Customer Status", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Customer Status";	
}
$tdataActive_Customers[".advSearchFields"][] = "Aligned Partner";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Aligned Partner", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Aligned Partner";	
}
$tdataActive_Customers[".advSearchFields"][] = "Breif About the Company";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Breif About the Company", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Breif About the Company";	
}
$tdataActive_Customers[".advSearchFields"][] = "Existing Setup";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Existing Setup", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Existing Setup";	
}
$tdataActive_Customers[".advSearchFields"][] = "Interaction Summary";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Interaction Summary", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Interaction Summary";	
}
$tdataActive_Customers[".advSearchFields"][] = "Commercial Summary";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Commercial Summary", $tdataActive_Customers[".allSearchFields"])) 
{
	$tdataActive_Customers[".allSearchFields"][] = "Commercial Summary";	
}

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


	

$tdataActive_Customers[".isDisplayLoading"] = true;

$tdataActive_Customers[".isResizeColumns"] = false;

	$tdataActive_Customers[".subQueriesSupAccess"] = true;




$tdataActive_Customers[".pageSize"] = 20;

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

$tdataActive_Customers[".sqlHead"] = "Select idCL,  `Customer Name`,  Address,  City,  `State`,  Country,  `Postal Code`,  `Web address`,  Area,  Customer_Category,  `Breif About the Company`,  `Existing Setup`,  `Interaction Summary`,  `Commercial Summary`,  `Customer Status`,  `Assigned Executive`,  `Assigned Date`,  `Last Updated on`,  Region,  `Aligned Partner`";
$tdataActive_Customers[".sqlFrom"] = "FROM customer_list";
$tdataActive_Customers[".sqlWhereExpr"] = "(`Customer Status` = \"Active\")";
$tdataActive_Customers[".sqlTail"] = "";

//fill array of tabs for edit page
$arrEditTabs = array();
	$tabFields = array();
	$tabFields[]="Address";
	$tabFields[]="City";
	$tabFields[]="State";
	$tabFields[]="Country";
	$tabFields[]="Postal Code";
$arrEditTabs[] = array('tabId'=>'Address_Details1',
					   'tabName'=>"Address Details",
					   'nType'=>'1',
					   'nOrder'=>3,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[]="Region";
	$tabFields[]="Area";
	$tabFields[]="Web address";
	$tabFields[]="Customer_Category";
	$tabFields[]="Last Updated on";
$arrEditTabs[] = array('tabId'=>'Other_Details1',
					   'tabName'=>"Other Details",
					   'nType'=>'1',
					   'nOrder'=>9,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[]="Breif About the Company";
$arrEditTabs[] = array('tabId'=>'About__1',
					   'tabName'=>"About..",
					   'nType'=>'0',
					   'nOrder'=>19,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[]="Existing Setup";
$arrEditTabs[] = array('tabId'=>'Existing_Setup1',
					   'tabName'=>"Existing Setup",
					   'nType'=>'0',
					   'nOrder'=>21,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[]="Interaction Summary";
$arrEditTabs[] = array('tabId'=>'Interaction_Details1',
					   'tabName'=>"Interaction Details",
					   'nType'=>'0',
					   'nOrder'=>23,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[]="Commercial Summary";
$arrEditTabs[] = array('tabId'=>'Commercial_Details1',
					   'tabName'=>"Commercial Details",
					   'nType'=>'0',
					   'nOrder'=>25,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
$tdataActive_Customers[".arrEditTabs"] = $arrEditTabs;

//fill array of tabs for add page
$arrAddTabs = array();
	$tabFields = array();
	$tabFields[] = "Address";
	$tabFields[] = "City";
	$tabFields[] = "State";
	$tabFields[] = "Country";
	$tabFields[] = "Postal Code";
$arrAddTabs[] = array('tabId'=>'Address_Details1',
					  'tabName'=>"Address Details",
					  'nType'=>'1',
					  'nOrder'=>3,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Region";
	$tabFields[] = "Area";
	$tabFields[] = "Web address";
	$tabFields[] = "Customer_Category";
	$tabFields[] = "Last Updated on";
$arrAddTabs[] = array('tabId'=>'Other_Details1',
					  'tabName'=>"Other Details",
					  'nType'=>'1',
					  'nOrder'=>9,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Breif About the Company";
$arrAddTabs[] = array('tabId'=>'About__1',
					  'tabName'=>"About..",
					  'nType'=>'0',
					  'nOrder'=>19,
					  'tabGroup'=>1,
					  'arrFields'=> $tabFields,
					  'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Existing Setup";
$arrAddTabs[] = array('tabId'=>'Existing_Setup1',
					  'tabName'=>"Existing Setup",
					  'nType'=>'0',
					  'nOrder'=>21,
					  'tabGroup'=>1,
					  'arrFields'=> $tabFields,
					  'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Interaction Summary";
$arrAddTabs[] = array('tabId'=>'Interaction_Details1',
					  'tabName'=>"Interaction Details",
					  'nType'=>'0',
					  'nOrder'=>23,
					  'tabGroup'=>1,
					  'arrFields'=> $tabFields,
					  'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Commercial Summary";
$arrAddTabs[] = array('tabId'=>'Commercial_Details1',
					  'tabName'=>"Commercial Details",
					  'nType'=>'0',
					  'nOrder'=>25,
					  'tabGroup'=>1,
					  'arrFields'=> $tabFields,
					  'expandSec'=>0);
$tdataActive_Customers[".arrAddTabs"] = $arrAddTabs;

//fill array of tabs for view page
$arrViewTabs = array();
	$tabFields = array();
	$tabFields[] = "Address";
	$tabFields[] = "City";
	$tabFields[] = "State";
	$tabFields[] = "Country";
	$tabFields[] = "Postal Code";
$arrViewTabs[] = array('tabId'=>'Address_Details1',
					   'tabName'=>"Address Details",
					   'nType'=>'1',
					   'nOrder'=>3,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Region";
	$tabFields[] = "Area";
	$tabFields[] = "Web address";
	$tabFields[] = "Customer_Category";
	$tabFields[] = "Last Updated on";
$arrViewTabs[] = array('tabId'=>'Other_Details1',
					   'tabName'=>"Other Details",
					   'nType'=>'1',
					   'nOrder'=>9,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Breif About the Company";
$arrViewTabs[] = array('tabId'=>'About__1',
					   'tabName'=>"About..",
					   'nType'=>'0',
					   'nOrder'=>19,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Existing Setup";
$arrViewTabs[] = array('tabId'=>'Existing_Setup1',
					   'tabName'=>"Existing Setup",
					   'nType'=>'0',
					   'nOrder'=>21,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Interaction Summary";
$arrViewTabs[] = array('tabId'=>'Interaction_Details1',
					   'tabName'=>"Interaction Details",
					   'nType'=>'0',
					   'nOrder'=>23,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Commercial Summary";
$arrViewTabs[] = array('tabId'=>'Commercial_Details1',
					   'tabName'=>"Commercial Details",
					   'nType'=>'0',
					   'nOrder'=>25,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
$tdataActive_Customers[".arrViewTabs"] = $arrViewTabs;

//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;
$tdataActive_Customers[".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;
$tdataActive_Customers[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "idCL";
	$tdataActive_Customers[".Keys"] = $tableKeys;

//	idCL
	$fdata = array();
	$fdata["strName"] = "idCL";
	$fdata["ownerTable"] = "customer_list";
		$fdata["Label"]="Id CL"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Readonly";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "idCL";
	
		$fdata["FullName"]= "idCL";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["idCL"]=$fdata;
//	Customer Name
	$fdata = array();
	$fdata["strName"] = "Customer Name";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Readonly";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Name";
	
		$fdata["FullName"]= "`Customer Name`";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Customer Name"]=$fdata;
//	Address
	$fdata = array();
	$fdata["strName"] = "Address";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Address";
	
		$fdata["FullName"]= "Address";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Address"]=$fdata;
//	City
	$fdata = array();
	$fdata["strName"] = "City";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "City";
	
		$fdata["FullName"]= "City";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["City"]=$fdata;
//	State
	$fdata = array();
	$fdata["strName"] = "State";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "State";
	
		$fdata["FullName"]= "`State`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["State"]=$fdata;
//	Country
	$fdata = array();
	$fdata["strName"] = "Country";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Readonly";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Country";
	
		$fdata["FullName"]= "Country";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Country"]=$fdata;
//	Postal Code
	$fdata = array();
	$fdata["strName"] = "Postal Code";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Postal_Code";
	
		$fdata["FullName"]= "`Postal Code`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=10";
		
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Postal Code"]=$fdata;
//	Web address
	$fdata = array();
	$fdata["strName"] = "Web address";
	$fdata["ownerTable"] = "customer_list";
		$fdata["Label"]="Web Address"; 
	
		
		$fdata["LinkPrefix"]="http://"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Hyperlink";
	
		
		
		
		
		
	$fdata["GoodName"]= "Web_address";
	
		$fdata["FullName"]= "`Web address`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Web address"]=$fdata;
//	Area
	$fdata = array();
	$fdata["strName"] = "Area";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$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"]="Area Name";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="Area Name";
				$fdata["LookupTable"]="area";
	$fdata["LookupOrderBy"]="Area Name";
										$fdata["UseCategory"]=true; 
	$fdata["CategoryControl"]="Region"; 
	$fdata["CategoryFilter"]="Region"; 
										
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Area";
	
		$fdata["FullName"]= "Area";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 9;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Area"]=$fdata;
//	Customer_Category
	$fdata = array();
	$fdata["strName"] = "Customer_Category";
	$fdata["ownerTable"] = "customer_list";
		$fdata["Label"]="Customer Category"; 
	
		
		
	$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"]="Customer_Category";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="Customer_Category";
				$fdata["LookupTable"]="customer_category";
	$fdata["LookupOrderBy"]="";
																			$fdata["SimpleAdd"]=true;
	
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Category";
	
		$fdata["FullName"]= "Customer_Category";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 10;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Customer_Category"]=$fdata;
//	Breif About the Company
	$fdata = array();
	$fdata["strName"] = "Breif About the Company";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "Breif_About_the_Company";
	
		$fdata["FullName"]= "`Breif About the Company`";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		$fdata["UseRTEBasic"] = true; 
	
		
		
				$fdata["Index"]= 11;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=150";
		$fdata["nRows"] = 150;
			$fdata["EditParams"].= " cols=950";
		$fdata["nCols"] = 950;
		
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Breif About the Company"]=$fdata;
//	Existing Setup
	$fdata = array();
	$fdata["strName"] = "Existing Setup";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "Existing_Setup";
	
		$fdata["FullName"]= "`Existing Setup`";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		$fdata["UseRTEBasic"] = true; 
	
		
		
				$fdata["Index"]= 12;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=150";
		$fdata["nRows"] = 150;
			$fdata["EditParams"].= " cols=950";
		$fdata["nCols"] = 950;
		
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Existing Setup"]=$fdata;
//	Interaction Summary
	$fdata = array();
	$fdata["strName"] = "Interaction Summary";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "Interaction_Summary";
	
		$fdata["FullName"]= "`Interaction Summary`";
	
		
		$fdata["UseRTE"]=true; 
	
		$fdata["UseRTEBasic"] = true; 
	
		
		
				$fdata["Index"]= 13;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=150";
		$fdata["nRows"] = 150;
			$fdata["EditParams"].= " cols=950";
		$fdata["nCols"] = 950;
		
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Interaction Summary"]=$fdata;
//	Commercial Summary
	$fdata = array();
	$fdata["strName"] = "Commercial Summary";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "Commercial_Summary";
	
		$fdata["FullName"]= "`Commercial Summary`";
	
		
		$fdata["UseRTE"]=true; 
	
		$fdata["UseRTEBasic"] = true; 
	
		
		
				$fdata["Index"]= 14;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=150";
		$fdata["nRows"] = 150;
			$fdata["EditParams"].= " cols=950";
		$fdata["nCols"] = 950;
		
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Commercial Summary"]=$fdata;
//	Customer Status
	$fdata = array();
	$fdata["strName"] = "Customer Status";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=0;
	$fdata["pLookupType"] = 0;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
									$fdata["LookupValues"]=array();
	$fdata["LookupValues"][]="Active";
	$fdata["LookupValues"][]="Review";
			
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Status";
	
		$fdata["FullName"]= "`Customer Status`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 15;
				
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Customer Status"]=$fdata;
//	Assigned Executive
	$fdata = array();
	$fdata["strName"] = "Assigned Executive";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$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"]="username";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="Full Name";
				$fdata["LookupTable"]="employee_list";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Assigned_Executive";
	
		$fdata["FullName"]= "`Assigned Executive`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 16;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Assigned Executive"]=$fdata;
//	Assigned Date
	$fdata = array();
	$fdata["strName"] = "Assigned Date";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 135;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Readonly";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Assigned_Date";
	
		$fdata["FullName"]= "`Assigned Date`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 17;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Assigned Date"]=$fdata;
//	Last Updated on
	$fdata = array();
	$fdata["strName"] = "Last Updated on";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 135;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		$fdata["ShowTime"]=true; 
	
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Last_Updated_on";
	
		$fdata["FullName"]= "`Last Updated on`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 18;
		$fdata["DateEditType"] = 11; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Last Updated on"]=$fdata;
//	Region
	$fdata = array();
	$fdata["strName"] = "Region";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$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"]="";
																			$fdata["SimpleAdd"]=true;
	
				//	dependent dropdowns	
	$fdata["DependentLookups"]=array();
	$fdata["DependentLookups"][]="Area";
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Region";
	
		$fdata["FullName"]= "Region";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 19;
				
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Region"]=$fdata;
//	Aligned Partner
	$fdata = array();
	$fdata["strName"] = "Aligned Partner";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$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"]="E-Mail";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="Company Name";
				$fdata["LookupTable"]="partner_list";
	$fdata["LookupOrderBy"]="Company Name";
																			$fdata["SimpleAdd"]=true;
	
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Aligned_Partner";
	
		$fdata["FullName"]= "`Aligned Partner`";
	
		
		
		
		
		
				$fdata["Index"]= 20;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataActive_Customers["Aligned Partner"]=$fdata;

	
$tables_data["Active Customers"]=&$tdataActive_Customers;
$field_labels["Active_Customers"] = &$fieldLabelsActive_Customers;
$fieldToolTips["Active Customers"] = &$fieldToolTipsActive_Customers;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["Active Customers"] = array();
$dIndex = 1-1;
			$strOriginalDetailsTable="cust_list_contact_person";
	$detailsTablesData["Active Customers"][$dIndex] = array(
		  "dDataSourceTable"=>"Contact Details"
		, "dOriginalTable"=>$strOriginalDetailsTable
		, "dShortTable"=>"Contact_Details"
		, "masterKeys"=>array()
		, "detailKeys"=>array()
		, "dispChildCount"=> "1"
		, "hideChild"=>"0"
		, "sqlHead"=>"SELECT idCLCP,  Name,  `Job Title`,  `Phone- Direct`,  `Phone Extn`,  Mobile,  `E-Mail`,  Notes,  `Company Name`"	
		, "sqlFrom"=>"FROM cust_list_contact_person"	
		, "sqlWhere"=>""
		, "sqlTail"=>""
		, "groupBy"=>"0"
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$detailsTablesData["Active Customers"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Active Customers"][$dIndex]["detailKeys"][]="Company Name";

$dIndex = 2-1;
			$strOriginalDetailsTable="calls";
	$detailsTablesData["Active Customers"][$dIndex] = array(
		  "dDataSourceTable"=>"Call-Details"
		, "dOriginalTable"=>$strOriginalDetailsTable
		, "dShortTable"=>"Call_Details"
		, "masterKeys"=>array()
		, "detailKeys"=>array()
		, "dispChildCount"=> "1"
		, "hideChild"=>"0"
		, "sqlHead"=>"SELECT idCalls,  `Date`,  `Call Details`,  `Executive Name`,  `Customer Name`"	
		, "sqlFrom"=>"FROM calls"	
		, "sqlWhere"=>""
		, "sqlTail"=>""
		, "groupBy"=>"0"
		, "previewOnList" => 2
		, "previewOnAdd" => 0
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$detailsTablesData["Active Customers"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Active Customers"][$dIndex]["detailKeys"][]="Customer Name";

$dIndex = 3-1;
			$strOriginalDetailsTable="visit_register";
	$detailsTablesData["Active Customers"][$dIndex] = array(
		  "dDataSourceTable"=>"Visit-Details"
		, "dOriginalTable"=>$strOriginalDetailsTable
		, "dShortTable"=>"Visit_Details"
		, "masterKeys"=>array()
		, "detailKeys"=>array()
		, "dispChildCount"=> "1"
		, "hideChild"=>"0"
		, "sqlHead"=>"SELECT idvisit_register,  `Employee Name`,  `Contact Person`,  `Purpose Of Visit`,  `MOM Summary`,  `Date Of Visit`,  `Visit Status`,  `Customer Name`"	
		, "sqlFrom"=>"FROM visit_register"	
		, "sqlWhere"=>""
		, "sqlTail"=>""
		, "groupBy"=>"0"
		, "previewOnList" => 2
		, "previewOnAdd" => 0
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$detailsTablesData["Active Customers"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Active Customers"][$dIndex]["detailKeys"][]="Customer Name";

$dIndex = 4-1;
			$strOriginalDetailsTable="lead_table";
	$detailsTablesData["Active Customers"][$dIndex] = array(
		  "dDataSourceTable"=>"Lead Details"
		, "dOriginalTable"=>$strOriginalDetailsTable
		, "dShortTable"=>"Lead_Details"
		, "masterKeys"=>array()
		, "detailKeys"=>array()
		, "dispChildCount"=> "1"
		, "hideChild"=>"0"
		, "sqlHead"=>"SELECT Leadid,  `Customer Name`,  `Contact Person`,  `Lead Details`,  `Employee Name`,  `Approx Closure Date`,  `Lead Status`,  Region,  `WIN / Lost Analysis`"	
		, "sqlFrom"=>"FROM lead_table"	
		, "sqlWhere"=>""
		, "sqlTail"=>""
		, "groupBy"=>"0"
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$detailsTablesData["Active Customers"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Active Customers"][$dIndex]["detailKeys"][]="Customer Name";


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

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

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










$proto640=array();
$proto640["m_strHead"] = "Select";
$proto640["m_strFieldList"] = "idCL,  `Customer Name`,  Address,  City,  `State`,  Country,  `Postal Code`,  `Web address`,  Area,  Customer_Category,  `Breif About the Company`,  `Existing Setup`,  `Interaction Summary`,  `Commercial Summary`,  `Customer Status`,  `Assigned Executive`,  `Assigned Date`,  `Last Updated on`,  Region,  `Aligned Partner`";
$proto640["m_strFrom"] = "FROM customer_list";
$proto640["m_strWhere"] = "(`Customer Status` = \"Active\")";
$proto640["m_strOrderBy"] = "";
$proto640["m_strTail"] = "";
$proto641=array();
$proto641["m_sql"] = "`Customer Status` = \"Active\"";
$proto641["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Customer Status",
	"m_strTable" => "customer_list"
));

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

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

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

$proto640["m_having"] = $obj;
$proto640["m_fieldlist"] = array();
						$proto645=array();
			$obj = new SQLField(array(
	"m_strName" => "idCL",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto647=array();
			$obj = new SQLField(array(
	"m_strName" => "Customer Name",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto649=array();
			$obj = new SQLField(array(
	"m_strName" => "Address",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto651=array();
			$obj = new SQLField(array(
	"m_strName" => "City",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto653=array();
			$obj = new SQLField(array(
	"m_strName" => "State",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto655=array();
			$obj = new SQLField(array(
	"m_strName" => "Country",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto657=array();
			$obj = new SQLField(array(
	"m_strName" => "Postal Code",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto659=array();
			$obj = new SQLField(array(
	"m_strName" => "Web address",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto661=array();
			$obj = new SQLField(array(
	"m_strName" => "Area",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto663=array();
			$obj = new SQLField(array(
	"m_strName" => "Customer_Category",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto665=array();
			$obj = new SQLField(array(
	"m_strName" => "Breif About the Company",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto667=array();
			$obj = new SQLField(array(
	"m_strName" => "Existing Setup",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto669=array();
			$obj = new SQLField(array(
	"m_strName" => "Interaction Summary",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto671=array();
			$obj = new SQLField(array(
	"m_strName" => "Commercial Summary",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto673=array();
			$obj = new SQLField(array(
	"m_strName" => "Customer Status",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto675=array();
			$obj = new SQLField(array(
	"m_strName" => "Assigned Executive",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto677=array();
			$obj = new SQLField(array(
	"m_strName" => "Assigned Date",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto679=array();
			$obj = new SQLField(array(
	"m_strName" => "Last Updated on",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto681=array();
			$obj = new SQLField(array(
	"m_strName" => "Region",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
						$proto683=array();
			$obj = new SQLField(array(
	"m_strName" => "Aligned Partner",
	"m_strTable" => "customer_list"
));

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

$proto640["m_fieldlist"][]=$obj;
$proto640["m_fromlist"] = array();
												$proto685=array();
$proto685["m_link"] = "SQLL_MAIN";
			$proto686=array();
$proto686["m_strName"] = "customer_list";
$proto686["m_columns"] = array();
$proto686["m_columns"][] = "idCL";
$proto686["m_columns"][] = "Created on";
$proto686["m_columns"][] = "Region";
$proto686["m_columns"][] = "Customer Name";
$proto686["m_columns"][] = "Address";
$proto686["m_columns"][] = "City";
$proto686["m_columns"][] = "State";
$proto686["m_columns"][] = "Country";
$proto686["m_columns"][] = "Postal Code";
$proto686["m_columns"][] = "Web address";
$proto686["m_columns"][] = "Area";
$proto686["m_columns"][] = "Customer_Category";
$proto686["m_columns"][] = "Breif About the Company";
$proto686["m_columns"][] = "Existing Setup";
$proto686["m_columns"][] = "Interaction Summary";
$proto686["m_columns"][] = "Commercial Summary";
$proto686["m_columns"][] = "Customer Status";
$proto686["m_columns"][] = "Assigned Executive";
$proto686["m_columns"][] = "Assigned Date";
$proto686["m_columns"][] = "Last Updated on";
$proto686["m_columns"][] = "Aligned Partner";
$obj = new SQLTable($proto686);

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

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

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

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

$queryData_Active_Customers = $obj;
$tdataActive_Customers[".sqlquery"] = $queryData_Active_Customers;

$tableEvents["Active Customers"] = new eventsBase;

?>
