/reports/leaves_reports/output/include/leave_planreport_settings.php
PHP | 1012 lines | 607 code | 358 blank | 47 comment | 24 complexity | e55a40789a2d2da94e6955a664eda290 MD5 | raw file
Possible License(s): LGPL-2.1
- <?php
- $tdataleave_planreport=array();
- $tdataleave_planreport[".ShortName"]="leave_planreport";
- $tdataleave_planreport[".OwnerID"]="";
- $tdataleave_planreport[".OriginalTable"]="tblleaveplan";
-
-
-
- // field labels
- $fieldLabelsleave_planreport = array();
- if(mlang_getcurrentlang()=="English")
- {
- $fieldLabelsleave_planreport["English"]=array();
- $fieldToolTipsleave_planreport["English"]=array();
- $fieldLabelsleave_planreport["English"]["gender"] = "Gender";
- $fieldToolTipsleave_planreport["English"]["gender"] = "";
- $fieldLabelsleave_planreport["English"]["stafflevel"] = "Staff Level";
- $fieldToolTipsleave_planreport["English"]["stafflevel"] = "";
- $fieldLabelsleave_planreport["English"]["stafftype"] = "Staff Type";
- $fieldToolTipsleave_planreport["English"]["stafftype"] = "";
- $fieldLabelsleave_planreport["English"]["days"] = "Days";
- $fieldToolTipsleave_planreport["English"]["days"] = "";
- $fieldLabelsleave_planreport["English"]["description"] = "Leave Type";
- $fieldToolTipsleave_planreport["English"]["description"] = "";
- $fieldLabelsleave_planreport["English"]["countryname"] = "Nationality";
- $fieldToolTipsleave_planreport["English"]["countryname"] = "";
- $fieldLabelsleave_planreport["English"][""] = "";
- $fieldToolTipsleave_planreport["English"][""] = "";
- $fieldLabelsleave_planreport["English"][""] = "Leave Plan";
- $fieldToolTipsleave_planreport["English"][""] = "";
- if (count($fieldToolTipsleave_planreport["English"])){
- $tdataleave_planreport[".isUseToolTips"]=true;
- }
- }
-
-
-
- $tdataleave_planreport[".NCSearch"]=true;
-
-
-
- $tdataleave_planreport[".shortTableName"] = "leave_planreport";
- $tdataleave_planreport[".nSecOptions"] = 0;
- $tdataleave_planreport[".recsPerRowList"] = 1;
- $tdataleave_planreport[".tableGroupBy"] = "0";
- $tdataleave_planreport[".mainTableOwnerID"] = "";
- $tdataleave_planreport[".moveNext"] = 1;
-
-
-
-
- $tdataleave_planreport[".showAddInPopup"] = false;
-
- $tdataleave_planreport[".showEditInPopup"] = false;
-
- $tdataleave_planreport[".showViewInPopup"] = false;
-
-
- $tdataleave_planreport[".fieldsForRegister"] = array();
-
- $tdataleave_planreport[".listAjax"] = false;
-
- $tdataleave_planreport[".audit"] = false;
-
- $tdataleave_planreport[".locking"] = false;
-
- $tdataleave_planreport[".listIcons"] = true;
- $tdataleave_planreport[".edit"] = true;
- $tdataleave_planreport[".inlineEdit"] = true;
- $tdataleave_planreport[".view"] = true;
-
- $tdataleave_planreport[".exportTo"] = true;
-
- $tdataleave_planreport[".printFriendly"] = true;
-
- $tdataleave_planreport[".delete"] = true;
-
- $tdataleave_planreport[".showSimpleSearchOptions"] = false;
-
- $tdataleave_planreport[".showSearchPanel"] = true;
-
-
- if (isMobile()){
- $tdataleave_planreport[".isUseAjaxSuggest"] = false;
- }else {
- $tdataleave_planreport[".isUseAjaxSuggest"] = true;
- }
-
-
-
- // button handlers file names
-
- $tdataleave_planreport[".addPageEvents"] = false;
-
-
- // use datepicker for search panel
- $tdataleave_planreport[".isUseCalendarForSearch"] = false;
-
- // use timepicker for search panel
- $tdataleave_planreport[".isUseTimeForSearch"] = false;
-
- $tdataleave_planreport[".isUseiBox"] = false;
-
-
-
-
-
-
- $tdataleave_planreport[".isUseInlineJs"] = $tdataleave_planreport[".isUseInlineAdd"] || $tdataleave_planreport[".isUseInlineEdit"];
-
- $tdataleave_planreport[".allSearchFields"] = array();
-
- $tdataleave_planreport[".globSearchFields"][] = "gender";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("gender", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "gender";
- }
- $tdataleave_planreport[".globSearchFields"][] = "stafflevel";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("stafflevel", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "stafflevel";
- }
- $tdataleave_planreport[".globSearchFields"][] = "stafftype";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("stafftype", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "stafftype";
- }
- $tdataleave_planreport[".globSearchFields"][] = "days";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("days", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "days";
- }
- $tdataleave_planreport[".globSearchFields"][] = "description";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("description", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "description";
- }
- $tdataleave_planreport[".globSearchFields"][] = "countryname";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("countryname", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "countryname";
- }
-
-
- $tdataleave_planreport[".googleLikeFields"][] = "gender";
- $tdataleave_planreport[".googleLikeFields"][] = "stafflevel";
- $tdataleave_planreport[".googleLikeFields"][] = "stafftype";
- $tdataleave_planreport[".googleLikeFields"][] = "days";
- $tdataleave_planreport[".googleLikeFields"][] = "description";
- $tdataleave_planreport[".googleLikeFields"][] = "countryname";
-
- $tdataleave_planreport[".panelSearchFields"][] = "gender";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("gender", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "gender";
- }
- $tdataleave_planreport[".panelSearchFields"][] = "stafflevel";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("stafflevel", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "stafflevel";
- }
- $tdataleave_planreport[".panelSearchFields"][] = "stafftype";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("stafftype", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "stafftype";
- }
- $tdataleave_planreport[".panelSearchFields"][] = "days";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("days", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "days";
- }
- $tdataleave_planreport[".panelSearchFields"][] = "description";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("description", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "description";
- }
- $tdataleave_planreport[".panelSearchFields"][] = "countryname";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("countryname", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "countryname";
- }
-
-
- $tdataleave_planreport[".advSearchFields"][] = "gender";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("gender", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "gender";
- }
- $tdataleave_planreport[".advSearchFields"][] = "stafflevel";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("stafflevel", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "stafflevel";
- }
- $tdataleave_planreport[".advSearchFields"][] = "stafftype";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("stafftype", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "stafftype";
- }
- $tdataleave_planreport[".advSearchFields"][] = "days";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("days", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "days";
- }
- $tdataleave_planreport[".advSearchFields"][] = "description";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("description", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "description";
- }
- $tdataleave_planreport[".advSearchFields"][] = "countryname";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("countryname", $tdataleave_planreport[".allSearchFields"]))
- {
- $tdataleave_planreport[".allSearchFields"][] = "countryname";
- }
-
- $tdataleave_planreport[".isTableType"] = "report";
-
-
-
-
-
-
- // Access doesn't support subqueries from the same table as main
- $tdataleave_planreport[".subQueriesSupAccess"] = true;
-
-
-
-
-
-
- $gstrOrderBy = "";
- if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
- $gstrOrderBy = "order by ".$gstrOrderBy;
- $tdataleave_planreport[".strOrderBy"] = $gstrOrderBy;
-
- $tdataleave_planreport[".orderindexes"] = array();
-
- $tdataleave_planreport[".sqlHead"] = "SELECT tblleaveplan.gender, tblleaveplan.stafflevel, tblleaveplan.stafftype, tblleaveplan.days, tblleavetype.description, tblcountries.countryname";
- $tdataleave_planreport[".sqlFrom"] = "FROM tblleaveplan INNER JOIN tblleavetype ON tblleaveplan.leavetypeid = tblleavetype.leavetypeid INNER JOIN tblcountries ON tblleaveplan.nationality = tblcountries.countryid";
- $tdataleave_planreport[".sqlWhereExpr"] = "";
- $tdataleave_planreport[".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;
- $tdataleave_planreport[".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;
- $tdataleave_planreport[".arrGroupsPerPage"] = $arrGPP;
-
- $tableKeys = array();
- $tdataleave_planreport[".Keys"] = $tableKeys;
-
- $tdataleave_planreport[".listFields"] = array();
- $tdataleave_planreport[".listFields"][] = "gender";
- $tdataleave_planreport[".listFields"][] = "stafflevel";
- $tdataleave_planreport[".listFields"][] = "stafftype";
- $tdataleave_planreport[".listFields"][] = "days";
- $tdataleave_planreport[".listFields"][] = "description";
- $tdataleave_planreport[".listFields"][] = "countryname";
-
- $tdataleave_planreport[".addFields"] = array();
- $tdataleave_planreport[".addFields"][] = "gender";
- $tdataleave_planreport[".addFields"][] = "stafflevel";
- $tdataleave_planreport[".addFields"][] = "stafftype";
- $tdataleave_planreport[".addFields"][] = "days";
-
- $tdataleave_planreport[".inlineAddFields"] = array();
- $tdataleave_planreport[".inlineAddFields"][] = "gender";
- $tdataleave_planreport[".inlineAddFields"][] = "stafflevel";
- $tdataleave_planreport[".inlineAddFields"][] = "stafftype";
- $tdataleave_planreport[".inlineAddFields"][] = "days";
- $tdataleave_planreport[".inlineAddFields"][] = "description";
- $tdataleave_planreport[".inlineAddFields"][] = "countryname";
-
- $tdataleave_planreport[".editFields"] = array();
- $tdataleave_planreport[".editFields"][] = "gender";
- $tdataleave_planreport[".editFields"][] = "stafflevel";
- $tdataleave_planreport[".editFields"][] = "stafftype";
- $tdataleave_planreport[".editFields"][] = "days";
-
- $tdataleave_planreport[".inlineEditFields"] = array();
- $tdataleave_planreport[".inlineEditFields"][] = "gender";
- $tdataleave_planreport[".inlineEditFields"][] = "stafflevel";
- $tdataleave_planreport[".inlineEditFields"][] = "stafftype";
- $tdataleave_planreport[".inlineEditFields"][] = "days";
- $tdataleave_planreport[".inlineEditFields"][] = "description";
- $tdataleave_planreport[".inlineEditFields"][] = "countryname";
-
-
- // gender
- $fdata = array();
- $fdata["strName"] = "gender";
- $fdata["ownerTable"] = "tblleaveplan";
- $fdata["Label"]="Gender";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "gender";
-
- $fdata["FullName"]= "tblleaveplan.gender";
-
-
-
-
-
-
- $fdata["Index"]= 1;
- $fdata["EditParams"]="";
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_planreport["gender"]=$fdata;
- // stafflevel
- $fdata = array();
- $fdata["strName"] = "stafflevel";
- $fdata["ownerTable"] = "tblleaveplan";
- $fdata["Label"]="Staff Level";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]="name";
- $fdata["LinkFieldType"]=129;
- $fdata["DisplayField"]="name";
- $fdata["LookupTable"]="tblstaffcategory";
- $fdata["LookupOrderBy"]="name";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "stafflevel";
-
- $fdata["FullName"]= "tblleaveplan.stafflevel";
-
-
-
-
-
-
- $fdata["Index"]= 2;
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_planreport["stafflevel"]=$fdata;
- // stafftype
- $fdata = array();
- $fdata["strName"] = "stafftype";
- $fdata["ownerTable"] = "tblleaveplan";
- $fdata["Label"]="Staff Type";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
- $fdata["LCType"]= 3;
-
- $fdata["LinkField"]="stafftype";
- $fdata["LinkFieldType"]=129;
- $fdata["DisplayField"]="stafftype";
- $fdata["LookupTable"]="tblstafftype";
- $fdata["LookupOrderBy"]="stafftype";
- $fdata["SimpleAdd"]=true;
-
- $fdata["Multiselect"]=true;
- $fdata["SelectSize"] = 1;
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "stafftype";
-
- $fdata["FullName"]= "tblleaveplan.stafftype";
-
-
-
-
-
-
- $fdata["Index"]= 3;
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_planreport["stafftype"]=$fdata;
- // days
- $fdata = array();
- $fdata["strName"] = "days";
- $fdata["ownerTable"] = "tblleaveplan";
- $fdata["Label"]="Days";
-
-
-
- $fdata["FieldType"]= 3;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "days";
-
- $fdata["FullName"]= "tblleaveplan.days";
-
-
-
-
-
-
- $fdata["Index"]= 4;
- $fdata["EditParams"]="";
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
- $fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_planreport["days"]=$fdata;
- // description
- $fdata = array();
- $fdata["strName"] = "description";
- $fdata["ownerTable"] = "tblleavetype";
- $fdata["Label"]="Leave Type";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]="description";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]="description";
- $fdata["LookupTable"]="tblleavetype";
- $fdata["LookupOrderBy"]="description";
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "description";
-
- $fdata["FullName"]= "tblleavetype.description";
-
-
-
-
-
-
- $fdata["Index"]= 5;
-
- $fdata["bListPage"]=true;
-
-
- $fdata["bInlineAdd"]=true;
-
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_planreport["description"]=$fdata;
- // countryname
- $fdata = array();
- $fdata["strName"] = "countryname";
- $fdata["ownerTable"] = "tblcountries";
- $fdata["Label"]="Nationality";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]="countryname";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]="countryname";
- $fdata["LookupTable"]="tblcountries";
- $fdata["LookupOrderBy"]="countryname";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "countryname";
-
- $fdata["FullName"]= "tblcountries.countryname";
-
-
-
-
-
-
- $fdata["Index"]= 6;
-
- $fdata["bListPage"]=true;
-
-
- $fdata["bInlineAdd"]=true;
-
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_planreport["countryname"]=$fdata;
-
-
-
- $tables_data["leave_planreport"]=&$tdataleave_planreport;
- $field_labels["leave_planreport"] = &$fieldLabelsleave_planreport;
- $fieldToolTips["leave_planreport"] = &$fieldToolTipsleave_planreport;
-
- // -----------------start prepare master-details data arrays ------------------------------//
- // tables which are detail tables for current table (master)
- $detailsTablesData["leave_planreport"] = array();
-
-
- // tables which are master tables for current table (detail)
- $masterTablesData["leave_planreport"] = array();
-
- // -----------------end prepare master-details data arrays ------------------------------//
-
- require_once(getabspath("classes/sql.php"));
-
-
-
-
-
-
-
-
-
-
- function createSqlQuery_leave_planreport()
- {
- $proto0=array();
- $proto0["m_strHead"] = "SELECT";
- $proto0["m_strFieldList"] = "tblleaveplan.gender, tblleaveplan.stafflevel, tblleaveplan.stafftype, tblleaveplan.days, tblleavetype.description, tblcountries.countryname";
- $proto0["m_strFrom"] = "FROM tblleaveplan INNER JOIN tblleavetype ON tblleaveplan.leavetypeid = tblleavetype.leavetypeid INNER JOIN tblcountries ON tblleaveplan.nationality = tblcountries.countryid";
- $proto0["m_strWhere"] = "";
- $proto0["m_strOrderBy"] = "";
- $proto0["m_strTail"] = "";
- $proto1=array();
- $proto1["m_sql"] = "";
- $proto1["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLNonParsed(array(
- "m_sql" => ""
- ));
-
- $proto1["m_column"]=$obj;
- $proto1["m_contained"] = array();
- $proto1["m_strCase"] = "";
- $proto1["m_havingmode"] = "0";
- $proto1["m_inBrackets"] = "0";
- $proto1["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto1);
-
- $proto0["m_where"] = $obj;
- $proto3=array();
- $proto3["m_sql"] = "";
- $proto3["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLNonParsed(array(
- "m_sql" => ""
- ));
-
- $proto3["m_column"]=$obj;
- $proto3["m_contained"] = array();
- $proto3["m_strCase"] = "";
- $proto3["m_havingmode"] = "0";
- $proto3["m_inBrackets"] = "0";
- $proto3["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto3);
-
- $proto0["m_having"] = $obj;
- $proto0["m_fieldlist"] = array();
- $proto5=array();
- $obj = new SQLField(array(
- "m_strName" => "gender",
- "m_strTable" => "tblleaveplan"
- ));
-
- $proto5["m_expr"]=$obj;
- $proto5["m_alias"] = "";
- $obj = new SQLFieldListItem($proto5);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto7=array();
- $obj = new SQLField(array(
- "m_strName" => "stafflevel",
- "m_strTable" => "tblleaveplan"
- ));
-
- $proto7["m_expr"]=$obj;
- $proto7["m_alias"] = "";
- $obj = new SQLFieldListItem($proto7);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto9=array();
- $obj = new SQLField(array(
- "m_strName" => "stafftype",
- "m_strTable" => "tblleaveplan"
- ));
-
- $proto9["m_expr"]=$obj;
- $proto9["m_alias"] = "";
- $obj = new SQLFieldListItem($proto9);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto11=array();
- $obj = new SQLField(array(
- "m_strName" => "days",
- "m_strTable" => "tblleaveplan"
- ));
-
- $proto11["m_expr"]=$obj;
- $proto11["m_alias"] = "";
- $obj = new SQLFieldListItem($proto11);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto13=array();
- $obj = new SQLField(array(
- "m_strName" => "description",
- "m_strTable" => "tblleavetype"
- ));
-
- $proto13["m_expr"]=$obj;
- $proto13["m_alias"] = "";
- $obj = new SQLFieldListItem($proto13);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto15=array();
- $obj = new SQLField(array(
- "m_strName" => "countryname",
- "m_strTable" => "tblcountries"
- ));
-
- $proto15["m_expr"]=$obj;
- $proto15["m_alias"] = "";
- $obj = new SQLFieldListItem($proto15);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto0["m_fromlist"] = array();
- $proto17=array();
- $proto17["m_link"] = "SQLL_MAIN";
- $proto18=array();
- $proto18["m_strName"] = "tblleaveplan";
- $proto18["m_columns"] = array();
- $proto18["m_columns"][] = "planid";
- $proto18["m_columns"][] = "gender";
- $proto18["m_columns"][] = "stafflevel";
- $proto18["m_columns"][] = "stafftype";
- $proto18["m_columns"][] = "nationality";
- $proto18["m_columns"][] = "days";
- $proto18["m_columns"][] = "ifschedulable";
- $proto18["m_columns"][] = "accrualrate";
- $proto18["m_columns"][] = "leavetypeid";
- $obj = new SQLTable($proto18);
-
- $proto17["m_table"] = $obj;
- $proto17["m_alias"] = "";
- $proto19=array();
- $proto19["m_sql"] = "";
- $proto19["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLNonParsed(array(
- "m_sql" => ""
- ));
-
- $proto19["m_column"]=$obj;
- $proto19["m_contained"] = array();
- $proto19["m_strCase"] = "";
- $proto19["m_havingmode"] = "0";
- $proto19["m_inBrackets"] = "0";
- $proto19["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto19);
-
- $proto17["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto17);
-
- $proto0["m_fromlist"][]=$obj;
- $proto21=array();
- $proto21["m_link"] = "SQLL_INNERJOIN";
- $proto22=array();
- $proto22["m_strName"] = "tblleavetype";
- $proto22["m_columns"] = array();
- $proto22["m_columns"][] = "leavetypeid";
- $proto22["m_columns"][] = "description";
- $obj = new SQLTable($proto22);
-
- $proto21["m_table"] = $obj;
- $proto21["m_alias"] = "";
- $proto23=array();
- $proto23["m_sql"] = "tblleaveplan.leavetypeid = tblleavetype.leavetypeid";
- $proto23["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "leavetypeid",
- "m_strTable" => "tblleaveplan"
- ));
-
- $proto23["m_column"]=$obj;
- $proto23["m_contained"] = array();
- $proto23["m_strCase"] = "= tblleavetype.leavetypeid";
- $proto23["m_havingmode"] = "0";
- $proto23["m_inBrackets"] = "0";
- $proto23["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto23);
-
- $proto21["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto21);
-
- $proto0["m_fromlist"][]=$obj;
- $proto25=array();
- $proto25["m_link"] = "SQLL_INNERJOIN";
- $proto26=array();
- $proto26["m_strName"] = "tblcountries";
- $proto26["m_columns"] = array();
- $proto26["m_columns"][] = "countryid";
- $proto26["m_columns"][] = "countryname";
- $obj = new SQLTable($proto26);
-
- $proto25["m_table"] = $obj;
- $proto25["m_alias"] = "";
- $proto27=array();
- $proto27["m_sql"] = "tblleaveplan.nationality = tblcountries.countryid";
- $proto27["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "nationality",
- "m_strTable" => "tblleaveplan"
- ));
-
- $proto27["m_column"]=$obj;
- $proto27["m_contained"] = array();
- $proto27["m_strCase"] = "= tblcountries.countryid";
- $proto27["m_havingmode"] = "0";
- $proto27["m_inBrackets"] = "0";
- $proto27["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto27);
-
- $proto25["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto25);
-
- $proto0["m_fromlist"][]=$obj;
- $proto0["m_groupby"] = array();
- $proto0["m_orderby"] = array();
- $obj = new SQLQuery($proto0);
-
- return $obj;
- }
- $queryData_leave_planreport = createSqlQuery_leave_planreport();
- $tdataleave_planreport[".sqlquery"] = $queryData_leave_planreport;
-
-
-
- $tableEvents["leave_planreport"] = new eventsBase;
- $tdataleave_planreport[".hasEvents"] = false;
-
- ?>