Exemplo n.º 1
0
    function layout($mailingEdit, $lists, $show)
    {
        if (ACA_CMSTYPE) {
            $editor =& JFactory::getEditor();
        }
        if (!empty($_SESSION['skip_subscribers' . $mailingEdit->id])) {
            echo 'If you click on the Send button, the process will skip the first ' . $_SESSION['skip_subscribers' . $mailingEdit->id] . ' subscribers';
        }
        ?>
	<fieldset class="acajoomcss">
	<legend><?php 
        echo @constant($GLOBALS[ACA . 'listname' . $mailingEdit->list_type]) . ' ' . _ACA_CONTENT;
        ?>
</legend>
	<table class="acajoomtable" cellspacing="1" width="99%">
		<tbody>
		<tr>
			<td valign="top">
		<?php 
        mailingsHTML::subject($mailingEdit, $lists, $show);
        if ($show['htmlcontent']) {
            if ($mailingEdit->html != 0) {
                if (ACA_CMSTYPE) {
                    echo $editor->display('content', $mailingEdit->htmlcontent, '100%', '400', '80', '30');
                } else {
                    editorArea('editor2', $mailingEdit->htmlcontent, 'content', '100%;', '400', '80', '30');
                }
            } else {
                echo '<textarea name="content" rows="20" cols="75">' . $mailingEdit->htmlcontent . '</textarea>';
            }
        }
        ?>
			</td>
			<td valign="top" width="450px">
			<?php 
        if (ACA_CMSTYPE) {
            $config_tabs = new mosTabs15(0);
        } else {
            $config_tabs = new mosTabs(0);
        }
        //endif
        $config_tabs->startPane('acaMailingOptions');
        $config_tabs->startTab(_ACA_LIST_T_GENERAL, 'acaMailingOptions.general');
        mailingsHTML::description($mailingEdit, $lists, $show);
        $config_tabs->endTab();
        $config_tabs->startTab(_ACA_LIST_OPT_TAG, 'acaMailingOptions.options');
        echo '<div style"width:280px;"><span class="editlinktip">';
        $tip = _ACA_INFO_MAILING_CONTENT;
        $title = _ACA_CONTENT;
        echo compa::toolTip($tip, '', 280, 'tooltip.png', $title, '', 0);
        echo '</span><br /><strong>' . _ACA_USABLE_TAGS . '</strong><br />';
        echo _ACA_NAMEREP . '<br />' . _ACA_FIRST_NAME_REP;
        if ($mailingEdit->list_type == 7) {
            echo '<br />' . _ACA_TAGS_AUTONEWS;
        }
        if (class_exists('auto')) {
            echo '<br />' . _ACA_TAGS_ISSUE_NB . '<br />';
            echo '<br />' . _ACA_TAGS_DATE . '<br />';
        }
        if (class_exists('aca_tags')) {
            echo '<br />' . _ACA_TAGS_CB . '<br />';
        }
        echo '</div>';
        $config_tabs->endTab();
        if (!ACA_CMSTYPE) {
            $config_tabs->startTab(_ACA_LIST_OPT_IMG, 'acaMailingOptions.joom15');
            mailingsHTML::images($lists);
            $config_tabs->endTab();
        }
        if ($show['sitecontent']) {
            $config_tabs->startTab(_ACA_LIST_OPT_CTT, 'acaMailingOptions.content');
            echo _ACA_CONTENT_ITEM_SELECT_T;
            //echo _ACA_INSERT_CONTENT.'<br />';
            if (ACA_CMSTYPE) {
                global $mainframe;
                JPluginHelper::importPlugin('acajoom');
                $bot_results = $mainframe->triggerEvent('acajoombot_editabs');
            } else {
                global $_MAMBOTS;
                $_MAMBOTS->loadBotGroup('acajoom');
                $bot_results = $_MAMBOTS->trigger('acajoombot_editabs');
            }
            if (!empty($bot_results)) {
                foreach ($bot_results as $bot_result) {
                    echo $bot_result[1];
                }
            }
            $config_tabs->endTab();
        }
        if ($GLOBALS[ACA . 'show_jcalpro'] and class_exists('pro')) {
            $config_tabs->startTab(_ACA_SHOW_JCALPRO, 'acaMailingOptions.jcalpro');
            mailingsHTML::jcalpro();
            $config_tabs->endTab();
        }
        if ($show['attachement']) {
            $config_tabs->startTab(_ACA_ATTACHMENTS, 'acaMailingOptions.attachement');
            mailingsHTML::attachement($mailingEdit, $lists, $show);
            $config_tabs->endTab();
        }
        $config_tabs->endPane();
        ?>
			</td>
		</tr>


	<?php 
        if ($show['textcontent'] and $mailingEdit->html) {
            ?>
		<tr>
			<td>
				<textarea name="alt_content" rows="20" cols="70" style="width: 100%; height: 400px;"><?php 
            echo $mailingEdit->textonly;
            ?>
</textarea>
			</td>
			<td class="key" style="vertical-align: top;">
				<span class="editlinktip">
				<?php 
            $tip = _ACA_INFO_MAILING_NOHTML;
            $title = _ACA_NONHTML;
            echo compa::toolTip($tip, '', 280, 'tooltip.png', $title, '', 0);
            ?>
				</span><br />
				<strong><?php 
            echo _ACA_USABLE_TAGS;
            ?>
</strong><br />
				<?php 
            echo _ACA_NAMEREP . '<br />' . _ACA_FIRST_NAME_REP;
            if ($mailingEdit->list_type == 7) {
                echo '<br />' . _ACA_TAGS_AUTONEWS;
            }
            ?>

			</td>
		</tr>
	<?php 
        }
        ?>
		</tbody>
	</table>
	</fieldset>
	<?php 
    }