<?php
$tdatastatistic_query_chart = array();
$tdatastatistic_query_chart[".searchableFields"] = array();
$tdatastatistic_query_chart[".ShortName"] = "statistic_query_chart";
$tdatastatistic_query_chart[".OwnerID"] = "";
$tdatastatistic_query_chart[".OriginalTable"] = "statistic_query";


$tdatastatistic_query_chart[".pagesByType"] = my_json_decode( "{\"chart\":[\"chart\"],\"search\":[\"search\"]}" );
$tdatastatistic_query_chart[".originalPagesByType"] = $tdatastatistic_query_chart[".pagesByType"];
$tdatastatistic_query_chart[".pages"] = types2pages( my_json_decode( "{\"chart\":[\"chart\"],\"search\":[\"search\"]}" ) );
$tdatastatistic_query_chart[".originalPages"] = $tdatastatistic_query_chart[".pages"];
$tdatastatistic_query_chart[".defaultPages"] = my_json_decode( "{\"chart\":\"chart\",\"search\":\"search\"}" );
$tdatastatistic_query_chart[".originalDefaultPages"] = $tdatastatistic_query_chart[".defaultPages"];

//	field labels
$fieldLabelsstatistic_query_chart = array();
$fieldToolTipsstatistic_query_chart = array();
$pageTitlesstatistic_query_chart = array();
$placeHoldersstatistic_query_chart = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsstatistic_query_chart["English"] = array();
	$fieldToolTipsstatistic_query_chart["English"] = array();
	$placeHoldersstatistic_query_chart["English"] = array();
	$pageTitlesstatistic_query_chart["English"] = array();
	$fieldLabelsstatistic_query_chart["English"]["not_V"] = "الناخبون";
	$fieldToolTipsstatistic_query_chart["English"]["not_V"] = "";
	$placeHoldersstatistic_query_chart["English"]["not_V"] = "";
	$fieldLabelsstatistic_query_chart["English"]["V"] = "عدد المقترعين";
	$fieldToolTipsstatistic_query_chart["English"]["V"] = "";
	$placeHoldersstatistic_query_chart["English"]["V"] = "";
	$fieldLabelsstatistic_query_chart["English"]["Total"] = "المجموع";
	$fieldToolTipsstatistic_query_chart["English"]["Total"] = "";
	$placeHoldersstatistic_query_chart["English"]["Total"] = "";
	$fieldLabelsstatistic_query_chart["English"]["Percentage"] = "% نسبة الأقتراع";
	$fieldToolTipsstatistic_query_chart["English"]["Percentage"] = "";
	$placeHoldersstatistic_query_chart["English"]["Percentage"] = "";
	$fieldLabelsstatistic_query_chart["English"]["v_ma3"] = "إقترع مع";
	$fieldToolTipsstatistic_query_chart["English"]["v_ma3"] = "";
	$placeHoldersstatistic_query_chart["English"]["v_ma3"] = "";
	$fieldLabelsstatistic_query_chart["English"]["v_dod"] = "إقترع ضد";
	$fieldToolTipsstatistic_query_chart["English"]["v_dod"] = "";
	$placeHoldersstatistic_query_chart["English"]["v_dod"] = "";
	$fieldLabelsstatistic_query_chart["English"]["v_tachkil"] = "إقترع تشكيل";
	$fieldToolTipsstatistic_query_chart["English"]["v_tachkil"] = "";
	$placeHoldersstatistic_query_chart["English"]["v_tachkil"] = "";
	$fieldLabelsstatistic_query_chart["English"]["v_majhoul"] = "إقترع مجهول";
	$fieldToolTipsstatistic_query_chart["English"]["v_majhoul"] = "";
	$placeHoldersstatistic_query_chart["English"]["v_majhoul"] = "";
	$fieldLabelsstatistic_query_chart["English"]["nv_ma3"] = "لم يقترع - مع";
	$fieldToolTipsstatistic_query_chart["English"]["nv_ma3"] = "";
	$placeHoldersstatistic_query_chart["English"]["nv_ma3"] = "";
	$fieldLabelsstatistic_query_chart["English"]["nv_dod"] = "لم يقترع - ضد";
	$fieldToolTipsstatistic_query_chart["English"]["nv_dod"] = "";
	$placeHoldersstatistic_query_chart["English"]["nv_dod"] = "";
	$fieldLabelsstatistic_query_chart["English"]["nv_tachkil"] = "لم يقترع - تشكيل";
	$fieldToolTipsstatistic_query_chart["English"]["nv_tachkil"] = "";
	$placeHoldersstatistic_query_chart["English"]["nv_tachkil"] = "";
	$fieldLabelsstatistic_query_chart["English"]["nv_majhoul"] = "لم يقترع - مجهول";
	$fieldToolTipsstatistic_query_chart["English"]["nv_majhoul"] = "";
	$placeHoldersstatistic_query_chart["English"]["nv_majhoul"] = "";
	$fieldLabelsstatistic_query_chart["English"]["regionCase"] = "القلم";
	$fieldToolTipsstatistic_query_chart["English"]["regionCase"] = "";
	$placeHoldersstatistic_query_chart["English"]["regionCase"] = "";
	if (count($fieldToolTipsstatistic_query_chart["English"]))
		$tdatastatistic_query_chart[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="Arabic")
{
	$fieldLabelsstatistic_query_chart["Arabic"] = array();
	$fieldToolTipsstatistic_query_chart["Arabic"] = array();
	$placeHoldersstatistic_query_chart["Arabic"] = array();
	$pageTitlesstatistic_query_chart["Arabic"] = array();
	$fieldLabelsstatistic_query_chart["Arabic"]["regionCase"] = "Region Case";
	$fieldToolTipsstatistic_query_chart["Arabic"]["regionCase"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["regionCase"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["not_V"] = "Not V";
	$fieldToolTipsstatistic_query_chart["Arabic"]["not_V"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["not_V"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["V"] = "V";
	$fieldToolTipsstatistic_query_chart["Arabic"]["V"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["V"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["Total"] = "Total";
	$fieldToolTipsstatistic_query_chart["Arabic"]["Total"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["Total"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["Percentage"] = "Percentage";
	$fieldToolTipsstatistic_query_chart["Arabic"]["Percentage"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["Percentage"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["v_ma3"] = "V Ma3";
	$fieldToolTipsstatistic_query_chart["Arabic"]["v_ma3"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["v_ma3"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["v_dod"] = "V Dod";
	$fieldToolTipsstatistic_query_chart["Arabic"]["v_dod"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["v_dod"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["v_tachkil"] = "V Tachkil";
	$fieldToolTipsstatistic_query_chart["Arabic"]["v_tachkil"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["v_tachkil"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["v_majhoul"] = "V Majhoul";
	$fieldToolTipsstatistic_query_chart["Arabic"]["v_majhoul"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["v_majhoul"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["nv_ma3"] = "Nv Ma3";
	$fieldToolTipsstatistic_query_chart["Arabic"]["nv_ma3"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["nv_ma3"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["nv_dod"] = "Nv Dod";
	$fieldToolTipsstatistic_query_chart["Arabic"]["nv_dod"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["nv_dod"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["nv_tachkil"] = "Nv Tachkil";
	$fieldToolTipsstatistic_query_chart["Arabic"]["nv_tachkil"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["nv_tachkil"] = "";
	$fieldLabelsstatistic_query_chart["Arabic"]["nv_majhoul"] = "Nv Majhoul";
	$fieldToolTipsstatistic_query_chart["Arabic"]["nv_majhoul"] = "";
	$placeHoldersstatistic_query_chart["Arabic"]["nv_majhoul"] = "";
	if (count($fieldToolTipsstatistic_query_chart["Arabic"]))
		$tdatastatistic_query_chart[".isUseToolTips"] = true;
}


	$tdatastatistic_query_chart[".NCSearch"] = true;

	$tdatastatistic_query_chart[".ChartRefreshTime"] = 0;


$tdatastatistic_query_chart[".shortTableName"] = "statistic_query_chart";
$tdatastatistic_query_chart[".nSecOptions"] = 0;

$tdatastatistic_query_chart[".mainTableOwnerID"] = "";
$tdatastatistic_query_chart[".entityType"] = 3;
$tdatastatistic_query_chart[".connId"] = "electiondb_at_ssl_localhost";


$tdatastatistic_query_chart[".strOriginalTableName"] = "statistic_query";

	



$tdatastatistic_query_chart[".showAddInPopup"] = false;

$tdatastatistic_query_chart[".showEditInPopup"] = false;

$tdatastatistic_query_chart[".showViewInPopup"] = false;

//page's base css files names
$popupPagesLayoutNames = array();
$tdatastatistic_query_chart[".popupPagesLayoutNames"] = $popupPagesLayoutNames;


$tdatastatistic_query_chart[".listAjax"] = false;
//	temporary
$tdatastatistic_query_chart[".listAjax"] = false;

	$tdatastatistic_query_chart[".audit"] = false;

	$tdatastatistic_query_chart[".locking"] = false;


$pages = $tdatastatistic_query_chart[".defaultPages"];

if( $pages[PAGE_EDIT] ) {
	$tdatastatistic_query_chart[".edit"] = true;
	$tdatastatistic_query_chart[".afterEditAction"] = 1;
	$tdatastatistic_query_chart[".closePopupAfterEdit"] = 1;
	$tdatastatistic_query_chart[".afterEditActionDetTable"] = "";
}

if( $pages[PAGE_ADD] ) {
$tdatastatistic_query_chart[".add"] = true;
$tdatastatistic_query_chart[".afterAddAction"] = 1;
$tdatastatistic_query_chart[".closePopupAfterAdd"] = 1;
$tdatastatistic_query_chart[".afterAddActionDetTable"] = "";
}

if( $pages[PAGE_LIST] ) {
	$tdatastatistic_query_chart[".list"] = true;
}



$tdatastatistic_query_chart[".strSortControlSettingsJSON"] = "";




if( $pages[PAGE_VIEW] ) {
$tdatastatistic_query_chart[".view"] = true;
}

if( $pages[PAGE_IMPORT] ) {
$tdatastatistic_query_chart[".import"] = true;
}

if( $pages[PAGE_EXPORT] ) {
$tdatastatistic_query_chart[".exportTo"] = true;
}

if( $pages[PAGE_PRINT] ) {
$tdatastatistic_query_chart[".printFriendly"] = true;
}



$tdatastatistic_query_chart[".showSimpleSearchOptions"] = true; // temp fix #13449

// Allow Show/Hide Fields in GRID
$tdatastatistic_query_chart[".allowShowHideFields"] = true; // temp fix #13449
//

// Allow Fields Reordering in GRID
$tdatastatistic_query_chart[".allowFieldsReordering"] = true; // temp fix #13449
//

$tdatastatistic_query_chart[".isUseAjaxSuggest"] = true;






$tdatastatistic_query_chart[".ajaxCodeSnippetAdded"] = false;

$tdatastatistic_query_chart[".buttonsAdded"] = false;

$tdatastatistic_query_chart[".addPageEvents"] = false;

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


$tdatastatistic_query_chart[".badgeColor"] = "BC8F8F";


$tdatastatistic_query_chart[".allSearchFields"] = array();
$tdatastatistic_query_chart[".filterFields"] = array();
$tdatastatistic_query_chart[".requiredSearchFields"] = array();

$tdatastatistic_query_chart[".googleLikeFields"] = array();
$tdatastatistic_query_chart[".googleLikeFields"][] = "regionCase";
$tdatastatistic_query_chart[".googleLikeFields"][] = "not V";
$tdatastatistic_query_chart[".googleLikeFields"][] = "V";
$tdatastatistic_query_chart[".googleLikeFields"][] = "Total";
$tdatastatistic_query_chart[".googleLikeFields"][] = "Percentage";
$tdatastatistic_query_chart[".googleLikeFields"][] = "v ma3";
$tdatastatistic_query_chart[".googleLikeFields"][] = "v dod";
$tdatastatistic_query_chart[".googleLikeFields"][] = "v tachkil";
$tdatastatistic_query_chart[".googleLikeFields"][] = "v majhoul";
$tdatastatistic_query_chart[".googleLikeFields"][] = "nv ma3";
$tdatastatistic_query_chart[".googleLikeFields"][] = "nv dod";
$tdatastatistic_query_chart[".googleLikeFields"][] = "nv tachkil";
$tdatastatistic_query_chart[".googleLikeFields"][] = "nv majhoul";



$tdatastatistic_query_chart[".tableType"] = "chart";

$tdatastatistic_query_chart[".printerPageOrientation"] = 0;
$tdatastatistic_query_chart[".nPrinterPageScale"] = 100;

$tdatastatistic_query_chart[".nPrinterSplitRecords"] = 40;

$tdatastatistic_query_chart[".geocodingEnabled"] = false;



// chart settings
$tdatastatistic_query_chart[".chartType"] = "Combined";
// end of chart settings








$tstrOrderBy = "";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatastatistic_query_chart[".strOrderBy"] = $tstrOrderBy;

$tdatastatistic_query_chart[".orderindexes"] = array();


$tdatastatistic_query_chart[".sqlHead"] = "SELECT CONCAT(Region,' ', numRegion) as regionCase,  	`not V`,  	V,  	Total,  	Percentage,  	`v ma3`,  	`v dod`,  	`v tachkil`,  	`v majhoul`,  	`nv ma3`,  	`nv dod`,  	`nv tachkil`,  	`nv majhoul`";
$tdatastatistic_query_chart[".sqlFrom"] = "FROM statistic_query";
$tdatastatistic_query_chart[".sqlWhereExpr"] = "";
$tdatastatistic_query_chart[".sqlTail"] = "";

//fill array of tabs for list page
$arrGridTabs = array();
$arrGridTabs[] = array(
	'tabId' => "",
	'name' => "All data",
	'nameType' => 'Text',
	'where' => "",
	'showRowCount' => 0,
	'hideEmpty' => 0,
);
$tdatastatistic_query_chart[".arrGridTabs"] = $arrGridTabs;









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

$tdatastatistic_query_chart[".highlightSearchResults"] = true;

$tableKeysstatistic_query_chart = array();
$tdatastatistic_query_chart[".Keys"] = $tableKeysstatistic_query_chart;


$tdatastatistic_query_chart[".hideMobileList"] = array();




//	regionCase
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "regionCase";
	$fdata["GoodName"] = "regionCase";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","regionCase");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "regionCase";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "CONCAT(Region,' ', numRegion)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["regionCase"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "regionCase";
//	not V
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "not V";
	$fdata["GoodName"] = "not_V";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","not_V");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "not V";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`not V`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["not V"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "not V";
//	V
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "V";
	$fdata["GoodName"] = "V";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","V");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "V";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "V";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["V"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "V";
//	Total
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "Total";
	$fdata["GoodName"] = "Total";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","Total");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "Total";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "Total";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["Total"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "Total";
//	Percentage
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "Percentage";
	$fdata["GoodName"] = "Percentage";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","Percentage");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "Percentage";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "Percentage";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["Percentage"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "Percentage";
//	v ma3
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "v ma3";
	$fdata["GoodName"] = "v_ma3";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","v_ma3");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "v ma3";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`v ma3`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["v ma3"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "v ma3";
//	v dod
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "v dod";
	$fdata["GoodName"] = "v_dod";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","v_dod");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "v dod";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`v dod`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["v dod"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "v dod";
//	v tachkil
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "v tachkil";
	$fdata["GoodName"] = "v_tachkil";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","v_tachkil");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "v tachkil";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`v tachkil`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["v tachkil"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "v tachkil";
//	v majhoul
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "v majhoul";
	$fdata["GoodName"] = "v_majhoul";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","v_majhoul");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "v majhoul";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`v majhoul`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["v majhoul"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "v majhoul";
//	nv ma3
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "nv ma3";
	$fdata["GoodName"] = "nv_ma3";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","nv_ma3");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "nv ma3";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`nv ma3`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["nv ma3"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "nv ma3";
//	nv dod
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "nv dod";
	$fdata["GoodName"] = "nv_dod";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","nv_dod");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "nv dod";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`nv dod`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["nv dod"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "nv dod";
//	nv tachkil
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "nv tachkil";
	$fdata["GoodName"] = "nv_tachkil";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","nv_tachkil");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "nv tachkil";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`nv tachkil`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["nv tachkil"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "nv tachkil";
//	nv majhoul
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "nv majhoul";
	$fdata["GoodName"] = "nv_majhoul";
	$fdata["ownerTable"] = "statistic_query";
	$fdata["Label"] = GetFieldLabel("statistic_query_Chart","nv_majhoul");
	$fdata["FieldType"] = 20;

	
	
	
			

		$fdata["strField"] = "nv majhoul";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`nv majhoul`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["chart"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatastatistic_query_chart["nv majhoul"] = $fdata;
		$tdatastatistic_query_chart[".searchableFields"][] = "nv majhoul";

$tdatastatistic_query_chart[".groupChart"] = true;
$tdatastatistic_query_chart[".chartLabelInterval"] = 0;
$tdatastatistic_query_chart[".chartLabelField"] = "regionCase";
$tdatastatistic_query_chart[".chartSeries"] = array();
$tdatastatistic_query_chart[".chartSeries"][] = array( 
	"field" => "Percentage",
	"total" => "AVG"
);
$tdatastatistic_query_chart[".chartSeries"][] = array( 
	"field" => "v ma3",
	"total" => "SUM"
);
$tdatastatistic_query_chart[".chartSeries"][] = array( 
	"field" => "v dod",
	"total" => "SUM"
);
$tdatastatistic_query_chart[".chartSeries"][] = array( 
	"field" => "v tachkil",
	"total" => "SUM"
);
$tdatastatistic_query_chart[".chartSeries"][] = array( 
	"field" => "v majhoul",
	"total" => "SUM"
);
	$tdatastatistic_query_chart[".chartXml"] = '<chart>
		<attr value="tables">
			<attr value="0">statistic_query Chart</attr>
		</attr>
		<attr value="chart_type">
			<attr value="type">combined</attr>
		</attr>

		<attr value="parameters">';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="0">
			<attr value="name">Percentage</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="1">
			<attr value="name">v ma3</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="2">
			<attr value="name">v dod</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="3">
			<attr value="name">v tachkil</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="4">
			<attr value="name">v majhoul</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="5">
		<attr value="name">regionCase</attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '</attr>
			<attr value="appearance">';


	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="head">'.xmlencode("عدد المقترعين - رسم بياني").'</attr>
<attr value="foot">'.xmlencode("").'</attr>
<attr value="y_axis_label">'.xmlencode("الأقلام").'</attr>


<attr value="slegend">true</attr>
<attr value="sgrid">true</attr>
<attr value="sname">true</attr>
<attr value="sval">true</attr>
<attr value="sanim">true</attr>
<attr value="sstacked">false</attr>
<attr value="slog">true</attr>
<attr value="aqua">0</attr>
<attr value="cview">0</attr>
<attr value="is3d">0</attr>
<attr value="isstacked">0</attr>
<attr value="linestyle">0</attr>
<attr value="autoupdate">0</attr>
<attr value="autoupmin">60</attr>';
$tdatastatistic_query_chart[".chartXml"] .= '</attr>

<attr value="fields">';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="0">
		<attr value="name">regionCase</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","regionCase")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="1">
		<attr value="name">not V</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","not_V")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="2">
		<attr value="name">V</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","V")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="3">
		<attr value="name">Total</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","Total")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="4">
		<attr value="name">Percentage</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","Percentage")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="5">
		<attr value="name">v ma3</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","v_ma3")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="6">
		<attr value="name">v dod</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","v_dod")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="7">
		<attr value="name">v tachkil</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","v_tachkil")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="8">
		<attr value="name">v majhoul</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","v_majhoul")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="9">
		<attr value="name">nv ma3</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","nv_ma3")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="10">
		<attr value="name">nv dod</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","nv_dod")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="11">
		<attr value="name">nv tachkil</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","nv_tachkil")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistic_query_chart[".chartXml"] .= '<attr value="12">
		<attr value="name">nv majhoul</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistic_query_Chart","nv_majhoul")).'</attr>
		<attr value="search"></attr>
	</attr>';
$tdatastatistic_query_chart[".chartXml"] .= '</attr>


<attr value="settings">
<attr value="name">statistic_query Chart</attr>
<attr value="short_table_name">statistic_query_chart</attr>
</attr>

</chart>';

$tables_data["statistic_query Chart"]=&$tdatastatistic_query_chart;
$field_labels["statistic_query_Chart"] = &$fieldLabelsstatistic_query_chart;
$fieldToolTips["statistic_query_Chart"] = &$fieldToolTipsstatistic_query_chart;
$placeHolders["statistic_query_Chart"] = &$placeHoldersstatistic_query_chart;
$page_titles["statistic_query_Chart"] = &$pageTitlesstatistic_query_chart;

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

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



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



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











function createSqlQuery_statistic_query_chart()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "CONCAT(Region,' ', numRegion) as regionCase,  	`not V`,  	V,  	Total,  	Percentage,  	`v ma3`,  	`v dod`,  	`v tachkil`,  	`v majhoul`,  	`nv ma3`,  	`nv dod`,  	`nv tachkil`,  	`nv majhoul`";
$proto0["m_strFrom"] = "FROM statistic_query";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto6=array();
			$proto7=array();
$proto7["m_functiontype"] = "SQLF_CUSTOM";
$proto7["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "Region"
));

$proto7["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "' '"
));

$proto7["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "numRegion"
));

$proto7["m_arguments"][]=$obj;
$proto7["m_strFunctionName"] = "CONCAT";
$obj = new SQLFunctionCall($proto7);

$proto6["m_sql"] = "CONCAT(Region,' ', numRegion)";
$proto6["m_srcTableName"] = "statistic_query Chart";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "regionCase";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "not V",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto11["m_sql"] = "`not V`";
$proto11["m_srcTableName"] = "statistic_query Chart";
$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "V",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto13["m_sql"] = "V";
$proto13["m_srcTableName"] = "statistic_query Chart";
$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto0["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "Total",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto15["m_sql"] = "Total";
$proto15["m_srcTableName"] = "statistic_query Chart";
$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto0["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "Percentage",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto17["m_sql"] = "Percentage";
$proto17["m_srcTableName"] = "statistic_query Chart";
$proto17["m_expr"]=$obj;
$proto17["m_alias"] = "";
$obj = new SQLFieldListItem($proto17);

$proto0["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "v ma3",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto19["m_sql"] = "`v ma3`";
$proto19["m_srcTableName"] = "statistic_query Chart";
$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto0["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "v dod",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto21["m_sql"] = "`v dod`";
$proto21["m_srcTableName"] = "statistic_query Chart";
$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto0["m_fieldlist"][]=$obj;
						$proto23=array();
			$obj = new SQLField(array(
	"m_strName" => "v tachkil",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto23["m_sql"] = "`v tachkil`";
$proto23["m_srcTableName"] = "statistic_query Chart";
$proto23["m_expr"]=$obj;
$proto23["m_alias"] = "";
$obj = new SQLFieldListItem($proto23);

$proto0["m_fieldlist"][]=$obj;
						$proto25=array();
			$obj = new SQLField(array(
	"m_strName" => "v majhoul",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto25["m_sql"] = "`v majhoul`";
$proto25["m_srcTableName"] = "statistic_query Chart";
$proto25["m_expr"]=$obj;
$proto25["m_alias"] = "";
$obj = new SQLFieldListItem($proto25);

$proto0["m_fieldlist"][]=$obj;
						$proto27=array();
			$obj = new SQLField(array(
	"m_strName" => "nv ma3",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto27["m_sql"] = "`nv ma3`";
$proto27["m_srcTableName"] = "statistic_query Chart";
$proto27["m_expr"]=$obj;
$proto27["m_alias"] = "";
$obj = new SQLFieldListItem($proto27);

$proto0["m_fieldlist"][]=$obj;
						$proto29=array();
			$obj = new SQLField(array(
	"m_strName" => "nv dod",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto29["m_sql"] = "`nv dod`";
$proto29["m_srcTableName"] = "statistic_query Chart";
$proto29["m_expr"]=$obj;
$proto29["m_alias"] = "";
$obj = new SQLFieldListItem($proto29);

$proto0["m_fieldlist"][]=$obj;
						$proto31=array();
			$obj = new SQLField(array(
	"m_strName" => "nv tachkil",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto31["m_sql"] = "`nv tachkil`";
$proto31["m_srcTableName"] = "statistic_query Chart";
$proto31["m_expr"]=$obj;
$proto31["m_alias"] = "";
$obj = new SQLFieldListItem($proto31);

$proto0["m_fieldlist"][]=$obj;
						$proto33=array();
			$obj = new SQLField(array(
	"m_strName" => "nv majhoul",
	"m_strTable" => "statistic_query",
	"m_srcTableName" => "statistic_query Chart"
));

$proto33["m_sql"] = "`nv majhoul`";
$proto33["m_srcTableName"] = "statistic_query Chart";
$proto33["m_expr"]=$obj;
$proto33["m_alias"] = "";
$obj = new SQLFieldListItem($proto33);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto35=array();
$proto35["m_link"] = "SQLL_MAIN";
			$proto36=array();
$proto36["m_strName"] = "statistic_query";
$proto36["m_srcTableName"] = "statistic_query Chart";
$proto36["m_columns"] = array();
$proto36["m_columns"][] = "Region";
$proto36["m_columns"][] = "numRegion";
$proto36["m_columns"][] = "not V";
$proto36["m_columns"][] = "V";
$proto36["m_columns"][] = "Total";
$proto36["m_columns"][] = "Percentage";
$proto36["m_columns"][] = "v ma3";
$proto36["m_columns"][] = "v dod";
$proto36["m_columns"][] = "v tachkil";
$proto36["m_columns"][] = "v majhoul";
$proto36["m_columns"][] = "nv ma3";
$proto36["m_columns"][] = "nv dod";
$proto36["m_columns"][] = "nv tachkil";
$proto36["m_columns"][] = "nv majhoul";
$obj = new SQLTable($proto36);

$proto35["m_table"] = $obj;
$proto35["m_sql"] = "statistic_query";
$proto35["m_alias"] = "";
$proto35["m_srcTableName"] = "statistic_query Chart";
$proto37=array();
$proto37["m_sql"] = "";
$proto37["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$proto0["m_srcTableName"]="statistic_query Chart";		
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_statistic_query_chart = createSqlQuery_statistic_query_chart();


	
		;

													

$tdatastatistic_query_chart[".sqlquery"] = $queryData_statistic_query_chart;



$tableEvents["statistic_query Chart"] = new eventsBase;
$tdatastatistic_query_chart[".hasEvents"] = false;

?>