Code Duplication    Length = 10-10 lines in 7 locations

programs/exportvac.php 1 location

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

programs/utilit/agent.ui.php 1 location

@@ 914-923 (lines=10) @@
911
	}
912
913
914
	protected function addButtons()
915
	{
916
		$W = bab_Widgets();
917
918
		$button = $W->FlowItems(
919
				$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save'))
920
		)->setSpacing(1,'em');
921
922
		$this->addItem($button);
923
	}
924
}
925
926

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