""); $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; // 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 $tdatars_audit["id"] = $fdata; // datetime // Custom field settings $fdata = array(); $fdata["Index"] = 2; $fdata["strName"] = "datetime"; $fdata["GoodName"] = "datetime"; $fdata["ownerTable"] = "rs_audit"; $fdata["Label"] = GetFieldLabel("rs_audit","datetime"); $fdata["FieldType"] = 135; $fdata["bListPage"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "datetime"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "`datetime`"; $fdata["FieldPermissions"] = true; $fdata["UploadFolder"] = "files"; // Begin View Formats $fdata["ViewFormats"] = array(); $vdata = array("ViewFormat" => "Datetime"); $vdata["NeedEncode"] = true; $fdata["ViewFormats"]["view"] = $vdata; // End View Formats // Begin Edit Formats $fdata["EditFormats"] = array(); $edata = array("EditFormat" => "Date"); $edata["IsRequired"] = true; $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $edata["DateEditType"] = 13; $edata["InitialYearFactor"] = 10; $edata["LastYearFactor"] = 10; $edata["controlWidth"] = 200; // 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"] = "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 $tdatars_audit["datetime"] = $fdata; // ip // Custom field settings $fdata = array(); $fdata["Index"] = 3; $fdata["strName"] = "ip"; $fdata["GoodName"] = "ip"; $fdata["ownerTable"] = "rs_audit"; $fdata["Label"] = GetFieldLabel("rs_audit","ip"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "ip"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "ip"; $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" => "Text field"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $edata["HTML5InuptType"] = "text"; $edata["EditParams"] = ""; $edata["EditParams"].= " maxlength=40"; $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 $tdatars_audit["ip"] = $fdata; // user // Custom field settings $fdata = array(); $fdata["Index"] = 4; $fdata["strName"] = "user"; $fdata["GoodName"] = "user"; $fdata["ownerTable"] = "rs_audit"; $fdata["Label"] = GetFieldLabel("rs_audit","user"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "user"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "`user`"; $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" => "Text field"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $edata["HTML5InuptType"] = "text"; $edata["EditParams"] = ""; $edata["EditParams"].= " maxlength=300"; $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 $tdatars_audit["user"] = $fdata; // table // Custom field settings $fdata = array(); $fdata["Index"] = 5; $fdata["strName"] = "table"; $fdata["GoodName"] = "table"; $fdata["ownerTable"] = "rs_audit"; $fdata["Label"] = GetFieldLabel("rs_audit","table"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "table"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "`table`"; $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" => "Text field"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $edata["HTML5InuptType"] = "text"; $edata["EditParams"] = ""; $edata["EditParams"].= " maxlength=300"; $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 $tdatars_audit["table"] = $fdata; // action // Custom field settings $fdata = array(); $fdata["Index"] = 6; $fdata["strName"] = "action"; $fdata["GoodName"] = "action"; $fdata["ownerTable"] = "rs_audit"; $fdata["Label"] = GetFieldLabel("rs_audit","action"); $fdata["FieldType"] = 200; $fdata["bListPage"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "action"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "`action`"; $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" => "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; // 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 $tdatars_audit["action"] = $fdata; // description // Custom field settings $fdata = array(); $fdata["Index"] = 7; $fdata["strName"] = "description"; $fdata["GoodName"] = "description"; $fdata["ownerTable"] = "rs_audit"; $fdata["Label"] = GetFieldLabel("rs_audit","description"); $fdata["FieldType"] = 201; $fdata["bListPage"] = true; $fdata["bViewPage"] = true; $fdata["bAdvancedSearch"] = true; $fdata["strField"] = "description"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "description"; $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" => "Text area"); $edata["acceptFileTypes"] = ".+$"; $edata["maxNumberOfFiles"] = 1; $edata["nRows"] = 100; $edata["nCols"] = 200; $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 $tdatars_audit["description"] = $fdata; $tables_data["rs_audit"]=&$tdatars_audit; $field_labels["rs_audit"] = &$fieldLabelsrs_audit; $fieldToolTips["rs_audit"] = &$fieldToolTipsrs_audit; $page_titles["rs_audit"] = &$pageTitlesrs_audit; // -----------------start prepare master-details data arrays ------------------------------// // tables which are detail tables for current table (master) $detailsTablesData["rs_audit"] = array(); // tables which are master tables for current table (detail) $masterTablesData["rs_audit"] = array(); // -----------------end prepare master-details data arrays ------------------------------// require_once(getabspath("classes/sql.php")); function createSqlQuery_rs_audit() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; $proto0["m_strFieldList"] = "id, `datetime`, ip, `user`, `table`, `action`, description"; $proto0["m_strFrom"] = "FROM rs_audit"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = "ORDER BY id 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" => "rs_audit", "m_srcTableName" => "rs_audit" )); $proto6["m_sql"] = "id"; $proto6["m_srcTableName"] = "rs_audit"; $proto6["m_expr"]=$obj; $proto6["m_alias"] = ""; $obj = new SQLFieldListItem($proto6); $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "datetime", "m_strTable" => "rs_audit", "m_srcTableName" => "rs_audit" )); $proto8["m_sql"] = "`datetime`"; $proto8["m_srcTableName"] = "rs_audit"; $proto8["m_expr"]=$obj; $proto8["m_alias"] = ""; $obj = new SQLFieldListItem($proto8); $proto0["m_fieldlist"][]=$obj; $proto10=array(); $obj = new SQLField(array( "m_strName" => "ip", "m_strTable" => "rs_audit", "m_srcTableName" => "rs_audit" )); $proto10["m_sql"] = "ip"; $proto10["m_srcTableName"] = "rs_audit"; $proto10["m_expr"]=$obj; $proto10["m_alias"] = ""; $obj = new SQLFieldListItem($proto10); $proto0["m_fieldlist"][]=$obj; $proto12=array(); $obj = new SQLField(array( "m_strName" => "user", "m_strTable" => "rs_audit", "m_srcTableName" => "rs_audit" )); $proto12["m_sql"] = "`user`"; $proto12["m_srcTableName"] = "rs_audit"; $proto12["m_expr"]=$obj; $proto12["m_alias"] = ""; $obj = new SQLFieldListItem($proto12); $proto0["m_fieldlist"][]=$obj; $proto14=array(); $obj = new SQLField(array( "m_strName" => "table", "m_strTable" => "rs_audit", "m_srcTableName" => "rs_audit" )); $proto14["m_sql"] = "`table`"; $proto14["m_srcTableName"] = "rs_audit"; $proto14["m_expr"]=$obj; $proto14["m_alias"] = ""; $obj = new SQLFieldListItem($proto14); $proto0["m_fieldlist"][]=$obj; $proto16=array(); $obj = new SQLField(array( "m_strName" => "action", "m_strTable" => "rs_audit", "m_srcTableName" => "rs_audit" )); $proto16["m_sql"] = "`action`"; $proto16["m_srcTableName"] = "rs_audit"; $proto16["m_expr"]=$obj; $proto16["m_alias"] = ""; $obj = new SQLFieldListItem($proto16); $proto0["m_fieldlist"][]=$obj; $proto18=array(); $obj = new SQLField(array( "m_strName" => "description", "m_strTable" => "rs_audit", "m_srcTableName" => "rs_audit" )); $proto18["m_sql"] = "description"; $proto18["m_srcTableName"] = "rs_audit"; $proto18["m_expr"]=$obj; $proto18["m_alias"] = ""; $obj = new SQLFieldListItem($proto18); $proto0["m_fieldlist"][]=$obj; $proto0["m_fromlist"] = array(); $proto20=array(); $proto20["m_link"] = "SQLL_MAIN"; $proto21=array(); $proto21["m_strName"] = "rs_audit"; $proto21["m_srcTableName"] = "rs_audit"; $proto21["m_columns"] = array(); $proto21["m_columns"][] = "id"; $proto21["m_columns"][] = "datetime"; $proto21["m_columns"][] = "ip"; $proto21["m_columns"][] = "user"; $proto21["m_columns"][] = "table"; $proto21["m_columns"][] = "action"; $proto21["m_columns"][] = "description"; $obj = new SQLTable($proto21); $proto20["m_table"] = $obj; $proto20["m_sql"] = "rs_audit"; $proto20["m_alias"] = ""; $proto20["m_srcTableName"] = "rs_audit"; $proto22=array(); $proto22["m_sql"] = ""; $proto22["m_uniontype"] = "SQLL_UNKNOWN"; $obj = new SQLNonParsed(array( "m_sql" => "" )); $proto22["m_column"]=$obj; $proto22["m_contained"] = array(); $proto22["m_strCase"] = ""; $proto22["m_havingmode"] = false; $proto22["m_inBrackets"] = false; $proto22["m_useAlias"] = false; $obj = new SQLLogicalExpr($proto22); $proto20["m_joinon"] = $obj; $obj = new SQLFromListItem($proto20); $proto0["m_fromlist"][]=$obj; $proto0["m_groupby"] = array(); $proto0["m_orderby"] = array(); $proto24=array(); $obj = new SQLField(array( "m_strName" => "id", "m_strTable" => "rs_audit", "m_srcTableName" => "rs_audit" )); $proto24["m_column"]=$obj; $proto24["m_bAsc"] = 0; $proto24["m_nColumn"] = 0; $obj = new SQLOrderByItem($proto24); $proto0["m_orderby"][]=$obj; $proto0["m_srcTableName"]="rs_audit"; $obj = new SQLQuery($proto0); return $obj; } $queryData_rs_audit = createSqlQuery_rs_audit(); ; $tdatars_audit[".sqlquery"] = $queryData_rs_audit; $tableEvents["rs_audit"] = new eventsBase; $tdatars_audit[".hasEvents"] = false; ?>