/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
- <h1>Import users</h1>
- <?php if ($errors = validation_errors()): ?>
- <div class="error">
- <?php echo $errors; ?>
- </div>
- <?php endif; ?>
- <?php if (isset($message)): ?>
- <div class="message">
- <?php echo $message; ?>
- </div>
- <?php endif; ?>
- <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>
- <form method="post" action="<?php echo $this->uri->uri_string();?>" enctype="multipart/form-data" class="default">
- <label for="csv">CSV File:</label>
- <div class="uploadfile">
- <?php echo @form_upload('csv', '', 'size="16" id="csv"'); ?>
- </div>
- <br class="clear" />
- <input type="hidden" name="test" value="" />
- <input type="submit" value="Upload File" class="button nolabel" id="submit" />
-
- </form>