Code Duplication    Length = 10-10 lines in 7 locations

programs/utilit/agentlist.ui.php 1 location

@@ 494-503 (lines=10) @@
491
    }
492
493
494
    protected function addButtons()
495
    {
496
        $W = bab_Widgets();
497
498
        $button = $W->FlowItems(
499
            $W->SubmitButton()->setName('search')->setLabel(absences_translate('Search'))
500
        )->setSpacing(1,'em');
501
502
        $this->addItem($button);
503
    }
504
}
505

programs/utilit/statistics.ui.php 1 location

@@ 82-91 (lines=10) @@
79
80
	}
81
82
	protected function addButtons()
83
	{
84
		$W = bab_Widgets();
85
86
		$button = $W->FlowItems(
87
			$W->SubmitButton()->setName('export')->setLabel(absences_translate('Export'))
88
		)->setSpacing(1,'em');
89
90
		$this->addItem($button);
91
	}
92
}

programs/utilit/sync.ui.php 2 locations

@@ 103-112 (lines=10) @@
100
	}
101
	
102
	
103
	protected function addButtons()
104
	{
105
		$W = bab_Widgets();
106
		
107
		$button = $W->FlowItems(
108
				$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save'))
109
		)->setSpacing(1,'em');
110
		
111
		$this->addItem($button);
112
	}
113
}
114
115
@@ 228-237 (lines=10) @@
225
	}
226
227
228
	protected function addButtons()
229
	{
230
		$W = bab_Widgets();
231
232
		$button = $W->FlowItems(
233
				$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save'))
234
		)->setSpacing(1,'em');
235
236
		$this->addItem($button);
237
	}
238
}

programs/utilit/options.ui.php 1 location

@@ 231-240 (lines=10) @@
228
	}
229
	
230
	
231
	protected function addButtons()
232
	{
233
		$W = bab_Widgets();
234
	
235
		$button = $W->FlowItems(
236
				$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save'))
237
		)->setSpacing(1,'em');
238
	
239
		$this->addItem($button);
240
	}
241
}
242

programs/utilit/agent.ui.php 1 location

@@ 922-931 (lines=10) @@
919
	}
920
921
922
	protected function addButtons()
923
	{
924
		$W = bab_Widgets();
925
926
		$button = $W->FlowItems(
927
				$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save'))
928
		)->setSpacing(1,'em');
929
930
		$this->addItem($button);
931
	}
932
}
933
934

programs/exportvac.php 1 location

@@ 333-342 (lines=10) @@
330
331
332
333
	protected function addButtons()
334
	{
335
		$W = bab_Widgets();
336
337
		$button = $W->FlowItems(
338
				$W->SubmitButton()->setName('export')->setLabel(absences_translate('Export'))
339
		)->setSpacing(1,'em');
340
341
		$this->addItem($button);
342
	}
343
}
344
345