Code Duplication    Length = 8-8 lines in 2 locations

programs/utilit/period.ui.php 1 location

@@ 79-86 (lines=8) @@
76
        $this->dateend = $GLOBALS['babUrlScript']."?tg=month&callback=dateEnd&ymin=0&ymax=2";
77
        $this->dateendtxt = absences_translate("End date");
78
        $this->vactype = absences_translate("Vacation type");
79
        if ($id)
80
        {
81
            $this->addvac = absences_translate("Edit vacation request");
82
            $this->save_previsional = absences_translate("Save previsional request");
83
        } else {
84
            $this->addvac = absences_translate("Request vacation");
85
            $this->save_previsional = absences_translate("Create previsional request");
86
        }
87
        $this->remark = absences_translate("Remarks");
88
        $this->nbdaystxt = absences_translate("Quantity");
89
        $this->invaliddate = absences_translate("ERROR: End date must be older");

programs/vacuser.php 1 location

@@ 692-699 (lines=8) @@
689
		$this->datebegintxt = absences_translate("Begin date");
690
		$this->dateendtxt = absences_translate("End date");
691
		$this->vactype = absences_translate("Vacation type");
692
		if ($id)
693
		{
694
			$this->addvac = absences_translate("Edit vacation request");
695
			$this->save_previsional = absences_translate("Edit previsional request");
696
		} else {
697
			$this->addvac = absences_translate("Send vacation request");
698
			$this->save_previsional = absences_translate("Save previsional request");
699
		}
700
		$this->remark = absences_translate("Description:");
701
		$this->nbdaystxt = absences_translate("Quantity");
702
		$this->invaliddate = bab_toHtml(absences_translate("ERROR: End date must be older"), BAB_HTML_JS);