aboutsummaryrefslogtreecommitdiff
path: root/lib/extern/views/extern_info_module.inc.php
blob: 885ef018773a47c7d3e34b816fe9cf2e1b327de8 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?
# Lifter002: TODO
# Lifter007: TODO
# Lifter003: TODO
# Lifter010: TODO
/**
 * extern_info_module.inc.php
 *
 *
 *
 *
 * @author       Peter Thienel <pthienel@web.de>, Suchi & Berg GmbH <info@data-quest.de>
 * @access       public
 * @modulegroup  extern
 * @module       extern_info_module
 * @package      studip_extern
 */

use Studip\Button, Studip\LinkButton;

// +---------------------------------------------------------------------------+
// This file is part of Stud.IP
// extern_info_module.inc.php
//
// Copyright (C) 2003 Peter Thienel <pthienel@web.de>,
// Suchi & Berg GmbH <info@data-quest.de>
// +---------------------------------------------------------------------------+
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or any later version.
// +---------------------------------------------------------------------------+
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
// +---------------------------------------------------------------------------+

$info = ExternConfig::GetInfo($range_id, $config_id);
?>
<table class="default">
    <caption>
        <?= _('Allgemeine Daten') ?>
    </caption>
    <tr>
        <td><?= _('Modulname') ?></td>
        <td><?= htmlReady($info["module_name"]) ?></td>
    </tr>
    <tr>
        <td><?= _('Name der Konfiguration') ?></td>
        <td><?= htmlReady($info["name"]) ?></td>
    </tr>
    <tr>
        <td><?= _('Erstellt am') ?></td>
        <td><?= $info["make_date"] ?></td>
    </tr>
    <tr>
        <td><?= _('Letzte Änderung') ?></td>
        <td><?= $info["change_date"] ?></td>
    </tr>
    <tr>
        <td><?= _('Beschreibung') ?></td>
        <td><?= $EXTERN_MODULE_TYPES[$info["module_type"]]["description"] ?></td>
    </tr>
</table>
<?

if ($info['module_type'] != 0)  :?>
    <? if ($info['level'] == 1) : ?>
        <p><strong><?= _('Direkter Link') ?></strong></p>
        <blockquote><a href="<?= $info['link'] ?>" target="_blank" rel="noopener noreferrer"><?= $info['link_br'] ?></a></blockquote>
        <p><?= _('Diese Adresse können Sie in einen Link auf Ihrer Website integrieren, um auf die Ausgabe des Moduls zu verweisen.') ?></p>
    <? endif ?>

    <? if (Config::get()->EXTERN_SRI_ENABLE && sri_is_enabled(Context::getId())) : ?>
        <p><strong><?= _("Stud.IP-Remote-Include (SRI)  Schnittstelle") ?></strong></p>
        <p><?= _('Der unten aufgeführte Textblock ermöglicht Ihnen den Zugriff auf die Stud.IP-Remote-Include-Schnittstelle (SRI).') ?></p>
        <blockquote>
            <pre><?= $info['sri'] ?></pre>
        </blockquote>
        <p><?= _('Kopieren Sie dieses Code-Schnipsel in eine beliebige Stelle im HTML-Quelltext einer Seite Ihrer Website.') ?></p>
        <p><?= _('Durch eine spezielle Art des Seitenaufrufs, wird an dieser Stelle die Ausgabe des Moduls eingefügt.') ?></p>
        <p><strong><?= _('Link zur SRI-Schnittstelle') ?></strong></p>
        <blockquote>
            <?= $info['link_sri'] ?>
        </blockquote>
        <p><?= sprintf(_('Ersetzen Sie %s durch die URL der Seite, in die Sie die Ausgabe des Moduls einfügen wollen. Diese Seite muss obigen Code-Schnipsel enthalten.'), _('URL_DER_INCLUDE_SEITE')) ?></p>
    <? endif ?>
<? endif ?>


<?= LinkButton::create('<<  ' . _('Zurück'), URLHelper::getURL('', ['list' => true])); ?>