@@ 923-941 (lines=19) @@ | ||
920 | ||
921 | // Disponibilite en fonction d'une date anterieure |
|
922 | ||
923 | if ($this->earlier) |
|
924 | { |
|
925 | $f = $this->getDirFieldLabel($this->earlier); |
|
926 | $cond = array(); |
|
927 | ||
928 | if ($this->earlier_begin_valid) |
|
929 | { |
|
930 | $cond[] = sprintf(absences_translate('%d years later "%s"'), $this->earlier_begin_valid, $f); |
|
931 | } else { |
|
932 | $cond[] = sprintf(absences_translate('after "%s"'), $f); |
|
933 | } |
|
934 | ||
935 | if ($this->earlier_end_valid) |
|
936 | { |
|
937 | $cond[] = sprintf(absences_translate('in the %d years next to "%s"'), $this->earlier_end_valid, $f); |
|
938 | } |
|
939 | ||
940 | $conditions[] = absences_translate('To request a period').' '.implode(' '.absences_translate('and').' ', $cond).'.'; |
|
941 | } |
|
942 | ||
943 | ||
944 | // Disponibilite en fonction d'une date posterieure |
|
@@ 946-964 (lines=19) @@ | ||
943 | ||
944 | // Disponibilite en fonction d'une date posterieure |
|
945 | ||
946 | if ($this->later) |
|
947 | { |
|
948 | $f = $this->getDirFieldLabel($this->later); |
|
949 | $cond = array(); |
|
950 | ||
951 | if ($this->later_begin_valid) |
|
952 | { |
|
953 | $cond[] = sprintf(absences_translate('in the %d years preceding "%s"'), $this->later_begin_valid, $f); |
|
954 | } else { |
|
955 | $cond[] = sprintf(absences_translate('after "%s"'), $f); |
|
956 | } |
|
957 | ||
958 | if ($this->later_end_valid) |
|
959 | { |
|
960 | $cond[] = sprintf(absences_translate('at least %d years before the "%s"'), $this->later_end_valid, $f); |
|
961 | } |
|
962 | ||
963 | $conditions[] = absences_translate('To request a period').' '.implode(' '.absences_translate('and').' ', $cond).'.'; |
|
964 | } |
|
965 | ||
966 | if($this->delay_before) |
|
967 | { |