Viewing file: teacher_settings.php (28.61 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$tdatateacher = array();
$tdatateacher[".searchableFields"] = array();
$tdatateacher[".ShortName"] = "teacher";
$tdatateacher[".OwnerID"] = "";
$tdatateacher[".OriginalTable"] = "teacher";
$tdatateacher[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdatateacher[".originalPagesByType"] = $tdatateacher[".pagesByType"];
$tdatateacher[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdatateacher[".originalPages"] = $tdatateacher[".pages"];
$tdatateacher[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
$tdatateacher[".originalDefaultPages"] = $tdatateacher[".defaultPages"];
// field labels
$fieldLabelsteacher = array();
$fieldToolTipsteacher = array();
$pageTitlesteacher = array();
$placeHoldersteacher = array();
if(mlang_getcurrentlang()=="English")
{
$fieldLabelsteacher["English"] = array();
$fieldToolTipsteacher["English"] = array();
$placeHoldersteacher["English"] = array();
$pageTitlesteacher["English"] = array();
$fieldLabelsteacher["English"]["ID"] = "ID";
$fieldToolTipsteacher["English"]["ID"] = "";
$placeHoldersteacher["English"]["ID"] = "";
$fieldLabelsteacher["English"]["laser_no"] = "Laser No";
$fieldToolTipsteacher["English"]["laser_no"] = "";
$placeHoldersteacher["English"]["laser_no"] = "";
$fieldLabelsteacher["English"]["teacher_name"] = "Teacher Name";
$fieldToolTipsteacher["English"]["teacher_name"] = "";
$placeHoldersteacher["English"]["teacher_name"] = "";
$fieldLabelsteacher["English"]["rel_date"] = "Rel Date";
$fieldToolTipsteacher["English"]["rel_date"] = "";
$placeHoldersteacher["English"]["rel_date"] = "";
$fieldLabelsteacher["English"]["rel_month"] = "Rel Month";
$fieldToolTipsteacher["English"]["rel_month"] = "";
$placeHoldersteacher["English"]["rel_month"] = "";
$fieldLabelsteacher["English"]["rel_year"] = "Rel Year";
$fieldToolTipsteacher["English"]["rel_year"] = "";
$placeHoldersteacher["English"]["rel_year"] = "";
$fieldLabelsteacher["English"]["amount"] = "Amount";
$fieldToolTipsteacher["English"]["amount"] = "";
$placeHoldersteacher["English"]["amount"] = "";
if (count($fieldToolTipsteacher["English"]))
$tdatateacher[".isUseToolTips"] = true;
}
$tdatateacher[".NCSearch"] = true;
$tdatateacher[".shortTableName"] = "teacher";
$tdatateacher[".nSecOptions"] = 0;
$tdatateacher[".mainTableOwnerID"] = "";
$tdatateacher[".entityType"] = 0;
$tdatateacher[".connId"] = "itce_data_at_itce_co_in";
$tdatateacher[".strOriginalTableName"] = "teacher";
$tdatateacher[".showAddInPopup"] = false;
$tdatateacher[".showEditInPopup"] = false;
$tdatateacher[".showViewInPopup"] = false;
//page's base css files names
$popupPagesLayoutNames = array();
$tdatateacher[".popupPagesLayoutNames"] = $popupPagesLayoutNames;
$tdatateacher[".listAjax"] = false;
// temporary
$tdatateacher[".listAjax"] = false;
$tdatateacher[".audit"] = false;
$tdatateacher[".locking"] = false;
$pages = $tdatateacher[".defaultPages"];
if( $pages[PAGE_EDIT] ) {
$tdatateacher[".edit"] = true;
$tdatateacher[".afterEditAction"] = 1;
$tdatateacher[".closePopupAfterEdit"] = 1;
$tdatateacher[".afterEditActionDetTable"] = "";
}
if( $pages[PAGE_ADD] ) {
$tdatateacher[".add"] = true;
$tdatateacher[".afterAddAction"] = 1;
$tdatateacher[".closePopupAfterAdd"] = 1;
$tdatateacher[".afterAddActionDetTable"] = "";
}
if( $pages[PAGE_LIST] ) {
$tdatateacher[".list"] = true;
}
$tdatateacher[".strSortControlSettingsJSON"] = "";
if( $pages[PAGE_VIEW] ) {
$tdatateacher[".view"] = true;
}
if( $pages[PAGE_IMPORT] ) {
$tdatateacher[".import"] = true;
}
if( $pages[PAGE_EXPORT] ) {
$tdatateacher[".exportTo"] = true;
}
if( $pages[PAGE_PRINT] ) {
$tdatateacher[".printFriendly"] = true;
}
$tdatateacher[".showSimpleSearchOptions"] = true; // temp fix #13449
// Allow Show/Hide Fields in GRID
$tdatateacher[".allowShowHideFields"] = true; // temp fix #13449
//
// Allow Fields Reordering in GRID
$tdatateacher[".allowFieldsReordering"] = true; // temp fix #13449
//
$tdatateacher[".isUseAjaxSuggest"] = true;
$tdatateacher[".rowHighlite"] = true;
$tdatateacher[".ajaxCodeSnippetAdded"] = false;
$tdatateacher[".buttonsAdded"] = false;
$tdatateacher[".addPageEvents"] = false;
// use timepicker for search panel
$tdatateacher[".isUseTimeForSearch"] = false;
$tdatateacher[".badgeColor"] = "CFAE83";
$tdatateacher[".allSearchFields"] = array();
$tdatateacher[".filterFields"] = array();
$tdatateacher[".requiredSearchFields"] = array();
$tdatateacher[".googleLikeFields"] = array();
$tdatateacher[".googleLikeFields"][] = "ID";
$tdatateacher[".googleLikeFields"][] = "laser_no";
$tdatateacher[".googleLikeFields"][] = "teacher_name";
$tdatateacher[".googleLikeFields"][] = "rel_date";
$tdatateacher[".googleLikeFields"][] = "rel_month";
$tdatateacher[".googleLikeFields"][] = "rel_year";
$tdatateacher[".googleLikeFields"][] = "amount";
$tdatateacher[".tableType"] = "list";
$tdatateacher[".printerPageOrientation"] = 0;
$tdatateacher[".nPrinterPageScale"] = 100;
$tdatateacher[".nPrinterSplitRecords"] = 40;
$tdatateacher[".geocodingEnabled"] = false;
$tdatateacher[".pageSize"] = 20;
$tdatateacher[".warnLeavingPages"] = true;
$tstrOrderBy = "";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatateacher[".strOrderBy"] = $tstrOrderBy;
$tdatateacher[".orderindexes"] = array();
$tdatateacher[".sqlHead"] = "SELECT ID, laser_no, teacher_name, rel_date, rel_month, rel_year, amount";
$tdatateacher[".sqlFrom"] = "FROM teacher";
$tdatateacher[".sqlWhereExpr"] = "";
$tdatateacher[".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;
$tdatateacher[".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;
$tdatateacher[".arrGroupsPerPage"] = $arrGPP;
$tdatateacher[".highlightSearchResults"] = true;
$tableKeysteacher = array();
$tableKeysteacher[] = "ID";
$tdatateacher[".Keys"] = $tableKeysteacher;
$tdatateacher[".hideMobileList"] = array();
// ID
// Custom field settings
$fdata = array();
$fdata["Index"] = 1;
$fdata["strName"] = "ID";
$fdata["GoodName"] = "ID";
$fdata["ownerTable"] = "teacher";
$fdata["Label"] = GetFieldLabel("teacher","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
$tdatateacher["ID"] = $fdata;
$tdatateacher[".searchableFields"][] = "ID";
// laser_no
// Custom field settings
$fdata = array();
$fdata["Index"] = 2;
$fdata["strName"] = "laser_no";
$fdata["GoodName"] = "laser_no";
$fdata["ownerTable"] = "teacher";
$fdata["Label"] = GetFieldLabel("teacher","laser_no");
$fdata["FieldType"] = 200;
$fdata["strField"] = "laser_no";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "laser_no";
$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
$tdatateacher["laser_no"] = $fdata;
$tdatateacher[".searchableFields"][] = "laser_no";
// teacher_name
// Custom field settings
$fdata = array();
$fdata["Index"] = 3;
$fdata["strName"] = "teacher_name";
$fdata["GoodName"] = "teacher_name";
$fdata["ownerTable"] = "teacher";
$fdata["Label"] = GetFieldLabel("teacher","teacher_name");
$fdata["FieldType"] = 200;
$fdata["strField"] = "teacher_name";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "teacher_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
$tdatateacher["teacher_name"] = $fdata;
$tdatateacher[".searchableFields"][] = "teacher_name";
// rel_date
// Custom field settings
$fdata = array();
$fdata["Index"] = 4;
$fdata["strName"] = "rel_date";
$fdata["GoodName"] = "rel_date";
$fdata["ownerTable"] = "teacher";
$fdata["Label"] = GetFieldLabel("teacher","rel_date");
$fdata["FieldType"] = 200;
$fdata["strField"] = "rel_date";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "rel_date";
$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
$tdatateacher["rel_date"] = $fdata;
$tdatateacher[".searchableFields"][] = "rel_date";
// rel_month
// Custom field settings
$fdata = array();
$fdata["Index"] = 5;
$fdata["strName"] = "rel_month";
$fdata["GoodName"] = "rel_month";
$fdata["ownerTable"] = "teacher";
$fdata["Label"] = GetFieldLabel("teacher","rel_month");
$fdata["FieldType"] = 200;
$fdata["strField"] = "rel_month";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "rel_month";
$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
$tdatateacher["rel_month"] = $fdata;
$tdatateacher[".searchableFields"][] = "rel_month";
// rel_year
// Custom field settings
$fdata = array();
$fdata["Index"] = 6;
$fdata["strName"] = "rel_year";
$fdata["GoodName"] = "rel_year";
$fdata["ownerTable"] = "teacher";
$fdata["Label"] = GetFieldLabel("teacher","rel_year");
$fdata["FieldType"] = 200;
$fdata["strField"] = "rel_year";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "rel_year";
$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
$tdatateacher["rel_year"] = $fdata;
$tdatateacher[".searchableFields"][] = "rel_year";
// amount
// Custom field settings
$fdata = array();
$fdata["Index"] = 7;
$fdata["strName"] = "amount";
$fdata["GoodName"] = "amount";
$fdata["ownerTable"] = "teacher";
$fdata["Label"] = GetFieldLabel("teacher","amount");
$fdata["FieldType"] = 200;
$fdata["strField"] = "amount";
$fdata["isSQLExpression"] = true;
$fdata["FullName"] = "amount";
$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
$tdatateacher["amount"] = $fdata;
$tdatateacher[".searchableFields"][] = "amount";
$tables_data["teacher"]=&$tdatateacher;
$field_labels["teacher"] = &$fieldLabelsteacher;
$fieldToolTips["teacher"] = &$fieldToolTipsteacher;
$placeHolders["teacher"] = &$placeHoldersteacher;
$page_titles["teacher"] = &$pageTitlesteacher;
// -----------------start prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["teacher"] = array();
// tables which are master tables for current table (detail)
$masterTablesData["teacher"] = array();
// -----------------end prepare master-details data arrays ------------------------------//
require_once(getabspath("classes/sql.php"));
function createSqlQuery_teacher()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "ID, laser_no, teacher_name, rel_date, rel_month, rel_year, amount";
$proto0["m_strFrom"] = "FROM teacher";
$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" => "teacher",
"m_srcTableName" => "teacher"
));
$proto6["m_sql"] = "ID";
$proto6["m_srcTableName"] = "teacher";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);
$proto0["m_fieldlist"][]=$obj;
$proto8=array();
$obj = new SQLField(array(
"m_strName" => "laser_no",
"m_strTable" => "teacher",
"m_srcTableName" => "teacher"
));
$proto8["m_sql"] = "laser_no";
$proto8["m_srcTableName"] = "teacher";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);
$proto0["m_fieldlist"][]=$obj;
$proto10=array();
$obj = new SQLField(array(
"m_strName" => "teacher_name",
"m_strTable" => "teacher",
"m_srcTableName" => "teacher"
));
$proto10["m_sql"] = "teacher_name";
$proto10["m_srcTableName"] = "teacher";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);
$proto0["m_fieldlist"][]=$obj;
$proto12=array();
$obj = new SQLField(array(
"m_strName" => "rel_date",
"m_strTable" => "teacher",
"m_srcTableName" => "teacher"
));
$proto12["m_sql"] = "rel_date";
$proto12["m_srcTableName"] = "teacher";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);
$proto0["m_fieldlist"][]=$obj;
$proto14=array();
$obj = new SQLField(array(
"m_strName" => "rel_month",
"m_strTable" => "teacher",
"m_srcTableName" => "teacher"
));
$proto14["m_sql"] = "rel_month";
$proto14["m_srcTableName"] = "teacher";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);
$proto0["m_fieldlist"][]=$obj;
$proto16=array();
$obj = new SQLField(array(
"m_strName" => "rel_year",
"m_strTable" => "teacher",
"m_srcTableName" => "teacher"
));
$proto16["m_sql"] = "rel_year";
$proto16["m_srcTableName"] = "teacher";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);
$proto0["m_fieldlist"][]=$obj;
$proto18=array();
$obj = new SQLField(array(
"m_strName" => "amount",
"m_strTable" => "teacher",
"m_srcTableName" => "teacher"
));
$proto18["m_sql"] = "amount";
$proto18["m_srcTableName"] = "teacher";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);
$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
$proto20=array();
$proto20["m_link"] = "SQLL_MAIN";
$proto21=array();
$proto21["m_strName"] = "teacher";
$proto21["m_srcTableName"] = "teacher";
$proto21["m_columns"] = array();
$proto21["m_columns"][] = "ID";
$proto21["m_columns"][] = "laser_no";
$proto21["m_columns"][] = "teacher_name";
$proto21["m_columns"][] = "rel_date";
$proto21["m_columns"][] = "rel_month";
$proto21["m_columns"][] = "rel_year";
$proto21["m_columns"][] = "amount";
$obj = new SQLTable($proto21);
$proto20["m_table"] = $obj;
$proto20["m_sql"] = "teacher";
$proto20["m_alias"] = "";
$proto20["m_srcTableName"] = "teacher";
$proto22=array();
$proto22["m_sql"] = "";
$proto22["m_uniontype"] = "SQLL_UNKNOWN";
$obj = new SQLNonParsed(array(
"m_sql" => ""
));
$proto22["m_column"]=$obj;
$proto22["m_contained"] = array();
$proto22["m_strCase"] = "";
$proto22["m_havingmode"] = false;
$proto22["m_inBrackets"] = false;
$proto22["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto22);
$proto20["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto20);
$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$proto0["m_srcTableName"]="teacher";
$obj = new SQLQuery($proto0);
return $obj;
}
$queryData_teacher = createSqlQuery_teacher();
;
$tdatateacher[".sqlquery"] = $queryData_teacher;
$tableEvents["teacher"] = new eventsBase;
$tdatateacher[".hasEvents"] = false;
?>
|