blob: a7d65c619ba5fc802c81d331a4c942119d0da810 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?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'); ?>