PHP Classes

File: web/SSO/modules/sanitycheck/templates/check-tpl.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/modules/sanitycheck/templates/check-tpl.php   Download  
File: web/SSO/modules/sanitycheck/templates/check-tpl.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 1,052 bytes
 

Contents

Class file image Download
<?php
$this
->data['header'] = 'Sanity check';
$this->includeAtTemplateBase('includes/header.php');

?>

<h2><?php echo($this->data['header']); ?></h2>

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

   
echo '<ul>';
    foreach (
$this->data['errors'] AS $err) {
        echo
'<li>' . $err . '</li>';
    }
    echo
'</ul>';

echo
'</div>';
}
?>

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


echo
'</div>';
}
?>

<?php $this->includeAtTemplateBase('includes/footer.php'); ?>