selectsource.tpl.php 1.08 KB
Newer Older
1
2
3
4
5
<?php
$this->data['header'] = $this->t('{multiauth:multiauth:select_source_header}');
$this->includeAtTemplateBase('includes/header.php');
?>

6
<h2><?php echo 'Benutzerkonto auswählen' ?></h2>
7

8
<p><?php echo 'Bitte wählen Sie ein Benutzerkonto aus, mit dem Sie sich authentifizieren wollen:' ?></p>
9
10
11
12

<form action="/idp/module.php/multiauth/selectsource.php" method="get">
    <input type="hidden" name="AuthState" value="<?php echo htmlspecialchars($this->data['authstate']); ?>" />
<?php
Wolfgang Knopki's avatar
Wolfgang Knopki committed
13
echo '<div>';
14
15
16
17
18
19
20
foreach ($this->data['sources'] as $source) {
    if ($source['source'] === $this->data['preferred']) {
        $autofocus = ' autofocus="autofocus"';
    } else {
        $autofocus = '';
    }
    $name = 'src-'.base64_encode($source['source']);
Wolfgang Knopki's avatar
Wolfgang Knopki committed
21
    echo '<input type="submit" class="'.htmlspecialchars($source['css_class']).'"  name="'.htmlspecialchars($name).'"'.$autofocus.' '.
22
        'id="button-'.htmlspecialchars($source['source']).'" '.
Wolfgang Knopki's avatar
Wolfgang Knopki committed
23
        'value="'.htmlspecialchars($source['text']).'" ></input>';
24
}
Wolfgang Knopki's avatar
Wolfgang Knopki committed
25
echo '</div>';
26
27
28
?>
</form>
<?php $this->includeAtTemplateBase('includes/footer.php');