Viewing file: gallery_settings.php (14.11 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$tdatagallery = array();
$tdatagallery[".searchableFields"] = array();
$tdatagallery[".ShortName"] = "gallery";
$tdatagallery[".OwnerID"] = "";
$tdatagallery[".OriginalTable"] = "gallery";
$tdatagallery[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdatagallery[".originalPagesByType"] = $tdatagallery[".pagesByType"];
$tdatagallery[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdatagallery[".originalPages"] = $tdatagallery[".pages"];
$tdatagallery[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
$tdatagallery[".originalDefaultPages"] = $tdatagallery[".defaultPages"];
// field labels
$fieldLabelsgallery = array();
$fieldToolTipsgallery = array();
$pageTitlesgallery = array();
$placeHoldersgallery = array();
if(mlang_getcurrentlang()=="English")
{
$fieldLabelsgallery["English"] = array();
$fieldToolTipsgallery["English"] = array();
$placeHoldersgallery["English"] = array();
$pageTitlesgallery["English"] = array();
$fieldLabelsgallery["English"]["ID"] = "ID";
$fieldToolTipsgallery["English"]["ID"] = "";
$placeHoldersgallery["English"]["ID"] = "";
$fieldLabelsgallery["English"]["photos"] = "Photos";
$fieldToolTipsgallery["English"]["photos"] = "";
$placeHoldersgallery["English"]["photos"] = "";
if (count($fieldToolTipsgallery["English"]))
$tdatagallery[".isUseToolTips"] = true;
}
$tdatagallery[".NCSearch"] = true;
$tdatagallery[".shortTableName"] = "gallery";
$tdatagallery[".nSecOptions"] = 0;
$tdatagallery[".mainTableOwnerID"] = "";
$tdatagallery[".entityType"] = 0;
$tdatagallery[".connId"] = "itce_data_at_itce_co_in";
$tdatagallery[".strOriginalTableName"] = "gallery";
$tdatagallery[".showAddInPopup"] = false;
$tdatagallery[".showEditInPopup"] = false;
$tdatagallery[".showViewInPopup"] = false;
//page's base css files names
$popupPagesLayoutNames = array();
$tdatagallery[".popupPagesLayoutNames"] = $popupPagesLayoutNames;
$tdatagallery[".listAjax"] = false;
// temporary
$tdatagallery[".listAjax"] = false;
$tdatagallery[".audit"] = false;
$tdatagallery[".locking"] = false;
$pages = $tdatagallery[".defaultPages"];
if( $pages[PAGE_EDIT] ) {
$tdatagallery[".edit"] = true;
$tdatagallery[".afterEditAction"] = 1;
$tdatagallery[".closePopupAfterEdit"] = 1;
$tdatagallery[".afterEditActionDetTable"] = "";
}
if( $pages[PAGE_ADD] ) {
$tdatagallery[".add"] = true;
$tdatagallery[".afterAddAction"] = 1;
$tdatagallery[".closePopupAfterAdd"] = 1;
$tdatagallery[".afterAddActionDetTable"] = "";
}
if( $pages[PAGE_LIST] ) {
$tdatagallery[".list"] = true;
}
$tdatagallery[".strSortControlSettingsJSON"] = "";
if( $pages[PAGE_VIEW] ) {
$tdatagallery[".view"] = true;
}
if( $pages[PAGE_IMPORT] ) {
$tdatagallery[".import"] = true;
}
if( $pages[PAGE_EXPORT] ) {
$tdatagallery[".exportTo"] = true;
}
if( $pages[PAGE_PRINT] ) {
$tdatagallery[".printFriendly"] = true;
}
$tdatagallery[".showSimpleSearchOptions"] = true; // temp fix #13449
// Allow Show/Hide Fields in GRID
$tdatagallery[".allowShowHideFields"] = true; // temp fix #13449
//
// Allow Fields Reordering in GRID
$tdatagallery[".allowFieldsReordering"] = true; // temp fix #13449
//
$tdatagallery[".isUseAjaxSuggest"] = true;
$tdatagallery[".rowHighlite"] = true;
$tdatagallery[".ajaxCodeSnippetAdded"] = false;
$tdatagallery[".buttonsAdded"] = false;
$tdatagallery[".addPageEvents"] = false;
// use timepicker for search panel
$tdatagallery[".isUseTimeForSearch"] = false;
$tdatagallery[".badgeColor"] = "5F9EA0";
$tdatagallery[".allSearchFields"] = array();
$tdatagallery[".filterFields"] = array();
$tdatagallery[".requiredSearchFields"] = array();
$tdatagallery[".googleLikeFields"] = array();
$tdatagallery[".googleLikeFields"][] = "ID";
$tdatagallery[".googleLikeFields"][] = "photos";
$tdatagallery[".tableType"] = "list";
$tdatagallery[".printerPageOrientation"] = 0;
$tdatagallery[".nPrinterPageScale"] = 100;
$tdatagallery[".nPrinterSplitRecords"] = 40;
$tdatagallery[".geocodingEnabled"] = false;
$tdatagallery[".pageSize"] = 20;
$tdatagallery[".warnLeavingPages"] = true;
$tstrOrderBy = "";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatagallery[".strOrderBy"] = $tstrOrderBy;
$tdatagallery[".orderindexes"] = array();
$tdatagallery[".sqlHead"] = "SELECT ID, photos";
$tdatagallery[".sqlFrom"] = "FROM gallery";
$tdatagallery[".sqlWhereExpr"] = "";
$tdatagallery[".sqlTail"] = "";
//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatagallery[".arrRecsPerPage"] = $arrRPP;
//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatagallery[".arrGroupsPerPage"] = $arrGPP;
$tdatagallery[".highlightSearchResults"] = true;
$tableKeysgallery = array();
$tableKeysgallery[] = "ID";
$tdatagallery[".Keys"] = $tableKeysgallery;
$tdatagallery[".hideMobileList"] = array();
// ID
// Custom field settings
$fdata = array();
$fdata["Index"] = 1;
$fdata["strName"] = "ID";
$fdata["GoodName"] = "ID";
$fdata["ownerTable"] = "gallery";
$fdata["Label"] = GetFieldLabel("gallery","ID");
$fdata["FieldType"] = 3;
$fdata["AutoInc"] = 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;
$vdata["truncateText"] = true;
$vdata["NumberOfChars"] = 80;
$fdata["ViewFormats"]["view"] = $vdata;
// End View Formats
// Begin Edit Formats
$fdata["EditFormats"] = array();
$edata = array("EditFormat" => "Text field");
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
$edata["weekdays"] = "[]";
$edata["IsRequired"] = true;
$edata["acceptFileTypes"] = ".+$";
$edata["acceptFileTypesHtml"] = "";
$edata["maxNumberOfFiles"] = 1;
$edata["HTML5InuptType"] = "text";
$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
//Filters settings
$fdata["filterTotals"] = 0;
$fdata["filterMultiSelect"] = 0;
$fdata["filterFormat"] = "Values list";
$fdata["showCollapsed"] = false;
$fdata["sortValueType"] = 0;
$fdata["numberOfVisibleItems"] = 10;
$fdata["filterBy"] = 0;
//end of Filters settings
$tdatagallery["ID"] = $fdata;
$tdatagallery[".searchableFields"][] = "ID";
// photos
// Custom field settings
$fdata = array();
$fdata["Index"] = 2;
$fdata["strName"] = "photos";
$fdata["GoodName"] = "photos";
$fdata["ownerTable"] = "gallery";
$fdata["Label"] = GetFieldLabel("gallery","photos");
$fdata["FieldType"] = 200;
$fdata["strField"] = "photos";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "photos";
$fdata["UploadFolder"] = "files";
// Begin View Formats
$fdata["ViewFormats"] = array();
$vdata = array("ViewFormat" => "");
$vdata["NeedEncode"] = true;
$vdata["truncateText"] = true;
$vdata["NumberOfChars"] = 80;
$fdata["ViewFormats"]["view"] = $vdata;
// End View Formats
// Begin Edit Formats
$fdata["EditFormats"] = array();
$edata = array("EditFormat" => "Text field");
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
$edata["weekdays"] = "[]";
$edata["acceptFileTypes"] = ".+$";
$edata["acceptFileTypesHtml"] = "";
$edata["maxNumberOfFiles"] = 1;
$edata["HTML5InuptType"] = "text";
$edata["EditParams"] = "";
$edata["EditParams"].= " maxlength=500";
$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
//Filters settings
$fdata["filterTotals"] = 0;
$fdata["filterMultiSelect"] = 0;
$fdata["filterFormat"] = "Values list";
$fdata["showCollapsed"] = false;
$fdata["sortValueType"] = 0;
$fdata["numberOfVisibleItems"] = 10;
$fdata["filterBy"] = 0;
//end of Filters settings
$tdatagallery["photos"] = $fdata;
$tdatagallery[".searchableFields"][] = "photos";
$tables_data["gallery"]=&$tdatagallery;
$field_labels["gallery"] = &$fieldLabelsgallery;
$fieldToolTips["gallery"] = &$fieldToolTipsgallery;
$placeHolders["gallery"] = &$placeHoldersgallery;
$page_titles["gallery"] = &$pageTitlesgallery;
// -----------------start prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["gallery"] = array();
// tables which are master tables for current table (detail)
$masterTablesData["gallery"] = array();
// -----------------end prepare master-details data arrays ------------------------------//
require_once(getabspath("classes/sql.php"));
function createSqlQuery_gallery()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "ID, photos";
$proto0["m_strFrom"] = "FROM gallery";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
;
$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" => "gallery",
"m_srcTableName" => "gallery"
));
$proto6["m_sql"] = "ID";
$proto6["m_srcTableName"] = "gallery";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);
$proto0["m_fieldlist"][]=$obj;
$proto8=array();
$obj = new SQLField(array(
"m_strName" => "photos",
"m_strTable" => "gallery",
"m_srcTableName" => "gallery"
));
$proto8["m_sql"] = "photos";
$proto8["m_srcTableName"] = "gallery";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);
$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
$proto10=array();
$proto10["m_link"] = "SQLL_MAIN";
$proto11=array();
$proto11["m_strName"] = "gallery";
$proto11["m_srcTableName"] = "gallery";
$proto11["m_columns"] = array();
$proto11["m_columns"][] = "ID";
$proto11["m_columns"][] = "photos";
$obj = new SQLTable($proto11);
$proto10["m_table"] = $obj;
$proto10["m_sql"] = "gallery";
$proto10["m_alias"] = "";
$proto10["m_srcTableName"] = "gallery";
$proto12=array();
$proto12["m_sql"] = "";
$proto12["m_uniontype"] = "SQLL_UNKNOWN";
$obj = new SQLNonParsed(array(
"m_sql" => ""
));
$proto12["m_column"]=$obj;
$proto12["m_contained"] = array();
$proto12["m_strCase"] = "";
$proto12["m_havingmode"] = false;
$proto12["m_inBrackets"] = false;
$proto12["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto12);
$proto10["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto10);
$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$proto0["m_srcTableName"]="gallery";
$obj = new SQLQuery($proto0);
return $obj;
}
$queryData_gallery = createSqlQuery_gallery();
;
$tdatagallery[".sqlquery"] = $queryData_gallery;
$tableEvents["gallery"] = new eventsBase;
$tdatagallery[".hasEvents"] = false;
?>
|