""); $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; $tdatacarscar["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("carscar","Date_Listed"); $fdata["FieldType"] = 7; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bViewPage"] = 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; $tdatacarscar["Date Listed"] = $fdata; // descr // Custom field settings $fdata = array(); $fdata["Index"] = 3; $fdata["strName"] = "descr"; $fdata["GoodName"] = "descr"; $fdata["ownerTable"] = "carscars"; $fdata["Label"] = GetFieldLabel("carscar","descr"); $fdata["FieldType"] = 201; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bViewPage"] = 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"] = 60; $edata["nCols"] = 240; // 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; $tdatacarscar["descr"] = $fdata; // category // Custom field settings $fdata = array(); $fdata["Index"] = 4; $fdata["strName"] = "category"; $fdata["GoodName"] = "category"; $fdata["ownerTable"] = "carscars"; $fdata["Label"] = GetFieldLabel("carscar","category"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bAddPage"] = 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["SelectSize"] = 1; // End Lookup Settings $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; $tdatacarscar["category"] = $fdata; $tables_data["carscar"]=&$tdatacarscar; $field_labels["carscar"] = &$fieldLabelscarscar; $fieldToolTips["carscar"] = &$fieldToolTipscarscar; $page_titles["carscar"] = &$pageTitlescarscar; // -----------------start prepare master-details data arrays ------------------------------// // tables which are detail tables for current table (master) $detailsTablesData["carscar"] = array(); // carsmore_photo $dIndex = 0; $detailsParam = array(); $detailsParam["dDataSourceTable"]="carsmore_photo"; $detailsParam["dOriginalTable"] = "carspictures"; $detailsParam["proceedLink"] = true; $detailsParam["dType"]=PAGE_LIST; $detailsParam["dShortTable"] = "carsmore_photo"; $detailsParam["dCaptionTable"] = GetTableCaption("carsmore_photo"); $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["carscar"][$dIndex] = $detailsParam; $detailsTablesData["carscar"][$dIndex]["masterKeys"] = array(); $detailsTablesData["carscar"][$dIndex]["masterKeys"][]="id"; $detailsTablesData["carscar"][$dIndex]["detailKeys"] = array(); $detailsTablesData["carscar"][$dIndex]["detailKeys"][]="CarID"; // tables which are master tables for current table (detail) $masterTablesData["carscar"] = array(); // -----------------end prepare master-details data arrays ------------------------------// require_once(getabspath("classes/sql.php")); function createSqlQuery_carscar() { $proto0=array(); $proto0["m_strHead"] = "select"; $proto0["m_strFieldList"] = "id, `Date Listed`, descr, category"; $proto0["m_strFrom"] = "FROM carscars"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = ""; $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" => "carscar" )); $proto6["m_sql"] = "id"; $proto6["m_srcTableName"] = "carscar"; $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" => "carscar" )); $proto8["m_sql"] = "`Date Listed`"; $proto8["m_srcTableName"] = "carscar"; $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" => "carscar" )); $proto10["m_sql"] = "descr"; $proto10["m_srcTableName"] = "carscar"; $proto10["m_expr"]=$obj; $proto10["m_alias"] = ""; $obj = new SQLFieldListItem($proto10); $proto0["m_fieldlist"][]=$obj; $proto12=array(); $obj = new SQLField(array( "m_strName" => "category", "m_strTable" => "carscars", "m_srcTableName" => "carscar" )); $proto12["m_sql"] = "category"; $proto12["m_srcTableName"] = "carscar"; $proto12["m_expr"]=$obj; $proto12["m_alias"] = ""; $obj = new SQLFieldListItem($proto12); $proto0["m_fieldlist"][]=$obj; $proto0["m_fromlist"] = array(); $proto14=array(); $proto14["m_link"] = "SQLL_MAIN"; $proto15=array(); $proto15["m_strName"] = "carscars"; $proto15["m_srcTableName"] = "carscar"; $proto15["m_columns"] = array(); $proto15["m_columns"][] = "category"; $proto15["m_columns"][] = "color"; $proto15["m_columns"][] = "Date Listed"; $proto15["m_columns"][] = "descr"; $proto15["m_columns"][] = "EPACity"; $proto15["m_columns"][] = "EPAHighway"; $proto15["m_columns"][] = "features"; $proto15["m_columns"][] = "Horsepower"; $proto15["m_columns"][] = "id"; $proto15["m_columns"][] = "Make"; $proto15["m_columns"][] = "Model"; $proto15["m_columns"][] = "Phone #"; $proto15["m_columns"][] = "Picture"; $proto15["m_columns"][] = "Price"; $proto15["m_columns"][] = "UserID"; $proto15["m_columns"][] = "YearOfMake"; $proto15["m_columns"][] = "zipcode"; $obj = new SQLTable($proto15); $proto14["m_table"] = $obj; $proto14["m_sql"] = "carscars"; $proto14["m_alias"] = ""; $proto14["m_srcTableName"] = "carscar"; $proto16=array(); $proto16["m_sql"] = ""; $proto16["m_uniontype"] = "SQLL_UNKNOWN"; $obj = new SQLNonParsed(array( "m_sql" => "" )); $proto16["m_column"]=$obj; $proto16["m_contained"] = array(); $proto16["m_strCase"] = ""; $proto16["m_havingmode"] = false; $proto16["m_inBrackets"] = false; $proto16["m_useAlias"] = false; $obj = new SQLLogicalExpr($proto16); $proto14["m_joinon"] = $obj; $obj = new SQLFromListItem($proto14); $proto0["m_fromlist"][]=$obj; $proto0["m_groupby"] = array(); $proto0["m_orderby"] = array(); $proto0["m_srcTableName"]="carscar"; $obj = new SQLQuery($proto0); return $obj; } $queryData_carscar = createSqlQuery_carscar(); ; $tdatacarscar[".sqlquery"] = $queryData_carscar; include_once(getabspath("include/carscar_events.php")); $tableEvents["carscar"] = new eventclass_carscar; $tdatacarscar[".hasEvents"] = true; ?>