# acymailing/11.0.3/back/Views/Users/tmpl/importfromdatabase.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 11.0.3. 58 lines.

- Page: https://pluginprobe.com/plugins/acymailing/11.0.3/code/back/Views/Users/tmpl/importfromdatabase.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.0.3/raw/back/Views/Users/tmpl/importfromdatabase.php
- Modified: 2026-08-03T10:18:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/11.0.3/code/back/Views/Users/tmpl/importfromdatabase.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
defined('ABSPATH') || die('Restricted Access');
?>
<div id="acym__users__import__from_database" class="grid-x padding-vertical-2 padding-horizontal-2">
	<div class="cell large-3"></div>
	<div class="cell large-6 grid-x margin-y">
		<label class="cell medium-4" for="acym__users__import__from_database__field--tablename"><?php echo esc_html(acym_translation('ACYM_TABLE_NAME')); ?></label>
        <?php
        echo '<div class="cell medium-8">';
        array_unshift($data['tables'], acym_translation('ACYM_SELECT_TABLE'));
        acym_select(
            $data['tables'],
            'tablename',
            null,
            [
                'class' => 'acym__select',
            ],
            'value',
            'name',
            'acym__users__import__from_database__field--tablename',
            false,
            true
        );
        echo '</div>';

        $userFields = acym_getColumns('user');
        if (!empty($userFields)) {
            foreach ($userFields as $oneUserField) {
                if (!in_array($oneUserField, ['id', 'key', 'automation'])) {
                    echo '<label class="cell medium-4" for="acym__users__import__from_database__field--'.esc_attr($oneUserField).'">'.esc_html($oneUserField).'</label>';
                    echo '<div class="cell medium-8">';
                    echo '<select acym-data-infinite class="acym__users__import__from_database__fields acym__select" name="fields['.esc_attr(
                            $oneUserField
                        ).']" id="acym__users__import__from_database__field--'.esc_attr($oneUserField).'"></select>';
                    echo '</div>';
                }
            }
        }
        if ($this->config->get('require_confirmation')) { ?>
			<div class="cell grid-x">
                <?php acym_switch(['name' => 'import_confirmed_database', 'value' => 1, 'label' => acym_translation('ACYM_IMPORT_USERS_AS_CONFIRMED')]); ?>
			</div>
        <?php } ?>

		<div class="cell grid-x grid-margin-x">
			<div class="cell hide-for-small-only medium-auto"></div>
            <?php acym_cancelButton('ACYM_CANCEL', '', 'button medium-6 large-shrink margin-bottom-0'); ?>
			<button type="button" class="button cell medium-shrink margin-bottom-0" data-open="acym__user__import__add-subscription__modal" data-from="database">
                <?php echo esc_html(acym_translation('ACYM_IMPORT')); ?>
			</button>
			<button id="submit_import_database" class="acym__import__submit is-hidden" data-from="database"></button>
			<div class="cell hide-for-small-only medium-auto"></div>
		</div>
	</div>
	<div class="cell large-3"></div>
</div>

```
