HEX
Server: Apache
System: Linux darrell.nocdirect.com 4.18.0-513.18.2.el8_9.x86_64 #1 SMP Sat Mar 30 06:10:41 EDT 2024 x86_64
User: joderbya (1358)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/joderbya/wlsa.quick-step-ei.com2/include/Viol_ncias_por_Genero_settings.php
<?php
require_once(getabspath("classes/cipherer.php"));




$tdataViol_ncias_por_Genero = array();
	$tdataViol_ncias_por_Genero[".ShortName"] = "Viol_ncias_por_Genero";
	$tdataViol_ncias_por_Genero[".OwnerID"] = "";
	$tdataViol_ncias_por_Genero[".OriginalTable"] = "reports";

//	field labels
$fieldLabelsViol_ncias_por_Genero = array();
$fieldToolTipsViol_ncias_por_Genero = array();
$pageTitlesViol_ncias_por_Genero = array();
$placeHoldersViol_ncias_por_Genero = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsViol_ncias_por_Genero["English"] = array();
	$fieldToolTipsViol_ncias_por_Genero["English"] = array();
	$placeHoldersViol_ncias_por_Genero["English"] = array();
	$pageTitlesViol_ncias_por_Genero["English"] = array();
	$fieldLabelsViol_ncias_por_Genero["English"]["Genero"] = "Genero";
	$fieldToolTipsViol_ncias_por_Genero["English"]["Genero"] = "";
	$placeHoldersViol_ncias_por_Genero["English"]["Genero"] = "";
	$fieldLabelsViol_ncias_por_Genero["English"]["Qtd"] = "Qtd";
	$fieldToolTipsViol_ncias_por_Genero["English"]["Qtd"] = "";
	$placeHoldersViol_ncias_por_Genero["English"]["Qtd"] = "";
	$fieldLabelsViol_ncias_por_Genero["English"]["Data"] = "Data";
	$fieldToolTipsViol_ncias_por_Genero["English"]["Data"] = "";
	$placeHoldersViol_ncias_por_Genero["English"]["Data"] = "";
	if (count($fieldToolTipsViol_ncias_por_Genero["English"]))
		$tdataViol_ncias_por_Genero[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="")
{
	$fieldLabelsViol_ncias_por_Genero[""] = array();
	$fieldToolTipsViol_ncias_por_Genero[""] = array();
	$placeHoldersViol_ncias_por_Genero[""] = array();
	$pageTitlesViol_ncias_por_Genero[""] = array();
	$fieldLabelsViol_ncias_por_Genero[""]["Genero"] = "Genero";
	$fieldToolTipsViol_ncias_por_Genero[""]["Genero"] = "";
	$placeHoldersViol_ncias_por_Genero[""]["Genero"] = "";
	$fieldLabelsViol_ncias_por_Genero[""]["Qtd"] = "Qtd";
	$fieldToolTipsViol_ncias_por_Genero[""]["Qtd"] = "";
	$placeHoldersViol_ncias_por_Genero[""]["Qtd"] = "";
	$fieldLabelsViol_ncias_por_Genero[""]["Data"] = "Data";
	$fieldToolTipsViol_ncias_por_Genero[""]["Data"] = "";
	$placeHoldersViol_ncias_por_Genero[""]["Data"] = "";
	if (count($fieldToolTipsViol_ncias_por_Genero[""]))
		$tdataViol_ncias_por_Genero[".isUseToolTips"] = true;
}


	$tdataViol_ncias_por_Genero[".NCSearch"] = true;

	$tdataViol_ncias_por_Genero[".ChartRefreshTime"] = 0;


$tdataViol_ncias_por_Genero[".shortTableName"] = "Viol_ncias_por_Genero";
$tdataViol_ncias_por_Genero[".nSecOptions"] = 0;
$tdataViol_ncias_por_Genero[".recsPerRowPrint"] = 1;
$tdataViol_ncias_por_Genero[".mainTableOwnerID"] = "";
$tdataViol_ncias_por_Genero[".moveNext"] = 1;
$tdataViol_ncias_por_Genero[".entityType"] = 3;

$tdataViol_ncias_por_Genero[".strOriginalTableName"] = "reports";

	



$tdataViol_ncias_por_Genero[".showAddInPopup"] = false;

$tdataViol_ncias_por_Genero[".showEditInPopup"] = false;

$tdataViol_ncias_por_Genero[".showViewInPopup"] = false;

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


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

$tdataViol_ncias_por_Genero[".listAjax"] = false;

	$tdataViol_ncias_por_Genero[".audit"] = false;

	$tdataViol_ncias_por_Genero[".locking"] = false;


$tdataViol_ncias_por_Genero[".add"] = true;
$tdataViol_ncias_por_Genero[".afterAddAction"] = 1;
$tdataViol_ncias_por_Genero[".closePopupAfterAdd"] = 1;
$tdataViol_ncias_por_Genero[".afterAddActionDetTable"] = "";

$tdataViol_ncias_por_Genero[".list"] = true;



$tdataViol_ncias_por_Genero[".reorderRecordsByHeader"] = true;








$tdataViol_ncias_por_Genero[".showSimpleSearchOptions"] = false;

// Allow Show/Hide Fields in GRID
$tdataViol_ncias_por_Genero[".allowShowHideFields"] = false;
//

// Allow Fields Reordering in GRID
$tdataViol_ncias_por_Genero[".allowFieldsReordering"] = false;
//

// search Saving settings
$tdataViol_ncias_por_Genero[".searchSaving"] = false;
//

$tdataViol_ncias_por_Genero[".showSearchPanel"] = true;
		$tdataViol_ncias_por_Genero[".flexibleSearch"] = true;

$tdataViol_ncias_por_Genero[".isUseAjaxSuggest"] = true;






$tdataViol_ncias_por_Genero[".ajaxCodeSnippetAdded"] = false;

$tdataViol_ncias_por_Genero[".buttonsAdded"] = false;

$tdataViol_ncias_por_Genero[".addPageEvents"] = false;

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



$tdataViol_ncias_por_Genero[".badgeColor"] = "CD5C5C";


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

$tdataViol_ncias_por_Genero[".allSearchFields"][] = "Qtd";
	$tdataViol_ncias_por_Genero[".allSearchFields"][] = "Data";
	

$tdataViol_ncias_por_Genero[".googleLikeFields"] = array();
$tdataViol_ncias_por_Genero[".googleLikeFields"][] = "Qtd";
$tdataViol_ncias_por_Genero[".googleLikeFields"][] = "Genero";
$tdataViol_ncias_por_Genero[".googleLikeFields"][] = "Data";


$tdataViol_ncias_por_Genero[".advSearchFields"] = array();
$tdataViol_ncias_por_Genero[".advSearchFields"][] = "Qtd";
$tdataViol_ncias_por_Genero[".advSearchFields"][] = "Data";

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

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

$tdataViol_ncias_por_Genero[".nPrinterSplitRecords"] = 40;

$tdataViol_ncias_por_Genero[".nPrinterPDFSplitRecords"] = 40;



$tdataViol_ncias_por_Genero[".geocodingEnabled"] = false;



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


$tdataViol_ncias_por_Genero[".listGridLayout"] = 3;





// view page pdf

// print page pdf



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

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

$tdataViol_ncias_por_Genero[".sqlHead"] = "SELECT COUNT(genero) AS Qtd,  	genero AS Genero,  	data_registo AS Data";
$tdataViol_ncias_por_Genero[".sqlFrom"] = "FROM reports";
$tdataViol_ncias_por_Genero[".sqlWhereExpr"] = "";
$tdataViol_ncias_por_Genero[".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;
$tdataViol_ncias_por_Genero[".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;
$tdataViol_ncias_por_Genero[".arrGroupsPerPage"] = $arrGPP;

$tdataViol_ncias_por_Genero[".highlightSearchResults"] = true;

$tableKeysViol_ncias_por_Genero = array();
$tdataViol_ncias_por_Genero[".Keys"] = $tableKeysViol_ncias_por_Genero;

$tdataViol_ncias_por_Genero[".listFields"] = array();
$tdataViol_ncias_por_Genero[".listFields"][] = "Qtd";
$tdataViol_ncias_por_Genero[".listFields"][] = "Genero";
$tdataViol_ncias_por_Genero[".listFields"][] = "Data";

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


$tdataViol_ncias_por_Genero[".viewFields"] = array();
$tdataViol_ncias_por_Genero[".viewFields"][] = "Qtd";
$tdataViol_ncias_por_Genero[".viewFields"][] = "Genero";
$tdataViol_ncias_por_Genero[".viewFields"][] = "Data";

$tdataViol_ncias_por_Genero[".addFields"] = array();

$tdataViol_ncias_por_Genero[".masterListFields"] = array();
$tdataViol_ncias_por_Genero[".masterListFields"][] = "Qtd";
$tdataViol_ncias_por_Genero[".masterListFields"][] = "Genero";
$tdataViol_ncias_por_Genero[".masterListFields"][] = "Data";

$tdataViol_ncias_por_Genero[".inlineAddFields"] = array();

$tdataViol_ncias_por_Genero[".editFields"] = array();

$tdataViol_ncias_por_Genero[".inlineEditFields"] = array();

$tdataViol_ncias_por_Genero[".updateSelectedFields"] = array();


$tdataViol_ncias_por_Genero[".exportFields"] = array();
$tdataViol_ncias_por_Genero[".exportFields"][] = "Qtd";
$tdataViol_ncias_por_Genero[".exportFields"][] = "Genero";
$tdataViol_ncias_por_Genero[".exportFields"][] = "Data";

$tdataViol_ncias_por_Genero[".importFields"] = array();
$tdataViol_ncias_por_Genero[".importFields"][] = "Qtd";
$tdataViol_ncias_por_Genero[".importFields"][] = "Genero";
$tdataViol_ncias_por_Genero[".importFields"][] = "Data";

$tdataViol_ncias_por_Genero[".printFields"] = array();
$tdataViol_ncias_por_Genero[".printFields"][] = "Qtd";
$tdataViol_ncias_por_Genero[".printFields"][] = "Genero";
$tdataViol_ncias_por_Genero[".printFields"][] = "Data";


//	Qtd
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "Qtd";
	$fdata["GoodName"] = "Qtd";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("Viol_ncias_por_Genero","Qtd");
	$fdata["FieldType"] = 3;

	
	
	
			
		$fdata["bListPage"] = true;

	
	
	
	
	

		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "COUNT(genero)";

	
	
				$fdata["FieldPermissions"] = true;

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

	
	
		
	


		$edata["IsRequired"] = true;

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

		$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");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	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




	$tdataViol_ncias_por_Genero["Qtd"] = $fdata;
//	Genero
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "Genero";
	$fdata["GoodName"] = "Genero";
	$fdata["ownerTable"] = "reports";
	$fdata["Label"] = GetFieldLabel("Viol_ncias_por_Genero","Genero");
	$fdata["FieldType"] = 200;

	
	
	
			
		$fdata["bListPage"] = true;

	
	
	
	
	

		$fdata["bViewPage"] = true;

	
		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

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

	
	
		
	


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

		$edata["maxNumberOfFiles"] = 1;

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

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








	$tdataViol_ncias_por_Genero["Genero"] = $fdata;
//	Data
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "Data";
	$fdata["GoodName"] = "Data";
	$fdata["ownerTable"] = "reports";
	$fdata["Label"] = GetFieldLabel("Viol_ncias_por_Genero","Data");
	$fdata["FieldType"] = 135;

	
	
	
			
		$fdata["bListPage"] = true;

	
	
	
	
	

		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

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

	
	
				$fdata["FieldPermissions"] = true;

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

	$edata = array("EditFormat" => "Date");

		$edata["ShowTime"] = true;

	
		
	


		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 13;
	$edata["InitialYearFactor"] = 100;
	$edata["LastYearFactor"] = 10;

	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	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("Equals", "More than", "Less than", "Between", EMPTY_SEARCH, NOT_EMPTY );
// the end of search options settings




	$tdataViol_ncias_por_Genero["Data"] = $fdata;

	$tdataViol_ncias_por_Genero[".chartXml"] = '<chart>
		<attr value="tables">
			<attr value="0">Violências por Genero</attr>
		</attr>
		<attr value="chart_type">
			<attr value="type">2d_column</attr>
		</attr>

		<attr value="parameters">';
	$tdataViol_ncias_por_Genero[".chartXml"] .= '<attr value="0">
			<attr value="name">Qtd</attr>';
	$tdataViol_ncias_por_Genero[".chartXml"] .= '</attr>';
	$tdataViol_ncias_por_Genero[".chartXml"] .= '<attr value="1">
		<attr value="name">Genero</attr>
	</attr>';
	$tdataViol_ncias_por_Genero[".chartXml"] .= '</attr>
			<attr value="appearance">';


	$tdataViol_ncias_por_Genero[".chartXml"] .= '<attr value="head">'.xmlencode("Distribuição por Genero").'</attr>
<attr value="foot">'.xmlencode("Genero").'</attr>
<attr value="y_axis_label">'.xmlencode("idade").'</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>';
$tdataViol_ncias_por_Genero[".chartXml"] .= '</attr>

<attr value="fields">';
	$tdataViol_ncias_por_Genero[".chartXml"] .= '<attr value="0">
		<attr value="name">Qtd</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Viol_ncias_por_Genero","Qtd")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdataViol_ncias_por_Genero[".chartXml"] .= '<attr value="1">
		<attr value="name">Genero</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Viol_ncias_por_Genero","Genero")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdataViol_ncias_por_Genero[".chartXml"] .= '<attr value="2">
		<attr value="name">Data</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Viol_ncias_por_Genero","Data")).'</attr>
		<attr value="search"></attr>
	</attr>';
$tdataViol_ncias_por_Genero[".chartXml"] .= '</attr>


<attr value="settings">
<attr value="name">Violências por Genero</attr>
<attr value="short_table_name">Viol_ncias_por_Genero</attr>
</attr>

</chart>';

$tables_data["Violências por Genero"]=&$tdataViol_ncias_por_Genero;
$field_labels["Viol_ncias_por_Genero"] = &$fieldLabelsViol_ncias_por_Genero;
$fieldToolTips["Viol_ncias_por_Genero"] = &$fieldToolTipsViol_ncias_por_Genero;
$placeHolders["Viol_ncias_por_Genero"] = &$placeHoldersViol_ncias_por_Genero;
$page_titles["Viol_ncias_por_Genero"] = &$pageTitlesViol_ncias_por_Genero;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["Violências por Genero"] = array();

// tables which are master tables for current table (detail)
$masterTablesData["Violências por Genero"] = array();


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

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










function createSqlQuery_Viol_ncias_por_Genero()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "COUNT(genero) AS Qtd,  	genero AS Genero,  	data_registo AS Data";
$proto0["m_strFrom"] = "FROM reports";
$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_COUNT";
$proto7["m_arguments"] = array();
						$obj = new SQLField(array(
	"m_strName" => "genero",
	"m_strTable" => "reports",
	"m_srcTableName" => "Violências por Genero"
));

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

$proto6["m_sql"] = "COUNT(genero)";
$proto6["m_srcTableName"] = "Violências por Genero";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "Qtd";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "genero",
	"m_strTable" => "reports",
	"m_srcTableName" => "Violências por Genero"
));

$proto9["m_sql"] = "genero";
$proto9["m_srcTableName"] = "Violências por Genero";
$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "Genero";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "data_registo",
	"m_strTable" => "reports",
	"m_srcTableName" => "Violências por Genero"
));

$proto11["m_sql"] = "data_registo";
$proto11["m_srcTableName"] = "Violências por Genero";
$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "Data";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto13=array();
$proto13["m_link"] = "SQLL_MAIN";
			$proto14=array();
$proto14["m_strName"] = "reports";
$proto14["m_srcTableName"] = "Violências por Genero";
$proto14["m_columns"] = array();
$proto14["m_columns"][] = "id";
$proto14["m_columns"][] = "contacto";
$proto14["m_columns"][] = "genero";
$proto14["m_columns"][] = "idade";
$proto14["m_columns"][] = "morada";
$proto14["m_columns"][] = "quarteirao";
$proto14["m_columns"][] = "tipo_violacao";
$proto14["m_columns"][] = "agressor";
$proto14["m_columns"][] = "descricao";
$proto14["m_columns"][] = "data_agressao";
$proto14["m_columns"][] = "data_registo";
$proto14["m_columns"][] = "Estado";
$obj = new SQLTable($proto14);

$proto13["m_table"] = $obj;
$proto13["m_sql"] = "reports";
$proto13["m_alias"] = "";
$proto13["m_srcTableName"] = "Violências por Genero";
$proto15=array();
$proto15["m_sql"] = "";
$proto15["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
												$proto17=array();
						$obj = new SQLField(array(
	"m_strName" => "genero",
	"m_strTable" => "reports",
	"m_srcTableName" => "Violências por Genero"
));

$proto17["m_column"]=$obj;
$obj = new SQLGroupByItem($proto17);

$proto0["m_groupby"][]=$obj;
$proto0["m_orderby"] = array();
$proto0["m_srcTableName"]="Violências por Genero";		
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_Viol_ncias_por_Genero = createSqlQuery_Viol_ncias_por_Genero();


	
		;

			

$tdataViol_ncias_por_Genero[".sqlquery"] = $queryData_Viol_ncias_por_Genero;

$tableEvents["Violências por Genero"] = new eventsBase;
$tdataViol_ncias_por_Genero[".hasEvents"] = false;

?>