/halogy/application/modules/files/views/admin/edit.php

https://bitbucket.org/haloweb/halogy-1.0/ · PHP · 32 lines · 25 code · 7 blank · 0 comment · 2 complexity · 07e1319d6eb8255d6243c2b05ff47246 MD5 · raw file

  1. <?php if ($errors = validation_errors()): ?>
  2. <div class="error clear">
  3. <?php echo $errors; ?>
  4. </div>
  5. <?php endif; ?>
  6. <form method="post" action="<?php echo $this->uri->uri_string(); ?>" enctype="multipart/form-data" class="default" style="width: 450px; float: left;">
  7. <label for="fileRef">Reference:</label>
  8. <?php echo @form_input('fileRef', $data['fileRef'], 'class="formelement" id="fileRef"'); ?>
  9. <br class="clear" />
  10. <label for="folderID">Folder: <small>[<a href="/admin/files/folders" onclick="return confirm('You will lose any unsaved changes.\n\nContinue anyway?')">update</a>]</small></label>
  11. <?php
  12. $options[0] = 'No Folder';
  13. if ($folders):
  14. foreach ($folders as $folderID):
  15. $options[$folderID['folderID']] = $folderID['folderName'];
  16. endforeach;
  17. endif;
  18. echo @form_dropdown('folderID',$options,set_value('folderID', $data['folderID']),'id="folderID" class="formelement"');
  19. ?>
  20. <br class="clear" /><br />
  21. <input type="submit" value="Save Changes" class="button nolabel" id="submit" />
  22. <a href="<?php echo $this->session->userdata('lastPage'); ?>" class="button cancel grey">Cancel</a>
  23. <br class="clear" />
  24. </form>
  25. <br class="clear" />