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