| @@ -1,41 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | -if (!empty($data['mailInformation'])) $data['mail'] = $data['mailInformation']; | |
| 3 | -?> | |
| 4 | -<div class="cell grid-x" id="acym__campaigns__edit_email__attachments"> | |
| 5 | - <label class="cell"><?php echo acym_translation('ACYM_ATTACHMENTS'); ?></label> | |
| 6 | - <?php if (!empty($data['mail']->attachments)) { ?> | |
| 7 | - <?php | |
| 8 | - foreach ($data['mail']->attachments as $i => $oneAttach) { | |
| 9 | - $onlyFilename = explode("/", $oneAttach->filename); | |
| 10 | - | |
| 11 | - $onlyFilename = end($onlyFilename); | |
| 12 | - | |
| 13 | - echo '<div class="acym__listing__row cell grid-x" id="acym__campaigns__attach__del'.$i.'">'; | |
| 14 | - | |
| 15 | - echo acym_tooltip( | |
| 16 | - [ | |
| 17 | - 'hoveredText' => '<span class="cell acym__campaigns__attachments__already">'.$onlyFilename.' ('.(round($oneAttach->size / 1000, 1)).' Ko)</span>', | |
| 18 | - 'textShownInTooltip' => $oneAttach->filename, | |
| 19 | - 'classContainer' => 'medium-11 cell', | |
| 20 | - ] | |
| 21 | - ); | |
| 22 | - $mailId = !empty($data['mail']->mail_id) ? $data['mail']->mail_id : $data['mail']->id; | |
| 23 | - echo '<div class="cell medium-1 text-center"><a data-id="'.$i.'" data-mail="'.$mailId.'" class="acym__campaigns__attach__delete"><i class="acymicon-delete acym__color__red"></i></a></div>'; | |
| 24 | - echo '</div>'; | |
| 25 | - } | |
| 26 | - } | |
| 27 | - | |
| 28 | - $uploadfileType = $data['uploadFileType']; | |
| 29 | - for ($i = 0 ; $i < 10 ; $i++) { | |
| 30 | - $result = '<div '.($i >= 1 ? 'style="display:none"' : '').' class="cell grid-x grid-margin-x acym__campaigns__attach__elements" id="acym__campaigns__attach__'.$i.'">'; | |
| 31 | - $result .= $uploadfileType->display('attachments', $i); | |
| 32 | - $result .= '<div class="cell medium-auto"></div><div class="cell medium-1 text-center "><i style="display: none;" id="attachments'.$i.'suppr" data-id="'.$i.'" class="acymicon-delete acym__color__red acym__campaigns__attach__remove"></i></div>'; | |
| 33 | - $result .= '</div>'; | |
| 34 | - echo $result; | |
| 35 | - } | |
| 36 | - ?> | |
| 37 | -</div> | |
| 38 | -<div class="cell"> | |
| 39 | - <a href="javascript:void(0);" id="acym__campaigns__attach__add"><?php echo acym_translation('ACYM_ADD_ATTACHMENT'); ?></a> | |
| 40 | - <?php echo acym_translationSprintf('ACYM_MAX_UPLOAD', $data['maxupload']); ?> | |
| 41 | -</div> | |