-
Andreas Åkre Solberg authored
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@427 44740490-163a-0410-bde0-09ae8108e29a
ce89b07b
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="content">
<h2><?php if (isset($this->data['header'])) { echo $this->data['header']; } else { echo "Select your IdP"; } ?></h2>
<p>Please select the identity provider where you want to authenticate:</p>
<?php
if (!empty($this->data['preferredidp']) && array_key_exists($this->data['preferredidp'], $this->data['idplist'])) {
$idpentry = $this->data['idplist'][$this->data['preferredidp']];
echo '<div class="preferredidp">';
echo ' <img src="/' . $this->data['baseurlpath'] .'resources/icons/star.png" style="float: right" />';
echo ' <h3>' . htmlspecialchars($idpentry['name']) . '</h3>';
echo ' <p>' . htmlspecialchars($idpentry['description']) . '<br />';
echo ' [ <a href="' . $this->data['urlpattern'] . htmlspecialchars($idpentry['entityid']) . '">Select this IdP</a>]</p>';
echo '</div>';
}
foreach ($this->data['idplist'] AS $idpentry) {
if ($idpentry['entityid'] != $this->data['preferredidp']) {
echo '<h3>' . htmlspecialchars($idpentry['name']) . '</h3>';
echo '<p>' . htmlspecialchars($idpentry['description']) . '<br />';
echo '[ <a href="' . $this->data['urlpattern'] . htmlspecialchars($idpentry['entityid']) . '">Select this IdP</a>]</p>';
}
}
?>
<?php $this->includeAtTemplateBase('includes/footer.php'); ?>