<?php
$tdataPotential_Customer_List=array();
	$tdataPotential_Customer_List[".NumberOfChars"]=80; 
	$tdataPotential_Customer_List[".ShortName"]="Potential_Customer_List";
	$tdataPotential_Customer_List[".OwnerID"]="";
	$tdataPotential_Customer_List[".OriginalTable"]="customer_list";


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


	
	$tdataPotential_Customer_List[".NCSearch"]=true;

	

$tdataPotential_Customer_List[".shortTableName"] = "Potential_Customer_List";
$tdataPotential_Customer_List[".nSecOptions"] = 0;
$tdataPotential_Customer_List[".recsPerRowList"] = 1;	
$tdataPotential_Customer_List[".tableGroupBy"] = "0";
$tdataPotential_Customer_List[".mainTableOwnerID"] = "";
$tdataPotential_Customer_List[".moveNext"] = 1;




$tdataPotential_Customer_List[".showAddInPopup"] = false;

$tdataPotential_Customer_List[".showEditInPopup"] = false;

$tdataPotential_Customer_List[".showViewInPopup"] = false;


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

$tdataPotential_Customer_List[".listAjax"] = false;

	$tdataPotential_Customer_List[".audit"] = false;

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

$tdataPotential_Customer_List[".exportTo"] = true;

$tdataPotential_Customer_List[".printFriendly"] = true;


$tdataPotential_Customer_List[".showSimpleSearchOptions"] = false;

$tdataPotential_Customer_List[".showSearchPanel"] = true;


$tdataPotential_Customer_List[".isUseAjaxSuggest"] = true;

$tdataPotential_Customer_List[".rowHighlite"] = true;


// button handlers file names

$tdataPotential_Customer_List[".addPageEvents"] = false;

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

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

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

$tdataPotential_Customer_List[".isUseiBox"] = false;


$tdataPotential_Customer_List[".useDetailsPreview"] = true;	


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

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

$tdataPotential_Customer_List[".globSearchFields"][] = "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", $tdataPotential_Customer_List[".allSearchFields"]))
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "idCL";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"]))
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Customer Name";	
}
$tdataPotential_Customer_List[".globSearchFields"][] = "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", $tdataPotential_Customer_List[".allSearchFields"]))
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "City";	
}
$tdataPotential_Customer_List[".globSearchFields"][] = "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", $tdataPotential_Customer_List[".allSearchFields"]))
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Web address";	
}
$tdataPotential_Customer_List[".globSearchFields"][] = "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", $tdataPotential_Customer_List[".allSearchFields"]))
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Area";	
}
$tdataPotential_Customer_List[".globSearchFields"][] = "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", $tdataPotential_Customer_List[".allSearchFields"]))
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Customer Status";	
}
$tdataPotential_Customer_List[".globSearchFields"][] = "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", $tdataPotential_Customer_List[".allSearchFields"]))
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Assigned Executive";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"]))
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Region";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"]))
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Aligned Partner";	
}


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



$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "idCL";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Customer Name";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "City";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Address";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Web address";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "State";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Area";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Country";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Customer Status";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Postal Code";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Assigned Executive";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Region";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Aligned Partner";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Customer_Category";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Breif About the Company";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Existing Setup";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Interaction Summary";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Commercial Summary";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Assigned Date";	
}
$tdataPotential_Customer_List[".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", $tdataPotential_Customer_List[".allSearchFields"])) 
{
	$tdataPotential_Customer_List[".allSearchFields"][] = "Last Updated on";	
}

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


	

$tdataPotential_Customer_List[".isDisplayLoading"] = true;

$tdataPotential_Customer_List[".isResizeColumns"] = false;

	$tdataPotential_Customer_List[".subQueriesSupAccess"] = true;




$tdataPotential_Customer_List[".pageSize"] = 20;

$gstrOrderBy = "ORDER BY `Customer Status`";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataPotential_Customer_List[".strOrderBy"] = $gstrOrderBy;
	
$tdataPotential_Customer_List[".orderindexes"] = array();
$tdataPotential_Customer_List[".orderindexes"][] = array(15, (1 ? "ASC" : "DESC"), "`Customer Status`");

$tdataPotential_Customer_List[".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`";
$tdataPotential_Customer_List[".sqlFrom"] = "FROM customer_list";
$tdataPotential_Customer_List[".sqlWhereExpr"] = "(`Customer Status` = \"Active\" OR `Customer Status` =\"Shortlisted\")";
$tdataPotential_Customer_List[".sqlTail"] = "";



//fill array of tabs for view page
$arrViewTabs = array();
	$tabFields = array();
	$tabFields[] = "Address";
	$tabFields[] = "City";
	$tabFields[] = "State";
	$tabFields[] = "Country";
	$tabFields[] = "Postal Code";
	$tabFields[] = "Web address";
$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[] = "Customer_Category";
	$tabFields[] = "Customer Status";
	$tabFields[] = "Assigned Executive";
	$tabFields[] = "Assigned Date";
	$tabFields[] = "Last Updated on";
$arrViewTabs[] = array('tabId'=>'Other_Details1',
					   'tabName'=>"Other Details",
					   'nType'=>'1',
					   'nOrder'=>10,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Breif About the Company";
$arrViewTabs[] = array('tabId'=>'About1',
					   'tabName'=>"About",
					   'nType'=>'0',
					   'nOrder'=>18,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Existing Setup";
$arrViewTabs[] = array('tabId'=>'Existing_Setup1',
					   'tabName'=>"Existing Setup",
					   'nType'=>'0',
					   'nOrder'=>20,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Interaction Summary";
$arrViewTabs[] = array('tabId'=>'Interaction_Summary1',
					   'tabName'=>"Interaction Summary",
					   'nType'=>'0',
					   'nOrder'=>22,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
	$tabFields[] = "Commercial Summary";
$arrViewTabs[] = array('tabId'=>'Commercial_Summary1',
					   'tabName'=>"Commercial Summary",
					   'nType'=>'0',
					   'nOrder'=>24,
					   'tabGroup'=>1,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
	$tabFields = array();
$arrViewTabs[] = array('tabId'=>'New_section1',
					   'tabName'=>"New section",
					   'nType'=>'1',
					   'nOrder'=>26,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>0);
$tdataPotential_Customer_List[".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;
$tdataPotential_Customer_List[".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;
$tdataPotential_Customer_List[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "idCL";
	$tdataPotential_Customer_List[".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"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "idCL";
	
		$fdata["FullName"]= "idCL";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["idCL"]=$fdata;
//	Customer Name
	$fdata = array();
	$fdata["strName"] = "Customer Name";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Name";
	
		$fdata["FullName"]= "`Customer Name`";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Customer Name"]=$fdata;
//	Address
	$fdata = array();
	$fdata["strName"] = "Address";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Address";
	
		$fdata["FullName"]= "Address";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["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["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["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["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["State"]=$fdata;
//	Country
	$fdata = array();
	$fdata["strName"] = "Country";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Country";
	
		$fdata["FullName"]= "Country";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["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["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=10";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Postal Code"]=$fdata;
//	Web address
	$fdata = array();
	$fdata["strName"] = "Web address";
	$fdata["ownerTable"] = "customer_list";
		$fdata["Label"]="Web Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Hyperlink";
	
		
		
		
		
		
	$fdata["GoodName"]= "Web_address";
	
		$fdata["FullName"]= "`Web address`";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Web address"]=$fdata;
//	Area
	$fdata = array();
	$fdata["strName"] = "Area";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Area";
	
		$fdata["FullName"]= "Area";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["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"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Category";
	
		$fdata["FullName"]= "Customer_Category";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["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 field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Breif_About_the_Company";
	
		$fdata["FullName"]= "`Breif About the Company`";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=1000";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["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 field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Existing_Setup";
	
		$fdata["FullName"]= "`Existing Setup`";
	
		
		
		
		
		
				$fdata["Index"]= 12;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=1000";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Existing Setup"]=$fdata;
//	Interaction Summary
	$fdata = array();
	$fdata["strName"] = "Interaction Summary";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Interaction_Summary";
	
		$fdata["FullName"]= "`Interaction Summary`";
	
		
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=500";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Interaction Summary"]=$fdata;
//	Commercial Summary
	$fdata = array();
	$fdata["strName"] = "Commercial Summary";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Commercial_Summary";
	
		$fdata["FullName"]= "`Commercial Summary`";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=500";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Commercial Summary"]=$fdata;
//	Customer Status
	$fdata = array();
	$fdata["strName"] = "Customer Status";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Status";
	
		$fdata["FullName"]= "`Customer Status`";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=15";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Customer Status"]=$fdata;
//	Assigned Executive
	$fdata = array();
	$fdata["strName"] = "Assigned Executive";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Assigned_Executive";
	
		$fdata["FullName"]= "`Assigned Executive`";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Assigned Executive"]=$fdata;
//	Assigned Date
	$fdata = array();
	$fdata["strName"] = "Assigned Date";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 135;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Assigned_Date";
	
		$fdata["FullName"]= "`Assigned Date`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 17;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["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["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Last_Updated_on";
	
		$fdata["FullName"]= "`Last Updated on`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 18;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Last Updated on"]=$fdata;
//	Region
	$fdata = array();
	$fdata["strName"] = "Region";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Region";
	
		$fdata["FullName"]= "Region";
	
		
		
		
		
		
				$fdata["Index"]= 19;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Region"]=$fdata;
//	Aligned Partner
	$fdata = array();
	$fdata["strName"] = "Aligned Partner";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Aligned_Partner";
	
		$fdata["FullName"]= "`Aligned Partner`";
	
		
		
		
		
		
				$fdata["Index"]= 20;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataPotential_Customer_List["Aligned Partner"]=$fdata;

	
$tables_data["Potential Customer List"]=&$tdataPotential_Customer_List;
$field_labels["Potential_Customer_List"] = &$fieldLabelsPotential_Customer_List;
$fieldToolTips["Potential Customer List"] = &$fieldToolTipsPotential_Customer_List;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["Potential Customer List"] = array();
$dIndex = 1-1;
			$strOriginalDetailsTable="cust_list_contact_person";
	$detailsTablesData["Potential Customer List"][$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" => 0
		, "previewOnView" => 1
	);	
		$detailsTablesData["Potential Customer List"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Potential Customer List"][$dIndex]["detailKeys"][]="Company Name";

$dIndex = 2-1;
			$strOriginalDetailsTable="calls";
	$detailsTablesData["Potential Customer List"][$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" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 1
	);	
		$detailsTablesData["Potential Customer List"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Potential Customer List"][$dIndex]["detailKeys"][]="Customer Name";

$dIndex = 3-1;
			$strOriginalDetailsTable="visit_register";
	$detailsTablesData["Potential Customer List"][$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" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 1
	);	
		$detailsTablesData["Potential Customer List"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Potential Customer List"][$dIndex]["detailKeys"][]="Customer Name";

$dIndex = 4-1;
			$strOriginalDetailsTable="lead_table";
	$detailsTablesData["Potential Customer List"][$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" => 0
		, "previewOnView" => 1
	);	
		$detailsTablesData["Potential Customer List"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Potential Customer List"][$dIndex]["detailKeys"][]="Customer Name";


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

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

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










$proto393=array();
$proto393["m_strHead"] = "Select";
$proto393["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`";
$proto393["m_strFrom"] = "FROM customer_list";
$proto393["m_strWhere"] = "(`Customer Status` = \"Active\" OR `Customer Status` =\"Shortlisted\")";
$proto393["m_strOrderBy"] = "ORDER BY `Customer Status`";
$proto393["m_strTail"] = "";
$proto394=array();
$proto394["m_sql"] = "`Customer Status` = \"Active\" OR `Customer Status` =\"Shortlisted\"";
$proto394["m_uniontype"] = "SQLL_OR";
	$obj = new SQLNonParsed(array(
	"m_sql" => "`Customer Status` = \"Active\" OR `Customer Status` =\"Shortlisted\""
));

$proto394["m_column"]=$obj;
$proto394["m_contained"] = array();
						$proto396=array();
$proto396["m_sql"] = "`Customer Status` = \"Active\"";
$proto396["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Customer Status",
	"m_strTable" => "customer_list"
));

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

			$proto394["m_contained"][]=$obj;
						$proto398=array();
$proto398["m_sql"] = "`Customer Status` =\"Shortlisted\"";
$proto398["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Customer Status",
	"m_strTable" => "customer_list"
));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto393["m_fromlist"][]=$obj;
$proto393["m_groupby"] = array();
$proto393["m_orderby"] = array();
												$proto446=array();
						$obj = new SQLField(array(
	"m_strName" => "Customer Status",
	"m_strTable" => "customer_list"
));

$proto446["m_column"]=$obj;
$proto446["m_bAsc"] = 1;
$proto446["m_nColumn"] = 0;
$obj = new SQLOrderByItem($proto446);

$proto393["m_orderby"][]=$obj;					
$obj = new SQLQuery($proto393);

$queryData_Potential_Customer_List = $obj;
$tdataPotential_Customer_List[".sqlquery"] = $queryData_Potential_Customer_List;

$tableEvents["Potential Customer List"] = new eventsBase;

?>
