PHP Classes

File: third_party/DevelBar/views/develbar/views.php

Recommend this page to a friend!
  Classes of Simo  >  CodeIgniter Develbar  >  third_party/DevelBar/views/develbar/views.php  >  Download  
File: third_party/DevelBar/views/develbar/views.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: CodeIgniter Develbar
CodeIgniter library to show a developer toolbar
Author: By
Last change: Display views variables

Display views variables
v 0.4
Date: 4 years ago
Size: 1,431 bytes
 

Contents

Class file image Download
<img src="<?php echo $icon ?>" title="<?php echo lang('views') ?>"
     alt="<?php echo lang('views') ?>"/> <?php echo lang('views') . ' (' . count($views) . ')' ?>
<?php
if (count($views)): ?>
<div class="detail views">
        <div class="scroll">
            <?php
           
foreach ($views as $path => $data) {
               
$path = explode('/', $path);
               
$path[count($path) - 1] = '<span style="color:#FFF">' . end($path) . '</span>';
                echo
'
            <p>
                <span class="left-col">
                <a href="#" onclick="return ShowViewVars(this);" title="Show variables">
                    <strong><span class="develbar-open-icon">+</span> '
. implode('<span style="color:#FFF">/</span>',
                       
$path) . '</strong>
                </a>
                </span>'
;
                echo
'</p>';

                echo
'<div class="develbar-detail-vars" style="display:none">';
                if (
count($data)) {
                    if (
is_array($data) || is_object($data)) {
                       
$data = print_r($data, true);
                    }
                    echo
'<p>';
                    echo
'<span class="right-col" style="width:100%"><pre>' . htmlspecialchars($data) . '</pre></span>';
                    echo
'</p>';
                }
                echo
'</div>';
            }
           
?>
</div>
    </div>
<?php endif; ?>

For more information send a message to info at phpclasses dot org.