edit.php
Go to the documentation of this file.00001 <?php $this->load->view('header'); ?>
00002
00003
00004 <p><?php echo anchor(array($base_uri, 'view'), '< '.$scaff_view_all);?></p>
00005
00006
00007 <?php echo form_open($action); ?>
00008
00009 <table border="0" cellpadding="3" cellspacing="1">
00010 <?php foreach($fields as $field): ?>
00011
00012 <?php if ($field->primary_key == 1) continue; ?>
00013
00014 <tr>
00015 <td><?php echo $field->name; ?></td>
00016
00017 <?php if ($field->type == 'blob'): ?>
00018 <td><textarea class="textarea" name="<?php echo $field->name;?>" cols="60" rows="10" ><?php $f = $field->name; echo form_prep($query->$f); ?></textarea></td>
00019 <?php else : ?>
00020 <td><input class="input" value="<?php $f = $field->name; echo form_prep($query->$f); ?>" name="<?php echo $field->name; ?>" size="60" /></td>
00021 <?php endif; ?>
00022
00023 </tr>
00024 <?php endforeach; ?>
00025 </table>
00026
00027 <input type="submit" class="submit" value="Update" />
00028
00029 </form>
00030
00031 <?php $this->load->view('footer');
00032
00033