/reports/leaves_reports/output/include/leaves_schedulereport_settings.php
PHP | 1981 lines | 1197 code | 698 blank | 86 comment | 39 complexity | fd00d589a6bfee34555b10eacc0165ec MD5 | raw file
Possible License(s): LGPL-2.1
Large files files are truncated, but you can click here to view the full file
- <?php
- $tdataleaves_schedulereport=array();
- $tdataleaves_schedulereport[".ShortName"]="leaves_schedulereport";
- $tdataleaves_schedulereport[".OwnerID"]="";
- $tdataleaves_schedulereport[".OriginalTable"]="vwpromotions";
-
-
-
- // field labels
- $fieldLabelsleaves_schedulereport = array();
- if(mlang_getcurrentlang()=="English")
- {
- $fieldLabelsleaves_schedulereport["English"]=array();
- $fieldToolTipsleaves_schedulereport["English"]=array();
- $fieldLabelsleaves_schedulereport["English"]["surname"] = "Surname";
- $fieldToolTipsleaves_schedulereport["English"]["surname"] = "";
- $fieldLabelsleaves_schedulereport["English"]["firstname"] = "Firstname";
- $fieldToolTipsleaves_schedulereport["English"]["firstname"] = "";
- $fieldLabelsleaves_schedulereport["English"]["othernames"] = "Othernames";
- $fieldToolTipsleaves_schedulereport["English"]["othernames"] = "";
- $fieldLabelsleaves_schedulereport["English"]["personnelno"] = "Personnel No.";
- $fieldToolTipsleaves_schedulereport["English"]["personnelno"] = "";
- $fieldLabelsleaves_schedulereport["English"]["dept"] = "Department";
- $fieldToolTipsleaves_schedulereport["English"]["dept"] = "";
- $fieldLabelsleaves_schedulereport["English"]["faculty"] = "Faculty";
- $fieldToolTipsleaves_schedulereport["English"]["faculty"] = "";
- $fieldLabelsleaves_schedulereport["English"]["status"] = "Status";
- $fieldToolTipsleaves_schedulereport["English"]["status"] = "";
- $fieldLabelsleaves_schedulereport["English"]["fromdate"] = "Commencement Date";
- $fieldToolTipsleaves_schedulereport["English"]["fromdate"] = "";
- $fieldLabelsleaves_schedulereport["English"]["todate"] = "End Date";
- $fieldToolTipsleaves_schedulereport["English"]["todate"] = "";
- $fieldLabelsleaves_schedulereport["English"]["location"] = "Location";
- $fieldToolTipsleaves_schedulereport["English"]["location"] = "";
- $fieldLabelsleaves_schedulereport["English"]["description"] = "Leave Type";
- $fieldToolTipsleaves_schedulereport["English"]["description"] = "";
- $fieldLabelsleaves_schedulereport["English"]["rank"] = "Rank";
- $fieldToolTipsleaves_schedulereport["English"]["rank"] = "";
- $fieldLabelsleaves_schedulereport["English"]["cadre"] = "Cadre";
- $fieldToolTipsleaves_schedulereport["English"]["cadre"] = "";
- $fieldLabelsleaves_schedulereport["English"]["staffcategory"] = "Staff Category";
- $fieldToolTipsleaves_schedulereport["English"]["staffcategory"] = "";
- $fieldLabelsleaves_schedulereport["English"][""] = "";
- $fieldToolTipsleaves_schedulereport["English"][""] = "";
- $fieldLabelsleaves_schedulereport["English"][""] = "Leave Schedule";
- $fieldToolTipsleaves_schedulereport["English"][""] = "";
- if (count($fieldToolTipsleaves_schedulereport["English"])){
- $tdataleaves_schedulereport[".isUseToolTips"]=true;
- }
- }
-
-
-
- $tdataleaves_schedulereport[".NCSearch"]=true;
-
-
-
- $tdataleaves_schedulereport[".shortTableName"] = "leaves_schedulereport";
- $tdataleaves_schedulereport[".nSecOptions"] = 0;
- $tdataleaves_schedulereport[".recsPerRowList"] = 1;
- $tdataleaves_schedulereport[".tableGroupBy"] = "0";
- $tdataleaves_schedulereport[".mainTableOwnerID"] = "";
- $tdataleaves_schedulereport[".moveNext"] = 1;
-
-
-
-
- $tdataleaves_schedulereport[".showAddInPopup"] = false;
-
- $tdataleaves_schedulereport[".showEditInPopup"] = false;
-
- $tdataleaves_schedulereport[".showViewInPopup"] = false;
-
-
- $tdataleaves_schedulereport[".fieldsForRegister"] = array();
-
- $tdataleaves_schedulereport[".listAjax"] = false;
-
- $tdataleaves_schedulereport[".audit"] = false;
-
- $tdataleaves_schedulereport[".locking"] = false;
-
- $tdataleaves_schedulereport[".listIcons"] = true;
-
- $tdataleaves_schedulereport[".exportTo"] = true;
-
- $tdataleaves_schedulereport[".printFriendly"] = true;
-
-
- $tdataleaves_schedulereport[".showSimpleSearchOptions"] = false;
-
- $tdataleaves_schedulereport[".showSearchPanel"] = true;
-
-
- if (isMobile()){
- $tdataleaves_schedulereport[".isUseAjaxSuggest"] = false;
- }else {
- $tdataleaves_schedulereport[".isUseAjaxSuggest"] = true;
- }
-
-
-
- // button handlers file names
-
- $tdataleaves_schedulereport[".addPageEvents"] = false;
-
-
- // use datepicker for search panel
- $tdataleaves_schedulereport[".isUseCalendarForSearch"] = true;
-
- // use timepicker for search panel
- $tdataleaves_schedulereport[".isUseTimeForSearch"] = false;
-
- $tdataleaves_schedulereport[".isUseiBox"] = false;
-
-
-
-
-
-
- $tdataleaves_schedulereport[".isUseInlineJs"] = $tdataleaves_schedulereport[".isUseInlineAdd"] || $tdataleaves_schedulereport[".isUseInlineEdit"];
-
- $tdataleaves_schedulereport[".allSearchFields"] = array();
-
- $tdataleaves_schedulereport[".globSearchFields"][] = "status";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("status", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "status";
- }
- $tdataleaves_schedulereport[".globSearchFields"][] = "fromdate";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("fromdate", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "fromdate";
- }
- $tdataleaves_schedulereport[".globSearchFields"][] = "todate";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("todate", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "todate";
- }
- $tdataleaves_schedulereport[".globSearchFields"][] = "location";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("location", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "location";
- }
- $tdataleaves_schedulereport[".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", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "description";
- }
- $tdataleaves_schedulereport[".globSearchFields"][] = "personnelno";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("personnelno", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "personnelno";
- }
- $tdataleaves_schedulereport[".globSearchFields"][] = "dept";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("dept", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "dept";
- }
- $tdataleaves_schedulereport[".globSearchFields"][] = "faculty";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("faculty", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "faculty";
- }
- $tdataleaves_schedulereport[".globSearchFields"][] = "rank";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("rank", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "rank";
- }
- $tdataleaves_schedulereport[".globSearchFields"][] = "cadre";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("cadre", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "cadre";
- }
- $tdataleaves_schedulereport[".globSearchFields"][] = "staffcategory";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("staffcategory", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "staffcategory";
- }
-
-
- $tdataleaves_schedulereport[".googleLikeFields"][] = "status";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "fromdate";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "todate";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "location";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "description";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "personnelno";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "dept";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "faculty";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "rank";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "cadre";
- $tdataleaves_schedulereport[".googleLikeFields"][] = "staffcategory";
-
- $tdataleaves_schedulereport[".panelSearchFields"][] = "status";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("status", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "status";
- }
- $tdataleaves_schedulereport[".panelSearchFields"][] = "fromdate";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("fromdate", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "fromdate";
- }
- $tdataleaves_schedulereport[".panelSearchFields"][] = "todate";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("todate", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "todate";
- }
- $tdataleaves_schedulereport[".panelSearchFields"][] = "location";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("location", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "location";
- }
- $tdataleaves_schedulereport[".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", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "description";
- }
- $tdataleaves_schedulereport[".panelSearchFields"][] = "personnelno";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("personnelno", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "personnelno";
- }
- $tdataleaves_schedulereport[".panelSearchFields"][] = "dept";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("dept", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "dept";
- }
- $tdataleaves_schedulereport[".panelSearchFields"][] = "faculty";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("faculty", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "faculty";
- }
- $tdataleaves_schedulereport[".panelSearchFields"][] = "rank";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("rank", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "rank";
- }
- $tdataleaves_schedulereport[".panelSearchFields"][] = "cadre";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("cadre", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "cadre";
- }
- $tdataleaves_schedulereport[".panelSearchFields"][] = "staffcategory";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("staffcategory", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "staffcategory";
- }
-
-
- $tdataleaves_schedulereport[".advSearchFields"][] = "status";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("status", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "status";
- }
- $tdataleaves_schedulereport[".advSearchFields"][] = "fromdate";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("fromdate", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "fromdate";
- }
- $tdataleaves_schedulereport[".advSearchFields"][] = "todate";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("todate", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "todate";
- }
- $tdataleaves_schedulereport[".advSearchFields"][] = "location";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("location", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "location";
- }
- $tdataleaves_schedulereport[".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", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "description";
- }
- $tdataleaves_schedulereport[".advSearchFields"][] = "personnelno";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("personnelno", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "personnelno";
- }
- $tdataleaves_schedulereport[".advSearchFields"][] = "dept";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("dept", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "dept";
- }
- $tdataleaves_schedulereport[".advSearchFields"][] = "faculty";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("faculty", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "faculty";
- }
- $tdataleaves_schedulereport[".advSearchFields"][] = "rank";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("rank", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "rank";
- }
- $tdataleaves_schedulereport[".advSearchFields"][] = "cadre";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("cadre", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "cadre";
- }
- $tdataleaves_schedulereport[".advSearchFields"][] = "staffcategory";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("staffcategory", $tdataleaves_schedulereport[".allSearchFields"]))
- {
- $tdataleaves_schedulereport[".allSearchFields"][] = "staffcategory";
- }
-
- $tdataleaves_schedulereport[".isTableType"] = "report";
-
-
-
-
-
-
- // Access doesn't support subqueries from the same table as main
- $tdataleaves_schedulereport[".subQueriesSupAccess"] = true;
-
-
-
-
-
-
- $gstrOrderBy = "";
- if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
- $gstrOrderBy = "order by ".$gstrOrderBy;
- $tdataleaves_schedulereport[".strOrderBy"] = $gstrOrderBy;
-
- $tdataleaves_schedulereport[".orderindexes"] = array();
-
- $tdataleaves_schedulereport[".sqlHead"] = "Select tblleaveapplication.status, tblleaveapplication.fromdate, tblleaveapplication.todate, tblleaveschedule.location, tblleavetype.description, vwpromotions.surname, vwpromotions.firstname, vwpromotions.othernames, vwpromotions.personnelno, vwpromotions.dept, vwpromotions.faculty, tblrank.name AS rank, tblcadre.` name` AS cadre, tblstaffcategory.name AS staffcategory";
- $tdataleaves_schedulereport[".sqlFrom"] = "FROM vwpromotions INNER JOIN tblleaveapplication ON vwpromotions.employeeid = tblleaveapplication.employeeid INNER JOIN tblleaveplan ON tblleaveapplication.planid = tblleaveplan.planid INNER JOIN tblleaveschedule ON tblleaveapplication.leaveid = tblleaveschedule.leaveid AND tblleaveplan.planid = tblleaveschedule.planID INNER JOIN tblleavetype ON tblleaveplan.leavetypeid = tblleavetype.leavetypeid INNER JOIN tblrank ON vwpromotions.rank = tblrank.rankid INNER JOIN tblcadre ON tblrank.cadreid = tblcadre.cadreid INNER JOIN tblstaffcategory ON tblcadre.categoryid = tblstaffcategory.categoryid";
- $tdataleaves_schedulereport[".sqlWhereExpr"] = "";
- $tdataleaves_schedulereport[".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;
- $tdataleaves_schedulereport[".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;
- $tdataleaves_schedulereport[".arrGroupsPerPage"] = $arrGPP;
-
- $tableKeys = array();
- $tdataleaves_schedulereport[".Keys"] = $tableKeys;
-
- $tdataleaves_schedulereport[".listFields"] = array();
- $tdataleaves_schedulereport[".listFields"][] = "status";
- $tdataleaves_schedulereport[".listFields"][] = "fromdate";
- $tdataleaves_schedulereport[".listFields"][] = "todate";
- $tdataleaves_schedulereport[".listFields"][] = "location";
- $tdataleaves_schedulereport[".listFields"][] = "description";
- $tdataleaves_schedulereport[".listFields"][] = "surname";
- $tdataleaves_schedulereport[".listFields"][] = "firstname";
- $tdataleaves_schedulereport[".listFields"][] = "othernames";
- $tdataleaves_schedulereport[".listFields"][] = "personnelno";
- $tdataleaves_schedulereport[".listFields"][] = "dept";
- $tdataleaves_schedulereport[".listFields"][] = "faculty";
- $tdataleaves_schedulereport[".listFields"][] = "rank";
- $tdataleaves_schedulereport[".listFields"][] = "cadre";
- $tdataleaves_schedulereport[".listFields"][] = "staffcategory";
-
- $tdataleaves_schedulereport[".addFields"] = array();
- $tdataleaves_schedulereport[".addFields"][] = "surname";
- $tdataleaves_schedulereport[".addFields"][] = "firstname";
- $tdataleaves_schedulereport[".addFields"][] = "othernames";
- $tdataleaves_schedulereport[".addFields"][] = "personnelno";
- $tdataleaves_schedulereport[".addFields"][] = "dept";
- $tdataleaves_schedulereport[".addFields"][] = "faculty";
- $tdataleaves_schedulereport[".addFields"][] = "rank";
-
- $tdataleaves_schedulereport[".inlineAddFields"] = array();
- $tdataleaves_schedulereport[".inlineAddFields"][] = "status";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "fromdate";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "todate";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "location";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "description";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "surname";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "firstname";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "othernames";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "personnelno";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "dept";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "faculty";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "rank";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "cadre";
- $tdataleaves_schedulereport[".inlineAddFields"][] = "staffcategory";
-
- $tdataleaves_schedulereport[".editFields"] = array();
- $tdataleaves_schedulereport[".editFields"][] = "surname";
- $tdataleaves_schedulereport[".editFields"][] = "firstname";
- $tdataleaves_schedulereport[".editFields"][] = "othernames";
- $tdataleaves_schedulereport[".editFields"][] = "personnelno";
- $tdataleaves_schedulereport[".editFields"][] = "dept";
- $tdataleaves_schedulereport[".editFields"][] = "faculty";
- $tdataleaves_schedulereport[".editFields"][] = "rank";
-
- $tdataleaves_schedulereport[".inlineEditFields"] = array();
- $tdataleaves_schedulereport[".inlineEditFields"][] = "status";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "fromdate";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "todate";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "location";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "description";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "surname";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "firstname";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "othernames";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "personnelno";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "dept";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "faculty";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "rank";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "cadre";
- $tdataleaves_schedulereport[".inlineEditFields"][] = "staffcategory";
-
-
- // status
- $fdata = array();
- $fdata["strName"] = "status";
- $fdata["ownerTable"] = "tblleaveapplication";
- $fdata["Label"]="Status";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "status";
-
- $fdata["FullName"]= "tblleaveapplication.status";
-
-
-
-
-
-
- $fdata["Index"]= 1;
- $fdata["EditParams"]="";
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["status"]=$fdata;
- // fromdate
- $fdata = array();
- $fdata["strName"] = "fromdate";
- $fdata["ownerTable"] = "tblleaveapplication";
- $fdata["Label"]="Commencement Date";
-
-
-
- $fdata["FieldType"]= 7;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Date";
- $fdata["ViewFormat"]= "Short Date";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "fromdate";
-
- $fdata["FullName"]= "tblleaveapplication.fromdate";
-
-
-
-
-
-
- $fdata["Index"]= 2;
- $fdata["DateEditType"] = 13;
- $fdata["InitialYearFactor"] = 100;
- $fdata["LastYearFactor"] = 10;
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["fromdate"]=$fdata;
- // todate
- $fdata = array();
- $fdata["strName"] = "todate";
- $fdata["ownerTable"] = "tblleaveapplication";
- $fdata["Label"]="End Date";
-
-
-
- $fdata["FieldType"]= 7;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Date";
- $fdata["ViewFormat"]= "Short Date";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "todate";
-
- $fdata["FullName"]= "tblleaveapplication.todate";
-
-
-
-
-
-
- $fdata["Index"]= 3;
- $fdata["DateEditType"] = 13;
- $fdata["InitialYearFactor"] = 100;
- $fdata["LastYearFactor"] = 10;
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["todate"]=$fdata;
- // location
- $fdata = array();
- $fdata["strName"] = "location";
- $fdata["ownerTable"] = "tblleaveschedule";
- $fdata["Label"]="Location";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "location";
-
- $fdata["FullName"]= "tblleaveschedule.location";
-
-
-
-
-
-
- $fdata["Index"]= 4;
- $fdata["EditParams"]="";
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["location"]=$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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["description"]=$fdata;
- // surname
- $fdata = array();
- $fdata["strName"] = "surname";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Surname";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "surname";
-
- $fdata["FullName"]= "vwpromotions.surname";
-
-
-
-
-
-
- $fdata["Index"]= 6;
- $fdata["EditParams"]="";
- $fdata["EditParams"].= " maxlength=30";
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleaves_schedulereport["surname"]=$fdata;
- // firstname
- $fdata = array();
- $fdata["strName"] = "firstname";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Firstname";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "firstname";
-
- $fdata["FullName"]= "vwpromotions.firstname";
-
-
-
-
-
-
- $fdata["Index"]= 7;
- $fdata["EditParams"]="";
- $fdata["EditParams"].= " maxlength=30";
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleaves_schedulereport["firstname"]=$fdata;
- // othernames
- $fdata = array();
- $fdata["strName"] = "othernames";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Othernames";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "othernames";
-
- $fdata["FullName"]= "vwpromotions.othernames";
-
-
-
-
-
-
- $fdata["Index"]= 8;
- $fdata["EditParams"]="";
- $fdata["EditParams"].= " maxlength=30";
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleaves_schedulereport["othernames"]=$fdata;
- // personnelno
- $fdata = array();
- $fdata["strName"] = "personnelno";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Personnel No.";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "personnelno";
-
- $fdata["FullName"]= "vwpromotions.personnelno";
-
-
-
-
-
-
- $fdata["Index"]= 9;
- $fdata["EditParams"]="";
- $fdata["EditParams"].= " maxlength=7";
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["personnelno"]=$fdata;
- // dept
- $fdata = array();
- $fdata["strName"] = "dept";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Department";
-
-
-
- $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"]="name";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]="name";
- $fdata["LookupTable"]="tbldepartment";
- $fdata["LookupOrderBy"]="name";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "dept";
-
- $fdata["FullName"]= "vwpromotions.dept";
-
-
-
-
-
-
- $fdata["Index"]= 10;
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["dept"]=$fdata;
- // faculty
- $fdata = array();
- $fdata["strName"] = "faculty";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Faculty";
-
-
-
- $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"]="fame";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]="fame";
- $fdata["LookupTable"]="tblfaccentres";
- $fdata["LookupOrderBy"]="fame";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "faculty";
-
- $fdata["FullName"]= "vwpromotions.faculty";
-
-
-
-
-
-
- $fdata["Index"]= 11;
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["faculty"]=$fdata;
- // rank
- $fdata = array();
- $fdata["strName"] = "rank";
- $fdata["ownerTable"] = "tblrank";
- $fdata["Label"]="Rank";
-
-
-
- $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"]="name";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]="name";
- $fdata["LookupTable"]="tblrank";
- $fdata["LookupOrderBy"]="name";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "rank";
-
- $fdata["FullName"]= "tblrank.name";
-
-
-
-
-
-
- $fdata["Index"]= 12;
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["rank"]=$fdata;
- // cadre
- $fdata = array();
- $fdata["strName"] = "cadre";
- $fdata["ownerTable"] = "tblcadre";
- $fdata["Label"]="Cadre";
-
-
-
- $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"]=" name";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]=" name";
- $fdata["LookupTable"]="tblcadre";
- $fdata["LookupOrderBy"]=" name";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "cadre";
-
- $fdata["FullName"]= "tblcadre.` name`";
-
-
-
-
-
-
- $fdata["Index"]= 13;
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["cadre"]=$fdata;
- // staffcategory
- $fdata = array();
- $fdata["strName"] = "staffcategory";
- $fdata["ownerTable"] = "tblstaffcategory";
- $fdata["Label"]="Staff Category";
-
-
-
- $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"]= "staffcategory";
-
- $fdata["FullName"]= "tblstaffcategory.name";
-
-
-
-
-
-
- $fdata["Index"]= 14;
-
- $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;
-
-
-
-
-
-
- $tdataleaves_schedulereport["staffcategory"]=$fdata;
-
-
-
- $tables_data["leaves_schedulereport"]=&$tdataleaves_schedulereport;
- $field_labels["leaves_schedulereport"] = &$fieldLabelsleaves_schedulereport;
- $fieldToolTips["leaves_schedulereport"] = &$fieldToolTipsleaves_schedulereport;
-
- // -----------------start prepare master-details data arrays ------------------------------//
- // tables which are detail tables for current table (master)
- $detailsTablesData["leaves_schedulereport"] = array();
-
-
- // tables which are master tables for current table (detail)
- $masterTablesData["leaves_schedulereport"] = array();
-
- // -----------------end prepare master-details data arrays ------------------------------//
-
- require_once(getabspath("classes/sql.php"));
-
-
-
-
-
-
-
-
-
-
- function createSqlQuery_leaves_schedulereport()
- {
- $proto0=array();
- $proto0["m_strHead"] = "Select";
- $proto0["m_strFieldList"] = "tblleaveapplication.status, tblleaveapplication.fromdate, tblleaveapplication.todate, tblleaveschedule.location, tblleavetype.description, vwpromotions.surname, vwpromotions.firstname, vwpromotions.othernames, vwpromotions.personnelno, vwpromotions.dept, vwpromotions.faculty, tblrank.name AS rank, tblcadre.` name` AS cadre, tblstaffcategory.name AS staffcategory";
- $proto0["m_strFrom"] = "FROM vwpromotions INNER JOIN tblleaveapplication ON vwpromotions.employeeid = tblleaveapplication.employeeid INNER JOIN tblleaveplan ON tblleaveapplication.planid = tblleaveplan.planid INNER JOIN tblleaveschedule ON tblleaveapplication.leaveid = tblleaveschedule.leaveid AND tblleaveplan.planid = tblleaveschedule.planID INNER JOIN tblleavetype ON tblleaveplan.leavetypeid = tblleavetype.leavetypeid INNER JOIN tblrank ON vwpromotions.rank = tblrank.rankid INNER JOIN tblcadre ON tblrank.cadreid = tblcadre.cadreid INNER JOIN tblstaffcategory ON tblcadre.categoryid = tblstaffcategory.categoryid";
- $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" => "status",
- "m_strTable" => "tblleaveapplication"
- ));
-
- $proto5["m_expr"]=$obj;
- $proto5["m_alias"] = "";
- $obj = new SQLFieldListItem($proto5);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto7=array();
- $obj = new SQLField(array(
- "m_strName" => "fromdate",
- "m_strTable" => "tblleaveapplication"
- ));
-
- $proto7["m_expr"]=$obj;
- $proto7["m_alias"] = "";
- $obj = new SQLFieldListItem($proto7);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto9=array();
- $obj = new SQLField(array(
- "m_strName" => "todate",
- "m_strTable" => "tblleaveapplication"
- ));
-
- $proto9["m_expr"]=$obj;
- $proto9["m_alias"] = "";
- $obj = new SQLFieldListItem($proto9);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto11=array();
- $obj = new SQLField(array(
- "m_strName" => "location",
- "m_strTable" => "tblleaveschedule"
- ));
-
- $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" => "surname",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto15["m_expr"]=$obj;
- $proto15["m_alias"] = "";
- $obj = new SQLFieldListItem($proto15);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto17=array();
- $obj = new SQLField(array(
- "m_strName" => "firstname",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto17["m_expr"]=$obj;
- $proto17["m_alias"] = "";
- $obj = new SQLFieldListItem($proto17);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto19=array();
- $obj = new SQLField(array(
- "m_strName" => "othernames",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto19["m_expr"]=$obj;
- $proto19["m_alias"] = "";
- $obj = new SQLFieldListItem($proto19);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto21=array();
- $obj = new SQLField(array(
- "m_strName" => "personnelno",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto21["m_expr"]=$obj;
- $proto21["m_alias"] = "";
- $obj = new SQLFieldListItem($proto21);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto23=array();
- $obj = new SQLField(array(
- "m_strName" => "dept",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto23["m_expr"]=$obj;
- $proto23["m_alias"] = "";
- $obj = new SQLFieldListItem($proto23);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto25=array();
- $obj = new SQLField(array(
- "m_strName" => "faculty",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto25["m_expr"]=$obj;
- $proto25["m_alias"] = "";
- $obj = new SQLFieldListItem($proto25);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto27=array();
- $obj = new SQLField(array(
- "m_strName" => "name",
- "m_strTable" => "tblrank"
- ));
-
- $proto27["m_expr"]=$obj;
- $proto27["m_alias"] = "rank";
- $obj = new SQLFieldListItem($proto27);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto29=array();
- $obj = new SQLField(array(
- "m_strName" => " name",
- "m_strTable" => "tblcadre"
- ));
-
- $proto29["m_expr"]=$obj;
- $proto29["m_alias"] = "cadre";
- $obj = new SQLFieldListItem($proto29);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto31=array();
- $obj = new SQLField(array(
- "m_strName" => "name",
- "m_strTable" => "tblstaffcategory"
- ));
-
- $proto31["m_expr"]=$obj;
- $proto31["m_alias"] = "staffcategory";
- $obj = new SQLFieldListItem($proto31);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto0["m_fromlist"] = array();
- $proto33=array();
- $proto33["m_link"] = "SQLL_MAIN";
- $proto34=array();
- $proto34["m_strName"] = "vwpromotions";
- $proto34["m_columns"] = array();
- $proto34["m_columns"][] = "employeeid";
- $proto34["m_columns"][] = "surname";
- $proto34["m_columns"][] = "firstname";
- $proto34["m_columns"][] = "othernames";
- $proto34["m_columns"][] = "personnelno";
- $proto34["m_columns"][] = "rank";
- $proto34["m_columns"][] = "dept";
- $proto34["m_columns"][] = "faculty";
- $proto34["m_columns"][] = "effectivedate";
- $obj = new SQLTable($proto34);
-
- $proto33["m_table"] = $obj;
- $proto33["m_alias"] = "";
- $proto35=array();
- $proto35["m_sql"] = "";
- $proto35["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLNonParsed(array(
- "m_sql" => ""
- ));
-
- $proto35["m_column"]=$obj;
- $proto35["m_contained"] = array();
- $proto35["m_strCase"] = "";
- $proto35["m_havingmode"] = "0";
- $proto35["m_inBrackets"] = "0";
- $proto35["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto35);
-
- $proto33["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto33);
-
- $proto0["m_fromlist"][]=$obj;
- $proto37=array();
- $proto37["m_link"] = "SQLL_INNERJOIN";
- $proto38=array();
- $proto38["m_strName"] = "tblleaveapplication";
- $proto38["m_columns"] = array();
- $proto38["m_columns"][] = "leaveid";
- $proto38["m_columns"][] = "employeeid";
- $proto38["m_columns"][] = "planid";
- $proto38["m_columns"][] = "fiscalyear";
- $proto38["m_columns"][] = "fromdate";
- $proto38["m_columns"][] = "todate";
- $proto38["m_columns"][] = "daystaken";
- $proto38["m_columns"][] = "remark";
- $proto38["m_columns"][] = "ifschedule";
- $proto38["m_columns"][] = "status";
- $obj = new SQLTable($proto38);
-
- $proto37["m_table"] = $obj;
- $proto37["m_alias"] = "";
- $proto39=array();
- $proto39["m_sql"] = "vwpromotions.employeeid = tblleaveapplication.employeeid";
- $proto39["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "employeeid",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto39["m_column"]=$obj;
- $proto39["m_contained"] = array();
- $proto39["m_strCase"] = "= tblleaveapplication.employeeid";
- $proto39["m_havingmode"] = "0";
- $proto39["m_inBrackets"] = "0";
- $proto39["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto39);
-
- $proto37["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto37);
-
- $proto0["m_fromlist"][]=$obj;
- $proto41=array();
- $proto41["m_link"] = "SQLL_INNERJOIN";
- $proto42=array();
- $proto42["m_strName"] = "tblleaveplan";
- $proto42["m_columns"] = array();
- $proto42["m_columns"][] = "planid";
- $proto42["m_columns"][] = "gender";
- $proto42["m_columns"][] = "stafflevel";
- $proto42["m_columns"][] = "stafftype";
- $proto42["m_columns"][] = "nationality";
- $proto42["m_columns"][] = "days";
- $proto42["m_columns"][] = "ifschedulable";
- $proto42["m_columns"][] = "accrualrate";
- $proto42["m_columns"][] = "leavetypeid";
- $obj = new SQLTable($proto42);
-
- $proto41["m_table"] = $obj;
- $proto41["m_alias"] = "";
- $proto43=array();
- $proto43["m_sql"] = "tblleaveapplication.planid = tblleaveplan.planid";
- $proto43["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "planid",
- "m_strTable" => "tblleaveapplication"
- ));
-
- $proto43["m_column"]=$obj;
- $proto43["m_contained"] = array();
- $proto43["m_strCase"] = "= tblleaveplan.planid";
- $proto43["m_havingmode"] = "0";
- $proto43["m_inBrackets"] = "0";
- $proto43["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto43);
-
- $proto41["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto41);
-
- $proto0["m_fromlist"][]=$obj;
- $proto45=array();
- $proto45["m_link"] = "SQLL_INNERJOIN";
- $proto46=array();
- $proto46["m_strName"] = "tblleaveschedule";
- $proto46["m_columns"] = array();
- $proto46["m_columns"][] = "leavescheduleid";
- $proto46["m_columns"][] = "leaveid";
- $proto46["m_columns"][] = "planID";
- $proto46["m_columns"][] = "fiscalYEAR";
- $proto46["m_columns"][] = "location";
- $obj = new SQLTable($proto46);
-
- $proto45["m_table"] = $obj;
- $proto45["m_alias"] = "";
- $proto47=array();
- $proto47["m_sql"] = "tblleaveapplication.leaveid = tblleaveschedule.leaveid AND tblleaveplan.planid = tblleaveschedule.planID";
- $proto47["m_uniontype"] = "SQLL_AND";
- $obj = new SQLNonParsed(array(
- "m_sql" => "tblleaveapplication.leaveid = tblleaveschedule.leaveid AND tblleaveplan.planid = tblleaveschedule.planID"
- ));
-
- $proto47["m_column"]=$obj;
- $proto47["m_contained"] = array();
- $proto49=array();
- $proto49["m_sql"] = "tblleaveapplication.leaveid = tblleaveschedule.leaveid";
- $proto49["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "leaveid",
- "m_strTable" => "tblleaveapplication"
- ));
-
- $proto49["m_column"]=$obj;
- $proto49["m_contained"] = array();
- $proto49["m_strCase"] = "= tblleaveschedule.leaveid";
- $proto49["m_havingmode"] = "0";
- $proto49["m_inBrackets"] = "0";
- $proto49["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto49);
-
- $proto47["m_contained"][]=$obj;
- $proto51=array();
- $proto51["m_sql"] = "tblleaveplan.plan…
Large files files are truncated, but you can click here to view the full file