admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame^] | 1 | <?php $this->load->view('header'); ?> |
| 2 | |
| 3 | <table border="0" cellpadding="0" cellspacing="1" style="width:100%"> |
| 4 | <tr> |
| 5 | <th>Edit</th> |
| 6 | <th>Delete</th> |
| 7 | <?php foreach($fields as $field): ?> |
| 8 | <th><?php echo $field; ?></th> |
| 9 | <?php endforeach; ?> |
| 10 | </tr><tr> |
| 11 | |
| 12 | <?php foreach($query->result() as $row): ?> |
| 13 | <tr> |
| 14 | <td> <?php echo anchor(array($base_uri, 'edit', $row->$primary), $scaff_edit); ?> </td> |
| 15 | <td><?php echo anchor(array($base_uri, 'delete', $row->$primary), $scaff_delete); ?></td> |
| 16 | <?php foreach($fields as $field): ?> |
| 17 | <td><?php echo form_prep($row->$field);?></td> |
| 18 | <?php endforeach; ?> |
| 19 | </tr> |
| 20 | <?php endforeach; ?> |
| 21 | </table> |
| 22 | |
| 23 | <?php echo $paginate; ?> |
| 24 | |
| 25 | <?php $this->load->view('footer'); ?> |