Skip to content
Snippets Groups Projects
Commit ee60b1d0 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Improving the HTML layout, UI etc.. Hope there is not introduced any UI bugs here. Be aware.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@225 44740490-163a-0410-bde0-09ae8108e29a
parent 4a50f34a
No related branches found
No related tags found
No related merge requests found
Showing
with 56 additions and 153 deletions
......@@ -34,6 +34,8 @@ $config = array (
*/
'debug' => false,
'version' => '0.9',
/*
* Logging.
*
......@@ -107,7 +109,6 @@ $config = array (
* Options: [links,dropdown]
*
*/
#'idpdisco.layout' => 'dropdown',
'idpdisco.layout' => 'links',
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>Metadata overview</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bino.png" alt="Bino" /></div>
</div>
<div id="content">
<h2><?php if (isset($data['header'])) { echo $data['header']; } else { echo "Metadata overview"; } ?></h2>
<p>Here is a list of metadata that is configured for your installation.</p>
<p>[ <a href="../">Go back to installation main page</a> ]</p>
<?php
......@@ -31,32 +22,41 @@
echo '<p>' . htmlspecialchars($entity['optional.found']['description']) . '</p>';
}
echo '<p>Required fields</p>';
echo '<table style="width: 100%; border: 1px solid #eee"><tr><th>Key</th><th>Value</th></tr>';
echo '<div style="margin-left: 1em">';
echo '<div class="efieldlist"><h5>Required fields<h5>';
echo '<dl>';
foreach ($entity['required.found'] AS $key => $value) {
echo '<tr><td>' . htmlspecialchars($key) . '</td><td>' . htmlspecialchars($value) . '</td></tr>';
echo '<dt>' . htmlspecialchars($key) . '</dt><dd>' . htmlspecialchars($value) . '</dd>';
}
echo '</table>';
echo '</dl>';
if (count($entity['required.notfound']) > 0) {
echo '<p>The following required fields was not found:<ul>';
echo '</div><div class="efieldlist warning">';
echo '<h5>The following required fields was not found</h5><ul>';
foreach ($entity['required.notfound'] AS $key) {
echo '<li>' . htmlspecialchars($key) . '</li>';
}
echo '</ul>';
}
if (count($entity['optional.found']) > 0) {
echo '<p>Optional fields</p>';
echo '<table><tr><th>Key</th><th>Value</th></tr>';
echo '</div><div class="efieldlist">';
echo '<h5>Optional fields</h5>';
echo '<dl>';
foreach ($entity['optional.found'] AS $key => $value) {
echo '<tr><td>' . htmlspecialchars($key) . '</td><td>' . htmlspecialchars($value) . '</td></tr>';
echo '<dt>' . htmlspecialchars($key) . '</dt><dd>' . htmlspecialchars($value) . '</dd>';
}
echo '</table>';
echo '</dl>';
}
if (count($entity['optional.notfound']) > 0) {
echo '<p>The following optional fields was not found:<ul>';
echo '</div><div class="efieldlist info">';
echo '<h5>The following optional fields was not found:</h5><ul>';
foreach ($entity['optional.notfound'] AS $key) {
echo '<li>' . htmlspecialchars($key) . '</li>';
}
......@@ -64,13 +64,14 @@
}
if (count($entity['leftovers']) > 0) {
echo '<p>The following fields was not reckognized:<ul>';
echo '</div><div class="efieldlist warning">';
echo '<h5>The following fields was not reckognized</h5><ul>';
foreach ($entity['leftovers'] AS $key => $value) {
echo '<li>' . htmlspecialchars($key) . '</li>';
}
echo '</ul>';
}
echo '</div></div>';
}
}
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>User consent on attribute release</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bino.png" alt="Bino" /></div>
</div>
<div id="content">
<p>You are about to login to the service <strong><?php echo htmlspecialchars($data['spentityid']); ?></strong>. In the login proccess, the identity provider will send attributes containing information about your identity to this service. Do you accept this?</p>
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>simpleSAMLphp error page</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bomb_l.png" alt="Login screen" /></div>
</div>
<div id="content">
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>simpleSAMLphp is installed</h1>
<div id="poweredby"><img src="resources/icons/compass_l.png" alt="Bino" /></div>
</div>
<div id="content">
<h2>Welcome to simpleSAMlphp</h2>
<p>You have installed simpleSAMLphp on this web host.</p>
<p>Relevant links for your installation:
<p>You have installed simpleSAMLphp on this web host. Here are some relevant links for your installation:
<ul>
<?php
......@@ -19,27 +12,13 @@
echo '<li><a href="' . htmlspecialchars($link['href']) . '">' . htmlspecialchars($link['text']) . '</a></li>';
}
?>
<!-- li><a href="saml2/sp/metadata.php">Look at your SAML 2.0 SP metadata</a> - you can send this metadata document to your IdP.</a></li>
<li><a href="saml2/idp/metadata.php">Look at your SAML 2.0 IdP metadata</a></a></li>
<li><a href="example-simple/saml2-example.php">SAML 2.0 SP example</a></li>
<li><a href="example-simple/shib13-example.php">Shibboleth 1.3 SP example</a></li>
<li><a href="openid/provider/server.php">OpenID Provider site</a></li -->
</ul>
</p>
<h2>Diagnostics</h2>
<p>Here are some help tools to diagnose what is wrong if things do not work as expected.</p>
<p>Misconfiguration of NameVirtualHosts and similar things are pretty common in Apache. simpleSAMLphp relies on getting correct information from Apache what relates to port number information about ssl and so on. Here is a diagnostics page that shows what simpleSAMLphp is getting from Apache:
<ul>
<li><a href="example-simple/hostnames.php">Diagnostics on hostname, port and protocol</a></li>
</ul>
</p>
<h2>About simpleSAMLphp</h2>
<p>Hey! This simpleSAMLphp thing is pretty cool, where can I read more about it?
You can find more information about simpleSAMLphp at <a href="http://rnd.feide.no">the Feide RnD blog</a> over at <a href="http://uninett.no">UNINETT</a>.</p>
You can find more information about <a href="http://rnd.feide.no/simplesamlphp">simpleSAMLphp at the Feide RnD blog</a> over at <a href="http://uninett.no">UNINETT</a>.</p>
<?php $this->includeAtTemplateBase('includes/footer.php'); ?>
\ No newline at end of file
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>simpleSAMLphp HTTP-REDIRECT debug</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/debug.png" alt="Debug" /></div>
</div>
<div id="content">
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<?php
if (!array_key_exists('icon', $this->data)) $this->data['icon'] = 'lock.png';
$this->includeAtTemplateBase('includes/header.php');
?>
<div id="header">
<h1>simpleSAMLphp authentication</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/lock.png" alt="Login screen" /></div>
</div>
<div id="content">
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<?php
if (!array_key_exists('icon', $this->data)) $this->data['icon'] = 'lock.png';
$this->includeAtTemplateBase('includes/header.php');
?>
<div id="header">
<h1>simpleSAMLphp authentication</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/lock.png" alt="Login screen" /></div>
</div>
<div id="content">
<?php if (isset($data['error'])) { ?>
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>simpleSAMLphp Metadata</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bino.png" alt="Bino" /></div>
</div>
<div id="content">
<h2><?php if (isset($data['header'])) { echo $data['header']; } else { echo "Some error occured"; } ?></h2>
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>simpleSAMLphp OpenID</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bino.png" alt="Bino" /></div>
</div>
<div id="content">
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>simpleSAMLphp OpenID</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bino.png" alt="Bino" /></div>
</div>
<div id="content">
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>simpleSAMLphp OpenID</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bino.png" alt="Bino" /></div>
</div>
<div id="content">
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>simpleSAMLphp authentication</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/debug.png" alt="Debug" /></div>
</div>
<div id="content">
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>SAML 2.0 IdP Discovery Service</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bino.png" alt="Bino" /></div>
</div>
<div id="content">
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>SAML 2.0 IdP Discovery Service</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bino.png" alt="Bino" /></div>
</div>
<div id="content">
......
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<div id="header">
<h1>simpleSAMLphp status page</h1>
<div id="poweredby"><img src="/<?php echo $data['baseurlpath']; ?>resources/icons/bino.png" alt="Bino" /></div>
</div>
<div id="content">
......
......@@ -10,52 +10,24 @@ if(array_key_exists('header', $data)) {
}
?></title>
<style type="text/css">
/* these styles are in the head of this page because this is a unique page */
/* THE BIG GUYS */
* {margin:0;padding:0}
body {text-align:center;padding: 20px 0;background: #222;color:#333;font:83%/1.5 arial,tahoma,verdana,sans-serif}
img {border:none;display:block}
hr {margin: 1em 0;background:#eee;height:1px;color:#eee;border:none;clear:both}
/* LINKS */
a,a:link,a:link,a:link,a:hover {font-weight:bold;background:transparent;text-decoration:underline;cursor:pointer}
a:link {color:#c00}
a:visited {color:#999}
a:hover,a:active {color:#069}
/* LISTS */
ul {margin: .3em 0 1.5em 2em}
ul.related {margin-top:-1em}
li {margin-left:2em}
dt {font-weight:bold}
#wrap {border: 1px solid #fff;position:relative;background:#fff;width:600px;margin: 0 auto;text-align:left}
#header {background: #666 url("/<?php echo $data['baseurlpath']; ?>resources/sprites.gif") repeat-x 0 100%;margin: 0 0 25px;padding: 0 0 8px}
#header h1 {color:#fff;font-size: 145%;padding:20px 20px 12px}
#poweredby {width:96px;height:63px;position:absolute;top:0;right:0}
#content {padding: 0 20px}
/* TYPOGRAPHY */
p, ul, ol {margin: 0 0 1.5em}
h1, h2, h3, h4, h5, h6 {letter-spacing: -1px;font-family: arial,verdana,sans-serif;margin: 1.2em 0 .3em;color:#000;border-bottom: 1px solid #eee;padding-bottom: .1em}
h1 {font-size: 196%;margin-top:0;border:none}
h2 {font-size: 136%}
h3 {font-size: 126%}
h4 {font-size: 116%}
h5 {font-size: 106%}
h6 {font-size: 96%}
.old {text-decoration:line-through}
</style>
<link rel="stylesheet" type="text/css" href="/<?php echo $data['baseurlpath']; ?>resources/default.css">
<link rel="icon" type="image/icon" href="/<?php echo $data['baseurlpath']; ?>resources/icons/favicon.ico" />
</head>
<body>
<div id="wrap">
<div id="header">
<h1><a style="text-decoration: none; color: white" href="/<?php echo $data['baseurlpath']; ?>"><?php
echo (isset($data['header']) ? $data['header'] : 'simpleSAMLphp');
?></a></h1>
<div id="poweredby">
<a href="/<?php echo $data['baseurlpath']; ?>">
<img src="/<?php echo $data['baseurlpath']; ?>resources/icons/<?php
echo (isset($data['icon']) ? $data['icon'] : 'compass_l.png');
?>" alt="Header icon" /></a></div>
</div>
<?php
$languages = $this->getLanguageList();
......
......@@ -124,12 +124,8 @@ try {
}
$et->data['header'] = 'Metadata overview';
$et->data['icon'] = 'bino.png';
$et->show();
......
......@@ -41,7 +41,7 @@ $et->data['remaining'] = $session->remainingTime();
$et->data['sessionsize'] = $session->getSize();
$et->data['attributes'] = $attributes;
$et->data['valid'] = $session->isValid() ? 'Session is valid' : 'Session is invalid';
$et->data['icon'] = 'bino.png';
$et->data['logout'] = '<p>[ <a href="/' . $config->getValue('baseurlpath') . 'saml2/sp/initSLO.php?RelayState=/' .
$config->getValue('baseurlpath') . 'logout.html">Logout</a> ]';
......
......@@ -32,7 +32,7 @@ $et->data['remaining'] = $session->remainingTime();
$et->data['attributes'] = $session->getAttributes();
$et->data['valid'] = $session->isValid() ? 'Session is valid' : 'Session is invalid';
$et->data['logout'] = 'Shibboleth logout not implemented yet.';
$et->data['icon'] = 'bino.png';
$et->show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment