Example #1
0
 public static function reportType($selected)
 {
     $values = array();
     $values[] = jnews::HTML_SelectOption('listing', JText::_(_JNEWS_REPORT_LISTING));
     $values[] = jnews::HTML_SelectOption('graph', JText::_(_JNEWS_REPORT_GRAPH));
     return jnews::HTML_RadioList($values, "rpttype", 'class="inputbox" size="1"', 'value', 'text', $selected);
 }
Example #2
0
 public static function subscirbersType()
 {
     $values = array();
     $values[] = jnews::HTML_SelectOption('all-users', JText::_(_JNEWS_SUBSCRIBERS_ALL_USERS));
     $values[] = jnews::HTML_SelectOption('registered', JText::_(_JNEWS_SUBSCRIBERS_REGISTERED));
     $values[] = jnews::HTML_SelectOption('guests', JText::_(_JNEWS_SUBSCRIBERS_GUESTS));
     return jnews::HTML_RadioList($values, "subcscriberstype", 'class="inputbox" size="1"', 'value', 'text', "subcscriberstype");
 }
Example #3
0
 public static function intervalType($selected)
 {
     $values = array();
     $values[] = jnews::HTML_SelectOption('daily', JText::_(_JNEWS_INTERVAL_DAILY));
     $values[] = jnews::HTML_SelectOption('weekly', JText::_(_JNEWS_INTERVAL_WEEKLY));
     $values[] = jnews::HTML_SelectOption('monthly', JText::_(_JNEWS_INTERVAL_MONTHLY));
     $values[] = jnews::HTML_SelectOption('yearly', JText::_(_JNEWS_INTERVAL_YEARLY));
     return jnews::HTML_RadioList($values, "rptinterval", 'class="inputbox" size="1"', 'value', 'text', $selected);
 }
Example #4
0
 public static function rangeType($selected)
 {
     $values = array();
     $values[] = jnews::HTML_SelectOption('yesterday', JText::_(_JNEWS_DEFINED_RANGE_YESTERDAY));
     $values[] = jnews::HTML_SelectOption('today', JText::_(_JNEWS_DEFINED_RANGE_TODAY));
     $values[] = jnews::HTML_SelectOption('this-week', JText::_(_JNEWS_DEFINED_RANGE_THIS_WEEK));
     $values[] = jnews::HTML_SelectOption('last-week', JText::_(_JNEWS_DEFINED_RANGE_LAST_WEEK));
     $values[] = jnews::HTML_SelectOption('last-2-weeks', JText::_(_JNEWS_DEFINED_RANGE_LAST_TWO_WEEK));
     $values[] = jnews::HTML_SelectOption('this-month', JText::_(_JNEWS_DEFINED_RANGE_THIS_MONTH));
     $values[] = jnews::HTML_SelectOption('last-month', JText::_(_JNEWS_DEFINED_RANGE_LAST_MONTH));
     $values[] = jnews::HTML_SelectOption('this-year', JText::_(_JNEWS_DEFINED_RANGE_THIS_YEAR));
     $values[] = jnews::HTML_SelectOption('last-year', JText::_(_JNEWS_DEFINED_RANGE_LAST_YEAR));
     $values[] = jnews::HTML_SelectOption('2-years-ago', JText::_(_JNEWS_DEFINED_RANGE_TWO_YEARS_AGO));
     $values[] = jnews::HTML_SelectOption('3-years-ago', JText::_(_JNEWS_DEFINED_RANGE_3_YEARS_AGO));
     return jnews::HTML_GenericList($values, "rptrange", 'class="inputbox" size="1"', 'value', 'text', $selected);
 }
Example #5
0
 function fetchElement($name, $value, &$node, $control_name)
 {
     $db = JFactory::getDBO();
     $db->setQuery('SELECT `virtuemart_custom_id`, `custom_title` FROM #__virtuemart_customs ');
     $tableField = $db->loadObjectList();
     if (empty($tableField)) {
         //old VM version
         $tableField = $db->getTableFields('#__vm_user_info');
         $fields = reset($tableField);
         $dropdown = array();
         foreach ($fields as $oneField => $fieldType) {
             $dropdown[] = jnews::HTML_SelectOption($oneField, $oneField);
         }
         return jnews::HTML_GenericList($dropdown, $control_name . '[' . $name . ']', 'size="1"', 'value', 'text', $value);
     }
     //new VM version
     $dropdown = array();
     foreach ($tableField as $oneField => $fieldType) {
         $dropdown[] = jnews::HTML_SelectOption($fieldType->virtuemart_custom_id, $fieldType->custom_title);
     }
     return jnews::HTML_GenericList($dropdown, $control_name . '[' . $name . ']', 'size="1"', 'value', 'text', $value);
 }
Example #6
0
 /**
  * <p>public static function to create the header or the subject area of the smart newsletter</p>
  */
 public static function smartNewsHead($mailingEdit, $lists, $show)
 {
     $option = array();
     $my = JFactory::getUser();
     $acl = JFactory::getACL();
     //$gtree = $acl->get_group_children_tree( null, 'USERS', false );
     $option[] = jnews::HTML_SelectOption('1800', 'Every 30 minutes');
     $option[] = jnews::HTML_SelectOption('3600', 'Every hour');
     $option[] = jnews::HTML_SelectOption('43200', 'Every 12 hours');
     $option[] = jnews::HTML_SelectOption('1', _JNEWS_AUTO_DAY_CH1);
     $option[] = jnews::HTML_SelectOption('3', _JNEWS_AUTO_DAY_CH3);
     $option[] = jnews::HTML_SelectOption('5', _JNEWS_AUTO_DAY_CH5);
     $option[] = jnews::HTML_SelectOption('6', _JNEWS_AUTO_DAY_CH6);
     $option[] = jnews::HTML_SelectOption('7', _JNEWS_AUTO_DAY_CH7);
     $option[] = jnews::HTML_SelectOption('8', _JNEWS_AUTO_DAY_CH8);
     $option[] = jnews::HTML_SelectOption('9', _JNEWS_AUTO_DAY_CH9);
     $auto_option[] = jnews::HTML_SelectOption('0', _JNEWS_AUTO_OPTION_NONE);
     $auto_option[] = jnews::HTML_SelectOption('1', _JNEWS_AUTO_OPTION_NEW);
     if (isset($mailingEdit->new_letter) && $mailingEdit->new_letter == 1) {
         $auto_option[] = jnews::HTML_SelectOption('2', _JNEWS_AUTO_OPTION_ALL);
     }
     if (!isset($lists['delay_min'])) {
         $lists['delay_min'] = null;
     }
     $lists['delay_min'] = jnews::HTML_GenericList($option, 'delay_min', 'class="inputbox" size="1"', 'value', 'text', isset($mailingEdit->delay_min) ? $mailingEdit->delay_min : 1);
     $lists['catid'] = !empty($mailingEdit->cat_id) ? $mailingEdit->cat_id : '';
     $lists['notify_id'] = !empty($mailingEdit->notify_id) ? $mailingEdit->notify_id : '';
     $lists['delay_max'] = !empty($mailingEdit->delay_max) ? $mailingEdit->delay_max : '';
     $lists['smart_date'] = !empty($mailingEdit->smart_date) ? $mailingEdit->smart_date : '';
     if (!empty($mailingEdit->delay_max)) {
         JRequest::setVar('delay_max', $mailingEdit->delay_max);
     }
     if (!empty($mailingEdit->notify_id)) {
         JRequest::setVar('notify_id', $mailingEdit->notify_id);
     }
     if (!empty($mailingEdit->cat_id)) {
         JRequest::setVar('cat_id', base64_encode($mailingEdit->cat_id));
     }
     //		if(!empty($mailingEdit->template_id))JRequest::setVar('template_id', base64_encode($mailingEdit->template_id));
     jNews_Autonews::edit($mailingEdit, $lists, $show);
 }
Example #7
0
 public static function prepList($listEdit, $listType)
 {
     $lists = array();
     $jour = array();
     $listEdit->unsubscribesend = isset($listEdit->unsubscribesend) ? $listEdit->unsubscribesend : '';
     $listEdit->unsubscribenotifyadmin = isset($listEdit->unsubscribenotifyadmin) ? $listEdit->unsubscribenotifyadmin : '';
     $mainframe = JFactory::getApplication();
     $my = JFactory::getUser();
     $acl = JFactory::getACL();
     $jour[] = jnews::HTML_SelectOption('1800', 'Every 30 minutes');
     $jour[] = jnews::HTML_SelectOption('3600', 'Every hour');
     $jour[] = jnews::HTML_SelectOption('43200', 'Every 12 hours');
     $jour[] = jnews::HTML_SelectOption('1', _JNEWS_AUTO_DAY_CH1);
     $jour[] = jnews::HTML_SelectOption('3', _JNEWS_AUTO_DAY_CH3);
     $jour[] = jnews::HTML_SelectOption('5', _JNEWS_AUTO_DAY_CH5);
     $jour[] = jnews::HTML_SelectOption('6', _JNEWS_AUTO_DAY_CH6);
     $jour[] = jnews::HTML_SelectOption('7', _JNEWS_AUTO_DAY_CH7);
     $jour[] = jnews::HTML_SelectOption('8', _JNEWS_AUTO_DAY_CH8);
     $jour[] = jnews::HTML_SelectOption('9', _JNEWS_AUTO_DAY_CH9);
     $auto_option[] = jnews::HTML_SelectOption('0', _JNEWS_AUTO_OPTION_NO_SYNC);
     $auto_option[] = jnews::HTML_SelectOption('1', _JNEWS_AUTO_OPTION_NEW);
     //we get all of the templates available and published
     $templates = jNews_Templates::getTemplatesForPicklist();
     $list_templates = array();
     foreach ($templates as $oneTemplate) {
         $list_templates[] = jnews::HTML_SelectOption($oneTemplate->template_id, $oneTemplate->name);
     }
     //enfor
     $templateID = !empty($listEdit->template) ? $listEdit->template : '';
     $lists['list_templates'] = jnews::HTML_GenericList($list_templates, 'templatelist', 'class="inputbox"', 'value', 'text', $templateID);
     if ($mainframe->isAdmin()) {
         if ($listEdit->new_letter == 1 && $listType != 2) {
             $auto_option[] = jnews::HTML_SelectOption('2', _JNEWS_AUTO_OPTION_ALL);
         }
     }
     $lists['delay_min'] = jnews::HTML_GenericList($jour, 'delay_min', 'class="inputbox" size="1"', 'value', 'text', $listEdit->delay_min);
     $lists['auto_add'] = jnews::HTML_GenericList($auto_option, 'auto_add', 'class="inputbox"', 'value', 'text', $listEdit->auto_add);
     $lists['published'] = jnews::HTML_BooleanList('published', 'class="inputbox"', $listEdit->published);
     $lists['hidden'] = jnews::HTML_BooleanList('hidden', 'class="inputbox"', $listEdit->hidden);
     $lists_option = jNews_ListType::getListOption(2);
     $lists['list_type'] = jNews_ListsHTML::aca_radioList($lists_option, 'list_type', 'class="inputbox"', $listEdit->list_type);
     $lists['html_mailings'] = jnews::HTML_BooleanList('html', 'class="inputbox"', $listEdit->html);
     $lists['unsubscribesend'] = jnews::HTML_BooleanList("unsubscribesend", 'class="inputbox"', $listEdit->unsubscribesend);
     $lists['subnotifysend'] = jnews::HTML_BooleanList("subnotifysend", 'class="inputbox"', $listEdit->subnotifysend);
     $lists['unsubscribenotifyadmin'] = jnews::HTML_BooleanList("unsubscribenotifyadmin", 'class="inputbox"', $listEdit->unsubscribenotifyadmin);
     $lists['footer'] = jnews::HTML_BooleanList("footer", 'class="inputbox"', $listEdit->footer);
     return $lists;
 }
Example #8
0
 public static function editSubscriberFE($subscriber, $listings, $queues, $forms, $access = false, $frontEnd = false, $cb = false)
 {
     $mainframe = JFactory::getApplication();
     $my = JFactory::getUser();
     if (!$GLOBALS[JNEWS . 'disabletooltip']) {
         if (version_compare(JVERSION, '3.0.0', '<')) {
             JHTML::_('behavior.tooltip');
         } else {
             JHtml::_('behavior.tooltip');
         }
     }
     if (empty($subscriber->name)) {
         $subscriber->name = '';
     }
     $text = str_replace('"', '&quot;', $subscriber->name);
     if (function_exists('htmlspecialchars_decode')) {
         $text = htmlspecialchars_decode($text, ENT_NOQUOTES);
     } elseif (function_exists('html_entity_decode')) {
         $text = html_entity_decode($text, ENT_NOQUOTES);
     }
     if (version_compare(JVERSION, '1.6.0', '>=')) {
         //j16
         $gid = JAccess::getGroupsByUser($my->id, false);
         $my->gid = $gid[0];
     }
     $gidAdmins = array(24, 25, 7, 8);
     $nRows = intval($GLOBALS[JNEWS . 'create_newsubsrows']);
     if (in_array($my->gid, $gidAdmins)) {
         $ownedLists = jNews_Lists::getLists('', 1, '', '', false, true, false, false, true);
     } else {
         $ownedLists = jNews_Lists::getFEListsByOwner($my->id);
     }
     $listOpt = array();
     $selectedList = 0;
     $listOpt[] = jnews::HTML_SelectOption(0, 'No List Selected');
     foreach ($ownedLists as $list) {
         $listOpt[] = jnews::HTML_SelectOption($list->id, $list->list_name);
     }
     $br = "\n\r";
     $html = $forms['main'];
     $html .= '<div style="width:100%; align:left;">' . $br;
     $html .= '<fieldset class="jnewscss" style="padding: 10px; text-align: left">' . $br;
     $html .= '<legend><strong>' . _JNEWS_SUB_INFO . '</strong></legend>' . $br;
     $html .= '<div><strong>Subscribe Contacts to a List:</strong>&nbsp;&nbsp;&nbsp;' . jnews::HTML_GenericList($listOpt, 'opted_list', 'class="inputbox"', 'value', 'text', $selectedList) . '</div>';
     $html .= '<table cellpadding="2" cellspacing="0" align="center">';
     $count = 0;
     for ($count = 1; $count <= $nRows; $count++) {
         if (!$cb) {
             $html .= '<tr id=tr' . $count . '>';
             $html .= '<td style="padding-right: 10px; padding-top: 15px;"> <input id="name" type="text" name="name' . $count . '" size="20" value="' . addslashes(_JNEWS_NAME) . '" class="inputbox" name="name" onblur="if(this.value==\'\') this.value=\'' . addslashes(_JNEWS_NAME) . '\';" onfocus="if(this.value==\'' . addslashes(_JNEWS_NAME) . '\') this.value=\'\' ; "  /></td>';
             if (empty($subscriber->email) || !jNews_Subscribers::validEmail($subscriber->email)) {
                 $subscriber->email = '';
             }
             $html .= '<td style="padding-right: 10px; padding-top: 15px;"> <input id="email" type="text" name="email' . $count . '" size="20" value="' . addslashes(_JNEWS_EMAIL) . '" class="inputbox" name="name" onblur="if(this.value==\'\') this.value=\'' . addslashes(_JNEWS_EMAIL) . '\'; else {status= checkEmail(this.value);  if(!status) this.focus;}" onfocus="if(this.value==\'' . addslashes(_JNEWS_EMAIL) . '\') this.value=\'\' ; "  /></td>';
             //additional columns
             if ($GLOBALS[JNEWS . 'level'] > 2) {
                 //check if the version of jnewsletter is pro
                 if (empty($subscriber->column1)) {
                     $subscriber->column1 = '';
                 }
                 if (empty($subscriber->column2)) {
                     $subscriber->column2 = '';
                 }
                 if (empty($subscriber->column3)) {
                     $subscriber->column3 = '';
                 }
                 if (empty($subscriber->column4)) {
                     $subscriber->column4 = '';
                 }
                 if (empty($subscriber->column5)) {
                     $subscriber->column5 = '';
                 }
                 if ($GLOBALS[JNEWS . 'show_column1']) {
                     //show column1
                     $html .= '<td style="padding-right: 10px; padding-top: 15px;"> <input id="column1" type="text" name="column1' . $count . '" size="20" value="' . $GLOBALS[JNEWS . 'column1_name'] . '" class="inputbox" name="name" onblur="if(this.value==\'\') this.value=\'' . $GLOBALS[JNEWS . 'column1_name'] . '\';" onfocus="if(this.value==\'' . $GLOBALS[JNEWS . 'column1_name'] . '\') this.value=\'\' ; "  /></td>';
                 }
                 if ($GLOBALS[JNEWS . 'show_column2']) {
                     //show column2
                     $html .= '<td style="padding-right: 10px; padding-top: 15px;"> <input id="column2" type="text" name="column2' . $count . '" size="20" value="' . $GLOBALS[JNEWS . 'column2_name'] . '" class="inputbox" name="name" onblur="if(this.value==\'\') this.value=\'' . $GLOBALS[JNEWS . 'column2_name'] . '\';" onfocus="if(this.value==\'' . $GLOBALS[JNEWS . 'column2_name'] . '\') this.value=\'\' ; "  /></td>';
                 }
                 if ($GLOBALS[JNEWS . 'show_column3']) {
                     //show column3
                     $html .= '<td style="padding-right: 10px; padding-top: 15px;"> <input id="column3" type="text" name="column3' . $count . '" size="20" value="' . $GLOBALS[JNEWS . 'column3_name'] . '" class="inputbox" name="name" onblur="if(this.value==\'\') this.value=\'' . $GLOBALS[JNEWS . 'column3_name'] . '\';" onfocus="if(this.value==\'' . $GLOBALS[JNEWS . 'column3_name'] . '\') this.value=\'\' ; "  /></td>';
                 }
                 if ($GLOBALS[JNEWS . 'show_column4']) {
                     //show column4
                     $html .= '<td style="padding-right: 10px; padding-top: 15px;"> <input id="column4" type="text" name="column4' . $count . '" size="20" value="' . $GLOBALS[JNEWS . 'column4_name'] . '" class="inputbox" name="name" onblur="if(this.value==\'\') this.value=\'' . $GLOBALS[JNEWS . 'column4_name'] . '\';" onfocus="if(this.value==\'' . $GLOBALS[JNEWS . 'column4_name'] . '\') this.value=\'\' ; "   /></td>';
                 }
                 if ($GLOBALS[JNEWS . 'show_column5']) {
                     //show column5
                     $html .= '<td style="padding-right: 10px; padding-top: 15px;"> <input id="column5" type="text" name="column5' . $count . '" size="20" value="' . $GLOBALS[JNEWS . 'column5_name'] . '" class="inputbox" name="name" onblur="if(this.value==\'\') this.value=\'' . $GLOBALS[JNEWS . 'column5_name'] . '\';" onfocus="if(this.value==\'' . $GLOBALS[JNEWS . 'column5_name'] . '\') this.value=\'\' ; "  /></td>';
                 }
             }
         } else {
             $html .= '<input type="hidden" name="cb_integration" value="1"  />';
         }
         $html .= '<input id="confirmed" type="hidden" name="confirmed' . $count . '" value="1" />';
         $html .= '<input id="receive_html" type="hidden" name="receive_html' . $count . '" value="1" />';
         $html .= '<input id="blacklist" type="hidden" name="blacklist' . $count . '" value="0" />';
         $html .= '</tr>';
     }
     $html .= '</table>';
     $html .= '<br><div id="addmore" >';
     $html .= '<input id="count" type="hidden" name="count" value="' . $count . '" />';
     $html .= '<input id="jnewsname" type="hidden" name="jnewsname" value="' . addslashes(_JNEWS_NAME) . '" />';
     $html .= '<input id="jnewsemail" type="hidden" name="jnewsemail" value="' . addslashes(_JNEWS_EMAIL) . '" />';
     $html .= '<input id="jnewscolumn1" type="hidden" name="jnewscolumn1" value="' . $GLOBALS[JNEWS . 'column1_name'] . '" />';
     $html .= '<input id="jnewscolumn2" type="hidden" name="jnewscolumn2" value="' . $GLOBALS[JNEWS . 'column2_name'] . '" />';
     $html .= '<input id="jnewscolumn3" type="hidden" name="jnewscolumn3" value="' . $GLOBALS[JNEWS . 'column3_name'] . '" />';
     $html .= '<input id="jnewscolumn4" type="hidden" name="jnewscolumn4" value="' . $GLOBALS[JNEWS . 'column4_name'] . '" />';
     $html .= '<input id="jnewscolumn5" type="hidden" name="jnewscolumn5" value="' . $GLOBALS[JNEWS . 'column5_name'] . '" />';
     $html .= '<input id="aca_22" type="button" value="Add More" alt="addmore" name="addmore" onclick="addmorefields();" /></div>';
     $html .= '</fieldset></div>';
     return $html;
 }
Example #9
0
/**
 * <p>Function to insert a module tag<p>
 * @param string $forms - the start html form
 * @param object $params - the plugin parameters
 */
function tagsite($forms, $params = null)
{
    $limit = -1;
    $action = JRequest::getVar('act', '', '', 'WORD');
    $task = JRequest::getVar('task');
    echo $forms['main'];
    $customlink = trim($params->get('customlink'));
    $customlinkA = array();
    if (!empty($customlink)) {
        $customlinkA = explode(',', $customlink);
    }
    $countParams = count($customlinkA);
    ?>
<style type="text/css">
	table.sitetaginput {
		border: 1px solid #D5D5D5;
		background-color: #F6F6F6;
		width: 100%;
		margin-bottom: 10px;
		-moz-border-radius:3px;
 		-webkit-border-radius:3px;
 		padding: 5px;
 	}
 	table.sitetaginput td.key {
 		background-color: #f6f6f6;
		text-align: left;
		width: 140px;
		color: #666;
		font-weight: bold;
		border-bottom: 1px solid #e9e9e9;
		border-right: 1px solid #e9e9e9;
 	}
	div.sitetaglist {
		border-spacing:1px;
		border:3px double #D5D5D5;
		padding: 5px;
		margin-bottom: 5px;
		cursor: pointer;
	}
 	div.k0 {
		background-color:#f4f4ff;
		color:#666;
	}
	div.k0:hover, div.k1:hover{
		background-color:#CFF;
		color:#666;
	}
	div.k1 {
		background-color:#FFF;
		color:#666;
	}
	div.k1:hover, div.k1:hover{
		background-color:#CFF;
		color:#666;
	}

	div.selectedtag {
		background-color:#87c331;
		color:#FFF;
		font-weight:bold;
	}

	table.sitetaginput tr.inputhide {
		display: none;
	}

	table.sitetaginput tr.inputunhide {
		display: table-row;
	}
 </style>
<div id="element-box">
	<div class="t">
		<div class="t">
			<div class="t"></div>
		</div>
	</div>
<div class="m">
	<?php 
    $js = 'function insertjnewstag(tag){';
    if (version_compare(JVERSION, '1.6.0', '<')) {
        //1.5
        $js .= ' if(window.top.insertTag(tag)){window.top.document.getElementById(\'sbox-window\').close();}';
    } else {
        if (version_compare(JVERSION, '3.0.0', '<')) {
            $js .= ' if(window.top.insertTag(tag)) {window.parent.SqueezeBox.close();}';
        } else {
            $js .= ' if(window.top.insertTag(tag)) {           
                     var need_click = jQuery(window.top.document).find("div.modal-backdrop");
                    if(need_click.length == 0) window.parent.SqueezeBox.close();
                    else    jQuery(window.top.document).find("div.modal-backdrop").click();}';
        }
    }
    $js .= '}';
    $script = 'function setCaption(newtag){window.document.getElementById(\'jnewstag\').value = newtag}';
    $doc = JFactory::getDocument();
    $doc->addScriptDeclaration($js);
    ?>
	<script language="javascript" type="text/javascript">
	 function jNewsTagInsert(tag, id) {
		var form = document.adminForm;
		if(!form){
			form = document.mosForm;
		}
		form.jnewstag.value = tag;
		form.jnewsselecttag.value = id;
		document.getElementById('tagvisibility').className = 'inputunhide';
		document.getElementById(id).className = 'selectedtag sitetaglist';
	 	switch(id){
	 		case 'divviewonline':
	 			form.jnewstagcaption.value = '<?php 
    echo _JNEWS_TAG_VIEWONLINE;
    ?>
';
		 		document.getElementById('divfwdtofriend').className = 'k1 sitetaglist';
				<?php 
    for ($a = 0; $a <= count($customlinkA); $a++) {
        ?>
				document.getElementById('div<?php 
        echo 'site' . $a;
        ?>
').className = 'k<?php 
        $x = $a % 2;
        echo $x;
        ?>
 sitetaglist';
				<?php 
    }
    ?>
		 		break;
		 	case 'divfwdtofriend':
		 		form.jnewstagcaption.value = '<?php 
    echo _JNEWS_TAG_FWDTOFRIEND;
    ?>
';
				document.getElementById('divviewonline').className = 'k1 sitetaglist';
				<?php 
    for ($b = 0; $b <= $countParams; $b++) {
        ?>
				document.getElementById('div<?php 
        echo 'site' . $b;
        ?>
').className = 'k<?php 
        $x = $b % 2;
        echo $x;
        ?>
 sitetaglist';
				<?php 
    }
    ?>
		 		break;
		 	<?php 
    for ($c = 0; $c <= $countParams; $c++) {
        ?>
			case 'div<?php 
        echo 'site' . $c;
        ?>
':
				form.jnewstagcaption.value = '<?php 
        if (isset($customlinkA[$c])) {
            if (substr_count($customlinkA[$c], '|') == 1) {
                $linkCaption = explode('|', $customlinkA[$c]);
                echo $linkCaption[0];
            }
        }
        ?>
';
				document.getElementById('divviewonline').className = 'k0 sitetaglist';
				document.getElementById('divfwdtofriend').className = 'k1 sitetaglist';
				<?php 
        $tagA = $customlinkA;
        for ($ci = 0; $ci <= count($tagA); $ci++) {
            if ($c != $ci) {
                ?>
				document.getElementById('divsite<?php 
                echo $ci;
                ?>
').className = 'k<?php 
                $x = $ci % 2;
                echo $x;
                ?>
 sitetaglist';
				<?php 
            }
        }
        ?>
				break;
			<?php 
    }
    ?>
		 	default:
		 		document.getElementById('divviewonline').className = 'k0 sitetaglist';
				document.getElementById('divfwdtofriend').className = 'k1 sitetaglist';
				<?php 
    for ($d = 0; $d <= $countParams; $d++) {
        ?>
				document.getElementById('divsite<?php 
        echo $d;
        ?>
').className = 'k<?php 
        $x = $d % 2;
        echo $x;
        ?>
 sitetaglist';
				<?php 
    }
    ?>
	 	}
	}


	function setCaptionTags() {
		var form = document.adminForm;
		if(!form){
			form = document.mosForm;
		}
		var selectedtag = form.jnewsselecttag.value;
		if (selectedtag == 'divviewonline'){
			form.jnewstag.value = '{tag:viewonline name='+form.jnewstagcaption.value+' theme='+form.jnewstagtheme.value+'}';
		}
		if (selectedtag == 'divfwdtofriend'){
			form.jnewstag.value = '{tag:fwdtofriend name='+form.jnewstagcaption.value+' theme='+form.jnewstagtheme.value+'}';
		}
		<?php 
    for ($e = 0; $e <= $countParams; $e++) {
        if (isset($customlinkA[$e])) {
            if (substr_count($customlinkA[$e], '|') == 1) {
                $tagCaption = explode('|', $customlinkA[$e]);
                ?>
			if (selectedtag == 'divsite<?php 
                echo $e;
                ?>
'){
				form.jnewstag.value = '{tagsite:'+form.jnewstagcaption.value+'|<?php 
                echo $tagCaption[1];
                ?>
}';
			}
		<?php 
            }
        }
    }
    ?>
	}
	</script>
	<table class="sitetaginput" width="100%"">
			<tbody>
				<tr id="tagvisibility" class="inputhide">
					<td width="80" class="key">
						<span class="editlinktip">
						<?php 
    $tip = _JNEWS_TAGSITE_TAGTIP;
    $title = _JNEWS_MAILING_TAG;
    echo jNews_Tools::toolTip($tip, '', 280, 'tooltip.png', $title, '', 0);
    ?>
						</span>
					</td>
					<td>
						<input type="text" name="jnewstag" class="inputbox" size="60px">
					</td>
				</tr>
				<tr style="display:visible;">
					<td width="80" class="key">
						<span class="editlinktip">
						<?php 
    $title = _JNEWS_TAGSITE_THEME;
    $tip = _JNEWS_TAGSITE_THEME_TIPS;
    echo jNews_Tools::toolTip($tip, '', 280, 'tooltip.png', $title, '', 0);
    ?>
						</span>
					</td>
					<td>
						<?php 
    $themeOption = array();
    $themeOption[] = jnews::HTML_SelectOption('0', 'Joomla Page');
    $themeOption[] = jnews::HTML_SelectOption('1', 'Standalone newsletter');
    echo jnews::HTML_GenericList($themeOption, "jnewstagtheme", 'onchange="setCaptionTags();" class="inputbox" size="1"', 'value', 'text', '0');
    ?>
					</td>
				</tr>
				<tr style="display:visible;">
					<td width="80" class="key">
						<span class="editlinktip">
						<?php 
    $tip = _JNEWS_TAGSITE_CAPTIONTIP;
    $title = _JNEWS_TAGSITE_CAPTION;
    echo jNews_Tools::toolTip($tip, '', 280, 'tooltip.png', $title, '', 0);
    ?>
						</span>
					</td>
					<td>
						<input type="text" onchange="setCaptionTags();" size="60px" name="jnewstagcaption">
						<input type="hidden" size="60px" name="jnewsselecttag">
					</td>
				</tr>
				<tr style="display:visible;">
					<td width="80" class="key">
						<span class="editlinktip">
						<?php 
    echo ' ';
    ?>
						</span>
					</td>
					<td>
						<input type="button" style="font-weight:bold;font-size:1.2em;" value="<?php 
    echo _JNEWS_TAG_INSERT_TAG;
    ?>
" onclick="insertjnewstag(form.jnewstag.value);" class="joobibutton">
					</td>
				</tr>
			</tbody>
		</table>

	<div id="divviewonline" class="k0 sitetaglist" onclick="jNewsTagInsert('{tag:viewonline name=<?php 
    echo _JNEWS_TAG_VIEWONLINE;
    ?>
}', 'divviewonline');">Insert a "VIEW IT ONLINE" link in your e-mail</div>
	<div id="divfwdtofriend" class="k1 sitetaglist" onclick="jNewsTagInsert('{tag:fwdtofriend name=<?php 
    echo _JNEWS_TAG_FWDTOFRIEND;
    ?>
}', 'divfwdtofriend');">Insert a "FORWARD TO A FRIEND" link in your e-mail</div>
	<?php 
    $k = 0;
    foreach ($customlinkA as $customlinkOne) {
        //check if | exist
        if (substr_count($customlinkOne, '|') == 1) {
            $customlinkOneA = explode('|', $customlinkOne);
            ?>
		<div id="divsite<?php 
            echo $k;
            ?>
" class="k<?php 
            echo $k % 2;
            ?>
 sitetaglist" onclick="jNewsTagInsert('{tagsite:<?php 
            echo $customlinkOneA[0];
            ?>
|<?php 
            echo $customlinkOneA[1];
            ?>
}', 'divsite<?php 
            echo $k;
            ?>
');">Insert "<?php 
            echo $customlinkOneA[0];
            ?>
" link in your e-mail</div>
	<?php 
            $k++;
        }
    }
    ?>

	</div>
	<div class="b">
		<div class="b">
			<div class="b"></div>
		</div>
	</div>
</div>
	<input type="hidden" value="<?php 
    echo JNEWS_OPTION;
    ?>
" name="option"/>
	<input type="hidden" value="<?php 
    echo $action;
    ?>
" name="act"/>
	<input type="hidden" value="<?php 
    echo $task;
    ?>
" name="task"/>
  	</form>
<?php 
}
Example #10
0
    /**
     * Function to display the AccessRoles
     * @param string the field where the values came from
     * @param string the value which needs to be handled
     * @return string the html codes produced
     */
    public static function displayAccessRoles($map, $values)
    {
        ?>
	<script language="javascript" type="text/javascript">
		function updateACL(map){
			choice = eval('document.adminForm.choice_'+map);
			choiceValue = 'special';
			for (var i=0; i < choice.length; i++){
			   if (choice[i].checked){
			     choiceValue = choice[i].value;
				}
			}
			hiddenVar = document.getElementById('hidden_'+map);
			if(choiceValue != 'special'){
				hiddenVar.value = choiceValue;
				document.getElementById('div_'+map).style.display = 'none';
			}else{
				document.getElementById('div_'+map).style.display = 'block';
				specialVar = eval('document.adminForm.special_'+map);
				finalValue = '';
				for (var i=0; i < specialVar.length; i++){
					if (specialVar[i].checked){
			     		finalValue += specialVar[i].value+',';
					}
				}
				hiddenVar.value = finalValue;
			}
		}
	</script>

	<?php 
        $js = 'window.addEvent(\'domready\', function(){ updateACL(\'' . $map . '\'); });';
        $doc = JFactory::getDocument();
        $doc->addScriptDeclaration($js);
        if (version_compare(JVERSION, '1.6.0', '<')) {
            $acl = JFactory::getACL();
            $groups = $acl->get_group_children_tree(null, 'USERS', false);
        } else {
            $db = JFactory::getDBO();
            $db->setQuery('SELECT a.*, a.title as text, a.id as value  FROM #__usergroups AS a ORDER BY a.lft ASC');
            $groups = $db->loadObjectList();
        }
        $choice = array();
        $choice[] = jnews::HTML_SelectOption('none', JText::_('None'));
        $choice[] = jnews::HTML_SelectOption('all', JText::_('All'));
        $choice[] = jnews::HTML_SelectOption('special', JText::_('Custom'));
        $choiceValue = ($values == 'none' or $values == 'all') ? $values : 'special';
        $return = jnews::HTML_RadioList($choice, "choice_" . $map, 'onclick="updateACL(\'' . $map . '\');"', 'value', 'text', $choiceValue);
        $return .= '<input type="hidden" name="' . $map . '" id="hidden_' . $map . '" value="' . $values . '"/>';
        $valuesArray = explode(',', $values);
        $listAccess = '<div style="display:none" id="div_' . $map . '"><table>';
        foreach ($groups as $oneGroup) {
            $listAccess .= '<tr><td>';
            if (!in_array($oneGroup->value, array(29, 30))) {
                $listAccess .= '<input type="checkbox" onclick="updateACL(\'' . $map . '\');" value="' . $oneGroup->value . '" ' . (in_array($oneGroup->value, $valuesArray) ? 'checked' : '') . ' name="special_' . $map . '" id="special_' . $map . '_' . $oneGroup->value . '"/>';
            }
            $listAccess .= '</td><td>' . $oneGroup->text . '</td></tr>';
        }
        $listAccess .= '</table></div>';
        $return .= $listAccess;
        return $return;
    }
Example #11
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 
    }