Code Duplication    Length = 12-12 lines in 2 locations

programs/utilit/right.ui.php 2 locations

@@ 847-858 (lines=12) @@
844
	
845
	
846
	
847
	protected function beginfx()
848
	{
849
		$W = bab_Widgets();
850
		$date = $W->DatePicker()->setMandatory(true)->setName('datebeginfx');
851
		$hours = $W->Select()->setName('hourbeginfx')->setOptions(absences_hoursList());
852
		
853
		return $W->FlowItems(
854
			$W->Label(absences_translate('from date'))->setAssociatedWidget($date),
855
			$date,
856
			$hours
857
		)->setSpacing(.5,'em');
858
	}
859
	
860
	
861
	protected function endfx()
@@ 861-872 (lines=12) @@
858
	}
859
	
860
	
861
	protected function endfx()
862
	{
863
		$W = bab_Widgets();
864
		$date = $W->DatePicker()->setMandatory(true)->setName('dateendfx');
865
		$hours = $W->Select()->setName('hourendfx')->setOptions(absences_hoursList());
866
		
867
		return $W->FlowItems(
868
			$W->Label(absences_translate('to date'))->setAssociatedWidget($date),
869
			$date,
870
			$hours
871
		)->setSpacing(.5,'em');
872
	}
873
	
874
	
875
	protected function inc_month()