| @@ -1,98 +1,0 @@ | ||
| 1 | -<form id="acym_form" action="<?php echo acym_completeLink(acym_getVar('cmd', 'ctrl')); ?>" method="post" name="acyForm"> | |
| 2 | - <input type="hidden" name="acym_import_filename" id="filename" value="<?php echo acym_getVar('cmd', 'acym_import_filename'); ?>" /> | |
| 3 | - <input type="hidden" name="import_columns" id="import_columns" value="" /> | |
| 4 | - <input type="hidden" name="new_list" id="acym__import__new-list" value="" /> | |
| 5 | - <div id="acym__users__import__generic" class="acym__content"> | |
| 6 | - <div class="grid-x grid-margin-y acym_area"> | |
| 7 | - <div class=""> | |
| 8 | - <div class="acym__title"><?php echo acym_translation('ACYM_FIELD_MATCHING'); ?></div> | |
| 9 | - <p class="acym__users__import__generic__instructions"><?php echo acym_translation('ACYM_ASSIGN_COLUMNS'); ?></p> | |
| 10 | - </div> | |
| 11 | - | |
| 12 | - <div class="cell grid-x" id="acym__users__import__generic__matchdata"> | |
| 13 | - <?php include acym_getView('users', 'ajaxencoding'); ?> | |
| 14 | - </div> | |
| 15 | - </div> | |
| 16 | - | |
| 17 | - <div class="grid-x acym_area"> | |
| 18 | - <div class="acym__title"><?php echo acym_translation('ACYM_PARAMETERS'); ?></div> | |
| 19 | - <div class="cell grid-x grid-margin-x margin-y"> | |
| 20 | - <div class="cell large-6 grid-x"> | |
| 21 | - <label for="acyencoding" class="cell medium-6"><?php echo acym_translation('ACYM_FILE_CHARSET'); ?></label> | |
| 22 | - <div class="cell medium-6"> | |
| 23 | - <?php | |
| 24 | - $encodingHelper = new AcyMailing\Helpers\EncodingHelper(); | |
| 25 | - $default = $encodingHelper->detectEncoding($this->content); | |
| 26 | - $urlEncodedFilename = urlencode($filename); | |
| 27 | - $attribs = [ | |
| 28 | - 'data-filename' => $urlEncodedFilename, | |
| 29 | - 'class' => 'acym__select', | |
| 30 | - ]; | |
| 31 | - echo $encodingHelper->charsetField('acyencoding', $default, $attribs); | |
| 32 | - ?> | |
| 33 | - </div> | |
| 34 | - </div> | |
| 35 | - <?php if ($this->config->get('require_confirmation')) { ?> | |
| 36 | - <div class="cell large-6 grid-x"> | |
| 37 | - <?php | |
| 38 | - echo acym_switch( | |
| 39 | - 'import_confirmed_generic', | |
| 40 | - $this->config->get('import_confirmed', 1), | |
| 41 | - acym_translation('ACYM_IMPORT_USERS_AS_CONFIRMED') | |
| 42 | - ); | |
| 43 | - ?> | |
| 44 | - </div> | |
| 45 | - <?php } ?> | |
| 46 | - <div class="cell large-6 grid-x"> | |
| 47 | - <?php | |
| 48 | - echo acym_switch( | |
| 49 | - 'import_generate_generic', | |
| 50 | - $this->config->get('import_generate', 1), | |
| 51 | - acym_translation('ACYM_GENERATE_NAME').acym_info('ACYM_GENERATE_NAME_DESC') | |
| 52 | - ); | |
| 53 | - ?> | |
| 54 | - </div> | |
| 55 | - <div class="cell large-6 grid-x"> | |
| 56 | - <?php | |
| 57 | - echo acym_switch( | |
| 58 | - 'import_overwrite_generic', | |
| 59 | - $this->config->get('import_overwrite', 1), | |
| 60 | - acym_translation('ACYM_OVERWRITE_EXISTING') | |
| 61 | - ); | |
| 62 | - ?> | |
| 63 | - </div> | |
| 64 | - </div> | |
| 65 | - </div> | |
| 66 | - | |
| 67 | - <div class="cell grid-x grid-margin-x margin-top-1"> | |
| 68 | - <div class="cell hide-for-small-only medium-auto"></div> | |
| 69 | - <?php | |
| 70 | - echo acym_cancelButton( | |
| 71 | - 'ACYM_CANCEL', | |
| 72 | - '', | |
| 73 | - 'button medium-6 large-shrink margin-bottom-0' | |
| 74 | - ); | |
| 75 | - | |
| 76 | - $entityHelper = new AcyMailing\Helpers\EntitySelectHelper(); | |
| 77 | - $importHelper = new AcyMailing\Helpers\ImportHelper(); | |
| 78 | - $modalData = $entityHelper->entitySelect( | |
| 79 | - 'list', | |
| 80 | - ['join' => ''], | |
| 81 | - $entityHelper->getColumnsForList(), | |
| 82 | - [], | |
| 83 | - true, | |
| 84 | - $importHelper->additionalDataUsersImport(true) | |
| 85 | - ); | |
| 86 | - echo acym_modal( | |
| 87 | - acym_translation('ACYM_IMPORT_SUBSCRIBERS'), | |
| 88 | - $modalData, | |
| 89 | - 'acym__user__import__add-subscription__modal', | |
| 90 | - '', | |
| 91 | - 'class="button margin-bottom-0"' | |
| 92 | - ); | |
| 93 | - ?> | |
| 94 | - <div class="cell hide-for-small-only medium-auto"></div> | |
| 95 | - </div> | |
| 96 | - </div> | |
| 97 | - <?php acym_formOptions(true, 'finalizeImport'); ?> | |
| 98 | -</form> | |