<table class="table"> <thead> <tr> <th>#</th> <th>Numero</th> <th>Status</th> <th>Mensagem</th> <th width="120"></th> </tr> </thead> <tbody> <?php foreach ($staff as $q) { echo '<tr>'; echo '<th scope="row">' . $q->id . '</th>'; echo '<td>' . $q->number . '</td>'; echo '<td>' . $q->status . '</td>'; echo '<td>' . $q->text . '</td>'; echo '<td>' . action_buttons($q) . '</td>'; echo '</tr>'; } ?> </tbody> </table> </div> </div> </div> <?php $this->load->view('layout/footer');
function display_alert_row($alert_config) { //print_r($alert_config); $return = '<tr><td>' . make_graphite_link($alert_config, true) . '</td>'; $return .= '<td>' . $alert_config['owner'] . '</td>'; $return .= '<td>' . $alert_config['target'] . '</td>'; $return .= '<td>' . $alert_config['warn'] . '</td>'; $return .= '<td>' . $alert_config['error'] . '</td>'; $return .= '<td>' . $alert_config['sample'] . '</td>'; $return .= '<td>' . $alert_config['baseline'] . '</td>'; $return .= '<td>' . $alert_config['over_under'] . '</td>'; $return .= '<td>' . display_subscribers_count($alert_config['nid']) . '</td>'; $return .= '<td>' . $alert_config['visibility'] . '</td>'; $return .= '<td>' . action_buttons($alert_config) . '</td></tr>'; return $return; }