PageRenderTime 24ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/halogy/scaffolding/views/view.php

https://bitbucket.org/haloweb/halogy-1.0/
PHP | 27 lines | 21 code | 4 blank | 2 comment | 0 complexity | a6dff58afdf1dd6b4be88fedefcced0f MD5 | raw file
 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>
11
12<?php foreach($query->result() as $row): ?>
13 <tr>
14	<td>&nbsp;<?php echo anchor(array($base_uri, 'edit', $row->$primary), $scaff_edit); ?>&nbsp;</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'); 
26/* End of file view.php */
27/* Location: ./system/scaffolding/views/view.php */