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/bairros1_settings.php
<?php
require_once(getabspath("classes/cipherer.php"));




$tdatabairros1 = array();
	$tdatabairros1[".truncateText"] = true;
	$tdatabairros1[".NumberOfChars"] = 80;
	$tdatabairros1[".ShortName"] = "bairros1";
	$tdatabairros1[".OwnerID"] = "";
	$tdatabairros1[".OriginalTable"] = "bairros";

//	field labels
$fieldLabelsbairros1 = array();
$fieldToolTipsbairros1 = array();
$pageTitlesbairros1 = array();
$placeHoldersbairros1 = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsbairros1["English"] = array();
	$fieldToolTipsbairros1["English"] = array();
	$placeHoldersbairros1["English"] = array();
	$pageTitlesbairros1["English"] = array();
	if (count($fieldToolTipsbairros1["English"]))
		$tdatabairros1[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="")
{
	$fieldLabelsbairros1[""] = array();
	$fieldToolTipsbairros1[""] = array();
	$placeHoldersbairros1[""] = array();
	$pageTitlesbairros1[""] = array();
	if (count($fieldToolTipsbairros1[""]))
		$tdatabairros1[".isUseToolTips"] = true;
}


	$tdatabairros1[".NCSearch"] = true;



$tdatabairros1[".shortTableName"] = "bairros1";
$tdatabairros1[".nSecOptions"] = 0;
$tdatabairros1[".recsPerRowPrint"] = 1;
$tdatabairros1[".mainTableOwnerID"] = "";
$tdatabairros1[".moveNext"] = 1;
$tdatabairros1[".entityType"] = 1;

$tdatabairros1[".strOriginalTableName"] = "bairros";

	



$tdatabairros1[".showAddInPopup"] = false;

$tdatabairros1[".showEditInPopup"] = false;

$tdatabairros1[".showViewInPopup"] = false;

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


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

$tdatabairros1[".listAjax"] = false;

	$tdatabairros1[".audit"] = false;

	$tdatabairros1[".locking"] = false;


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

$tdatabairros1[".list"] = true;



$tdatabairros1[".reorderRecordsByHeader"] = true;


$tdatabairros1[".exportFormatting"] = 2;
$tdatabairros1[".exportDelimiter"] = ",";
		

$tdatabairros1[".import"] = true;

$tdatabairros1[".exportTo"] = true;

$tdatabairros1[".printFriendly"] = true;


$tdatabairros1[".showSimpleSearchOptions"] = false;

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

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

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

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

$tdatabairros1[".isUseAjaxSuggest"] = true;

$tdatabairros1[".rowHighlite"] = true;





$tdatabairros1[".ajaxCodeSnippetAdded"] = false;

$tdatabairros1[".buttonsAdded"] = false;

$tdatabairros1[".addPageEvents"] = false;

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





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

$tdatabairros1[".allSearchFields"][] = "bairro";
	

$tdatabairros1[".googleLikeFields"] = array();
$tdatabairros1[".googleLikeFields"][] = "bairro";


$tdatabairros1[".advSearchFields"] = array();
$tdatabairros1[".advSearchFields"][] = "bairro";

$tdatabairros1[".tableType"] = "list";

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

$tdatabairros1[".nPrinterSplitRecords"] = 40;

$tdatabairros1[".nPrinterPDFSplitRecords"] = 40;



$tdatabairros1[".geocodingEnabled"] = false;





$tdatabairros1[".listGridLayout"] = 3;





// view page pdf

// print page pdf


$tdatabairros1[".pageSize"] = 20;

$tdatabairros1[".warnLeavingPages"] = true;



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

$tdatabairros1[".orderindexes"] = array();
	$tdatabairros1[".orderindexes"][] = array(1, (1 ? "ASC" : "DESC"), "bairro");


$tdatabairros1[".sqlHead"] = "SELECT bairro";
$tdatabairros1[".sqlFrom"] = "FROM Bairros";
$tdatabairros1[".sqlWhereExpr"] = "";
$tdatabairros1[".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;
$tdatabairros1[".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;
$tdatabairros1[".arrGroupsPerPage"] = $arrGPP;

$tdatabairros1[".highlightSearchResults"] = true;

$tableKeysbairros1 = array();
$tdatabairros1[".Keys"] = $tableKeysbairros1;

$tdatabairros1[".listFields"] = array();
$tdatabairros1[".listFields"][] = "bairro";

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


$tdatabairros1[".viewFields"] = array();
$tdatabairros1[".viewFields"][] = "bairro";

$tdatabairros1[".addFields"] = array();
$tdatabairros1[".addFields"][] = "bairro";

$tdatabairros1[".masterListFields"] = array();
$tdatabairros1[".masterListFields"][] = "bairro";

$tdatabairros1[".inlineAddFields"] = array();
$tdatabairros1[".inlineAddFields"][] = "bairro";

$tdatabairros1[".editFields"] = array();
$tdatabairros1[".editFields"][] = "bairro";

$tdatabairros1[".inlineEditFields"] = array();
$tdatabairros1[".inlineEditFields"][] = "bairro";

$tdatabairros1[".updateSelectedFields"] = array();
$tdatabairros1[".updateSelectedFields"][] = "bairro";


$tdatabairros1[".exportFields"] = array();
$tdatabairros1[".exportFields"][] = "bairro";

$tdatabairros1[".importFields"] = array();
$tdatabairros1[".importFields"][] = "bairro";

$tdatabairros1[".printFields"] = array();
$tdatabairros1[".printFields"][] = "bairro";


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

	
	
	
			
		$fdata["bListPage"] = true;

		$fdata["bAddPage"] = true;

		$fdata["bInlineAdd"] = true;

		$fdata["bEditPage"] = true;

		$fdata["bInlineEdit"] = true;

		$fdata["bUpdateSelected"] = true;


		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

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

	
	
				$fdata["FieldPermissions"] = true;

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

		
	
	$fdata["ViewFormats"]["view"] = $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=50";

		$edata["controlWidth"] = 200;

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

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $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




	$tdatabairros1["bairro"] = $fdata;


$tables_data["bairros1"]=&$tdatabairros1;
$field_labels["bairros1"] = &$fieldLabelsbairros1;
$fieldToolTips["bairros1"] = &$fieldToolTipsbairros1;
$placeHolders["bairros1"] = &$placeHoldersbairros1;
$page_titles["bairros1"] = &$pageTitlesbairros1;

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

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


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

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










function createSqlQuery_bairros1()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "bairro";
$proto0["m_strFrom"] = "FROM Bairros";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "ORDER BY bairro";
	
		;
			$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" => "bairro",
	"m_strTable" => "bairros",
	"m_srcTableName" => "bairros1"
));

$proto6["m_sql"] = "bairro";
$proto6["m_srcTableName"] = "bairros1";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto8=array();
$proto8["m_link"] = "SQLL_MAIN";
			$proto9=array();
$proto9["m_strName"] = "bairros";
$proto9["m_srcTableName"] = "bairros1";
$proto9["m_columns"] = array();
$proto9["m_columns"][] = "id";
$proto9["m_columns"][] = "bairro";
$proto9["m_columns"][] = "distrito";
$obj = new SQLTable($proto9);

$proto8["m_table"] = $obj;
$proto8["m_sql"] = "Bairros";
$proto8["m_alias"] = "";
$proto8["m_srcTableName"] = "bairros1";
$proto10=array();
$proto10["m_sql"] = "";
$proto10["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
												$proto12=array();
						$obj = new SQLField(array(
	"m_strName" => "bairro",
	"m_strTable" => "bairros",
	"m_srcTableName" => "bairros1"
));

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

$proto0["m_orderby"][]=$obj;					
$proto0["m_srcTableName"]="bairros1";		
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_bairros1 = createSqlQuery_bairros1();


	
		;

	

$tdatabairros1[".sqlquery"] = $queryData_bairros1;

$tableEvents["bairros1"] = new eventsBase;
$tdatabairros1[".hasEvents"] = false;

?>