<?php
$tdataMy_Leads=array();
	$tdataMy_Leads[".NumberOfChars"]=80; 
	$tdataMy_Leads[".ShortName"]="My_Leads";
	$tdataMy_Leads[".OwnerID"]="Employee Name";
	$tdataMy_Leads[".OriginalTable"]="lead_table";


	
//	field labels
$fieldLabelsMy_Leads = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsMy_Leads["English"]=array();
	$fieldToolTipsMy_Leads["English"]=array();
	$fieldLabelsMy_Leads["English"]["Leadid"] = "Leadid";
	$fieldToolTipsMy_Leads["English"]["Leadid"] = "";
	$fieldLabelsMy_Leads["English"]["Customer_Name"] = "Customer Name";
	$fieldToolTipsMy_Leads["English"]["Customer Name"] = "";
	$fieldLabelsMy_Leads["English"]["Contact_Person"] = "Contact Person";
	$fieldToolTipsMy_Leads["English"]["Contact Person"] = "";
	$fieldLabelsMy_Leads["English"]["Lead_Details"] = "Lead Details";
	$fieldToolTipsMy_Leads["English"]["Lead Details"] = "";
	$fieldLabelsMy_Leads["English"]["Approx_Closure_Date"] = "Approx Closure Date";
	$fieldToolTipsMy_Leads["English"]["Approx Closure Date"] = "";
	$fieldLabelsMy_Leads["English"]["Lead_Status"] = "Lead Status";
	$fieldToolTipsMy_Leads["English"]["Lead Status"] = "";
	$fieldLabelsMy_Leads["English"]["WIN___Lost_Analysis"] = "WIN / Lost Analysis";
	$fieldToolTipsMy_Leads["English"]["WIN / Lost Analysis"] = "";
	$fieldLabelsMy_Leads["English"]["Employee_Name"] = "Employee Name";
	$fieldToolTipsMy_Leads["English"]["Employee Name"] = "";
	if (count($fieldToolTipsMy_Leads["English"])){
		$tdataMy_Leads[".isUseToolTips"]=true;
	}
}


	
	$tdataMy_Leads[".NCSearch"]=true;

	

$tdataMy_Leads[".shortTableName"] = "My_Leads";
$tdataMy_Leads[".nSecOptions"] = 1;
$tdataMy_Leads[".recsPerRowList"] = 1;	
$tdataMy_Leads[".tableGroupBy"] = "0";
$tdataMy_Leads[".mainTableOwnerID"] = "Employee Name";
$tdataMy_Leads[".moveNext"] = 1;




$tdataMy_Leads[".showAddInPopup"] = false;

$tdataMy_Leads[".showEditInPopup"] = false;

$tdataMy_Leads[".showViewInPopup"] = false;


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

$tdataMy_Leads[".listAjax"] = false;

	$tdataMy_Leads[".audit"] = false;

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




$tdataMy_Leads[".showSimpleSearchOptions"] = false;

$tdataMy_Leads[".showSearchPanel"] = true;


$tdataMy_Leads[".isUseAjaxSuggest"] = true;

$tdataMy_Leads[".rowHighlite"] = true;


// button handlers file names

$tdataMy_Leads[".addPageEvents"] = false;

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

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

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

$tdataMy_Leads[".isUseiBox"] = false;




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

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

$tdataMy_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", $tdataMy_Leads[".allSearchFields"]))
{
	$tdataMy_Leads[".allSearchFields"][] = "Leadid";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"]))
{
	$tdataMy_Leads[".allSearchFields"][] = "Customer Name";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"]))
{
	$tdataMy_Leads[".allSearchFields"][] = "Contact Person";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"]))
{
	$tdataMy_Leads[".allSearchFields"][] = "Lead Details";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"]))
{
	$tdataMy_Leads[".allSearchFields"][] = "Approx Closure Date";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"]))
{
	$tdataMy_Leads[".allSearchFields"][] = "Lead Status";	
}
$tdataMy_Leads[".globSearchFields"][] = "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", $tdataMy_Leads[".allSearchFields"]))
{
	$tdataMy_Leads[".allSearchFields"][] = "WIN / Lost Analysis";	
}


$tdataMy_Leads[".googleLikeFields"][] = "Leadid";
$tdataMy_Leads[".googleLikeFields"][] = "Customer Name";
$tdataMy_Leads[".googleLikeFields"][] = "Contact Person";
$tdataMy_Leads[".googleLikeFields"][] = "Lead Details";
$tdataMy_Leads[".googleLikeFields"][] = "Approx Closure Date";
$tdataMy_Leads[".googleLikeFields"][] = "Lead Status";
$tdataMy_Leads[".googleLikeFields"][] = "WIN / Lost Analysis";
$tdataMy_Leads[".googleLikeFields"][] = "Employee Name";



$tdataMy_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", $tdataMy_Leads[".allSearchFields"])) 
{
	$tdataMy_Leads[".allSearchFields"][] = "Leadid";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"])) 
{
	$tdataMy_Leads[".allSearchFields"][] = "Customer Name";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"])) 
{
	$tdataMy_Leads[".allSearchFields"][] = "Contact Person";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"])) 
{
	$tdataMy_Leads[".allSearchFields"][] = "Lead Details";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"])) 
{
	$tdataMy_Leads[".allSearchFields"][] = "Approx Closure Date";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"])) 
{
	$tdataMy_Leads[".allSearchFields"][] = "Lead Status";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"])) 
{
	$tdataMy_Leads[".allSearchFields"][] = "WIN / Lost Analysis";	
}
$tdataMy_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", $tdataMy_Leads[".allSearchFields"])) 
{
	$tdataMy_Leads[".allSearchFields"][] = "Employee Name";	
}

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


	

$tdataMy_Leads[".isDisplayLoading"] = true;

$tdataMy_Leads[".isResizeColumns"] = false;





$tdataMy_Leads[".pageSize"] = 5;

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

$tdataMy_Leads[".sqlHead"] = "SELECT Leadid,  `Customer Name`,  `Contact Person`,  `Lead Details`,  `Approx Closure Date`,  `Lead Status`,  `WIN / Lost Analysis`,  `Employee Name`";
$tdataMy_Leads[".sqlFrom"] = "FROM lead_table";
$tdataMy_Leads[".sqlWhereExpr"] = "`Lead Status` = \"Suspect\" OR `Lead Status` =\"Prospect\" OR `Lead Status` =\"review\" OR `Lead Status` =\"Hot\" OR `Lead Status` =\"Commit\"";
$tdataMy_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;
$tdataMy_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;
$tdataMy_Leads[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "Leadid";
	$tdataMy_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; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Leads["Leadid"]=$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"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_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"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_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"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Lead_Details";
	
		$fdata["FullName"]= "`Lead Details`";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Leads["Lead Details"]=$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"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=20";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_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"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Leads["Lead Status"]=$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"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "WIN___Lost_Analysis";
	
		$fdata["FullName"]= "`WIN / Lost Analysis`";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Leads["WIN / Lost Analysis"]=$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"]= 8;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Leads["Employee Name"]=$fdata;

	
$tables_data["My Leads"]=&$tdataMy_Leads;
$field_labels["My_Leads"] = &$fieldLabelsMy_Leads;
$fieldToolTips["My Leads"] = &$fieldToolTipsMy_Leads;

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

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

$mIndex = 1-1;
			$strOriginalDetailsTable="employee_list";
	$masterTablesData["My Leads"][$mIndex] = array(
		  "mDataSourceTable"=>"My Home"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "My_Home"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 1
	);	
		$masterTablesData["My Leads"][$mIndex]["masterKeys"][]="username";
		$masterTablesData["My Leads"][$mIndex]["detailKeys"][]="Employee Name";

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

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










$proto475=array();
$proto475["m_strHead"] = "SELECT";
$proto475["m_strFieldList"] = "Leadid,  `Customer Name`,  `Contact Person`,  `Lead Details`,  `Approx Closure Date`,  `Lead Status`,  `WIN / Lost Analysis`,  `Employee Name`";
$proto475["m_strFrom"] = "FROM lead_table";
$proto475["m_strWhere"] = "`Lead Status` = \"Suspect\" OR `Lead Status` =\"Prospect\" OR `Lead Status` =\"review\" OR `Lead Status` =\"Hot\" OR `Lead Status` =\"Commit\"";
$proto475["m_strOrderBy"] = "ORDER BY `Lead Status`";
$proto475["m_strTail"] = "";
$proto476=array();
$proto476["m_sql"] = "`Lead Status` = \"Suspect\" OR `Lead Status` =\"Prospect\" OR `Lead Status` =\"review\" OR `Lead Status` =\"Hot\" OR `Lead Status` =\"Commit\"";
$proto476["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\""
));

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

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

			$proto476["m_contained"][]=$obj;
						$proto480=array();
$proto480["m_sql"] = "`Lead Status` =\"Prospect\"";
$proto480["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

			$proto476["m_contained"][]=$obj;
						$proto482=array();
$proto482["m_sql"] = "`Lead Status` =\"review\"";
$proto482["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto475["m_fromlist"][]=$obj;
$proto475["m_groupby"] = array();
$proto475["m_orderby"] = array();
												$proto510=array();
						$obj = new SQLField(array(
	"m_strName" => "Lead Status",
	"m_strTable" => "lead_table"
));

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

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

$queryData_My_Leads = $obj;
$tdataMy_Leads[".sqlquery"] = $queryData_My_Leads;

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

?>
