| 1 |
<div id="acym__users__import__from_file" class="grid-x padding-vertical-2 padding-horizontal-2"> |
| 2 |
<div class="cell grid-x text-center"> |
| 3 |
<h6 class="cell"> |
| 4 |
<?php echo acym_translation('ACYM_CHOOSE_FILE_WITH_USER_DATA'); ?> |
| 5 |
</h6> |
| 6 |
<p class="acym__color__dark-gray cell text-center"><?php echo acym_translation('ACYM_IMPORT_USER_FROM_FILE_INFORMATION_MESSAGE_BELOW_CHOOSE_FILE_BUTTON'); ?></p> |
| 7 |
<div class="cell grid-x acym__users__import__from_file__choose"> |
| 8 |
<div class="cell medium-auto"></div> |
| 9 |
<?php |
| 10 |
$maxupload = acym_bytes(ini_get('upload_max_filesize')); |
| 11 |
$maxpost = acym_bytes(ini_get('post_max_size')); |
| 12 |
$maxupload = min($maxupload, $maxpost); |
| 13 |
?> |
| 14 |
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo acym_escape($maxupload); ?>" /> |
| 15 |
<input type="file" name="import_file" class="show-for-sr" id="acym__users__import__from_file__import__input" accept=".csv"> |
| 16 |
<label for="acym__users__import__from_file__import__input" class="cell acym__color__blue medium-shrink margin-top-1 acym__users__import__from_file__import__label"> |
| 17 |
<?php echo acym_translation('ACYM_CHOOSE_FILE'); ?> |
| 18 |
</label> |
| 19 |
<div class="cell medium-auto"></div> |
| 20 |
</div> |
| 21 |
<div class="acym__users__import__from_file__file cell grid-x" style="display: none;"> |
| 22 |
<div class="cell medium-auto"></div> |
| 23 |
<div class="cell medium-shrink margin-top-2"> |
| 24 |
<span class="acym__users__import__from_file__file-name acym__color__dark-gray"></span> |
| 25 |
<i title="<?php echo acym_translation('ACYM_DELETE'); ?>" class="acymicon-close acym__users__import__from_file__file__close acym__color__red"></i> |
| 26 |
</div> |
| 27 |
<div class="cell medium-auto"></div> |
| 28 |
</div> |
| 29 |
|
| 30 |
<div class="cell grid-x grid-margin-x margin-top-2"> |
| 31 |
<div class="cell hide-for-small-only medium-auto"></div> |
| 32 |
<?php echo acym_cancelButton('ACYM_CANCEL', '', 'button medium-6 large-shrink margin-bottom-0'); ?> |
| 33 |
<button class="cell button medium-shrink margin-bottom-0 acym__users__import__from_file__button-valid" disabled> |
| 34 |
<?php echo acym_translation('ACYM_IMPORT_THIS_FILE'); ?> |
| 35 |
</button> |
| 36 |
<div class="cell hide-for-small-only medium-auto"></div> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
|
| 41 |
|