admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 1 | <?php $this->load->view('header'); ?> |
| 2 | |
| 3 | |
| 4 | <p><?php echo anchor(array($base_uri, 'view'), '< '.$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 | |
Derek Jones | a3ffbbb | 2008-05-11 18:18:29 +0000 | [diff] [blame^] | 31 | <?php $this->load->view('footer'); |
| 32 | /* End of file edit.php */ |
| 33 | /* Location: ./system/scaffolding/views/edit.php */ |