Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php /* List data-table values, i.e: $_SERVER, $_GET, .... */ ?>
2
<div class="details">
3
  <h2 class="details-heading">Environment &amp; details:</h2>
4
 
5
  <div class="data-table-container" id="data-tables">
6
    <?php foreach ($tables as $label => $data): ?>
7
      <div class="data-table" id="sg-<?php echo $tpl->escape($tpl->slug($label)) ?>">
8
        <?php if (!empty($data)): ?>
9
            <label><?php echo $tpl->escape($label) ?></label>
10
            <table class="data-table">
11
              <thead>
12
                <tr>
13
                  <td class="data-table-k">Key</td>
14
                  <td class="data-table-v">Value</td>
15
                </tr>
16
              </thead>
17
            <?php foreach ($data as $k => $value): ?>
18
              <tr>
19
                <td><?php echo $tpl->escape($k) ?></td>
20
                <td><?php echo $tpl->dump($value) ?></td>
21
              </tr>
22
            <?php endforeach ?>
23
            </table>
24
        <?php else: ?>
25
            <label class="empty"><?php echo $tpl->escape($label) ?></label>
26
            <span class="empty">empty</span>
27
        <?php endif ?>
28
      </div>
29
    <?php endforeach ?>
30
  </div>
31
 
32
  <?php /* List registered handlers, in order of first to last registered */ ?>
33
  <div class="data-table-container" id="handlers">
34
    <label>Registered Handlers</label>
35
    <?php foreach ($handlers as $i => $h): ?>
36
      <div class="handler <?php echo ($h === $handler) ? 'active' : ''?>">
37
        <?php echo $i ?>. <?php echo $tpl->escape(get_class($h)) ?>
38
      </div>
39
    <?php endforeach ?>
40
  </div>
41
 
42
</div>