3 if (!array_key_exists(
'header', $this->
data)) {
4 $this->
data[
'header'] =
'selectidp';
6 $this->
data[
'header'] = $this->t($this->
data[
'header']);
7 $this->
data[
'autofocus'] =
'dropdownlist';
8 $this->includeAtTemplateBase(
'includes/header.php');
10 foreach ($this->
data[
'idplist'] as $idpentry) {
11 if (!empty($idpentry[
'name'])) {
12 $this->getTranslator()->includeInlineTranslation(
13 'idpname_'.$idpentry[
'entityid'],
16 } elseif (!empty($idpentry[
'OrganizationDisplayName'])) {
17 $this->getTranslator()->includeInlineTranslation(
18 'idpname_'.$idpentry[
'entityid'],
19 $idpentry[
'OrganizationDisplayName']
22 if (!empty($idpentry[
'description'])) {
23 $this->getTranslator()->includeInlineTranslation(
'idpdesc_'.$idpentry[
'entityid'], $idpentry[
'description']);
27 <h2><?php echo $this->
data[
'header']; ?></h2>
28 <p><?php echo $this->t(
'selectidp_full'); ?></p>
29 <form method=
"get" action=
"<?php echo $this->data['urlpattern']; ?>">
30 <input type=
"hidden" name=
"entityID" value=
"<?php echo htmlspecialchars($this->data['entityID']); ?>"/>
31 <input type=
"hidden" name=
"return" value=
"<?php echo htmlspecialchars($this->data['return']); ?>"/>
32 <input type=
"hidden" name=
"returnIDParam" 33 value=
"<?php echo htmlspecialchars($this->data['returnIDParam']); ?>"/>
34 <select
id=
"dropdownlist" name=
"idpentityid">
44 usort($this->data[
'idplist'],
function ($idpentry1, $idpentry2) {
46 $GLOBALS[
'__t']->t(
'idpname_'.$idpentry1[
'entityid']),
47 $GLOBALS[
'__t']->t(
'idpname_'.$idpentry2[
'entityid'])
52 foreach ($this->data[
'idplist'] as $idpentry) {
53 echo
'<option value="'.htmlspecialchars($idpentry[
'entityid']).
'"';
54 if (isset($this->data[
'preferredidp']) && $idpentry[
'entityid'] == $this->data[
'preferredidp']) {
55 echo
' selected="selected"';
57 echo
'>'.htmlspecialchars($this->t(
'idpname_'.$idpentry[
'entityid'])).
'</option>';
61 <button
class=
"btn" type=
"submit"><?php echo $this->t(
'select'); ?></button>
63 if ($this->data[
'rememberenabled']) {
64 echo(
'<br/><input type="checkbox" name="remember" value="1" />'.$this->t(
'remember'));
68 <?php $this->includeAtTemplateBase(
'includes/footer.php');
if(!array_key_exists('header', $this->data)) $this data['header']