Code Duplication    Length = 10-11 lines in 2 locations

programs/vacadm.php 2 locations

@@ 144-153 (lines=10) @@
141
142
		public $altbg = true;
143
144
		function temp()
145
			{
146
			$this->nametxt = absences_translate("Name");
147
			$this->descriptiontxt = absences_translate("Description");
148
			$this->t_rights = absences_translate('Rights');
149
			$babDB = $GLOBALS['babDB'];
150
			$req = "select * from ".ABSENCES_COLLECTIONS_TBL." order by name asc";
151
			$this->res = $babDB->db_query($req);
152
			$this->count = $babDB->db_num_rows($this->res);
153
			}
154
155
		function getnext()
156
			{
@@ 201-211 (lines=11) @@
198
		var $count;
199
		var $res;
200
201
		function temp()
202
			{
203
			$this->nametxt = absences_translate("Name");
204
			$this->descriptiontxt = absences_translate("Description");
205
			$this->colortxt = absences_translate("Color");
206
			$this->altaddvr = absences_translate("Allocate vacation rights");
207
			$babDB = $GLOBALS['babDB'];
208
			$req = "select * from ".ABSENCES_TYPES_TBL." order by name asc";
209
			$this->res = $babDB->db_query($req);
210
			$this->count = $babDB->db_num_rows($this->res);
211
			}
212
213
		function getnext()
214
			{