Derek Jones | 85e65f6 | 2008-11-11 23:14:42 +0000 | [diff] [blame] | 1 | <?php $this->load->view('header'); ?>
|
| 2 |
|
| 3 | <p><?php echo anchor(array($base_uri, 'view'), '< '.$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 */
|