<?php
$tdataOpen_Leads=array();
	$tdataOpen_Leads[".NumberOfChars"]=80; 
	$tdataOpen_Leads[".ShortName"]="Open_Leads";
	$tdataOpen_Leads[".OwnerID"]="";
	$tdataOpen_Leads[".OriginalTable"]="lead_table";


	
//	field labels
$fieldLabelsOpen_Leads = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsOpen_Leads["English"]=array();
	$fieldToolTipsOpen_Leads["English"]=array();
	$fieldLabelsOpen_Leads["English"]["Leadid"] = "Leadid";
	$fieldToolTipsOpen_Leads["English"]["Leadid"] = "";
	$fieldLabelsOpen_Leads["English"]["Region"] = "Region";
	$fieldToolTipsOpen_Leads["English"]["Region"] = "";
	$fieldLabelsOpen_Leads["English"]["Customer_Name"] = "Customer Name";
	$fieldToolTipsOpen_Leads["English"]["Customer Name"] = "";
	$fieldLabelsOpen_Leads["English"]["Contact_Person"] = "Contact Person";
	$fieldToolTipsOpen_Leads["English"]["Contact Person"] = "";
	$fieldLabelsOpen_Leads["English"]["Lead_Details"] = "Lead Details";
	$fieldToolTipsOpen_Leads["English"]["Lead Details"] = "";
	$fieldLabelsOpen_Leads["English"]["Employee_Name"] = "Employee Name";
	$fieldToolTipsOpen_Leads["English"]["Employee Name"] = "";
	$fieldLabelsOpen_Leads["English"]["Approx_Closure_Date"] = "Approx Closure Date";
	$fieldToolTipsOpen_Leads["English"]["Approx Closure Date"] = "";
	$fieldLabelsOpen_Leads["English"]["Lead_Status"] = "Lead Status";
	$fieldToolTipsOpen_Leads["English"]["Lead Status"] = "";
	$fieldLabelsOpen_Leads["English"]["Requirement_Details"] = "Requirement Details";
	$fieldToolTipsOpen_Leads["English"]["Requirement Details"] = "";
	$fieldLabelsOpen_Leads["English"]["Approx_Value"] = "Approx Value";
	$fieldToolTipsOpen_Leads["English"]["Approx Value"] = "";
	$fieldLabelsOpen_Leads["English"]["First_Quote_Remarks"] = "First Quote Remarks";
	$fieldToolTipsOpen_Leads["English"]["First Quote Remarks"] = "";
	$fieldLabelsOpen_Leads["English"]["Proposed_Closure_Date"] = "Proposed Closure Date";
	$fieldToolTipsOpen_Leads["English"]["Proposed Closure Date"] = "";
	$fieldLabelsOpen_Leads["English"]["Projected_Closure_QTR"] = "Projected Closure QTR";
	$fieldToolTipsOpen_Leads["English"]["Projected Closure QTR"] = "";
	$fieldLabelsOpen_Leads["English"]["Proposed_Solution_Details"] = "Proposed Solution Details";
	$fieldToolTipsOpen_Leads["English"]["Proposed Solution Details"] = "";
	$fieldLabelsOpen_Leads["English"]["Quoted_Price"] = "Quoted Price";
	$fieldToolTipsOpen_Leads["English"]["Quoted Price"] = "";
	$fieldLabelsOpen_Leads["English"]["Final_Quote_Remarks"] = "Final Quote Remarks";
	$fieldToolTipsOpen_Leads["English"]["Final Quote Remarks"] = "";
	$fieldLabelsOpen_Leads["English"]["Discussion_Highlights"] = "Discussion Highlights";
	$fieldToolTipsOpen_Leads["English"]["Discussion Highlights"] = "";
	$fieldLabelsOpen_Leads["English"]["WIN___Lost_Analysis"] = "WIN / Lost Analysis";
	$fieldToolTipsOpen_Leads["English"]["WIN / Lost Analysis"] = "";
	$fieldLabelsOpen_Leads["English"]["Alligned_Vendor"] = "Alligned Vendor";
	$fieldToolTipsOpen_Leads["English"]["Alligned Vendor"] = "";
	if (count($fieldToolTipsOpen_Leads["English"])){
		$tdataOpen_Leads[".isUseToolTips"]=true;
	}
}


	
	$tdataOpen_Leads[".NCSearch"]=true;

	

$tdataOpen_Leads[".shortTableName"] = "Open_Leads";
$tdataOpen_Leads[".nSecOptions"] = 0;
$tdataOpen_Leads[".recsPerRowList"] = 1;	
$tdataOpen_Leads[".tableGroupBy"] = "0";
$tdataOpen_Leads[".mainTableOwnerID"] = "";
$tdataOpen_Leads[".moveNext"] = 1;




$tdataOpen_Leads[".showAddInPopup"] = false;

$tdataOpen_Leads[".showEditInPopup"] = false;

$tdataOpen_Leads[".showViewInPopup"] = false;


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

$tdataOpen_Leads[".listAjax"] = false;

	$tdataOpen_Leads[".audit"] = false;

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

$tdataOpen_Leads[".exportTo"] = true;

$tdataOpen_Leads[".printFriendly"] = true;


$tdataOpen_Leads[".showSimpleSearchOptions"] = false;

$tdataOpen_Leads[".showSearchPanel"] = true;


$tdataOpen_Leads[".isUseAjaxSuggest"] = true;

$tdataOpen_Leads[".rowHighlite"] = true;


// button handlers file names

$tdataOpen_Leads[".addPageEvents"] = false;

$tdataOpen_Leads[".arrKeyFields"][] = "Leadid";

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

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

$tdataOpen_Leads[".isUseiBox"] = false;




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

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

$tdataOpen_Leads[".globSearchFields"][] = "Leadid";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Leadid", $tdataOpen_Leads[".allSearchFields"]))
{
	$tdataOpen_Leads[".allSearchFields"][] = "Leadid";	
}
$tdataOpen_Leads[".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", $tdataOpen_Leads[".allSearchFields"]))
{
	$tdataOpen_Leads[".allSearchFields"][] = "Region";	
}
$tdataOpen_Leads[".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", $tdataOpen_Leads[".allSearchFields"]))
{
	$tdataOpen_Leads[".allSearchFields"][] = "Customer Name";	
}
$tdataOpen_Leads[".globSearchFields"][] = "Contact Person";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Contact Person", $tdataOpen_Leads[".allSearchFields"]))
{
	$tdataOpen_Leads[".allSearchFields"][] = "Contact Person";	
}
$tdataOpen_Leads[".globSearchFields"][] = "Lead Details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Lead Details", $tdataOpen_Leads[".allSearchFields"]))
{
	$tdataOpen_Leads[".allSearchFields"][] = "Lead Details";	
}
$tdataOpen_Leads[".globSearchFields"][] = "Employee 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("Employee Name", $tdataOpen_Leads[".allSearchFields"]))
{
	$tdataOpen_Leads[".allSearchFields"][] = "Employee Name";	
}
$tdataOpen_Leads[".globSearchFields"][] = "Approx Closure 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("Approx Closure Date", $tdataOpen_Leads[".allSearchFields"]))
{
	$tdataOpen_Leads[".allSearchFields"][] = "Approx Closure Date";	
}
$tdataOpen_Leads[".globSearchFields"][] = "Lead 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("Lead Status", $tdataOpen_Leads[".allSearchFields"]))
{
	$tdataOpen_Leads[".allSearchFields"][] = "Lead Status";	
}


$tdataOpen_Leads[".googleLikeFields"][] = "Leadid";
$tdataOpen_Leads[".googleLikeFields"][] = "Region";
$tdataOpen_Leads[".googleLikeFields"][] = "Customer Name";
$tdataOpen_Leads[".googleLikeFields"][] = "Contact Person";
$tdataOpen_Leads[".googleLikeFields"][] = "Lead Details";
$tdataOpen_Leads[".googleLikeFields"][] = "Employee Name";
$tdataOpen_Leads[".googleLikeFields"][] = "Approx Closure Date";
$tdataOpen_Leads[".googleLikeFields"][] = "Lead Status";
$tdataOpen_Leads[".googleLikeFields"][] = "Requirement Details";
$tdataOpen_Leads[".googleLikeFields"][] = "Approx Value";
$tdataOpen_Leads[".googleLikeFields"][] = "First Quote Remarks";
$tdataOpen_Leads[".googleLikeFields"][] = "Proposed Closure Date";
$tdataOpen_Leads[".googleLikeFields"][] = "Projected Closure QTR";
$tdataOpen_Leads[".googleLikeFields"][] = "Proposed Solution Details";
$tdataOpen_Leads[".googleLikeFields"][] = "Quoted Price";
$tdataOpen_Leads[".googleLikeFields"][] = "Final Quote Remarks";
$tdataOpen_Leads[".googleLikeFields"][] = "Discussion Highlights";
$tdataOpen_Leads[".googleLikeFields"][] = "WIN / Lost Analysis";
$tdataOpen_Leads[".googleLikeFields"][] = "Alligned Vendor";



$tdataOpen_Leads[".advSearchFields"][] = "Leadid";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Leadid", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Leadid";	
}
$tdataOpen_Leads[".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", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Region";	
}
$tdataOpen_Leads[".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", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Customer Name";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Contact Person";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Contact Person", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Contact Person";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Lead Details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Lead Details", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Lead Details";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Employee 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("Employee Name", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Employee Name";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Approx Closure 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("Approx Closure Date", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Approx Closure Date";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Lead 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("Lead Status", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Lead Status";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Requirement Details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Requirement Details", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Requirement Details";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Approx Value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Approx Value", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Approx Value";	
}
$tdataOpen_Leads[".advSearchFields"][] = "First Quote Remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("First Quote Remarks", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "First Quote Remarks";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Proposed Closure 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("Proposed Closure Date", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Proposed Closure Date";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Projected Closure QTR";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Projected Closure QTR", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Projected Closure QTR";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Proposed Solution Details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Proposed Solution Details", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Proposed Solution Details";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Quoted Price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Quoted Price", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Quoted Price";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Final Quote Remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Final Quote Remarks", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Final Quote Remarks";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Discussion Highlights";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Discussion Highlights", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Discussion Highlights";	
}
$tdataOpen_Leads[".advSearchFields"][] = "WIN / Lost Analysis";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("WIN / Lost Analysis", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "WIN / Lost Analysis";	
}
$tdataOpen_Leads[".advSearchFields"][] = "Alligned Vendor";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Alligned Vendor", $tdataOpen_Leads[".allSearchFields"])) 
{
	$tdataOpen_Leads[".allSearchFields"][] = "Alligned Vendor";	
}

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


	

$tdataOpen_Leads[".isDisplayLoading"] = true;

$tdataOpen_Leads[".isResizeColumns"] = false;




$tdataOpen_Leads[".totalsFields"][] = array("fName"=>"Leadid", "totalsType"=>"COUNT", "viewFormat"=>"");

$tdataOpen_Leads[".pageSize"] = 20;

$gstrOrderBy = "ORDER BY `Approx Closure Date`, `Lead Status`";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataOpen_Leads[".strOrderBy"] = $gstrOrderBy;
	
$tdataOpen_Leads[".orderindexes"] = array();
$tdataOpen_Leads[".orderindexes"][] = array(7, (1 ? "ASC" : "DESC"), "`Approx Closure Date`");
$tdataOpen_Leads[".orderindexes"][] = array(8, (1 ? "ASC" : "DESC"), "`Lead Status`");

$tdataOpen_Leads[".sqlHead"] = "SELECT Leadid,  Region,  `Customer Name`,  `Contact Person`,  `Lead Details`,  `Employee Name`,  `Approx Closure Date`,  `Lead Status`,  `Requirement Details`,  `Approx Value`,  `First Quote Remarks`,  `Proposed Closure Date`,  `Projected Closure QTR`,  `Proposed Solution Details`,  `Quoted Price`,  `Final Quote Remarks`,  `Discussion Highlights`,  `WIN / Lost Analysis`,  `Alligned Vendor`";
$tdataOpen_Leads[".sqlFrom"] = "FROM lead_table";
$tdataOpen_Leads[".sqlWhereExpr"] = "`Lead Status` ='Suspect' OR `Lead Status` ='prospect' OR `Lead Status` ='Review' OR `Lead Status` ='Hot' OR `Lead Status` ='Commit'";
$tdataOpen_Leads[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataOpen_Leads[".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;
$tdataOpen_Leads[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "Leadid";
	$tdataOpen_Leads[".Keys"] = $tableKeys;

//	Leadid
	$fdata = array();
	$fdata["strName"] = "Leadid";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Leadid";
	
		$fdata["FullName"]= "Leadid";
	
		$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Leadid"]=$fdata;
//	Region
	$fdata = array();
	$fdata["strName"] = "Region";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Region";
	
		$fdata["FullName"]= "Region";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Region"]=$fdata;
//	Customer Name
	$fdata = array();
	$fdata["strName"] = "Customer Name";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$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"]= 3;
				$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Customer Name"]=$fdata;
//	Contact Person
	$fdata = array();
	$fdata["strName"] = "Contact Person";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Contact_Person";
	
		$fdata["FullName"]= "`Contact Person`";
	
		
		
		
		
		
				$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Contact Person"]=$fdata;
//	Lead Details
	$fdata = array();
	$fdata["strName"] = "Lead Details";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "Lead_Details";
	
		$fdata["FullName"]= "`Lead Details`";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Lead Details"]=$fdata;
//	Employee Name
	$fdata = array();
	$fdata["strName"] = "Employee Name";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Employee_Name";
	
		$fdata["FullName"]= "`Employee Name`";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Employee Name"]=$fdata;
//	Approx Closure Date
	$fdata = array();
	$fdata["strName"] = "Approx Closure Date";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Approx_Closure_Date";
	
		$fdata["FullName"]= "`Approx Closure Date`";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=20";
		
		$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Approx Closure Date"]=$fdata;
//	Lead Status
	$fdata = array();
	$fdata["strName"] = "Lead Status";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Lead_Status";
	
		$fdata["FullName"]= "`Lead Status`";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Lead Status"]=$fdata;
//	Requirement Details
	$fdata = array();
	$fdata["strName"] = "Requirement Details";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Requirement_Details";
	
		$fdata["FullName"]= "`Requirement Details`";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataOpen_Leads["Requirement Details"]=$fdata;
//	Approx Value
	$fdata = array();
	$fdata["strName"] = "Approx Value";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Approx_Value";
	
		$fdata["FullName"]= "`Approx Value`";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataOpen_Leads["Approx Value"]=$fdata;
//	First Quote Remarks
	$fdata = array();
	$fdata["strName"] = "First Quote Remarks";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "First_Quote_Remarks";
	
		$fdata["FullName"]= "`First Quote Remarks`";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataOpen_Leads["First Quote Remarks"]=$fdata;
//	Proposed Closure Date
	$fdata = array();
	$fdata["strName"] = "Proposed Closure Date";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Proposed_Closure_Date";
	
		$fdata["FullName"]= "`Proposed Closure Date`";
	
		
		
		
		
		
				$fdata["Index"]= 12;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=20";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataOpen_Leads["Proposed Closure Date"]=$fdata;
//	Projected Closure QTR
	$fdata = array();
	$fdata["strName"] = "Projected Closure QTR";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Projected_Closure_QTR";
	
		$fdata["FullName"]= "`Projected Closure QTR`";
	
		
		
		
		
		
				$fdata["Index"]= 13;
				$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Projected Closure QTR"]=$fdata;
//	Proposed Solution Details
	$fdata = array();
	$fdata["strName"] = "Proposed Solution Details";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Proposed_Solution_Details";
	
		$fdata["FullName"]= "`Proposed Solution Details`";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataOpen_Leads["Proposed Solution Details"]=$fdata;
//	Quoted Price
	$fdata = array();
	$fdata["strName"] = "Quoted Price";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Quoted_Price";
	
		$fdata["FullName"]= "`Quoted Price`";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataOpen_Leads["Quoted Price"]=$fdata;
//	Final Quote Remarks
	$fdata = array();
	$fdata["strName"] = "Final Quote Remarks";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Final_Quote_Remarks";
	
		$fdata["FullName"]= "`Final Quote Remarks`";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataOpen_Leads["Final Quote Remarks"]=$fdata;
//	Discussion Highlights
	$fdata = array();
	$fdata["strName"] = "Discussion Highlights";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "Discussion_Highlights";
	
		$fdata["FullName"]= "`Discussion Highlights`";
	
		
		
		
		
		
				$fdata["Index"]= 17;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataOpen_Leads["Discussion Highlights"]=$fdata;
//	WIN / Lost Analysis
	$fdata = array();
	$fdata["strName"] = "WIN / Lost Analysis";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "WIN___Lost_Analysis";
	
		$fdata["FullName"]= "`WIN / Lost Analysis`";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataOpen_Leads["WIN / Lost Analysis"]=$fdata;
//	Alligned Vendor
	$fdata = array();
	$fdata["strName"] = "Alligned Vendor";
	$fdata["ownerTable"] = "lead_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Alligned_Vendor";
	
		$fdata["FullName"]= "`Alligned Vendor`";
	
		
		
		
		
		
				$fdata["Index"]= 19;
				$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;
	
		
				
		
		
		
			$tdataOpen_Leads["Alligned Vendor"]=$fdata;

	
$tables_data["Open Leads"]=&$tdataOpen_Leads;
$field_labels["Open_Leads"] = &$fieldLabelsOpen_Leads;
$fieldToolTips["Open Leads"] = &$fieldToolTipsOpen_Leads;

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

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

$mIndex = 1-1;
			$strOriginalDetailsTable="vendor_list";
	$masterTablesData["Open Leads"][$mIndex] = array(
		  "mDataSourceTable"=>"Vendor Details"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "Vendor_Details"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 0
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 1
	);	
		$masterTablesData["Open Leads"][$mIndex]["masterKeys"][]="Vendor Name";
		$masterTablesData["Open Leads"][$mIndex]["detailKeys"][]="Alligned Vendor";

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

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










$proto285=array();
$proto285["m_strHead"] = "SELECT";
$proto285["m_strFieldList"] = "Leadid,  Region,  `Customer Name`,  `Contact Person`,  `Lead Details`,  `Employee Name`,  `Approx Closure Date`,  `Lead Status`,  `Requirement Details`,  `Approx Value`,  `First Quote Remarks`,  `Proposed Closure Date`,  `Projected Closure QTR`,  `Proposed Solution Details`,  `Quoted Price`,  `Final Quote Remarks`,  `Discussion Highlights`,  `WIN / Lost Analysis`,  `Alligned Vendor`";
$proto285["m_strFrom"] = "FROM lead_table";
$proto285["m_strWhere"] = "`Lead Status` ='Suspect' OR `Lead Status` ='prospect' OR `Lead Status` ='Review' OR `Lead Status` ='Hot' OR `Lead Status` ='Commit'";
$proto285["m_strOrderBy"] = "ORDER BY `Approx Closure Date`, `Lead Status`";
$proto285["m_strTail"] = "";
$proto286=array();
$proto286["m_sql"] = "`Lead Status` ='Suspect' OR `Lead Status` ='prospect' OR `Lead Status` ='Review' OR `Lead Status` ='Hot' OR `Lead Status` ='Commit'";
$proto286["m_uniontype"] = "SQLL_OR";
	$obj = new SQLNonParsed(array(
	"m_sql" => "`Lead Status` ='Suspect' OR `Lead Status` ='prospect' OR `Lead Status` ='Review' OR `Lead Status` ='Hot' OR `Lead Status` ='Commit'"
));

$proto286["m_column"]=$obj;
$proto286["m_contained"] = array();
						$proto288=array();
$proto288["m_sql"] = "`Lead Status` ='Suspect'";
$proto288["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

			$proto286["m_contained"][]=$obj;
						$proto290=array();
$proto290["m_sql"] = "`Lead Status` ='prospect'";
$proto290["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

			$proto286["m_contained"][]=$obj;
						$proto292=array();
$proto292["m_sql"] = "`Lead Status` ='Review'";
$proto292["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

			$proto286["m_contained"][]=$obj;
						$proto294=array();
$proto294["m_sql"] = "`Lead Status` ='Hot'";
$proto294["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

			$proto286["m_contained"][]=$obj;
						$proto296=array();
$proto296["m_sql"] = "`Lead Status` ='Commit'";
$proto296["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

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

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

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

$proto285["m_having"] = $obj;
$proto285["m_fieldlist"] = array();
						$proto300=array();
			$obj = new SQLField(array(
	"m_strName" => "Leadid",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto302=array();
			$obj = new SQLField(array(
	"m_strName" => "Region",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto304=array();
			$obj = new SQLField(array(
	"m_strName" => "Customer Name",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto306=array();
			$obj = new SQLField(array(
	"m_strName" => "Contact Person",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto308=array();
			$obj = new SQLField(array(
	"m_strName" => "Lead Details",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto310=array();
			$obj = new SQLField(array(
	"m_strName" => "Employee Name",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto312=array();
			$obj = new SQLField(array(
	"m_strName" => "Approx Closure Date",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto314=array();
			$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto316=array();
			$obj = new SQLField(array(
	"m_strName" => "Requirement Details",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto318=array();
			$obj = new SQLField(array(
	"m_strName" => "Approx Value",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto320=array();
			$obj = new SQLField(array(
	"m_strName" => "First Quote Remarks",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto322=array();
			$obj = new SQLField(array(
	"m_strName" => "Proposed Closure Date",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto324=array();
			$obj = new SQLField(array(
	"m_strName" => "Projected Closure QTR",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto326=array();
			$obj = new SQLField(array(
	"m_strName" => "Proposed Solution Details",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto328=array();
			$obj = new SQLField(array(
	"m_strName" => "Quoted Price",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto330=array();
			$obj = new SQLField(array(
	"m_strName" => "Final Quote Remarks",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto332=array();
			$obj = new SQLField(array(
	"m_strName" => "Discussion Highlights",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto334=array();
			$obj = new SQLField(array(
	"m_strName" => "WIN / Lost Analysis",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
						$proto336=array();
			$obj = new SQLField(array(
	"m_strName" => "Alligned Vendor",
	"m_strTable" => "lead_table"
));

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

$proto285["m_fieldlist"][]=$obj;
$proto285["m_fromlist"] = array();
												$proto338=array();
$proto338["m_link"] = "SQLL_MAIN";
			$proto339=array();
$proto339["m_strName"] = "lead_table";
$proto339["m_columns"] = array();
$proto339["m_columns"][] = "Leadid";
$proto339["m_columns"][] = "Region";
$proto339["m_columns"][] = "Customer Name";
$proto339["m_columns"][] = "Contact Person";
$proto339["m_columns"][] = "Lead Details";
$proto339["m_columns"][] = "Employee Name";
$proto339["m_columns"][] = "Approx Closure Date";
$proto339["m_columns"][] = "Lead Status";
$proto339["m_columns"][] = "Manager Name";
$proto339["m_columns"][] = "Manager Remarks";
$proto339["m_columns"][] = "Sales Call Status";
$proto339["m_columns"][] = "Lead Level";
$proto339["m_columns"][] = "Requirement Details";
$proto339["m_columns"][] = "Approx Value";
$proto339["m_columns"][] = "First Quote Remarks";
$proto339["m_columns"][] = "Proposed Closure Date";
$proto339["m_columns"][] = "Projected Closure QTR";
$proto339["m_columns"][] = "Proposed Solution Details";
$proto339["m_columns"][] = "Quoted Price";
$proto339["m_columns"][] = "Final Quote Remarks";
$proto339["m_columns"][] = "Discussion Highlights";
$proto339["m_columns"][] = "WIN / Lost Analysis";
$proto339["m_columns"][] = "Alligned Vendor";
$obj = new SQLTable($proto339);

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

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

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

$proto285["m_fromlist"][]=$obj;
$proto285["m_groupby"] = array();
$proto285["m_orderby"] = array();
												$proto342=array();
						$obj = new SQLField(array(
	"m_strName" => "Approx Closure Date",
	"m_strTable" => "lead_table"
));

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

$proto285["m_orderby"][]=$obj;					
												$proto344=array();
						$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

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

$queryData_Open_Leads = $obj;
$tdataOpen_Leads[".sqlquery"] = $queryData_Open_Leads;

$tableEvents["Open Leads"] = new eventsBase;

?>
