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