""); $vdata["NeedEncode"] = true; $fdata["ViewFormats"]["view"] = $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"] = ""; // 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"]["edit"] = $edata; // End Edit Formats $fdata["isSeparate"] = false; $tdatacarsmake["id"] = $fdata; // make // Custom field settings $fdata = array(); $fdata["Index"] = 2; $fdata["strName"] = "make"; $fdata["GoodName"] = "make"; $fdata["ownerTable"] = "carsmake"; $fdata["Label"] = GetFieldLabel("carsmake","make"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bEditPage"] = true; $fdata["bUpdateSelected"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["bPrinterPage"] = true; $fdata["bExportPage"] = true; $fdata["strField"] = "make"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "make"; $fdata["FieldPermissions"] = true; // 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=20"; // 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 $tdatacarsmake["make"] = $fdata; $tables_data["carsmake"]=&$tdatacarsmake; $field_labels["carsmake"] = &$fieldLabelscarsmake; $fieldToolTips["carsmake"] = &$fieldToolTipscarsmake; $page_titles["carsmake"] = &$pageTitlescarsmake; // -----------------start prepare master-details data arrays ------------------------------// // tables which are detail tables for current table (master) $detailsTablesData["carsmake"] = array(); // tables which are master tables for current table (detail) $masterTablesData["carsmake"] = array(); // -----------------end prepare master-details data arrays ------------------------------// require_once(getabspath("classes/sql.php")); function createSqlQuery_carsmake() { $proto3=array(); $proto3["m_strHead"] = "select"; $proto3["m_strFieldList"] = "id, make"; $proto3["m_strFrom"] = "FROM carsmake"; $proto3["m_strWhere"] = ""; $proto3["m_strOrderBy"] = ""; $proto3["m_strTail"] = ""; ; $proto3["cipherer"] = null; $proto5=array(); $proto5["m_sql"] = ""; $proto5["m_uniontype"] = "SQLL_UNKNOWN"; $obj = new SQLNonParsed(array( "m_sql" => "" )); $proto5["m_column"]=$obj; $proto5["m_contained"] = array(); $proto5["m_strCase"] = ""; $proto5["m_havingmode"] = false; $proto5["m_inBrackets"] = false; $proto5["m_useAlias"] = false; $obj = new SQLLogicalExpr($proto5); $proto3["m_where"] = $obj; $proto7=array(); $proto7["m_sql"] = ""; $proto7["m_uniontype"] = "SQLL_UNKNOWN"; $obj = new SQLNonParsed(array( "m_sql" => "" )); $proto7["m_column"]=$obj; $proto7["m_contained"] = array(); $proto7["m_strCase"] = ""; $proto7["m_havingmode"] = false; $proto7["m_inBrackets"] = false; $proto7["m_useAlias"] = false; $obj = new SQLLogicalExpr($proto7); $proto3["m_having"] = $obj; $proto3["m_fieldlist"] = array(); $proto9=array(); $obj = new SQLField(array( "m_strName" => "id", "m_strTable" => "carsmake", "m_srcTableName" => "carsmake" )); $proto9["m_sql"] = "id"; $proto9["m_srcTableName"] = "carsmake"; $proto9["m_expr"]=$obj; $proto9["m_alias"] = ""; $obj = new SQLFieldListItem($proto9); $proto3["m_fieldlist"][]=$obj; $proto11=array(); $obj = new SQLField(array( "m_strName" => "make", "m_strTable" => "carsmake", "m_srcTableName" => "carsmake" )); $proto11["m_sql"] = "make"; $proto11["m_srcTableName"] = "carsmake"; $proto11["m_expr"]=$obj; $proto11["m_alias"] = ""; $obj = new SQLFieldListItem($proto11); $proto3["m_fieldlist"][]=$obj; $proto3["m_fromlist"] = array(); $proto13=array(); $proto13["m_link"] = "SQLL_MAIN"; $proto14=array(); $proto14["m_strName"] = "carsmake"; $proto14["m_srcTableName"] = "carsmake"; $proto14["m_columns"] = array(); $proto14["m_columns"][] = "id"; $proto14["m_columns"][] = "make"; $obj = new SQLTable($proto14); $proto13["m_table"] = $obj; $proto13["m_sql"] = "carsmake"; $proto13["m_alias"] = ""; $proto13["m_srcTableName"] = "carsmake"; $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); $proto3["m_fromlist"][]=$obj; $proto3["m_groupby"] = array(); $proto3["m_orderby"] = array(); $proto3["m_srcTableName"]="carsmake"; $obj = new SQLQuery($proto3); return $obj; } $queryData_carsmake = createSqlQuery_carsmake(); ; $tdatacarsmake[".sqlquery"] = $queryData_carsmake; $tableEvents["carsmake"] = new eventsBase; $tdatacarsmake[".hasEvents"] = false; ?>