diff options
author | admin <devnull@localhost> | 2006-08-25 19:25:49 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-08-25 19:25:49 +0200 |
commit | b0dd10f8171945e0c1f3527dd1e9d18b043e01a7 (patch) | |
tree | c3583ba09e72217683c4304f4690df6ce39ba731 /system/scaffolding/views/edit.php |
Initial Import
Diffstat (limited to 'system/scaffolding/views/edit.php')
-rw-r--r-- | system/scaffolding/views/edit.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/system/scaffolding/views/edit.php b/system/scaffolding/views/edit.php new file mode 100644 index 000000000..a7d65c619 --- /dev/null +++ b/system/scaffolding/views/edit.php @@ -0,0 +1,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'); ?>
\ No newline at end of file |