aboutsummaryrefslogtreecommitdiff
path: root/templates/mail/notification_html.php
blob: 77a71b627b7be30805634e3f96cdce340a1c4147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?
# Lifter010: TODO
?>
<html>
<head>
  <?= Assets::stylesheet('studip-base.css') ?>
</head>
<body>
  <div style="background-color: white; margin: auto; max-width: 700px; padding: 4px;">
    <?= Assets::img("locale/$lang/LC_PICTURES/mail_header_notification.png") ?>
    <p>
      <?= _("Sie erhalten hiermit in regelmäßigen Abständen Informationen über Neuigkeiten und Änderungen in belegten Veranstaltungen.") ?>
      <br><br>
      <?= _("Über welche Inhalte und in welchem Format Sie informiert werden wollen, können Sie hier einstellen:") ?>
      <br>
      <a href="<?= URLHelper::getLink('dispatch.php/settings/notification', ['again' => 'yes', 'sso' => $sso]) ?>">
        <?= URLHelper::getLink('dispatch.php/settings/notification', ['again' => 'yes', 'sso' => $sso]) ?>
      </a>
    </p>

    <table class="default">
      <? foreach ($news as $sem_titel => $data) : ?>
        <tr class="table_header_bold">
          <td colspan="2" style="font-weight: bold;">
            <a href="<?= URLHelper::getLink('seminar_main.php', ['again' => 'yes', 'sso' => $sso, 'auswahl' => $data[0]['range_id']]) ?>">
              <?= htmlReady($sem_titel) ?>
              <?= (($semester = get_semester($data[0]['range_id'])) ? ' ('.$semester.')' : '') ?>
            </a>
          </td>
        </tr>

        <? foreach ($data as $module) : ?>
        <tr class="<?= TextHelper::cycle('hover_odd', 'hover_even') ?>">
          <td>
            <a href="<?= URLHelper::getLink($module['url'], ['sso' => $sso]) ?>"><?= htmlReady($module['text']) ?></a>
          </td>
          <td>
            <a href="<?= URLHelper::getLink($module['url'], ['sso' => $sso]) ?>"><?= $module['icon']->asImg(['title' => htmlReady($module['text'])]) ?></a>
          </td>
        </tr>
        <? endforeach ?>
      <? endforeach ?>
    </table>
    <hr>
    <span class="minor">
      <?= _("Diese Nachricht wurde automatisch vom Stud.IP-System generiert. Sie können darauf nicht antworten.") ?>
    </span>
  </div>
</body>
</html>