Viewing file: news_settings.php (13.66 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$tdatanews = array();
$tdatanews[".searchableFields"] = array();
$tdatanews[".ShortName"] = "news";
$tdatanews[".OwnerID"] = "";
$tdatanews[".OriginalTable"] = "news";
$tdatanews[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdatanews[".originalPagesByType"] = $tdatanews[".pagesByType"];
$tdatanews[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdatanews[".originalPages"] = $tdatanews[".pages"];
$tdatanews[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
$tdatanews[".originalDefaultPages"] = $tdatanews[".defaultPages"];
// field labels
$fieldLabelsnews = array();
$fieldToolTipsnews = array();
$pageTitlesnews = array();
$placeHoldersnews = array();
if(mlang_getcurrentlang()=="English")
{
$fieldLabelsnews["English"] = array();
$fieldToolTipsnews["English"] = array();
$placeHoldersnews["English"] = array();
$pageTitlesnews["English"] = array();
$fieldLabelsnews["English"]["ID"] = "ID";
$fieldToolTipsnews["English"]["ID"] = "";
$placeHoldersnews["English"]["ID"] = "";
$fieldLabelsnews["English"]["news"] = "News";
$fieldToolTipsnews["English"]["news"] = "";
$placeHoldersnews["English"]["news"] = "";
if (count($fieldToolTipsnews["English"]))
$tdatanews[".isUseToolTips"] = true;
}
$tdatanews[".NCSearch"] = true;
$tdatanews[".shortTableName"] = "news";
$tdatanews[".nSecOptions"] = 0;
$tdatanews[".mainTableOwnerID"] = "";
$tdatanews[".entityType"] = 0;
$tdatanews[".connId"] = "itce_data_at_itce_co_in";
$tdatanews[".strOriginalTableName"] = "news";
$tdatanews[".showAddInPopup"] = false;
$tdatanews[".showEditInPopup"] = false;
$tdatanews[".showViewInPopup"] = false;
//page's base css files names
$popupPagesLayoutNames = array();
$tdatanews[".popupPagesLayoutNames"] = $popupPagesLayoutNames;
$tdatanews[".listAjax"] = false;
// temporary
$tdatanews[".listAjax"] = false;
$tdatanews[".audit"] = false;
$tdatanews[".locking"] = false;
$pages = $tdatanews[".defaultPages"];
if( $pages[PAGE_EDIT] ) {
$tdatanews[".edit"] = true;
$tdatanews[".afterEditAction"] = 1;
$tdatanews[".closePopupAfterEdit"] = 1;
$tdatanews[".afterEditActionDetTable"] = "";
}
if( $pages[PAGE_ADD] ) {
$tdatanews[".add"] = true;
$tdatanews[".afterAddAction"] = 1;
$tdatanews[".closePopupAfterAdd"] = 1;
$tdatanews[".afterAddActionDetTable"] = "";
}
if( $pages[PAGE_LIST] ) {
$tdatanews[".list"] = true;
}
$tdatanews[".strSortControlSettingsJSON"] = "";
if( $pages[PAGE_VIEW] ) {
$tdatanews[".view"] = true;
}
if( $pages[PAGE_IMPORT] ) {
$tdatanews[".import"] = true;
}
if( $pages[PAGE_EXPORT] ) {
$tdatanews[".exportTo"] = true;
}
if( $pages[PAGE_PRINT] ) {
$tdatanews[".printFriendly"] = true;
}
$tdatanews[".showSimpleSearchOptions"] = true; // temp fix #13449
// Allow Show/Hide Fields in GRID
$tdatanews[".allowShowHideFields"] = true; // temp fix #13449
//
// Allow Fields Reordering in GRID
$tdatanews[".allowFieldsReordering"] = true; // temp fix #13449
//
$tdatanews[".isUseAjaxSuggest"] = true;
$tdatanews[".rowHighlite"] = true;
$tdatanews[".ajaxCodeSnippetAdded"] = false;
$tdatanews[".buttonsAdded"] = false;
$tdatanews[".addPageEvents"] = false;
// use timepicker for search panel
$tdatanews[".isUseTimeForSearch"] = false;
$tdatanews[".badgeColor"] = "CD5C5C";
$tdatanews[".allSearchFields"] = array();
$tdatanews[".filterFields"] = array();
$tdatanews[".requiredSearchFields"] = array();
$tdatanews[".googleLikeFields"] = array();
$tdatanews[".googleLikeFields"][] = "ID";
$tdatanews[".googleLikeFields"][] = "news";
$tdatanews[".tableType"] = "list";
$tdatanews[".printerPageOrientation"] = 0;
$tdatanews[".nPrinterPageScale"] = 100;
$tdatanews[".nPrinterSplitRecords"] = 40;
$tdatanews[".geocodingEnabled"] = false;
$tdatanews[".pageSize"] = 20;
$tdatanews[".warnLeavingPages"] = true;
$tstrOrderBy = "";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatanews[".strOrderBy"] = $tstrOrderBy;
$tdatanews[".orderindexes"] = array();
$tdatanews[".sqlHead"] = "SELECT ID, news";
$tdatanews[".sqlFrom"] = "FROM news";
$tdatanews[".sqlWhereExpr"] = "";
$tdatanews[".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;
$tdatanews[".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;
$tdatanews[".arrGroupsPerPage"] = $arrGPP;
$tdatanews[".highlightSearchResults"] = true;
$tableKeysnews = array();
$tableKeysnews[] = "ID";
$tdatanews[".Keys"] = $tableKeysnews;
$tdatanews[".hideMobileList"] = array();
// ID
// Custom field settings
$fdata = array();
$fdata["Index"] = 1;
$fdata["strName"] = "ID";
$fdata["GoodName"] = "ID";
$fdata["ownerTable"] = "news";
$fdata["Label"] = GetFieldLabel("news","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
$tdatanews["ID"] = $fdata;
$tdatanews[".searchableFields"][] = "ID";
// news
// Custom field settings
$fdata = array();
$fdata["Index"] = 2;
$fdata["strName"] = "news";
$fdata["GoodName"] = "news";
$fdata["ownerTable"] = "news";
$fdata["Label"] = GetFieldLabel("news","news");
$fdata["FieldType"] = 200;
$fdata["strField"] = "news";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "news";
$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
$tdatanews["news"] = $fdata;
$tdatanews[".searchableFields"][] = "news";
$tables_data["news"]=&$tdatanews;
$field_labels["news"] = &$fieldLabelsnews;
$fieldToolTips["news"] = &$fieldToolTipsnews;
$placeHolders["news"] = &$placeHoldersnews;
$page_titles["news"] = &$pageTitlesnews;
// -----------------start prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["news"] = array();
// tables which are master tables for current table (detail)
$masterTablesData["news"] = array();
// -----------------end prepare master-details data arrays ------------------------------//
require_once(getabspath("classes/sql.php"));
function createSqlQuery_news()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "ID, news";
$proto0["m_strFrom"] = "FROM news";
$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" => "news",
"m_srcTableName" => "news"
));
$proto6["m_sql"] = "ID";
$proto6["m_srcTableName"] = "news";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);
$proto0["m_fieldlist"][]=$obj;
$proto8=array();
$obj = new SQLField(array(
"m_strName" => "news",
"m_strTable" => "news",
"m_srcTableName" => "news"
));
$proto8["m_sql"] = "news";
$proto8["m_srcTableName"] = "news";
$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"] = "news";
$proto11["m_srcTableName"] = "news";
$proto11["m_columns"] = array();
$proto11["m_columns"][] = "ID";
$proto11["m_columns"][] = "news";
$obj = new SQLTable($proto11);
$proto10["m_table"] = $obj;
$proto10["m_sql"] = "news";
$proto10["m_alias"] = "";
$proto10["m_srcTableName"] = "news";
$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"]="news";
$obj = new SQLQuery($proto0);
return $obj;
}
$queryData_news = createSqlQuery_news();
;
$tdatanews[".sqlquery"] = $queryData_news;
$tableEvents["news"] = new eventsBase;
$tdatanews[".hasEvents"] = false;
?>
|