ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
check.tpl.php
Go to the documentation of this file.
1<?php
2$this->data['header'] = 'Sanity check';
3$this->includeAtTemplateBase('includes/header.php');
4
5?>
6
7<h2><?php echo($this->data['header']); ?></h2>
8
9<?php
10if (count($this->data['errors']) > 0) {
11?>
12<div style="border: 1px solid #800; background: #caa; margin: 1em; padding: .5em">
13<p><?php echo '<img class="float-r" src="/' . $this->data['baseurlpath'] . 'resources/icons/silk/delete.png" alt="Failed" />'; ?>
14These checks failed:</p>
15<?php
16
17 echo '<ul>';
18 foreach ($this->data['errors'] AS $err) {
19 echo '<li>' . $err . '</li>';
20 }
21 echo '</ul>';
22
23echo '</div>';
24}
25?>
26
27<?php
28if (count($this->data['info']) > 0) {
29?>
30<div style="border: 1px solid #ccc; background: #eee; margin: 1em; padding: .5em">
31<p><?php echo '<img class="float-r" src="/' . $this->data['baseurlpath'] . 'resources/icons/silk/accept.png" alt="OK" />'; ?>
32These checks succeeded:</p>
33<?php
34 echo '<ul>';
35 foreach ($this->data['info'] AS $i) {
36 echo '<li>' . $i . '</li>';
37 }
38 echo '</ul>';
39
40
41echo '</div>';
42}
43?>
44
45<?php $this->includeAtTemplateBase('includes/footer.php'); ?>
$this data['header']
Definition: check.tpl.php:2
An exception for terminatinating execution or to throw for unit testing.
$i
Definition: disco.tpl.php:19