Code Duplication    Length = 32-32 lines in 2 locations

programs/utilit/agent.ui.php 1 location

@@ 421-452 (lines=32) @@
418
		bab_functionality::includeOriginal('Icons');
419
	}
420
	
421
	public function getnext()
422
	{
423
		if (($this->res->key() - $this->pos) >= self::MAX)
424
		{
425
			return false;
426
		}
427
		
428
		if ($this->res->valid())
429
		{
430
			$W = bab_Widgets();
431
			$movement = $this->res->current();
432
			/*@var $movement absences_Movement */
433
			
434
			$this->altbg = !$this->altbg;
435
		
436
			$this->author = bab_toHtml(bab_getUserName($movement->id_author));
437
			$this->date = bab_toHtml(bab_shortDate(bab_mktime($movement->createdOn)));
438
			if ($request = $movement->getRequest())
439
			{
440
				$this->request = $request->getManagerFrame()->addClass(Func_Icons::ICON_LEFT_16)->display($W->HtmlCanvas());
441
			} else {
442
				$this->request = '';
443
			}
444
			$this->message = bab_toHtml($movement->message);
445
			$this->comment = bab_toHtml($movement->comment);
446
			
447
			$this->res->next();
448
			return true;
449
		}
450
		
451
		return false;
452
	}
453
	
454
	public function getHtml()
455
	{

programs/utilit/vacincl.php 1 location

@@ 505-536 (lines=32) @@
502
        bab_functionality::includeOriginal('Icons');
503
    }
504
505
    public function getnext()
506
    {
507
        if (($this->res->key() - $this->pos) >= self::MAX)
508
        {
509
            return false;
510
        }
511
512
        if ($this->res->valid())
513
        {
514
            $W = bab_Widgets();
515
            $movement = $this->res->current();
516
            /*@var $movement absences_Movement */
517
             
518
            $this->altbg = !$this->altbg;
519
520
            $this->author = bab_toHtml(bab_getUserName($movement->id_author));
521
            $this->date = bab_toHtml(bab_shortDate(bab_mktime($movement->createdOn)));
522
            if ($request = $movement->getRequest())
523
            {
524
                $this->request = $request->getManagerFrame()->addClass(Func_Icons::ICON_LEFT_16)->display($W->HtmlCanvas());
525
            } else {
526
                $this->request = '';
527
            }
528
            $this->message = bab_toHtml($movement->message);
529
            $this->comment = bab_toHtml($movement->comment);
530
             
531
            $this->res->next();
532
            return true;
533
        }
534
535
        return false;
536
    }
537
538
    public function getHtml()
539
    {