<?php
require_once(getabspath("classes/cipherer.php"));
$tdatainf_mov_cajas = array();
	$tdatainf_mov_cajas[".NumberOfChars"] = 80; 
	$tdatainf_mov_cajas[".ShortName"] = "inf_mov_cajas";
	$tdatainf_mov_cajas[".OwnerID"] = "";
	$tdatainf_mov_cajas[".OriginalTable"] = "ciudad";

//	field labels
$fieldLabelsinf_mov_cajas = array();
if(mlang_getcurrentlang()=="Spanish")
{
	$fieldLabelsinf_mov_cajas["Spanish"] = array();
	$fieldToolTipsinf_mov_cajas["Spanish"] = array();
	$fieldLabelsinf_mov_cajas["Spanish"]["idciudad"] = "Idciudad";
	$fieldToolTipsinf_mov_cajas["Spanish"]["idciudad"] = "";
	$fieldLabelsinf_mov_cajas["Spanish"]["nombre"] = "Nombre";
	$fieldToolTipsinf_mov_cajas["Spanish"]["nombre"] = "";
	if (count($fieldToolTipsinf_mov_cajas["Spanish"]))
		$tdatainf_mov_cajas[".isUseToolTips"] = true;
}
	
	
	$tdatainf_mov_cajas[".NCSearch"] = true;



$tdatainf_mov_cajas[".shortTableName"] = "inf_mov_cajas";
$tdatainf_mov_cajas[".nSecOptions"] = 0;
$tdatainf_mov_cajas[".recsPerRowList"] = 1;
$tdatainf_mov_cajas[".mainTableOwnerID"] = "";
$tdatainf_mov_cajas[".moveNext"] = 1;
$tdatainf_mov_cajas[".nType"] = 1;

$tdatainf_mov_cajas[".strOriginalTableName"] = "ciudad";




$tdatainf_mov_cajas[".showAddInPopup"] = false;

$tdatainf_mov_cajas[".showEditInPopup"] = false;

$tdatainf_mov_cajas[".showViewInPopup"] = false;

$tdatainf_mov_cajas[".fieldsForRegister"] = array();
	
if (!isMobile())
	$tdatainf_mov_cajas[".listAjax"] = true;
else 
	$tdatainf_mov_cajas[".listAjax"] = false;

	$tdatainf_mov_cajas[".audit"] = false;

	$tdatainf_mov_cajas[".locking"] = false;





$tdatainf_mov_cajas[".showSimpleSearchOptions"] = false;

$tdatainf_mov_cajas[".showSearchPanel"] = true;

if (isMobile())
	$tdatainf_mov_cajas[".isUseAjaxSuggest"] = false;
else 
	$tdatainf_mov_cajas[".isUseAjaxSuggest"] = true;

$tdatainf_mov_cajas[".rowHighlite"] = true;

// button handlers file names

$tdatainf_mov_cajas[".addPageEvents"] = false;

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




$tdatainf_mov_cajas[".allSearchFields"] = array();


$tdatainf_mov_cajas[".googleLikeFields"][] = "idciudad";
$tdatainf_mov_cajas[".googleLikeFields"][] = "nombre";



$tdatainf_mov_cajas[".isTableType"] = "list";

	



// Access doesn't support subqueries from the same table as main



$tdatainf_mov_cajas[".pageSize"] = 20;

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

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

$tdatainf_mov_cajas[".sqlHead"] = "SELECT idciudad,   nombre";
$tdatainf_mov_cajas[".sqlFrom"] = "FROM ciudad";
$tdatainf_mov_cajas[".sqlWhereExpr"] = "";
$tdatainf_mov_cajas[".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;
$tdatainf_mov_cajas[".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;
$tdatainf_mov_cajas[".arrGroupsPerPage"] = $arrGPP;

$tableKeysinf_mov_cajas = array();
$tableKeysinf_mov_cajas[] = "idciudad";
$tdatainf_mov_cajas[".Keys"] = $tableKeysinf_mov_cajas;

$tdatainf_mov_cajas[".listFields"] = array();

$tdatainf_mov_cajas[".viewFields"] = array();

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

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

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

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

$tdatainf_mov_cajas[".exportFields"] = array();

$tdatainf_mov_cajas[".printFields"] = array();

//	idciudad
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "idciudad";
	$fdata["GoodName"] = "idciudad";
	$fdata["ownerTable"] = "ciudad";
	$fdata["Label"] = "Idciudad"; 
	$fdata["FieldType"] = 3;
	
		$fdata["AutoInc"] = true;
	
		
		
		
		
		
		
		
		
		
		
		$fdata["strField"] = "idciudad"; 
		$fdata["FullName"] = "idciudad";
	
		
		
				
				$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");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
			//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_mov_cajas["idciudad"] = $fdata;
//	nombre
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "nombre";
	$fdata["GoodName"] = "nombre";
	$fdata["ownerTable"] = "ciudad";
	$fdata["Label"] = "Nombre"; 
	$fdata["FieldType"] = 200;
	
		
		
		
		
		
		
		
		
		
		
		
		$fdata["strField"] = "nombre"; 
		$fdata["FullName"] = "nombre";
	
		
		
				
				$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");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=45";
	
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
			//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_mov_cajas["nombre"] = $fdata;

	
$tables_data["inf_mov_cajas"]=&$tdatainf_mov_cajas;
$field_labels["inf_mov_cajas"] = &$fieldLabelsinf_mov_cajas;
$fieldToolTips["inf_mov_cajas"] = &$fieldToolTipsinf_mov_cajas;

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

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

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










function createSqlQuery_inf_mov_cajas()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "idciudad,   nombre";
$proto0["m_strFrom"] = "FROM ciudad";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto0["cipherer"] = null;
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "idciudad",
	"m_strTable" => "ciudad"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "nombre",
	"m_strTable" => "ciudad"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto9=array();
$proto9["m_link"] = "SQLL_MAIN";
			$proto10=array();
$proto10["m_strName"] = "ciudad";
$proto10["m_columns"] = array();
$proto10["m_columns"][] = "idciudad";
$proto10["m_columns"][] = "nombre";
$obj = new SQLTable($proto10);

$proto9["m_table"] = $obj;
$proto9["m_alias"] = "";
$proto11=array();
$proto11["m_sql"] = "";
$proto11["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_inf_mov_cajas = createSqlQuery_inf_mov_cajas();
		$tdatainf_mov_cajas[".sqlquery"] = $queryData_inf_mov_cajas;
	
if(isset($tdatainf_mov_cajas["field2"])){
	$tdatainf_mov_cajas["field2"]["LookupTable"] = "carscars_view";
	$tdatainf_mov_cajas["field2"]["LookupOrderBy"] = "name";
	$tdatainf_mov_cajas["field2"]["LookupType"] = 4;
	$tdatainf_mov_cajas["field2"]["LinkField"] = "email";
	$tdatainf_mov_cajas["field2"]["DisplayField"] = "name";
	$tdatainf_mov_cajas[".hasCustomViewField"] = true;
}

include_once(getabspath("include/inf_mov_cajas_events.php"));
$tableEvents["inf_mov_cajas"] = new eventclass_inf_mov_cajas;
$tdatainf_mov_cajas[".hasEvents"] = true;

$cipherer = new RunnerCipherer("inf_mov_cajas");

?>