示例#1
0
    public static function layoutBE($mailingEdit, $lists, $show, $isEdit = false)
    {
        $tagjs = "function insertTag(tag){\n\t\ttry{\n\t\t\tstatus=jInsertEditorText(tag,'jnewsContent');\n\t\t\treturn true;\n\t\t} catch(err){\n\t\t\talert('Your editor does not enable jNews to automatically insert the tag, please copy/paste it manually in your Newsletter'); return false;\n\t\t}\n\t\t}";
        $editor = JFactory::getEditor();
        $script = "function changeTemplate(newbody,newaltbody,templateid){\n\t\t\tif(newbody.length>2){" . jnews::EditorSetContent($editor, 'jnewsContent', 'newbody') . ";}\n\t\t\tvar jnewstextarea =\$('altbody'); if(newaltbody.length>2){jnewstextarea.setHTML(newaltbody);}\n\t\t\tvar jnewstemplateid =\$('template_id'); jnewstemplateid.value = templateid;\n\n\t\t\t}\n\t\t\t";
        $doc = JFactory::getDocument();
        $doc->addScriptDeclaration($script . $tagjs);
        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="jnewscss">-->
	<!--<legend><?php 
        echo @constant($GLOBALS[JNEWS . 'listname' . $mailingEdit->mailing_type]) . ' ' . _JNEWS_CONTENT;
        ?>
</legend>-->
	<table class="jnewstable" cellspacing="1" width="100%" border="0">
		<tbody>
		<tr>
			<td valign="top">

		<?php 
        $mailingType = JRequest::getVar('listype');
        $listId = JRequest::getVar('listid');
        $list_template_id = jNews_Lists::getListTemplate($listId);
        if ($mailingEdit->mailing_type == '7' || $mailingType == '7' and class_exists('jNews_Autonews')) {
            jNews_MailingsHTML::smartNewsHead($mailingEdit, $lists, $show);
        } else {
            jNews_MailingsHTML::subject($mailingEdit, $lists, $show);
        }
        if (empty($mailingEdit->id)) {
            if (!empty($mailingEdit->template_id)) {
                $template = jNews_Templates::loadOneTemplate('*', $mailingEdit->template_id);
            } else {
                if (!empty($list_template_id)) {
                    $template = jNews_Templates::loadOneTemplate('*', $list_template_id, 'template_id', 'DESC', false);
                } else {
                    $template = jNews_Templates::loadOneTemplate('*', '', 'template_id', 'DESC', true);
                }
                $mailingEdit->template_id = $template->template_id;
            }
            $mailingEdit->htmlcontent = isset($template->body) ? $template->body : '';
            $mailingEdit->textonly = isset($template->altbody) ? $template->altbody : '';
        }
        if ($show['htmlcontent']) {
            echo '<fieldset class="jnewscss" id="htmlfieldset">';
            echo '<legend>';
            echo _JNEWS_HTML_VERSION;
            echo '</legend>';
            echo $editor->display('jnewsContent', $mailingEdit->htmlcontent, '100%', '600', '80', '30');
            echo '</fieldset>';
        }
        ?>
			</td>
			<td valign="top" width="330px" rowspan="2">
			<?php 
        $config_tabs = new MosTabsjNews(0);
        $config_tabs->startPane('acaMailingOptions');
        $config_tabs->startTab(_JNEWS_LIST_T_LIST, 'acaMailingOptions.general');
        jNews_MailingsHTML::lists($mailingEdit, $lists, $show, 0, 0, false, $isEdit);
        //added another parameter for the list type ---mary
        $config_tabs->endTab();
        $config_tabs->startTab(_JNEWS_LIST_T_SENDER, 'acaMailingOptions.general');
        jNews_MailingsHTML::senderinfo($mailingEdit, $lists, $show);
        $config_tabs->endTab();
        if ($GLOBALS[JNEWS . 'show_jcalpro'] and class_exists('jNews_Pro')) {
            $config_tabs->startTab(_JNEWS_SHOW_JCALPRO, 'acaMailingOptions.jcalpro');
            jNews_MailingsHTML::jcalpro();
            $config_tabs->endTab();
        }
        if ($show['attachement']) {
            $config_tabs->startTab(_JNEWS_ATTACHMENTS, 'acaMailingOptions.attachement');
            jNews_MailingsHTML::attachement($mailingEdit, null, null);
            $config_tabs->endTab();
        }
        $config_tabs->endPane();
        ?>
			</td>
		</tr>


	<?php 
        if ($show['textcontent']) {
            ?>
		<tr>
			<td>
				<fieldset class="jnewscss">
				<legend><?php 
            echo _JNEWS_NONHTML_VERSION;
            ?>
</legend>
				<textarea name="altbody" id="altbody" rows="20" cols="70" style="width: 100%; height: 400px;">
					<?php 
            echo strip_tags($mailingEdit->textonly);
            ?>
				</textarea>
				</fieldset>
			</td>
			<td>
			</td>
		</tr>
	<?php 
        }
        ?>
		</tbody>
	</table>
	<!--</fieldset>-->
	<input type="hidden" id="template_id" name="template_id" value="<?php 
        echo $mailingEdit->template_id;
        ?>
" />
	<?php 
    }
示例#2
0
 public static function editList($listEdit, $forms, $show, $listType = 1)
 {
     if (!class_exists('JHtmlBehavior')) {
         jimport('joomla.html.html.behavior');
     }
     $lists = jNews_ListsHTML::prepList($listEdit, $listType);
     $html = $listEdit->html;
     if ($listEdit->footer == '0') {
         $show['unsusbcribe'] = false;
     }
     echo $forms['main'];
     $config_tabs = new MosTabsjNews(0);
     $config_tabs->startPane('acaListEdit');
     $config_tabs->startTab(_JNEWS_LIST_T_GENERAL, 'acaListEdit.general');
     jNews_ListsHTML::description($listEdit, $lists, $show, $html, $listType);
     $config_tabs->endTab();
     if ($show['unsusbcribe'] or $show['auto_subscribe'] or $GLOBALS[JNEWS . 'require_confirmation'] or $show['email_unsubcribe'] and class_exists('jNews_Auto')) {
         $config_tabs->startTab(_JNEWS_LIST_T_SUBSCRIPTION, 'acaListEdit.subscriber');
         jNews_ListsHTML::subscription($listEdit, $lists, $show, $html, $listType);
         $config_tabs->endTab();
     }
     if ($GLOBALS[JNEWS . 'level'] > 2) {
         //list notifications
         if ($show['unsusbcribe'] or $show['auto_subscribe'] or $GLOBALS[JNEWS . 'require_confirmation'] or $show['email_unsubcribe'] and class_exists('jNews_Auto')) {
             $config_tabs->startTab(_JNEWS_LIST_T_ADMIN_NOTIFICATION, 'acaListEdit.subscriber');
             jNews_ListsHTML::notification($listEdit, $lists, $show, $html);
             $config_tabs->endTab();
         }
     }
     if (class_exists('jNews_Auto') && $show['access']) {
         $config_tabs->startTab('Front-end Management', 'acaListEdit.pro');
         jNews_ListsHTML::frontendManagement($listEdit, $lists, $show, $html);
         $config_tabs->endTab();
     }
     if ($listType == '2' and class_exists('jNews_Autoresponder')) {
         $config_tabs->startTab(_JNEWS_AUTORESP, 'acaListEdit.autorespond');
         jNews_Autoresponder::edit($listEdit, $lists, $show, $listEdit->html);
         $config_tabs->endTab();
     }
     $config_tabs->endPane();
     echo JHTML::_('behavior.keepalive');
 }
示例#3
0
    public static function showStatistics($listStats, $mailing, $globalStats, $html_read, $html_unread, $text, $listId)
    {
        ?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<table class="<?php 
        echo jnews::myTheme();
        ?>
">
	<tr>
		<th colspan="2" class="title"><?php 
        echo _JNEWS_MAILING_LIST_DETAILS;
        ?>
:</th>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo @constant($GLOBALS[JNEWS . 'listname' . $listStats->list_type]);
        ?>
:</td>
		<td align="left"><?php 
        echo $listStats->list_name;
        ?>
</td>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo _JNEWS_DESCRIPTION;
        ?>
:</td>
		<td align="left"><?php 
        echo $listStats->list_desc;
        ?>
</td>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo _JNEWS_LIST_ISSUE;
        ?>
:</td>
		<td align="left"><?php 
        echo $mailing->issue_nb;
        ?>
</td>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo _JNEWS_SUBJECT;
        ?>
:</td>
		<td align="left"><?php 
        echo $mailing->subject;
        ?>
</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
</table>
<?php 
        $stat_tabs = new MosTabsjNews(0);
        $stat_tabs->startPane('acaStats');
        $stat_tabs->startTab(_JNEWS_GLOBALSTATS, 'acaStats');
        ?>
	<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="<?php 
        echo jnews::myTheme();
        ?>
">
<?php 
        if ($listStats->html == 1) {
            ?>
		<tr>
			<td width="200" align="left"><?php 
            echo _JNEWS_SEND_IN_HTML_FORMAT;
            ?>
:</td>
			<td align="left"><?php 
            echo $globalStats->html_sent;
            ?>
</td>
		</tr>
		<tr>
			<td width="200" align="left"><?php 
            echo _JNEWS_VIEWS_FROM_HTML;
            ?>
:</td>
			<td align="left"><?php 
            echo $globalStats->html_read;
            ?>
</td>
		</tr>
<?php 
        }
        ?>
		<tr>
			<td width="200" align="left"><?php 
        echo _JNEWS_SEND_IN_TEXT_FORMAT;
        ?>
:</td>
			<td align="left"><?php 
        echo $globalStats->text_sent;
        ?>
</td>
		</tr>
	</table>
<?php 
        $stat_tabs->endTab();
        $stat_tabs->startTab(_JNEWS_DETAILED_STATS, 'acaStats.detail');
        ?>

			<table width="100%" cellpadding="4" cellspacing="0" border="1" align="center" class="<?php 
        echo jnews::myTheme();
        ?>
">
				<thead>
					<tr>
						<th class="title"><?php 
        echo _JNEWS_HTML_READ;
        ?>
</th>
						<th class="title"><?php 
        echo _JNEWS_HTML_UNREAD;
        ?>
</th>
						<th class="title"><?php 
        echo _JNEWS_TEXT_ONLY_SENT;
        ?>
</th>
					</tr>
				</thead>
					<tr>
						<td valign="top" align="left" width="33%">
<?php 
        if (sizeof($html_read) > 0) {
            foreach ($html_read as $htmlread) {
                echo $htmlread->name . ' (' . $htmlread->email . ')<br />';
            }
        }
        ?>
						</td>
						<td valign="top" align="left" width="33%">
<?php 
        if (sizeof($html_unread) > 0) {
            foreach ($html_unread as $htmlunread) {
                echo $htmlunread->name . ' (' . $htmlunread->email . ')<br />';
            }
        }
        ?>
						</td>
						<td valign="top" align="left" width="33%">
<?php 
        if (sizeof($text) > 0) {
            foreach ($text as $atext) {
                echo $atext->name . ' (' . $atext->email . ')<br />';
            }
        }
        ?>
						</td>
					</tr>
				</table>

<?php 
        $stat_tabs->endTab();
        $stat_tabs->endpane();
        ?>
   	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="option" value="<?php 
        echo JNEWS_OPTION;
        ?>
" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="act" value="statistics" />
	<input type="hidden" name="listid" value="<?php 
        echo $listId;
        ?>
" />
	<input type="hidden" name="mailingid" value="<?php 
        echo $mailing->mailing_id;
        ?>
" />
	<input type="hidden" name="tab" value="<?php 
        echo $tab;
        ?>
" />
</form>
<?php 
    }
示例#4
0
    /**
     * This public static function will generate a graph report of Mailing Report
     * Two Pie charts are generated,
     * @referenced files: open flash chart 2 library
     *
     * @param object $results query result
     */
    public static function mailingSpecificGraph($results, $queryfilters)
    {
        if (empty($results)) {
            echo '&nbsp;&nbsp;<b>' . _JNEWS_GRAPH_WARN_MESSAGE . '</b><br /><br />';
            return true;
        }
        ?>
		<div style="font-size:20px; font-weight:bold; color:#0B55C4;">
			<?php 
        echo _JNEWS_MAILING_SUBJECT_HEADER . ': ' . $results['subject'];
        ?>
		</div>
		<br />
		<?php 
        //remove the wizard text in the pop-up page of mailing report
        $doc = JFactory::getDocument();
        $doc->addStyleDeclaration('div#acawizard{display:none}');
        //Tabs
        $stats_tabs = new MosTabsjNews(0);
        $stats_tabs->startPane('acaMailingReports');
        //Graph of each Mailing
        $stats_tabs->startTab(_JNEWS_MAIL_GRAPH, "acaMailingReports.graph");
        outputReportGraph::mailingGooglePieChart($results);
        $stats_tabs->endTab();
        //Detailed info of each Mailing (read/unread/text)
        $stats_tabs->startTab(_JNEWS_MAIL_DETAILS, "acaMailingReports.details");
        ?>
		<br />
		<table class="<?php 
        echo jnews::myTheme();
        ?>
">
			<thead>
				<th ><?php 
        echo _JNEWS_MAIL_DETAILS_READ;
        ?>
</th>
				<th ><?php 
        echo _JNEWS_MAIL_DETAILS_UNREAD;
        ?>
</th>
				<th ><?php 
        echo _JNEWS_MAIL_DETAILS_TEXT;
        ?>
</th>
			</thead>
			<tr>
				<?php 
        $mailingId = $results['id'];
        $startDate = $queryfilters['startdate'];
        $endDate = $queryfilters['enddate'];
        $db = JFactory::getDBO();
        $sql = "SELECT B.`email` " . "FROM `#__jnews_stats_details` AS A " . "LEFT JOIN `#__jnews_subscribers` AS B ON B.`id` = A.`subscriber_id` " . "WHERE A.`mailing_id` = " . $mailingId . " AND A.sentdate BETWEEN {$startDate} AND {$endDate}";
        //html read
        $query = $sql . " AND A.`html` = 1 AND A.`read` = 1 LIMIT 10000";
        $db->setQuery($query);
        $loadResultArray = $db->loadObjectList();
        $resultHTMLRead = jnews::convertObjectList2Array($loadResultArray);
        //html unread
        $query = $sql . " AND A.`html` = 1 AND A.`read` = 0 LIMIT 10000";
        $db->setQuery($query);
        $loadResultArray = $db->loadObjectList();
        $resultHTMLUnread = jnews::convertObjectList2Array($loadResultArray);
        //text only
        $query = $sql . " AND A.`html` = 0 LIMIT 10000";
        $db->setQuery($query);
        $loadResultArray = $db->loadObjectList();
        $resultsText = jnews::convertObjectList2Array($loadResultArray);
        ?>
				<td valign="top"><?php 
        foreach ($resultHTMLRead as $data) {
            if (!empty($data)) {
                echo $data . "<br />";
            }
        }
        ?>
</td>
				<td valign="top"><?php 
        foreach ($resultHTMLUnread as $data) {
            if (!empty($data)) {
                echo $data . "<br />";
            }
        }
        ?>
</td>
				<td valign="top"><?php 
        foreach ($resultsText as $data) {
            if (!empty($data)) {
                echo $data . "<br />";
            }
        }
        ?>
</td>
			</tr>
		</table>
	<?php 
        $stats_tabs->endTab();
        $stats_tabs->endPane();
    }
示例#5
0
    public static function showConfigEdit()
    {
        $mailOpt = array();
        $mailOpt[] = jnews::HTML_SelectOption('mail', 'PHP mail function');
        $mailOpt[] = jnews::HTML_SelectOption('sendmail', 'Sendmail');
        $mailOpt[] = jnews::HTML_SelectOption('smtp', 'SMTP Server');
        $logFormat = array();
        $logFormat[] = jnews::HTML_SelectOption('0', _JNEWS_DETAILED);
        $logFormat[] = jnews::HTML_SelectOption('1', _JNEWS_SIMPLE);
        $themeOption = array();
        $themeOption[] = jnews::HTML_SelectOption('joobilist', 'jNews Look');
        $themeOption[] = jnews::HTML_SelectOption('adminlist', 'Joomla look');
        $lists = array();
        $lists['component_theme'] = jnews::HTML_GenericList($themeOption, "config['component_theme']", 'class="inputbox" size="1"', 'value', 'text', jnews::myTheme());
        $lists['mailermethod'] = jnews::HTML_GenericList($mailOpt, "config['emailmethod']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'emailmethod']);
        $lists['send_log_simple'] = jnews::HTML_GenericList($logFormat, "config['send_log_simple']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'send_log_simple']);
        $lists['save_log_simple'] = jnews::HTML_GenericList($logFormat, "config['save_log_simple']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'save_log_simple']);
        $mailSecure[] = jnews::HTML_SelectOption('', '---');
        $mailSecure[] = jnews::HTML_SelectOption('ssl', 'SSL');
        $mailSecure[] = jnews::HTML_SelectOption('tls', 'TLS');
        $lists['smtp_secure'] = jnews::HTML_GenericList($mailSecure, "config['smtp_secure']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'smtp_secure']);
        $lists['auth_required'] = jnews::HTML_BooleanList("config['smtp_auth_required']", 'class="inputbox"', $GLOBALS[JNEWS . 'smtp_auth_required']);
        $lists['allow_unregistered'] = jnews::HTML_BooleanList("config['allow_unregistered']", 'class="inputbox"', $GLOBALS[JNEWS . 'allow_unregistered']);
        $lists['require_confirmation'] = jnews::HTML_BooleanList("config['require_confirmation']", 'class="inputbox"', $GLOBALS[JNEWS . 'require_confirmation']);
        // DKIM code addition by Amod begins
        $GLOBALS[JNEWS . 'dkim_activated'] = !empty($GLOBALS[JNEWS . 'dkim_activated']) ? $GLOBALS[JNEWS . 'dkim_activated'] : null;
        $lists['dkim_activated'] = jnews::HTML_BooleanList("config['dkim_activated']", 'class="inputbox"', $GLOBALS[JNEWS . 'dkim_activated']);
        // DKIM code addition by Amod ends
        //These options are transfered from lists to configuration
        $lists['show_unsubscribelink'] = jnews::HTML_BooleanList("config['show_unsubscribelink']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_unsubscribelink']);
        $lists['show_subscriptionlink'] = jnews::HTML_BooleanList("config['show_subscriptionlink']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_subscriptionlink']);
        //Queue Settings for queue status
        $queuestatus = array();
        $queuestatus[] = jnews::HTML_SelectOption('1', _JNEWS_QUEUESTATS_ON);
        $queuestatus[] = jnews::HTML_SelectOption('0', _JNEWS_QUEUESTATS_OF);
        $lists['queue_status'] = jnews::HTML_RadioList($queuestatus, "config['queue_status']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'queue_status']);
        $archiveLink = array();
        $archiveLink[] = jnews::HTML_SelectOption('standard', _JNEWS_ARCHIVELINK_STANDARD);
        $archiveLink[] = jnews::HTML_SelectOption('popup', _JNEWS_ARCHIVELINK_POPUP);
        $archiveLink[] = jnews::HTML_SelectOption('newpage', _JNEWS_ARCHIVELINK_PAGE);
        $lists['archive_link'] = jnews::HTML_RadioList($archiveLink, "config['archive_link']", 'class="inputbox" size="1"', 'value', 'text', @$GLOBALS[JNEWS . 'archive_link']);
        $joobicron = array();
        $joobicron[] = jnews::HTML_SelectOption('1', _JNEWS_JOOBICRON_NO);
        $joobicron[] = jnews::HTML_SelectOption('2', _JNEWS_JOOBICRON_YES);
        if ($GLOBALS[JNEWS . 'j_cron'] != 2) {
            $GLOBALS[JNEWS . 'j_cron'] = 1;
        }
        //set to no
        $lists['j_cron'] = jnews::HTML_RadioList($joobicron, "config['j_cron']", 'class="inputbox" size="1"', 'value', 'text', @$GLOBALS[JNEWS . 'j_cron']);
        //Queue Settings for Queue Process
        //$queueprocess=array();
        //$queueprocess[]=jnews::HTML_SelectOption('1', _JNEWS_QUEUESTATS_ON);
        //$queueprocess[]=jnews::HTML_SelectOption('0', _JNEWS_QUEUESTATS_OF);
        //$lists['queue_process'] = jnews::HTML_RadioList( $queueprocess, "config['queue_process']" , 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS.'queue_process'] );
        //Queue Settings for Smart Queue
        $smartqueue = array();
        $smartqueue[] = jnews::HTML_SelectOption('1', _JNEWS_SMARTQ_ON);
        $smartqueue[] = jnews::HTML_SelectOption('0', _JNEWS_SMARTQ_OF);
        $lists['smart_queue'] = jnews::HTML_RadioList($smartqueue, "config['smart_queue']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'smart_queue']);
        $lists['show_login'] = jnews::HTML_BooleanList("config['show_login']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_login']);
        $lists['show_logout'] = jnews::HTML_BooleanList("config['show_logout']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_logout']);
        $lists['confirm_html'] = jnews::HTML_BooleanList("config['confirm_html']", 'class="inputbox"', $GLOBALS[JNEWS . 'confirm_html']);
        $lists['time_zone'] = jnews::HTML_BooleanList("config['time_zone']", 'class="inputbox"', $GLOBALS[JNEWS . 'time_zone']);
        $lists['sub_info_fields'] = jnews::HTML_BooleanList("config['sub_info_fields']", 'class="inputbox"', $GLOBALS[JNEWS . 'sub_info_fields']);
        $lists['show_archive'] = jnews::HTML_BooleanList("config['show_archive']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_archive']);
        $lists['enable_statistics'] = jnews::HTML_BooleanList("config['enable_statistics']", 'class="inputbox"', $GLOBALS[JNEWS . 'enable_statistics']);
        $lists['statistics_per_subscriber'] = jnews::HTML_BooleanList("config['statistics_per_subscriber']", 'class="inputbox"', $GLOBALS[JNEWS . 'statistics_per_subscriber']);
        //Send only HTML Mailin
        $lists['forced_html'] = jnews::HTML_BooleanList("config['forced_html']", 'class="inputbox"', $GLOBALS[JNEWS . 'forced_html']);
        $lists['wait_for_user'] = jnews::HTML_BooleanList("config['wait_for_user']", 'class="inputbox"', $GLOBALS[JNEWS . 'wait_for_user']);
        $lists['display_trace'] = jnews::HTML_BooleanList("config['display_trace']", 'class="inputbox"', $GLOBALS[JNEWS . 'display_trace']);
        $lists['send_data'] = jnews::HTML_BooleanList("config['send_data']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_data']);
        $lists['send_auto_log'] = jnews::HTML_BooleanList("config['send_auto_log']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_auto_log']);
        $lists['send_log'] = jnews::HTML_BooleanList("config['send_log']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_log']);
        $lists['save_log'] = jnews::HTML_BooleanList("config['save_log']", 'class="inputbox"', $GLOBALS[JNEWS . 'save_log']);
        $lists['send_log_closed'] = jnews::HTML_BooleanList("config['send_log_closed']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_log_closed']);
        $lists['clear_log'] = jnews::HTML_BooleanList("clear_log", 'class="inputbox"', 0);
        $lists['show_footer'] = jnews::HTML_BooleanList("config['show_footer']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_footer']);
        $lists['show_jcalpro'] = jnews::HTML_BooleanList("config['show_jcalpro']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_jcalpro']);
        $lists['show_jlinks'] = jnews::HTML_BooleanList("config['show_jlinks']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_jlinks']);
        // $lists['enable_jsub'] = jnews::HTML_BooleanList( "config['enable_jsub']" , 'class="inputbox"', $GLOBALS[JNEWS.'enable_jsub'] );
        $lists['allow_sn'] = jnews::HTML_BooleanList("config['allow_sn']", 'class="inputbox"', $GLOBALS[JNEWS . 'allow_sn']);
        $lists['sntag_norequired'] = jnews::HTML_BooleanList("config['sntag_norequired']", 'class="inputbox"', $GLOBALS[JNEWS . 'sntag_norequired']);
        $lists['show_unsubscribe_all'] = jnews::HTML_BooleanList("config['show_unsubscribe_all']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_unsubscribe_all']);
        $lists['show_terms'] = jnews::HTML_BooleanList("config['show_terms']", 'class="inputbox"', @$GLOBALS[JNEWS . 'show_terms']);
        $lists['check_terms'] = jnews::HTML_BooleanList("config['check_terms']", 'class="inputbox"', @$GLOBALS[JNEWS . 'check_terms']);
        //column1
        $lists['show_column1'] = jnews::HTML_BooleanList("config['show_column1']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column1']);
        $lists['show_column2'] = jnews::HTML_BooleanList("config['show_column2']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column2']);
        $lists['show_column3'] = jnews::HTML_BooleanList("config['show_column3']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column3']);
        $lists['show_column4'] = jnews::HTML_BooleanList("config['show_column4']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column4']);
        $lists['show_column5'] = jnews::HTML_BooleanList("config['show_column5']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column5']);
        //end of columns
        //captcha
        //			 $lists['enable_captcha'] = jnews::HTML_BooleanList( "config['enable_captcha']" , 'class="inputbox"', $GLOBALS[JNEWS.'enable_captcha'] );
        //$lists['use_cron_pass'] = jnews::HTML_BooleanList( "config['use_cron_pass']" , 'class="inputbox"', $GLOBALS[JNEWS.'use_cron_pass'] );
        $lists['show_signature'] = jnews::HTML_BooleanList("config['show_signature']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_signature']);
        $lists['show_lists'] = jnews::HTML_BooleanList("config['show_lists']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_lists']);
        $lists['embed_images'] = jnews::HTML_BooleanList("config['embed_images']", 'class="inputbox"', $GLOBALS[JNEWS . 'embed_images']);
        $lists['use_tags'] = jnews::HTML_BooleanList("config['use_tags']", 'class="inputbox"', $GLOBALS[JNEWS . 'use_tags']);
        $lists['show_guide'] = jnews::HTML_BooleanList("config['show_guide']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_guide']);
        $lists['show_author'] = jnews::HTML_BooleanList("config['show_author']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_author']);
        $lists['show_tips'] = jnews::HTML_BooleanList("config['show_tips']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_tips']);
        //$lists['update_notification'] = jnews::HTML_BooleanList( "config['update_notification']" , 'class="inputbox"', $GLOBALS[JNEWS.'update_notification'] );
        $lists['use_sef'] = jnews::HTML_BooleanList("config['use_sef']", 'class="inputbox"', $GLOBALS[JNEWS . 'use_sef']);
        $lists['listype1'] = jnews::HTML_BooleanList("config['listype1']", 'class="inputbox"', $GLOBALS[JNEWS . 'listype1']);
        $lists['listype2'] = jnews::HTML_BooleanList("config['listype2']", 'class="inputbox"', $GLOBALS[JNEWS . 'listype2']);
        $lists['listHTMLeditor'] = jnews::HTML_BooleanList("config['listHTMLeditor']", 'class="inputbox"', $GLOBALS[JNEWS . 'listHTMLeditor']);
        //for social version
        if ($GLOBALS[JNEWS . 'level'] > 2) {
            if (@(include_once JNEWSPATH_ADMIN . 'social' . DS . 'class.social.php')) {
                if (class_exists('jNews_Social')) {
                    $lists['use_masterlists'] = jnews::HTML_BooleanList("config['use_masterlists']", 'class="inputbox"', $GLOBALS[JNEWS . 'use_masterlists']);
                    $lists['allow_fe_autoresponder'] = jnews::HTML_BooleanList("config['allow_fe_autoresponder']", 'class="inputbox"', $GLOBALS[JNEWS . 'allow_fe_autoresponder']);
                }
            }
        }
        if (empty($lists['allow_fe_autoresponder'])) {
            $lists['allow_fe_autoresponder'] = 'jNews Social Only';
        }
        $lists['send_error'] = jnews::HTML_BooleanList("config['send_error']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_error']);
        $lists['report_error'] = jnews::HTML_BooleanList("config['report_error']", 'class="inputbox"', $GLOBALS[JNEWS . 'report_error']);
        $lists['fullcheck'] = jnews::HTML_BooleanList("config['fullcheck']", 'class="inputbox"', $GLOBALS[JNEWS . 'fullcheck']);
        $lists['addEmailRedLink'] = jnews::HTML_BooleanList("config['addEmailRedLink']", 'class="inputbox"', $GLOBALS[JNEWS . 'addEmailRedLink']);
        $lists['disabletooltip'] = jnews::HTML_BooleanList("config['disabletooltip']", 'class="inputbox"', $GLOBALS[JNEWS . 'disabletooltip']);
        $lists['minisendmail'] = jnews::HTML_BooleanList("config['minisendmail']", 'class="inputbox"', $GLOBALS[JNEWS . 'minisendmail']);
        //<!-- content ordering -->
        $sortContent[] = jnews::HTML_SelectOption('0', _JNEWS_SORT_DATE);
        $sortContent[] = jnews::HTML_SelectOption('1', _JNEWS_SORT_SECTION);
        $sortContent[] = jnews::HTML_SelectOption('2', _JNEWS_SORT_CATEGORY);
        //$lists['content_order'] = jnews::HTML_GenericList( $sortContent, "config['content_order']" , 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS.'content_order'] );
        $schedPrior = array();
        $schedPrior[] = jnews::HTML_SelectOption('1', '1');
        $schedPrior[] = jnews::HTML_SelectOption('2', '2');
        $schedPrior[] = jnews::HTML_SelectOption('3', '3');
        $enable_jsub = array();
        $enable_jsub[] = jnews::HTML_SelectOption('0', _JNEWS_LIST_ACESS);
        $enable_jsub[] = jnews::HTML_SelectOption('1', _JNEWS_BYOWNER);
        $lists['enable_jsub'] = jnews::HTML_RadioList($enable_jsub, "config['enable_jsub']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'enable_jsub']);
        $GLOBALS[JNEWS . 'sched_prior'] = isset($GLOBALS[JNEWS . 'sched_prior']) ? $GLOBALS[JNEWS . 'sched_prior'] : 3;
        $lists['sched_prior'] = jnews::HTML_RadioList($schedPrior, "config['sched_prior']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'sched_prior']);
        $arPrior = array();
        $arPrior[] = jnews::HTML_SelectOption('1', '1');
        $arPrior[] = jnews::HTML_SelectOption('2', '2');
        $arPrior[] = jnews::HTML_SelectOption('3', '3');
        $GLOBALS[JNEWS . 'ar_prior'] = isset($GLOBALS[JNEWS . 'ar_prior']) ? $GLOBALS[JNEWS . 'ar_prior'] : '';
        $lists['ar_prior'] = jnews::HTML_RadioList($arPrior, "config['ar_prior']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'ar_prior']);
        $smPrior = array();
        $smPrior[] = jnews::HTML_SelectOption('1', '1');
        $smPrior[] = jnews::HTML_SelectOption('2', '2');
        $smPrior[] = jnews::HTML_SelectOption('3', '3');
        $GLOBALS[JNEWS . 'sm_prior'] = isset($GLOBALS[JNEWS . 'sm_prior']) ? $GLOBALS[JNEWS . 'sm_prior'] : '';
        $lists['sm_prior'] = jnews::HTML_RadioList($arPrior, "config['sm_prior']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'sm_prior']);
        $priord_list = array();
        $priord_list[] = jnews::HTML_SelectOption('0', _JNEWS_AUTORESP);
        $priord_list[] = jnews::HTML_SelectOption('1', _JNEWS_LIST);
        $GLOBALS[JNEWS . 'priord_list'] = isset($GLOBALS[JNEWS . 'priord_list']) ? $GLOBALS[JNEWS . 'priord_list'] : '';
        $lists['priord_list'] = jnews::HTML_RadioList($priord_list, "config['priord_list']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'priord_list']);
        $priord_subs = array();
        $priord_subs[] = jnews::HTML_SelectOption('0', _JNEWS_REMAIN_SUBS);
        $priord_subs[] = jnews::HTML_SelectOption('1', _JNEWS_LIST_T_SUBSCRIPTION);
        $priord_subs[] = jnews::HTML_SelectOption('2', _JNEWS_UNSUBS);
        $GLOBALS[JNEWS . 'priord_subs'] = isset($GLOBALS[JNEWS . 'priord_subs']) ? $GLOBALS[JNEWS . 'priord_subs'] : '';
        $lists['priord_subs'] = jnews::HTML_RadioList($priord_subs, "config['priord_subs']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'priord_subs']);
        if (class_exists('jNews_Social')) {
            $lists['list_creatorfe'] = jnews::displayAccessRoles('list_creatorfe', $GLOBALS[JNEWS . 'list_creatorfe']);
            //since 6.1.0
            $lists['use_backendview'] = jnews::HTML_BooleanList("config['use_backendview']", 'class="inputbox"', $GLOBALS[JNEWS . 'use_backendview']);
        }
        if (class_exists('aca_archive')) {
            $jour = array();
            $jour[] = jnews::HTML_SelectOption('0', _JNEWS_FREQ_OPT_0);
            $jour[] = jnews::HTML_SelectOption('1', _JNEWS_FREQ_OPT_1);
            $jour[] = jnews::HTML_SelectOption('2', _JNEWS_FREQ_OPT_2);
            $jour[] = jnews::HTML_SelectOption('3', _JNEWS_FREQ_OPT_3);
            $jour[] = jnews::HTML_SelectOption('4', _JNEWS_FREQ_OPT_4);
            $jour[] = jnews::HTML_SelectOption('5', _JNEWS_FREQ_OPT_5);
            $jour[] = jnews::HTML_SelectOption('6', _JNEWS_FREQ_OPT_6);
            $dateType = array();
            $dateType[] = jnews::HTML_SelectOption('1', _JNEWS_DATE_OPT_1);
            $dateType[] = jnews::HTML_SelectOption('2', _JNEWS_DATE_OPT_2);
            $lists['frequency'] = jnews::HTML_GenericList($jour, "config['frequency']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'frequency']);
            $lists['date_type'] = jnews::HTML_GenericList($dateType, "config['date_type']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'date_type']);
        }
        //encoding format
        $mail_format[] = jnews::HTML_SelectOption('0', 'Text (8bit)');
        $mail_format[] = jnews::HTML_SelectOption('1', 'MIME (base64)');
        $lists['mail_format'] = jnews::HTML_RadioList($mail_format, "config['mail_format']", 'class="inputbox"', 'value', 'text', $GLOBALS[JNEWS . 'mail_format']);
        //encoding formart
        $mail_encoding[] = jnews::HTML_SelectOption('0', 'UTF-8');
        $mail_encoding[] = jnews::HTML_SelectOption('1', 'ISO-8859-2');
        $lists['mail_encoding'] = jnews::HTML_RadioList($mail_encoding, "config['mail_encoding']", 'class="inputbox"', 'value', 'text', $GLOBALS[JNEWS . 'mail_encoding']);
        backHTML::formStart('configpanel', 0, '');
        ?>
	<table style="width: 100%;" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td>
	<form action="index.php" method="post" name="adminForm" id="adminForm">
	<?php 
        $config_tabs = new MosTabsjNews(1);
        $config_tabs->startPane('acaConfig');
        $config_tabs->startTab(_JNEWS_MAIL_CONFIG, 'mail');
        jNews_ConfigHTML::mailSettings($lists);
        $config_tabs->endTab();
        $config_tabs->startTab(_JNEWS_SUBSCRIBER_CONFIG, 'subscribers');
        jNews_ConfigHTML::subcriberSettings($lists);
        $config_tabs->endTab();
        if (class_exists('jNews_Auto')) {
            $config_tabs->startTab(_JNEWS_SCHEDULER, 'scheduler');
            jNews_ConfigHTML::cronSettings($lists);
            $config_tabs->endTab();
        }
        $config_tabs->startTab(_JNEWS_LOGGING_CONFIG, 'logging');
        jNews_ConfigHTML::logsSettings($lists);
        $config_tabs->endTab();
        if ($GLOBALS[JNEWS . 'integration'] and ($GLOBALS[JNEWS . 'cb_integration'] or class_exists('aca_virtuemart') && $GLOBALS[JNEWS . 'virtuemart'])) {
            $config_tabs->startTab(_JNEWS_CONFIG_INTEGRATION, 'integration');
            if ($GLOBALS[JNEWS . 'cb_integration']) {
                jNews_ConfigHTML::cbSettings();
            }
            if (class_exists('aca_virtuemart') && isset($GLOBALS[JNEWS . 'virtuemart']) && $GLOBALS[JNEWS . 'virtuemart']) {
                aca_virtuemart::tab();
            }
            $config_tabs->endTab();
        }
        $config_tabs->startTab(_JNEWS_MISC_CONFIG, 'misc');
        jNews_ConfigHTML::miscSettings($lists);
        $config_tabs->endTab();
        if (class_exists('jNews_Auto')) {
            $config_tabs->startTab(_JNEWS_LICENSE_CONFIG, 'licence');
            jNews_Auto::licenseSettings($lists);
            $config_tabs->endTab();
        }
        $config_tabs->endPane();
        if (version_compare(JVERSION, '3.0.0', '<')) {
            echo JHTML::_('form.token');
        } else {
            echo JHtml::_('form.token');
        }
        ?>
		<input type="hidden" name="option" value="<?php 
        echo JNEWS_OPTION;
        ?>
" />
		<input type="hidden" name="act" value="configuration" />
    	<input type="hidden" name="boxchecked" value="0" />
    	<input type="hidden" name="task" value="" />
	</form>
	</td></tr></tbody></table>
	<?php 
    }