| @@ -1,0 +1,43 @@ | ||
| 1 | +<?php | |
| 2 | +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. | |
| 3 | +defined('ABSPATH') || die('Restricted Access'); | |
| 4 | +?> | |
| 5 | +<form id="acym_form" enctype="multipart/form-data" action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" method="post" name="acyForm" | |
| 6 | + <?php echo !empty($data['menuClass']) ? 'class="'.esc_attr($data['menuClass']).'"' : ''; ?> > | |
| 7 | + <div class="acym__content acym__content__tab"> | |
| 8 | + <?php | |
| 9 | + $data['tab']->startTab(acym_translation('ACYM_IMPORT_FROM_FILE')); | |
| 10 | + include acym_getView('users', 'importfromfile', true); | |
| 11 | + $data['tab']->endTab(); | |
| 12 | + | |
| 13 | + $data['tab']->startTab(acym_translation('ACYM_IMPORT_FROM_TEXT')); | |
| 14 | + include acym_getView('users', 'importfromtext', true); | |
| 15 | + $data['tab']->endTab(); | |
| 16 | + | |
| 17 | + $data['tab']->display('import'); | |
| 18 | + ?> | |
| 19 | + </div> | |
| 20 | + <?php | |
| 21 | + $modalData = $data['entitySelect']->entitySelect( | |
| 22 | + [ | |
| 23 | + 'entity' => 'list', | |
| 24 | + 'columnsToDisplay' => $data['entitySelect']->getColumnsForList(), | |
| 25 | + 'buttonSubmit' => [ | |
| 26 | + 'text' => acym_translation('ACYM_IMPORT_SUBSCRIBERS'), | |
| 27 | + 'class' => 'acym__users__import__button', | |
| 28 | + ], | |
| 29 | + 'additionalData' => fn() => $data['importHelper']->displayAdditionalDataUsersImport(true), | |
| 30 | + ] | |
| 31 | + ); | |
| 32 | + | |
| 33 | + acym_modal( | |
| 34 | + acym_translation('ACYM_IMPORT_SUBSCRIBERS'), | |
| 35 | + $modalData, | |
| 36 | + 'acym__user__import__add-subscription__modal', | |
| 37 | + [], | |
| 38 | + ['style' => 'display: none'] | |
| 39 | + ); | |
| 40 | + ?> | |
| 41 | + <input type="hidden" name="import_from" /> | |
| 42 | + <?php acym_formOptions(true, "doImport"); ?> | |
| 43 | +</form> | |