<?php
$tdatastatistics_voted_all_region = array();
$tdatastatistics_voted_all_region[".searchableFields"] = array();
$tdatastatistics_voted_all_region[".ShortName"] = "statistics_voted_all_region";
$tdatastatistics_voted_all_region[".OwnerID"] = "";
$tdatastatistics_voted_all_region[".OriginalTable"] = "statistics_voted";


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

//	field labels
$fieldLabelsstatistics_voted_all_region = array();
$fieldToolTipsstatistics_voted_all_region = array();
$pageTitlesstatistics_voted_all_region = array();
$placeHoldersstatistics_voted_all_region = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsstatistics_voted_all_region["English"] = array();
	$fieldToolTipsstatistics_voted_all_region["English"] = array();
	$placeHoldersstatistics_voted_all_region["English"] = array();
	$pageTitlesstatistics_voted_all_region["English"] = array();
	$fieldLabelsstatistics_voted_all_region["English"]["Region"] = "المنطقة";
	$fieldToolTipsstatistics_voted_all_region["English"]["Region"] = "";
	$placeHoldersstatistics_voted_all_region["English"]["Region"] = "";
	$fieldLabelsstatistics_voted_all_region["English"]["numRegion"] = "القلم";
	$fieldToolTipsstatistics_voted_all_region["English"]["numRegion"] = "";
	$placeHoldersstatistics_voted_all_region["English"]["numRegion"] = "";
	$fieldLabelsstatistics_voted_all_region["English"]["V"] = "V";
	$fieldToolTipsstatistics_voted_all_region["English"]["V"] = "";
	$placeHoldersstatistics_voted_all_region["English"]["V"] = "";
	$fieldLabelsstatistics_voted_all_region["English"]["Total"] = "Total";
	$fieldToolTipsstatistics_voted_all_region["English"]["Total"] = "";
	$placeHoldersstatistics_voted_all_region["English"]["Total"] = "";
	$fieldLabelsstatistics_voted_all_region["English"]["Percentage"] = "نسبة الإقتراع";
	$fieldToolTipsstatistics_voted_all_region["English"]["Percentage"] = "";
	$placeHoldersstatistics_voted_all_region["English"]["Percentage"] = "";
	$fieldLabelsstatistics_voted_all_region["English"]["P_ma3"] = "مع";
	$fieldToolTipsstatistics_voted_all_region["English"]["P_ma3"] = "";
	$placeHoldersstatistics_voted_all_region["English"]["P_ma3"] = "";
	$fieldLabelsstatistics_voted_all_region["English"]["P_dod"] = "ضد";
	$fieldToolTipsstatistics_voted_all_region["English"]["P_dod"] = "";
	$placeHoldersstatistics_voted_all_region["English"]["P_dod"] = "";
	$fieldLabelsstatistics_voted_all_region["English"]["P_tachkil"] = "تشكيل";
	$fieldToolTipsstatistics_voted_all_region["English"]["P_tachkil"] = "";
	$placeHoldersstatistics_voted_all_region["English"]["P_tachkil"] = "";
	$fieldLabelsstatistics_voted_all_region["English"]["P_majhoul"] = "مجهول";
	$fieldToolTipsstatistics_voted_all_region["English"]["P_majhoul"] = "";
	$placeHoldersstatistics_voted_all_region["English"]["P_majhoul"] = "";
	if (count($fieldToolTipsstatistics_voted_all_region["English"]))
		$tdatastatistics_voted_all_region[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="Arabic")
{
	$fieldLabelsstatistics_voted_all_region["Arabic"] = array();
	$fieldToolTipsstatistics_voted_all_region["Arabic"] = array();
	$placeHoldersstatistics_voted_all_region["Arabic"] = array();
	$pageTitlesstatistics_voted_all_region["Arabic"] = array();
	$fieldLabelsstatistics_voted_all_region["Arabic"]["Region"] = "Region";
	$fieldToolTipsstatistics_voted_all_region["Arabic"]["Region"] = "";
	$placeHoldersstatistics_voted_all_region["Arabic"]["Region"] = "";
	$fieldLabelsstatistics_voted_all_region["Arabic"]["numRegion"] = "Num Region";
	$fieldToolTipsstatistics_voted_all_region["Arabic"]["numRegion"] = "";
	$placeHoldersstatistics_voted_all_region["Arabic"]["numRegion"] = "";
	$fieldLabelsstatistics_voted_all_region["Arabic"]["V"] = "V";
	$fieldToolTipsstatistics_voted_all_region["Arabic"]["V"] = "";
	$placeHoldersstatistics_voted_all_region["Arabic"]["V"] = "";
	$fieldLabelsstatistics_voted_all_region["Arabic"]["Total"] = "Total";
	$fieldToolTipsstatistics_voted_all_region["Arabic"]["Total"] = "";
	$placeHoldersstatistics_voted_all_region["Arabic"]["Total"] = "";
	$fieldLabelsstatistics_voted_all_region["Arabic"]["Percentage"] = "Percentage";
	$fieldToolTipsstatistics_voted_all_region["Arabic"]["Percentage"] = "";
	$placeHoldersstatistics_voted_all_region["Arabic"]["Percentage"] = "";
	$fieldLabelsstatistics_voted_all_region["Arabic"]["P_ma3"] = "P Ma3";
	$fieldToolTipsstatistics_voted_all_region["Arabic"]["P_ma3"] = "";
	$placeHoldersstatistics_voted_all_region["Arabic"]["P_ma3"] = "";
	$fieldLabelsstatistics_voted_all_region["Arabic"]["P_dod"] = "P Dod";
	$fieldToolTipsstatistics_voted_all_region["Arabic"]["P_dod"] = "";
	$placeHoldersstatistics_voted_all_region["Arabic"]["P_dod"] = "";
	$fieldLabelsstatistics_voted_all_region["Arabic"]["P_tachkil"] = "P Tachkil";
	$fieldToolTipsstatistics_voted_all_region["Arabic"]["P_tachkil"] = "";
	$placeHoldersstatistics_voted_all_region["Arabic"]["P_tachkil"] = "";
	$fieldLabelsstatistics_voted_all_region["Arabic"]["P_majhoul"] = "P Majhoul";
	$fieldToolTipsstatistics_voted_all_region["Arabic"]["P_majhoul"] = "";
	$placeHoldersstatistics_voted_all_region["Arabic"]["P_majhoul"] = "";
	if (count($fieldToolTipsstatistics_voted_all_region["Arabic"]))
		$tdatastatistics_voted_all_region[".isUseToolTips"] = true;
}


	$tdatastatistics_voted_all_region[".NCSearch"] = true;

	$tdatastatistics_voted_all_region[".ChartRefreshTime"] = 0;


$tdatastatistics_voted_all_region[".shortTableName"] = "statistics_voted_all_region";
$tdatastatistics_voted_all_region[".nSecOptions"] = 0;

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


$tdatastatistics_voted_all_region[".strOriginalTableName"] = "statistics_voted";

	



$tdatastatistics_voted_all_region[".showAddInPopup"] = false;

$tdatastatistics_voted_all_region[".showEditInPopup"] = false;

$tdatastatistics_voted_all_region[".showViewInPopup"] = false;

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


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

	$tdatastatistics_voted_all_region[".audit"] = false;

	$tdatastatistics_voted_all_region[".locking"] = false;


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

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

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

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



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




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

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

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

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



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

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

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

$tdatastatistics_voted_all_region[".isUseAjaxSuggest"] = true;






$tdatastatistics_voted_all_region[".ajaxCodeSnippetAdded"] = false;

$tdatastatistics_voted_all_region[".buttonsAdded"] = false;

$tdatastatistics_voted_all_region[".addPageEvents"] = false;

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


$tdatastatistics_voted_all_region[".badgeColor"] = "cd853f";


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

$tdatastatistics_voted_all_region[".googleLikeFields"] = array();
$tdatastatistics_voted_all_region[".googleLikeFields"][] = "Region";
$tdatastatistics_voted_all_region[".googleLikeFields"][] = "numRegion";
$tdatastatistics_voted_all_region[".googleLikeFields"][] = "V";
$tdatastatistics_voted_all_region[".googleLikeFields"][] = "Total";
$tdatastatistics_voted_all_region[".googleLikeFields"][] = "Percentage";
$tdatastatistics_voted_all_region[".googleLikeFields"][] = "P_ma3";
$tdatastatistics_voted_all_region[".googleLikeFields"][] = "P_dod";
$tdatastatistics_voted_all_region[".googleLikeFields"][] = "P_tachkil";
$tdatastatistics_voted_all_region[".googleLikeFields"][] = "P_majhoul";



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

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

$tdatastatistics_voted_all_region[".nPrinterSplitRecords"] = 40;

$tdatastatistics_voted_all_region[".geocodingEnabled"] = false;



// chart settings
$tdatastatistics_voted_all_region[".chartType"] = "2DColumn";
// end of chart settings








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

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


$tdatastatistics_voted_all_region[".sqlHead"] = "SELECT Region,  	numRegion,  	V,  	Total,  	Percentage,  	P_ma3,  	P_dod,  	P_tachkil,  	P_majhoul";
$tdatastatistics_voted_all_region[".sqlFrom"] = "FROM statistics_voted";
$tdatastatistics_voted_all_region[".sqlWhereExpr"] = "";
$tdatastatistics_voted_all_region[".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;
$tdatastatistics_voted_all_region[".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;
$tdatastatistics_voted_all_region[".arrGroupsPerPage"] = $arrGPP;

$tdatastatistics_voted_all_region[".highlightSearchResults"] = true;

$tableKeysstatistics_voted_all_region = array();
$tdatastatistics_voted_all_region[".Keys"] = $tableKeysstatistics_voted_all_region;


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




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

	
	
	
			

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

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

	
	
				$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["EditParams"].= " maxlength=50";

		$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


	$tdatastatistics_voted_all_region["Region"] = $fdata;
		$tdatastatistics_voted_all_region[".searchableFields"][] = "Region";
//	numRegion
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "numRegion";
	$fdata["GoodName"] = "numRegion";
	$fdata["ownerTable"] = "statistics_voted";
	$fdata["Label"] = GetFieldLabel("statistics_voted_ALL_REGION","numRegion");
	$fdata["FieldType"] = 2;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "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();
				$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


	$tdatastatistics_voted_all_region["numRegion"] = $fdata;
		$tdatastatistics_voted_all_region[".searchableFields"][] = "numRegion";
//	V
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "V";
	$fdata["GoodName"] = "V";
	$fdata["ownerTable"] = "statistics_voted";
	$fdata["Label"] = GetFieldLabel("statistics_voted_ALL_REGION","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


	$tdatastatistics_voted_all_region["V"] = $fdata;
		$tdatastatistics_voted_all_region[".searchableFields"][] = "V";
//	Total
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "Total";
	$fdata["GoodName"] = "Total";
	$fdata["ownerTable"] = "statistics_voted";
	$fdata["Label"] = GetFieldLabel("statistics_voted_ALL_REGION","Total");
	$fdata["FieldType"] = 3;

	
	
	
			

		$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


	$tdatastatistics_voted_all_region["Total"] = $fdata;
		$tdatastatistics_voted_all_region[".searchableFields"][] = "Total";
//	Percentage
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "Percentage";
	$fdata["GoodName"] = "Percentage";
	$fdata["ownerTable"] = "statistics_voted";
	$fdata["Label"] = GetFieldLabel("statistics_voted_ALL_REGION","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


	$tdatastatistics_voted_all_region["Percentage"] = $fdata;
		$tdatastatistics_voted_all_region[".searchableFields"][] = "Percentage";
//	P_ma3
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "P_ma3";
	$fdata["GoodName"] = "P_ma3";
	$fdata["ownerTable"] = "statistics_voted";
	$fdata["Label"] = GetFieldLabel("statistics_voted_ALL_REGION","P_ma3");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

	
	
				$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


	$tdatastatistics_voted_all_region["P_ma3"] = $fdata;
		$tdatastatistics_voted_all_region[".searchableFields"][] = "P_ma3";
//	P_dod
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "P_dod";
	$fdata["GoodName"] = "P_dod";
	$fdata["ownerTable"] = "statistics_voted";
	$fdata["Label"] = GetFieldLabel("statistics_voted_ALL_REGION","P_dod");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

	
	
				$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


	$tdatastatistics_voted_all_region["P_dod"] = $fdata;
		$tdatastatistics_voted_all_region[".searchableFields"][] = "P_dod";
//	P_tachkil
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "P_tachkil";
	$fdata["GoodName"] = "P_tachkil";
	$fdata["ownerTable"] = "statistics_voted";
	$fdata["Label"] = GetFieldLabel("statistics_voted_ALL_REGION","P_tachkil");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

	
	
				$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


	$tdatastatistics_voted_all_region["P_tachkil"] = $fdata;
		$tdatastatistics_voted_all_region[".searchableFields"][] = "P_tachkil";
//	P_majhoul
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "P_majhoul";
	$fdata["GoodName"] = "P_majhoul";
	$fdata["ownerTable"] = "statistics_voted";
	$fdata["Label"] = GetFieldLabel("statistics_voted_ALL_REGION","P_majhoul");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

	
	
				$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


	$tdatastatistics_voted_all_region["P_majhoul"] = $fdata;
		$tdatastatistics_voted_all_region[".searchableFields"][] = "P_majhoul";

$tdatastatistics_voted_all_region[".chartLabelField"] = "Region";
$tdatastatistics_voted_all_region[".chartSeries"] = array();
$tdatastatistics_voted_all_region[".chartSeries"][] = array( 
	"field" => "P_ma3",
	"total" => ""
);
$tdatastatistics_voted_all_region[".chartSeries"][] = array( 
	"field" => "P_dod",
	"total" => ""
);
$tdatastatistics_voted_all_region[".chartSeries"][] = array( 
	"field" => "P_tachkil",
	"total" => ""
);
$tdatastatistics_voted_all_region[".chartSeries"][] = array( 
	"field" => "P_majhoul",
	"total" => ""
);
$tdatastatistics_voted_all_region[".chartSeries"][] = array( 
	"field" => "Percentage",
	"total" => ""
);
	$tdatastatistics_voted_all_region[".chartXml"] = '<chart>
		<attr value="tables">
			<attr value="0">statistics_voted ALL REGION</attr>
		</attr>
		<attr value="chart_type">
			<attr value="type">2d_column</attr>
		</attr>

		<attr value="parameters">';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="0">
			<attr value="name">P_ma3</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="1">
			<attr value="name">P_dod</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="2">
			<attr value="name">P_tachkil</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="3">
			<attr value="name">P_majhoul</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="4">
			<attr value="name">Percentage</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="5">
		<attr value="name">Region</attr>
	</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '</attr>
			<attr value="appearance">';


	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="head">'.xmlencode("statistics_voted ALL REGION").'</attr>
<attr value="foot">'.xmlencode("").'</attr>
<attr value="y_axis_label">'.xmlencode("").'</attr>


<attr value="slegend">true</attr>
<attr value="sgrid">false</attr>
<attr value="sname">true</attr>
<attr value="sval">true</attr>
<attr value="sanim">true</attr>
<attr value="sstacked">false</attr>
<attr value="slog">false</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>';
$tdatastatistics_voted_all_region[".chartXml"] .= '</attr>

<attr value="fields">';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="0">
		<attr value="name">Region</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistics_voted_ALL_REGION","Region")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="1">
		<attr value="name">numRegion</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistics_voted_ALL_REGION","numRegion")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="2">
		<attr value="name">V</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistics_voted_ALL_REGION","V")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="3">
		<attr value="name">Total</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistics_voted_ALL_REGION","Total")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="4">
		<attr value="name">Percentage</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistics_voted_ALL_REGION","Percentage")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="5">
		<attr value="name">P_ma3</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistics_voted_ALL_REGION","P_ma3")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="6">
		<attr value="name">P_dod</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistics_voted_ALL_REGION","P_dod")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="7">
		<attr value="name">P_tachkil</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistics_voted_ALL_REGION","P_tachkil")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatastatistics_voted_all_region[".chartXml"] .= '<attr value="8">
		<attr value="name">P_majhoul</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("statistics_voted_ALL_REGION","P_majhoul")).'</attr>
		<attr value="search"></attr>
	</attr>';
$tdatastatistics_voted_all_region[".chartXml"] .= '</attr>


<attr value="settings">
<attr value="name">statistics_voted ALL REGION</attr>
<attr value="short_table_name">statistics_voted_all_region</attr>
</attr>

</chart>';

$tables_data["statistics_voted ALL REGION"]=&$tdatastatistics_voted_all_region;
$field_labels["statistics_voted_ALL_REGION"] = &$fieldLabelsstatistics_voted_all_region;
$fieldToolTips["statistics_voted_ALL_REGION"] = &$fieldToolTipsstatistics_voted_all_region;
$placeHolders["statistics_voted_ALL_REGION"] = &$placeHoldersstatistics_voted_all_region;
$page_titles["statistics_voted_ALL_REGION"] = &$pageTitlesstatistics_voted_all_region;

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

// tables which are master tables for current table (detail)
$masterTablesData["statistics_voted ALL REGION"] = array();



	
				$strOriginalDetailsTable="electioncase";
	$masterParams = array();
	$masterParams["mDataSourceTable"]="electioncase";
	$masterParams["mOriginalTable"]= $strOriginalDetailsTable;
	$masterParams["mShortTable"]= "electioncase";
	$masterParams["masterKeys"]= array();
	$masterParams["detailKeys"]= array();

	$masterParams["type"] = PAGE_LIST;
					$masterTablesData["statistics_voted ALL REGION"][0] = $masterParams;
				$masterTablesData["statistics_voted ALL REGION"][0]["masterKeys"] = array();
	$masterTablesData["statistics_voted ALL REGION"][0]["masterKeys"][]="region";
				$masterTablesData["statistics_voted ALL REGION"][0]["masterKeys"][]="numCase";
				$masterTablesData["statistics_voted ALL REGION"][0]["detailKeys"] = array();
	$masterTablesData["statistics_voted ALL REGION"][0]["detailKeys"][]="Region";
				$masterTablesData["statistics_voted ALL REGION"][0]["detailKeys"][]="numRegion";
		
// -----------------end  prepare master-details data arrays ------------------------------//



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











function createSqlQuery_statistics_voted_all_region()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "Region,  	numRegion,  	V,  	Total,  	Percentage,  	P_ma3,  	P_dod,  	P_tachkil,  	P_majhoul";
$proto0["m_strFrom"] = "FROM statistics_voted";
$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();
			$obj = new SQLField(array(
	"m_strName" => "Region",
	"m_strTable" => "statistics_voted",
	"m_srcTableName" => "statistics_voted ALL REGION"
));

$proto6["m_sql"] = "Region";
$proto6["m_srcTableName"] = "statistics_voted ALL REGION";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
						$proto8=array();
			$obj = new SQLField(array(
	"m_strName" => "numRegion",
	"m_strTable" => "statistics_voted",
	"m_srcTableName" => "statistics_voted ALL REGION"
));

$proto8["m_sql"] = "numRegion";
$proto8["m_srcTableName"] = "statistics_voted ALL REGION";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);

$proto0["m_fieldlist"][]=$obj;
						$proto10=array();
			$obj = new SQLField(array(
	"m_strName" => "V",
	"m_strTable" => "statistics_voted",
	"m_srcTableName" => "statistics_voted ALL REGION"
));

$proto10["m_sql"] = "V";
$proto10["m_srcTableName"] = "statistics_voted ALL REGION";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);

$proto0["m_fieldlist"][]=$obj;
						$proto12=array();
			$obj = new SQLField(array(
	"m_strName" => "Total",
	"m_strTable" => "statistics_voted",
	"m_srcTableName" => "statistics_voted ALL REGION"
));

$proto12["m_sql"] = "Total";
$proto12["m_srcTableName"] = "statistics_voted ALL REGION";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$obj = new SQLField(array(
	"m_strName" => "Percentage",
	"m_strTable" => "statistics_voted",
	"m_srcTableName" => "statistics_voted ALL REGION"
));

$proto14["m_sql"] = "Percentage";
$proto14["m_srcTableName"] = "statistics_voted ALL REGION";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

$proto0["m_fieldlist"][]=$obj;
						$proto16=array();
			$obj = new SQLField(array(
	"m_strName" => "P_ma3",
	"m_strTable" => "statistics_voted",
	"m_srcTableName" => "statistics_voted ALL REGION"
));

$proto16["m_sql"] = "P_ma3";
$proto16["m_srcTableName"] = "statistics_voted ALL REGION";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

$proto0["m_fieldlist"][]=$obj;
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "P_dod",
	"m_strTable" => "statistics_voted",
	"m_srcTableName" => "statistics_voted ALL REGION"
));

$proto18["m_sql"] = "P_dod";
$proto18["m_srcTableName"] = "statistics_voted ALL REGION";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

$proto0["m_fieldlist"][]=$obj;
						$proto20=array();
			$obj = new SQLField(array(
	"m_strName" => "P_tachkil",
	"m_strTable" => "statistics_voted",
	"m_srcTableName" => "statistics_voted ALL REGION"
));

$proto20["m_sql"] = "P_tachkil";
$proto20["m_srcTableName"] = "statistics_voted ALL REGION";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto0["m_fieldlist"][]=$obj;
						$proto22=array();
			$obj = new SQLField(array(
	"m_strName" => "P_majhoul",
	"m_strTable" => "statistics_voted",
	"m_srcTableName" => "statistics_voted ALL REGION"
));

$proto22["m_sql"] = "P_majhoul";
$proto22["m_srcTableName"] = "statistics_voted ALL REGION";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto24=array();
$proto24["m_link"] = "SQLL_MAIN";
			$proto25=array();
$proto25["m_strName"] = "statistics_voted";
$proto25["m_srcTableName"] = "statistics_voted ALL REGION";
$proto25["m_columns"] = array();
$proto25["m_columns"][] = "Region";
$proto25["m_columns"][] = "numRegion";
$proto25["m_columns"][] = "V";
$proto25["m_columns"][] = "Total";
$proto25["m_columns"][] = "Percentage";
$proto25["m_columns"][] = "P_ma3";
$proto25["m_columns"][] = "P_dod";
$proto25["m_columns"][] = "P_tachkil";
$proto25["m_columns"][] = "P_majhoul";
$obj = new SQLTable($proto25);

$proto24["m_table"] = $obj;
$proto24["m_sql"] = "statistics_voted";
$proto24["m_alias"] = "";
$proto24["m_srcTableName"] = "statistics_voted ALL REGION";
$proto26=array();
$proto26["m_sql"] = "";
$proto26["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$proto0["m_srcTableName"]="statistics_voted ALL REGION";		
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_statistics_voted_all_region = createSqlQuery_statistics_voted_all_region();


	
		;

									

$tdatastatistics_voted_all_region[".sqlquery"] = $queryData_statistics_voted_all_region;



$tableEvents["statistics_voted ALL REGION"] = new eventsBase;
$tdatastatistics_voted_all_region[".hasEvents"] = false;

?>