blob: cbb12f6fb9fcd4b363a7ba47e17aa48c932c403d [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?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
Derek Jonesa3ffbbb2008-05-11 18:18:29 +000030<?php $this->load->view('footer');
31/* End of file add.php */
32/* Location: ./system/scaffolding/views/add.php */