""); $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"] = "number"; $edata["EditParams"] = ""; $edata["controlWidth"] = 200; // Begin validation $edata["validateAs"] = array(); $edata["validateAs"]["basicValidate"] = array(); $edata["validateAs"]["customMessages"] = array(); $edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number"); // End validation $fdata["EditFormats"]["edit"] = $edata; // End Edit Formats $fdata["isSeparate"] = false; $tdataform["CarID"] = $fdata; // id // Custom field settings $fdata = array(); $fdata["Index"] = 2; $fdata["strName"] = "id"; $fdata["GoodName"] = "id"; $fdata["ownerTable"] = "form"; $fdata["Label"] = GetFieldLabel("form","id"); $fdata["FieldType"] = 3; $fdata["AutoInc"] = true; $fdata["bAddPage"] = true; $fdata["strField"] = "id"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "id"; $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["IsRequired"] = true; $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $edata["HTML5InuptType"] = "number"; $edata["EditParams"] = ""; $edata["controlWidth"] = 200; // 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; $tdataform["id"] = $fdata; // pic0 // Custom field settings $fdata = array(); $fdata["Index"] = 3; $fdata["strName"] = "pic0"; $fdata["GoodName"] = "pic0"; $fdata["ownerTable"] = "form"; $fdata["Label"] = GetFieldLabel("form","pic0"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bEditPage"] = true; $fdata["bUpdateSelected"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "pic0"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "pic0"; $fdata["FieldPermissions"] = true; $fdata["UploadFolder"] = "files"; // Begin View Formats $fdata["ViewFormats"] = array(); $vdata = array("ViewFormat" => "File-based Image"); $vdata["ImageWidth"] = 150; $vdata["ImageHeight"] = 0; $fdata["ViewFormats"]["view"] = $vdata; // End View Formats // Begin Edit Formats $fdata["EditFormats"] = array(); $edata = array("EditFormat" => "Document upload"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $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 $tdataform["pic0"] = $fdata; // pic1 // Custom field settings $fdata = array(); $fdata["Index"] = 4; $fdata["strName"] = "pic1"; $fdata["GoodName"] = "pic1"; $fdata["ownerTable"] = "form"; $fdata["Label"] = GetFieldLabel("form","pic1"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bEditPage"] = true; $fdata["bUpdateSelected"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "pic1"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "pic1"; $fdata["FieldPermissions"] = true; $fdata["UploadFolder"] = "files"; // Begin View Formats $fdata["ViewFormats"] = array(); $vdata = array("ViewFormat" => "File-based Image"); $vdata["ImageWidth"] = 150; $vdata["ImageHeight"] = 0; $fdata["ViewFormats"]["view"] = $vdata; // End View Formats // Begin Edit Formats $fdata["EditFormats"] = array(); $edata = array("EditFormat" => "Document upload"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $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 $tdataform["pic1"] = $fdata; // pic2 // Custom field settings $fdata = array(); $fdata["Index"] = 5; $fdata["strName"] = "pic2"; $fdata["GoodName"] = "pic2"; $fdata["ownerTable"] = "form"; $fdata["Label"] = GetFieldLabel("form","pic2"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bEditPage"] = true; $fdata["bUpdateSelected"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "pic2"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "pic2"; $fdata["FieldPermissions"] = true; $fdata["UploadFolder"] = "files"; // Begin View Formats $fdata["ViewFormats"] = array(); $vdata = array("ViewFormat" => "File-based Image"); $vdata["ImageWidth"] = 150; $vdata["ImageHeight"] = 0; $fdata["ViewFormats"]["view"] = $vdata; // End View Formats // Begin Edit Formats $fdata["EditFormats"] = array(); $edata = array("EditFormat" => "Document upload"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $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 $tdataform["pic2"] = $fdata; // pic3 // Custom field settings $fdata = array(); $fdata["Index"] = 6; $fdata["strName"] = "pic3"; $fdata["GoodName"] = "pic3"; $fdata["ownerTable"] = "form"; $fdata["Label"] = GetFieldLabel("form","pic3"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bAddPage"] = true; $fdata["bEditPage"] = true; $fdata["bUpdateSelected"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "pic3"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "pic3"; $fdata["FieldPermissions"] = true; $fdata["UploadFolder"] = "files"; // Begin View Formats $fdata["ViewFormats"] = array(); $vdata = array("ViewFormat" => "File-based Image"); $vdata["ImageWidth"] = 150; $vdata["ImageHeight"] = 0; $fdata["ViewFormats"]["view"] = $vdata; // End View Formats // Begin Edit Formats $fdata["EditFormats"] = array(); $edata = array("EditFormat" => "Document upload"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $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 $tdataform["pic3"] = $fdata; // pic4 // Custom field settings $fdata = array(); $fdata["Index"] = 7; $fdata["strName"] = "pic4"; $fdata["GoodName"] = "pic4"; $fdata["ownerTable"] = "form"; $fdata["Label"] = GetFieldLabel("form","pic4"); $fdata["FieldType"] = 200; $fdata["strField"] = "pic4"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "pic4"; $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=250"; $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; $tdataform["pic4"] = $fdata; // pic5 // Custom field settings $fdata = array(); $fdata["Index"] = 8; $fdata["strName"] = "pic5"; $fdata["GoodName"] = "pic5"; $fdata["ownerTable"] = "form"; $fdata["Label"] = GetFieldLabel("form","pic5"); $fdata["FieldType"] = 200; $fdata["strField"] = "pic5"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "pic5"; $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=250"; $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; $tdataform["pic5"] = $fdata; $tables_data["form"]=&$tdataform; $field_labels["form"] = &$fieldLabelsform; $fieldToolTips["form"] = &$fieldToolTipsform; $page_titles["form"] = &$pageTitlesform; // -----------------start prepare master-details data arrays ------------------------------// // tables which are detail tables for current table (master) $detailsTablesData["form"] = array(); // tables which are master tables for current table (detail) $masterTablesData["form"] = array(); // -----------------end prepare master-details data arrays ------------------------------// require_once(getabspath("classes/sql.php")); function createSqlQuery_form() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; $proto0["m_strFieldList"] = "CarID, id, pic0, pic1, pic2, pic3, pic4, pic5"; $proto0["m_strFrom"] = "FROM form"; $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" => "CarID", "m_strTable" => "form", "m_srcTableName" => "form" )); $proto6["m_sql"] = "CarID"; $proto6["m_srcTableName"] = "form"; $proto6["m_expr"]=$obj; $proto6["m_alias"] = ""; $obj = new SQLFieldListItem($proto6); $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "id", "m_strTable" => "form", "m_srcTableName" => "form" )); $proto8["m_sql"] = "id"; $proto8["m_srcTableName"] = "form"; $proto8["m_expr"]=$obj; $proto8["m_alias"] = ""; $obj = new SQLFieldListItem($proto8); $proto0["m_fieldlist"][]=$obj; $proto10=array(); $obj = new SQLField(array( "m_strName" => "pic0", "m_strTable" => "form", "m_srcTableName" => "form" )); $proto10["m_sql"] = "pic0"; $proto10["m_srcTableName"] = "form"; $proto10["m_expr"]=$obj; $proto10["m_alias"] = ""; $obj = new SQLFieldListItem($proto10); $proto0["m_fieldlist"][]=$obj; $proto12=array(); $obj = new SQLField(array( "m_strName" => "pic1", "m_strTable" => "form", "m_srcTableName" => "form" )); $proto12["m_sql"] = "pic1"; $proto12["m_srcTableName"] = "form"; $proto12["m_expr"]=$obj; $proto12["m_alias"] = ""; $obj = new SQLFieldListItem($proto12); $proto0["m_fieldlist"][]=$obj; $proto14=array(); $obj = new SQLField(array( "m_strName" => "pic2", "m_strTable" => "form", "m_srcTableName" => "form" )); $proto14["m_sql"] = "pic2"; $proto14["m_srcTableName"] = "form"; $proto14["m_expr"]=$obj; $proto14["m_alias"] = ""; $obj = new SQLFieldListItem($proto14); $proto0["m_fieldlist"][]=$obj; $proto16=array(); $obj = new SQLField(array( "m_strName" => "pic3", "m_strTable" => "form", "m_srcTableName" => "form" )); $proto16["m_sql"] = "pic3"; $proto16["m_srcTableName"] = "form"; $proto16["m_expr"]=$obj; $proto16["m_alias"] = ""; $obj = new SQLFieldListItem($proto16); $proto0["m_fieldlist"][]=$obj; $proto18=array(); $obj = new SQLField(array( "m_strName" => "pic4", "m_strTable" => "form", "m_srcTableName" => "form" )); $proto18["m_sql"] = "pic4"; $proto18["m_srcTableName"] = "form"; $proto18["m_expr"]=$obj; $proto18["m_alias"] = ""; $obj = new SQLFieldListItem($proto18); $proto0["m_fieldlist"][]=$obj; $proto20=array(); $obj = new SQLField(array( "m_strName" => "pic5", "m_strTable" => "form", "m_srcTableName" => "form" )); $proto20["m_sql"] = "pic5"; $proto20["m_srcTableName"] = "form"; $proto20["m_expr"]=$obj; $proto20["m_alias"] = ""; $obj = new SQLFieldListItem($proto20); $proto0["m_fieldlist"][]=$obj; $proto0["m_fromlist"] = array(); $proto22=array(); $proto22["m_link"] = "SQLL_MAIN"; $proto23=array(); $proto23["m_strName"] = "form"; $proto23["m_srcTableName"] = "form"; $proto23["m_columns"] = array(); $proto23["m_columns"][] = "CarID"; $proto23["m_columns"][] = "id"; $proto23["m_columns"][] = "pic0"; $proto23["m_columns"][] = "pic1"; $proto23["m_columns"][] = "pic2"; $proto23["m_columns"][] = "pic3"; $proto23["m_columns"][] = "pic4"; $proto23["m_columns"][] = "pic5"; $proto23["m_columns"][] = "pic6"; $proto23["m_columns"][] = "pic7"; $proto23["m_columns"][] = "pic8"; $proto23["m_columns"][] = "pic9"; $obj = new SQLTable($proto23); $proto22["m_table"] = $obj; $proto22["m_sql"] = "form"; $proto22["m_alias"] = ""; $proto22["m_srcTableName"] = "form"; $proto24=array(); $proto24["m_sql"] = ""; $proto24["m_uniontype"] = "SQLL_UNKNOWN"; $obj = new SQLNonParsed(array( "m_sql" => "" )); $proto24["m_column"]=$obj; $proto24["m_contained"] = array(); $proto24["m_strCase"] = ""; $proto24["m_havingmode"] = false; $proto24["m_inBrackets"] = false; $proto24["m_useAlias"] = false; $obj = new SQLLogicalExpr($proto24); $proto22["m_joinon"] = $obj; $obj = new SQLFromListItem($proto22); $proto0["m_fromlist"][]=$obj; $proto0["m_groupby"] = array(); $proto0["m_orderby"] = array(); $proto0["m_srcTableName"]="form"; $obj = new SQLQuery($proto0); return $obj; } $queryData_form = createSqlQuery_form(); ; $tdataform[".sqlquery"] = $queryData_form; $tableEvents["form"] = new eventsBase; $tdataform[".hasEvents"] = false; ?>