histogram: Make histograms crash less
[ninja.git] / application / views / program_status / index.php
blobb53d0937c3b45d00ca95a9f4259b8236e8f634a3
1 <?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
2 <div class="widget w98 left">
3 <table>
4 <caption><?php echo _('Program status'); ?></caption>
5 <thead>
6 <tr>
7 <th class="headerNone"><?php echo _('Name'); ?></th>
8 <th class="headerNone"><?php echo _('Last alive'); ?></th>
9 <th class="headerNone"><?php echo _('Is running'); ?></th>
10 </tr>
11 </thead>
12 <tbody>
13 <?php
14 $i = 0;
15 if ($data!==false) {
16 foreach ($data as $row) {
17 $i++;
18 echo '<tr class="'.($i%2 == 0 ? 'odd' : 'even').'">'."\n";
19 foreach($row as $column) {
20 echo '<td style="white-space: normal">'.$column.'</td>'."\n";
22 echo '</tr>'."\n";
24 } else { ?>
25 <tr class="even">
26 <td colspan="<?php echo count($header);?>"><?php echo _('No program status found'); ?></td>
27 </tr>
28 <?php } ?>
29 </tbody>
30 </table>
31 </div>