aboutsummaryrefslogtreecommitdiff
path: root/lib/admissionrules/timedadmission/templates/info.php
blob: df62682ea0bb302b790ef6b31d294b175d70f3b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$text = '';
if ($rule->getStartTime() && !$rule->getEndTime()) {
    $text = sprintf(_("Die Anmeldung ist möglich ab %s."), date("d.m.Y, H:i", 
        $rule->startTime));
} else if (!$rule->getStartTime() && $rule->getEndTime()) {
    $text = sprintf(_("Die Anmeldung ist möglich bis %s."), date("d.m.Y, H:i", 
        $rule->endTime));
} else if ($rule->getStartTime() && $rule->getEndTime()) {
    $text = sprintf(_("Die Anmeldung ist möglich von %s bis %s."), 
        date("d.m.Y, H:i", $rule->startTime), date("d.m.Y, H:i", $rule->endTime));
}
?>
<?= $text ?>