ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
10 if (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" />'; ?>
14 These 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 
23 echo '</div>';
24 }
25 ?>
26 
27 <?php
28 if (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" />'; ?>
32 These 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 
41 echo '</div>';
42 }
43 ?>
44 
45 <?php $this->includeAtTemplateBase('includes/footer.php'); ?>
$this data['header']
Definition: check.tpl.php:2
"color:#CC0000 style
Definition: example_001.php:92
$i
Definition: disco.tpl.php:19