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


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


	
	$tdataShort_Listed_Customers[".NCSearch"]=true;

	

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




$tdataShort_Listed_Customers[".showAddInPopup"] = false;

$tdataShort_Listed_Customers[".showEditInPopup"] = false;

$tdataShort_Listed_Customers[".showViewInPopup"] = false;


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

$tdataShort_Listed_Customers[".listAjax"] = false;

	$tdataShort_Listed_Customers[".audit"] = false;

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




$tdataShort_Listed_Customers[".showSimpleSearchOptions"] = false;

$tdataShort_Listed_Customers[".showSearchPanel"] = true;


$tdataShort_Listed_Customers[".isUseAjaxSuggest"] = true;

$tdataShort_Listed_Customers[".rowHighlite"] = true;


// button handlers file names

$tdataShort_Listed_Customers[".addPageEvents"] = false;

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

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

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

$tdataShort_Listed_Customers[".isUseiBox"] = false;


$tdataShort_Listed_Customers[".useDetailsPreview"] = true;	


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

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

$tdataShort_Listed_Customers[".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", $tdataShort_Listed_Customers[".allSearchFields"]))
{
	$tdataShort_Listed_Customers[".allSearchFields"][] = "idCL";	
}
$tdataShort_Listed_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", $tdataShort_Listed_Customers[".allSearchFields"]))
{
	$tdataShort_Listed_Customers[".allSearchFields"][] = "Customer Name";	
}
$tdataShort_Listed_Customers[".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", $tdataShort_Listed_Customers[".allSearchFields"]))
{
	$tdataShort_Listed_Customers[".allSearchFields"][] = "Area";	
}
$tdataShort_Listed_Customers[".globSearchFields"][] = "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", $tdataShort_Listed_Customers[".allSearchFields"]))
{
	$tdataShort_Listed_Customers[".allSearchFields"][] = "Customer_Category";	
}
$tdataShort_Listed_Customers[".globSearchFields"][] = "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", $tdataShort_Listed_Customers[".allSearchFields"]))
{
	$tdataShort_Listed_Customers[".allSearchFields"][] = "Assigned Date";	
}
$tdataShort_Listed_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", $tdataShort_Listed_Customers[".allSearchFields"]))
{
	$tdataShort_Listed_Customers[".allSearchFields"][] = "Aligned Partner";	
}


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



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

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


	

$tdataShort_Listed_Customers[".isDisplayLoading"] = true;

$tdataShort_Listed_Customers[".isResizeColumns"] = false;

	$tdataShort_Listed_Customers[".subQueriesSupAccess"] = true;




$tdataShort_Listed_Customers[".pageSize"] = 20;

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

$tdataShort_Listed_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`,  Region,  `Last Updated on`,  `Aligned Partner`";
$tdataShort_Listed_Customers[".sqlFrom"] = "FROM customer_list";
$tdataShort_Listed_Customers[".sqlWhereExpr"] = "(`Customer Status` = 'Shortlisted')";
$tdataShort_Listed_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[]="Web address";
	$tabFields[]="Region";
	$tabFields[]="Area";
	$tabFields[]="Customer_Category";
$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'=>'About1',
					   '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_Summary1',
					   'tabName'=>"Interaction Summary",
					   '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);
$tdataShort_Listed_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[] = "Web address";
	$tabFields[] = "Region";
	$tabFields[] = "Area";
	$tabFields[] = "Customer_Category";
$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'=>'About1',
					  '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_Summary1',
					  'tabName'=>"Interaction Summary",
					  '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);
$tdataShort_Listed_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[] = "Web address";
	$tabFields[] = "Region";
	$tabFields[] = "Area";
	$tabFields[] = "Customer_Category";
$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'=>'About1',
					   '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_Summary1',
					   'tabName'=>"Interaction Summary",
					   '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);
$tdataShort_Listed_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;
$tdataShort_Listed_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;
$tdataShort_Listed_Customers[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "idCL";
	$tdataShort_Listed_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; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_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;
	
		
				
		
		
		
			$tdataShort_Listed_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;
	
		
				
		
		
		
			$tdataShort_Listed_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;
	
		
				
		
		
		
			$tdataShort_Listed_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;
	
		
				
		
		
		
			$tdataShort_Listed_Customers["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["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 6;
				$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;
	
		
				
		
		
		
			$tdataShort_Listed_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;
	
		
				
		
		
		
			$tdataShort_Listed_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["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_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"]="";
										$fdata["UseCategory"]=true; 
	$fdata["CategoryControl"]="Region"; 
	$fdata["CategoryFilter"]="Region"; 
										
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Area";
	
		$fdata["FullName"]= "Area";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_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"]="Customer_Category";
																			$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; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_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;
	
		
				
		
		
		
			$tdataShort_Listed_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;
	
		
				
		
		
		
			$tdataShort_Listed_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["IsRequired"]=true; 
	
		$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();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_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;
	
		
				
		
		
		
			$tdataShort_Listed_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"][]="Shortlisted";
	$fdata["LookupValues"][]="Review";
	$fdata["LookupValues"][]="Active";
			
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Status";
	
		$fdata["FullName"]= "`Customer Status`";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_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"]="Full Name";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Assigned_Executive";
	
		$fdata["FullName"]= "`Assigned Executive`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 16;
				
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_Customers["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"] = 11; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_Customers["Assigned Date"]=$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"]= 18;
				
		
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_Customers["Region"]=$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"]= 19;
		$fdata["DateEditType"] = 13; 
	$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;
	
		
				
		
		
		
			$tdataShort_Listed_Customers["Last Updated on"]=$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["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataShort_Listed_Customers["Aligned Partner"]=$fdata;

	
$tables_data["Short-Listed Customers"]=&$tdataShort_Listed_Customers;
$field_labels["Short_Listed_Customers"] = &$fieldLabelsShort_Listed_Customers;
$fieldToolTips["Short-Listed Customers"] = &$fieldToolTipsShort_Listed_Customers;

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

$dIndex = 2-1;
			$strOriginalDetailsTable="calls";
	$detailsTablesData["Short-Listed Customers"][$dIndex] = array(
		  "dDataSourceTable"=>"calls"
		, "dOriginalTable"=>$strOriginalDetailsTable
		, "dShortTable"=>"calls"
		, "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" => 0
		, "previewOnAdd" => 0
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$detailsTablesData["Short-Listed Customers"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Short-Listed Customers"][$dIndex]["detailKeys"][]="Customer Name";

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

$dIndex = 4-1;
			$strOriginalDetailsTable="lead_table";
	$detailsTablesData["Short-Listed 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["Short-Listed Customers"][$dIndex]["masterKeys"][]="Customer Name";
		$detailsTablesData["Short-Listed Customers"][$dIndex]["detailKeys"][]="Customer Name";


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

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

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










$proto666=array();
$proto666["m_strHead"] = "Select";
$proto666["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`,  Region,  `Last Updated on`,  `Aligned Partner`";
$proto666["m_strFrom"] = "FROM customer_list";
$proto666["m_strWhere"] = "(`Customer Status` = 'Shortlisted')";
$proto666["m_strOrderBy"] = "";
$proto666["m_strTail"] = "";
$proto667=array();
$proto667["m_sql"] = "`Customer Status` = 'Shortlisted'";
$proto667["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Customer Status",
	"m_strTable" => "customer_list"
));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

$queryData_Short_Listed_Customers = $obj;
$tdataShort_Listed_Customers[".sqlquery"] = $queryData_Short_Listed_Customers;

$tableEvents["Short-Listed Customers"] = new eventsBase;

?>
