<?php
$tdataattendance_report = array();
$tdataattendance_report[".searchableFields"] = array();
$tdataattendance_report[".ShortName"] = "attendance_report";
$tdataattendance_report[".OwnerID"] = "";
$tdataattendance_report[".OriginalTable"] = "attendance";


$tdataattendance_report[".pagesByType"] = my_json_decode( "{\"report\":[\"report\"],\"rprint\":[\"rprint\"],\"search\":[\"search\"]}" );
$tdataattendance_report[".originalPagesByType"] = $tdataattendance_report[".pagesByType"];
$tdataattendance_report[".pages"] = types2pages( my_json_decode( "{\"report\":[\"report\"],\"rprint\":[\"rprint\"],\"search\":[\"search\"]}" ) );
$tdataattendance_report[".originalPages"] = $tdataattendance_report[".pages"];
$tdataattendance_report[".defaultPages"] = my_json_decode( "{\"report\":\"report\",\"rprint\":\"rprint\",\"search\":\"search\"}" );
$tdataattendance_report[".originalDefaultPages"] = $tdataattendance_report[".defaultPages"];

//	field labels
$fieldLabelsattendance_report = array();
$fieldToolTipsattendance_report = array();
$pageTitlesattendance_report = array();
$placeHoldersattendance_report = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsattendance_report["English"] = array();
	$fieldToolTipsattendance_report["English"] = array();
	$placeHoldersattendance_report["English"] = array();
	$pageTitlesattendance_report["English"] = array();
	$fieldLabelsattendance_report["English"]["id"] = "Id";
	$fieldToolTipsattendance_report["English"]["id"] = "";
	$placeHoldersattendance_report["English"]["id"] = "";
	$fieldLabelsattendance_report["English"]["emp_id"] = "Emp Id";
	$fieldToolTipsattendance_report["English"]["emp_id"] = "";
	$placeHoldersattendance_report["English"]["emp_id"] = "";
	$fieldLabelsattendance_report["English"]["month"] = "Month";
	$fieldToolTipsattendance_report["English"]["month"] = "";
	$placeHoldersattendance_report["English"]["month"] = "";
	$fieldLabelsattendance_report["English"]["year"] = "Year";
	$fieldToolTipsattendance_report["English"]["year"] = "";
	$placeHoldersattendance_report["English"]["year"] = "";
	$fieldLabelsattendance_report["English"]["SUM_attendance_"] = "SUM(attendance)";
	$fieldToolTipsattendance_report["English"]["SUM_attendance_"] = "";
	$placeHoldersattendance_report["English"]["SUM_attendance_"] = "";
	$fieldLabelsattendance_report["English"]["SUM_overtime_hours_"] = "SUM(overtime Hours)";
	$fieldToolTipsattendance_report["English"]["SUM_overtime_hours_"] = "";
	$placeHoldersattendance_report["English"]["SUM_overtime_hours_"] = "";
	$fieldLabelsattendance_report["English"]["days_pay_rate"] = "Days Pay Rate";
	$fieldToolTipsattendance_report["English"]["days_pay_rate"] = "";
	$placeHoldersattendance_report["English"]["days_pay_rate"] = "";
	$fieldLabelsattendance_report["English"]["over_time_rate_per_hour"] = "Over Time Rate Per Hour";
	$fieldToolTipsattendance_report["English"]["over_time_rate_per_hour"] = "";
	$placeHoldersattendance_report["English"]["over_time_rate_per_hour"] = "";
	$fieldLabelsattendance_report["English"]["meal_allowance_rate"] = "Meal Allowance Rate";
	$fieldToolTipsattendance_report["English"]["meal_allowance_rate"] = "";
	$placeHoldersattendance_report["English"]["meal_allowance_rate"] = "";
	$fieldLabelsattendance_report["English"]["e_P_f_rate"] = "E P F Rate";
	$fieldToolTipsattendance_report["English"]["e_P_f_rate"] = "";
	$placeHoldersattendance_report["English"]["e_P_f_rate"] = "";
	$fieldLabelsattendance_report["English"]["special_allowance_rate"] = "Special Allowance Rate";
	$fieldToolTipsattendance_report["English"]["special_allowance_rate"] = "";
	$placeHoldersattendance_report["English"]["special_allowance_rate"] = "";
	$fieldLabelsattendance_report["English"]["budgetary_relief_allowance_rate"] = "Budgetary Relief Allowance Rate";
	$fieldToolTipsattendance_report["English"]["budgetary_relief_allowance_rate"] = "";
	$placeHoldersattendance_report["English"]["budgetary_relief_allowance_rate"] = "";
	$fieldLabelsattendance_report["English"]["salary"] = "Salary";
	$fieldToolTipsattendance_report["English"]["salary"] = "";
	$placeHoldersattendance_report["English"]["salary"] = "";
	$fieldLabelsattendance_report["English"]["OT"] = "OT";
	$fieldToolTipsattendance_report["English"]["OT"] = "";
	$placeHoldersattendance_report["English"]["OT"] = "";
	$fieldLabelsattendance_report["English"]["meal_allowance"] = "Meal Allowance";
	$fieldToolTipsattendance_report["English"]["meal_allowance"] = "";
	$placeHoldersattendance_report["English"]["meal_allowance"] = "";
	$fieldLabelsattendance_report["English"]["e_P_f"] = "E P F";
	$fieldToolTipsattendance_report["English"]["e_P_f"] = "";
	$placeHoldersattendance_report["English"]["e_P_f"] = "";
	$fieldLabelsattendance_report["English"]["special_allowance_1"] = "Special Allowance 1";
	$fieldToolTipsattendance_report["English"]["special_allowance_1"] = "";
	$placeHoldersattendance_report["English"]["special_allowance_1"] = "";
	$fieldLabelsattendance_report["English"]["budgetary_relief_allowance"] = "Budgetary Relief Allowance";
	$fieldToolTipsattendance_report["English"]["budgetary_relief_allowance"] = "";
	$placeHoldersattendance_report["English"]["budgetary_relief_allowance"] = "";
	$fieldLabelsattendance_report["English"]["fullname"] = "Fullname";
	$fieldToolTipsattendance_report["English"]["fullname"] = "";
	$placeHoldersattendance_report["English"]["fullname"] = "";
	$fieldLabelsattendance_report["English"]["details"] = "Details";
	$fieldToolTipsattendance_report["English"]["details"] = "";
	$placeHoldersattendance_report["English"]["details"] = "";
	if (count($fieldToolTipsattendance_report["English"]))
		$tdataattendance_report[".isUseToolTips"] = true;
}


	$tdataattendance_report[".NCSearch"] = true;



$tdataattendance_report[".shortTableName"] = "attendance_report";
$tdataattendance_report[".nSecOptions"] = 0;

$tdataattendance_report[".mainTableOwnerID"] = "";
$tdataattendance_report[".entityType"] = 2;
$tdataattendance_report[".connId"] = "test2_at_localhost";


$tdataattendance_report[".strOriginalTableName"] = "attendance";

	



$tdataattendance_report[".showAddInPopup"] = false;

$tdataattendance_report[".showEditInPopup"] = false;

$tdataattendance_report[".showViewInPopup"] = false;

//page's base css files names
$popupPagesLayoutNames = array();
$tdataattendance_report[".popupPagesLayoutNames"] = $popupPagesLayoutNames;


$tdataattendance_report[".listAjax"] = false;
//	temporary
$tdataattendance_report[".listAjax"] = false;

	$tdataattendance_report[".audit"] = false;

	$tdataattendance_report[".locking"] = false;


$pages = $tdataattendance_report[".defaultPages"];

if( $pages[PAGE_EDIT] ) {
	$tdataattendance_report[".edit"] = true;
	$tdataattendance_report[".afterEditAction"] = 1;
	$tdataattendance_report[".closePopupAfterEdit"] = 1;
	$tdataattendance_report[".afterEditActionDetTable"] = "";
}

if( $pages[PAGE_ADD] ) {
$tdataattendance_report[".add"] = true;
$tdataattendance_report[".afterAddAction"] = 1;
$tdataattendance_report[".closePopupAfterAdd"] = 1;
$tdataattendance_report[".afterAddActionDetTable"] = "";
}

if( $pages[PAGE_LIST] ) {
	$tdataattendance_report[".list"] = true;
}



$tdataattendance_report[".strSortControlSettingsJSON"] = "";




if( $pages[PAGE_VIEW] ) {
$tdataattendance_report[".view"] = true;
}

if( $pages[PAGE_IMPORT] ) {
$tdataattendance_report[".import"] = true;
}

if( $pages[PAGE_EXPORT] ) {
$tdataattendance_report[".exportTo"] = true;
}

if( $pages[PAGE_PRINT] ) {
$tdataattendance_report[".printFriendly"] = true;
}



$tdataattendance_report[".showSimpleSearchOptions"] = true; // temp fix #13449

// Allow Show/Hide Fields in GRID
$tdataattendance_report[".allowShowHideFields"] = true; // temp fix #13449
//

// Allow Fields Reordering in GRID
$tdataattendance_report[".allowFieldsReordering"] = true; // temp fix #13449
//

$tdataattendance_report[".isUseAjaxSuggest"] = true;




																																																			

$tdataattendance_report[".ajaxCodeSnippetAdded"] = false;

$tdataattendance_report[".buttonsAdded"] = false;

$tdataattendance_report[".addPageEvents"] = false;

// use timepicker for search panel
$tdataattendance_report[".isUseTimeForSearch"] = false;


$tdataattendance_report[".badgeColor"] = "D2691E";


$tdataattendance_report[".allSearchFields"] = array();
$tdataattendance_report[".filterFields"] = array();
$tdataattendance_report[".requiredSearchFields"] = array();

$tdataattendance_report[".googleLikeFields"] = array();
$tdataattendance_report[".googleLikeFields"][] = "id";
$tdataattendance_report[".googleLikeFields"][] = "SUM(attendance)";
$tdataattendance_report[".googleLikeFields"][] = "SUM(overtime_hours)";
$tdataattendance_report[".googleLikeFields"][] = "month";
$tdataattendance_report[".googleLikeFields"][] = "year";
$tdataattendance_report[".googleLikeFields"][] = "emp_id";
$tdataattendance_report[".googleLikeFields"][] = "days_pay_rate";
$tdataattendance_report[".googleLikeFields"][] = "over_time_rate_per_hour";
$tdataattendance_report[".googleLikeFields"][] = "meal_allowance_rate";
$tdataattendance_report[".googleLikeFields"][] = "e_P_f_rate";
$tdataattendance_report[".googleLikeFields"][] = "special_allowance_rate";
$tdataattendance_report[".googleLikeFields"][] = "budgetary_relief_allowance_rate";
$tdataattendance_report[".googleLikeFields"][] = "salary";
$tdataattendance_report[".googleLikeFields"][] = "OT";
$tdataattendance_report[".googleLikeFields"][] = "meal_allowance";
$tdataattendance_report[".googleLikeFields"][] = "e_P_f";
$tdataattendance_report[".googleLikeFields"][] = "special_allowance_1";
$tdataattendance_report[".googleLikeFields"][] = "budgetary_relief_allowance";
$tdataattendance_report[".googleLikeFields"][] = "fullname";
$tdataattendance_report[".googleLikeFields"][] = "details";



$tdataattendance_report[".tableType"] = "report";

$tdataattendance_report[".printerPageOrientation"] = 0;
$tdataattendance_report[".nPrinterPageScale"] = 100;

$tdataattendance_report[".nPrinterSplitRecords"] = 40;

$tdataattendance_report[".geocodingEnabled"] = false;

//report settings
$tdataattendance_report[".printReportLayout"] = 6;

$tdataattendance_report[".reportPrintPartitionType"] = 1;
$tdataattendance_report[".reportPrintGroupsPerPage"] = 40;
$tdataattendance_report[".lowGroup"] = 0;



$tdataattendance_report[".pageSize"] = 20;






$tdataattendance_report[".repShowDet"] = true;

$tdataattendance_report[".reportLayout"] = 6;

//end of report settings










$tstrOrderBy = "ORDER BY attendance.`month` DESC, attendance.emp_id ASC";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdataattendance_report[".strOrderBy"] = $tstrOrderBy;

$tdataattendance_report[".orderindexes"] = array();
	$tdataattendance_report[".orderindexes"][] = array(4, (0 ? "ASC" : "DESC"), "attendance.`month`");

	$tdataattendance_report[".orderindexes"][] = array(6, (1 ? "ASC" : "DESC"), "attendance.emp_id");



$tdataattendance_report[".sqlHead"] = "SELECT concat(attendance.`year`,attendance.`month`,attendance.emp_id)as id,  SUM(attendance.attendance) AS `SUM(attendance)`,  SUM(attendance.overtime_hours) AS `SUM(overtime_hours)`,  attendance.`month`,  attendance.`year`,  attendance.emp_id,  salaries_and_allowances.days_pay AS days_pay_rate,  salaries_and_allowances.over_time AS over_time_rate_per_hour,  salaries_and_allowances.meal_allowance AS meal_allowance_rate,  salaries_and_allowances.e_P_f AS e_P_f_rate,  salaries_and_allowances.special_allowance_1 AS special_allowance_rate,  salaries_and_allowances.budgetary_relief_allowance AS budgetary_relief_allowance_rate,  SUM(attendance.attendance)  * salaries_and_allowances.days_pay AS salary,  SUM(attendance.overtime_hours) * salaries_and_allowances.over_time AS OT,  SUM(attendance.attendance)  * salaries_and_allowances.meal_allowance AS meal_allowance,  SUM(attendance.attendance)  * salaries_and_allowances.e_P_f AS e_P_f,  SUM(attendance.attendance)  * salaries_and_allowances.special_allowance_1 AS special_allowance_1,  SUM(attendance.attendance)  * salaries_and_allowances.budgetary_relief_allowance AS budgetary_relief_allowance,  sys_manage.fullname,  CONCAT(\"Days-\",SUM(attendance.attendance),\", Overtime_hours-\",SUM(attendance.overtime_hours)) as details";
$tdataattendance_report[".sqlFrom"] = "FROM attendance  LEFT OUTER JOIN salaries_and_allowances ON attendance.emp_id = salaries_and_allowances.emp_id  LEFT OUTER JOIN sys_manage ON attendance.emp_id = sys_manage.ID";
$tdataattendance_report[".sqlWhereExpr"] = "";
$tdataattendance_report[".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;
$tdataattendance_report[".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;
$tdataattendance_report[".arrGroupsPerPage"] = $arrGPP;

$tdataattendance_report[".highlightSearchResults"] = true;

$tableKeysattendance_report = array();
$tableKeysattendance_report[] = "id";
$tdataattendance_report[".Keys"] = $tableKeysattendance_report;


$tdataattendance_report[".hideMobileList"] = array();




//	id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "id";
	$fdata["GoodName"] = "id";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","id");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

		$fdata["AutoInc"] = true;

	
			

		$fdata["strField"] = "id";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "concat(attendance.`year`,attendance.`month`,attendance.emp_id)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=11";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["id"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "id";
//	SUM(attendance)
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "SUM(attendance)";
	$fdata["GoodName"] = "SUM_attendance_";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","SUM_attendance_");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "SUM(attendance)";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "SUM(attendance.attendance)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["SUM(attendance)"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "SUM(attendance)";
//	SUM(overtime_hours)
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "SUM(overtime_hours)";
	$fdata["GoodName"] = "SUM_overtime_hours_";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","SUM_overtime_hours_");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "SUM(overtime_hours)";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "SUM(attendance.overtime_hours)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["SUM(overtime_hours)"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "SUM(overtime_hours)";
//	month
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "month";
	$fdata["GoodName"] = "month";
	$fdata["ownerTable"] = "attendance";
	$fdata["Label"] = GetFieldLabel("attendance_Report","month");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "month";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "attendance.`month`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=100";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["month"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "month";
//	year
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "year";
	$fdata["GoodName"] = "year";
	$fdata["ownerTable"] = "attendance";
	$fdata["Label"] = GetFieldLabel("attendance_Report","year");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "year";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "attendance.`year`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=100";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["year"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "year";
//	emp_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "emp_id";
	$fdata["GoodName"] = "emp_id";
	$fdata["ownerTable"] = "attendance";
	$fdata["Label"] = GetFieldLabel("attendance_Report","emp_id");
	$fdata["FieldType"] = 3;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "emp_id";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "attendance.emp_id";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Lookup wizard");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	

// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "Users";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "ID";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "fullname";

	

	
	$edata["LookupOrderBy"] = "fullname";

	
	
	
	

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["emp_id"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "emp_id";
//	days_pay_rate
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "days_pay_rate";
	$fdata["GoodName"] = "days_pay_rate";
	$fdata["ownerTable"] = "salaries_and_allowances";
	$fdata["Label"] = GetFieldLabel("attendance_Report","days_pay_rate");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "days_pay";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "salaries_and_allowances.days_pay";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["days_pay_rate"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "days_pay_rate";
//	over_time_rate_per_hour
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "over_time_rate_per_hour";
	$fdata["GoodName"] = "over_time_rate_per_hour";
	$fdata["ownerTable"] = "salaries_and_allowances";
	$fdata["Label"] = GetFieldLabel("attendance_Report","over_time_rate_per_hour");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "over_time";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "salaries_and_allowances.over_time";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["over_time_rate_per_hour"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "over_time_rate_per_hour";
//	meal_allowance_rate
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "meal_allowance_rate";
	$fdata["GoodName"] = "meal_allowance_rate";
	$fdata["ownerTable"] = "salaries_and_allowances";
	$fdata["Label"] = GetFieldLabel("attendance_Report","meal_allowance_rate");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "meal_allowance";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "salaries_and_allowances.meal_allowance";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["meal_allowance_rate"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "meal_allowance_rate";
//	e_P_f_rate
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "e_P_f_rate";
	$fdata["GoodName"] = "e_P_f_rate";
	$fdata["ownerTable"] = "salaries_and_allowances";
	$fdata["Label"] = GetFieldLabel("attendance_Report","e_P_f_rate");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "e_P_f";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "salaries_and_allowances.e_P_f";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["e_P_f_rate"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "e_P_f_rate";
//	special_allowance_rate
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "special_allowance_rate";
	$fdata["GoodName"] = "special_allowance_rate";
	$fdata["ownerTable"] = "salaries_and_allowances";
	$fdata["Label"] = GetFieldLabel("attendance_Report","special_allowance_rate");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "special_allowance_1";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "salaries_and_allowances.special_allowance_1";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["special_allowance_rate"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "special_allowance_rate";
//	budgetary_relief_allowance_rate
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "budgetary_relief_allowance_rate";
	$fdata["GoodName"] = "budgetary_relief_allowance_rate";
	$fdata["ownerTable"] = "salaries_and_allowances";
	$fdata["Label"] = GetFieldLabel("attendance_Report","budgetary_relief_allowance_rate");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "budgetary_relief_allowance";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "salaries_and_allowances.budgetary_relief_allowance";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["budgetary_relief_allowance_rate"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "budgetary_relief_allowance_rate";
//	salary
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "salary";
	$fdata["GoodName"] = "salary";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","salary");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "salary";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "SUM(attendance.attendance)  * salaries_and_allowances.days_pay";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["salary"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "salary";
//	OT
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "OT";
	$fdata["GoodName"] = "OT";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","OT");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "OT";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "SUM(attendance.overtime_hours) * salaries_and_allowances.over_time";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["OT"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "OT";
//	meal_allowance
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "meal_allowance";
	$fdata["GoodName"] = "meal_allowance";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","meal_allowance");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "meal_allowance";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "SUM(attendance.attendance)  * salaries_and_allowances.meal_allowance";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["meal_allowance"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "meal_allowance";
//	e_P_f
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 16;
	$fdata["strName"] = "e_P_f";
	$fdata["GoodName"] = "e_P_f";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","e_P_f");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "e_P_f";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "SUM(attendance.attendance)  * salaries_and_allowances.e_P_f";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["e_P_f"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "e_P_f";
//	special_allowance_1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 17;
	$fdata["strName"] = "special_allowance_1";
	$fdata["GoodName"] = "special_allowance_1";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","special_allowance_1");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "special_allowance_1";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "SUM(attendance.attendance)  * salaries_and_allowances.special_allowance_1";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["special_allowance_1"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "special_allowance_1";
//	budgetary_relief_allowance
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 18;
	$fdata["strName"] = "budgetary_relief_allowance";
	$fdata["GoodName"] = "budgetary_relief_allowance";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","budgetary_relief_allowance");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "budgetary_relief_allowance";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "SUM(attendance.attendance)  * salaries_and_allowances.budgetary_relief_allowance";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["budgetary_relief_allowance"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "budgetary_relief_allowance";
//	fullname
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 19;
	$fdata["strName"] = "fullname";
	$fdata["GoodName"] = "fullname";
	$fdata["ownerTable"] = "sys_manage";
	$fdata["Label"] = GetFieldLabel("attendance_Report","fullname");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "fullname";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "sys_manage.fullname";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["fullname"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "fullname";
//	details
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 20;
	$fdata["strName"] = "details";
	$fdata["GoodName"] = "details";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("attendance_Report","details");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "details";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "CONCAT(\"Days-\",SUM(attendance.attendance),\", Overtime_hours-\",SUM(attendance.overtime_hours))";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataattendance_report["details"] = $fdata;
		$tdataattendance_report[".searchableFields"][] = "details";


$tables_data["attendance Report"]=&$tdataattendance_report;
$field_labels["attendance_Report"] = &$fieldLabelsattendance_report;
$fieldToolTips["attendance_Report"] = &$fieldToolTipsattendance_report;
$placeHolders["attendance_Report"] = &$placeHoldersattendance_report;
$page_titles["attendance_Report"] = &$pageTitlesattendance_report;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["attendance Report"] = array();

// tables which are master tables for current table (detail)
$masterTablesData["attendance Report"] = array();



// -----------------end  prepare master-details data arrays ------------------------------//



require_once(getabspath("classes/sql.php"));











function createSqlQuery_attendance_report()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "concat(attendance.`year`,attendance.`month`,attendance.emp_id)as id,  SUM(attendance.attendance) AS `SUM(attendance)`,  SUM(attendance.overtime_hours) AS `SUM(overtime_hours)`,  attendance.`month`,  attendance.`year`,  attendance.emp_id,  salaries_and_allowances.days_pay AS days_pay_rate,  salaries_and_allowances.over_time AS over_time_rate_per_hour,  salaries_and_allowances.meal_allowance AS meal_allowance_rate,  salaries_and_allowances.e_P_f AS e_P_f_rate,  salaries_and_allowances.special_allowance_1 AS special_allowance_rate,  salaries_and_allowances.budgetary_relief_allowance AS budgetary_relief_allowance_rate,  SUM(attendance.attendance)  * salaries_and_allowances.days_pay AS salary,  SUM(attendance.overtime_hours) * salaries_and_allowances.over_time AS OT,  SUM(attendance.attendance)  * salaries_and_allowances.meal_allowance AS meal_allowance,  SUM(attendance.attendance)  * salaries_and_allowances.e_P_f AS e_P_f,  SUM(attendance.attendance)  * salaries_and_allowances.special_allowance_1 AS special_allowance_1,  SUM(attendance.attendance)  * salaries_and_allowances.budgetary_relief_allowance AS budgetary_relief_allowance,  sys_manage.fullname,  CONCAT(\"Days-\",SUM(attendance.attendance),\", Overtime_hours-\",SUM(attendance.overtime_hours)) as details";
$proto0["m_strFrom"] = "FROM attendance  LEFT OUTER JOIN salaries_and_allowances ON attendance.emp_id = salaries_and_allowances.emp_id  LEFT OUTER JOIN sys_manage ON attendance.emp_id = sys_manage.ID";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "ORDER BY attendance.`month` DESC, attendance.emp_id ASC";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto2["m_column"]=$obj;
$proto2["m_contained"] = array();
$proto2["m_strCase"] = "";
$proto2["m_havingmode"] = false;
$proto2["m_inBrackets"] = false;
$proto2["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto2);

$proto0["m_where"] = $obj;
$proto4=array();
$proto4["m_sql"] = "";
$proto4["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto4["m_column"]=$obj;
$proto4["m_contained"] = array();
$proto4["m_strCase"] = "";
$proto4["m_havingmode"] = false;
$proto4["m_inBrackets"] = false;
$proto4["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto4);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto6=array();
			$proto7=array();
$proto7["m_functiontype"] = "SQLF_CUSTOM";
$proto7["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "attendance.`year`"
));

$proto7["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "attendance.`month`"
));

$proto7["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "attendance.emp_id"
));

$proto7["m_arguments"][]=$obj;
$proto7["m_strFunctionName"] = "concat";
$obj = new SQLFunctionCall($proto7);

$proto6["m_sql"] = "concat(attendance.`year`,attendance.`month`,attendance.emp_id)";
$proto6["m_srcTableName"] = "attendance Report";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "id";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$proto12=array();
$proto12["m_functiontype"] = "SQLF_SUM";
$proto12["m_arguments"] = array();
						$obj = new SQLField(array(
	"m_strName" => "attendance",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto12["m_arguments"][]=$obj;
$proto12["m_strFunctionName"] = "SUM";
$obj = new SQLFunctionCall($proto12);

$proto11["m_sql"] = "SUM(attendance.attendance)";
$proto11["m_srcTableName"] = "attendance Report";
$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "SUM(attendance)";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$proto15=array();
$proto15["m_functiontype"] = "SQLF_SUM";
$proto15["m_arguments"] = array();
						$obj = new SQLField(array(
	"m_strName" => "overtime_hours",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto15["m_arguments"][]=$obj;
$proto15["m_strFunctionName"] = "SUM";
$obj = new SQLFunctionCall($proto15);

$proto14["m_sql"] = "SUM(attendance.overtime_hours)";
$proto14["m_srcTableName"] = "attendance Report";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "SUM(overtime_hours)";
$obj = new SQLFieldListItem($proto14);

$proto0["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "month",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto17["m_sql"] = "attendance.`month`";
$proto17["m_srcTableName"] = "attendance Report";
$proto17["m_expr"]=$obj;
$proto17["m_alias"] = "";
$obj = new SQLFieldListItem($proto17);

$proto0["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "year",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto19["m_sql"] = "attendance.`year`";
$proto19["m_srcTableName"] = "attendance Report";
$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto0["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "emp_id",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto21["m_sql"] = "attendance.emp_id";
$proto21["m_srcTableName"] = "attendance Report";
$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto0["m_fieldlist"][]=$obj;
						$proto23=array();
			$obj = new SQLField(array(
	"m_strName" => "days_pay",
	"m_strTable" => "salaries_and_allowances",
	"m_srcTableName" => "attendance Report"
));

$proto23["m_sql"] = "salaries_and_allowances.days_pay";
$proto23["m_srcTableName"] = "attendance Report";
$proto23["m_expr"]=$obj;
$proto23["m_alias"] = "days_pay_rate";
$obj = new SQLFieldListItem($proto23);

$proto0["m_fieldlist"][]=$obj;
						$proto25=array();
			$obj = new SQLField(array(
	"m_strName" => "over_time",
	"m_strTable" => "salaries_and_allowances",
	"m_srcTableName" => "attendance Report"
));

$proto25["m_sql"] = "salaries_and_allowances.over_time";
$proto25["m_srcTableName"] = "attendance Report";
$proto25["m_expr"]=$obj;
$proto25["m_alias"] = "over_time_rate_per_hour";
$obj = new SQLFieldListItem($proto25);

$proto0["m_fieldlist"][]=$obj;
						$proto27=array();
			$obj = new SQLField(array(
	"m_strName" => "meal_allowance",
	"m_strTable" => "salaries_and_allowances",
	"m_srcTableName" => "attendance Report"
));

$proto27["m_sql"] = "salaries_and_allowances.meal_allowance";
$proto27["m_srcTableName"] = "attendance Report";
$proto27["m_expr"]=$obj;
$proto27["m_alias"] = "meal_allowance_rate";
$obj = new SQLFieldListItem($proto27);

$proto0["m_fieldlist"][]=$obj;
						$proto29=array();
			$obj = new SQLField(array(
	"m_strName" => "e_P_f",
	"m_strTable" => "salaries_and_allowances",
	"m_srcTableName" => "attendance Report"
));

$proto29["m_sql"] = "salaries_and_allowances.e_P_f";
$proto29["m_srcTableName"] = "attendance Report";
$proto29["m_expr"]=$obj;
$proto29["m_alias"] = "e_P_f_rate";
$obj = new SQLFieldListItem($proto29);

$proto0["m_fieldlist"][]=$obj;
						$proto31=array();
			$obj = new SQLField(array(
	"m_strName" => "special_allowance_1",
	"m_strTable" => "salaries_and_allowances",
	"m_srcTableName" => "attendance Report"
));

$proto31["m_sql"] = "salaries_and_allowances.special_allowance_1";
$proto31["m_srcTableName"] = "attendance Report";
$proto31["m_expr"]=$obj;
$proto31["m_alias"] = "special_allowance_rate";
$obj = new SQLFieldListItem($proto31);

$proto0["m_fieldlist"][]=$obj;
						$proto33=array();
			$obj = new SQLField(array(
	"m_strName" => "budgetary_relief_allowance",
	"m_strTable" => "salaries_and_allowances",
	"m_srcTableName" => "attendance Report"
));

$proto33["m_sql"] = "salaries_and_allowances.budgetary_relief_allowance";
$proto33["m_srcTableName"] = "attendance Report";
$proto33["m_expr"]=$obj;
$proto33["m_alias"] = "budgetary_relief_allowance_rate";
$obj = new SQLFieldListItem($proto33);

$proto0["m_fieldlist"][]=$obj;
						$proto35=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "SUM(attendance.attendance)  * salaries_and_allowances.days_pay"
));

$proto35["m_sql"] = "SUM(attendance.attendance)  * salaries_and_allowances.days_pay";
$proto35["m_srcTableName"] = "attendance Report";
$proto35["m_expr"]=$obj;
$proto35["m_alias"] = "salary";
$obj = new SQLFieldListItem($proto35);

$proto0["m_fieldlist"][]=$obj;
						$proto37=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "SUM(attendance.overtime_hours) * salaries_and_allowances.over_time"
));

$proto37["m_sql"] = "SUM(attendance.overtime_hours) * salaries_and_allowances.over_time";
$proto37["m_srcTableName"] = "attendance Report";
$proto37["m_expr"]=$obj;
$proto37["m_alias"] = "OT";
$obj = new SQLFieldListItem($proto37);

$proto0["m_fieldlist"][]=$obj;
						$proto39=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "SUM(attendance.attendance)  * salaries_and_allowances.meal_allowance"
));

$proto39["m_sql"] = "SUM(attendance.attendance)  * salaries_and_allowances.meal_allowance";
$proto39["m_srcTableName"] = "attendance Report";
$proto39["m_expr"]=$obj;
$proto39["m_alias"] = "meal_allowance";
$obj = new SQLFieldListItem($proto39);

$proto0["m_fieldlist"][]=$obj;
						$proto41=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "SUM(attendance.attendance)  * salaries_and_allowances.e_P_f"
));

$proto41["m_sql"] = "SUM(attendance.attendance)  * salaries_and_allowances.e_P_f";
$proto41["m_srcTableName"] = "attendance Report";
$proto41["m_expr"]=$obj;
$proto41["m_alias"] = "e_P_f";
$obj = new SQLFieldListItem($proto41);

$proto0["m_fieldlist"][]=$obj;
						$proto43=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "SUM(attendance.attendance)  * salaries_and_allowances.special_allowance_1"
));

$proto43["m_sql"] = "SUM(attendance.attendance)  * salaries_and_allowances.special_allowance_1";
$proto43["m_srcTableName"] = "attendance Report";
$proto43["m_expr"]=$obj;
$proto43["m_alias"] = "special_allowance_1";
$obj = new SQLFieldListItem($proto43);

$proto0["m_fieldlist"][]=$obj;
						$proto45=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "SUM(attendance.attendance)  * salaries_and_allowances.budgetary_relief_allowance"
));

$proto45["m_sql"] = "SUM(attendance.attendance)  * salaries_and_allowances.budgetary_relief_allowance";
$proto45["m_srcTableName"] = "attendance Report";
$proto45["m_expr"]=$obj;
$proto45["m_alias"] = "budgetary_relief_allowance";
$obj = new SQLFieldListItem($proto45);

$proto0["m_fieldlist"][]=$obj;
						$proto47=array();
			$obj = new SQLField(array(
	"m_strName" => "fullname",
	"m_strTable" => "sys_manage",
	"m_srcTableName" => "attendance Report"
));

$proto47["m_sql"] = "sys_manage.fullname";
$proto47["m_srcTableName"] = "attendance Report";
$proto47["m_expr"]=$obj;
$proto47["m_alias"] = "";
$obj = new SQLFieldListItem($proto47);

$proto0["m_fieldlist"][]=$obj;
						$proto49=array();
			$proto50=array();
$proto50["m_functiontype"] = "SQLF_CUSTOM";
$proto50["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "\"Days-\""
));

$proto50["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "SUM(attendance.attendance)"
));

$proto50["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "\", Overtime_hours-\""
));

$proto50["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "SUM(attendance.overtime_hours)"
));

$proto50["m_arguments"][]=$obj;
$proto50["m_strFunctionName"] = "CONCAT";
$obj = new SQLFunctionCall($proto50);

$proto49["m_sql"] = "CONCAT(\"Days-\",SUM(attendance.attendance),\", Overtime_hours-\",SUM(attendance.overtime_hours))";
$proto49["m_srcTableName"] = "attendance Report";
$proto49["m_expr"]=$obj;
$proto49["m_alias"] = "details";
$obj = new SQLFieldListItem($proto49);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto55=array();
$proto55["m_link"] = "SQLL_MAIN";
			$proto56=array();
$proto56["m_strName"] = "attendance";
$proto56["m_srcTableName"] = "attendance Report";
$proto56["m_columns"] = array();
$proto56["m_columns"][] = "id";
$proto56["m_columns"][] = "emp_id";
$proto56["m_columns"][] = "date";
$proto56["m_columns"][] = "attendance";
$proto56["m_columns"][] = "overtime_hours";
$proto56["m_columns"][] = "user";
$proto56["m_columns"][] = "month";
$proto56["m_columns"][] = "year";
$proto56["m_columns"][] = "branch_code";
$proto56["m_columns"][] = "outlet_code";
$obj = new SQLTable($proto56);

$proto55["m_table"] = $obj;
$proto55["m_sql"] = "attendance";
$proto55["m_alias"] = "";
$proto55["m_srcTableName"] = "attendance Report";
$proto57=array();
$proto57["m_sql"] = "";
$proto57["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto57["m_column"]=$obj;
$proto57["m_contained"] = array();
$proto57["m_strCase"] = "";
$proto57["m_havingmode"] = false;
$proto57["m_inBrackets"] = false;
$proto57["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto57);

$proto55["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto55);

$proto0["m_fromlist"][]=$obj;
												$proto59=array();
$proto59["m_link"] = "SQLL_LEFTJOIN";
			$proto60=array();
$proto60["m_strName"] = "salaries_and_allowances";
$proto60["m_srcTableName"] = "attendance Report";
$proto60["m_columns"] = array();
$proto60["m_columns"][] = "id";
$proto60["m_columns"][] = "emp_id";
$proto60["m_columns"][] = "days_pay";
$proto60["m_columns"][] = "over_time";
$proto60["m_columns"][] = "meal_allowance";
$proto60["m_columns"][] = "e_P_f";
$proto60["m_columns"][] = "special_allowance_1";
$proto60["m_columns"][] = "budgetary_relief_allowance";
$proto60["m_columns"][] = "branch_code";
$obj = new SQLTable($proto60);

$proto59["m_table"] = $obj;
$proto59["m_sql"] = "LEFT OUTER JOIN salaries_and_allowances ON attendance.emp_id = salaries_and_allowances.emp_id";
$proto59["m_alias"] = "";
$proto59["m_srcTableName"] = "attendance Report";
$proto61=array();
$proto61["m_sql"] = "attendance.emp_id = salaries_and_allowances.emp_id";
$proto61["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "emp_id",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto61["m_column"]=$obj;
$proto61["m_contained"] = array();
$proto61["m_strCase"] = "= salaries_and_allowances.emp_id";
$proto61["m_havingmode"] = false;
$proto61["m_inBrackets"] = false;
$proto61["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto61);

$proto59["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto59);

$proto0["m_fromlist"][]=$obj;
												$proto63=array();
$proto63["m_link"] = "SQLL_LEFTJOIN";
			$proto64=array();
$proto64["m_strName"] = "sys_manage";
$proto64["m_srcTableName"] = "attendance Report";
$proto64["m_columns"] = array();
$proto64["m_columns"][] = "ID";
$proto64["m_columns"][] = "username";
$proto64["m_columns"][] = "password";
$proto64["m_columns"][] = "email";
$proto64["m_columns"][] = "fullname";
$proto64["m_columns"][] = "groupid";
$proto64["m_columns"][] = "active";
$proto64["m_columns"][] = "ext_security_id";
$proto64["m_columns"][] = "reset_token";
$proto64["m_columns"][] = "reset_date";
$proto64["m_columns"][] = "teliphone_number";
$proto64["m_columns"][] = "date";
$proto64["m_columns"][] = "branch_code";
$proto64["m_columns"][] = "outlet_code";
$proto64["m_columns"][] = "MyTheme";
$proto64["m_columns"][] = "MyThemeSize";
$proto64["m_columns"][] = "password2";
$obj = new SQLTable($proto64);

$proto63["m_table"] = $obj;
$proto63["m_sql"] = "LEFT OUTER JOIN sys_manage ON attendance.emp_id = sys_manage.ID";
$proto63["m_alias"] = "";
$proto63["m_srcTableName"] = "attendance Report";
$proto65=array();
$proto65["m_sql"] = "attendance.emp_id = sys_manage.ID";
$proto65["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "emp_id",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto65["m_column"]=$obj;
$proto65["m_contained"] = array();
$proto65["m_strCase"] = "= sys_manage.ID";
$proto65["m_havingmode"] = false;
$proto65["m_inBrackets"] = false;
$proto65["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto65);

$proto63["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto63);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
												$proto67=array();
						$obj = new SQLField(array(
	"m_strName" => "month",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto67["m_column"]=$obj;
$obj = new SQLGroupByItem($proto67);

$proto0["m_groupby"][]=$obj;
												$proto69=array();
						$obj = new SQLField(array(
	"m_strName" => "emp_id",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto69["m_column"]=$obj;
$obj = new SQLGroupByItem($proto69);

$proto0["m_groupby"][]=$obj;
$proto0["m_orderby"] = array();
												$proto71=array();
						$obj = new SQLField(array(
	"m_strName" => "month",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto71["m_column"]=$obj;
$proto71["m_bAsc"] = 0;
$proto71["m_nColumn"] = 0;
$obj = new SQLOrderByItem($proto71);

$proto0["m_orderby"][]=$obj;					
												$proto73=array();
						$obj = new SQLField(array(
	"m_strName" => "emp_id",
	"m_strTable" => "attendance",
	"m_srcTableName" => "attendance Report"
));

$proto73["m_column"]=$obj;
$proto73["m_bAsc"] = 1;
$proto73["m_nColumn"] = 0;
$obj = new SQLOrderByItem($proto73);

$proto0["m_orderby"][]=$obj;					
$proto0["m_srcTableName"]="attendance Report";		
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_attendance_report = createSqlQuery_attendance_report();


	
		;

																				

$tdataattendance_report[".sqlquery"] = $queryData_attendance_report;



$tableEvents["attendance Report"] = new eventsBase;
$tdataattendance_report[".hasEvents"] = false;

?>