<?php
$tdata________________ = array();
$tdata________________[".searchableFields"] = array();
$tdata________________[".ShortName"] = "________________";
$tdata________________[".OwnerID"] = "";
$tdata________________[".OriginalTable"] = "statistics_case";


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

//	field labels
$fieldLabels________________ = array();
$fieldToolTips________________ = array();
$pageTitles________________ = array();
$placeHolders________________ = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabels________________["English"] = array();
	$fieldToolTips________________["English"] = array();
	$placeHolders________________["English"] = array();
	$pageTitles________________["English"] = array();
	$fieldLabels________________["English"]["full_name"] = "الإسم";
	$fieldToolTips________________["English"]["full_name"] = "";
	$placeHolders________________["English"]["full_name"] = "";
	$fieldLabels________________["English"]["region"] = "المنطقة";
	$fieldToolTips________________["English"]["region"] = "";
	$placeHolders________________["English"]["region"] = "";
	$fieldLabels________________["English"]["numCase"] = "القلم";
	$fieldToolTips________________["English"]["numCase"] = "";
	$placeHolders________________["English"]["numCase"] = "";
	$fieldLabels________________["English"]["CountOfnumPers"] = "المقترعين";
	$fieldToolTips________________["English"]["CountOfnumPers"] = "";
	$placeHolders________________["English"]["CountOfnumPers"] = "";
	$fieldLabels________________["English"]["total"] = "المجموع";
	$fieldToolTips________________["English"]["total"] = "";
	$placeHolders________________["English"]["total"] = "";
	$fieldLabels________________["English"]["percentage"] = "نسبة الإقتراع";
	$fieldToolTips________________["English"]["percentage"] = "";
	$placeHolders________________["English"]["percentage"] = "";
	$fieldLabels________________["English"]["ma3"] = "مع";
	$fieldToolTips________________["English"]["ma3"] = "";
	$placeHolders________________["English"]["ma3"] = "";
	$fieldLabels________________["English"]["dod"] = "ضد";
	$fieldToolTips________________["English"]["dod"] = "";
	$placeHolders________________["English"]["dod"] = "";
	$fieldLabels________________["English"]["tachkil"] = "تشكيل";
	$fieldToolTips________________["English"]["tachkil"] = "";
	$placeHolders________________["English"]["tachkil"] = "";
	$fieldLabels________________["English"]["majhoul"] = "مجهول";
	$fieldToolTips________________["English"]["majhoul"] = "";
	$placeHolders________________["English"]["majhoul"] = "";
	if (count($fieldToolTips________________["English"]))
		$tdata________________[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="Arabic")
{
	$fieldLabels________________["Arabic"] = array();
	$fieldToolTips________________["Arabic"] = array();
	$placeHolders________________["Arabic"] = array();
	$pageTitles________________["Arabic"] = array();
	$fieldLabels________________["Arabic"]["full_name"] = "الإسم";
	$fieldToolTips________________["Arabic"]["full_name"] = "";
	$placeHolders________________["Arabic"]["full_name"] = "";
	$fieldLabels________________["Arabic"]["region"] = "المنطقة";
	$fieldToolTips________________["Arabic"]["region"] = "";
	$placeHolders________________["Arabic"]["region"] = "";
	$fieldLabels________________["Arabic"]["numCase"] = "القلم";
	$fieldToolTips________________["Arabic"]["numCase"] = "";
	$placeHolders________________["Arabic"]["numCase"] = "";
	$fieldLabels________________["Arabic"]["CountOfnumPers"] = "المقترعين";
	$fieldToolTips________________["Arabic"]["CountOfnumPers"] = "";
	$placeHolders________________["Arabic"]["CountOfnumPers"] = "";
	$fieldLabels________________["Arabic"]["total"] = "المجموع";
	$fieldToolTips________________["Arabic"]["total"] = "";
	$placeHolders________________["Arabic"]["total"] = "";
	$fieldLabels________________["Arabic"]["percentage"] = "نسبة الإقتراع";
	$fieldToolTips________________["Arabic"]["percentage"] = "";
	$placeHolders________________["Arabic"]["percentage"] = "";
	$fieldLabels________________["Arabic"]["ma3"] = "مع";
	$fieldToolTips________________["Arabic"]["ma3"] = "";
	$placeHolders________________["Arabic"]["ma3"] = "";
	$fieldLabels________________["Arabic"]["dod"] = "ضد";
	$fieldToolTips________________["Arabic"]["dod"] = "";
	$placeHolders________________["Arabic"]["dod"] = "";
	$fieldLabels________________["Arabic"]["tachkil"] = "تشكيل";
	$fieldToolTips________________["Arabic"]["tachkil"] = "";
	$placeHolders________________["Arabic"]["tachkil"] = "";
	$fieldLabels________________["Arabic"]["majhoul"] = "مجهول";
	$fieldToolTips________________["Arabic"]["majhoul"] = "";
	$placeHolders________________["Arabic"]["majhoul"] = "";
	if (count($fieldToolTips________________["Arabic"]))
		$tdata________________[".isUseToolTips"] = true;
}


	$tdata________________[".NCSearch"] = true;

	$tdata________________[".ChartRefreshTime"] = 0;


$tdata________________[".shortTableName"] = "________________";
$tdata________________[".nSecOptions"] = 0;

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


$tdata________________[".strOriginalTableName"] = "statistics_case";

	



$tdata________________[".showAddInPopup"] = false;

$tdata________________[".showEditInPopup"] = false;

$tdata________________[".showViewInPopup"] = false;

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


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

	$tdata________________[".audit"] = false;

	$tdata________________[".locking"] = false;


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

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

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

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



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




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

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

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

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



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

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

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

$tdata________________[".isUseAjaxSuggest"] = true;






$tdata________________[".ajaxCodeSnippetAdded"] = false;

$tdata________________[".buttonsAdded"] = false;

$tdata________________[".addPageEvents"] = false;

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


$tdata________________[".badgeColor"] = "2F4F4F";


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




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

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

$tdata________________[".nPrinterSplitRecords"] = 40;

$tdata________________[".geocodingEnabled"] = false;



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








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

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


$tdata________________[".sqlHead"] = "SELECT full_name,  	region,  	numCase,  	CountOfnumPers,  	total,  	percentage,  	ma3,  	dod,  	tachkil,  	majhoul";
$tdata________________[".sqlFrom"] = "FROM statistics_case";
$tdata________________[".sqlWhereExpr"] = "";
$tdata________________[".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;
$tdata________________[".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;
$tdata________________[".arrGroupsPerPage"] = $arrGPP;

$tdata________________[".highlightSearchResults"] = true;

$tableKeys________________ = array();
$tdata________________[".Keys"] = $tableKeys________________;


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




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

	
	
	
			

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

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

	
	
				$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=57";

		$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


	$tdata________________["full_name"] = $fdata;
		$tdata________________[".searchableFields"][] = "full_name";
//	region
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "region";
	$fdata["GoodName"] = "region";
	$fdata["ownerTable"] = "statistics_case";
	$fdata["Label"] = GetFieldLabel("________________","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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "region";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
			$edata["LookupUnique"] = true;

	$edata["LinkField"] = "name";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "name";

	

	
	$edata["LookupOrderBy"] = "name";

	
	
	
	

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$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"] = "Equals";

			// 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


	$tdata________________["region"] = $fdata;
		$tdata________________[".searchableFields"][] = "region";
//	numCase
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "numCase";
	$fdata["GoodName"] = "numCase";
	$fdata["ownerTable"] = "statistics_case";
	$fdata["Label"] = GetFieldLabel("________________","numCase");
	$fdata["FieldType"] = 2;

	
	
	
			

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

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

	
	
				$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" => "Lookup wizard");

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "electioncase";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
			$edata["LookupUnique"] = true;

	$edata["LinkField"] = "numCase";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "numCase";

	

	
	$edata["LookupOrderBy"] = "numCase";

	
	
	
	

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$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"] = "Equals";

			// 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


	$tdata________________["numCase"] = $fdata;
		$tdata________________[".searchableFields"][] = "numCase";
//	CountOfnumPers
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "CountOfnumPers";
	$fdata["GoodName"] = "CountOfnumPers";
	$fdata["ownerTable"] = "statistics_case";
	$fdata["Label"] = GetFieldLabel("________________","CountOfnumPers");
	$fdata["FieldType"] = 20;

	
	
	
			

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

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

	
	
				$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


	$tdata________________["CountOfnumPers"] = $fdata;
		$tdata________________[".searchableFields"][] = "CountOfnumPers";
//	total
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "total";
	$fdata["GoodName"] = "total";
	$fdata["ownerTable"] = "statistics_case";
	$fdata["Label"] = GetFieldLabel("________________","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


	$tdata________________["total"] = $fdata;
		$tdata________________[".searchableFields"][] = "total";
//	percentage
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "percentage";
	$fdata["GoodName"] = "percentage";
	$fdata["ownerTable"] = "statistics_case";
	$fdata["Label"] = GetFieldLabel("________________","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


	$tdata________________["percentage"] = $fdata;
		$tdata________________[".searchableFields"][] = "percentage";
//	ma3
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "ma3";
	$fdata["GoodName"] = "ma3";
	$fdata["ownerTable"] = "statistics_case";
	$fdata["Label"] = GetFieldLabel("________________","ma3");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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


	$tdata________________["ma3"] = $fdata;
		$tdata________________[".searchableFields"][] = "ma3";
//	dod
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "dod";
	$fdata["GoodName"] = "dod";
	$fdata["ownerTable"] = "statistics_case";
	$fdata["Label"] = GetFieldLabel("________________","dod");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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


	$tdata________________["dod"] = $fdata;
		$tdata________________[".searchableFields"][] = "dod";
//	tachkil
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "tachkil";
	$fdata["GoodName"] = "tachkil";
	$fdata["ownerTable"] = "statistics_case";
	$fdata["Label"] = GetFieldLabel("________________","tachkil");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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


	$tdata________________["tachkil"] = $fdata;
		$tdata________________[".searchableFields"][] = "tachkil";
//	majhoul
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "majhoul";
	$fdata["GoodName"] = "majhoul";
	$fdata["ownerTable"] = "statistics_case";
	$fdata["Label"] = GetFieldLabel("________________","majhoul");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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


	$tdata________________["majhoul"] = $fdata;
		$tdata________________[".searchableFields"][] = "majhoul";

$tdata________________[".chartLabelField"] = "full_name";
$tdata________________[".chartSeries"] = array();
$tdata________________[".chartSeries"][] = array( 
	"field" => "majhoul",
	"total" => ""
);
$tdata________________[".chartSeries"][] = array( 
	"field" => "tachkil",
	"total" => ""
);
$tdata________________[".chartSeries"][] = array( 
	"field" => "dod",
	"total" => ""
);
$tdata________________[".chartSeries"][] = array( 
	"field" => "ma3",
	"total" => ""
);
$tdata________________[".chartSeries"][] = array( 
	"field" => "percentage",
	"total" => ""
);
	$tdata________________[".chartXml"] = '<chart>
		<attr value="tables">
			<attr value="0">عامودي حسب القلم</attr>
		</attr>
		<attr value="chart_type">
			<attr value="type">2d_column</attr>
		</attr>

		<attr value="parameters">';
	$tdata________________[".chartXml"] .= '<attr value="0">
			<attr value="name">majhoul</attr>';
	$tdata________________[".chartXml"] .= '</attr>';
	$tdata________________[".chartXml"] .= '<attr value="1">
			<attr value="name">tachkil</attr>';
	$tdata________________[".chartXml"] .= '</attr>';
	$tdata________________[".chartXml"] .= '<attr value="2">
			<attr value="name">dod</attr>';
	$tdata________________[".chartXml"] .= '</attr>';
	$tdata________________[".chartXml"] .= '<attr value="3">
			<attr value="name">ma3</attr>';
	$tdata________________[".chartXml"] .= '</attr>';
	$tdata________________[".chartXml"] .= '<attr value="4">
			<attr value="name">percentage</attr>';
	$tdata________________[".chartXml"] .= '</attr>';
	$tdata________________[".chartXml"] .= '<attr value="5">
		<attr value="name">full_name</attr>
	</attr>';
	$tdata________________[".chartXml"] .= '</attr>
			<attr value="appearance">';


	$tdata________________[".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">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>';
$tdata________________[".chartXml"] .= '</attr>

<attr value="fields">';
	$tdata________________[".chartXml"] .= '<attr value="0">
		<attr value="name">full_name</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","full_name")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdata________________[".chartXml"] .= '<attr value="1">
		<attr value="name">region</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","region")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdata________________[".chartXml"] .= '<attr value="2">
		<attr value="name">numCase</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","numCase")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdata________________[".chartXml"] .= '<attr value="3">
		<attr value="name">CountOfnumPers</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","CountOfnumPers")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdata________________[".chartXml"] .= '<attr value="4">
		<attr value="name">total</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","total")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdata________________[".chartXml"] .= '<attr value="5">
		<attr value="name">percentage</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","percentage")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdata________________[".chartXml"] .= '<attr value="6">
		<attr value="name">ma3</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","ma3")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdata________________[".chartXml"] .= '<attr value="7">
		<attr value="name">dod</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","dod")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdata________________[".chartXml"] .= '<attr value="8">
		<attr value="name">tachkil</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","tachkil")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdata________________[".chartXml"] .= '<attr value="9">
		<attr value="name">majhoul</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("________________","majhoul")).'</attr>
		<attr value="search"></attr>
	</attr>';
$tdata________________[".chartXml"] .= '</attr>


<attr value="settings">
<attr value="name">عامودي حسب القلم</attr>
<attr value="short_table_name">________________</attr>
</attr>

</chart>';

$tables_data["عامودي حسب القلم"]=&$tdata________________;
$field_labels["________________"] = &$fieldLabels________________;
$fieldToolTips["________________"] = &$fieldToolTips________________;
$placeHolders["________________"] = &$placeHolders________________;
$page_titles["________________"] = &$pageTitles________________;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["عامودي حسب القلم"] = array();

// tables which are master tables for current table (detail)
$masterTablesData["عامودي حسب القلم"] = array();



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



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











function createSqlQuery_________________()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "full_name,  	region,  	numCase,  	CountOfnumPers,  	total,  	percentage,  	ma3,  	dod,  	tachkil,  	majhoul";
$proto0["m_strFrom"] = "FROM statistics_case";
$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" => "full_name",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto6["m_sql"] = "full_name";
$proto6["m_srcTableName"] = "عامودي حسب القلم";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
						$proto8=array();
			$obj = new SQLField(array(
	"m_strName" => "region",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto8["m_sql"] = "region";
$proto8["m_srcTableName"] = "عامودي حسب القلم";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);

$proto0["m_fieldlist"][]=$obj;
						$proto10=array();
			$obj = new SQLField(array(
	"m_strName" => "numCase",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto10["m_sql"] = "numCase";
$proto10["m_srcTableName"] = "عامودي حسب القلم";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);

$proto0["m_fieldlist"][]=$obj;
						$proto12=array();
			$obj = new SQLField(array(
	"m_strName" => "CountOfnumPers",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto12["m_sql"] = "CountOfnumPers";
$proto12["m_srcTableName"] = "عامودي حسب القلم";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$obj = new SQLField(array(
	"m_strName" => "total",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto14["m_sql"] = "total";
$proto14["m_srcTableName"] = "عامودي حسب القلم";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

$proto0["m_fieldlist"][]=$obj;
						$proto16=array();
			$obj = new SQLField(array(
	"m_strName" => "percentage",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto16["m_sql"] = "percentage";
$proto16["m_srcTableName"] = "عامودي حسب القلم";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

$proto0["m_fieldlist"][]=$obj;
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "ma3",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto18["m_sql"] = "ma3";
$proto18["m_srcTableName"] = "عامودي حسب القلم";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

$proto0["m_fieldlist"][]=$obj;
						$proto20=array();
			$obj = new SQLField(array(
	"m_strName" => "dod",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto20["m_sql"] = "dod";
$proto20["m_srcTableName"] = "عامودي حسب القلم";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto0["m_fieldlist"][]=$obj;
						$proto22=array();
			$obj = new SQLField(array(
	"m_strName" => "tachkil",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto22["m_sql"] = "tachkil";
$proto22["m_srcTableName"] = "عامودي حسب القلم";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

$proto0["m_fieldlist"][]=$obj;
						$proto24=array();
			$obj = new SQLField(array(
	"m_strName" => "majhoul",
	"m_strTable" => "statistics_case",
	"m_srcTableName" => "عامودي حسب القلم"
));

$proto24["m_sql"] = "majhoul";
$proto24["m_srcTableName"] = "عامودي حسب القلم";
$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto26=array();
$proto26["m_link"] = "SQLL_MAIN";
			$proto27=array();
$proto27["m_strName"] = "statistics_case";
$proto27["m_srcTableName"] = "عامودي حسب القلم";
$proto27["m_columns"] = array();
$proto27["m_columns"][] = "full_name";
$proto27["m_columns"][] = "region";
$proto27["m_columns"][] = "numCase";
$proto27["m_columns"][] = "CountOfnumPers";
$proto27["m_columns"][] = "total";
$proto27["m_columns"][] = "percentage";
$proto27["m_columns"][] = "ma3";
$proto27["m_columns"][] = "dod";
$proto27["m_columns"][] = "tachkil";
$proto27["m_columns"][] = "majhoul";
$obj = new SQLTable($proto27);

$proto26["m_table"] = $obj;
$proto26["m_sql"] = "statistics_case";
$proto26["m_alias"] = "";
$proto26["m_srcTableName"] = "عامودي حسب القلم";
$proto28=array();
$proto28["m_sql"] = "";
$proto28["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$proto0["m_srcTableName"]="عامودي حسب القلم";		
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_________________ = createSqlQuery_________________();


	
		;

										

$tdata________________[".sqlquery"] = $queryData_________________;



$tableEvents["عامودي حسب القلم"] = new eventsBase;
$tdata________________[".hasEvents"] = false;

?>