Guest User

Untitled

a guest
May 20th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. system/application/views/report/add.php <div id="addreport">
  2. <?php echo form_open_multipart('report/create'); ?>
  3.  
  4. <table border="0" cellpadding="3" cellspacing="1">
  5. <?php foreach($fields as $field) : ?>
  6. <?php if ($field->primary_key == 1) continue; ?>
  7. <tr>
  8.  
  9. <?php if($field->name != 'author') :?>
  10. <td><?php echo $field->name; echo ' '.$field->default; ?></td>
  11. <?php endif;?>
  12. <?php if ($field->type == 'blob'): ?>
  13. <td><textarea rows='5' cols='17' class="textarea" name="<?php echo $field->name;?>" ></textarea></td>
  14. <?php elseif ($field->type == 'int'): ?>
  15. <td><?php for ($i = 1; $i <= 10; $i++) : ?>
  16. <input type="radio" name="<?php echo $field->name;?>" value="<?php echo $i?>"><?php echo $i?>
  17. <?php endfor;?>
  18.  
  19. </td>
  20.  
  21. <?php elseif ($field->name != 'author') :?>
  22. <td><input id="input" name="<?php echo $field->name; ?>" value="<?php echo form_prep($field->default); ?>" /></td>
  23. <?php endif ; ?>
  24. </tr>
  25. <?php endforeach ; ?>
  26. </table>
  27.  
  28. <input type="submit" id="submit" value="Create" />
  29.  
  30. </form>
  31. </div>
Add Comment
Please, Sign In to add comment