PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.1
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Views/Users/tmpl/export.php +0 -160 10.10.2 → 11.1.1 View file →
@@ -1,160 +1,0 @@
1 -<form id="acym_form" action="<?php echo acym_prepareAjaxURL(acym_getVar('cmd', 'ctrl')); ?>" method="post" name="acyForm">
2 - <div class="grid-x acym__content" id="acym__users__export">
3 - <div class="cell grid-x grid-margin-x">
4 - <div class="cell acym_area medium-6 acym__content">
5 - <div class="acym__title"><?php echo acym_translation('ACYM_FIELDS_TO_EXPORT'); ?></div>
6 - <p><span id="acym__users__export__check_all_field"><?php echo acym_strtolower(acym_translation('ACYM_ALL')); ?></span> |
7 - <span id="acym__users__export__check_default_field"><?php echo acym_strtolower(acym_translation('ACYM_DEFAULT')); ?></span></p>
8 - <div class="margin-bottom-1">
9 - <?php
10 - $defaultFields = explode(',', $this->config->get('export_fields', 'name,email'));
11 - foreach ($data['fields'] as $fieldName) {
12 - if (in_array($fieldName, ['id', 'automation'])) continue;
13 -
14 - $checked = in_array($fieldName, $defaultFields) ? 'checked="checked"' : '';
15 - echo '<input '.$checked.' id="checkbox_'.$fieldName.'" class="acym__users__export__export_fields" type="checkbox" name="export_fields[]" value="'.$fieldName.'">
16 - <label for="checkbox_'.$fieldName.'">'.$fieldName.'</label><br/>';
17 - }
18 -
19 - foreach ($data['customfields'] as $field) {
20 - if ($field->type == 'file' || in_array($field->id, $data['coreFields'])) continue;
21 -
22 - $checked = in_array($field->id, $defaultFields) ? 'checked="checked"' : '';
23 - $fieldName = $field->name;
24 -
25 - echo '<input '.$checked.' id="checkbox_'.$fieldName.'" class="acym__users__export__export_fields" type="checkbox" name="export_fields[]" value="'.$field->id.'">
26 - <label for="checkbox_'.$fieldName.'">'.acym_translation($fieldName).'</label><br/>';
27 - }
28 -
29 - $checked = in_array('subscribe_date', $defaultFields) ? 'checked="checked"' : '';
30 - echo '<input '.$checked.' id="checkbox_subscribe_date" class="acym__users__export__export_fields" type="checkbox" name="export_fields[]" value="subscribe_date">
31 - <label for="checkbox_subscribe_date">'.acym_translation('ACYM_SUBSCRIPTION_DATE').'</label><br/>';
32 -
33 - $checked = in_array('unsubscribe_date', $defaultFields) ? 'checked="checked"' : '';
34 - echo '<input '.$checked.' id="checkbox_unsubscribe_date" class="acym__users__export__export_fields" type="checkbox" name="export_fields[]" value="unsubscribe_date">
35 - <label for="checkbox_unsubscribe_date">'.acym_translation('ACYM_UNSUBSCRIPTION_DATE').'</label><br/>';
36 - ?>
37 - </div>
38 - <div class="grid-x margin-bottom-1" id="userField_separator">
39 - <label class="cell"><?php echo acym_translation('ACYM_SEPARATOR'); ?></label>
40 - <?php
41 - echo acym_radio(
42 - ['semicol' => acym_translation('ACYM_SEMICOLON'), 'comma' => acym_translation('ACYM_COMMA')],
43 - "export_separator",
44 - $this->config->get('export_separator', 'comma')
45 - );
46 - ?>
47 - <div class="cell medium-auto"></div>
48 - </div>
49 - <div class="grid-x margin-bottom-1">
50 - <label class="cell medium-6 xxlarge-3"><?php echo acym_translation('ACYM_ENCODING'); ?>
51 - <?php
52 - echo $data['encodingHelper']->charsetField(
53 - 'export_charset',
54 - $this->config->get('export_charset', 'UTF-8'),
55 - ['class' => 'acym__select']
56 - );
57 - ?>
58 - </label>
59 - <div class="cell medium-auto"></div>
60 - </div>
61 - <div class="grid-x" id="userField_excel">
62 - <label class="cell"><?php echo acym_translation('ACYM_EXCEL_SECURITY').acym_info(['textShownInTooltip' => 'ACYM_EXCEL_SECURITY_DESC']); ?></label>
63 - <?php
64 - echo acym_boolean(
65 - 'export_excelsecurity',
66 - (bool)$this->config->get('export_excelsecurity', 0)
67 - );
68 - ?>
69 - <div class="cell medium-auto"></div>
70 - </div>
71 - </div>
72 - <div class="cell acym_area medium-6 acym__content">
73 - <div class="acym__title"><?php echo acym_translation('ACYM_SUBSCRIBERS_TO_EXPORT'); ?></div>
74 - <p class="cell margin-bottom-1"><?php echo acym_translation('ACYM_WARNING_FILTERS_APPLIED_EXPORT'); ?></p>
75 - <?php if (empty($data['checkedElements']) || $data['isPreselectedList']) { ?>
76 - <fieldset id="acym__users__export__users-to-export">
77 - <?php
78 - echo acym_radio(
79 - [
80 - 'all' => acym_translation('ACYM_ALL_SUBSCRIBERS'),
81 - 'list' => acym_translation('ACYM_SUBSCRIBERS_FROM_LISTS'),
82 - ],
83 - 'export_users-to-export',
84 - $data['isPreselectedList'] ? 'list' : 'all'
85 - );
86 - ?>
87 - </fieldset>
88 - <div id="acym__users__export__select_lists" class="margin-bottom-1" style="display: <?php echo $data['isPreselectedList'] ? 'block' : 'none'; ?>">
89 - <?php echo $data['entitySelect']; ?>
90 - <div class="margin-top-1">
91 - <?php
92 - echo acym_radio(
93 - [
94 - 'sub' => acym_translation('ACYM_SUBSCRIBED_USER'),
95 - 'unsub' => acym_translation('ACYM_UNSUBSCRIBED_USER'),
96 - 'all' => acym_translation('ACYM_EXPORT_BOTH'),
97 - 'none' => acym_translation('ACYM_NO_SUBSCRIPTION_STATUS'),
98 - ],
99 - 'export_list',
100 - $data['exportListStatus']
101 - );
102 - ?>
103 - </div>
104 - </div>
105 - <div id="acym__users__export__segments" class="padding-top-1">
106 - <?php echo acym_translation('ACYM_FILTER_EXPORTED_SUBSCRIBERS_SEGMENT'); ?>
107 - </div>
108 - <div id="acym__users__export__select_segments" class="margin-bottom-1">
109 - <div class="margin-bottom-1 margin-top-1">
110 - <?php
111 - echo acym_select(
112 - $data['segments'],
113 - 'export_segment',
114 - $data['preselectedSegment'],
115 - [
116 - 'class' => 'acym__select',
117 - 'acym-data-infinite' => '',
118 - ]
119 - );
120 - ?>
121 - </div>
122 - </div>
123 - <?php } else { ?>
124 - <input type="hidden" name="selected_users" value="<?php echo implode(',', $data['checkedElements']); ?>" />
125 - <div class="grid-x">
126 - <?php
127 - if (!$data['isPreselectedList']) {
128 - foreach ($data['checkedElements'] as $id) {
129 - $user = $data['userClass']->getOneById($id);
130 - echo '<div class="cell grid-x acym__listing__row">';
131 - echo ' <div class="cell small-6">'.$user->name.'</div>
132 - <div class="cell small-6">'.$user->email.'</div>';
133 - echo '</div>';
134 - }
135 - }
136 - ?>
137 - </div>
138 - <?php } ?>
139 - </div>
140 - </div>
141 - <div class="cell grid-x grid-margin-x margin-top-1">
142 - <div class="cell hide-for-small-only medium-auto"></div>
143 - <?php
144 - echo acym_cancelButton();
145 - $exportButton = '<button type="button" data-task="doexport" class="cell button acy_button_submit" id="acym__export__button">';
146 - $exportButton .= acym_translation('ACYM_EXPORT_SUBSCRIBERS');
147 - $exportButton .= '</button>';
148 - echo acym_tooltip(
149 - [
150 - 'hoveredText' => $exportButton,
151 - 'textShownInTooltip' => acym_translation('ACYM_DATA_WILL_EXPORT_CSV_FORMAT'),
152 - ]
153 - );
154 - ?>
155 - <div class="cell hide-for-small-only medium-auto"></div>
156 - </div>
157 - </div>
158 -
159 - <?php acym_formOptions(); ?>
160 -</form>