File: check.tpl.php

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (27 lines) | stat: -rw-r--r-- 1,020 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
$this->data['header'] = 'Sanity check';
$this->includeAtTemplateBase('includes/header.php');

echo '<h2>'.$this->data['header'].'</h2>';
if (count($this->data['errors']) > 0) {
    echo '<div style="border: 1px solid #800; background: #caa; margin: 1em; padding: .5em">';
    echo '<p><img class="float-r" src="/'.$this->data['baseurlpath'].
        'resources/icons/silk/delete.png" alt="Failed" />These checks failed:</p>';
    echo '<ul>';
    foreach ($this->data['errors'] as $err) {
        echo '<li>'.$err.'</li>';
    }
    echo '</ul></div>';
}

if (count($this->data['info']) > 0) {
    echo '<div style="border: 1px solid #ccc; background: #eee; margin: 1em; padding: .5em">';
    echo '<p><img class="float-r" src="/'.$this->data['baseurlpath'].
        'resources/icons/silk/accept.png" alt="OK" />These checks succeeded:</p>';
    echo '<ul>';
    foreach ($this->data['info'] as $i) {
        echo '<li>'.$i.'</li>';
    }
}
echo '</ul></div>';
$this->includeAtTemplateBase('includes/footer.php');