Viewing file: courses_settings.php (32.24 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$tdatacourses = array();
$tdatacourses[".searchableFields"] = array();
$tdatacourses[".ShortName"] = "courses";
$tdatacourses[".OwnerID"] = "";
$tdatacourses[".OriginalTable"] = "courses";
$tdatacourses[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdatacourses[".originalPagesByType"] = $tdatacourses[".pagesByType"];
$tdatacourses[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdatacourses[".originalPages"] = $tdatacourses[".pages"];
$tdatacourses[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
$tdatacourses[".originalDefaultPages"] = $tdatacourses[".defaultPages"];
// field labels
$fieldLabelscourses = array();
$fieldToolTipscourses = array();
$pageTitlescourses = array();
$placeHolderscourses = array();
if(mlang_getcurrentlang()=="English")
{
$fieldLabelscourses["English"] = array();
$fieldToolTipscourses["English"] = array();
$placeHolderscourses["English"] = array();
$pageTitlescourses["English"] = array();
$fieldLabelscourses["English"]["ID"] = "ID";
$fieldToolTipscourses["English"]["ID"] = "";
$placeHolderscourses["English"]["ID"] = "";
$fieldLabelscourses["English"]["course_name"] = "Course Name";
$fieldToolTipscourses["English"]["course_name"] = "";
$placeHolderscourses["English"]["course_name"] = "";
$fieldLabelscourses["English"]["course_duration"] = "Course Duration";
$fieldToolTipscourses["English"]["course_duration"] = "";
$placeHolderscourses["English"]["course_duration"] = "";
$fieldLabelscourses["English"]["course_elegibility"] = "Course Elegibility";
$fieldToolTipscourses["English"]["course_elegibility"] = "";
$placeHolderscourses["English"]["course_elegibility"] = "";
$fieldLabelscourses["English"]["course_code"] = "Course Code";
$fieldToolTipscourses["English"]["course_code"] = "";
$placeHolderscourses["English"]["course_code"] = "";
$fieldLabelscourses["English"]["course_content"] = "Course Content";
$fieldToolTipscourses["English"]["course_content"] = "";
$placeHolderscourses["English"]["course_content"] = "";
$fieldLabelscourses["English"]["course_photo"] = "Course Photo";
$fieldToolTipscourses["English"]["course_photo"] = "";
$placeHolderscourses["English"]["course_photo"] = "";
$fieldLabelscourses["English"]["certificate_course"] = "Certificate Course";
$fieldToolTipscourses["English"]["certificate_course"] = "";
$placeHolderscourses["English"]["certificate_course"] = "";
if (count($fieldToolTipscourses["English"]))
$tdatacourses[".isUseToolTips"] = true;
}
$tdatacourses[".NCSearch"] = true;
$tdatacourses[".shortTableName"] = "courses";
$tdatacourses[".nSecOptions"] = 0;
$tdatacourses[".mainTableOwnerID"] = "";
$tdatacourses[".entityType"] = 0;
$tdatacourses[".connId"] = "itce_data_at_itce_co_in";
$tdatacourses[".strOriginalTableName"] = "courses";
$tdatacourses[".showAddInPopup"] = false;
$tdatacourses[".showEditInPopup"] = false;
$tdatacourses[".showViewInPopup"] = false;
//page's base css files names
$popupPagesLayoutNames = array();
$tdatacourses[".popupPagesLayoutNames"] = $popupPagesLayoutNames;
$tdatacourses[".listAjax"] = false;
// temporary
$tdatacourses[".listAjax"] = false;
$tdatacourses[".audit"] = false;
$tdatacourses[".locking"] = false;
$pages = $tdatacourses[".defaultPages"];
if( $pages[PAGE_EDIT] ) {
$tdatacourses[".edit"] = true;
$tdatacourses[".afterEditAction"] = 1;
$tdatacourses[".closePopupAfterEdit"] = 1;
$tdatacourses[".afterEditActionDetTable"] = "";
}
if( $pages[PAGE_ADD] ) {
$tdatacourses[".add"] = true;
$tdatacourses[".afterAddAction"] = 1;
$tdatacourses[".closePopupAfterAdd"] = 1;
$tdatacourses[".afterAddActionDetTable"] = "";
}
if( $pages[PAGE_LIST] ) {
$tdatacourses[".list"] = true;
}
$tdatacourses[".strSortControlSettingsJSON"] = "";
if( $pages[PAGE_VIEW] ) {
$tdatacourses[".view"] = true;
}
if( $pages[PAGE_IMPORT] ) {
$tdatacourses[".import"] = true;
}
if( $pages[PAGE_EXPORT] ) {
$tdatacourses[".exportTo"] = true;
}
if( $pages[PAGE_PRINT] ) {
$tdatacourses[".printFriendly"] = true;
}
$tdatacourses[".showSimpleSearchOptions"] = true; // temp fix #13449
// Allow Show/Hide Fields in GRID
$tdatacourses[".allowShowHideFields"] = true; // temp fix #13449
//
// Allow Fields Reordering in GRID
$tdatacourses[".allowFieldsReordering"] = true; // temp fix #13449
//
$tdatacourses[".isUseAjaxSuggest"] = true;
$tdatacourses[".rowHighlite"] = true;
$tdatacourses[".ajaxCodeSnippetAdded"] = false;
$tdatacourses[".buttonsAdded"] = false;
$tdatacourses[".addPageEvents"] = false;
// use timepicker for search panel
$tdatacourses[".isUseTimeForSearch"] = false;
$tdatacourses[".badgeColor"] = "6DA5C8";
$tdatacourses[".allSearchFields"] = array();
$tdatacourses[".filterFields"] = array();
$tdatacourses[".requiredSearchFields"] = array();
$tdatacourses[".googleLikeFields"] = array();
$tdatacourses[".googleLikeFields"][] = "ID";
$tdatacourses[".googleLikeFields"][] = "course_name";
$tdatacourses[".googleLikeFields"][] = "course_duration";
$tdatacourses[".googleLikeFields"][] = "course_elegibility";
$tdatacourses[".googleLikeFields"][] = "course_code";
$tdatacourses[".googleLikeFields"][] = "course_content";
$tdatacourses[".googleLikeFields"][] = "course_photo";
$tdatacourses[".googleLikeFields"][] = "certificate_course";
$tdatacourses[".tableType"] = "list";
$tdatacourses[".printerPageOrientation"] = 0;
$tdatacourses[".nPrinterPageScale"] = 100;
$tdatacourses[".nPrinterSplitRecords"] = 40;
$tdatacourses[".geocodingEnabled"] = false;
$tdatacourses[".pageSize"] = 20;
$tdatacourses[".warnLeavingPages"] = true;
$tstrOrderBy = "";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatacourses[".strOrderBy"] = $tstrOrderBy;
$tdatacourses[".orderindexes"] = array();
$tdatacourses[".sqlHead"] = "SELECT ID, course_name, course_duration, course_elegibility, course_code, course_content, course_photo, certificate_course";
$tdatacourses[".sqlFrom"] = "FROM courses";
$tdatacourses[".sqlWhereExpr"] = "";
$tdatacourses[".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;
$tdatacourses[".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;
$tdatacourses[".arrGroupsPerPage"] = $arrGPP;
$tdatacourses[".highlightSearchResults"] = true;
$tableKeyscourses = array();
$tableKeyscourses[] = "ID";
$tdatacourses[".Keys"] = $tableKeyscourses;
$tdatacourses[".hideMobileList"] = array();
// ID
// Custom field settings
$fdata = array();
$fdata["Index"] = 1;
$fdata["strName"] = "ID";
$fdata["GoodName"] = "ID";
$fdata["ownerTable"] = "courses";
$fdata["Label"] = GetFieldLabel("courses","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
$tdatacourses["ID"] = $fdata;
$tdatacourses[".searchableFields"][] = "ID";
// course_name
// Custom field settings
$fdata = array();
$fdata["Index"] = 2;
$fdata["strName"] = "course_name";
$fdata["GoodName"] = "course_name";
$fdata["ownerTable"] = "courses";
$fdata["Label"] = GetFieldLabel("courses","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=50";
$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
$tdatacourses["course_name"] = $fdata;
$tdatacourses[".searchableFields"][] = "course_name";
// course_duration
// Custom field settings
$fdata = array();
$fdata["Index"] = 3;
$fdata["strName"] = "course_duration";
$fdata["GoodName"] = "course_duration";
$fdata["ownerTable"] = "courses";
$fdata["Label"] = GetFieldLabel("courses","course_duration");
$fdata["FieldType"] = 200;
$fdata["strField"] = "course_duration";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "course_duration";
$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=50";
$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
$tdatacourses["course_duration"] = $fdata;
$tdatacourses[".searchableFields"][] = "course_duration";
// course_elegibility
// Custom field settings
$fdata = array();
$fdata["Index"] = 4;
$fdata["strName"] = "course_elegibility";
$fdata["GoodName"] = "course_elegibility";
$fdata["ownerTable"] = "courses";
$fdata["Label"] = GetFieldLabel("courses","course_elegibility");
$fdata["FieldType"] = 200;
$fdata["strField"] = "course_elegibility";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "course_elegibility";
$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=50";
$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
$tdatacourses["course_elegibility"] = $fdata;
$tdatacourses[".searchableFields"][] = "course_elegibility";
// course_code
// Custom field settings
$fdata = array();
$fdata["Index"] = 5;
$fdata["strName"] = "course_code";
$fdata["GoodName"] = "course_code";
$fdata["ownerTable"] = "courses";
$fdata["Label"] = GetFieldLabel("courses","course_code");
$fdata["FieldType"] = 200;
$fdata["strField"] = "course_code";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "course_code";
$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=50";
$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
$tdatacourses["course_code"] = $fdata;
$tdatacourses[".searchableFields"][] = "course_code";
// course_content
// Custom field settings
$fdata = array();
$fdata["Index"] = 6;
$fdata["strName"] = "course_content";
$fdata["GoodName"] = "course_content";
$fdata["ownerTable"] = "courses";
$fdata["Label"] = GetFieldLabel("courses","course_content");
$fdata["FieldType"] = 201;
$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 area");
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
$edata["weekdays"] = "[]";
$edata["acceptFileTypes"] = ".+$";
$edata["acceptFileTypesHtml"] = "";
$edata["maxNumberOfFiles"] = 0;
$edata["nRows"] = 100;
$edata["nCols"] = 200;
$edata["controlWidth"] = 200;
// Begin validation
$edata["validateAs"] = array();
$edata["validateAs"]["basicValidate"] = array();
$edata["validateAs"]["customMessages"] = array();
// End validation
$edata["CreateThumbnail"] = true;
$edata["StrThumbnail"] = "th";
$edata["ThumbnailSize"] = 600;
$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
$tdatacourses["course_content"] = $fdata;
$tdatacourses[".searchableFields"][] = "course_content";
// course_photo
// Custom field settings
$fdata = array();
$fdata["Index"] = 7;
$fdata["strName"] = "course_photo";
$fdata["GoodName"] = "course_photo";
$fdata["ownerTable"] = "courses";
$fdata["Label"] = GetFieldLabel("courses","course_photo");
$fdata["FieldType"] = 200;
$fdata["strField"] = "course_photo";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "course_photo";
$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
$tdatacourses["course_photo"] = $fdata;
$tdatacourses[".searchableFields"][] = "course_photo";
// certificate_course
// Custom field settings
$fdata = array();
$fdata["Index"] = 8;
$fdata["strName"] = "certificate_course";
$fdata["GoodName"] = "certificate_course";
$fdata["ownerTable"] = "courses";
$fdata["Label"] = GetFieldLabel("courses","certificate_course");
$fdata["FieldType"] = 200;
$fdata["strField"] = "certificate_course";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "certificate_course";
$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
$tdatacourses["certificate_course"] = $fdata;
$tdatacourses[".searchableFields"][] = "certificate_course";
$tables_data["courses"]=&$tdatacourses;
$field_labels["courses"] = &$fieldLabelscourses;
$fieldToolTips["courses"] = &$fieldToolTipscourses;
$placeHolders["courses"] = &$placeHolderscourses;
$page_titles["courses"] = &$pageTitlescourses;
// -----------------start prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["courses"] = array();
// tables which are master tables for current table (detail)
$masterTablesData["courses"] = array();
// -----------------end prepare master-details data arrays ------------------------------//
require_once(getabspath("classes/sql.php"));
function createSqlQuery_courses()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "ID, course_name, course_duration, course_elegibility, course_code, course_content, course_photo, certificate_course";
$proto0["m_strFrom"] = "FROM courses";
$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" => "courses",
"m_srcTableName" => "courses"
));
$proto6["m_sql"] = "ID";
$proto6["m_srcTableName"] = "courses";
$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" => "courses",
"m_srcTableName" => "courses"
));
$proto8["m_sql"] = "course_name";
$proto8["m_srcTableName"] = "courses";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);
$proto0["m_fieldlist"][]=$obj;
$proto10=array();
$obj = new SQLField(array(
"m_strName" => "course_duration",
"m_strTable" => "courses",
"m_srcTableName" => "courses"
));
$proto10["m_sql"] = "course_duration";
$proto10["m_srcTableName"] = "courses";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);
$proto0["m_fieldlist"][]=$obj;
$proto12=array();
$obj = new SQLField(array(
"m_strName" => "course_elegibility",
"m_strTable" => "courses",
"m_srcTableName" => "courses"
));
$proto12["m_sql"] = "course_elegibility";
$proto12["m_srcTableName"] = "courses";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);
$proto0["m_fieldlist"][]=$obj;
$proto14=array();
$obj = new SQLField(array(
"m_strName" => "course_code",
"m_strTable" => "courses",
"m_srcTableName" => "courses"
));
$proto14["m_sql"] = "course_code";
$proto14["m_srcTableName"] = "courses";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);
$proto0["m_fieldlist"][]=$obj;
$proto16=array();
$obj = new SQLField(array(
"m_strName" => "course_content",
"m_strTable" => "courses",
"m_srcTableName" => "courses"
));
$proto16["m_sql"] = "course_content";
$proto16["m_srcTableName"] = "courses";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);
$proto0["m_fieldlist"][]=$obj;
$proto18=array();
$obj = new SQLField(array(
"m_strName" => "course_photo",
"m_strTable" => "courses",
"m_srcTableName" => "courses"
));
$proto18["m_sql"] = "course_photo";
$proto18["m_srcTableName"] = "courses";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);
$proto0["m_fieldlist"][]=$obj;
$proto20=array();
$obj = new SQLField(array(
"m_strName" => "certificate_course",
"m_strTable" => "courses",
"m_srcTableName" => "courses"
));
$proto20["m_sql"] = "certificate_course";
$proto20["m_srcTableName"] = "courses";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);
$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
$proto22=array();
$proto22["m_link"] = "SQLL_MAIN";
$proto23=array();
$proto23["m_strName"] = "courses";
$proto23["m_srcTableName"] = "courses";
$proto23["m_columns"] = array();
$proto23["m_columns"][] = "ID";
$proto23["m_columns"][] = "course_name";
$proto23["m_columns"][] = "course_duration";
$proto23["m_columns"][] = "course_elegibility";
$proto23["m_columns"][] = "course_code";
$proto23["m_columns"][] = "course_content";
$proto23["m_columns"][] = "course_photo";
$proto23["m_columns"][] = "certificate_course";
$obj = new SQLTable($proto23);
$proto22["m_table"] = $obj;
$proto22["m_sql"] = "courses";
$proto22["m_alias"] = "";
$proto22["m_srcTableName"] = "courses";
$proto24=array();
$proto24["m_sql"] = "";
$proto24["m_uniontype"] = "SQLL_UNKNOWN";
$obj = new SQLNonParsed(array(
"m_sql" => ""
));
$proto24["m_column"]=$obj;
$proto24["m_contained"] = array();
$proto24["m_strCase"] = "";
$proto24["m_havingmode"] = false;
$proto24["m_inBrackets"] = false;
$proto24["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto24);
$proto22["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto22);
$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$proto0["m_srcTableName"]="courses";
$obj = new SQLQuery($proto0);
return $obj;
}
$queryData_courses = createSqlQuery_courses();
;
$tdatacourses[".sqlquery"] = $queryData_courses;
$tableEvents["courses"] = new eventsBase;
$tdatacourses[".hasEvents"] = false;
?>
|