PageRenderTime 31ms CodeModel.GetById 28ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 3<?php if ($errors = validation_errors()): ?>
 4	<div class="error">
 5		<?php echo $errors; ?>
 6	</div>
 7<?php endif; ?>
 8
 9<?php if (isset($message)): ?>
10	<div class="message">
11		<?php echo $message; ?>
12	</div>
13<?php endif; ?>
14
15<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>
16
17<form method="post" action="<?php echo $this->uri->uri_string();?>" enctype="multipart/form-data" class="default">
18		<label for="csv">CSV File:</label>
19		<div class="uploadfile">
20			<?php echo @form_upload('csv', '', 'size="16" id="csv"'); ?>
21		</div>
22		<br class="clear" />
23
24		<input type="hidden" name="test" value="" />
25
26		<input type="submit" value="Upload File" class="button nolabel" id="submit" />
27		
28</form>