| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * Log Panel Element
- *
- * PHP 5
- *
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since DebugKit 0.1
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
- ?>
- <h2><?php echo __d('debug_kit', 'Logs') ?></h2>
- <div class="code-table">
- <?php if ($content instanceof DebugKitLog): ?>
- <?php foreach ($content->logs as $logName => $logs): ?>
- <h3><?php echo $logName ?></h3>
- <?php
- $len = count($logs);
- if ($len > 0):
- $headers = array(__d('debug_kit', 'Time'), __d('debug_kit', 'Message'));
- $rows = array();
- for ($i = 0; $i < $len; $i++):
- $rows[] = array(
- $logs[$i][0], h($logs[$i][1])
- );
- endfor;
- echo $this->Toolbar->table($rows, $headers, array('title' => $logName));
- endif; ?>
- <?php endforeach; ?>
- <?php if (empty($content->logs)): ?>
- <p class="info"><?php echo __d('debug_kit', 'There were no log entries made this request'); ?></p>
- <?php endif; ?>
- <?php endif; ?>
- </div>
|