aboutsummaryrefslogtreecommitdiff
path: root/templates/mail/html.php
blob: e7379653ed5779967858d4876619e60ef89dd037 (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
<?
# Lifter010: TODO
?>
<html>
<head>
  <?= Assets::stylesheet('studip-base.css') ?>
</head>
<body>
  <div style="background-color: white; margin: auto; width: 700px; padding: 4px;">
    <?= Assets::img("locale/$lang/LC_PICTURES/mail_header.png") ?>
    <p>
      <?= formatReady($message, true, true) ?>
    </p>
    <? if (isset($attachments) && count($attachments)) : ?>
    <hr>
    <span class="minor">
      <?=_("Dateianhänge:")?>
        <ul>
        <? foreach($attachments as $attachment) : ?>
       	  <li>
            <a href="<?= $attachment->getDownloadURL() ?>"><?= htmlReady($attachment->name . ' (' . relsize($attachment->file->size, false) . ')') ?></a>
          </li>
        <? endforeach;?>
     	</ul>
     </span>
  	<? endif;?>
    <hr>
    <span class="minor">
        <? if ($snd_fullname) : ?>
            <?= sprintf(_('Diese E-Mail ist eine Kopie einer systeminternen Nachricht, die in Stud.IP von %s (<a href="%s">%s</a>) an %s (<a href="%s">%s</a>) versendet wurde.'), htmlReady($snd_fullname), htmlReady($snd_email),htmlReady($snd_email), htmlReady($rec_fullname), htmlReady($rec_email),htmlReady($rec_email)) ?>
        <? else : ?>
          <?= sprintf(_("Diese E-Mail ist eine Kopie einer systeminternen Nachricht, die in Stud.IP an %s versendet wurde."), htmlReady($rec_fullname)) ?>
        <? endif ?>
      <br><?= sprintf(_("Sie erreichen Stud.IP unter %s"), "<a href=\"" . $GLOBALS['ABSOLUTE_URI_STUDIP'] . "\">" . $GLOBALS['ABSOLUTE_URI_STUDIP'] . "</a>") ?>
    </span>
  </div>
</body>
</html>