/reports/employment/output/include/vacancyreport_settings.php
PHP | 1439 lines | 857 code | 521 blank | 61 comment | 26 complexity | 1ef021f9f862c66263e1c3d14d924622 MD5 | raw file
Possible License(s): LGPL-2.1
- <?php
- $tdatavacancyreport=array();
- $tdatavacancyreport[".ShortName"]="vacancyreport";
- $tdatavacancyreport[".OwnerID"]="";
- $tdatavacancyreport[".OriginalTable"]="tblvacancies";
-
-
-
- // field labels
- $fieldLabelsvacancyreport = array();
- if(mlang_getcurrentlang()=="English")
- {
- $fieldLabelsvacancyreport["English"]=array();
- $fieldToolTipsvacancyreport["English"]=array();
- $fieldLabelsvacancyreport["English"]["vacantslots"] = "Vacant Slots";
- $fieldToolTipsvacancyreport["English"]["vacantslots"] = "";
- $fieldLabelsvacancyreport["English"]["status"] = "Status";
- $fieldToolTipsvacancyreport["English"]["status"] = "";
- $fieldLabelsvacancyreport["English"]["vacancyreason"] = "Reason";
- $fieldToolTipsvacancyreport["English"]["vacancyreason"] = "";
- $fieldLabelsvacancyreport["English"]["isadvertised"] = "Is Advertised?";
- $fieldToolTipsvacancyreport["English"]["isadvertised"] = "";
- $fieldLabelsvacancyreport["English"]["effectivedate"] = "Effective Date";
- $fieldToolTipsvacancyreport["English"]["effectivedate"] = "";
- $fieldLabelsvacancyreport["English"]["rank"] = "Rank";
- $fieldToolTipsvacancyreport["English"]["rank"] = "";
- $fieldLabelsvacancyreport["English"]["cadre"] = "Cadre";
- $fieldToolTipsvacancyreport["English"]["cadre"] = "";
- $fieldLabelsvacancyreport["English"]["staffCategory"] = "Staff Category";
- $fieldToolTipsvacancyreport["English"]["staffCategory"] = "";
- $fieldLabelsvacancyreport["English"]["faculty"] = "Faculty";
- $fieldToolTipsvacancyreport["English"]["faculty"] = "";
- $fieldLabelsvacancyreport["English"]["department"] = "Department";
- $fieldToolTipsvacancyreport["English"]["department"] = "";
- if (count($fieldToolTipsvacancyreport["English"])){
- $tdatavacancyreport[".isUseToolTips"]=true;
- }
- }
-
-
-
- $tdatavacancyreport[".NCSearch"]=true;
-
-
-
- $tdatavacancyreport[".shortTableName"] = "vacancyreport";
- $tdatavacancyreport[".nSecOptions"] = 0;
- $tdatavacancyreport[".recsPerRowList"] = 1;
- $tdatavacancyreport[".tableGroupBy"] = "0";
- $tdatavacancyreport[".mainTableOwnerID"] = "";
- $tdatavacancyreport[".moveNext"] = 1;
-
-
-
-
- $tdatavacancyreport[".showAddInPopup"] = false;
-
- $tdatavacancyreport[".showEditInPopup"] = false;
-
- $tdatavacancyreport[".showViewInPopup"] = false;
-
-
- $tdatavacancyreport[".fieldsForRegister"] = array();
-
- $tdatavacancyreport[".listAjax"] = false;
-
- $tdatavacancyreport[".audit"] = false;
-
- $tdatavacancyreport[".locking"] = false;
-
- $tdatavacancyreport[".listIcons"] = true;
- $tdatavacancyreport[".edit"] = true;
- $tdatavacancyreport[".inlineEdit"] = true;
- $tdatavacancyreport[".view"] = true;
-
- $tdatavacancyreport[".exportTo"] = true;
-
- $tdatavacancyreport[".printFriendly"] = true;
-
- $tdatavacancyreport[".delete"] = true;
-
- $tdatavacancyreport[".showSimpleSearchOptions"] = false;
-
- $tdatavacancyreport[".showSearchPanel"] = true;
-
-
- if (isMobile()){
- $tdatavacancyreport[".isUseAjaxSuggest"] = false;
- }else {
- $tdatavacancyreport[".isUseAjaxSuggest"] = true;
- }
-
-
-
- // button handlers file names
-
- $tdatavacancyreport[".addPageEvents"] = false;
-
-
- // use datepicker for search panel
- $tdatavacancyreport[".isUseCalendarForSearch"] = true;
-
- // use timepicker for search panel
- $tdatavacancyreport[".isUseTimeForSearch"] = false;
-
- $tdatavacancyreport[".isUseiBox"] = false;
-
-
-
-
-
-
- $tdatavacancyreport[".isUseInlineJs"] = $tdatavacancyreport[".isUseInlineAdd"] || $tdatavacancyreport[".isUseInlineEdit"];
-
- $tdatavacancyreport[".allSearchFields"] = array();
-
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "rank";
- }
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "cadre";
- }
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "staffCategory";
- }
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "faculty";
- }
- $tdatavacancyreport[".globSearchFields"][] = "department";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("department", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "department";
- }
- $tdatavacancyreport[".globSearchFields"][] = "isadvertised";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("isadvertised", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "isadvertised";
- }
- $tdatavacancyreport[".globSearchFields"][] = "effectivedate";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("effectivedate", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "effectivedate";
- }
- $tdatavacancyreport[".globSearchFields"][] = "vacantslots";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("vacantslots", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "vacantslots";
- }
- $tdatavacancyreport[".globSearchFields"][] = "vacancyreason";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("vacancyreason", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "vacancyreason";
- }
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "status";
- }
-
-
- $tdatavacancyreport[".googleLikeFields"][] = "rank";
- $tdatavacancyreport[".googleLikeFields"][] = "cadre";
- $tdatavacancyreport[".googleLikeFields"][] = "staffCategory";
- $tdatavacancyreport[".googleLikeFields"][] = "faculty";
- $tdatavacancyreport[".googleLikeFields"][] = "department";
- $tdatavacancyreport[".googleLikeFields"][] = "isadvertised";
- $tdatavacancyreport[".googleLikeFields"][] = "effectivedate";
- $tdatavacancyreport[".googleLikeFields"][] = "vacantslots";
- $tdatavacancyreport[".googleLikeFields"][] = "vacancyreason";
- $tdatavacancyreport[".googleLikeFields"][] = "status";
-
-
-
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "rank";
- }
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "cadre";
- }
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "staffCategory";
- }
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "faculty";
- }
- $tdatavacancyreport[".advSearchFields"][] = "department";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("department", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "department";
- }
- $tdatavacancyreport[".advSearchFields"][] = "isadvertised";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("isadvertised", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "isadvertised";
- }
- $tdatavacancyreport[".advSearchFields"][] = "effectivedate";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("effectivedate", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "effectivedate";
- }
- $tdatavacancyreport[".advSearchFields"][] = "vacantslots";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("vacantslots", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "vacantslots";
- }
- $tdatavacancyreport[".advSearchFields"][] = "vacancyreason";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("vacancyreason", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "vacancyreason";
- }
- $tdatavacancyreport[".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", $tdatavacancyreport[".allSearchFields"]))
- {
- $tdatavacancyreport[".allSearchFields"][] = "status";
- }
-
- $tdatavacancyreport[".isTableType"] = "report";
-
-
-
-
-
-
- // Access doesn't support subqueries from the same table as main
- $tdatavacancyreport[".subQueriesSupAccess"] = true;
-
-
-
-
-
-
- $gstrOrderBy = "";
- if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
- $gstrOrderBy = "order by ".$gstrOrderBy;
- $tdatavacancyreport[".strOrderBy"] = $gstrOrderBy;
-
- $tdatavacancyreport[".orderindexes"] = array();
-
- $tdatavacancyreport[".sqlHead"] = "SELECT tblrank.name AS rank, tblcadre.` name` AS cadre, tblstaffcategory.name AS staffCategory, tblfaccentres.fame AS faculty, tbldepartment.name AS department, tblvacancies.isadvertised, tblvacancies.effectivedate, tblvacancies.vacantslots, tblvacancies.vacancyreason, tblvacancies.status";
- $tdatavacancyreport[".sqlFrom"] = "FROM tblvacancies INNER JOIN tblrank ON tblrank.rankid = tblvacancies.rankid INNER JOIN tblcadre ON tblcadre.cadreid = tblrank.cadreid INNER JOIN tblstaffcategory ON tblstaffcategory.categoryid = tblcadre.categoryid INNER JOIN tbldepartment ON tbldepartment.departmentid = tblvacancies.departmentid INNER JOIN tblfaccentres ON tblfaccentres.facid = tbldepartment.facultyid";
- $tdatavacancyreport[".sqlWhereExpr"] = "";
- $tdatavacancyreport[".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;
- $tdatavacancyreport[".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;
- $tdatavacancyreport[".arrGroupsPerPage"] = $arrGPP;
-
- $tableKeys = array();
- $tdatavacancyreport[".Keys"] = $tableKeys;
-
- $tdatavacancyreport[".listFields"] = array();
- $tdatavacancyreport[".listFields"][] = "rank";
- $tdatavacancyreport[".listFields"][] = "cadre";
- $tdatavacancyreport[".listFields"][] = "staffCategory";
- $tdatavacancyreport[".listFields"][] = "faculty";
- $tdatavacancyreport[".listFields"][] = "department";
- $tdatavacancyreport[".listFields"][] = "isadvertised";
- $tdatavacancyreport[".listFields"][] = "effectivedate";
- $tdatavacancyreport[".listFields"][] = "vacantslots";
- $tdatavacancyreport[".listFields"][] = "vacancyreason";
- $tdatavacancyreport[".listFields"][] = "status";
-
- $tdatavacancyreport[".addFields"] = array();
- $tdatavacancyreport[".addFields"][] = "isadvertised";
- $tdatavacancyreport[".addFields"][] = "effectivedate";
- $tdatavacancyreport[".addFields"][] = "vacantslots";
- $tdatavacancyreport[".addFields"][] = "vacancyreason";
- $tdatavacancyreport[".addFields"][] = "status";
-
- $tdatavacancyreport[".inlineAddFields"] = array();
- $tdatavacancyreport[".inlineAddFields"][] = "rank";
- $tdatavacancyreport[".inlineAddFields"][] = "cadre";
- $tdatavacancyreport[".inlineAddFields"][] = "staffCategory";
- $tdatavacancyreport[".inlineAddFields"][] = "faculty";
- $tdatavacancyreport[".inlineAddFields"][] = "department";
- $tdatavacancyreport[".inlineAddFields"][] = "isadvertised";
- $tdatavacancyreport[".inlineAddFields"][] = "effectivedate";
- $tdatavacancyreport[".inlineAddFields"][] = "vacantslots";
- $tdatavacancyreport[".inlineAddFields"][] = "vacancyreason";
- $tdatavacancyreport[".inlineAddFields"][] = "status";
-
- $tdatavacancyreport[".editFields"] = array();
- $tdatavacancyreport[".editFields"][] = "isadvertised";
- $tdatavacancyreport[".editFields"][] = "effectivedate";
- $tdatavacancyreport[".editFields"][] = "vacantslots";
- $tdatavacancyreport[".editFields"][] = "vacancyreason";
- $tdatavacancyreport[".editFields"][] = "status";
-
- $tdatavacancyreport[".inlineEditFields"] = array();
- $tdatavacancyreport[".inlineEditFields"][] = "rank";
- $tdatavacancyreport[".inlineEditFields"][] = "cadre";
- $tdatavacancyreport[".inlineEditFields"][] = "staffCategory";
- $tdatavacancyreport[".inlineEditFields"][] = "faculty";
- $tdatavacancyreport[".inlineEditFields"][] = "department";
- $tdatavacancyreport[".inlineEditFields"][] = "isadvertised";
- $tdatavacancyreport[".inlineEditFields"][] = "effectivedate";
- $tdatavacancyreport[".inlineEditFields"][] = "vacantslots";
- $tdatavacancyreport[".inlineEditFields"][] = "vacancyreason";
- $tdatavacancyreport[".inlineEditFields"][] = "status";
-
-
- // rank
- $fdata = array();
- $fdata["strName"] = "rank";
- $fdata["ownerTable"] = "tblrank";
- $fdata["Label"]="Rank";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "rank";
-
- $fdata["FullName"]= "tblrank.name";
-
-
-
-
-
-
- $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;
-
-
-
-
-
-
- $tdatavacancyreport["rank"]=$fdata;
- // cadre
- $fdata = array();
- $fdata["strName"] = "cadre";
- $fdata["ownerTable"] = "tblcadre";
- $fdata["Label"]="Cadre";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "cadre";
-
- $fdata["FullName"]= "tblcadre.` name`";
-
-
-
-
-
-
- $fdata["Index"]= 2;
- $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;
-
-
-
-
-
-
- $tdatavacancyreport["cadre"]=$fdata;
- // staffCategory
- $fdata = array();
- $fdata["strName"] = "staffCategory";
- $fdata["ownerTable"] = "tblstaffcategory";
- $fdata["Label"]="Staff Category";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "staffCategory";
-
- $fdata["FullName"]= "tblstaffcategory.name";
-
-
-
-
-
-
- $fdata["Index"]= 3;
- $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;
-
-
-
-
-
-
- $tdatavacancyreport["staffCategory"]=$fdata;
- // faculty
- $fdata = array();
- $fdata["strName"] = "faculty";
- $fdata["ownerTable"] = "tblfaccentres";
- $fdata["Label"]="Faculty";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "faculty";
-
- $fdata["FullName"]= "tblfaccentres.fame";
-
-
-
-
-
-
- $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;
-
-
-
-
-
-
- $tdatavacancyreport["faculty"]=$fdata;
- // department
- $fdata = array();
- $fdata["strName"] = "department";
- $fdata["ownerTable"] = "tbldepartment";
- $fdata["Label"]="Department";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "department";
-
- $fdata["FullName"]= "tbldepartment.name";
-
-
-
-
-
-
- $fdata["Index"]= 5;
- $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;
-
-
-
-
-
-
- $tdatavacancyreport["department"]=$fdata;
- // isadvertised
- $fdata = array();
- $fdata["strName"] = "isadvertised";
- $fdata["ownerTable"] = "tblvacancies";
- $fdata["Label"]="Is Advertised?";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=0;
- $fdata["pLookupType"] = 0;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LookupValues"]=array();
- $fdata["LookupValues"][]="yes";
- $fdata["LookupValues"][]="no";
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "isadvertised";
-
- $fdata["FullName"]= "tblvacancies.isadvertised";
-
-
-
-
-
-
- $fdata["Index"]= 6;
-
- $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;
-
-
-
-
-
-
- $tdatavacancyreport["isadvertised"]=$fdata;
- // effectivedate
- $fdata = array();
- $fdata["strName"] = "effectivedate";
- $fdata["ownerTable"] = "tblvacancies";
- $fdata["Label"]="Effective Date";
-
-
-
- $fdata["FieldType"]= 7;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Date";
- $fdata["ViewFormat"]= "Short Date";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "effectivedate";
-
- $fdata["FullName"]= "tblvacancies.effectivedate";
-
- $fdata["IsRequired"]=true;
-
-
-
-
-
- $fdata["Index"]= 7;
- $fdata["DateEditType"] = 13;
- $fdata["InitialYearFactor"] = 100;
- $fdata["LastYearFactor"] = 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();
- $fdata["validateAs"]["basicValidate"][] = "IsRequired";
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdatavacancyreport["effectivedate"]=$fdata;
- // vacantslots
- $fdata = array();
- $fdata["strName"] = "vacantslots";
- $fdata["ownerTable"] = "tblvacancies";
- $fdata["Label"]="Vacant Slots";
-
-
-
- $fdata["FieldType"]= 3;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "vacantslots";
-
- $fdata["FullName"]= "tblvacancies.vacantslots";
-
- $fdata["IsRequired"]=true;
-
-
-
-
-
- $fdata["Index"]= 8;
- $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");
- $fdata["validateAs"]["basicValidate"][] = "IsRequired";
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdatavacancyreport["vacantslots"]=$fdata;
- // vacancyreason
- $fdata = array();
- $fdata["strName"] = "vacancyreason";
- $fdata["ownerTable"] = "tblvacancies";
- $fdata["Label"]="Reason";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=0;
- $fdata["pLookupType"] = 0;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LookupValues"]=array();
- $fdata["LookupValues"][]="New";
- $fdata["LookupValues"][]="Retirement";
- $fdata["LookupValues"][]="Termination";
- $fdata["LookupValues"][]="Redesignation";
- $fdata["LookupValues"][]="Withdrawal";
- $fdata["LookupValues"][]="Death";
- $fdata["LookupValues"][]="Transfer";
- $fdata["LookupValues"][]="Leav";
- $fdata["LookupValues"][]="";
- $fdata["LookupValues"][]="bsence";
- $fdata["LookupValues"][]="Stud";
- $fdata["LookupValues"][]="eave";
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "vacancyreason";
-
- $fdata["FullName"]= "tblvacancies.vacancyreason";
-
-
-
-
-
-
- $fdata["Index"]= 9;
-
- $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;
-
-
-
-
-
-
- $tdatavacancyreport["vacancyreason"]=$fdata;
- // status
- $fdata = array();
- $fdata["strName"] = "status";
- $fdata["ownerTable"] = "tblvacancies";
- $fdata["Label"]="Status";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=0;
- $fdata["pLookupType"] = 0;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LookupValues"]=array();
- $fdata["LookupValues"][]="Occupied";
- $fdata["LookupValues"][]="No";
- $fdata["LookupValues"][]="ccupied";
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "status";
-
- $fdata["FullName"]= "tblvacancies.status";
-
-
-
-
-
-
- $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;
-
-
-
-
-
-
- $tdatavacancyreport["status"]=$fdata;
-
-
-
- $tables_data["vacancyreport"]=&$tdatavacancyreport;
- $field_labels["vacancyreport"] = &$fieldLabelsvacancyreport;
- $fieldToolTips["vacancyreport"] = &$fieldToolTipsvacancyreport;
-
- // -----------------start prepare master-details data arrays ------------------------------//
- // tables which are detail tables for current table (master)
- $detailsTablesData["vacancyreport"] = array();
-
-
- // tables which are master tables for current table (detail)
- $masterTablesData["vacancyreport"] = array();
-
- // -----------------end prepare master-details data arrays ------------------------------//
-
- require_once(getabspath("classes/sql.php"));
-
-
-
-
-
-
-
-
-
-
- function createSqlQuery_vacancyreport()
- {
- $proto0=array();
- $proto0["m_strHead"] = "SELECT";
- $proto0["m_strFieldList"] = "tblrank.name AS rank, tblcadre.` name` AS cadre, tblstaffcategory.name AS staffCategory, tblfaccentres.fame AS faculty, tbldepartment.name AS department, tblvacancies.isadvertised, tblvacancies.effectivedate, tblvacancies.vacantslots, tblvacancies.vacancyreason, tblvacancies.status";
- $proto0["m_strFrom"] = "FROM tblvacancies INNER JOIN tblrank ON tblrank.rankid = tblvacancies.rankid INNER JOIN tblcadre ON tblcadre.cadreid = tblrank.cadreid INNER JOIN tblstaffcategory ON tblstaffcategory.categoryid = tblcadre.categoryid INNER JOIN tbldepartment ON tbldepartment.departmentid = tblvacancies.departmentid INNER JOIN tblfaccentres ON tblfaccentres.facid = tbldepartment.facultyid";
- $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" => "name",
- "m_strTable" => "tblrank"
- ));
-
- $proto5["m_expr"]=$obj;
- $proto5["m_alias"] = "rank";
- $obj = new SQLFieldListItem($proto5);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto7=array();
- $obj = new SQLField(array(
- "m_strName" => " name",
- "m_strTable" => "tblcadre"
- ));
-
- $proto7["m_expr"]=$obj;
- $proto7["m_alias"] = "cadre";
- $obj = new SQLFieldListItem($proto7);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto9=array();
- $obj = new SQLField(array(
- "m_strName" => "name",
- "m_strTable" => "tblstaffcategory"
- ));
-
- $proto9["m_expr"]=$obj;
- $proto9["m_alias"] = "staffCategory";
- $obj = new SQLFieldListItem($proto9);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto11=array();
- $obj = new SQLField(array(
- "m_strName" => "fame",
- "m_strTable" => "tblfaccentres"
- ));
-
- $proto11["m_expr"]=$obj;
- $proto11["m_alias"] = "faculty";
- $obj = new SQLFieldListItem($proto11);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto13=array();
- $obj = new SQLField(array(
- "m_strName" => "name",
- "m_strTable" => "tbldepartment"
- ));
-
- $proto13["m_expr"]=$obj;
- $proto13["m_alias"] = "department";
- $obj = new SQLFieldListItem($proto13);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto15=array();
- $obj = new SQLField(array(
- "m_strName" => "isadvertised",
- "m_strTable" => "tblvacancies"
- ));
-
- $proto15["m_expr"]=$obj;
- $proto15["m_alias"] = "";
- $obj = new SQLFieldListItem($proto15);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto17=array();
- $obj = new SQLField(array(
- "m_strName" => "effectivedate",
- "m_strTable" => "tblvacancies"
- ));
-
- $proto17["m_expr"]=$obj;
- $proto17["m_alias"] = "";
- $obj = new SQLFieldListItem($proto17);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto19=array();
- $obj = new SQLField(array(
- "m_strName" => "vacantslots",
- "m_strTable" => "tblvacancies"
- ));
-
- $proto19["m_expr"]=$obj;
- $proto19["m_alias"] = "";
- $obj = new SQLFieldListItem($proto19);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto21=array();
- $obj = new SQLField(array(
- "m_strName" => "vacancyreason",
- "m_strTable" => "tblvacancies"
- ));
-
- $proto21["m_expr"]=$obj;
- $proto21["m_alias"] = "";
- $obj = new SQLFieldListItem($proto21);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto23=array();
- $obj = new SQLField(array(
- "m_strName" => "status",
- "m_strTable" => "tblvacancies"
- ));
-
- $proto23["m_expr"]=$obj;
- $proto23["m_alias"] = "";
- $obj = new SQLFieldListItem($proto23);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto0["m_fromlist"] = array();
- $proto25=array();
- $proto25["m_link"] = "SQLL_MAIN";
- $proto26=array();
- $proto26["m_strName"] = "tblvacancies";
- $proto26["m_columns"] = array();
- $proto26["m_columns"][] = "vacancyid";
- $proto26["m_columns"][] = "rankid";
- $proto26["m_columns"][] = "departmentid";
- $proto26["m_columns"][] = "vacantslots";
- $proto26["m_columns"][] = "jobschedule";
- $proto26["m_columns"][] = "jobshifts";
- $proto26["m_columns"][] = "jobhours";
- $proto26["m_columns"][] = "positionsummary";
- $proto26["m_columns"][] = "educationrequirements";
- $proto26["m_columns"][] = "experiencerequirements";
- $proto26["m_columns"][] = "additional_requirements";
- $proto26["m_columns"][] = "status";
- $proto26["m_columns"][] = "vacancyreason";
- $proto26["m_columns"][] = "isadvertised";
- $proto26["m_columns"][] = "effectivedate";
- $obj = new SQLTable($proto26);
-
- $proto25["m_table"] = $obj;
- $proto25["m_alias"] = "";
- $proto27=array();
- $proto27["m_sql"] = "";
- $proto27["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLNonParsed(array(
- "m_sql" => ""
- ));
-
- $proto27["m_column"]=$obj;
- $proto27["m_contained"] = array();
- $proto27["m_strCase"] = "";
- $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;
- $proto29=array();
- $proto29["m_link"] = "SQLL_INNERJOIN";
- $proto30=array();
- $proto30["m_strName"] = "tblrank";
- $proto30["m_columns"] = array();
- $proto30["m_columns"][] = "rankid";
- $proto30["m_columns"][] = "cadreid";
- $proto30["m_columns"][] = "name";
- $proto30["m_columns"][] = "grade";
- $obj = new SQLTable($proto30);
-
- $proto29["m_table"] = $obj;
- $proto29["m_alias"] = "";
- $proto31=array();
- $proto31["m_sql"] = "tblrank.rankid = tblvacancies.rankid";
- $proto31["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "rankid",
- "m_strTable" => "tblrank"
- ));
-
- $proto31["m_column"]=$obj;
- $proto31["m_contained"] = array();
- $proto31["m_strCase"] = "= tblvacancies.rankid";
- $proto31["m_havingmode"] = "0";
- $proto31["m_inBrackets"] = "0";
- $proto31["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto31);
-
- $proto29["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto29);
-
- $proto0["m_fromlist"][]=$obj;
- $proto33=array();
- $proto33["m_link"] = "SQLL_INNERJOIN";
- $proto34=array();
- $proto34["m_strName"] = "tblcadre";
- $proto34["m_columns"] = array();
- $proto34["m_columns"][] = "cadreid";
- $proto34["m_columns"][] = " name";
- $proto34["m_columns"][] = "categoryid";
- $obj = new SQLTable($proto34);
-
- $proto33["m_table"] = $obj;
- $proto33["m_alias"] = "";
- $proto35=array();
- $proto35["m_sql"] = "tblcadre.cadreid = tblrank.cadreid";
- $proto35["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "cadreid",
- "m_strTable" => "tblcadre"
- ));
-
- $proto35["m_column"]=$obj;
- $proto35["m_contained"] = array();
- $proto35["m_strCase"] = "= tblrank.cadreid";
- $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"] = "tblstaffcategory";
- $proto38["m_columns"] = array();
- $proto38["m_columns"][] = "categoryid";
- $proto38["m_columns"][] = "name";
- $obj = new SQLTable($proto38);
-
- $proto37["m_table"] = $obj;
- $proto37["m_alias"] = "";
- $proto39=array();
- $proto39["m_sql"] = "tblstaffcategory.categoryid = tblcadre.categoryid";
- $proto39["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "categoryid",
- "m_strTable" => "tblstaffcategory"
- ));
-
- $proto39["m_column"]=$obj;
- $proto39["m_contained"] = array();
- $proto39["m_strCase"] = "= tblcadre.categoryid";
- $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"] = "tbldepartment";
- $proto42["m_columns"] = array();
- $proto42["m_columns"][] = "departmentid";
- $proto42["m_columns"][] = "name";
- $proto42["m_columns"][] = "facultyid";
- $obj = new SQLTable($proto42);
-
- $proto41["m_table"] = $obj;
- $proto41["m_alias"] = "";
- $proto43=array();
- $proto43["m_sql"] = "tbldepartment.departmentid = tblvacancies.departmentid";
- $proto43["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "departmentid",
- "m_strTable" => "tbldepartment"
- ));
-
- $proto43["m_column"]=$obj;
- $proto43["m_contained"] = array();
- $proto43["m_strCase"] = "= tblvacancies.departmentid";
- $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"] = "tblfaccentres";
- $proto46["m_columns"] = array();
- $proto46["m_columns"][] = "facid";
- $proto46["m_columns"][] = "fame";
- $proto46["m_columns"][] = "complexid";
- $obj = new SQLTable($proto46);
-
- $proto45["m_table"] = $obj;
- $proto45["m_alias"] = "";
- $proto47=array();
- $proto47["m_sql"] = "tblfaccentres.facid = tbldepartment.facultyid";
- $proto47["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "facid",
- "m_strTable" => "tblfaccentres"
- ));
-
- $proto47["m_column"]=$obj;
- $proto47["m_contained"] = array();
- $proto47["m_strCase"] = "= tbldepartment.facultyid";
- $proto47["m_havingmode"] = "0";
- $proto47["m_inBrackets"] = "0";
- $proto47["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto47);
-
- $proto45["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto45);
-
- $proto0["m_fromlist"][]=$obj;
- $proto0["m_groupby"] = array();
- $proto0["m_orderby"] = array();
- $obj = new SQLQuery($proto0);
-
- return $obj;
- }
- $queryData_vacancyreport = createSqlQuery_vacancyreport();
- $tdatavacancyreport[".sqlquery"] = $queryData_vacancyreport;
-
-
-
- $tableEvents["vacancyreport"] = new eventsBase;
- $tdatavacancyreport[".hasEvents"] = false;
-
- ?>