Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
customization simpleSAMLphp
Commits
a531ca2a
Commit
a531ca2a
authored
May 19, 2020
by
Wolfgang Knopki
Browse files
Add new selectsource template
parent
e40a4c8b
Changes
1
Show whitespace changes
Inline
Side-by-side
mymodule/templates/selectsource.tpl.php
0 → 100644
View file @
a531ca2a
<?php
$this
->
data
[
'header'
]
=
$this
->
t
(
'{multiauth:multiauth:select_source_header}'
);
$this
->
includeAtTemplateBase
(
'includes/header.php'
);
?>
<h2>
<?php
echo
$this
->
t
(
'{multiauth:multiauth:select_source_header}'
);
?>
</h2>
<p>
<?php
echo
$this
->
t
(
'{multiauth:multiauth:select_source_text}'
);
?>
</p>
<form
action=
"/idp/module.php/multiauth/selectsource.php"
method=
"get"
>
<input
type=
"hidden"
name=
"AuthState"
value=
"
<?php
echo
htmlspecialchars
(
$this
->
data
[
'authstate'
]);
?>
"
/>
<ul>
<?php
foreach
(
$this
->
data
[
'sources'
]
as
$source
)
{
echo
'<li class="'
.
htmlspecialchars
(
$source
[
'css_class'
])
.
' authsource">'
;
if
(
$source
[
'source'
]
===
$this
->
data
[
'preferred'
])
{
$autofocus
=
' autofocus="autofocus"'
;
}
else
{
$autofocus
=
''
;
}
$name
=
'src-'
.
base64_encode
(
$source
[
'source'
]);
echo
'<input type="submit" name="'
.
htmlspecialchars
(
$name
)
.
'"'
.
$autofocus
.
' '
.
'id="button-'
.
htmlspecialchars
(
$source
[
'source'
])
.
'" '
.
'value="'
.
htmlspecialchars
(
$source
[
'text'
])
.
'" />'
;
echo
'</li>'
;
}
?>
</ul>
</form>
<?php
$this
->
includeAtTemplateBase
(
'includes/footer.php'
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment