diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-02-06 23:14:56 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-02-06 23:31:27 +0100 |
commit | 9e9d77b4072de4f8c73e8bbade07a8f27734e4bd (patch) | |
tree | a5d709254968fed8f3acdb9eec68fde2faa14b94 /system/scaffolding/views/view.php |
Initial commit
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/scaffolding/views/view.php')
-rw-r--r-- | system/scaffolding/views/view.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/system/scaffolding/views/view.php b/system/scaffolding/views/view.php new file mode 100644 index 000000000..a81241d39 --- /dev/null +++ b/system/scaffolding/views/view.php @@ -0,0 +1,27 @@ +<?php $this->load->view('header'); ?> + +<table border="0" cellpadding="0" cellspacing="1" style="width:100%"> + <tr> + <th>Edit</th> + <th>Delete</th> + <?php foreach($fields as $field): ?> + <th><?php echo $field; ?></th> + <?php endforeach; ?> +</tr> + +<?php foreach($query->result() as $row): ?> + <tr> + <td> <?php echo anchor(array($base_uri, 'edit', $row->$primary), $scaff_edit); ?> </td> + <td><?php echo anchor(array($base_uri, 'delete', $row->$primary), $scaff_delete); ?></td> + <?php foreach($fields as $field): ?> + <td><?php echo form_prep($row->$field);?></td> + <?php endforeach; ?> + </tr> +<?php endforeach; ?> +</table> + +<?php echo $paginate; ?> + +<?php $this->load->view('footer'); +/* End of file view.php */ +/* Location: ./system/scaffolding/views/view.php */
\ No newline at end of file |