""); $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; // 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 $tdatapicture["pid"] = $fdata; // id // Custom field settings $fdata = array(); $fdata["Index"] = 2; $fdata["strName"] = "id"; $fdata["GoodName"] = "id"; $fdata["ownerTable"] = "picture"; $fdata["Label"] = GetFieldLabel("picture","id"); $fdata["FieldType"] = 3; $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"] = "id"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "id"; $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["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 $tdatapicture["id"] = $fdata; // pic0 // Custom field settings $fdata = array(); $fdata["Index"] = 3; $fdata["strName"] = "pic0"; $fdata["GoodName"] = "pic0"; $fdata["ownerTable"] = "picture"; $fdata["Label"] = GetFieldLabel("picture","pic0"); $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"] = "pic0"; $fdata["isSQLExpression"] = true; $fdata["FullName"] = "pic0"; $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 $tdatapicture["pic0"] = $fdata; $tables_data["picture"]=&$tdatapicture; $field_labels["picture"] = &$fieldLabelspicture; $fieldToolTips["picture"] = &$fieldToolTipspicture; $page_titles["picture"] = &$pageTitlespicture; // -----------------start prepare master-details data arrays ------------------------------// // tables which are detail tables for current table (master) $detailsTablesData["picture"] = array(); // tables which are master tables for current table (detail) $masterTablesData["picture"] = array(); $strOriginalDetailsTable="reporttools"; $masterParams = array(); $masterParams["mDataSourceTable"]="tools_report"; $masterParams["mOriginalTable"]= $strOriginalDetailsTable; $masterParams["mShortTable"]= "tools_report"; $masterParams["masterKeys"]= array(); $masterParams["detailKeys"]= array(); $masterParams["dispChildCount"]= "1"; $masterParams["hideChild"]= "0"; $masterParams["dispMasterInfo"] = array(); $masterParams["dispMasterInfo"][PAGE_LIST] = true; $masterParams["dispMasterInfo"][PAGE_PRINT] = true; $masterParams["previewOnList"]= 0; $masterParams["previewOnAdd"]= 0; $masterParams["previewOnEdit"]= 0; $masterParams["previewOnView"]= 0; $masterParams["proceedLink"]= 1; $masterParams["type"] = PAGE_LIST; $masterTablesData["picture"][0] = $masterParams; $masterTablesData["picture"][0]["masterKeys"] = array(); $masterTablesData["picture"][0]["masterKeys"][]="id"; $masterTablesData["picture"][0]["detailKeys"] = array(); $masterTablesData["picture"][0]["detailKeys"][]="id"; // -----------------end prepare master-details data arrays ------------------------------// require_once(getabspath("classes/sql.php")); function createSqlQuery_picture() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; $proto0["m_strFieldList"] = "pid, id, pic0"; $proto0["m_strFrom"] = "FROM picture"; $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" => "pid", "m_strTable" => "picture", "m_srcTableName" => "picture" )); $proto6["m_sql"] = "pid"; $proto6["m_srcTableName"] = "picture"; $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" => "picture", "m_srcTableName" => "picture" )); $proto8["m_sql"] = "id"; $proto8["m_srcTableName"] = "picture"; $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" => "picture", "m_srcTableName" => "picture" )); $proto10["m_sql"] = "pic0"; $proto10["m_srcTableName"] = "picture"; $proto10["m_expr"]=$obj; $proto10["m_alias"] = ""; $obj = new SQLFieldListItem($proto10); $proto0["m_fieldlist"][]=$obj; $proto0["m_fromlist"] = array(); $proto12=array(); $proto12["m_link"] = "SQLL_MAIN"; $proto13=array(); $proto13["m_strName"] = "picture"; $proto13["m_srcTableName"] = "picture"; $proto13["m_columns"] = array(); $proto13["m_columns"][] = "pid"; $proto13["m_columns"][] = "id"; $proto13["m_columns"][] = "pic0"; $obj = new SQLTable($proto13); $proto12["m_table"] = $obj; $proto12["m_sql"] = "picture"; $proto12["m_alias"] = ""; $proto12["m_srcTableName"] = "picture"; $proto14=array(); $proto14["m_sql"] = ""; $proto14["m_uniontype"] = "SQLL_UNKNOWN"; $obj = new SQLNonParsed(array( "m_sql" => "" )); $proto14["m_column"]=$obj; $proto14["m_contained"] = array(); $proto14["m_strCase"] = ""; $proto14["m_havingmode"] = false; $proto14["m_inBrackets"] = false; $proto14["m_useAlias"] = false; $obj = new SQLLogicalExpr($proto14); $proto12["m_joinon"] = $obj; $obj = new SQLFromListItem($proto12); $proto0["m_fromlist"][]=$obj; $proto0["m_groupby"] = array(); $proto0["m_orderby"] = array(); $proto0["m_srcTableName"]="picture"; $obj = new SQLQuery($proto0); return $obj; } $queryData_picture = createSqlQuery_picture(); ; $tdatapicture[".sqlquery"] = $queryData_picture; $tableEvents["picture"] = new eventsBase; $tdatapicture[".hasEvents"] = false; ?>