PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/halogy/scaffolding/views/edit.php

https://bitbucket.org/haloweb/halogy-1.0/
PHP | 33 lines | 19 code | 12 blank | 2 comment | 5 complexity | 65b46546ee3ac338132559715fbdf507 MD5 | raw file
 1<?php $this->load->view('header');  ?>
 2
 3
 4<p><?php echo anchor(array($base_uri, 'view'), '&lt; '.$scaff_view_all);?></p>
 5
 6
 7<?php echo form_open($action); ?>
 8
 9<table border="0" cellpadding="3" cellspacing="1">
10<?php foreach($fields as $field): ?>
11
12<?php if ($field->primary_key == 1) continue; ?>
13
14<tr>
15	<td><?php echo  $field->name; ?></td>
16	
17	<?php if ($field->type == 'blob'): ?>
18	<td><textarea class="textarea" name="<?php echo $field->name;?>" cols="60" rows="10" ><?php $f = $field->name; echo form_prep($query->$f); ?></textarea></td>
19	<?php else : ?>
20	<td><input class="input" value="<?php $f = $field->name; echo form_prep($query->$f); ?>" name="<?php echo $field->name; ?>" size="60" /></td>
21	<?php endif; ?>
22	
23</tr>
24<?php endforeach; ?>
25</table>
26
27<input type="submit" class="submit" value="Update" />
28
29</form>
30
31<?php $this->load->view('footer'); 
32/* End of file edit.php */
33/* Location: ./system/scaffolding/views/edit.php */