/halogy/application/modules/users/views/import.php

https://bitbucket.org/haloweb/halogy-1.0/ · PHP · 28 lines · 21 code · 7 blank · 0 comment · 2 complexity · e13ded194bfa0775296e5b097a5cd1cc MD5 · raw file

  1. <h1>Import users</h1>
  2. <?php if ($errors = validation_errors()): ?>
  3. <div class="error">
  4. <?php echo $errors; ?>
  5. </div>
  6. <?php endif; ?>
  7. <?php if (isset($message)): ?>
  8. <div class="message">
  9. <?php echo $message; ?>
  10. </div>
  11. <?php endif; ?>
  12. <p>To import user in to the database please make sure you create a CSV file with the first column as Email, the second as First name and the third as Second name.</p>
  13. <form method="post" action="<?php echo $this->uri->uri_string();?>" enctype="multipart/form-data" class="default">
  14. <label for="csv">CSV File:</label>
  15. <div class="uploadfile">
  16. <?php echo @form_upload('csv', '', 'size="16" id="csv"'); ?>
  17. </div>
  18. <br class="clear" />
  19. <input type="hidden" name="test" value="" />
  20. <input type="submit" value="Upload File" class="button nolabel" id="submit" />
  21. </form>