blob: a7d65c619ba5fc802c81d331a4c942119d0da810 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php $this->load->view('header'); ?>
<p><?php echo anchor(array($base_uri, 'view'), '< '.$scaff_view_all);?></p>
<?php echo form_open($action); ?>
<table border="0" cellpadding="3" cellspacing="1">
<?php foreach($fields as $field): ?>
<?php if ($field->primary_key == 1) continue; ?>
<tr>
<td><?php echo $field->name; ?></td>
<?php if ($field->type == 'blob'): ?>
<td><textarea class="textarea" name="<?php echo $field->name;?>" cols="60" rows="10" ><?php $f = $field->name; echo form_prep($query->$f); ?></textarea></td>
<?php else : ?>
<td><input class="input" value="<?php $f = $field->name; echo form_prep($query->$f); ?>" name="<?php echo $field->name; ?>" size="60" /></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</table>
<input type="submit" class="submit" value="Update" />
</form>
<?php $this->load->view('footer'); ?>
|