PageRenderTime 243ms CodeModel.GetById 118ms app.highlight 2ms RepoModel.GetById 121ms app.codeStats 0ms

/halogy/scaffolding/views/add.php

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