Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- system/application/views/report/add.php <div id="addreport">
- <?php echo form_open_multipart('report/create'); ?>
- <table border="0" cellpadding="3" cellspacing="1">
- <?php foreach($fields as $field) : ?>
- <?php if ($field->primary_key == 1) continue; ?>
- <tr>
- <?php if($field->name != 'author') :?>
- <td><?php echo $field->name; echo ' '.$field->default; ?></td>
- <?php endif;?>
- <?php if ($field->type == 'blob'): ?>
- <td><textarea rows='5' cols='17' class="textarea" name="<?php echo $field->name;?>" ></textarea></td>
- <?php elseif ($field->type == 'int'): ?>
- <td><?php for ($i = 1; $i <= 10; $i++) : ?>
- <input type="radio" name="<?php echo $field->name;?>" value="<?php echo $i?>"><?php echo $i?>
- <?php endfor;?>
- </td>
- <?php elseif ($field->name != 'author') :?>
- <td><input id="input" name="<?php echo $field->name; ?>" value="<?php echo form_prep($field->default); ?>" /></td>
- <?php endif ; ?>
- </tr>
- <?php endforeach ; ?>
- </table>
- <input type="submit" id="submit" value="Create" />
- </form>
- </div>
Add Comment
Please, Sign In to add comment