""); $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; $tdatacarsadmin_cars["id"] = $fdata; // Date Listed // Custom field settings $fdata = array(); $fdata["Index"] = 2; $fdata["strName"] = "Date Listed"; $fdata["GoodName"] = "Date_Listed"; $fdata["ownerTable"] = "carscars"; $fdata["Label"] = GetFieldLabel("carsadmin_cars","Date_Listed"); $fdata["FieldType"] = 7; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bEditPage"] = true; $fdata["bUpdateSelected"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "Date Listed"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "`Date Listed`"; $fdata["FieldPermissions"] = true; $fdata["UploadFolder"] = "files"; // Begin View Formats $fdata["ViewFormats"] = array(); $vdata = array("ViewFormat" => "Short Date"); $vdata["NeedEncode"] = true; $fdata["ViewFormats"]["view"] = $vdata; // End View Formats // Begin Edit Formats $fdata["EditFormats"] = array(); $edata = array("EditFormat" => "Date"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $edata["DateEditType"] = 13; $edata["InitialYearFactor"] = 100; $edata["LastYearFactor"] = 10; // 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"] = "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 $tdatacarsadmin_cars["Date Listed"] = $fdata; // descr // Custom field settings $fdata = array(); $fdata["Index"] = 3; $fdata["strName"] = "descr"; $fdata["GoodName"] = "descr"; $fdata["ownerTable"] = "carscars"; $fdata["Label"] = GetFieldLabel("carsadmin_cars","descr"); $fdata["FieldType"] = 201; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bEditPage"] = true; $fdata["bUpdateSelected"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "descr"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "descr"; $fdata["FieldPermissions"] = true; $fdata["UploadFolder"] = "files"; // Begin View Formats $fdata["ViewFormats"] = array(); $vdata = array("ViewFormat" => "HTML"); $fdata["ViewFormats"]["view"] = $vdata; // End View Formats // Begin Edit Formats $fdata["EditFormats"] = array(); $edata = array("EditFormat" => "Text area"); $edata["UseRTE"] = true; $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $edata["nRows"] = 200; $edata["nCols"] = 600; // 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 $tdatacarsadmin_cars["descr"] = $fdata; // Picture // Custom field settings $fdata = array(); $fdata["Index"] = 4; $fdata["strName"] = "Picture"; $fdata["GoodName"] = "Picture"; $fdata["ownerTable"] = "carscars"; $fdata["Label"] = GetFieldLabel("carsadmin_cars","Picture"); $fdata["FieldType"] = 128; $fdata["bAddPage"] = true; $fdata["bEditPage"] = true; $fdata["bUpdateSelected"] = true; $fdata["bViewPage"] = true; $fdata["strField"] = "Picture"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "Picture"; $fdata["FieldPermissions"] = true; $fdata["UploadFolder"] = "files"; // Begin View Formats $fdata["ViewFormats"] = array(); $vdata = array("ViewFormat" => "Database Image"); $vdata["ImageWidth"] = 270; $vdata["ImageHeight"] = 0; $vdata["NeedEncode"] = true; $fdata["ViewFormats"]["view"] = $vdata; // End View Formats // Begin Edit Formats $fdata["EditFormats"] = array(); $edata = array("EditFormat" => "Database image"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; // 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; $tdatacarsadmin_cars["Picture"] = $fdata; // category // Custom field settings $fdata = array(); $fdata["Index"] = 5; $fdata["strName"] = "category"; $fdata["GoodName"] = "category"; $fdata["ownerTable"] = "carscars"; $fdata["Label"] = GetFieldLabel("carsadmin_cars","category"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bEditPage"] = true; $fdata["bUpdateSelected"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "category"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "category"; $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" => "Lookup wizard"); // Begin Lookup settings $edata["LookupType"] = 0; $edata["autoCompleteFieldsOnEdit"] = 0; $edata["autoCompleteFields"] = array(); $edata["LCType"] = 0; $edata["LookupValues"] = array(); $edata["LookupValues"][] = "Y"; $edata["LookupValues"][] = "N"; $edata["LookupValues"][] = ""; $edata["SelectSize"] = 1; // End Lookup Settings $edata["IsRequired"] = true; $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; // Begin validation $edata["validateAs"] = array(); $edata["validateAs"]["basicValidate"] = array(); $edata["validateAs"]["customMessages"] = array(); $edata["validateAs"]["basicValidate"][] = "IsRequired"; // 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 $tdatacarsadmin_cars["category"] = $fdata; $tables_data["carsadmin_cars"]=&$tdatacarsadmin_cars; $field_labels["carsadmin_cars"] = &$fieldLabelscarsadmin_cars; $fieldToolTips["carsadmin_cars"] = &$fieldToolTipscarsadmin_cars; $page_titles["carsadmin_cars"] = &$pageTitlescarsadmin_cars; // -----------------start prepare master-details data arrays ------------------------------// // tables which are detail tables for current table (master) $detailsTablesData["carsadmin_cars"] = array(); // carspictures $dIndex = 0; $detailsParam = array(); $detailsParam["dDataSourceTable"]="carspictures"; $detailsParam["dOriginalTable"] = "carspictures"; $detailsParam["proceedLink"] = true; $detailsParam["dType"]=PAGE_LIST; $detailsParam["dShortTable"] = "carspictures"; $detailsParam["dCaptionTable"] = GetTableCaption("carspictures"); $detailsParam["masterKeys"] =array(); $detailsParam["detailKeys"] =array(); /* $detailsParam["dispChildCount"] = "0"; */ $detailsParam["dispChildCount"] = "0"; $detailsParam["hideChild"] = false; $detailsParam["previewOnList"] = "0"; $detailsParam["previewOnAdd"] = 0; $detailsParam["previewOnEdit"] = 0; $detailsParam["previewOnView"] = 0; $detailsTablesData["carsadmin_cars"][$dIndex] = $detailsParam; $detailsTablesData["carsadmin_cars"][$dIndex]["masterKeys"] = array(); $detailsTablesData["carsadmin_cars"][$dIndex]["masterKeys"][]="id"; $detailsTablesData["carsadmin_cars"][$dIndex]["detailKeys"] = array(); $detailsTablesData["carsadmin_cars"][$dIndex]["detailKeys"][]="CarID"; // tables which are master tables for current table (detail) $masterTablesData["carsadmin_cars"] = array(); // -----------------end prepare master-details data arrays ------------------------------// require_once(getabspath("classes/sql.php")); function createSqlQuery_carsadmin_cars() { $proto0=array(); $proto0["m_strHead"] = "select"; $proto0["m_strFieldList"] = "id, `Date Listed`, descr, Picture, category"; $proto0["m_strFrom"] = "FROM carscars"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = "ORDER BY `Date Listed` DESC"; $proto0["m_strTail"] = ""; ; $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" => "id", "m_strTable" => "carscars", "m_srcTableName" => "carsadmin_cars" )); $proto6["m_sql"] = "id"; $proto6["m_srcTableName"] = "carsadmin_cars"; $proto6["m_expr"]=$obj; $proto6["m_alias"] = ""; $obj = new SQLFieldListItem($proto6); $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "Date Listed", "m_strTable" => "carscars", "m_srcTableName" => "carsadmin_cars" )); $proto8["m_sql"] = "`Date Listed`"; $proto8["m_srcTableName"] = "carsadmin_cars"; $proto8["m_expr"]=$obj; $proto8["m_alias"] = ""; $obj = new SQLFieldListItem($proto8); $proto0["m_fieldlist"][]=$obj; $proto10=array(); $obj = new SQLField(array( "m_strName" => "descr", "m_strTable" => "carscars", "m_srcTableName" => "carsadmin_cars" )); $proto10["m_sql"] = "descr"; $proto10["m_srcTableName"] = "carsadmin_cars"; $proto10["m_expr"]=$obj; $proto10["m_alias"] = ""; $obj = new SQLFieldListItem($proto10); $proto0["m_fieldlist"][]=$obj; $proto12=array(); $obj = new SQLField(array( "m_strName" => "Picture", "m_strTable" => "carscars", "m_srcTableName" => "carsadmin_cars" )); $proto12["m_sql"] = "Picture"; $proto12["m_srcTableName"] = "carsadmin_cars"; $proto12["m_expr"]=$obj; $proto12["m_alias"] = ""; $obj = new SQLFieldListItem($proto12); $proto0["m_fieldlist"][]=$obj; $proto14=array(); $obj = new SQLField(array( "m_strName" => "category", "m_strTable" => "carscars", "m_srcTableName" => "carsadmin_cars" )); $proto14["m_sql"] = "category"; $proto14["m_srcTableName"] = "carsadmin_cars"; $proto14["m_expr"]=$obj; $proto14["m_alias"] = ""; $obj = new SQLFieldListItem($proto14); $proto0["m_fieldlist"][]=$obj; $proto0["m_fromlist"] = array(); $proto16=array(); $proto16["m_link"] = "SQLL_MAIN"; $proto17=array(); $proto17["m_strName"] = "carscars"; $proto17["m_srcTableName"] = "carsadmin_cars"; $proto17["m_columns"] = array(); $proto17["m_columns"][] = "category"; $proto17["m_columns"][] = "color"; $proto17["m_columns"][] = "Date Listed"; $proto17["m_columns"][] = "descr"; $proto17["m_columns"][] = "EPACity"; $proto17["m_columns"][] = "EPAHighway"; $proto17["m_columns"][] = "features"; $proto17["m_columns"][] = "Horsepower"; $proto17["m_columns"][] = "id"; $proto17["m_columns"][] = "Make"; $proto17["m_columns"][] = "Model"; $proto17["m_columns"][] = "Phone #"; $proto17["m_columns"][] = "Picture"; $proto17["m_columns"][] = "Price"; $proto17["m_columns"][] = "UserID"; $proto17["m_columns"][] = "YearOfMake"; $proto17["m_columns"][] = "zipcode"; $obj = new SQLTable($proto17); $proto16["m_table"] = $obj; $proto16["m_sql"] = "carscars"; $proto16["m_alias"] = ""; $proto16["m_srcTableName"] = "carsadmin_cars"; $proto18=array(); $proto18["m_sql"] = ""; $proto18["m_uniontype"] = "SQLL_UNKNOWN"; $obj = new SQLNonParsed(array( "m_sql" => "" )); $proto18["m_column"]=$obj; $proto18["m_contained"] = array(); $proto18["m_strCase"] = ""; $proto18["m_havingmode"] = false; $proto18["m_inBrackets"] = false; $proto18["m_useAlias"] = false; $obj = new SQLLogicalExpr($proto18); $proto16["m_joinon"] = $obj; $obj = new SQLFromListItem($proto16); $proto0["m_fromlist"][]=$obj; $proto0["m_groupby"] = array(); $proto0["m_orderby"] = array(); $proto20=array(); $obj = new SQLField(array( "m_strName" => "Date Listed", "m_strTable" => "carscars", "m_srcTableName" => "carsadmin_cars" )); $proto20["m_column"]=$obj; $proto20["m_bAsc"] = 0; $proto20["m_nColumn"] = 0; $obj = new SQLOrderByItem($proto20); $proto0["m_orderby"][]=$obj; $proto0["m_srcTableName"]="carsadmin_cars"; $obj = new SQLQuery($proto0); return $obj; } $queryData_carsadmin_cars = createSqlQuery_carsadmin_cars(); ; $tdatacarsadmin_cars[".sqlquery"] = $queryData_carsadmin_cars; include_once(getabspath("include/carsadmin_cars_events.php")); $tableEvents["carsadmin_cars"] = new eventclass_carsadmin_cars; $tdatacarsadmin_cars[".hasEvents"] = true; ?>